diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; public interface AuthorMapper { List selectAllAuthors ( ) ; - + void selectAllAuthors ( ResultHandler handler ) ; Author selectAuthor ( int id ) ; <nb> public interface AuthorMapper { int updateAuthor ( Author author ) ; } - - -
removed trailing spaces empty lines
<nb> class EventLogConsole { Document document = myLogEditor . getDocument ( ) ; boolean scroll = document . getTextLength ( ) == myLogEditor . getCaretModel ( ) . getOffset ( ) ; - append ( document , DateFormat . getTimeInstance ( DateFormat . MEDIUM ) . format ( notification . getCreationTime ( ) ) + STRING0...
dot separates time from the message in the event log
<nb> public class AccountManager { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public String getAccountAttribute ( String name ) { + try { + if ( info == null ) { + getRegistrationInfo ( ) ; + } + return ( String ) info . getAttributes ( ) . get ( na...
Added ability to obtain the value of a given account attribute
<nb> public class Main { ConfigGenerator . getEnumMap ( attrs ) , getLayoutLog ( ) ) ; } - COMMENT + COMMENT @ test public void testActivity ( ) throws ClassNotFoundException { renderAndVerify ( STRING0 , STRING1 ) ; <nb> public class Main { ResourceResolver resourceResolver = ResourceResolver . c...
Fix theme namespace in tests
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public class ServerBootstrap extends Bootstrap { final BlockingQueue < ChannelFuture > futureQueue = new LinkedBlockingQueue < ChannelFuture > ( ) ; - ChannelPipeline bossPi...
Server bootstrap bound channel pipeline has become immutable
<nb> public class DeltaManager extends ClusterManagerBase { result . sendAllSessions = sendAllSessions ; result . sendAllSessionsSize = sendAllSessionsSize ; result . sendAllSessionsWaitTime = sendAllSessionsWaitTime ; - result . receiverQueue = receiverQueue ; result . stateTimestampDrop = stateTimestampDrop...
Remove unnecessary attributes of stateTransferCreateSendTime and receiverQueue from cluster manager template
<nb> public class ShowsActivity extends BaseTopShowsActivity implements protected void onResume ( ) { super . onResume ( ) ; - AndroidUtils . executeAsyncTask ( new LatestEpisodeUpdateTask ( this ) ) ; + Utils . executeInOrder ( new LatestEpisodeUpdateTask ( this ) ) ; if ( mSavedState != null ) { resto...
Execute latest episode update tasks in order to avoid conflicts
<nb> public class ClusterService extends AbstractLifecycleComponent < ClusterService > { } } ThreadPool . terminate ( updateTasksExecutor , NUMBER0 , TimeUnit . SECONDS ) ; - postAppliedListeners . stream ( ) . filter ( listener - > listener instanceof TimeoutClusterStateListener ) - . forEach ( listener - > ...
Clarify closing of timeout listeners
<nb> public interface RestConstants String HEADER_VALUE_APPLICATION_JSON = STRING0 ; String HEADER_VALUE_APPLICATION_PSON = STRING1 ; String HEADER_VALUE_ACCEPT_ANY = STRING2 ; - String HEADER_RESTLI_PROTOCOL_VERSION = STRING3 ; + String HEADER_RESTLI_PROTOCOL_VERSION = STRING4 ; List < String > SUPPORTED...
Fix typo in protocol version header
<nb> public final class AddToProjectAction implements Action { Spatial model = AssetPackLoader . loadAssetPackModel ( pm , conf ) ; if ( model != null ) { ProjectAssetManager mgr = SceneApplication . getApplication ( ) . getCurrentSceneRequest ( ) . getManager ( ) ; - if ( mgr != null ) { + if ( mgr != null &...
improve message to Add to project about usage
<nb> public class AudioFormat { public static final int CHANNEL_OUT_MONO = CHANNEL_OUT_FRONT_LEFT ; public static final int CHANNEL_OUT_STEREO = ( CHANNEL_OUT_FRONT_LEFT | CHANNEL_OUT_FRONT_RIGHT ) ; + SINGLE public static final int CHANNEL_OUT_QUAD = ( CHANNEL_OUT_FRONT_LEFT | CHANNEL_OUT_FRONT_RIGHT | CHA...
Add CHANNEL_OUT_QUAD_SIDE and CHANNEL_OUT_5POINT1_SIDE
<nb> package NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class App { public static void main ( String [ ] args ) <nb> package NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public abstract class...
Added comments for bridge example
<nb> public class Tutorials extends HTMLOnlyRequest { @ override protected String build ( Response response ) { return STRING0 + STRING1 - + STRING2 - + STRING3 - + STRING4 + + STRING5 + + STRING6 + STRING7 + STRING8 + STRING9 + + STRING10 + STRING11 + STRING12 - + STRING13 + + STRIN...
Add Deep Learning Tutorial to the homepage
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BasicXmlIrGenerationTest assertThat ( valueOf ( ir . get ( NUMBER0 ) . getMetadata ( ) . getRefId ( ) ) , is ( valueOf ( NUMBER1 ) ) ) ; }...
Updated BasicXmlIrGenerationTest to allow execution within IDE debugger
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Applications { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Applications { } COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMEN...
Fix typos in comments in Applications
<nb> class LocalSocketImpl } s . fd = accept ( fd , s ) ; + s . mFdCreatedInternally = true ; } COMMENT <nb> class LocalSocketImpl close ( ) ; } } -
Fix descriptor leak after accepting connections
<nb> public abstract class MessageHandler { int batteryWatermark = msg . getByte ( STRING0 ) & NUMBER0 ; logger . debug ( STRING1 , nm ( ) , dev . getAddress ( ) , batteryWatermark , batteryLevel ) ; - m_feature . publish ( new DecimalType ( batteryWatermark ) , StateChangeType . CHANGED , STRING2 , STRING3 ) ;...
Add support to battery level and low battery
<nb> public class TileGenericPipe extends TileEntity implements IPowerReceptor , ITank worldObj . markBlockAsNeedsUpdate ( xCoord , yCoord , zCoord ) ; } + @ override public double getRenderDistance ( ) { return NUMBER0 ; }
Added override tag
<nb> public class CafeRouteBuilder extends RouteBuilder { from ( STRING0 ) . recipientList ( ) . method ( STRING1 ) ; - from ( STRING2 ) . to ( STRING3 ) . to ( STRING4 ) ; + from ( STRING2 ) . to ( STRING5 ) . to ( STRING4 ) ; from ( STRING6 ) . to ( STRING7 ) . to ( STRING4 ) ; from ( STRING4 )
Fixed the unit test error of CafeDemo
<nb> public class MapperMethod { private final String name ; private final SqlCommandType type ; - public SqlCommand ( Configuration configuration , Class < ? > mapperInterface , Method method ) throws BindingException { + public SqlCommand ( Configuration configuration , Class < ? > mapperInterface , Method ...
Remove redundant thrown exception
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAM...
fix typo getMovingAverageMdelParserRegistry getMovingAverageModelParserRegistry in SearchModule
<nb> public class IdeErrorsDialog extends DialogWrapper implements MessagePoolListene } private void showMessageDetails ( AbstractMessage aMessage ) { - myDetailsPane . setText ( new StringBuffer ( ) . append ( aMessage . getMessage ( ) ) . append ( STRING0 ) . append ( aMessage . getThrowableText ( ) ) . toStr...
once more improve handling of too many errors message
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; SINGLE SINGLE SINGLE - SINGLE + SINGLE public class GcmSender { public static final String API_KEY = STRING0 ;
Fix typo and remove unused import
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> final class WindowState implements WindowManagerPolicy . WindowState { } priva...
Don t save secure surfaces
<nb> abstract class AbstractRequestParameterAllowFromStrategy implements AllowFromStr log . debug ( STRING0 + allowFromOrigin + STRING1 ) ; } if ( StringUtils . hasText ( allowFromOrigin ) && allowed ( allowFromOrigin ) ) { - return STRING2 + allowFromOrigin ; + return allowFromOrigin ; } else { return ST...
Remove double ALLOW FROM from X Frame Options header
<nb> public abstract class AbstractASTTransformation implements Opcodes , ASTTransform return NUMBER0 ; } - public static ClassNode getMemberClassValue ( AnnotationNode node , String name ) { + public ClassNode getMemberClassValue ( AnnotationNode node , String name ) { return getMemberClassValue ( node , n...
adjust recently added utility method
<nb> public class FilterChain return decision ; } } - return AuditEventFilter . NEUTRAL ; + return Filter . NEUTRAL ; } COMMENT
corrected constant reference
<nb> public class BIP38PrivateKey extends VersionedChecksummedBytes { hasLotAndSequence = ( bytes [ NUMBER0 ] & NUMBER1 ) != NUMBER2 ; SINGLE compressed = ( bytes [ NUMBER0 ] & NUMBER3 ) != NUMBER2 ; SINGLE if ( ( bytes [ NUMBER0 ] & NUMBER4 ) != NUMBER2 ) SINGLE - throw new AddressFormatException ( STRING0 ) ;...
Fix some exception messages in BIP38PrivateKey
<nb> public class XmlHighlightVisitor extends PsiElementVisitor implements Validator . if ( namespaceByPrefix . length ( ) == NUMBER0 ) { final PsiFile containingFile = tag . getContainingFile ( ) ; if ( ! HighlightUtil . isRootInspected ( containingFile ) ) return ; - + if ( ! STRING0 . equals ( namespaceP...
suggesting popup list of resource urls if there are many of them but not in unit test mode
<nb> public class EditPeopleControlSet extends PopupControlSet { public void onActivityResult ( int requestCode , int resultCode , Intent data ) { if ( requestCode == loginRequestCode && resultCode == Activity . RESULT_OK ) { task . setValue ( Task . USER_ID , - NUMBER0 ) ; - task . setValue ( Task . USER , STR...
Fixed a bug that would cause a json exception shouldn t have broken anything though
<nb> public class PApplet extends Applet SINGLE public void stop ( ) { if ( thread != null ) { - SINGLE thread = null ; } <nb> public class PApplet extends Applet } + SINGLE + SINGLE + SINGLE + + public Dimension getPreferredSize ( ) { return new Dimension ( width , height ) ; }
added a note about threading and applet methods
<nb> public class Parse extends Request { SINGLE SINGLE public class ExistingCSVKey extends TypeaheadInputText < PSetup > { - public ExistingCSVKey ( String name ) { super ( TypeaheadKeysRequest . class , name , true ) ; addPrerequisite ( _excludeExpression ) ; } + public ExistingCSVKey ( String name ) { supe...
Parse web page bug fix
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class NodeSpecificHasherBase extends NodeSpec...
get file language from file type to make sure that JS dialects are using JS settings
<nb> public class KeyedResourcePool < K , V > { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT - SINGLE - SINGLE protected void destroyResource ( K key , Pool < V > resourcePool , V resource ) { if ( resource != null ) { try { <nb> public class KeyedResourc...
Minor cleanup changed some todos to documentation and comments
<nb> public class PaymentChannelClientState { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class PaymentChannelClientState { if ( multisigOutput . getMinNonDustValue ( ) . compareTo ( totalValue ) > NUMBER0 ) throw new ValueOutOfRangeExcep...
allow usage of unconfirmed coins for building a contract as the risk is low they re micropayments anyway
<nb> public class TransactionSubsystemRootResourceDefinition extends SimpleResourceDe public static final SimpleAttributeDefinition PROCESS_ID_UUID = new SimpleAttributeDefinitionBuilder ( STRING0 , ModelType . BOOLEAN , false ) . setAlternatives ( STRING1 ) . setFlags ( AttributeAccess . Flag . RESTART_ALL_SERVI...
removing allowExpression for process id uuid because it haven t sense being a pure presence check for the tag
<nb> public class ViewDragHelper { SINGLE SINGLE mScroller . abortAnimation ( ) ; - keepGoing = mScroller . isFinished ( ) ; + keepGoing = false ; } if ( ! keepGoing ) {
Stop settling sooner
<nb> public abstract class AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapt . withIdentity ( this . getClass ( ) . getSimpleName ( ) . concat ( UUID . randomUUID ( ) . toString ( ) ) ) . startAt ( DateTimeUtils . dateOf ( ZonedDateTime . now ( ZoneOffset . UTC ) . plus ( this . startDelay , ChronoUnit . M...
Fix interval in throttling configuration
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SqlUpdate extends SqlOperation { COMMENT COMMENT public int update ( Object [ ] params , KeyHolder generatedKeyHolder ) throws DataAccessExc...
added check for existing configuration of generated keys before calling update with a KeyHolder
<nb> public class HashPartitionMaskOperator this . types = ImmutableList . copyOf ( checkNotNull ( types , STRING0 ) ) ; this . maskChannels = maskChannels ; - checkArgument ( partitionChannels . length >= NUMBER0 , STRING1 ) ; checkNotNull ( hashChannel , STRING2 ) ; ImmutableList . Builder < Type > dist...
Remove unnecessary check
<nb> public class MovieDetailsFragment extends Fragment { TraktTools . buildRatingString ( traktRatings . rating ) ) ; } SINGLE - if ( ! inCollection && ! inWatchlist ) { + if ( ! inCollection && ! inWatchlist && ! isWatched ) { mRatingsTraktUserLabel . setVisibility ( View . GONE ) ; mRatingsTraktUserVal...
Allow rating of movies that are watched
<nb> public class IQRegisterHandler extends IQHandler implements ServerFeaturesProvid } newUser = user ; } - else { + else if ( password != null && password . trim ( ) . length ( ) > NUMBER0 ) { SINGLE newUser = userManager . createUser ( username , password , null , email ) ; } + else { + SINGLE ...
Return an error if someone tries to register with no password
<nb> public class TestSymbolIssues extends BaseTest { STRING0 + ErrorType . IMPLICIT_TOKEN_DEFINITION . code + STRING1 + STRING0 + ErrorType . IMPLICIT_TOKEN_DEFINITION . code + STRING2 + STRING3 + ErrorType . RULE_HAS_NO_ARGS . code + STRING4 + - STRING3 + ErrorType . MISSING_RULE_ARGS . code + STRING5 + STR...
Fix the expected error message in test
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class Result implements Serializable { - - private static final long serialVersionUID = - NUMBER0 ;...
Removed serializable property
<nb> public final class ChannelExceptionHandler extends ChannelInboundHandlerAdapter public void exceptionCaught ( ChannelHandlerContext context , Throwable cause ) throws Exception { SINGLE SINGLE - if ( ! ( cause instanceof ConnectException ) && ! STRING0 . equals ( cause . getMessage ( ) ) ) { - NettyUtil ...
don t log Connection reset by peer
<nb> public class AtmosphereServlet extends AbstractAsyncServlet implements CometProc String body = headers . remove ( ATMOSPHERE_POST_BODY ) ; return cometSupport . service ( new AtmosphereRequest . Builder ( ) . headers ( headers ) - . method ( req . getMethod ( ) ) + . method ( body != null ? req . getMeth...
Do not hack the method as it cause issue with other http method
<nb> public final class SolverLoadIT extends OryxTest { stopwatch . stop ( ) ; SINGLE long elapsedMS = stopwatch . elapsedTime ( TimeUnit . MILLISECONDS ) ; - log . info ( STRING0 , elapsedMS ) ; - assertTrue ( elapsedMS < NUMBER0 * iterations ) ; + log . info ( STRING1 , elapsedMS , iterations ) ; + asse...
Loosen time bound of test to accommodate slower test machine
<nb> public class ODistributedWorker extends Thread { ODistributedAbstractPlugin . REPLICATOR_USER ) ; database = ( ODatabaseDocumentTx ) manager . getServerInstance ( ) . openDatabase ( STRING0 , databaseName , replicatorUser . name , replicatorUser . password ) ; + database . reload ( ) ; } else if ( data...
Fixed deadlock on schema reloading
<nb> public class SignavioSvgApiBuilder { svgApiCall . append ( STRING0 ) ; svgApiCall . append ( STRING1 ) ; SINGLE - svgApiCall . append ( STRING2 ) ; - SINGLE + SINGLE + svgApiCall . append ( STRING3 + connector . getConfiguration ( ) . getModelUrl ( artifact . getNodeId ( ) ) + STRING4 ) ; SINGLE ...
Commented test settings
<nb> public class PropertyTreeViewer extends TreeViewer { } } } - manager . add ( new Separator ( ) ) ; - - contributeContextMenu ( manager , object , prop . category != null ? prop . category : prop . property . getCategory ( ) , prop . property ) ; } + manager . add ( new Separator ( ) ) ; + contrib...
Custom user properties edit fixed
<nb> public class GremlinSessionTest { String result = session . evaluate ( STRING0 ) ; - assertEquals ( String . format ( STRING1 , database . graph . toString ( ) ) , result ) ; + assertEquals ( String . format ( STRING2 , database . graph . toString ( ) ) , result ) ; } @ test <nb> public class Gre...
Fixing test failures on Gremlin output
<nb> public class DefaultModelRegistry implements ModelRegistry { boolean newInputsBound = true ; while ( ! binders . isEmpty ( ) && newInputsBound ) { newInputsBound = false ; + SINGLE + SINGLE for ( int i = NUMBER0 ; i < binders . size ( ) ; i ++ ) { newInputsBound = newInputsBound || tryForceBind ( bin...
Add comment on why foreach can t be used here
<nb> public class TestCometProcessor extends TomcatBaseTest { private InputStream is ; private StringBuilder response = new StringBuilder ( ) ; - private Exception e = null ; + private volatile Exception e = null ; public ResponseReaderThread ( InputStream is ) { this . is = is ; <nb> public class Tes...
Remove debug use of System out
<nb> public class JarFile extends java . util . jar . JarFile implements Iterable < JarEntryD COMMENT public synchronized JarFile getNestedJarFile ( final JarEntryData sourceEntry , JarEntryFilter . . . filters ) throws IOException { - if ( sourceEntry . isDirectory ( ) ) { - return getNestedJarFileFromDirect...
Improve exception messages on nested jar failure
<nb> public class GenerationTest extends TestCase { static { SINGLE ErrorUtil . setTestMode ( ) ; + ClassLoader cl = GenerationTest . class . getClassLoader ( ) ; + cl . setPackageAssertionStatus ( STRING0 , true ) ; } @ override
Explicitly enable assertions for translator unit tests
<nb> public class CommentsListFragment extends Fragment { mEmptyViewMessageType = EmptyViewMessageType . NO_CONTENT ; } - if ( ! NetworkUtils . checkConnection ( getActivity ( ) ) ) { + if ( ! NetworkUtils . isNetworkAvailable ( getActivity ( ) ) ) { mFilteredCommentsView . updateEmptyView ( EmptyViewMessag...
ditched first toast for network unavailable as it would duplicate with the onResume one
<nb> public class AggregationCompiler checkNotNull ( returnType , STRING0 ) ; checkNotNull ( argumentTypes , STRING1 ) ; for ( InternalAggregationFunction aggregation : generateAggregationFunctions ( clazz ) ) { - if ( aggregation . getFinalType ( ) == returnType && aggregation . getParameterTypes ( ) . equals ...
Fix comparison of types in AggregationCompiler
<nb> public class ActionBarContainer extends FrameLayout { } } else { if ( mBackground != null ) { - mBackground . setBounds ( mActionBarView . getLeft ( ) , mActionBarView . getTop ( ) , - mActionBarView . getRight ( ) , mActionBarView . getBottom ( ) ) ; + if ( mActionBarView . getVisibility ( ) == View ....
Set correct bounds in ActionBar based on visibility of ActionBarView
<nb> public final class MemoryManager COMMENT COMMENT private static final long GRAB_SIZE = Integer . getInteger ( - MemoryManager . class . getName ( ) + STRING0 , NUMBER0 * NUMBER1 * NUMBER1 ) ; SINGLE + MemoryManager . class . getName ( ) + STRING0 , NUMBER2 * NUMBER1 ) ; SINGLE COMMENT COMMENT
Reduce the grab size for the MemoryManager
<nb> public class JanitorEmailNotifier extends AWSEmailNotifier { String email = r . getOwnerEmail ( ) ; if ( ! isValidEmail ( email ) ) { if ( defaultEmail != null ) { - email = defaultEmail ; LOGGER . info ( String . format ( STRING0 , email , defaultEmail ) ) ; + putEmailAndResource ( emailToResources ...
Fix the bug that did not add resources to notification list when using the default email
<nb> public class TextToSpeech { private final Map < String , Uri > mUtterances ; private final Bundle mParams = new Bundle ( ) ; private final TtsEngines mEnginesHelper ; - private String mCurrentEngine = null ; + private volatile String mCurrentEngine = null ; COMMENT COMMENT <nb> public class TextT...
Expose the currently used engine to bundled apps
<nb> public class ApplicationImpl extends ComponentManagerImpl implements Application private final ExecutorService ourThreadExecutorsService = new ThreadPoolExecutor ( NUMBER0 , Integer . MAX_VALUE , - NUMBER1 , + NUMBER2 * NUMBER1 , TimeUnit . SECONDS , new SynchronousQueue < Runnable > ( ) , new Thre...
extra threads wait longer
<nb> + COMMENT + Android Asynchronous Http Client + Copyright ( c ) NUMBER0 James Smith < james @ loopj.com > + http: SINGLE + + Licensed under the Apache License , Version FLOAT0 ( the STRING0 ) ; + you may not use this file except in compliance with the License . + You may obtain a copy of the License...
Add license to file
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT public class ZipfianGenerator extends IntegerGenerator {
Added reference to Gray paper
<nb> public class AtmosphereResponse extends HttpServletResponseWrapper { writeStatusAndHeaders ( ) ; if ( asyncProtocol . inspectResponse ( ) ) { byte [ ] b = asyncProtocol . handleResponse ( AtmosphereResponse . this , bytes , start , offset ) ; - asyncIOWriter . write ( b , start , offset ) ; + asyncIOWrit...
Fix regression added last week with buffer lenght
<nb> public class TraceHandler extends BaseAnnotationHandler < EComponentHolder > { JBlock methodBody = method . body ( ) ; JInvocation isLoggableInvocation = getClasses ( ) . LOG . staticInvoke ( STRING0 ) ; - isLoggableInvocation . arg ( JExpr . lit ( tag ) ) . arg ( logLevelFromInt ( level , getClasses ( ) ....
remove unnecessary JExpr lit call
<nb> public class Base { } else { SINGLE SINGLE - buildFolder = getTempFolder ( STRING0 ) ; + buildFolder = createTempFolder ( STRING0 ) ; + buildFolder . deleteOnExit ( ) ; } } return buildFolder ; <nb> public class Base { COMMENT COMMENT COMMENT - static public File getTempFolder ( String ...
fix some issues with creation of temp folders to avoid boogers
<nb> public class CommandLineRunner extends SINGLE List < String > moduleRoots = new ArrayList < > ( flags . commonJsPathPrefix ) ; - moduleRoots . addAll ( flags . moduleRoot ) ; - moduleRoots . add ( ES6ModuleLoader . DEFAULT_FILENAME_PREFIX ) ; + if ( ! flags . moduleRoot . isEmpty ( ) ) { + moduleRoot...
Add ES6ModuleLoader DEFAULT_FILENAME_PREFIX to moduleRoots only when
<nb> public class CodeCompletionHandlerBase { if ( ! editor . getCaretModel ( ) . supportsMultipleCarets ( ) ) { SINGLE context . stopWatching ( ) ; } - editor . getScrollingModel ( ) . scrollToCaret ( ScrollType . RELATIVE ) ; + EditorModificationUtil . scrollToCaret ( editor ) ; } } ) ; update . addSp...
avoid scrolling to a non primary caret on completion
<nb> public class HttpClientTest extends AbstractHttpClientServerTest @ test public void testConnectThrowsUnknownHostException ( ) throws Exception { + String host = STRING0 ; + int port = NUMBER0 ; + + try + { + Socket socket = new Socket ( ) ; + socket . connect ( new InetSocketAddress ( host , po...
Added assumption to make test more robust
<nb> import NAMESPACE ; COMMENT COMMENT public class KillGradleServerProtocol implements Server . Protocol < Server > { - private Server server ; - public void initialize ( Server server ) { - this . server = server ; } public void connectionAccepted ( ) { - } public boolean continueConnecti...
Removed unused field
<nb> public class BuildScriptHelper { write ( wr , STRING0 ) ; write ( wr , STRING1 ) ; write ( wr , STRING2 + DependencyBank . libGDXSnapshotsUrl + STRING3 ) ; + write ( wr , STRING2 + DependencyBank . libGDXReleaseUrl + STRING3 ) ; write ( wr , STRING4 ) ; write ( wr , STRING4 ) ; } <nb> public class ...
updated version added SonaType release repo mirror
<nb> public abstract class Editor extends JFrame implements RunnerListener { SINGLE List < JMenuItem > menuList = new ArrayList < JMenuItem > ( ) ; - JMenu windowMenu = new JMenu ( STRING0 ) ; - @ override public void menuSelected ( MenuEvent event ) { JMenuItem item ; <nb> public abstract class Edito...
Removed Window menu from Sketch menu
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class NotificationsDetailListFragment extends ListFragment implements Not private String mRestoredNoteId ; private int mBackgroundColor ; private int mCommentListPosition = Li...
Remove unused code
<nb> public class ReservoirSegmentSamplerTest public void setUp ( ) throws Exception { druidServer1 = EasyMock . createMock ( ImmutableDruidServer . class ) ; - druidServer1 = EasyMock . createMock ( ImmutableDruidServer . class ) ; druidServer2 = EasyMock . createMock ( ImmutableDruidServer . class ) ; dru...
Duplicate statement in ReservoirSegmentSamplerTest java
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> pub...
removed delicate external test
<nb> import NAMESPACE ; import NAMESPACE ; public abstract class TwoFingerTapDetector { - private static final int TIMEOUT = ViewConfiguration . getTapTimeout ( ) + NUMBER0 ; + private static final int TIMEOUT = ViewConfiguration . getTapTimeout ( ) + NUMBER1 ; private long mFirstDownTime = NUMBER2 ; priv...
try higher timeout
<nb> public class ClassCodegen { frameMap . enter ( parameter , argTypes [ i ] . getSize ( ) ) ; } + List < JetDelegationSpecifier > specifiers = aClass . getDelegationSpecifiers ( ) ; + + if ( specifiers . isEmpty ( ) || ! ( specifiers . get ( NUMBER0 ) instanceof JetDelegatorToSuperCall ) ) { + String s...
Generate call to super even if not explisit
<nb> import NAMESPACE ; COMMENT public class NamingContext implements EventContext { + private static final RuntimePermission SET_ACTIVE_NAMING_STORE = new RuntimePermission ( STRING0 ) ; COMMENT COMMENT COMMENT - private static NamingStore ACTIVE_NAMING_STORE = new InMemoryNamingStore ( ) ; + private...
Add permission check to static field and make it volatile
<nb> public class WordRepeatRule extends Rule { } public String getDescription ( ) { - return STRING0 ; + return STRING1 ; } public Language [ ] getLanguages ( ) { <nb> public class WordRepeatRule extends Rule { } } if ( isWord && prevToken . toLowerCase ( ) . equals ( token . toLowerCase ( ) ) ...
improve user visible message
<nb> public class AWS4Signer extends AbstractAWSSigner implements COMMENT COMMENT COMMENT - private byte [ ] newSigningKey ( AWSCredentials credentials , + protected byte [ ] newSigningKey ( AWSCredentials credentials , String dateStamp , String regionName , String serviceName ) { byte [ ] kSecret = ( STR...
Change this method to protected
<nb> public class ReaderPostDetailFragment extends Fragment return false ; } - SINGLE - boolean isPrivate = ( mPost != null && mPost . isPrivate ) ; - if ( isPrivate ) { - imageUrl = UrlUtils . makeHttps ( imageUrl ) ; - } + boolean isPrivatePost = ( mPost != null && mPost . isPrivate ) ; ReaderAc...
Removed unnecessary HTTPS enforcement when showing photo from ReaderPostDetailFragment
<nb> abstract class AndroidSpringLooperFactory { } long currentTime = SystemClock . uptimeMillis ( ) ; mSpringSystem . loop ( currentTime - mLastTime ) ; + mLastTime = currentTime ; mHandler . post ( mLooperRunnable ) ; } } ;
fix bug in non choreographer looper
<nb> public class JBMacMessages extends MacMessagesEmulation { if ( window == null ) { window = getForemostWindow ( null ) ; } - SheetMessage sheetMessage = new SheetMessage ( window , title , message , UIUtil . getQuestionIcon ( ) , new String [ ] { yesButton , noButton } , null , noButton , yesButton ) ; + ...
Yes No messages have buttons in wrong order
<nb> public class TelephonyManager { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix a typo in the docstring of getAllCellInfo
<nb> public abstract class Language { public abstract String [ ] getCountries ( ) ; COMMENT + COMMENT + COMMENT + @ nullable + public abstract Contributor [ ] getMaintainers ( ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + public abstract List < Rule > getRelevantRules ( ResourceBundle messag...
improve method order
<nb> public class GraphDatabaseConfiguration { COMMENT COMMENT COMMENT - public static final String GANGLIA_HOST_OR_GROUP = STRING0 ; + public static final String GANGLIA_HOST_OR_GROUP = STRING1 ; COMMENT COMMENT
Rename metrics ganglia host to
<nb> public class ImageLoader { Bitmap bmp = configuration . memoryCache . get ( memoryCacheKey ) ; if ( bmp != null && ! bmp . isRecycled ( ) ) { Log . i ( TAG , String . format ( LOG_LOAD_IMAGE_FROM_MEMORY_CACHE , memoryCacheKey ) ) ; + listener . onLoadingStarted ( ) ; imageView . setImageBitmap ( bmp ) ; ...
If the image was cached in memory also invoke ImageLoadingListener
<nb> public class TestWsWebSocketContainer extends TomcatBaseTest { int count = NUMBER0 ; while ( getOpenCount ( setA ) == expected && count < NUMBER1 ) { count ++ ; - Thread . sleep ( NUMBER2 ) ; + Thread . sleep ( NUMBER3 ) ; } expected -- ;
Make test less sensitive to timing
<nb> public class DateUtils { private static final TimeZone GMT_ZONE = TimeZone . getTimeZone ( STRING0 ) ; - private static final String RFC1123_PATTERN = STRING1 ; + private static final String RFC1123_PATTERN = STRING2 ; private static final String RFC1036_PATTERN = STRING3 ;
Fix date format bug
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public class HashedBytesArray implements BytesReference { private final byte [ ] bytes ; - SINGLE - private final int hashCode ; + COMMENT + COMMENT + COMMENT + pr...
lazy compute the hash and actually use it
<nb> package NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + public class MocoContextConfig implements MocoConfig < String > { private final String context ; <nb> public class MocoContextConfig implements MocoConfig < String > { @ override public String apply ( final String uri ) { ...
changed context config implementation to join
<nb> public abstract class ContentProvider implements ComponentCallbacks2 { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class View implements Drawable . Callback , KeyEvent . Callback , COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public final v...
Fixed typo errors in documentation
<nb> public abstract class AbstractServerClusterSQLGraphTest extends AbstractServerCl OrientEdge knows = createEdge ( graph , person1 , person2 ) ; + Assert . assertEquals ( knows . getOutVertex ( ) , person1 . getIdentity ( ) ) ; + Assert . assertEquals ( knows . getInVertex ( ) , person2 . getIdentity ( ) )...
Added additional tests
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT COMMENT + @ dryrunincompatible public class SendIssueNotificationsPostJob implements PostJob { private final IssueCache issueCache ;
Do not send nofications on dry run mode
<nb> public class VersionedStore { private List < String > listDir ( String dir ) throws IOException { List < String > ret = new ArrayList < String > ( ) ; - for ( File f : new File ( dir ) . listFiles ( ) ) { - ret . add ( f . getAbsolutePath ( ) ) ; + File [ ] contents = new File ( dir ) . listFiles ( ) ;...
in VersionedStore always return a list from listDir
<nb> public class LdapManager { int skip = - NUMBER0 ; int lastRes = - NUMBER0 ; if ( ! clientSideSort ) { - skip = startIndex ; - lastRes = startIndex + numResults ; + if ( startIndex != - NUMBER0 ) { + skip = startIndex ; + } + if ( numResults != - NUMBER0 ) { + lastRes = startIndex + numResults ;...
Fixed issue where no results were returned when all results requested
<nb> public abstract class KCVSCache implements KeyColumnValueStore { private final String metricsName ; private final boolean validateKeysOnly = true ; - private final boolean bufferEnabled = true ; protected final KeyColumnValueStore store ; <nb> public abstract class KCVSCache implements KeyColumnVal...
Removed dead code
<nb> public class BaseAdapterHelper { COMMENT public BaseAdapterHelper setProgress ( int viewId , int progress , int max ) { ProgressBar view = retrieveView ( viewId ) ; - view . setProgress ( progress ) ; view . setMax ( max ) ; + view . setProgress ( progress ) ; return this ; } <nb> public class ...
Fixes a problem when setting up initial progress greater than max progress
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> import static NAMESPACE import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; public cla...
Swapped out call to deprecated method