language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def end_stream(self, stream_id): """ Close the given stream locally. This may block until the underlying transport becomes writable, or other coroutines release the wlock on this stream. :param stream_id: Which stream to close. """ with (yield from self._get_str...
python
def _decrypt(self, rj, token): """ Decrypt an encrypted JsonWebToken :param rj: :py:class:`cryptojwt.jwe.JWE` instance :param token: The encrypted JsonWebToken :return: """ if self.iss: keys = self.key_jar.get_jwt_decrypt_keys(rj.jwt, aud=self.iss) ...
java
public static List<ExtPluginConfiguration> listPluginConfigurations( final Map<String, String> props, final String keyprefix, final String serviceName, final boolean extra ) { final ArrayList<ExtPluginConfiguration> list = new ArrayList<>(); int i ...
python
def points_from_xywh(box): """ Constructs a polygon representation from a rectangle described as a dict with keys x, y, w, h. """ x, y, w, h = box['x'], box['y'], box['w'], box['h'] # tesseract uses a different region representation format return "%i,%i %i,%i %i,%i %i,%i" % ( x, y, ...
python
def get_float(self, key, default=UndefinedKey): """Return float representation of value found at key :param key: key to use (dot separated). E.g., a.b.c :type key: basestring :param default: default value if key not found :type default: float :return: float value ...
python
def _sample_stratum(self, pmf=None, replace=True): """Sample a stratum Parameters ---------- pmf : array-like, shape=(n_strata,), optional, default None probability distribution to use when sampling from the strata. If not given, use the stratum weights. ...
java
private void postSave(Membership membership, boolean isNew) throws Exception { for (MembershipEventListener listener : listeners) { listener.postSave(membership, isNew); } }
java
public static boolean superclassHierarchyContains(Class<?> haystack, Class<?> needle) { Class<?> superclass = haystack; while (superclass != null && superclass != needle) { superclass = superclass.getSuperclass(); } return superclass == needle; }
python
def spline(x, y, n, yp1, ypn, y2): ''' /* CALCULATE 2ND DERIVATIVES OF CUBIC SPLINE INTERP FUNCTION * ADAPTED FROM NUMERICAL RECIPES BY PRESS ET AL * X,Y: ARRAYS OF TABULATED FUNCTION IN ASCENDING ORDER BY X * N: SIZE OF ARRAYS X,Y * YP1,YPN: SPECIFIED DERIVATIVES AT X[0] AND X[N-1...
java
private View inflateHeader() { if (getRootView() != null) { if (header == null) { LayoutInflater layoutInflater = LayoutInflater.from(getContext()); header = (ViewGroup) layoutInflater .inflate(R.layout.material_dialog_header, getRootView(), fa...
python
def fit_beads_autofluorescence(fl_rfi, fl_mef): """ Fit a standard curve using a beads model with autofluorescence. Parameters ---------- fl_rfi : array Fluorescence values of bead populations in units of Relative Fluorescence Intensity (RFI). fl_mef : array Fluorescence...
java
protected File selectResource(String baseLocation, final String symbolicName, final VersionRange versionRange, final boolean performURICheck, final boolean selectBaseBundle) { // If the baseLocation is null or the empty string use the default location. if (baseLocation == null || "".equals(baseLocation)...
java
@NonNull public static SpannableString getColorText(@NonNull CharSequence content, int start, int end, @ColorInt int color) { SpannableString stringSpan = new SpannableString(content); stringSpan.setSpan(new ForegroundColorSpan(color), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); return ...
java
public static final byte[] fromHex(String hexDump) { List<Integer> list = new ArrayList<>(); String[] lines = hexDump.split("\n"); if (lines.length < 2) { throw new IllegalArgumentException("not a hex dump"); } if (!lines[0].contains(Title)) ...
python
def show(cls, cluster_id_label): """ Show information about the cluster with id/label `cluster_id_label`. """ conn = Qubole.agent() return conn.get(cls.element_path(cluster_id_label))
java
public List<MarketHistoryResponse> getMarketsRegionIdHistory(Integer regionId, Integer typeId, String datasource, String ifNoneMatch) throws ApiException { ApiResponse<List<MarketHistoryResponse>> resp = getMarketsRegionIdHistoryWithHttpInfo(regionId, typeId, datasource, ifNoneMatch)...
python
def system_methodSignature(self, method_name: str)->str: """获取函数的签名. system.methodSignature('add') => [double, int, int] Parameters: method_name (str): - 要查看的函数名 Returns: (str): - 签名文本 """ method = None if method_name in self.funcs: ...
python
def write_edge (self, node): """Write one edge.""" self.writeln(u" edge [") self.writeln(u' label "%s"' % node["edge"]) self.writeln(u" source %d" % self.nodes[node["parent_url"]]["id"]) self.writeln(u" target %d" % node["id"]) if self.has_part("result"): ...
java
protected <T> T readResponse(Response response,JavaType javaType) { try { return objectMapper.readValue(response.body().byteStream(), javaType); } catch (IOException e) { throw new ClientMarshallingException("Error reading results.",e); } }
java
public Label newLabelFromString(String word) { int where = word.lastIndexOf(divider); if (where >= 0) { return new WordTag(word.substring(0, where), word.substring(where + 1)); } else { return new WordTag(word); } }
java
@NonNull public static File getFileForUri(@NonNull Uri uri) { String path = uri.getEncodedPath(); final int splitIndex = path.indexOf('/', 1); final String tag = Uri.decode(path.substring(1, splitIndex)); path = Uri.decode(path.substring(splitIndex + 1)); if (!"root".equalsI...
java
@Override public GeoPointMapper build(String field) { return new GeoPointMapper(field, validated, latitude, longitude, maxLevels); }
java
public final AntlrDatatypeRuleToken ruleOpCompare() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); Token kw=null; enterRule(); try { // InternalSARL.g:12767:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ) ...
python
def edit_pool(self, id): """ Edit a pool. """ # extract attributes p = Pool.get(int(id)) if 'name' in request.json: p.name = validate_string(request.json, 'name') if 'description' in request.json: p.description = validate_string(request.json, 'des...
java
public R visit(String name, int pos, Annotation[] value, P param) { for (int i=0; i<value.length; i++) { visit(null, i, value[i], param); } return null; }
java
@Programmatic public void create( final String username, final String sessionId, final SessionLoggingService.CausedBy causedBy, final Timestamp timestamp) { SessionLogEntry sessionLogEntry; sessionLogEntry = repositoryService.instantiate(SessionLogEntr...
python
def _get_cert_expiration_time(headers): """Get the expiration time for a cert, given the response headers. Get expiration time from the headers in the result. If we can't get a time from the headers, this returns 0, indicating that the cert shouldn't be cached. Args: headers: A dict containing the resp...
python
def unify(self): """Unifies the vector. The length of the vector will be 1. :return: Return the instance itself :rtype: Vector """ length = float(self.norm()) for row in xrange(self.get_height()): self.set_value(0, row, self.get_value(0, row) / length) ...
java
public <T extends Service<HttpRequest, HttpResponse>, R extends Service<HttpRequest, HttpResponse>> ServerBuilder decorator(Function<T, R> decorator) { requireNonNull(decorator, "decorator"); @SuppressWarnings("unchecked") final Function<Service<HttpRequest, HttpResponse>, Service<HttpRequ...
java
public static Granularity toQueryGranularity(final ExtractionFn extractionFn) { if (extractionFn instanceof TimeFormatExtractionFn) { final TimeFormatExtractionFn fn = (TimeFormatExtractionFn) extractionFn; if (fn.getFormat() == null && fn.getTimeZone() == null && fn.getLocale() == null && fn.isAsMill...
java
public final <T4, T5> Tuple5<T1, T2, T3, T4, T5> concat(Tuple2<T4, T5> tuple) { return new Tuple5<>(v1, v2, v3, tuple.v1, tuple.v2); }
java
public static LargeBlockTask getLoadTask(BlockId blockId, ByteBuffer block) { return new LargeBlockTask() { @Override public LargeBlockResponse call() throws Exception { Exception theException = null; try { LargeBlockManager.getInstance...
python
def iterate(self, start_line=None, header: list=['qaccver', 'saccver', 'pident', 'length', 'mismatch', 'gapopen', 'qstart', 'qend', 'sstart', 'send', 'evalue', 'bitscore'], comments: bool=False): """Iterate over B6/M8 file and return B6/M8 entries Args: start_line (str): Ne...
java
@Override public Object get(Object key) { if (INSTALL_KERNEL_INIT_CODE.equals(key)) return initValidate(); if (INSTALL_KERNEL_INIT_ERROR_MESSAGE.equals(key) || RUNTIME_INSTALL_DIR.equals(key)) return data.get(key); if (installKernelMap == null) { ...
java
@CheckForNull @SuppressWarnings( "NP_BOOLEAN_RETURN_NULL" ) public Boolean setNodeAvailable( final K key, final boolean available ) { final ManagedItem<Boolean> item = _map.get( key ); final Boolean availableObj = Boolean.valueOf( available ); if ( item == null || item._value != availabl...
python
def has_duplicate_max(x): """ Checks if the maximum value of x is observed more than once :param x: the time series to calculate the feature of :type x: numpy.ndarray :return: the value of this feature :return type: bool """ if not isinstance(x, (np.ndarray, pd.Series)): x = np....
python
def GetCredentials(package_name, scopes, client_id, client_secret, user_agent, credentials_filename=None, api_key=None, # pylint: disable=unused-argument client=None, # pylint: disable=unused-argument oauth2client_args=None, ...
java
@Override public Query query(Schema schema) { GeoCircle minCircle = new GeoCircle(longitude, latitude, minDistance); GeoCircle maxCircle = new GeoCircle(longitude, latitude, maxDistance); Condition minCondition = new GeoShapeCondition(boost, field, GeoOperator.IsDisjointTo, minCircle); ...
python
def rule_role(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") rule = ET.SubElement(config, "rule", xmlns="urn:brocade.com:mgmt:brocade-aaa") index_key = ET.SubElement(rule, "index") index_key.text = kwargs.pop('index') role = ET.SubElemen...
python
def connections(self, wait): """ wait for connections to both rabbitmq and elasticsearch to be made before binding a routing key to a channel and sending messages to elasticsearch """ while wait: try: params = pika.ConnectionParameters(host=sel...
python
def getPageSizeByName(self, pageSizeName): """ Returns a validated PageSize instance corresponding to the given name. Returns None if the name is not a valid PageSize. """ pageSize = None lowerCaseNames = {pageSize.lower(): pageSize for pageSize in self.availablePageSizes()} if pageSize...
python
def add_splitrelation(self, splitrelation): """ Parameters ---------- splitrelation : etree.Element etree representation of a <splitRelation> element A <splitRelation> annotates its parent element (e.g. as an anaphora). Its parent can be either a <word...
python
def flush_mod(self): """Flush all pending LDAP modifications.""" for dn in self.__pending_mod_dn__: try: if self.__ro__: for mod in self.__mod_queue__[dn]: if mod[0] == ldap.MOD_DELETE: mod_str = "DELETE"...
python
def string_to_configs(s): """s is a string in one of the following formats: - x,y - (x,y) - {x,y} - {(w,x),(y,z)} In any case, returns a set of tuples of stores. """ s = lexer(s) value = None if s.pos == len(s): value = set() elif s.cur == '{': ...
java
static boolean isBadCase(String name) { EnumItem<NR> nrEnumItem = dictionary.get(name); if (nrEnumItem == null) return false; return nrEnumItem.containsLabel(NR.A); }
python
def load_ds_ids_from_config(self): """Convert config dataset entries to DatasetIDs Special handling is done to provide level specific datasets for any pressured based datasets. For example, a dataset is added for each pressure level of 'Temperature' with each new dataset being n...
python
def parse(cls, line, encoding=pydle.protocol.DEFAULT_ENCODING): """ Parse given line into IRC message structure. Returns a TaggedMessage. """ valid = True # Decode message. try: message = line.decode(encoding) except UnicodeDecodeError: ...
python
def add_resource_attrs_from_type(type_id, resource_type, resource_id,**kwargs): """ adds all the attributes defined by a type to a node. """ type_i = _get_templatetype(type_id) resource_i = _get_resource(resource_type, resource_id) resourceattr_qry = db.DBSession.query(ResourceAttr).filter...
python
def _AcceptRPC(self): """Reads RPC request from stdin and processes it, writing result to stdout. Returns: True as long as execution is to be continued, False otherwise. Raises: RpcException: if no function was specified in the RPC or no such API function exists. """ request =...
java
@Nonnull public static <R> LongFunctionBuilder<R> longFunction(Consumer<LongFunction<R>> consumer) { return new LongFunctionBuilder(consumer); }
java
@Override public void open(Configuration parameters) throws Exception { super.open(parameters); // check and pass the configuration properties KinesisProducerConfiguration producerConfig = KinesisConfigUtil.getValidatedProducerConfiguration(configProps); producer = getKinesisProducer(producerConfig); fina...
python
def update_filter(self): """ Update the filter according to the new properties :return: True if the filter changed, else False :raise ValueError: The filter is invalid """ # Consider the filter invalid self.valid_filter = False try: # Format ...
java
public Pattern compile(String regex) { try { return Pattern.compile(regex); } catch (PatternSyntaxException ex) { return null; } }
java
public void marshall(Evaluation evaluation, ProtocolMarshaller protocolMarshaller) { if (evaluation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(evaluation.getEvaluationId(), EVALUATIONID_BINDIN...
java
private void flushCharactersBuffer() throws IOException { if(charactersBuffer.position() > 0) { writer.write(charactersBuffer.array(), 0, charactersBuffer.position()); charactersBuffer.rewind(); } }
java
public Elements getElementsByTag(String tagName) { Validate.notEmpty(tagName); tagName = normalize(tagName); return Collector.collect(new Evaluator.Tag(tagName), this); }
java
public <A, B, C> void publishEvent(final EventTranslatorThreeArg<T, A, B, C> eventTranslator, final A arg0, final B arg1, final C arg2) { ringBuffer.publishEvent(eventTranslator, arg0, arg1, arg2); }
python
def group_by(self, by=None, **additional_grouping_expressions): """ Create an intermediate grouped table expression, pending some group operation to be applied with it. Examples -------- >>> import ibis >>> pairs = [('a', 'int32'), ('b', 'timestamp'), ('c', 'doub...
java
public void connectToPredecessors(Map<IntermediateDataSetID, IntermediateResult> intermediateDataSets) throws JobException { List<JobEdge> inputs = jobVertex.getInputs(); if (LOG.isDebugEnabled()) { LOG.debug(String.format("Connecting ExecutionJobVertex %s (%s) to %d predecessors.", jobVertex.getID(), jobVerte...
python
def archive(self): """ Archives (soft delete) all the records matching the query. This assumes that the model allows archiving (not many do - especially transactional documents). Internal implementation sets the active field to False. """ ids = self.rpc_model.se...
java
public static int bwtransform(byte[] T, byte[] U, int[] A, int n) { int i, pidx; if ((T == null) || (U == null) || (A == null) || (T.length < n) || (U.length < n) || (A.length < n)) { return -1; } if (n <= 1) { if (n == 1) { U[0] = ...
python
def zscore(self, axis=1): """ Subtract the mean and divide by standard deviation within or across records. Parameters ---------- axis : int, optional, default = 0 Which axis to zscore along, within (1) or across (0) records """ if axis == 1: ...
python
def db_query(self, query, args=None): """ Execute a query in the DB """ if args is None: self.cursor.execute(query) else: self.cursor.execute(query, args)
java
public static void main(String[] args) { try { final SeedLauncher seedLauncher; final String toolName = System.getProperty("seedstack.tool"); if (!Strings.isNullOrEmpty(toolName)) { seedLauncher = Seed.getToolLauncher(toolName); } else { ...
java
private boolean isInCategory(String myCategory, String categoryList) { StringTokenizer st = new StringTokenizer(categoryList, "+"); while (st.hasMoreTokens()) { if (myCategory.equals(st.nextToken())) return true; } return false; }
python
def get_lambda_output(stdout_stream): """ This method will extract read the given stream and return the response from Lambda function separated out from any log statements it might have outputted. Logs end up in the stdout stream if the Lambda function wrote directly to stdout using Syst...
java
@Override public CheckIfPhoneNumberIsOptedOutResult checkIfPhoneNumberIsOptedOut(CheckIfPhoneNumberIsOptedOutRequest request) { request = beforeClientExecution(request); return executeCheckIfPhoneNumberIsOptedOut(request); }
python
def config_amend_(self,config_amend): """ This will take a YAML or dict configuration and load it into the configuration file for furthur usage. The good part about this method is that it doesn't clobber, only appends when keys are missing. This should provide a ...
java
public void initAllLoadedPlugins() throws PluginException { LOGGER.debug("Initializig all loaded plugins"); for (Class<? extends Plugin> pluginClass : implementations.keySet()) { Set<PluginContext> set = implementations.get(pluginClass); for (PluginContext pluginContext : set) { try { pluginContext.i...
java
@Override public Node get(ArchivePath path) { Validate.notNull(path, "No path was specified"); Node node = content.get(path); if (node == null && contains(path)) { node = getNestedNode(path); } return node; }
python
def yield_pair_gradients(self, index1, index2): """Yields pairs ((s'(r_ij), grad_i v(bar{r}_ij))""" A = self.As[index1, index2] B = self.Bs[index1, index2] distance = self.distances[index1, index2] yield -B*A*np.exp(-B*distance), np.zeros(3)
java
public T uniqueResult() { if (list == null || list.size() == 0) return null; else if (list.size() == 1) return list.get(0); else throw new IllegalArgumentException("Asked for unique result but resultset contained " + list.size() + " results!"); }
python
def general_node_label(self, node): """Used for debugging - gives a short text description of a graph node.""" G = self.G if G.node[node]['is_event']: return 'event type=' + G.node[node]['type'] else: return 'entity text=' + G.node[node]['text']
python
def crop_2dimage(img, beg_coords, end_coords): """Crops a 3d image to the bounding box specified.""" cropped_img = img[ beg_coords[0]:end_coords[0], beg_coords[1]:end_coords[1], ] return cropped_img
java
public void setFormFuncDisc(String v) { if (PTBConstituent_Type.featOkTst && ((PTBConstituent_Type)jcasType).casFeat_formFuncDisc == null) jcasType.jcas.throwFeatMissing("formFuncDisc", "de.julielab.jules.types.PTBConstituent"); jcasType.ll_cas.ll_setStringValue(addr, ((PTBConstituent_Type)jcasType).casFe...
java
public Object writeReplace(Object mockitoMock) throws ObjectStreamException { // reentrant lock for critical section. could it be improved ? mutex.lock(); try { // mark started flag // per thread, not per instance // temporary loosy hack to avoid stackoverflow ...
python
def _resolve_fn_sub(uri_data): """ Tries to resolve an Integration URI which contains Fn::Sub intrinsic function. This method tries to resolve and produce a string output. Example: { "Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/funct...
python
def __main(): '''This module can also be run directly for testing Args: detail|list : Provide ``detail`` or version ``list``. system|system+user: System installed and System and User installs. ''' if len(sys.argv) < 3: sys.stderr.write('usage: {0} <detail|list> <syste...
python
def event(self, event_name): """Register an event that occurred during processing of a task of the given type. Args: event_name: str A name for a type of events. Events of the same type are displayed as a single entry and a total count of occurences. ...
java
protected void assertNoNameParameter(Method executeMethod, String urlPattern, String elementName) { if (!elementName.isEmpty()) { throwUrlPatternNamedParameterUnsupportedException(executeMethod, urlPattern, elementName); } }
python
def find_datastore_by_name(self, si, path, name): """ Finds datastore in the vCenter or returns "None" :param si: pyvmomi 'ServiceInstance' :param path: the path to find the object ('dc' or 'dc/folder' or 'dc/folder/folder/etc...') :param name: the datastore ...
java
public List<Object> getEntities(String name) { List<Object> entitiesList = new LinkedList<Object>(); for (Result result : results) { if (result.getResultName().equals(name)) { entitiesList.add(result.getObject()); } } return entitiesList; }
java
@Override public Point2D getPoint2D(Point2D srcPt, Point2D dstPt) { return (Point2D) srcPt.clone(); }
python
def error_handling(cls, fn): """Decorator to handle errors""" def wrapper(*args, **kwargs): try: result = fn(*args, **kwargs) return result except InvalidRequestError as e: write_exception(e) if hasattr(e, 'request'...
java
public static void infoAndDebug(Logger log, String methodName, Object... params) { if (!log.isInfoEnabled()) return; int length = params.length; Object[] newParams = new Object[length]; boolean hasCollection = false; for (int i = 0; i < length; i++) { ...
python
def get_cutout(self, resource, resolution, x_range, y_range, z_range, time_range=None, id_list=[], access_mode=CacheMode.no_cache, **kwargs): """Get a cutout from the volume service. Args: resource (intern.resource.boss.resource.ChannelResource): Channel or layer resource. resol...
java
public static boolean isAllAlpha(String str) { if (str == null) return false; for (int i = str.length() - 1; i >= 0; i--) { if (!Character.isLetter(str.charAt(i))) return false; } return true; }
python
def mainline(self): """ Returns the main line of the game (variation A) as a 'GameTree'.""" if self.variations: return GameTree(self.data + self.variations[0].mainline()) else: return self
java
private RLSupplier<Value> evaluate() { /* check if is there something to evaluate */ if (stackRPN.empty()) { return () -> new StringValue(""); } /* clean answer stack */ stackAnswer.clear(); /* get the clone of the RPN stack for further evaluating */ @SuppressWarnings...
java
public EEnum getObjectClassificationObjClass() { if (objectClassificationObjClassEEnum == null) { objectClassificationObjClassEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(100); } return objectClassificationObjClassEEnum; }
python
def _example_plate_stock(quote_ctx): """ 获取板块下的股票列表,输出 市场,股票每手,股票名称,所属市场,子类型,股票类型 """ ret_status, ret_data = quote_ctx.get_plate_stock("SH.BK0531") if ret_status != ft.RET_OK: print(ret_data) exit() print("plate_stock") print(ret_data)
python
def validate(self): """ validates the feature configuration, and returns a list of errors (empty list if no error) validate should: * required variables * warn on unused variables errors should either be reported via self._log_error(), or raise an exception """...
python
def _lightness(color, **kwargs): """ Get lightness value of HSL color. """ l = colorsys.rgb_to_hls(*[x / 255.0 for x in color.value[:3]])[1] return NumberValue((l * 100, '%'))
python
async def prover_get_credential(wallet_handle: int, cred_id: str) -> str: """ Gets human readable credential by the given id. :param wallet_handle: wallet handler (created by open_wallet). :param cred_id: Identifier by which requested credential is stored in the wallet ...
python
def connect(self, protocol=None, mode=None, disposition=None): """call inner component connect""" self.component.connect(protocol, mode, disposition)
java
public String getCurrentResourceName() { if (isMultiOperation()) { return ""; } String resourceName = CmsResource.getName(getParamResource()); if (resourceName.endsWith("/")) { resourceName = resourceName.substring(0, resourceName.length() - 1); } ...
java
public static void depthTo3D(CameraPinholeBrown param , Planar<GrayU8> rgb , GrayU16 depth , FastQueue<Point3D_F64> cloud , FastQueueArray_I32 cloudColor ) { cloud.reset(); cloudColor.reset(); RemoveBrownPtoN_F64 p2n = new RemoveBrownPtoN_F64(); p2n.setK(param.fx,param.fy,param.skew,param.cx,param.cy)...
java
private PopupContextMenuItemFactory getPopupFlagLoggedOutIndicatorMenu() { if (this.popupFlagLoggedOutIndicatorMenuFactory == null) { popupFlagLoggedOutIndicatorMenuFactory = new PopupContextMenuItemFactory("dd - " + Constant.messages.getString("context.flag.popup")) { private static final long serialVer...
python
def get_gateway_addr(): """Use netifaces to get the gateway address, if we can't import it then fall back to a hack to obtain the current gateway automatically, since Python has no interface to sysctl(). This may or may not be the gateway we should be contacting. It does not guara...
python
def get_all_subs_satellites_by_type(self, sat_type, realms): """Get all satellites of the wanted type in this realm recursively :param sat_type: satellite type wanted (scheduler, poller ..) :type sat_type: :param realms: all realms :type realms: list of realm object :ret...