signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ProtobufIDLProxy { /** * Creates the enum classes .
* @ param enumTypes the enum types
* @ param packageMapping the package mapping
* @ param generateSouceOnly the generate souce only
* @ param sourceOutputDir the source output dir
* @ param compiledClass the compiled class
* @ param mappedUniN... | List < Class < ? > > ret = new ArrayList < Class < ? > > ( ) ; Set < String > enumNames = new HashSet < String > ( ) ; Collection < EnumElement > enums = enumTypes . values ( ) ; for ( EnumElement enumType : enums ) { String name = enumType . name ( ) ; if ( enumNames . contains ( name ) ) { continue ; } enumNames . ad... |
public class DefaultRuntimeSpringConfiguration { /** * Initialises the ApplicationContext instance . */
protected void initialiseApplicationContext ( ) { } } | if ( context != null ) { return ; } context = createApplicationContext ( parent ) ; if ( parent != null && classLoader == null ) { trySettingClassLoaderOnContextIfFoundInParent ( parent ) ; } else if ( classLoader != null ) { setClassLoaderOnContext ( classLoader ) ; } Assert . notNull ( context , "ApplicationContext c... |
public class ExpressionUtil { /** * write out expression without LNT
* @ param value
* @ param bc
* @ param mode
* @ throws TransformerException */
public static void writeOutSilent ( Expression value , BytecodeContext bc , int mode ) throws TransformerException { } } | Position start = value . getStart ( ) ; Position end = value . getEnd ( ) ; value . setStart ( null ) ; value . setEnd ( null ) ; value . writeOut ( bc , mode ) ; value . setStart ( start ) ; value . setEnd ( end ) ; |
public class UpdateRateBasedRuleRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UpdateRateBasedRuleRequest updateRateBasedRuleRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( updateRateBasedRuleRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateRateBasedRuleRequest . getRuleId ( ) , RULEID_BINDING ) ; protocolMarshaller . marshall ( updateRateBasedRuleRequest . getChangeToken ( ) , CHANGETOKEN_... |
public class PartitionBalanceUtils { /** * Prints the details of cluster xml in various formats . Some information is
* repeated in different forms . This is intentional so that it is easy to
* find the specific view of the cluster xml that you want .
* @ param cluster
* @ return pretty string of cluster balanc... | StringBuilder builder = new StringBuilder ( ) ; builder . append ( "CLUSTER XML SUMMARY\n" ) ; Map < Integer , Integer > zoneIdToPartitionCount = Maps . newHashMap ( ) ; Map < Integer , Integer > zoneIdToNodeCount = Maps . newHashMap ( ) ; for ( Zone zone : cluster . getZones ( ) ) { zoneIdToPartitionCount . put ( zone... |
public class SpiLoadUtil { /** * Method that conveniently turn the { @ code Iterable } s returned by the other methods in this class to a
* { @ code List } .
* @ see # findServices ( Class )
* @ see # findServices ( Class , ClassLoader ) */
public static < T > List < T > readAllFromIterator ( Iterable < T > findS... | List < T > list = new ArrayList < T > ( ) ; for ( T t : findServices ) list . add ( t ) ; return list ; |
public class IfcHeaderImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) @ Override public EList < String > getAuthor ( ) { } } | return ( EList < String > ) eGet ( StorePackage . Literals . IFC_HEADER__AUTHOR , true ) ; |
public class GridActivity { /** * 刷新数据 */
private void refresh ( ) { } } | mDataList = new ArrayList < > ( ) ; for ( int i = 0 ; i < 100 ; i ++ ) { Group group = new Group ( ) ; group . setName ( "我是爸爸,我的号是 " + i ) ; group . setMemberList ( new ArrayList < GroupMember > ( ) ) ; for ( int j = 0 ; j < 10 ; j ++ ) { GroupMember member = new GroupMember ( ) ; member . setName ( "我是儿子,我的号是 " + j )... |
public class NotABundleResourceURLConnection { /** * Simple little helper to get a unique string key for any bundle .
* Currently uses the string form of the url for META - INF / MANIFEST . MF */
private final static String getManifestKeyForBundle ( Bundle owningBundle ) { } } | URL manifestKeyURL = owningBundle . getEntry ( MANIFESTPATH ) ; if ( manifestKeyURL == null ) { // ' bundle ' did not have a manifest .
throw new IllegalArgumentException ( owningBundle . getSymbolicName ( ) ) ; } String manifestKey = manifestKeyURL . toExternalForm ( ) ; return manifestKey ; |
public class LLogicalOpDelta { /** * < editor - fold desc = " object " > */
public static boolean argEquals ( LLogicalOpDelta the , Object that ) { } } | return Null . < LLogicalOpDelta > equals ( the , that , ( one , two ) -> { if ( one . getClass ( ) != two . getClass ( ) ) { return false ; } LLogicalOpDelta other = ( LLogicalOpDelta ) two ; return LBiObjBoolTriple . argEquals ( one . function , one . deltaFunction , one . lastValue ( ) , other . function , other . de... |
public class SecurityPolicyClient { /** * Deletes the specified policy .
* < p > Sample code :
* < pre > < code >
* try ( SecurityPolicyClient securityPolicyClient = SecurityPolicyClient . create ( ) ) {
* ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName . of ( " [ PROJECT ] " , ... | DeleteSecurityPolicyHttpRequest request = DeleteSecurityPolicyHttpRequest . newBuilder ( ) . setSecurityPolicy ( securityPolicy == null ? null : securityPolicy . toString ( ) ) . build ( ) ; return deleteSecurityPolicy ( request ) ; |
public class CSSReader { /** * Read the CSS from the passed String using a character stream . An eventually
* contained < code > @ charset < / code > rule is ignored .
* @ param sCSS
* The source string containing the CSS to be parsed . May not be
* < code > null < / code > .
* @ param eVersion
* The CSS ve... | return readFromStringReader ( sCSS , new CSSReaderSettings ( ) . setCSSVersion ( eVersion ) . setCustomErrorHandler ( aCustomErrorHandler ) ) ; |
public class PredicateExpression { /** * Matches an array value if it contains all the elements of the argument array
* @ param rhs The arguments
* @ return PredicateExpression : $ all rhs */
public static PredicateExpression all ( Object ... rhs ) { } } | PredicateExpression ex = new PredicateExpression ( "$all" , rhs ) ; if ( rhs . length == 1 ) { ex . single = true ; } return ex ; |
public class ClassLocator { /** * Checks whether the " otherclass " is a subclass of the given " superclass " .
* @ param superclass the superclass to check against
* @ param otherclass this class is checked whether it is a subclass
* of the the superclass
* @ return TRUE if " otherclass " is a true subclass */... | String key ; key = superclass + "-" + otherclass ; if ( m_CheckSubClass . containsKey ( key ) ) return m_CheckSubClass . get ( key ) ; try { return isSubclass ( Class . forName ( superclass ) , Class . forName ( otherclass ) ) ; } catch ( Throwable t ) { return false ; } |
public class DateArrayProperty { /** * - - - - - private methods - - - - - */
private Date [ ] convertLongArrayToDateArray ( final Long [ ] source ) { } } | final ArrayList < Date > result = new ArrayList < > ( ) ; for ( final Long o : source ) { result . add ( new Date ( o ) ) ; } return ( Date [ ] ) result . toArray ( new Date [ result . size ( ) ] ) ; |
public class JDBCResultSetMetaData { /** * < ! - - start generic documentation - - >
* Gets the designated column ' s number of digits to right of the decimal point .
* 0 is returned for data types where the scale is not applicable .
* < ! - - end generic documentation - - >
* < ! - - start Release - specific d... | Type type = resultMetaData . columnTypes [ -- column ] ; return type . scale ; |
public class XLogger { /** * Log an exception being caught . The generated log event uses Level ERROR .
* @ param throwable
* the exception being caught . */
public void catching ( Throwable throwable ) { } } | if ( instanceofLAL ) { ( ( LocationAwareLogger ) logger ) . log ( CATCHING_MARKER , FQCN , LocationAwareLogger . ERROR_INT , "catching" , null , throwable ) ; } |
public class ProcessExecutor { /** * Handles the process ' standard error stream .
* @ param stderr The error stream reader .
* @ throws IOException If reading stderr failed . */
protected void handleError ( InputStream stderr ) throws IOException { } } | byte [ ] buffer = new byte [ 4 * 1024 ] ; int b ; while ( ( b = stderr . read ( buffer ) ) > 0 ) { err . write ( buffer , 0 , b ) ; } |
public class dnsview_gslbservice_binding { /** * Use this API to fetch filtered set of dnsview _ gslbservice _ binding resources .
* filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */
public static dnsview_gslbservice_binding [ ] get_filtered ( nitro_service service , String viewnam... | dnsview_gslbservice_binding obj = new dnsview_gslbservice_binding ( ) ; obj . set_viewname ( viewname ) ; options option = new options ( ) ; option . set_filter ( filter ) ; dnsview_gslbservice_binding [ ] response = ( dnsview_gslbservice_binding [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class PlanNode { /** * Set the node ' s value for the supplied property .
* @ param propertyId the property identifier
* @ param value the value , or null if the property is to be removed
* @ return the previous value that was overwritten by this call , or null if there was prior value */
public Object set... | if ( value == null ) { // Removing this property . . .
return nodeProperties != null ? nodeProperties . remove ( propertyId ) : null ; } // Otherwise , we ' re adding the property
if ( nodeProperties == null ) nodeProperties = new TreeMap < Property , Object > ( ) ; return nodeProperties . put ( propertyId , value ) ; |
public class BatchTransactionServiceImpl { /** * ( non - Javadoc )
* @ see
* com . ibm . jbatch . container . services . IBatchServiceBase # init ( com . ibm . batch
* . container . IBatchConfig ) */
@ Override public void init ( IBatchConfig batchConfig ) throws BatchContainerServiceException { } } | logger . entering ( CLASSNAME , "init" , batchConfig ) ; this . batchConfig = batchConfig ; logger . exiting ( CLASSNAME , "init" ) ; |
public class Cypher { /** * TODO : add in alpha06
* @ Context
* ProcedureTransaction procedureTransaction ; */
@ Procedure @ Description ( "apoc.cypher.run(fragment, params) yield value - executes reading fragment with the given parameters" ) public Stream < MapResult > run ( @ Name ( "cypher" ) String statement , ... | if ( params == null ) params = Collections . emptyMap ( ) ; return db . execute ( withParamMapping ( statement , params . keySet ( ) ) , params ) . stream ( ) . map ( MapResult :: new ) ; |
public class CoreJBossASClient { /** * Adds a new subsystem ( along with some optional settings for that subsystem ) to the core system
* If settings is null , the subsystem will be created with no additional settings associated with it .
* @ param name the name of the new subsystem
* @ param settings a node with... | // / subsystem = < name > : add ( )
final ModelNode request = createRequest ( ADD , Address . root ( ) . add ( SUBSYSTEM , name ) , settings ) ; final ModelNode response = execute ( request ) ; if ( ! isSuccess ( response ) ) { throw new FailureException ( response , "Failed to add new subsystem [" + name + "]" ) ; } r... |
public class DataSetUtils { /** * < b > showDataSet < / b > < br >
* public void showDataSet ( int mtLv , String itemCode , DataSet ds , < br >
* int in _ Digits , int ot _ Digits , int r _ End _ I , int c _ End _ I ) < br >
* Shows content of DataSet . < br >
* @ param mtLv - method level
* @ param itemCode ... | mtLv ++ ; String oinfo = "" ; String methodName = moduleCode + "." + "showDataSet" ; if ( ds == null ) { oinfo = "" ; oinfo += BTools . getMtLvESS ( mtLv ) ; oinfo += methodName + ": " ; oinfo += "\"" + itemCode + "\": " ; oinfo += " == null !!!; " ; oinfo += BTools . getSLcDtTm ( ) ; sis . info ( oinfo ) ; return ; } ... |
public class AccountManager { /** * Creates a new account using the specified username and password . The server may
* require a number of extra account attributes such as an email address and phone
* number . In that case , Smack will attempt to automatically set all required
* attributes with blank values , whi... | // Create a map for all the required attributes , but give them blank values .
Map < String , String > attributes = new HashMap < > ( ) ; for ( String attributeName : getAccountAttributes ( ) ) { attributes . put ( attributeName , "" ) ; } createAccount ( username , password , attributes ) ; |
public class GeometryUtil { /** * Returns the dimension of a molecule ( width / height ) .
* @ param atomCon of which the dimension should be returned
* @ return array containing { width , height } */
public static double [ ] get2DDimension ( IAtomContainer atomCon ) { } } | double [ ] minmax = getMinMax ( atomCon ) ; double maxX = minmax [ 2 ] ; double maxY = minmax [ 3 ] ; double minX = minmax [ 0 ] ; double minY = minmax [ 1 ] ; return new double [ ] { maxX - minX , maxY - minY } ; |
public class Smarts2MQLVisitor { /** * logical bonds */
public Object visit ( ASTImplicitHighAndBond node , Object data ) { } } | return node . jjtGetChild ( 0 ) . jjtAccept ( this , data ) ; |
public class OWLLiteralImplFloat_CustomFieldSerializer { /** * Deserializes the content of the object from the
* { @ link com . google . gwt . user . client . rpc . SerializationStreamReader } .
* @ param streamReader the { @ link com . google . gwt . user . client . rpc . SerializationStreamReader } to read the
... | deserialize ( streamReader , instance ) ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcLightSourceDirectional ( ) { } } | if ( ifcLightSourceDirectionalEClass == null ) { ifcLightSourceDirectionalEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 346 ) ; } return ifcLightSourceDirectionalEClass ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcLibraryInformation ( ) { } } | if ( ifcLibraryInformationEClass == null ) { ifcLibraryInformationEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 338 ) ; } return ifcLibraryInformationEClass ; |
public class UCaseProps { /** * Get the full lowercase mapping for c .
* @ param c Character to be mapped .
* @ param iter Character iterator , used for context - sensitive mappings .
* See ContextIterator for details .
* If iter = = null then a context - independent result is returned .
* @ param out If the ... | int result , props ; result = c ; props = trie . get ( c ) ; if ( ! propsHasException ( props ) ) { if ( getTypeFromProps ( props ) >= UPPER ) { result = c + getDelta ( props ) ; } } else { int excOffset = getExceptionsOffset ( props ) , excOffset2 ; int excWord = exceptions . charAt ( excOffset ++ ) ; int full ; excOf... |
public class SessionDataManager { /** * { @ inheritDoc } */
public int getChildNodesCount ( NodeData parent ) throws RepositoryException { } } | int childsCount = changesLog . getChildNodesCount ( parent . getIdentifier ( ) ) + ( isNew ( parent . getIdentifier ( ) ) ? 0 : transactionableManager . getChildNodesCount ( parent ) ) ; if ( childsCount < 0 ) { throw new InvalidItemStateException ( "Node's child nodes were changed in another Session " + parent . getQP... |
public class IdentityRateProvider { /** * ( non - Javadoc )
* @ see
* javax . money . convert . ExchangeRateProvider # getReversed ( javax . money . convert
* . ExchangeRate ) */
@ Override public ExchangeRate getReversed ( ExchangeRate rate ) { } } | if ( rate . getContext ( ) . getProviderName ( ) . equals ( CONTEXT . getProviderName ( ) ) ) { return new ExchangeRateBuilder ( rate . getContext ( ) ) . setTerm ( rate . getBaseCurrency ( ) ) . setBase ( rate . getCurrency ( ) ) . setFactor ( new DefaultNumberValue ( BigDecimal . ONE ) ) . build ( ) ; } return null ; |
public class InternalXtypeParser { /** * InternalXtype . g : 264:1 : ruleJvmParameterizedTypeReference returns [ EObject current = null ] : ( ( ( ruleQualifiedName ) ) ( ( ( ' < ' ) = > otherlv _ 1 = ' < ' ) ( ( lv _ arguments _ 2_0 = ruleJvmArgumentTypeReference ) ) ( otherlv _ 3 = ' , ' ( ( lv _ arguments _ 4_0 = rul... | EObject current = null ; Token otherlv_1 = null ; Token otherlv_3 = null ; Token otherlv_5 = null ; Token otherlv_7 = null ; Token otherlv_9 = null ; Token otherlv_11 = null ; Token otherlv_13 = null ; EObject lv_arguments_2_0 = null ; EObject lv_arguments_4_0 = null ; EObject lv_arguments_10_0 = null ; EObject lv_argu... |
public class XmlPrintStream { /** * Open an XML element with the given name , and attributes . A call to closeElement ( ) will output
* the appropriate XML closing tag . This class remembers the tag names .
* The String parameters are taken to be alternatively names and values . Any odd value
* at the end of the ... | elementStack . push ( name ) ; startElement ( name , attributes ) ; println ( ">" ) ; |
public class UdpClient { /** * Inject default attribute to the future child { @ link Channel } connections . They
* will be available via { @ link Channel # attr ( AttributeKey ) } .
* @ param key the attribute key
* @ param value the attribute value
* @ param < T > the attribute type
* @ return a new { @ lin... | Objects . requireNonNull ( key , "key" ) ; Objects . requireNonNull ( value , "value" ) ; return bootstrap ( b -> b . attr ( key , value ) ) ; |
public class FailOverWrapper { /** * Causes the executing thread to pause for a period of time .
* @ param time in ms */
private static void pause ( final long time ) { } } | final long startTime = System . currentTimeMillis ( ) ; do { try { final long sleepTime = time - ( System . currentTimeMillis ( ) - startTime ) ; Thread . sleep ( sleepTime > 0 ? sleepTime : 10 ) ; } catch ( InterruptedException e ) { // don ' t care
} } while ( ( System . currentTimeMillis ( ) - startTime ) < time ) ; |
public class CmsOrgUnitsAdminList { /** * Performs a forward to the overview of the single organizational unit the current user
* is allowed to administrate . < p >
* @ throws ServletException in case of errors during forwarding
* @ throws IOException in case of errors during forwarding
* @ throws CmsException ... | List < CmsOrganizationalUnit > orgUnits = getOrgUnits ( ) ; if ( orgUnits . isEmpty ( ) ) { OpenCms . getWorkplaceManager ( ) . getToolManager ( ) . jspForwardTool ( this , "/" , null ) ; return ; } Map < String , String [ ] > params = new HashMap < String , String [ ] > ( ) ; params . put ( A_CmsOrgUnitDialog . PARAM_... |
public class Matrix4d { /** * Set this matrix to be a symmetric perspective projection frustum transformation for a right - handed coordinate system
* using OpenGL ' s NDC z range of < code > [ - 1 . . + 1 ] < / code > .
* In order to apply the perspective projection transformation to an existing transformation ,
... | return setPerspectiveRect ( width , height , zNear , zFar , false ) ; |
public class UnitResponse { /** * Standard json formation without data lost . */
public String toJSONString ( ) { } } | if ( context . isPretty ( ) ) { return JSON . toJSONStringWithDateFormat ( this , Constant . DATE_SERIALIZE_FORMAT , SerializerFeature . PrettyFormat ) ; } else { return JSONObject . toJSONStringWithDateFormat ( this , Constant . DATE_SERIALIZE_FORMAT ) ; } |
public class ListRobotApplicationsResult { /** * A list of robot application summaries that meet the criteria of the request .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setRobotApplicationSummaries ( java . util . Collection ) } or
* { @ link # withRo... | if ( this . robotApplicationSummaries == null ) { setRobotApplicationSummaries ( new java . util . ArrayList < RobotApplicationSummary > ( robotApplicationSummaries . length ) ) ; } for ( RobotApplicationSummary ele : robotApplicationSummaries ) { this . robotApplicationSummaries . add ( ele ) ; } return this ; |
public class ReplayRelay { /** * Creates an unbounded replay relay .
* The internal buffer is backed by an { @ link ArrayList } and starts with an initial capacity of 16 . Once the
* number of items reaches this capacity , it will grow as necessary ( usually by 50 % ) . However , as the
* number of items grows , ... | return new ReplayRelay < T > ( new UnboundedReplayBuffer < T > ( 16 ) ) ; |
public class Module { /** * Add a path to import from this module .
* @ param path The path to add .
* @ return this module descriptor . */
public Module withImportIncludePath ( String path ) { } } | checkList ( this . imports , INCLUDE ) ; this . imports . get ( INCLUDE ) . add ( path ) ; return this ; |
import java . io . * ; import java . lang . * ; import java . util . * ; import java . math . * ; class ExtractIntegers { /** * Extract only integer values from a given list of mixed data types
* > > > extract _ integers ( [ ' a ' , 3.14 , 5 ] )
* > > > extract _ integers ( [ 1 , 2 , 3 , ' abc ' , { } , [ ] ] )
*... | ArrayList < Integer > resultList = new ArrayList < > ( ) ; for ( Object element : inputValues ) { if ( element instanceof Integer ) { resultList . add ( ( Integer ) element ) ; } } return resultList ; |
public class ZipBuilder { /** * Recursively adds the contents of the given directory and all subdirectories to the given ZIP
* output stream .
* @ param root
* an ancestor of { @ code directory } , used to determine the relative path within the
* archive
* @ param directory
* current directory to be added
... | String prefix = targetPath ; if ( ! prefix . isEmpty ( ) && ! prefix . endsWith ( "/" ) ) { prefix += "/" ; } // directory entries are required , or else bundle classpath may be
// broken
if ( ! directory . equals ( root ) ) { String path = normalizePath ( root , directory ) ; ZipEntry jarEntry = new ZipEntry ( prefix ... |
public class PresentsSession { /** * Queues a message for delivery to the client . */
protected boolean postMessage ( DownstreamMessage msg , PresentsConnection expect ) { } } | PresentsConnection conn = getConnection ( ) ; // make sure that the connection they expect us to be using is the one we ' re using ; there
// are circumstances were sufficient delay between request and response gives the client
// time to drop their original connection and establish a new one , opening the door to
// m... |
public class AsyncMutateInBuilder { /** * Perform several { @ link Mutation mutation } operations inside a single existing { @ link JsonDocument JSON document }
* and watch for durability requirements .
* The list of mutations and paths to mutate in the JSON is added through builder methods like
* { @ link # arra... | Observable < DocumentFragment < Mutation > > mutationResult = execute ( timeout , timeUnit ) ; if ( persistTo == PersistTo . NONE && replicateTo == ReplicateTo . NONE ) { return mutationResult ; } return mutationResult . flatMap ( new Func1 < DocumentFragment < Mutation > , Observable < DocumentFragment < Mutation > > ... |
public class JavacParser { /** * EnumBody = " { " { EnumeratorDeclarationList } [ " , " ]
* [ " ; " { ClassBodyDeclaration } ] " } " */
List < JCTree > enumBody ( Name enumName ) { } } | accept ( LBRACE ) ; ListBuffer < JCTree > defs = new ListBuffer < > ( ) ; if ( token . kind == COMMA ) { nextToken ( ) ; } else if ( token . kind != RBRACE && token . kind != SEMI ) { defs . append ( enumeratorDeclaration ( enumName ) ) ; while ( token . kind == COMMA ) { nextToken ( ) ; if ( token . kind == RBRACE || ... |
public class ResourceUtils { /** * If the provided resource is a classpath resource , running inside an embedded container ,
* and if the container is running in a non - exploded form , classpath resources become non - accessible .
* So , this method will attempt to move resources out of classpath and onto a physic... | LOGGER . trace ( "Preparing possible classpath resource [{}]" , resource ) ; if ( resource == null ) { LOGGER . debug ( "No resource defined to prepare. Returning null" ) ; return null ; } if ( org . springframework . util . ResourceUtils . isFileURL ( resource . getURL ( ) ) ) { return resource ; } val url = org . spr... |
public class PTSaxton2006 { /** * For calculating SLDUL
* @ param soilParas should include 1 . Sand weight percentage by layer
* ( [ 0,100 ] % ) , 2 . Clay weight percentage by layer ( [ 0,100 ] % ) , 3 . Organic
* matter weight percentage by layer ( [ 0,100 ] % ) , ( = SLOC * 1.72)
* @ return Soil water , drai... | if ( soilParas != null && soilParas . length >= 3 ) { return divide ( calcMoisture33Kpa ( soilParas [ 0 ] , soilParas [ 1 ] , soilParas [ 2 ] ) , "100" , 3 ) ; } else { return null ; } |
public class OperationDataUpdater { /** * { @ inheritDoc } */
@ Override protected JSONObject extractData ( MBeanInfo pMBeanInfo , String pOperation ) { } } | JSONObject opMap = new JSONObject ( ) ; for ( MBeanOperationInfo opInfo : pMBeanInfo . getOperations ( ) ) { if ( pOperation == null || opInfo . getName ( ) . equals ( pOperation ) ) { JSONObject map = new JSONObject ( ) ; JSONArray argList = new JSONArray ( ) ; for ( MBeanParameterInfo paramInfo : opInfo . getSignatur... |
public class PropertiesLoader { /** * Load properties from a file .
* @ param file
* File name . If { @ code location } is { @ link FileLocation # CLASSPATH
* CLASSPATH } and if { @ code file } does not start with { @ code " / " } ,
* { @ code " / " } is prepended .
* @ param location
* Location from which ... | // If file is null .
if ( file == null ) { // file must be specified .
throw new IllegalArgumentException ( "file is null." ) ; } // If location is null .
if ( location == null ) { // location must be specified .
throw new IllegalArgumentException ( "location is null." ) ; } InputStream in = null ; try { // Open the fi... |
public class TranscriptionJobSummaryMarshaller { /** * Marshall the given parameter object . */
public void marshall ( TranscriptionJobSummary transcriptionJobSummary , ProtocolMarshaller protocolMarshaller ) { } } | if ( transcriptionJobSummary == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( transcriptionJobSummary . getTranscriptionJobName ( ) , TRANSCRIPTIONJOBNAME_BINDING ) ; protocolMarshaller . marshall ( transcriptionJobSummary . getCreationTim... |
public class RandomProjectedNeighborsAndDensities { /** * Compute list of neighbors for each point from sets resulting from
* projection
* @ return list of neighbors for each point */
public DataStore < ? extends DBIDs > getNeighs ( ) { } } | final DBIDs ids = points . getDBIDs ( ) ; // init lists
WritableDataStore < ModifiableDBIDs > neighs = DataStoreUtil . makeStorage ( ids , DataStoreFactory . HINT_HOT , ModifiableDBIDs . class ) ; for ( DBIDIter it = ids . iter ( ) ; it . valid ( ) ; it . advance ( ) ) { neighs . put ( it , DBIDUtil . newHashSet ( ) ) ... |
public class DatabaseDAODefaultImpl { public DbHistory [ ] get_device_property_history ( Database database , String deviceName , String propname ) throws DevFailed { } } | if ( ! database . isAccess_checked ( ) ) checkAccess ( database ) ; DeviceData argIn = new DeviceData ( ) ; argIn . insert ( new String [ ] { deviceName , propname } ) ; DeviceData argOut = command_inout ( database , "DbGetDevicePropertyHist" , argIn ) ; List < DbHistory > dbHistories = convertPropertyHistory ( argOut ... |
public class AnnotationTypeBuilder { /** * Build the signature of the current annotation type .
* @ param node the XML element that specifies which components to document
* @ param annotationInfoTree the content tree to which the documentation will be added */
public void buildAnnotationTypeSignature ( XMLNode node... | writer . addAnnotationTypeSignature ( utils . modifiersToString ( annotationType , true ) , annotationInfoTree ) ; |
public class BigtableTableAdminClient { /** * Drops rows by the specified key prefix and tableId asynchronously
* < p > Please note that this method is considered part of the admin API and is rate limited .
* < p > Sample code :
* < pre > { @ code
* ApiFuture < Void > dropFuture = client . dropRowRangeAsync ( "... | return dropRowRangeAsync ( tableId , ByteString . copyFromUtf8 ( rowKeyPrefix ) ) ; |
public class PythonReceiver { /** * = = = = = Setup = = = = = */
@ SuppressWarnings ( "unchecked" ) public void open ( File inputFile ) throws IOException { } } | deserializer = ( Deserializer < OUT > ) ( readAsByteArray ? new ByteArrayDeserializer ( ) : new TupleDeserializer ( ) ) ; inputFile . getParentFile ( ) . mkdirs ( ) ; if ( inputFile . exists ( ) ) { inputFile . delete ( ) ; } inputFile . createNewFile ( ) ; inputRAF = new RandomAccessFile ( inputFile , "rw" ) ; inputRA... |
public class S3TaskClientImpl { /** * { @ inheritDoc } */
@ Override public GetUrlTaskResult getHlsUrl ( String spaceId , String contentId ) throws ContentStoreException { } } | final GetHlsUrlTaskParameters params = new GetHlsUrlTaskParameters ( ) ; params . setSpaceId ( spaceId ) ; params . setContentId ( contentId ) ; return GetUrlTaskResult . deserialize ( contentStore . performTask ( StorageTaskConstants . GET_HLS_URL_TASK_NAME , params . serialize ( ) ) ) ; |
public class AbstractDBOpenHelper { /** * helpers */
protected final boolean createIndex ( SQLiteDatabase db , String table , boolean unique , String firstColumn , String ... otherColumns ) { } } | ArrayList < String > statements = new ArrayList < String > ( ) ; statements . add ( PersistUtils . getCreateIndex ( table , unique , firstColumn , otherColumns ) ) ; return executeStatements ( db , statements ) ; |
public class Options { /** * Returns an immutable set of the given options for a move . */
public static ImmutableSet < CopyOption > getMoveOptions ( CopyOption ... options ) { } } | return ImmutableSet . copyOf ( Lists . asList ( LinkOption . NOFOLLOW_LINKS , options ) ) ; |
public class OpenSslSessionStats { /** * Returns the current number of sessions in the internal session cache . */
public long number ( ) { } } | Lock readerLock = context . ctxLock . readLock ( ) ; readerLock . lock ( ) ; try { return SSLContext . sessionNumber ( context . ctx ) ; } finally { readerLock . unlock ( ) ; } |
public class XPathBuilder { /** * < p > < b > Used for finding element process ( to generate xpath address ) < / b > < / p >
* < p > Result Example : < / p >
* < pre >
* / / * [ contains ( @ class , ' x - grid - panel ' ) ] [ last ( ) ]
* < / pre >
* @ param position { @ link Position }
* @ param < T > the ... | this . position = position . getValue ( ) ; return ( T ) this ; |
public class CreateUserRequest { /** * check if the request contains a display name
* @ param formItemList
* form item list extracted
* @ param createUserResponse
* response object
* @ return display name < br >
* < b > null < / b > if there was no display name passed */
private static String checkDisplayNa... | final String displayName = formItemList . getField ( ProtocolConstants . Parameters . Create . User . DISPLAY_NAME ) ; if ( displayName != null ) { return displayName ; } else { createUserResponse . displayNameMissing ( ) ; } return null ; |
public class Ref { /** * Create a relative ref url from the specified ref
* @ param ref the ref url to be made relative
* @ return the relative ref url or null if the specified ref was not valid */
public static String getRelativeRef ( String ref ) { } } | Matcher matcher = match ( ref ) ; return matcher != null ? String . format ( "/%s/%s" , matcher . group ( 1 ) , matcher . group ( 2 ) ) : null ; |
public class PostExecutionInterceptorContext { /** * Makes sure that the call tree can ' t be { @ linkplain # excludeCallTree excluded }
* Note : if the call tree has not been collected , calling this method won ' t restore it .
* See also { @ link PreExecutionInterceptorContext # mustCollectCallTree }
* @ param ... | if ( getSpanContext ( ) . getCallTree ( ) == null ) { logger . info ( "Can't preserve the call tree because it has not been collected" ) ; } logger . debug ( "Must preserve call tree because {}" , reason ) ; mustPreserveCallTree = true ; excludeCallTree = false ; return this ; |
public class PersonDirectoryConfiguration { /** * Merges attributes from the request with those from other DAOs . */
@ Bean ( name = "requestAttributeMergingDao" ) @ Qualifier ( "uPortalInternal" ) public IPersonAttributeDao getRequestAttributeMergingDao ( ) { } } | final MergingPersonAttributeDaoImpl rslt = new MergingPersonAttributeDaoImpl ( ) ; rslt . setUsernameAttributeProvider ( getUsernameAttributeProvider ( ) ) ; rslt . setMerger ( new ReplacingAttributeAdder ( ) ) ; final List < IPersonAttributeDao > daos = new ArrayList < > ( ) ; daos . add ( getRequestAttributesDao ( ) ... |
public class Horizon { /** * Sets the value of the current pitch
* @ param PITCH */
public void setPitch ( final double PITCH ) { } } | this . pitch = PITCH % 180 ; if ( pitch > 90 ) { pitch = 90 - ( pitch - 90 ) ; if ( ! upsidedown ) { setRoll ( roll - 180 ) ; } upsidedown = true ; } else if ( pitch < - 90 ) { pitch = - 90 + ( - 90 - pitch ) ; if ( ! upsidedown ) { setRoll ( roll + 180 ) ; } upsidedown = true ; } else { upsidedown = false ; this . old... |
public class PaginationAutoMapInterceptor { /** * 生成特定数据库的分页语句
* @ param sql
* @ param page
* @ return */
private String buildPageSql ( String sql , Page page ) { } } | if ( page == null || dialect == null || dialect . equals ( "" ) ) { return sql ; } StringBuilder sb = new StringBuilder ( ) ; int startRow = page . getOffset ( ) ; if ( "mysql" . equals ( dialect ) ) { sb . append ( sql ) ; sb . append ( " limit " ) . append ( startRow ) . append ( "," ) . append ( page . getLimit ( ) ... |
public class UpdatableResultSet { /** * { inheritDoc } . */
public void updateString ( String columnLabel , String value ) throws SQLException { } } | updateString ( findColumn ( columnLabel ) , value ) ; |
public class MediaSpec { /** * Converts a resolution from a CSS length to ' dpi ' .
* @ param spec the CSS resolution specification
* @ return the resolution in ' dpi ' or { @ code null } when the unit is invalid */
protected Float dpiResolution ( TermResolution spec ) { } } | float nval = spec . getValue ( ) ; TermLength . Unit unit = spec . getUnit ( ) ; switch ( unit ) { case dpi : return nval ; case dpcm : return nval * 2.54f ; case dppx : return nval * getResolution ( ) ; default : return null ; } |
public class BufferingLogOutputStream { /** * Flush any pending data in the { @ link # logBuffer }
* @ throws IOException If closing the stream fails . */
@ Override public void close ( ) throws IOException { } } | // first close the parent so we get all remaining data
super . close ( ) ; // then ensure that any remaining buffer is logged
synchronized ( logBuffer ) { if ( logBuffer . length ( ) > 0 ) { log . info ( logBuffer . toString ( ) ) ; logBuffer . setLength ( 0 ) ; lastFlush = System . currentTimeMillis ( ) ; } } |
public class JobAgentsInner { /** * Updates a job agent .
* @ 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 jobAgentName The name of the job a... | if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( serverName == null ) { throw new IllegalArgumentException ( "Parameter serverName is required and cannot be null." ) ; } if ( jobAgentName == null ) { throw new IllegalArgumen... |
public class AbstractQueryGenerator { /** * Generate SqlQuerySpec with given DocumentQuery and query head .
* @ param query DocumentQuery represent one query method .
* @ param queryHead
* @ return The SqlQuerySpec for DocumentClient . */
protected SqlQuerySpec generateQuery ( @ NonNull DocumentQuery query , @ No... | Assert . hasText ( queryHead , "query head should have text." ) ; final Pair < String , List < Pair < String , Object > > > queryBody = generateQueryBody ( query ) ; final String queryString = String . join ( " " , queryHead , queryBody . getValue0 ( ) , generateQueryTail ( query ) ) ; final List < Pair < String , Obje... |
public class ModelsImpl { /** * Adds a composite entity extractor to the application .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param compositeModelCreateObject A model containing the name and children of the new entity extractor .
* @ param serviceCallback the async Service... | return ServiceFuture . fromResponse ( addCompositeEntityWithServiceResponseAsync ( appId , versionId , compositeModelCreateObject ) , serviceCallback ) ; |
public class NodeOverrides { /** * The node property overrides for the job .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setNodePropertyOverrides ( java . util . Collection ) } or
* { @ link # withNodePropertyOverrides ( java . util . Collection ) } if ... | if ( this . nodePropertyOverrides == null ) { setNodePropertyOverrides ( new java . util . ArrayList < NodePropertyOverride > ( nodePropertyOverrides . length ) ) ; } for ( NodePropertyOverride ele : nodePropertyOverrides ) { this . nodePropertyOverrides . add ( ele ) ; } return this ; |
public class FavoriteUpdater { /** * Set favorite to the logged in user . If no user , no action is done */
public void add ( DbSession dbSession , ComponentDto componentDto , @ Nullable Integer userId , boolean failIfTooManyFavorites ) { } } | if ( userId == null ) { return ; } List < PropertyDto > existingFavoriteOnComponent = dbClient . propertiesDao ( ) . selectByQuery ( PropertyQuery . builder ( ) . setKey ( PROP_FAVORITE_KEY ) . setUserId ( userId ) . setComponentId ( componentDto . getId ( ) ) . build ( ) , dbSession ) ; checkArgument ( existingFavorit... |
public class TransactionCache { /** * Returns a previously built concept
* @ param id The id of the concept
* @ param < X > The type of the concept
* @ return The cached concept */
public < X extends Concept > X getCachedConcept ( ConceptId id ) { } } | // noinspection unchecked
return ( X ) conceptCache . get ( id ) ; |
public class GenRestBuilderProcessor { /** * Prints a warning message
* @ param e The element which has caused the error . Can be null
* @ param msg The error message
* @ param args if the error message contains % s , % d etc . placeholders this arguments will be used
* to replace them */
public void warn ( Ele... | messager . printMessage ( Diagnostic . Kind . WARNING , String . format ( msg , args ) , e ) ; |
public class ULocale { /** * < strong > [ icu ] < / strong > Converts the specified keyword ( BCP 47 Unicode locale extension key , or
* legacy key ) to the legacy key . For example , legacy key " collation " is
* returned for the input BCP 47 Unicode locale extension key " co " .
* @ param keyword the input loca... | String legacyKey = KeyTypeData . toLegacyKey ( keyword ) ; if ( legacyKey == null ) { // Checks if the specified locale key is well - formed with the legacy locale syntax .
// Note :
// Neither ICU nor LDML / CLDR provides the definition of keyword syntax .
// However , a key should not contain ' = ' obviously . For no... |
public class DMNStyle { /** * Sets the value of the strokeColor property .
* @ param value
* allowed object is
* { @ link Color } */
public void setStrokeColor ( org . kie . dmn . model . api . dmndi . Color value ) { } } | this . strokeColor = value ; |
public class LRImporter { /** * Get a result from an obtain request
* If the resumption token is not null , it will override the other parameters for ths request
* @ param requestID the " request _ id " value to use for this request
* @ param byResourceID the " by _ resource _ id " value to use for this request
... | String path = getObtainRequestPath ( requestID , byResourceID , byDocID , idsOnly , resumptionToken ) ; JSONObject json = getJSONFromPath ( path ) ; return new LRResult ( json ) ; |
public class EnvironmentVariableMarshaller { /** * Marshall the given parameter object . */
public void marshall ( EnvironmentVariable environmentVariable , ProtocolMarshaller protocolMarshaller ) { } } | if ( environmentVariable == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( environmentVariable . getKey ( ) , KEY_BINDING ) ; protocolMarshaller . marshall ( environmentVariable . getValue ( ) , VALUE_BINDING ) ; protocolMarshaller . marsha... |
public class WrapperIterator { /** * Tests if this iterator contains more elements . < p >
* @ return < code > true < / code > if this iterator contains more elements ;
* < code > false < / code > otherwise . */
public boolean hasNext ( ) { } } | // for chained iterators
if ( chained ) { if ( it1 == null ) { if ( it2 == null ) { return false ; } if ( it2 . hasNext ( ) ) { return true ; } it2 = null ; return false ; } else { if ( it1 . hasNext ( ) ) { return true ; } it1 = null ; return hasNext ( ) ; } } // for other interators
if ( elements == null ) { return f... |
public class VictimsConfig { /** * Get the configured cache directory . If the directory does not exist , it
* will be created .
* @ return
* @ throws VictimsException */
public static File home ( ) throws VictimsException { } } | File directory = new File ( getPropertyValue ( Key . HOME ) ) ; if ( ! directory . exists ( ) ) { try { FileUtils . forceMkdir ( directory ) ; } catch ( IOException e ) { throw new VictimsException ( "Could not create home directory." , e ) ; } } return directory ; |
public class IndexTermReader { /** * This method is used to create a target which refers to current topic .
* @ return instance of IndexTermTarget created */
private IndexTermTarget genTarget ( ) { } } | final IndexTermTarget target = new IndexTermTarget ( ) ; String fragment ; if ( topicIdStack . peek ( ) == null ) { fragment = null ; } else { fragment = topicIdStack . peek ( ) ; } if ( title != null ) { target . setTargetName ( title ) ; } else { target . setTargetName ( targetFile ) ; } if ( fragment != null ) { tar... |
public class API { /** * Validates that the mandatory parameters of the given { @ code ApiElement } are present , throwing an { @ code ApiException } if
* not .
* @ param params the parameters of the API request .
* @ param element the API element to validate .
* @ throws ApiException if any of the mandatory pa... | if ( element == null ) { return ; } List < String > mandatoryParams = element . getMandatoryParamNames ( ) ; if ( mandatoryParams != null ) { for ( String param : mandatoryParams ) { if ( ! params . has ( param ) || params . getString ( param ) . length ( ) == 0 ) { throw new ApiException ( ApiException . Type . MISSIN... |
public class DecimalFormat { /** * Appends an affix pattern to the given StringBuffer . Localize unquoted specials .
* < b > Note : < / b > This implementation does not support new String localized symbols . */
private void appendAffixPattern ( StringBuffer buffer , boolean isNegative , boolean isPrefix , boolean loc... | String affixPat = null ; if ( isPrefix ) { affixPat = isNegative ? negPrefixPattern : posPrefixPattern ; } else { affixPat = isNegative ? negSuffixPattern : posSuffixPattern ; } // When there is a null affix pattern , we use the affix itself .
if ( affixPat == null ) { String affix = null ; if ( isPrefix ) { affix = is... |
public class LogConditionalObjectiveFunction { /** * Calculate conditional likelihood for datasets with real - valued features .
* Currently this can calculate CL only ( no support for SCL ) .
* TODO : sum - conditional obj . fun . with RVFs . */
protected void rvfcalculate ( double [ ] x ) { } } | value = 0.0 ; if ( derivativeNumerator == null ) { derivativeNumerator = new double [ x . length ] ; for ( int d = 0 ; d < data . length ; d ++ ) { // if ( d = = testMin ) {
// d = testMax - 1;
// continue ;
int [ ] features = data [ d ] ; for ( int f = 0 ; f < features . length ; f ++ ) { int i = indexOf ( features [ ... |
public class PTable { /** * Bump the use count .
* This doesn ' t have to be synchronized because getPTable in PDatabase is .
* @ param pTableOwner The table owner to add .
* @ return The new use count . */
public int addPTableOwner ( ThinPhysicalTableOwner pTableOwner ) { } } | if ( pTableOwner != null ) { m_lTimeLastUsed = System . currentTimeMillis ( ) ; m_setPTableOwners . add ( pTableOwner ) ; pTableOwner . setPTable ( this ) ; } return m_setPTableOwners . size ( ) ; |
public class JobLauncherFactory { /** * Create a new { @ link JobLauncher } .
* This method will never return a { @ code null } .
* @ param sysProps system configuration properties
* @ param jobProps job configuration properties
* @ return newly created { @ link JobLauncher } */
public static @ Nonnull JobLaunc... | return newJobLauncher ( sysProps , jobProps , null ) ; |
public class ApplicationSession { /** * Refresh this session ' s application schema from the database . Since the
* application ' s { @ link ApplicationDefinition } is cached , it could be out of date
* if the schema has been modified . This method fetches the latest version and
* returns it . An exception is thr... | try { // Send a GET request to " / _ applications / { application }
StringBuilder uri = new StringBuilder ( "/_applications/" ) ; uri . append ( Utils . urlEncode ( m_appDef . getAppName ( ) ) ) ; RESTResponse response = m_restClient . sendRequest ( HttpMethod . GET , uri . toString ( ) ) ; m_logger . debug ( "listAppl... |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getIfcDuctFittingTypeEnum ( ) { } } | if ( ifcDuctFittingTypeEnumEEnum == null ) { ifcDuctFittingTypeEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 819 ) ; } return ifcDuctFittingTypeEnumEEnum ; |
public class LoopingDuplicationTaskProducer { /** * / * ( non - Javadoc )
* @ see org . duracloud . mill . ltp . LoopingTaskProducer # loadMorselQueueFromSource ( java . util . Queue ) */
@ Override protected void loadMorselQueueFromSource ( Queue < DuplicationMorsel > morselQueue ) { } } | // generate set of morsels based on duplication policy
for ( String account : this . policyManager . getDuplicationAccounts ( ) ) { DuplicationPolicy policy = this . policyManager . getDuplicationPolicy ( account ) ; try { final CredentialsRepo credRepo = getCredentialsRepo ( ) ; if ( getCredentialsRepo ( ) . isAccount... |
public class InternalSARLParser { /** * InternalSARL . g : 14416:1 : entryRuleXBasicForLoopExpression returns [ EObject current = null ] : iv _ ruleXBasicForLoopExpression = ruleXBasicForLoopExpression EOF ; */
public final EObject entryRuleXBasicForLoopExpression ( ) throws RecognitionException { } } | EObject current = null ; EObject iv_ruleXBasicForLoopExpression = null ; try { // InternalSARL . g : 14416:64 : ( iv _ ruleXBasicForLoopExpression = ruleXBasicForLoopExpression EOF )
// InternalSARL . g : 14417:2 : iv _ ruleXBasicForLoopExpression = ruleXBasicForLoopExpression EOF
{ if ( state . backtracking == 0 ) { n... |
public class GetDimensionValuesResult { /** * The filters that you used to filter your request . Some dimensions are available only for a specific context .
* If you set the context to < code > COST _ AND _ USAGE < / code > , you can use the following dimensions for searching :
* < ul >
* < li >
* AZ - The Avai... | if ( this . dimensionValues == null ) { setDimensionValues ( new java . util . ArrayList < DimensionValuesWithAttributes > ( dimensionValues . length ) ) ; } for ( DimensionValuesWithAttributes ele : dimensionValues ) { this . dimensionValues . add ( ele ) ; } return this ; |
public class GoogleHadoopFileSystemBase { /** * Returns home directory of the current user .
* Note : This directory is only used for Hadoop purposes .
* It is not the same as a user ' s OS home directory . */
@ Override public Path getHomeDirectory ( ) { } } | Path result = new Path ( getFileSystemRoot ( ) , getHomeDirectorySubpath ( ) ) ; logger . atFine ( ) . log ( "GHFS.getHomeDirectory:=> %s" , result ) ; return result ; |
public class ProductSegmentation { /** * Sets the operatingSystemSegment value for this ProductSegmentation .
* @ param operatingSystemSegment * The operating system segmentation . { @ link OperatingSystemTargeting # isTargeted }
* must be { @ code true } .
* We only allow segment by Operating _ System , not Oper... | this . operatingSystemSegment = operatingSystemSegment ; |
public class RestClientUtil { /** * 创建或者更新索引文档
* @ param indexName
* @ param indexType
* @ param params
* @ return
* @ throws ElasticSearchException */
public String addDateMapDocument ( String indexName , String indexType , Map params , ClientOptions clientOptions ) throws ElasticSearchException { } } | return addMapDocument ( this . indexNameBuilder . getIndexName ( indexName ) , indexType , params , clientOptions ) ; |
public class SoftMaxRegression { /** * { @ inheritDoc } */
@ Override protected void _predict ( Dataframe newData ) { } } | _predictDatasetParallel ( newData , knowledgeBase . getStorageEngine ( ) , knowledgeBase . getConfiguration ( ) . getConcurrencyConfiguration ( ) ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.