signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class InternalXbaseParser { /** * InternalXbase . g : 933:1 : entryRuleXCasePart : ruleXCasePart EOF ; */
public final void entryRuleXCasePart ( ) throws RecognitionException { } } | try { // InternalXbase . g : 934:1 : ( ruleXCasePart EOF )
// InternalXbase . g : 935:1 : ruleXCasePart EOF
{ if ( state . backtracking == 0 ) { before ( grammarAccess . getXCasePartRule ( ) ) ; } pushFollow ( FOLLOW_1 ) ; ruleXCasePart ( ) ; state . _fsp -- ; if ( state . failed ) return ; if ( state . backtracking ==... |
public class GVRGearCursorController { /** * Return the current handedness of the Gear Controller .
* @ return returns whether the user is using the controller left or right handed . This function
* returns < code > null < / code > if the controller is unavailable or the data is stale . */
@ SuppressWarnings ( "unu... | if ( ( currentControllerEvent == null ) || currentControllerEvent . isRecycled ( ) ) { return null ; } return currentControllerEvent . handedness == 0.0f ? Handedness . LEFT : Handedness . RIGHT ; |
public class MemoryStageController { /** * 处理异常termin结束 */
public synchronized void termin ( TerminType type ) { } } | // 构建termin信号
List < Long > processIds = new ArrayList < Long > ( progress . keySet ( ) ) ; Collections . sort ( processIds ) ; // 做一下排序
for ( Long processId : processIds ) { EtlEventData eventData = progress . get ( processId ) . getData ( ) ; TerminEventData data = new TerminEventData ( ) ; data . setPipelineId ( get... |
public class OutputPanel { /** * Adds the xml description of the panels content to the StringBuilder .
* Errors which occur during the xml transformation will be added to the
* ConfigVerification .
* @ param builder
* Reference to a StringBuilder object
* @ param errors
* Reference to the ConfigVerification... | if ( ! controller . isEnableSQLDatabaseOutput ( ) ) { boolean zipComp = controller . isZipCompressionEnabled ( ) ; boolean multiFile = controller . isMultipleOutputFiles ( ) ; builder . append ( "\t<output>\r\n" ) ; builder . append ( "\t\t<OUTPUT_MODE>" ) ; OutputCompressionEnum comp = controller . getOutputCompressio... |
public class AbstractCRUDRestService { /** * { @ inheritDoc } */
@ Override public List < O > doGetObjects ( final Wave wave ) { } } | LOGGER . trace ( "Get Planets." ) ; final List < O > objects = baseWebTarget ( ) . request ( MediaType . APPLICATION_XML ) . get ( genericList ) ; return objects ; |
public class ClassReader { /** * Make a package , given its unqualified name and enclosing package . */
public PackageSymbol enterPackage ( Name name , PackageSymbol owner ) { } } | return enterPackage ( TypeSymbol . formFullName ( name , owner ) ) ; |
public class MediaHttpUploader { /** * { @ link Beta } < br / >
* The call back method that will be invoked on a server error or an I / O exception during
* resumable upload inside { @ link # upload } .
* This method changes the current request to query the current status of the upload to find how
* many bytes ... | Preconditions . checkNotNull ( currentRequest , "The current request should not be null" ) ; // Query the current status of the upload by issuing an empty PUT request on the upload URI .
currentRequest . setContent ( new EmptyContent ( ) ) ; currentRequest . getHeaders ( ) . setContentRange ( "bytes */" + mediaContentL... |
public class GeomajasServiceImpl { /** * Return the { @ link Map } that is registered with the given application and map ID .
* @ param applicationId
* the application id .
* @ param mapId
* the map id .
* @ return the map . */
@ Export public Map getMap ( String applicationId , String mapId ) { } } | HashMap < String , Map > application = maps . get ( applicationId ) ; if ( null == application ) { return null ; } return application . get ( mapId ) ; |
public class BGZFBlockIndex { /** * Writes some statistics about each BGZF block index file given as an
* argument . */
public static void main ( String [ ] args ) { } } | if ( args . length == 0 ) { System . out . println ( "Usage: BGZFBlockIndex [BGZF block indices...]\n\n" + "Writes a few statistics about each BGZF block index." ) ; return ; } for ( String arg : args ) { final File f = new File ( arg ) ; if ( f . isFile ( ) && f . canRead ( ) ) { try { System . err . printf ( "%s:\n" ... |
public class Item { /** * Returns the value of the specified attribute in the current item as a
* < code > ByteBuffer < / code > ; or null if the attribute either doesn ' t exist or
* the attribute value is null .
* @ throws IncompatibleTypeException
* if the attribute value cannot be converted into a byte arra... | Object val = attributes . get ( attrName ) ; return toByteBuffer ( val ) ; |
public class TextComponentPainter { /** * Paint the border .
* @ param g DOCUMENT ME !
* @ param c DOCUMENT ME !
* @ param x DOCUMENT ME !
* @ param y DOCUMENT ME !
* @ param width DOCUMENT ME !
* @ param height DOCUMENT ME ! */
private void paintBorder ( Graphics2D g , JComponent c , int x , int y , int wi... | boolean useToolBarColors = isInToolBar ( c ) ; Shape s ; if ( focused ) { s = shapeGenerator . createRoundRectangle ( x - 2 , y - 2 , width + 3 , height + 3 , CornerSize . OUTER_FOCUS ) ; g . setPaint ( getFocusPaint ( s , FocusType . OUTER_FOCUS , useToolBarColors ) ) ; g . draw ( s ) ; s = shapeGenerator . createRoun... |
public class Signature { /** * Drop the specified number of first arguments from this signature .
* @ param n number of arguments to drop
* @ return a new signature */
public Signature dropFirst ( int n ) { } } | return new Signature ( methodType . dropParameterTypes ( 0 , n ) , Arrays . copyOfRange ( argNames , n , argNames . length ) ) ; |
public class MockServletRequest { /** * Sets the requested path
* @ param path the requested path */
public void setRequestPath ( String mapping , String path ) { } } | this . requestPath = path ; int paramStartIdx = requestPath . indexOf ( "?" ) ; if ( StringUtils . isEmpty ( mapping ) ) { if ( paramStartIdx != - 1 ) { this . servletPath = requestPath . substring ( 0 , paramStartIdx ) ; } else { this . servletPath = requestPath ; } } else { this . servletPath = PathNormalizer . asPat... |
public class Tuple7 { /** * Shallow tuple copy .
* @ return A new Tuple with the same fields as this . */
@ Override @ SuppressWarnings ( "unchecked" ) public Tuple7 < T0 , T1 , T2 , T3 , T4 , T5 , T6 > copy ( ) { } } | return new Tuple7 < > ( this . f0 , this . f1 , this . f2 , this . f3 , this . f4 , this . f5 , this . f6 ) ; |
public class LazyMultiLoaderWithInclude { /** * Loads the specified id . */
@ SuppressWarnings ( "unchecked" ) @ Override public < TResult > Lazy < TResult > load ( Class < TResult > clazz , String id ) { } } | Lazy < Map < String , TResult > > results = _session . lazyLoadInternal ( clazz , new String [ ] { id } , _includes . toArray ( new String [ 0 ] ) , null ) ; return new Lazy ( ( ) -> results . getValue ( ) . values ( ) . iterator ( ) . next ( ) ) ; |
public class DatabasesInner { /** * Exports a database .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param serverName The name of the server .
* @ param databaseName The name of the databa... | return exportWithServiceResponseAsync ( resourceGroupName , serverName , databaseName , parameters ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class FilteredTreeModel { /** * Initialize this tree model */
private void init ( ) { } } | TreeNode delegateRoot = null ; if ( delegate != null ) { delegateRoot = ( TreeNode ) delegate . getRoot ( ) ; } thisToDelegate . clear ( ) ; delegateToThis . clear ( ) ; if ( delegateRoot == null ) { root = null ; return ; } root = createNode ( delegateRoot ) ; |
public class ClassUtils { /** * < p > Checks if one { @ code Class } can be assigned to a variable of
* another { @ code Class } . < / p >
* < p > Unlike the { @ link Class # isAssignableFrom ( Class ) } method ,
* this method takes into account widenings of primitive classes and
* { @ code null } s . < / p >
... | if ( toClass == null ) { return false ; } // have to check for null , as isAssignableFrom doesn ' t
if ( cls == null ) { return ! toClass . isPrimitive ( ) ; } // autoboxing :
if ( autoboxing ) { if ( cls . isPrimitive ( ) && ! toClass . isPrimitive ( ) ) { cls = primitiveToWrapper ( cls ) ; if ( cls == null ) { return... |
public class SOABaseProperties { /** * - - Subjects */
public void setSubjects ( Set < String > subjects ) { } } | Validate . notNull ( subjects ) ; if ( subjects . isEmpty ( ) ) { return ; } Validate . noNullElements ( subjects ) ; setProperty ( SOABaseProperty . SUBJECTS , ArrayUtils . toString ( encapsulateValues ( subjects ) ) ) ; |
public class JSONUtils { /** * Creates a new MorphDynaBean from a JSONObject . The MorphDynaBean will have
* all the properties of the original JSONObject with the most accurate type .
* Values of properties are not copied . */
public static DynaBean newDynaBean ( JSONObject jsonObject , JsonConfig jsonConfig ) { }... | Map props = getProperties ( jsonObject ) ; for ( Iterator entries = props . entrySet ( ) . iterator ( ) ; entries . hasNext ( ) ; ) { Map . Entry entry = ( Map . Entry ) entries . next ( ) ; String key = ( String ) entry . getKey ( ) ; if ( ! JSONUtils . isJavaIdentifier ( key ) ) { String parsedKey = JSONUtils . conve... |
public class Configuration { /** * Sets difference listener */
public Configuration withDifferenceListener ( DifferenceListener differenceListener ) { } } | return new Configuration ( tolerance , options , ignorePlaceholder , matchers , pathsToBeIgnored , differenceListener ) ; |
public class EmojiManager { /** * Tests if a given String is an emoji .
* @ param string the string to test
* @ return true if the string is an emoji ' s unicode , false else */
public static boolean isEmoji ( String string ) { } } | if ( string == null ) return false ; EmojiParser . UnicodeCandidate unicodeCandidate = EmojiParser . getNextUnicodeCandidate ( string . toCharArray ( ) , 0 ) ; return unicodeCandidate != null && unicodeCandidate . getEmojiStartIndex ( ) == 0 && unicodeCandidate . getFitzpatrickEndIndex ( ) == string . length ( ) ; |
public class StringBasedKeyValue { /** * Returns the { @ link String value } as an instance of the given { @ link Class type } .
* @ param < T > { @ link Class type } used in the conversion of the { @ link String value } .
* @ param type { @ link Class type } used in the conversion of the { @ link String value } . ... | return getValue ( ) . filter ( StringUtils :: hasText ) . map ( value -> getConversionService ( ) . convert ( value , type ) ) ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcWorkCalendar ( ) { } } | if ( ifcWorkCalendarEClass == null ) { ifcWorkCalendarEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 770 ) ; } return ifcWorkCalendarEClass ; |
public class PdfPCell { /** * Sets the cell event for this cell .
* @ param cellEvent the cell event */
public void setCellEvent ( PdfPCellEvent cellEvent ) { } } | if ( cellEvent == null ) this . cellEvent = null ; else if ( this . cellEvent == null ) this . cellEvent = cellEvent ; else if ( this . cellEvent instanceof PdfPCellEventForwarder ) ( ( PdfPCellEventForwarder ) this . cellEvent ) . addCellEvent ( cellEvent ) ; else { PdfPCellEventForwarder forward = new PdfPCellEventFo... |
public class NetworkMonitor { /** * Returns MAC Address of WiFi Adapter < br >
* Requires READ _ PHONE _ STATE , ACCESS _ NETWORK _ STATE and ACCESS _ WIFI _ STATE
* permissions < br >
* @ return String representing MAC Address of WiFi Adapter ; Empty String in
* some cases such as No WiFi Adapter is installed ... | WifiManager wifiMan = ( WifiManager ) context . getSystemService ( Context . WIFI_SERVICE ) ; if ( wifiMan != null ) { WifiInfo wifiInf = wifiMan . getConnectionInfo ( ) ; return wifiInf . getMacAddress ( ) ; } return "" ; |
public class AttributeImpl { /** * set the read value
* @ throws DevFailed */
@ Override public void updateValue ( final AttributeValue inValue ) throws DevFailed { } } | xlogger . entry ( getName ( ) ) ; // final Profiler profilerPeriod = new Profiler ( " read attribute " + name ) ;
// profilerPeriod . start ( " in " ) ;
if ( inValue == null ) { throw DevFailedUtils . newDevFailed ( ExceptionMessages . ATTR_VALUE_NOT_SET , name + " read value has not been updated" ) ; } try { // copy v... |
public class PFMHeaderParser { /** * Samples are 1 or 3 samples / pixels , interleaved , IEEE 32 bit floating point values */
@ Override public PNMHeader parse ( ) throws IOException { } } | int width = 0 ; int height = 0 ; float maxSample = tupleType == TupleType . BLACKANDWHITE_WHITE_IS_ZERO ? 1 : 0 ; // PBM has no maxSample line
List < String > comments = new ArrayList < String > ( ) ; while ( width == 0 || height == 0 || maxSample == 0 ) { String line = input . readLine ( ) ; if ( line == null ) { thro... |
public class PersistentExecutorImpl { /** * { @ inheritDoc } */
@ Override public boolean remove ( long taskId ) { } } | String owner = getOwner ( ) ; if ( owner == null ) return false ; TransactionController tranController = new TransactionController ( ) ; boolean result = false ; try { tranController . preInvoke ( ) ; result = taskStore . remove ( taskId , owner , true ) ; } catch ( Throwable x ) { tranController . setFailure ( x ) ; }... |
public class FaultRootCauseEntityMarshaller { /** * Marshall the given parameter object . */
public void marshall ( FaultRootCauseEntity faultRootCauseEntity , ProtocolMarshaller protocolMarshaller ) { } } | if ( faultRootCauseEntity == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( faultRootCauseEntity . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( faultRootCauseEntity . getExceptions ( ) , EXCEPTIONS_BINDING ) ; protocolMars... |
public class ClustersInner { /** * Gets the gateway settings for the specified cluster .
* @ param resourceGroupName The name of the resource group .
* @ param clusterName The name of the cluster .
* @ param serviceCallback the async ServiceCallback to handle successful and failed responses .
* @ throws Illegal... | return ServiceFuture . fromResponse ( getGatewaySettingsWithServiceResponseAsync ( resourceGroupName , clusterName ) , serviceCallback ) ; |
public class OracleNoSQLClient { /** * Initialize entity .
* @ param key
* the key
* @ param entityMetadata
* the entity metadata
* @ return the object
* @ throws InstantiationException
* the instantiation exception
* @ throws IllegalAccessException
* the illegal access exception */
private Object ini... | Object entity = null ; entity = entityMetadata . getEntityClazz ( ) . newInstance ( ) ; if ( key != null ) { PropertyAccessorHelper . setId ( entity , entityMetadata , key ) ; } return entity ; |
public class LocalDate { /** * Converts this LocalDate to a full datetime at midnight using the
* specified time zone .
* This method will throw an exception if the time zone switches
* to Daylight Savings Time at midnight and this LocalDate represents
* that switchover date . The problem is that there is no su... | zone = DateTimeUtils . getZone ( zone ) ; Chronology chrono = getChronology ( ) . withZone ( zone ) ; return new DateTime ( getYear ( ) , getMonthOfYear ( ) , getDayOfMonth ( ) , 0 , 0 , 0 , 0 , chrono ) ; |
public class EbsConfiguration { /** * An array of Amazon EBS volume specifications attached to a cluster instance .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setEbsBlockDeviceConfigs ( java . util . Collection ) } or
* { @ link # withEbsBlockDeviceCon... | if ( this . ebsBlockDeviceConfigs == null ) { setEbsBlockDeviceConfigs ( new com . amazonaws . internal . SdkInternalList < EbsBlockDeviceConfig > ( ebsBlockDeviceConfigs . length ) ) ; } for ( EbsBlockDeviceConfig ele : ebsBlockDeviceConfigs ) { this . ebsBlockDeviceConfigs . add ( ele ) ; } return this ; |
public class AppServiceEnvironmentsInner { /** * Move an App Service Environment to a different VNET .
* Move an App Service Environment to a different VNET .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail the... | ServiceResponse < Page < SiteInner > > response = beginChangeVnetNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) ; return new PagedList < SiteInner > ( response . body ( ) ) { @ Override public Page < SiteInner > nextPage ( String nextPageLink ) { return beginChangeVnetNextSinglePageAsync ( nextPageL... |
public class SourceManager { /** * Method to add a subscriber to the source
* Source manager will allocate a buffer when the source has
* atleast one subscriber .
* @ param handler The handler that is to be added as subscriber */
public void addSubscriber ( Handler handler ) { } } | String handlerId = CollectorManagerUtils . getHandlerId ( handler ) ; // temporary exception for audit Source / / must change later
if ( source . getSourceName ( ) . trim ( ) . equals ( "audit" ) && subscribers . isEmpty ( ) ) { // First subscriber , assign a buffer .
bufferMgr = new BufferManagerImpl ( BUFFER_SIZE , s... |
public class Syntax { /** * Translate specification .
* @ return null for errors . */
public Parser translate ( int k , int threadCount , Output output ) throws GenericException { } } | FABuilder builder ; long started ; PDA pda ; ParserTable parserTable ; Map < Integer , PrefixSet > firsts ; ScannerFactory scannerFactory ; IntBitSet usedTerminals ; IntBitSet usedSymbols ; int symbolCount ; StringArrayList symbolTable ; ConflictHandler handler ; ConflictResolver [ ] resolvers ; started = System . curr... |
public class Fresco { /** * Initializes Fresco with the default Drawee config . */
public static void initialize ( Context context , @ Nullable ImagePipelineConfig imagePipelineConfig ) { } } | initialize ( context , imagePipelineConfig , null ) ; |
public class AbstractLoginServlet { /** * 设置跳转到登录页面时的 < code > state < / code > 参数 。
* 默认生成一串随机 { @ link UUID } , 并去掉 ' - ' 符号作为 < code > state < / code > 。
* @ see # checkOauth2LoginState ( HttpServletRequest , HttpServletResponse ) */
protected String setOauth2LoginState ( HttpServletRequest req , HttpServletResp... | String state = UUID . randomUUID ( ) . toString ( ) . replace ( "-" , "" ) ; req . getSession ( ) . setAttribute ( "oauth2_login_state" , state ) ; authzEndpoint = Urls . appendQueryString ( authzEndpoint , "state" , state ) ; return authzEndpoint ; |
public class ResultLatch { /** * Await up to a maximum time for the result
* @ param maxWait max wait time
* @ param timeUnit time unit
* @ return the result
* @ throws Exception errors */
public ResultValue awaitResult ( long maxWait , TimeUnit timeUnit ) throws Exception { } } | if ( ! await ( maxWait , timeUnit ) ) { throw new TimeoutException ( ) ; } return getResultValue ( ) ; |
public class LSSerializerImpl { /** * Serializes the specified node to the specified URI and returns true if the Node
* was successfully serialized .
* @ see org . w3c . dom . ls . LSSerializer # writeToURI ( org . w3c . dom . Node , String )
* @ since DOM Level 3
* @ param nodeArg The Node to serialize .
* @... | // If nodeArg is null , return false . Should we throw and LSException instead ?
if ( nodeArg == null ) { return false ; } // Obtain a reference to the serializer to use
Serializer serializer = fXMLSerializer ; serializer . reset ( ) ; if ( nodeArg != fVisitedNode ) { // Determine the XML Document version of the Node
S... |
public class Client { /** * Verifies a one - time password ( OTP ) value provided for a second factor when multi - factor authentication ( MFA ) is required for SAML authentication .
* @ param appId
* App ID of the app for which you want to generate a SAML token
* @ param devideId
* Provide the MFA device _ id ... | return getSAMLAssertionVerifying ( appId , devideId , stateToken , otpToken , null ) ; |
public class WsocChain { /** * Initialize this chain manager : Channel and chain names shouldn ' t fluctuate as config changes ,
* so come up with names associated with this set of channels / chains that will be reused regardless
* of start / stop / enable / disable / modify
* @ param endpointId The id of the htt... | tcpName = "TCP-" + chainId ; sslName = "SSL-" + chainId ; httpName = "HTTP-" + chainId ; chainName = chainId ; this . cfw = cfw ; // If there is a chain that is in the CFW with this name , it was potentially
// left over from a previous instance of the endpoint . There is no way to get
// the state of the existing ( ol... |
public class ConceptDrawProjectReader { /** * Read a task relationship .
* @ param link ConceptDraw PROJECT task link */
private void readRelationship ( Link link ) { } } | Task sourceTask = m_taskIdMap . get ( link . getSourceTaskID ( ) ) ; Task destinationTask = m_taskIdMap . get ( link . getDestinationTaskID ( ) ) ; if ( sourceTask != null && destinationTask != null ) { Duration lag = getDuration ( link . getLagUnit ( ) , link . getLag ( ) ) ; RelationType type = link . getType ( ) ; R... |
public class PagerRenderer { /** * Build an HTML anchor that contains URL state for navigating to the previous page of a data set . The
* previous page is calculated relative to the current location in the { @ link PagerModel }
* @ return the HTML markup for anchor to the previous page */
protected String buildLive... | InternalStringBuilder builder = new InternalStringBuilder ( ) ; AbstractRenderAppender appender = new StringBuilderRenderAppender ( builder ) ; buildAnchor ( appender , _gridModel . getUrlBuilder ( ) . getQueryParamsForPreviousPage ( ) , IDataGridMessageKeys . PAGER_MSG_PREVIOUS ) ; return builder . toString ( ) ; |
public class StreamsUtils { /** * < p > Generates a stream composed of the N greatest different values of the provided stream , compared using the
* provided comparator . If there are no duplicates in the provided stream , then the returned stream will have
* N values , assuming that the input stream has more than ... | Objects . requireNonNull ( stream ) ; Objects . requireNonNull ( comparator ) ; FilteringMaxKeysSpliterator < E > spliterator = FilteringMaxKeysSpliterator . of ( stream . spliterator ( ) , numberOfMaxes , comparator ) ; return StreamSupport . stream ( spliterator , stream . isParallel ( ) ) . onClose ( stream :: close... |
public class ClassGraph { /** * Dot prologue
* @ throws IOException */
public void prologue ( ) throws IOException { } } | Options opt = optionProvider . getGlobalOptions ( ) ; OutputStream os ; if ( opt . outputFileName . equals ( "-" ) ) os = System . out ; else { // prepare output file . Use the output file name as a full path unless the output
// directory is specified
File file = new File ( opt . outputDirectory , opt . outputFileName... |
public class ICUResourceBundle { /** * will throw type mismatch exception if the resource is not a string */
public String getStringWithFallback ( String path ) throws MissingResourceException { } } | // Optimized form of getWithFallback ( path ) . getString ( ) ;
ICUResourceBundle actualBundle = this ; String result = findStringWithFallback ( path , actualBundle , null ) ; if ( result == null ) { throw new MissingResourceException ( "Can't find resource for bundle " + this . getClass ( ) . getName ( ) + ", key " + ... |
public class Call { /** * Factor method for Call list , returns a list of Call objects with page , size preference
* @ param page the page
* @ param size the page size
* @ return the list
* @ throws IOException unexpected error . */
public static ResourceList < Call > list ( final int page , final int size ) th... | return list ( BandwidthClient . getInstance ( ) , page , size ) ; |
public class SerializerScopeProvider { /** * which is quite hard anyway . . . */
public IScope createFeatureCallSerializationScope ( EObject context ) { } } | if ( ! ( context instanceof XAbstractFeatureCall ) ) { return IScope . NULLSCOPE ; } XAbstractFeatureCall call = ( XAbstractFeatureCall ) context ; JvmIdentifiableElement feature = call . getFeature ( ) ; // this and super - logical container aware FeatureScopes
if ( feature instanceof JvmType ) { return getTypeScope (... |
public class Curve { /** * compute a Catmull - Rom spline , but with variable knot spacing .
* @ param x the input parameter
* @ param numKnots the number of knots in the spline
* @ param xknots the array of knot x values
* @ param yknots the array of knot y values
* @ return the spline value */
public static... | int span ; int numSpans = numKnots - 3 ; float k0 , k1 , k2 , k3 ; float c0 , c1 , c2 , c3 ; if ( numSpans < 1 ) throw new IllegalArgumentException ( "Too few knots in spline" ) ; for ( span = 0 ; span < numSpans ; span ++ ) if ( xknots [ span + 1 ] > x ) break ; if ( span > numKnots - 3 ) span = numKnots - 3 ; float t... |
public class ObjectOutputStream { /** * Write String { @ code object } into the receiver . It is assumed the
* String has not been dumped yet . Returns the handle for this object ( String ) which is dumped here .
* Strings are saved encoded with { @ link DataInput modified UTF - 8 } .
* @ param object
* the str... | long count = ModifiedUtf8 . countBytes ( object , false ) ; byte [ ] buffer ; int offset = 0 ; if ( count <= 0xffff ) { buffer = new byte [ 1 + SizeOf . SHORT + ( int ) count ] ; buffer [ offset ++ ] = TC_STRING ; Memory . pokeShort ( buffer , offset , ( short ) count , ByteOrder . BIG_ENDIAN ) ; offset += SizeOf . SHO... |
public class ProtoFileParser { /** * Extensions */
@ Override public void exitExtensions ( final ExtensionsContext ctx ) { } } | final Integer extensionStart = Integer . decode ( ctx . fieldNumber ( ) . getText ( ) ) ; final ExtensionRangeEndContext extensionRangeEnd = ctx . extensionRangeEnd ( ) ; final Integer extensionEnd ; if ( extensionRangeEnd == null ) { extensionEnd = extensionStart ; } else { final FieldNumberContext fieldNumber = exten... |
public class ZipOutputStream { /** * Closes the current ZIP entry and positions the stream for writing
* the next entry .
* @ exception ZipException if a ZIP format error has occurred
* @ exception IOException if an I / O error has occurred */
public void closeEntry ( ) throws IOException { } } | ensureOpen ( ) ; if ( current != null ) { ZipEntry e = current . entry ; switch ( e . method ) { case DEFLATED : def . finish ( ) ; while ( ! def . finished ( ) ) { deflate ( ) ; } if ( ( e . flag & 8 ) == 0 ) { // verify size , compressed size , and crc - 32 settings
if ( e . size != def . getBytesRead ( ) ) { throw n... |
public class AbstractMultiCommand { /** * { @ inheritDoc } */
@ Override public final void ready ( ) throws CoreException { } } | synchronized ( this ) { this . subCommandList = defineSubCommand ( ) ; if ( this . subCommandList == null || this . subCommandList . isEmpty ( ) ) { throw new CoreRuntimeException ( "Warning, 'defineSubCommand' should return at least one Command Key." ) ; } for ( final UniqueKey < ? extends Command > commandKey : this ... |
public class SearchTransitGatewayRoutesRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional
* parameters to enable operation dry - run . */
@ Override public Request < SearchTransitGatewayRoutesRequest > getDryRunRequest ( ) { } } | Request < SearchTransitGatewayRoutesRequest > request = new SearchTransitGatewayRoutesRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ; |
public class EmailIntentSender { /** * Finds the package name of the default email client supporting attachments
* @ param resolveActivity the resolved activity
* @ param initialIntents a list of intents to be used when
* @ return package name of the default email client , or null if more than one app match */
@ ... | String packageName = resolveActivity . getPackageName ( ) ; if ( packageName . equals ( "android" ) ) { // multiple activities support the intent and no default is set
if ( initialIntents . size ( ) > 1 ) { packageName = null ; } else if ( initialIntents . size ( ) == 1 ) { // only one of them supports attachments , us... |
public class SerDeserializers { /** * loads a single rename file */
private static List < String > loadRenameFile ( URL url ) throws IOException { } } | try ( BufferedReader reader = new BufferedReader ( new InputStreamReader ( url . openStream ( ) , UTF_8 ) ) ) { return reader . lines ( ) . filter ( line -> ! line . isEmpty ( ) && ! line . startsWith ( "#" ) ) . collect ( toList ( ) ) ; } |
public class GuildManager { /** * Sets the Splash { @ link net . dv8tion . jda . core . entities . Icon Icon } of this { @ link net . dv8tion . jda . core . entities . Guild Guild } .
* @ param splash
* The new splash for this { @ link net . dv8tion . jda . core . entities . Guild Guild }
* or { @ code null } to ... | Checks . check ( splash == null || getGuild ( ) . getFeatures ( ) . contains ( "INVITE_SPLASH" ) , "Cannot set a splash on this guild" ) ; this . splash = splash ; set |= SPLASH ; return this ; |
public class AgentSession { /** * Query for metadata associated with a session id .
* @ param sessionID the sessionID to query for .
* @ return Map a map of all metadata associated with the sessionID .
* @ throws XMPPException if an error occurs while getting information from the server .
* @ throws NotConnecte... | ChatMetadata request = new ChatMetadata ( ) ; request . setType ( IQ . Type . get ) ; request . setTo ( workgroupJID ) ; request . setSessionID ( sessionID ) ; ChatMetadata response = connection . createStanzaCollectorAndSend ( request ) . nextResult ( ) ; return response . getMetadata ( ) ; |
public class LocationDirector { /** * Subscribe to the PlaceObject identified by _ placeId and
* call { @ link # gotPlaceObject } with the result . */
protected void subscribeToPlace ( ) { } } | _subber = new SafeSubscriber < PlaceObject > ( _placeId , new Subscriber < PlaceObject > ( ) { public void objectAvailable ( PlaceObject object ) { gotPlaceObject ( object ) ; } public void requestFailed ( int oid , ObjectAccessException cause ) { // aiya ! we were unable to fetch our new place object ; something is ba... |
public class TextOrientationImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setBAxis ( Integer newBAxis ) { } } | Integer oldBAxis = bAxis ; bAxis = newBAxis ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . TEXT_ORIENTATION__BAXIS , oldBAxis , bAxis ) ) ; |
public class ClassSourceImpl { /** * < p > Attempt to process a specified class . Answer whether processing was handed
* successfully by the streamer via { @ link ClassSource _ Streamer # process ( String , InputStream , boolean , boolean , boolean ) } . < / p >
* < p > A failure ( false ) result occurs the class i... | String methodName = "scanClass" ; Object [ ] logParms ; if ( tc . isEntryEnabled ( ) ) { logParms = new Object [ ] { getHashText ( ) , className } ; Tr . entry ( tc , methodName , MessageFormat . format ( "[ {0} ] Name [ {1} ]" , logParms ) ) ; } else { logParms = null ; } if ( ! streamer . doProcess ( className , scan... |
public class ByteArrayObjectDataInput { /** * See the general contract of the { @ code readUTF } method of { @ code DataInput } .
* Bytes for this operation are read from the contained input stream .
* @ return a Unicode string .
* @ throws java . io . EOFException if this input stream reaches the end before read... | int charCount = readInt ( ) ; if ( charCount == NULL_ARRAY_LENGTH ) { return null ; } if ( charBuffer == null || charCount > charBuffer . length ) { charBuffer = new char [ charCount ] ; } byte b ; for ( int i = 0 ; i < charCount ; i ++ ) { b = readByte ( ) ; if ( b < 0 ) { charBuffer [ i ] = Bits . readUtf8Char ( this... |
public class SimonBeanUtils { /** * Set property in object target . If values has type other than String setter method or field
* with specified type will be used to set value . If value has String type value will be converted
* using available converters . If conversion to all of the types accepted by setters fail... | NestedResolver resolver = new NestedResolver ( target , property ) ; if ( value instanceof String ) { convertStringValue ( resolver . getNestedTarget ( ) , resolver . getProperty ( ) , ( String ) value ) ; } else { setObjectValue ( resolver . getNestedTarget ( ) , resolver . getProperty ( ) , value ) ; } |
public class KieMavenRepository { /** * Installs the kjar in the given kieModule into the local repository .
* @ param releaseId The releaseId with which the kjar will be installed
* @ param kieModule The kieModule containing the kjar to be installed
* @ param pomfile The pom file to be installed together with th... | File jarFile = bytesToFile ( releaseId , kieModule . getBytes ( ) , ".jar" ) ; installArtifact ( releaseId , jarFile , pomfile ) ; |
public class WordNet { /** * Create caches of WordNet to speed up matching .
* @ param componentKey a key to the component in the configuration
* @ param properties configuration
* @ throws SMatchException SMatchException */
public static void createWordNetCaches ( String componentKey , Properties properties ) th... | properties = getComponentProperties ( makeComponentPrefix ( componentKey , WordNet . class . getSimpleName ( ) ) , properties ) ; if ( properties . containsKey ( JWNL_PROPERTIES_PATH_KEY ) ) { // initialize JWNL ( this must be done before JWNL library can be used )
try { final String configPath = properties . getProper... |
public class AbstractGpxParserWpt { /** * Fires whenever an XML start markup is encountered .
* @ param uri URI of the local element
* @ param localName Name of the local element ( without prefix )
* @ param qName qName of the local element ( with prefix )
* @ param attributes Attributes of the local element ( ... | // Clear content buffer
getContentBuffer ( ) . delete ( 0 , getContentBuffer ( ) . length ( ) ) ; // Store name of current element in stack
getElementNames ( ) . push ( qName ) ; |
public class AnalysisResults { /** * Get the IDs of the different searches that have been applied to solve the problem with the
* given ID ( unmodifiable view ) .
* @ param problemID ID of the problem
* @ return IDs of different searches applied to solve the problem
* @ throws UnknownIDException if an unknown p... | if ( ! results . containsKey ( problemID ) ) { throw new UnknownIDException ( "Unknown problem ID " + problemID + "." ) ; } return Collections . unmodifiableSet ( results . get ( problemID ) . keySet ( ) ) ; |
public class DescribeVpcClassicLinkDnsSupportRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional
* parameters to enable operation dry - run . */
@ Override public Request < DescribeVpcClassicLinkDnsSupportRequest > getDryRunRequest ( ) { } } | Request < DescribeVpcClassicLinkDnsSupportRequest > request = new DescribeVpcClassicLinkDnsSupportRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ; |
public class QClassEqual { /** * { @ inheritDoc } */
@ Override public QClassEqual prepare ( final AbstractTypeQuery _query , final AbstractQPart _part ) throws EFapsException { } } | getAttribute ( ) . prepare ( _query , this ) ; for ( final QClassValue value : this . values ) { value . prepare ( _query , this ) ; } return this ; |
public class ProjectTreeController { /** * Add columns to the tree .
* @ param parentNode parent tree node
* @ param table columns container */
private void addColumns ( MpxjTreeNode parentNode , Table table ) { } } | for ( Column column : table . getColumns ( ) ) { final Column c = column ; MpxjTreeNode childNode = new MpxjTreeNode ( column ) { @ Override public String toString ( ) { return c . getTitle ( ) ; } } ; parentNode . add ( childNode ) ; } |
public class Reflect { /** * Determines if a field with the given name is associated with the class
* @ param name The field name
* @ return True if there is a field with the given name */
public boolean containsField ( String name ) { } } | if ( StringUtils . isNullOrBlank ( name ) ) { return false ; } return ClassDescriptorCache . getInstance ( ) . getClassDescriptor ( clazz ) . getFields ( accessAll ) . stream ( ) . anyMatch ( f -> f . getName ( ) . equals ( name ) ) ; |
public class RuleHelper { /** * This method attempts to provide headers for the supplied target
* object .
* @ param type The target type
* @ param target The target instance
* @ return The header map */
public Map < String , String > getHeaders ( String type , Object target ) { } } | HeadersAccessor accessor = getHeadersAccessor ( type ) ; if ( accessor != null ) { Map < String , String > ret = accessor . getHeaders ( target ) ; return ret ; } return null ; |
public class BufferFastAggregation { /** * Compute overall AND between bitmaps two - by - two .
* This function runs in linear time with respect to the number of bitmaps .
* @ param bitmaps input bitmaps
* @ return aggregated bitmap */
public static MutableRoaringBitmap naive_and ( ImmutableRoaringBitmap ... bitm... | MutableRoaringBitmap answer ; if ( bitmaps . length > 0 ) { answer = ( bitmaps [ 0 ] ) . toMutableRoaringBitmap ( ) ; for ( int k = 1 ; k < bitmaps . length ; ++ k ) { answer = ImmutableRoaringBitmap . and ( answer , bitmaps [ k ] ) ; } } else { answer = new MutableRoaringBitmap ( ) ; } return answer ; |
public class LogFactory { /** * 获得日志对象
* @ param name 日志对象名
* @ return 日志对象 */
public Log getLog ( String name ) { } } | Log log = logCache . get ( name ) ; if ( null == log ) { log = createLog ( name ) ; logCache . put ( name , log ) ; } return log ; |
public class CalendarCodeGenerator { /** * Build a method to wrap a region in the regionFormat . */
private MethodSpec buildWrapTimeZoneRegionMethod ( TimeZoneData data ) { } } | MethodSpec . Builder method = MethodSpec . methodBuilder ( "wrapTimeZoneRegion" ) . addModifiers ( PROTECTED ) . addParameter ( StringBuilder . class , "b" ) . addParameter ( String . class , "region" ) ; List < Node > format = WRAPPER_PARSER . parseWrapper ( data . regionFormat ) ; for ( Node node : format ) { if ( no... |
public class DataOutputEncoder { @ Override public void writeString ( String str ) throws IOException { } } | byte [ ] bytes = Utf8 . getBytesFor ( str ) ; writeBytes ( bytes , 0 , bytes . length ) ; |
public class AbstractQueryFactory { /** * - - - - - protected methods - - - - - */
protected void checkOccur ( final T query , final Occurrence occ , final boolean first ) { } } | if ( ! first || occ . equals ( Occurrence . FORBIDDEN ) ) { addOccur ( query , occ , first ) ; } |
public class Result { /** * Create a Result class with " OK " status and " Success " for details
* This is the easiest to use
* @ param value
* @ param status
* @ return */
public static < R > Result < R > ok ( R value ) { } } | return new Result < R > ( value , OK , SUCCESS , null ) ; |
public class BuildContext { /** * This method associates a type definition to a path . These bindings are
* checked as part of the validation process . Note that there can be more
* than one binding per path .
* @ param path
* absolute path to bind to the type
* @ param fullType
* data type to use
* @ par... | assert ( path != null ) ; assert ( path . isAbsolute ( ) ) ; assert ( fullType != null ) ; // Must make sure that all of the subtypes for the given type are
// defined before adding the binding .
try { fullType . verifySubtypesDefined ( types ) ; } catch ( EvaluationException ee ) { throw ee . addExceptionInfo ( source... |
public class ExpandableDirectByteBuffer { public byte getByte ( final int index ) { } } | boundsCheck0 ( index , SIZE_OF_BYTE ) ; return UNSAFE . getByte ( null , address + index ) ; |
public class PipelineBuilder { /** * Adds a instance of expression to the pipeline .
* @ param mTransaction
* Transaction to operate with .
* @ param mSequenceType
* sequence type the context item should match . */
public void addInstanceOfExpr ( final INodeReadTrx mTransaction , final SequenceType mSequenceTyp... | assert getPipeStack ( ) . size ( ) >= 1 ; final AbsAxis candidate = getPipeStack ( ) . pop ( ) . getExpr ( ) ; final AbsAxis axis = new InstanceOfExpr ( mTransaction , candidate , mSequenceType ) ; if ( getPipeStack ( ) . empty ( ) || getExpression ( ) . getSize ( ) != 0 ) { addExpressionSingle ( ) ; } getExpression ( ... |
public class ArchetypeHelper { /** * This method should do a full Velocity macro processing . . . */
protected String removeInvalidHeaderCommentsAndProcessVelocityMacros ( String text ) { } } | String answer = "" ; String [ ] lines = text . split ( "\r?\n" ) ; for ( String line : lines ) { String l = line . trim ( ) ; // a bit of Velocity here
if ( ! l . startsWith ( "##" ) && ! l . startsWith ( "#set(" ) ) { if ( line . contains ( "${D}" ) ) { line = line . replaceAll ( "\\$\\{D\\}" , "\\$" ) ; } answer = an... |
public class StopRelationalDatabaseRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( StopRelationalDatabaseRequest stopRelationalDatabaseRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( stopRelationalDatabaseRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( stopRelationalDatabaseRequest . getRelationalDatabaseName ( ) , RELATIONALDATABASENAME_BINDING ) ; protocolMarshaller . marshall ( stopRelationalDatabaseRe... |
public class ACLProperties { /** * Transform owner got from node ' s { @ link AccessControlList }
* to tree like { @ link HierarchicalProperty } instance to use in PROPFIND response body
* @ param node
* @ return { @ link HierarchicalProperty } representation of node owner
* @ throws RepositoryException */
publ... | HierarchicalProperty ownerProperty = new HierarchicalProperty ( PropertyConstants . OWNER ) ; HierarchicalProperty href = new HierarchicalProperty ( new QName ( "DAV:" , "href" ) ) ; href . setValue ( node . getACL ( ) . getOwner ( ) ) ; ownerProperty . addChild ( href ) ; return ownerProperty ; |
public class InternalPureXbaseParser { /** * InternalPureXbase . g : 5910:1 : ruleJvmTypeReference returns [ EObject current = null ] : ( ( this _ JvmParameterizedTypeReference _ 0 = ruleJvmParameterizedTypeReference ( ( ( ( ) ruleArrayBrackets ) ) = > ( ( ) ruleArrayBrackets ) ) * ) | this _ XFunctionTypeRef _ 3 = rul... | EObject current = null ; EObject this_JvmParameterizedTypeReference_0 = null ; EObject this_XFunctionTypeRef_3 = null ; enterRule ( ) ; try { // InternalPureXbase . g : 5916:2 : ( ( ( this _ JvmParameterizedTypeReference _ 0 = ruleJvmParameterizedTypeReference ( ( ( ( ) ruleArrayBrackets ) ) = > ( ( ) ruleArrayBrackets... |
public class RequestContext { /** * Gets the request json object with the specified request .
* @ param request the specified request
* @ param response the specified response , sets its content type with " application / json "
* @ return a json object */
private static JSONObject parseRequestJSONObject ( final H... | response . setContentType ( "application/json" ) ; try { BufferedReader reader ; try { reader = request . getReader ( ) ; } catch ( final IllegalStateException illegalStateException ) { reader = new BufferedReader ( new InputStreamReader ( request . getInputStream ( ) ) ) ; } String tmp = IOUtils . toString ( reader ) ... |
public class WebSiteManagementClientImpl { /** * Get a list of available geographical regions .
* Get a list of available geographical regions .
* ServiceResponse < PageImpl < GeoRegionInner > > * @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentExc... | if ( nextPageLink == null ) { throw new IllegalArgumentException ( "Parameter nextPageLink is required and cannot be null." ) ; } String nextUrl = String . format ( "%s" , nextPageLink ) ; return service . listGeoRegionsNext ( nextUrl , this . acceptLanguage ( ) , this . userAgent ( ) ) . flatMap ( new Func1 < Response... |
public class MybatisAuditingHandler { /** * Setter to inject a { @ code AuditorAware } component to retrieve the current auditor .
* @ param auditorAware must not be { @ literal null } . */
public void setAuditorAware ( AuditorAware < ? > auditorAware ) { } } | Assert . notNull ( auditorAware , "AuditorAware must not be null!" ) ; this . auditorAware = Optional . of ( auditorAware ) ; |
public class TokenList { /** * Removes elements from begin to end from the list , inclusive . Returns a new list which
* is composed of the removed elements */
public TokenList extractSubList ( Token begin , Token end ) { } } | if ( begin == end ) { remove ( begin ) ; return new TokenList ( begin , begin ) ; } else { if ( first == begin ) { first = end . next ; } if ( last == end ) { last = begin . previous ; } if ( begin . previous != null ) { begin . previous . next = end . next ; } if ( end . next != null ) { end . next . previous = begin ... |
public class SyntaxDE { /** * < @ internal @ brief contains the value of the DE in human readable format */
private void initData ( String x , int minsize , int maxsize ) { } } | content = null ; setContent ( x , minsize , maxsize ) ; |
public class SEDProcessor { /** * Finds and returns the start of the given sequence after trimming
* whitespace characters from the left .
* @ param s
* the character sequence
* @ return the index containing the first non - whitespace character , or the
* length of the character sequence if all characters are... | final int len = s . length ( ) ; for ( int i = 0 ; i < len ; i ++ ) { if ( ! Character . isWhitespace ( s . charAt ( i ) ) ) { return i ; } } return len ; |
public class PresentationManager { /** * Generate a warn entry on the local logger
* @ param o Object to log */
public void warn ( Object o ) { } } | if ( o instanceof Throwable ) { logger . warn ( o , ( Throwable ) o ) ; } else { logger . warn ( o ) ; } |
public class ImageHeaderReaderAbstract { /** * ImageHeaderReader */
@ Override public boolean is ( Media media ) { } } | Check . notNull ( media ) ; for ( final HeaderProvider provider : providers ) { try ( InputStream input = media . getInputStream ( ) ) { if ( checkHeader ( input , provider . getHeader ( ) ) ) { return true ; } } catch ( final IOException exception ) { Verbose . exception ( exception ) ; } } return false ; |
public class ApiOvhMe { /** * Validate your U2F account
* REST : POST / me / accessRestriction / u2f / { id } / validate
* @ param registrationData [ required ]
* @ param clientData [ required ]
* @ param id [ required ] The Id of the restriction */
public void accessRestriction_u2f_id_validate_POST ( Long id ,... | String qPath = "/me/accessRestriction/u2f/{id}/validate" ; StringBuilder sb = path ( qPath , id ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "clientData" , clientData ) ; addBody ( o , "registrationData" , registrationData ) ; exec ( qPath , "POST" , sb . toString ( ) , o ) ; |
public class Config { /** * Create broken config for DbKit . brokenConfig = Config . createBrokenConfig ( ) ; */
static Config createBrokenConfig ( ) { } } | Config ret = new Config ( ) ; ret . dialect = new MysqlDialect ( ) ; ret . showSql = false ; ret . devMode = false ; ret . transactionLevel = DbKit . DEFAULT_TRANSACTION_LEVEL ; ret . containerFactory = IContainerFactory . defaultContainerFactory ; ret . cache = new EhCache ( ) ; return ret ; |
public class Actions { /** * Moves the mouse to the middle of the element . The element is scrolled into view and its
* location is calculated using getBoundingClientRect .
* @ param target element to move to .
* @ return A self reference . */
public Actions moveToElement ( WebElement target ) { } } | if ( isBuildingActions ( ) ) { action . addAction ( new MoveMouseAction ( jsonMouse , ( Locatable ) target ) ) ; } return moveInTicks ( target , 0 , 0 ) ; |
public class AuthActivity { /** * Create an intent which can be sent to this activity to start OAuth 2 authentication .
* @ param context the source context
* @ param appKey the consumer key for the app
* @ param desiredUid Encourage user to authenticate account defined by this uid .
* ( note that user still ca... | if ( appKey == null ) throw new IllegalArgumentException ( "'appKey' can't be null" ) ; setAuthParams ( appKey , desiredUid , alreadyAuthedUids , sessionId , webHost , apiType ) ; return new Intent ( context , AuthActivity . class ) ; |
public class Normalizer { /** * Normalizes double and ambiguous quotes according to language and corpus .
* @ param sentence
* the list of tokens
* @ param lang
* the language */
public static void normalizeDoubleQuotes ( final List < Token > sentence , final String lang ) { } } | boolean isLeft = true ; for ( int i = 0 ; i < sentence . size ( ) ; i ++ ) { if ( lang . equalsIgnoreCase ( "en" ) ) { final Matcher doubleAsciiQuoteMatcher = doubleAsciiQuote . matcher ( sentence . get ( i ) . getTokenValue ( ) ) ; final Matcher singleAsciiQuoteMatcher = singleAsciiQuote . matcher ( sentence . get ( i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.