text
stringlengths
78
104k
score
float64
0
0.18
def vert_function(script, function='(q < 0)', strict_face_select=True): """Boolean function using muparser lib to perform vertex selection over current mesh. See help(mlx.muparser_ref) for muparser reference documentation. It's possible to use parenthesis, per-vertex variables and boolean operator: ...
0.001841
def CheckTrailingSemicolon(filename, clean_lines, linenum, error): """Looks for redundant trailing semicolon. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. error: The function to call with any error...
0.014521
def register_printer(self, printer_class): """ :param printer_class: Class inheriting from `AbstractPrinter`. """ self._check_common_things('printer', printer_class, AbstractPrinter, self._printers) instance = printer_class(self, logger_printer) self._printers.append(ins...
0.009202
def list_results(context, id, sort, limit): """list_result(context, id) List all job results. >>> dcictl job-results [OPTIONS] :param string id: ID of the job to consult result for [required] :param string sort: Field to apply sort :param integer limit: Max number of rows to return """ ...
0.001805
def start(st_reg_number): """Checks the number valiaty for the Minas Gerais state""" #st_reg_number = str(st_reg_number) number_state_registration_first_digit = st_reg_number[0:3] + '0' + st_reg_number[3: len(st_reg_number)-2] weights_first_digit = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2] wights_second_...
0.003797
def _direct_upload(file_obj, file_name, fields, session, samples_resource): """Uploads a single file-like object via our validating proxy. Maintains compatibility with direct upload to a user's S3 bucket as well in case we disable our validating proxy. Parameters ---------- file_obj : `FASTXInterle...
0.003471
def read_str(delim=',', *lines): """This function is similar to read_csv, but it reads data from the list of <lines>. fd = open("foo", "r") data = chart_data.read_str(",", fd.readlines())""" data = [] for line in lines: com = parse_line(line, delim) data.append(com) return data
0.003165
def _post_run_hook(self, runtime): ''' generates a report showing slices from each axis ''' assert len(self.inputs.mask_files) == 1, \ "ACompCorRPT only supports a single input mask. " \ "A list %s was found." % self.inputs.mask_files self._anat_file = self.inputs.realig...
0.004392
def _get_filename_path(self, path): """ Helper function for creating filename without file extension """ feature_filename = os.path.join(path, self.feature_type.value) if self.feature_name is not None: feature_filename = os.path.join(feature_filename, self.feature_name...
0.008427
def selenol_params(**kwargs): """Decorate request parameters to transform them into Selenol objects.""" def params_decorator(func): """Param decorator. :param f: Function to decorate, typically on_request. """ def service_function_wrapper(service, message): """Wrap f...
0.00157
def by_release(cls, session, package_name, version): """ Get release files for a given package name and for a given version. :param session: SQLAlchemy session :type session: :class:`sqlalchemy.Session` :param package_name: package name :type package_name: unico...
0.00274
def reverse(array): """ returns a reversed numpy array """ l = list(array) l.reverse() return _n.array(l)
0.015504
def after_run(self, remote_file_data): """ Save uuid of file to our LocalFile :param remote_file_data: dict: DukeDS file data """ if self.file_upload_post_processor: self.file_upload_post_processor.run(self.settings.data_service, remote_file_data) remote_file_...
0.006289
def reverse_word( word ): """ reverse a Tamil word according to letters not unicode-points """ op = get_letters( word ) op.reverse() return u"".join(op)
0.029762
def visitNodeConstraintValueSet(self, ctx: ShExDocParser.NodeConstraintValueSetContext): """ nodeConstraint: valueSet xsFacet* #nodeConstraintValueSet """ self.nodeconstraint.values = [] self.visitChildren(ctx)
0.012821
def str_time_to_day_seconds(time): """ Converts time strings to integer seconds :param time: %H:%M:%S string :return: integer seconds """ t = str(time).split(':') seconds = int(t[0]) * 3600 + int(t[1]) * 60 + int(t[2]) return seconds
0.003774
def formula(self): """Species formula""" if self._reader._level == 3: for ns in (FBC_V2, FBC_V1): formula = self._root.get(_tag('chemicalFormula', ns)) if formula is not None: return formula return None
0.006873
def delete_client(self, identifier): """Delete client.""" params = {'id': identifier} response = yield from self._transact(SERVER_DELETECLIENT, params) self.synchronize(response)
0.009524
def get_authenticated_person(self): """Retrieves the person associated with this account""" try: output = self._get_data() self._logger.debug(output) person = Person([ self.email, output[9][1], None, None...
0.003398
def POST_AUTH(self, courseid): # pylint: disable=arguments-differ """ POST request """ course, __ = self.get_course_and_check_rights(courseid, None, False) data = web.input() if "remove" in data: try: if data["type"] == "all": aggregations...
0.007414
def items(self): '''Return a list of tuples of all the keys and tasks''' pairs = [] for key, value in self.map.items(): if isinstance(value, Shovel): pairs.extend([(key + '.' + k, v) for k, v in value.items()]) else: pairs.append((key, valu...
0.005682
def get_service_definitions(self, service_type=None): """GetServiceDefinitions. [Preview API] :param str service_type: :rtype: [ServiceDefinition] """ route_values = {} if service_type is not None: route_values['serviceType'] = self._serialize.url('ser...
0.007289
def walkfolder(toppath, pred): """ walk folder if pred(foldername) is True :type toppath: str :type pred: function(str) => bool """ for entry in scandir.scandir(toppath): if not entry.is_dir() or not pred(entry.name): continue yield entry.path for p in walkfol...
0.002762
def parameterize_notebook(nb, parameters, report_mode=False): """Assigned parameters into the appropriate place in the input notebook Parameters ---------- nb : NotebookNode Executable notebook object parameters : dict Arbitrary keyword arguments to pass as notebook parameters rep...
0.002584
def process_request(self, request): """ Process a Django request and authenticate users. If a JWT authentication header is detected and it is determined to be valid, the user is set as ``request.user`` and CSRF protection is disabled (``request._dont_enforce_csrf_checks = True``) on ...
0.003734
def _get_num_tokens_from_first_line(line: str) -> Optional[int]: """ This function takes in input a string and if it contains 1 or 2 integers, it assumes the largest one it the number of tokens. Returns None if the line doesn't match that pattern. """ fields = line.split(' ') if 1 <= len...
0.006897
def all_of(api_call, *args, **kwargs): """ Generator that iterates over all results of an API call that requires limit/start pagination. If the `limit` keyword argument is set, it is used to stop the generator after the given number of result items. >>> for i, v in enumerate(all_of(api.get_content...
0.002604
def geohash_to_polygon(geo): """ :param geo: String that represents the geohash. :return: Returns a Shapely's Polygon instance that represents the geohash. """ lat_centroid, lng_centroid, lat_offset, lng_offset = geohash.decode_exactly(geo) corner_1 = (lat_centroid - lat_offset, lng_centroid - ...
0.003096
def visit_Call(self, node: ast.Call) -> None: """Represent the call by dumping its source code.""" if node in self._recomputed_values: value = self._recomputed_values[node] text = self._atok.get_text(node) self.reprs[text] = value self.generic_visit(node=nod...
0.006211
def _check_image(self, image_nD): """Sanity checks on the image data""" self.input_image = load_image_from_disk(image_nD) if len(self.input_image.shape) < 3: raise ValueError('Input image must be atleast 3D') if np.count_nonzero(self.input_image) == 0: raise Va...
0.004695
def from_array(cls, array, name=None, log_in_history=True): """Return :class:`jicimagelib.image.Image` instance from an array. :param array: :class:`numpy.ndarray` :param name: name of the image :param log_in_history: whether or not to log the creation event ...
0.004637
def keys(self): """List of reader's keys. """ keys = [] for val in self.form.scales.values(): keys += val.dtype.fields.keys() return keys
0.010582
def run(self): ''' xfer & run module on all matched hosts ''' # find hosts that match the pattern hosts = self.inventory.list_hosts(self.pattern) if len(hosts) == 0: self.callbacks.on_no_hosts() return dict(contacted={}, dark={}) global multiprocessing_r...
0.004324
def schedules(self, schedules): ''' Set the posting schedules for the specified social media profile. ''' url = PATHS['UPDATE_SCHEDULES'] % self.id data_format = "schedules[0][%s][]=%s&" post_data = "" for format_type, values in schedules.iteritems(): for value in values: ...
0.004866
def _maybe_add_conditions_to_implicit_api_paths(self, template): """ Add conditions to implicit API paths if necessary. Implicit API resource methods are constructed from API events on individual serverless functions within the SAM template. Since serverless functions can have condition...
0.005698
def _put_or_post_json(self, method, url, data): """ urlencodes the data and PUTs it to the url the response is parsed as JSON and the resulting data type is returned """ if self.parsed_endpoint.scheme == 'https': conn = httplib.HTTPSConnection(self.parsed_endpoint.net...
0.002193
def erase_key_value(self, *args): """ Erase key-value represented fields. :rtype: DataFrame :Example: >>> new_ds = df.erase_key_value('f1 f2') """ new_df = copy_df(self) fields = _render_field_set(args) self._assert_ml_fields_valid(*fields) ...
0.006696
def safe_info(self, dic=None): """ Returns public information of the object """ if dic is None and dic != {}: dic = self.to_dict() output = {} for (key, value) in dic.items(): if key[0] != '_': if isinstance(value, SerializableObjec...
0.001984
def start_with(self, x): """Returns all arguments beginning with given string (or list thereof). """ _args = [] for arg in self.all: if _is_collection(x): for _x in x: if arg.startswith(x): _args.append(...
0.004049
def _to_DOM(self): """ Dumps object data to a fully traversable DOM representation of the object. :returns: a ``xml.etree.Element`` object """ last_weather = None if (self._last_weather and isinstance(self._last_weather, weather.Weather)): ...
0.001559
def readFromProto(cls, proto): """ Overrides :meth:`nupic.bindings.regions.PyRegion.PyRegion.readFromProto`. """ instance = cls() instance.encoder = MultiEncoder.read(proto.encoder) if proto.disabledEncoder is not None: instance.disabledEncoder = MultiEncoder.read(proto.disabledEncode...
0.006198
def fcsp_sa_fcsp_auth_policy_switch(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") fcsp_sa = ET.SubElement(config, "fcsp-sa", xmlns="urn:brocade.com:mgmt:brocade-fc-auth") fcsp = ET.SubElement(fcsp_sa, "fcsp") auth = ET.SubElement(fcsp, "auth") ...
0.005464
def _sync_binary_dep_links(self, target, gopath, lib_binary_map): """Syncs symlinks under gopath to the library binaries of target's transitive dependencies. :param Target target: Target whose transitive dependencies must be linked. :param str gopath: $GOPATH of target whose "pkg/" directory must be popula...
0.013001
def calc_accel_correction(self, damped_JTJ, delta0): """ Geodesic acceleration correction to the LM step. Parameters ---------- damped_JTJ : numpy.ndarray The damped JTJ used to calculate the initial step. delta0 : numpy.ndarray Th...
0.004028
def updateFeatureService(self, efs_config): """Updates a feature service. Args: efs_config (list): A list of JSON configuration feature service details to update. Returns: dict: A dictionary of results objects. """ if self.securityhandler...
0.010884
def build_opener(self): """ Builds url opener, initializing proxy. @return: OpenerDirector """ http_handler = urllib2.HTTPHandler() # debuglevel=self.transport.debug if util.empty(self.transport.proxy_url): return urllib2.build_opener(http_handler) p...
0.006098
def hash(self): """ Returns a hash of this render configuration from the variable, renderer, and time_index parameters. Used for caching the full-extent, native projection render so that subsequent requests can be served by a warp operation only. """ renderer_str = "{}|{...
0.007973
def parse(self, key, value): """Parse the environment value for a given key against the schema. Args: key: The name of the environment variable. value: The value to be parsed. """ if value is not None: try: return self._parser(value) ...
0.003717
def bokeh_palette(name, rawtext, text, lineno, inliner, options=None, content=None): ''' Generate an inline visual representations of a single color palette. This function evaluates the expression ``"palette = %s" % text``, in the context of a ``globals`` namespace that has previously imported all of `...
0.00427
def install_completion(ctx, attr, value): # pragma: no cover """Install completion for the current shell.""" import click_completion.core if not value or ctx.resilient_parsing: return value shell, path = click_completion.core.install() click.secho( '{0} completion installed in {1}...
0.002674
def add_edge(self, info): """ Handles adding an Edge to the graph. """ if not info.initialized: return graph = self._request_graph(info.ui.control) if graph is None: return n_nodes = len(graph.nodes) IDs = [v.ID for v in graph.nodes] ...
0.002119
def get_root_folder(): """ returns the home folder and program root depending on OS """ locations = { 'linux':{'hme':'/home/duncan/', 'core_folder':'/home/duncan/dev/src/python/AIKIF'}, 'win32':{'hme':'T:\\user\\', 'core_folder':'T:\\user\\dev\\src\\python\\AIKIF'}, 'cygwin':{'hme':os....
0.021823
def one_item(self, item, detach:bool=False, denorm:bool=False, cpu:bool=False): "Get `item` into a batch. Optionally `detach` and `denorm`." ds = self.single_ds with ds.set_item(item): return self.one_batch(ds_type=DatasetType.Single, detach=detach, denorm=denorm, cpu=cpu)
0.038835
def is_default(self): """Return True if no active values, or if the active value is the default""" if not self.get_applicable_values(): return True if self.get_value().is_default: return True return False
0.01145
def is_subscriber(self): """Returns whether the user is a subscriber or not. True or False.""" doc = self._request(self.ws_prefix + ".getInfo", True) return _extract(doc, "subscriber") == "1"
0.009217
def add_vip_incremento(self, id): """Adiciona um vip à especificação do grupo virtual. :param id: Identificador de referencia do VIP. """ vip_map = dict() vip_map['id'] = id self.lista_vip.append(vip_map)
0.007843
def plot_polygon(polygon, show=True, **kwargs): """ Plot a shapely polygon using matplotlib. Parameters ------------ polygon : shapely.geometry.Polygon Polygon to be plotted show : bool If True will display immediately **kwargs Passed to plt.plot """ import matplot...
0.001366
def group_required(group, login_url=None, redirect_field_name=REDIRECT_FIELD_NAME, skip_superuser=True): """ View decorator for requiring a user group. """ def decorator(view_func): @login_required(redirect_field_name=redirect_fiel...
0.001377
def with_preference_param(self): """Add the preference param to the ES request and return a new Search. The preference param avoids the bouncing effect with multiple replicas, documented on ES documentation. See: https://www.elastic.co/guide/en/elasticsearch/guide/current /_sear...
0.003861
def get_graph_data(self, graph, benchmark): """ Iterator over graph data sets Yields ------ param_idx Flat index to parameter permutations for parameterized benchmarks. None if benchmark is not parameterized. entry_name Name for the da...
0.004211
def _bin_op(instance, opnode, op, other, context, reverse=False): """Get an inference callable for a normal binary operation. If *reverse* is True, then the reflected method will be used instead. """ if reverse: method_name = protocols.REFLECTED_BIN_OP_METHOD[op] else: method_name =...
0.001783
def viewItem(self): """ Returns the view item that is linked with this item. :return <XGanttViewItem> """ if type(self._viewItem).__name__ == 'weakref': return self._viewItem() return self._viewItem
0.010753
def generate_ctrlptsw2d_file(file_in='', file_out='ctrlptsw.txt'): """ Generates weighted control points from unweighted ones in 2-D. This function #. Takes in a 2-D control points file whose coordinates are organized in (x, y, z, w) format #. Converts into (x*w, y*w, z*w, w) format #. Saves the r...
0.003202
def days(start, stop): """ Return days between start & stop (inclusive) Note that start must be less than stop or else 0 is returned. @param start: Start date @param stop: Stop date @return int """ dates=rrule.rruleset() # Get dates between start/stop (which are inclusive) ...
0.009685
def on_window_horizontal_displacement_value_changed(self, spin): """Changes the value of window-horizontal-displacement """ self.settings.general.set_int('window-horizontal-displacement', int(spin.get_value()))
0.012821
def handle_namespace_pattern(self, line: str, position: int, tokens: ParseResults) -> ParseResults: """Handle statements like ``DEFINE NAMESPACE X AS PATTERN "Y"``. :raises: RedefinedNamespaceError """ namespace = tokens['name'] self.raise_for_redefined_namespace(line, position,...
0.007009
def process_streamer(self, streamer, callback=None): """Start streaming a streamer. Args: streamer (DataStreamer): The streamer itself. callback (callable): An optional callable that will be called as: callable(index, success, highest_id_received_from_other_side)...
0.005229
def process_uncaught_exception(self, e): """This is called to handle otherwise uncaught exceptions from the service. The service will terminate either way, but here we can do things such as gathering useful environment information and logging for posterity.""" # Add information about the...
0.00417
def create(cls, infile, config=None, params=None, mask=None): """Create a new instance of GTAnalysis from an analysis output file generated with `~fermipy.GTAnalysis.write_roi`. By default the new instance will inherit the configuration of the saved analysis instance. The configuration...
0.002435
def dataframe_except(df, *cols, **filters): ''' dataframe_except(df, k1=v1, k2=v2...) yields df after selecting all the columns in which the given keys (k1, k2, etc.) have been selected such that the associated columns in the dataframe contain only the rows whose cells match the given values. da...
0.011779
def get_model(self): """ Get a model if the formula was previously satisfied. """ if self.glucose and self.status == True: model = pysolvers.glucose41_model(self.glucose) return model if model != None else []
0.01487
def _make_chunk_iter(stream, limit, buffer_size): """Helper for the line and chunk iter functions.""" if isinstance(stream, (bytes, bytearray, text_type)): raise TypeError('Passed a string or byte object instead of ' 'true iterator or stream.') if not hasattr(stream, 'read'):...
0.001529
def _get_service(self): """Check mandatory service name parameter in POST request.""" if "service" in self.document.attrib: value = self.document.attrib["service"].lower() if value in allowed_service_types: self.params["service"] = value else: ...
0.007143
def makefile(self, mode='r', bufsize=-1): 'return a file-like object that operates on the ssl connection' sockfile = gsock.SocketFile.__new__(gsock.SocketFile) gfiles.FileBase.__init__(sockfile) sockfile._sock = self sockfile.mode = mode if bufsize > 0: sockfi...
0.005464
def _resolve_path(obj, path): """path is a mul of coord or a coord""" if obj.__class__ not in path.context.accept: result = set() for ctx in path.context.accept: result |= {e for u in obj[ctx] for e in _resolve_path(u, path)} return result if isinstance(obj, Text): ...
0.001176
def create_parser(): """Builds the command parser. This needs to be exported in order for Sphinx to document it correctly. Returns: An instance of an ``argparse.ArgumentParser`` that parses all the commands supported by the PyLink CLI. """ parser = argparse.ArgumentParser(prog=pylink._...
0.0008
def _JRStaeckelIntegrandSquared(u,E,Lz,I3U,delta,u0,sinh2u0,v0,sin2v0, potu0v0,pot): #potu0v0= potentialStaeckel(u0,v0,pot,delta) """The J_R integrand: p^2_u(u)/2/delta^2""" sinh2u= nu.sinh(u)**2. dU= (sinh2u+sin2v0)*potentialStaeckel(u,v0, ...
0.037209
def compute_offset_sad(dem1, dem2, pad=(9,9), plot=False): """Compute subpixel horizontal offset between input rasters using sum of absolute differences (SAD) method """ #This defines the search window size #Use half-pixel stride? #Note: stride is not properly implemented #stride = 1 #ref =...
0.014532
def __Script_Editor_tabWidget_set_ui(self): """ Sets the **Script_Editor_tabWidget** Widget. """ self.Script_Editor_tabWidget.setTabsClosable(True) self.Script_Editor_tabWidget.setMovable(True)
0.008547
def compile_all(self): """Compiles all of the contracts in the self.contracts_dir directory Creates {contract name}.json files in self.output_dir that contain the build output for each contract. """ # Solidity input JSON solc_input = self.get_solc_input() # Com...
0.004234
def raw_sign(message, secret): """Sign a message.""" digest = hmac.new(secret, message, hashlib.sha256).digest() return base64.b64encode(digest)
0.00641
def from_dict(cls, jobj): '''Deserialises the object. Automatically inspects the object's __init__ function and extracts the parameters. Can be trivially over-written. ''' try: obj = cls.__new__(cls) blacklist = set(['__class__', '__type__'] + cls....
0.005111
def get_by_range(model_cls, *args, **kwargs): """ Get ordered list of models for the specified time range. The timestamp on the earliest model will likely occur before start_timestamp. This is to ensure that we return the models for the entire range. :param model_cls: the class of the model to retu...
0.004996
def addfield(self, pkt, s, val): """ Reconstruct the header because the TLS type may have been updated. Then, append the content. """ res = b"" for p in val: res += self.i2m(pkt, p) if (isinstance(pkt, _GenericTLSSessionInheritance) and _tl...
0.003419
def create_from_ll(cls, lls:LabelLists, bs:int=64, val_bs:int=None, ds_tfms:Optional[TfmList]=None, num_workers:int=defaults.cpus, dl_tfms:Optional[Collection[Callable]]=None, device:torch.device=None, test:Optional[PathOrStr]=None, collate_fn:Callable=data_collate, size:int=None, no_che...
0.061245
def get_data_times_for_job(self, num_job): """ Get the data that this job will read in. """ if self.compatibility_mode: job_data_seg = self.get_data_times_for_job_legacy(num_job) else: job_data_seg = self.get_data_times_for_job_workflow(num_job) # Sanity check ...
0.005391
def replace_pattern(name, pattern, repl, count=0, flags=8, bufsize=1, append_if_not_found=False, prepend_if_not_found=False, not_found_content=None, ...
0.001293
def addkey(ctx, key): """ Add a private key to the wallet """ if not key: while True: key = click.prompt( "Private Key (wif) [Enter to quit]", hide_input=True, show_default=False, default="exit", ) if...
0.00074
def _write_critic_model_stats(self, iteration:int)->None: "Writes gradient statistics for critic to Tensorboard." critic = self.learn.gan_trainer.critic self.stats_writer.write(model=critic, iteration=iteration, tbwriter=self.tbwriter, name='crit_model_stats') self.crit_stats_updated = T...
0.01548
def _resolve_fallback(self, gates, n_qubits): """Resolve fallbacks and flatten gates.""" flattened = [] for g in gates: if self._has_action(g): flattened.append(g) else: flattened += self._resolve_fallback(g.fallback(n_qubits), n_qubits) ...
0.008772
def from_dict(result_dict): '''Create a new ``MultipleResults`` object from a dictionary. Keys of the dictionary are unpacked into result names. Args: result_dict (dict) - The dictionary to unpack. Returns: (:py:class:`MultipleResults <d...
0.00974
def present_results(self, query_text, n=10): "Get results for the query and present them." self.present(self.query(query_text, n))
0.013699
def _render_asset(self, subpath): """ Renders the specified cache file. """ return send_from_directory( self.assets.cache_path, self.assets.cache_filename(subpath))
0.009615
def docker_client(): """ Returns a docker-py client configured using environment variables according to the same logic as the official Docker client. """ cert_path = os.environ.get('DOCKER_CERT_PATH', '') if cert_path == '': cert_path = os.path.join(os.environ.get('HOME', ''), '.docker')...
0.000919
def __get_enabled_heuristics(self, url): """ Get the enabled heuristics for a site, merging the default and the overwrite together. The config will only be read once and the merged site-config will be cached. :param str url: The url to get the heuristics for. """...
0.001984
def compositions(self): """ :rtype: twilio.rest.video.v1.composition.CompositionList """ if self._compositions is None: self._compositions = CompositionList(self) return self._compositions
0.008333
def get_batch(self, user_list): """ 批量获取用户基本信息 开发者可通过该接口来批量获取用户基本信息。最多支持一次拉取100条。 详情请参考 https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140839 :param user_list: user_list,支持“使用示例”中两种输入格式 :return: 用户信息的 list 使用示例:: from wechatpy i...
0.002086
def _got_request_exception(self, sender, exception, **extra): """ The signal handler for the got_request_exception signal. """ extra = self.summary_extra() extra['errno'] = 500 self.summary_logger.error(str(exception), extra=extra) g._has_exception = True
0.006431
def stiffness(self, xyp=None, eigenvals_cb=None): """ [DEPRECATED] Use :meth:`Result.stiffness`, stiffness ration Running stiffness ratio from last integration. Calculate sittness ratio, i.e. the ratio between the largest and smallest absolute eigenvalue of the jacobian matrix. The user...
0.001289
def get_issues(): """Get actual issues in the journal.""" issues = [] for entry in Logger.journal: if entry.level >= WARNING: issues.append(entry) return issues
0.009091