language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def endpoint_from_job(self, job_name, initial_instance_count, instance_type, deployment_image=None, name=None, role=None, wait=True, model_environment_vars=None, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT, accelerator_type=None): ...
python
def double_typos(self): """letter combinations two typos away from word""" return {e2 for e1 in self.typos() for e2 in Word(e1).typos()}
python
def cross_track_distance(self, start_point, end_point): ''' Return the cross track distance from this point to the line between two points:: * end_point / / / * this point / ...
python
def _GetTaskStorageFilePath(self, task): """Retrieves the path of a task storage file in the temporary directory. Args: task (Task): task. Returns: str: path of a task storage file in the temporary directory. """ filename = '{0:s}.plaso'.format(task.identifier) return os.path.join(...
python
def get_nodes_by_source(self, graph, source_full_name): """yields nodes from graph are the specified source.""" parts = source_full_name.split('.') if len(parts) == 1: target_source, target_table = parts[0], None elif len(parts) == 2: target_source, target_table =...
python
def has_listener(self, evt_name, fn): """指定listener是否存在 :params evt_name: 事件名称 :params fn: 要注册的触发函数函数 """ listeners = self.__get_listeners(evt_name) return fn in listeners
java
public static long[] getContentRange(Map<String, String> headers) { String value = getHeaderValue(headers, HTTP_CONTENT_RANGE_HEADER_UP); if (value == null) return null; return parseContentRange(value.trim()); }
python
def std_salt(length=16, lowercase=True): """Generates a cryptographically sane salt of 'length' (default: 16) alphanumeric characters """ alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" if lowercase is True: alphabet += "abcdefghijklmnopqrstuvwxyz" chars = [] for i in range(lengt...
python
def EnsureTempDirIsSane(directory): """Checks that the directory exists and has the correct permissions set.""" if not os.path.isabs(directory): raise ErrorBadPath("Directory %s is not absolute" % directory) if os.path.isdir(directory): # The temp dir already exists, we probably created it already but ...
java
public final void synpred28_DRL5Expressions_fragment() throws RecognitionException { // src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:549:15: ( DOT ID ) // src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:549:16: DOT ID { match(input,DOT,FOLLOW_DOT_in_synpred28_DRL5Expressions2916);...
java
@Nullable public static String[] optStringArray(@Nullable Bundle bundle, @Nullable String key) { return optStringArray(bundle, key, new String[0]); }
python
def add_request_participants(self, issue_id_or_key, users_list): """ Add users as participants to an existing customer request The calling user must have permission to manage participants for this customer request :param issue_id_or_key: str :param users_list: list :retu...
java
public static String patternForMoment( DisplayMode dateMode, DisplayMode timeMode, Locale locale ) { return FORMAT_PATTERN_PROVIDER.getDateTimePattern(dateMode, timeMode, locale); }
python
def _model(self, beta): """ Creates the structure of the model Parameters ---------- beta : np.array Contains untransformed starting values for latent variables Returns ---------- lambda : np.array Contains the values for the conditional ...
python
def on(self, state): """ Turn on or off. :param state: True (on) or False (off). """ self._on = state cmd = self.command_set.off() if state: cmd = self.command_set.on() self.send(cmd)
java
public static int cusolverRfExtractSplitFactorsHost( cusolverRfHandle handle, /** Output (in the host memory) */ Pointer h_nnzL, Pointer h_csrRowPtrL, Pointer h_csrColIndL, Pointer h_csrValL, Pointer h_nnzU, Pointer h_csrRowPtrU, Po...
java
public SVGPath smoothQuadTo(double x, double y) { return append(PATH_SMOOTH_QUAD_TO).append(x).append(y); }
java
@Override public void sessionClosed(IoSession session) throws Exception { final InputStream in = (InputStream) session.getAttribute(KEY_IN); final OutputStream out = (OutputStream) session.getAttribute(KEY_OUT); try { in.close(); } finally { out.close(); ...
java
public KamEdge resolve(final Kam kam, final KAMStore kAMStore, final String subject, final RelationshipType r, final String object, Map<String, String> nsmap, Equivalencer eq) throws ResolverException { if (nulls(kam, kAMStore, subject, r, object, eq)) { throw new...
java
public static void initialise(AcceptListenerFactory _acceptListenerFactory) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initalise"); acceptListenerFactory = _acceptListenerFactory; // Create the maintainer of the configuration. Framew...
python
def convert_to_pmag_data_list(self, lst_or_dict="lst", df=None): """ Take MagicDataFrame and turn it into a list of dictionaries. This will have the same format as reading in a 2.5 file with pmag.magic_read(), i.e.: if "lst": [{"sample": "samp_name", "azimuth": 12, ......
python
def _create_field_mapping_action(self): """Create action for showing field mapping dialog.""" icon = resources_path('img', 'icons', 'show-mapping-tool.svg') self.action_field_mapping = QAction( QIcon(icon), self.tr('InaSAFE Field Mapping Tool'), self.iface.mai...
python
def parse_import_names(sourcecode, top_level=True, fpath=None, branch=False): """ Finds all function names in a file without importing it Args: sourcecode (str): Returns: list: func_names CommandLine: python -m utool.util_inspect parse_import_names References: ...
java
public void setPackageId(String packageId) throws InvalidArgumentException { if (sourceUnavailable) { throw new InvalidArgumentException("The source none has be set to true already. Can not have packageId set when source none set to true."); } if (Utils.isNullOrEmpty(packageId)) { ...
python
def evaluate_script(self, script, **kwargs): """ Evaluates the supplied script (python-executable string). Useful for testing your scripts! globals already include all of numpy objects plus self = self f = self.f bg = self.bg and all the current gu...
java
@Override public long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) { return commerceAvailabilityEstimatePersistence.countWithDynamicQuery(dynamicQuery, projection); }
java
public static Trades adaptToTrades(GlobitexTrades globitexTrades, CurrencyPair currencyPair) { List<Trade> trades = new ArrayList<>(); globitexTrades .getRecentTrades() .forEach( globitexTrade -> { trades.add(adaptToTrade(globitexTrade, currencyPair)); }); ...
java
public static void setChar (@Nonnull final CharSequence aSeq, final int nIndex, @Nonnull final Codepoint aCodepoint) { setChar (aSeq, nIndex, aCodepoint.getValue ()); }
java
protected boolean executeExportOperation(IJarExportRunnable op, IStatus wizardPageStatus) { try { getContainer().run(true, true, op); } catch (InterruptedException e) { return false; } catch (InvocationTargetException ex) { if (ex.getTargetException() != null) { ExceptionHandler.handle(ex, getShell()...
python
def tracing(pattern=None, out=None): """Print executed lines to stdout.""" _trace = partial(trace_line, pattern) if out is None: out = sys.stdout with redirect_stdout(out): sys.settrace(_trace) try: yield finally: sys.settrace(None)
java
@Override public void removeByGroupId(long groupId) { for (CPMeasurementUnit cpMeasurementUnit : findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(cpMeasurementUnit); } }
python
def _get(self): """get and parse data stored in self.path.""" data, stat = self.zk.get(self.path) if not len(data): return {}, stat.version if self.OLD_SEPARATOR in data: return self._get_old() return json.loads(data), stat.version
java
@Override public DescribeTapeArchivesResult describeTapeArchives(DescribeTapeArchivesRequest request) { request = beforeClientExecution(request); return executeDescribeTapeArchives(request); }
java
private ReturnCodes parseQValue(byte[] data, int start) { // 414433 - redo the qvalue parsing to handle more error conditions ReturnCodes rc = new ReturnCodes(false); int len = data.length; int index = skipWhiteSpace(data, start); // we should be pointing at "q=X" // tec...
java
public MigrateArgs<K> keys(Iterable<K> keys) { LettuceAssert.notNull(keys, "Keys must not be null"); for (K key : keys) { this.keys.add(key); } return this; }
java
@Override public Request<ReplaceTransitGatewayRouteRequest> getDryRunRequest() { Request<ReplaceTransitGatewayRouteRequest> request = new ReplaceTransitGatewayRouteRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; }
java
private static synchronized MarshallerBuilder getMarshallerBuilder() { ServiceLoader<MarshallerBuilder> builders = ServiceLoader.load(MarshallerBuilder.class); Iterator<MarshallerBuilder> it = builders.iterator(); if (it.hasNext()) { MarshallerBuilder marshallerBuilder = it.next(); ...
java
public static String bytesToString( final byte[] arr, final boolean signed, final boolean littleEndian, final String sep) { final StringBuilder sb = new StringBuilder(); final int mask = (signed) ? 0XFFFFFFFF : 0XFF; final int arrLen = arr.length; if (littleEndian) { for (int i = 0; i < (arr...
java
public BatchDeleteBuildsResult withBuildsNotDeleted(BuildNotDeleted... buildsNotDeleted) { if (this.buildsNotDeleted == null) { setBuildsNotDeleted(new java.util.ArrayList<BuildNotDeleted>(buildsNotDeleted.length)); } for (BuildNotDeleted ele : buildsNotDeleted) { this.bu...
java
public String getString(final String key, final Object... args) { String value = getString(key); if (value == null) { value = key; } MessageFormat mf = new MessageFormat(value); mf.setLocale(locale); return mf.format(args, new StringBuffer(), null).toString()...
java
public void init(Record record, BaseField field, boolean bNewOnChange) { super.init(record); m_field = field; m_bNewOnChange = bNewOnChange; }
python
def map_column(self, only_use_one=None, source_column=None, species=None, target_selection= None, verbose=False): """ Uses the BridgeDB service to look up analogous identifiers from a wide selection of other databases :param only_use_one (string, optional): When multiple identifiers can...
java
@Deprecated public static <T extends Enum<T>> EnumTemplate<T> enumTemplate(Class<? extends T> cl, String template, ImmutableList<?> args) { return enumTemplate(cl, createTemplate(template), args); }
python
def split_and_strip(string, separator_regexp=None, maxsplit=0): """Split a string into items and trim any excess spaces from the items >>> split_and_strip('fred, was, here ') ['fred', 'was', 'here'] """ if not string: return [''] if separator_regexp is None: separator_regexp = ...
python
def DateStringToDateObject(date_string): """Return a date object for a string "YYYYMMDD".""" # If this becomes a bottleneck date objects could be cached if re.match('^\d{8}$', date_string) == None: return None try: return datetime.date(int(date_string[0:4]), int(date_string[4:6]), ...
python
def get_topic_triggers(rs, topic, thats, depth=0, inheritance=0, inherited=False): """Recursively scan a topic and return a list of all triggers. Arguments: rs (RiveScript): A reference to the parent RiveScript instance. topic (str): The original topic name. thats (bool): Are we getting...
java
public String getMultipartClass() { if ( _forceMultipartDisabled ) return null; if ( _overrideMultipartClass != null ) return _overrideMultipartClass; MultipartHandler mpHandler = InternalUtils.getMultipartHandlerType(); if ( mpHandler != null ) { switch...
java
public Spliterator<E> spliterator() { return (m instanceof ConcurrentSkipListMap) ? ((ConcurrentSkipListMap<E,?>)m).keySpliterator() : ((ConcurrentSkipListMap.SubMap<E,?>)m).new SubMapKeyIterator(); }
python
def yaml_to_str(data: Mapping) -> str: """ Return the given given config as YAML str. :param data: configuration dict :return: given configuration as yaml str """ return yaml.dump(data, Dumper=ruamel.yaml.RoundTripDumper)
python
def import_instance( self, name, input_config, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ Import a Redis RDB snapshot file from GCS into a Redis instance. Redis may sto...
python
def flush(self): """ Trigger a flush of the queue. Note: this method will only return once the queue is empty. This means it can block indefinitely if more events are produced in other threads than can be consumed. """ self.queue(None, None, flush=True) if not sel...
java
@Pure public static Iterator<URL> getClasspath() { Iterator<URL> iterator = getStartClasspath(); final ClassLoader loader = ClassLoaderFinder.findClassLoader(); try { final DynamicURLClassLoader dLoader = (DynamicURLClassLoader) loader; iterator = new FilteringIterator(Arrays.asList(dLoader.getURLs()).ite...
python
def get_operators(self, name=None): """Get the list of :py:class:`Operator` elements associated with this job. Args: name(str): Only return operators matching `name`, where `name` can be a regular expression. If `name` is not supplied, then all operators for this job are re...
java
public CMAPersonalAccessToken addScope(Scope scope) { if (scopes == null) { scopes = new ArrayList<Scope>(); } scopes.add(scope); return this; }
python
def input_loop(): '''wait for user input''' while mestate.exit != True: try: if mestate.exit != True: line = input(mestate.rl.prompt) except EOFError: mestate.exit = True sys.exit(1) mestate.input_queue.put(line)
python
def derive(self, path): """ :param path: a path like "m/44'/0'/1'/0/10" if deriving from a master key, or a relative path like "./0/10" :return: the derived ExtendedPublicKey if deriving from an ExtendedPublicKey, the derived ExtendedPrivateKey if deriving f...
java
@Override public Collection<KeyTransaction> deserialize(JsonElement element, Type type, JsonDeserializationContext context) throws JsonParseException { JsonObject obj = element.getAsJsonObject(); JsonArray kts = obj.getAsJsonArray("key_transactions"); List<KeyTransaction> values ...
java
public List<ServletType<WebAppType<T>>> getAllServlet() { List<ServletType<WebAppType<T>>> list = new ArrayList<ServletType<WebAppType<T>>>(); List<Node> nodeList = childNode.get("servlet"); for(Node node: nodeList) { ServletType<WebAppType<T>> type = new ServletTypeImpl<WebAppType<...
java
@FormatMethod private void reportError(@FormatString String message, Object... arguments) { errorReporter.reportError(scanner.getPosition(), message, arguments); }
python
def create_oracle_cx_oracle(username, password, host, port, database, **kwargs): # pragma: no cover """ create an engine connected to a oracle database using cx_oracle. """ return create_engine( _create_oracle_cx_oracle(username, password, host, port, database), **kwargs )
python
def parse(expression): """ Return array of parsed tokens in the expression expression String: Math expression to parse in infix notation """ result = [] current = "" for i in expression: if i.isdigit() or i == '.': current += i else: if le...
python
def pull(self, repository, tag=None, stream=True, **kwargs): """ Identical to :meth:`dockermap.client.base.DockerClientWrapper.pull` with two enhancements: * additional logging; * the ``insecure_registry`` flag can be passed through ``kwargs``, or set as default using ``env.do...
python
def contract(self, process): """ this contracts the current node to its parent and then either caclulates the params and values if all child data exists, OR uses the default parent data. (In real terms it returns the parent and recalculates) TODO = processes need to be ...
python
def status(self): """What is the status of the job ?""" # If there is no script it is either ready or a lost duplicate # if not self.script_path.exists: if self.name in jobs.names: return "DUPLICATE" if self.name not in jobs.names: return "READY" # It is submi...
python
def assims(self, mot): """ Cherche si la chaîne a peut subir une assimilation, renvoie cette chaîne éventuellement assimilée. :param mot: Mot pour lequel on doit vérifier des assimilations :type mot: str :return: Mot assimilé :rtype: str """ for replaced, replace...
python
def get_lock(self, lockname, locktime=60, auto_renewal=False): ''' Gets a lock and returns if it can be stablished. Returns false otherwise ''' pid = os.getpid() caller = inspect.stack()[0][3] try: # rl = redlock.Redlock([{"host": settings.REDIS_SERVERS['std_redis']['hos...
python
def normalize_response_value(rv): """ Normalize the response value into a 3-tuple (rv, status, headers) :type rv: tuple|* :returns: tuple(rv, status, headers) :rtype: tuple(Response|JsonResponse|*, int|None, dict|None) """ status = headers = None if isinstance(rv, tuple): ...
python
def listtransactions(self, user_id="", count=10, start_at=0): """List all transactions associated with this account. Args: user_id (str): this user's unique identifier count (int): number of transactions to return (default=10) start_at (int): start the list at this transac...
java
public Observable<Void> deleteValueAsync(String tagName, String tagValue) { return deleteValueWithServiceResponseAsync(tagName, tagValue).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); ...
python
def qwarp_align(dset_from,dset_to,skull_strip=True,mask=None,affine_suffix='_aff',suffix='_qwarp',prefix=None): '''aligns ``dset_from`` to ``dset_to`` using 3dQwarp Will run ``3dSkullStrip`` (unless ``skull_strip`` is ``False``), ``3dUnifize``, ``3dAllineate``, and then ``3dQwarp``. This method will add su...
python
def serialize(self, format): """ Serialize provenance graph in the specified format """ if PY3: return self.prov_g.serialize(format=format).decode('utf-8') else: return self.prov_g.serialize(format=format)
java
public Map<Long, Integer> computeDaysForResources(List<RESOURCE> resources) { Map<Long, Integer> result = computeDays(getModificationDates(resources)); if (LOG.isDebugEnabled()) { for (RESOURCE res : resources) { LOG.debug( "Resource " ...
python
def response_hook(self, r, **kwargs): """The actual hook handler.""" if r.status_code == 401: # Handle server auth. www_authenticate = r.headers.get('www-authenticate', '').lower() auth_type = _auth_type_from_header(www_authenticate) if auth_type is not N...
java
@Requires("bytecode != null") @Ensures("result != null") private byte[] instrumentWithDebug(byte[] bytecode) { ClassReader reader = new ClassReader(bytecode); ClassWriter writer = new NonLoadingClassWriter(reader, 0); reader.accept(new HelperClassAdapter(writer), ClassReader.EXPAND_FRAMES); return w...
java
private boolean mergeSpaces(ArrayList spaces) { for (int source=0;source<spaces.size();source++) { Space a = (Space) spaces.get(source); for (int target=source+1;target<spaces.size();target++) { Space b = (Space) spaces.get(target); if (a.canMerge(b)) { spaces.remove(a); spaces.remove...
java
public Observable<ApplicationInsightsComponentAPIKeyInner> createAsync(String resourceGroupName, String resourceName, APIKeyRequest aPIKeyProperties) { return createWithServiceResponseAsync(resourceGroupName, resourceName, aPIKeyProperties).map(new Func1<ServiceResponse<ApplicationInsightsComponentAPIKeyInner>,...
python
def mailfrom(self, sender=None, client_args=None): """ Send LMTP MAIL FROM command, and process the server response. In DLMTP mode, the server expects the client to identify itself. Because the envelope sender is of no importance to DSPAM, the client is expected to send an ident...
python
def flushdb(self, async_op=False): """ Remove all keys from the current database. :param async_op: lets a single database to be freed asynchronously. \ Defaults to False """ if async_op: fut = self.execute(b'FLUSHDB', b'ASYNC') else: fut =...
java
public com.squareup.okhttp.Call getSovereigntyMapAsync(String datasource, String ifNoneMatch, final ApiCallback<List<SovereigntyMapResponse>> callback) throws ApiException { com.squareup.okhttp.Call call = getSovereigntyMapValidateBeforeCall(datasource, ifNoneMatch, callback); Type localVar...
python
def _unsigned_to_signed(v, bits): """ Convert an unsigned integer to a signed integer. :param v: The unsigned integer :param bits: How many bits this integer should be :return: The converted signed integer """ if StridedInterval._is_msb_zero(v, bits): ...
java
@Override public void sendAckExpectedMessage( long ackExpStamp, int priority, Reliability reliability, SIBUuid12 stream) throws SIResourceEx...
java
@BetaApi public final InterconnectsGetDiagnosticsResponse getDiagnosticsInterconnect( ProjectGlobalInterconnectName interconnect) { GetDiagnosticsInterconnectHttpRequest request = GetDiagnosticsInterconnectHttpRequest.newBuilder() .setInterconnect(interconnect == null ? null : interconn...
python
def get_most_specific_tinfo_dcnt(goids, go2nt): """Get the GO ID with the highest GO term annotation information value.""" # go2nt_usr = {go:go2nt[go] for go in goids} # return max(go2nt_usr.items(), key=lambda t: [t[1].tinfo, t[1].dcnt])[0] return max(_get_go2nt(goids, go2nt), key=lambda t: [t[1].tinfo...
java
public static VINT fromBinary(long binary) { BitSet bs = BitSet.valueOf(new long[] { binary }); long mask = MASK_BYTE_1; byte length = 1; if (bs.length() > 3 * BIT_IN_BYTE) { mask = MASK_BYTE_4; length = 4; } else if (bs.length() > 2 * BIT_IN_BYTE) { ...
python
def group_samaccountnames(self, base_dn): """For the current ADUser instance, determine which groups the user is a member of and convert the group DistinguishedNames to sAMAccountNames. The resulting list of groups may not be complete if explicit_membership_only was set to ...
java
private static void usage() { StringBuilder usageText = new StringBuilder(); usageText.append("Usage: java -D").append(PROPERTY_PREFIX) .append("config=esigate.properties -jar esigate-server.jar [start|stop]\n\t"); usageText.append("start Start the server (default)\n\t"); ...
python
def get_psms(self): """Creates iterator to write to new tsv. Contains input tsv lines plus quant data for these.""" self.header = actions.create_header(self.oldheader) self.psms = actions.add_genes_to_psm_table(self.fn, self.oldheader, s...
python
def prg_rom(self): """Return the PRG ROM of the ROM file.""" try: return self.raw_data[self.prg_rom_start:self.prg_rom_stop] except IndexError: raise ValueError('failed to read PRG-ROM on ROM.')
java
public long getUnAvailableMessageCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getUnAvailableMessageCount"); long returnValue = -1; try { returnValue = getStatistics().getUnavailableItemCount(); } catch(MessageStoreException e) { ...
java
@Override public CreateSamplingRuleResult createSamplingRule(CreateSamplingRuleRequest request) { request = beforeClientExecution(request); return executeCreateSamplingRule(request); }
java
@Deprecated @PublicEvolving public DataSink<T> print(String sinkIdentifier) { return output(new PrintingOutputFormat<T>(sinkIdentifier, false)); }
java
protected HTTPResponse submitHTTPRequestImpl(HTTPRequest httpRequest,HTTPMethod httpMethod) { return this.httpClient.submitHTTPRequest(httpRequest,this.httpClientConfiguration,httpMethod); }
java
public ReturnValueType<ConstructorType<T>> getOrCreateReturnValue() { Node node = childNode.getOrCreate("return-value"); ReturnValueType<ConstructorType<T>> returnValue = new ReturnValueTypeImpl<ConstructorType<T>>(this, "return-value", childNode, node); return returnValue; }
python
def decode(self, bytes, raw=False): """decode(bytearray, raw=False) -> value Decodes the given bytearray according the corresponding EVR Definition (:class:`EVRDefn`) for the underlying 'MSB_U16' EVR code. If the optional parameter ``raw`` is ``True``, the EVR code itse...
python
def upsert(self, table: str, record: dict, create_cols: bool=False, dtypes: list=None, pks=["id"], namefields=["id"]): """ Upsert a record in a table """ try: self.db[table].upsert(record, pks, create_cols, dtypes) except Exception as e: sel...
java
public void auditDeletePatientRecordEvent(RFC3881EventOutcomeCodes eventOutcome, String pixManagerUri, String receivingFacility, String receivingApp, String sendingFacility, String sendingApp, String hl7MessageControlId, String patientId) { if (!isAuditorEnabled()) { return; } auditPatientReco...
python
def __get_agent_host_port(self): """ Iterates the the various ways the host and port of the Instana host agent may be configured: default, env vars, sensor options... """ host = AGENT_DEFAULT_HOST port = AGENT_DEFAULT_PORT if "INSTANA_AGENT_HOST" in os.environ: ...
python
def process_models(attrs, base_model_class): """ Attach default fields and meta options to models """ attrs.update(base_model_class._DEFAULT_BASE_FIELDS) attrs['_instance_registry'] = set() attrs['_is_unpermitted_fields_set'] = False attrs['save_meta_data'] = None...
python
def get_grade_systems(self): """Gets all ``GradeSystems``. In plenary mode, the returned list contains all known grade systems or an error results. Otherwise, the returned list may contain only those grade systems that are accessible through this session. return: (osid....
python
def get_header(self, configuration=False): """Get the log file header If configuration is True, this returns the daemon configuration :return: A string list containing project name, daemon name, version, licence etc. :rtype: list """ header = [u"-----", ...