text
stringlengths
78
104k
score
float64
0
0.18
def add(self, count, request, data, dap_index): """ Add a single or block register transfer operation to this command """ assert self._data_encoded is False if self._dap_index is None: self._dap_index = dap_index assert self._dap_index == dap_index if...
0.004202
def log_path(cls, project, log): """Return a fully-qualified log string.""" return google.api_core.path_template.expand( "projects/{project}/logs/{log}", project=project, log=log )
0.009259
def get_triangles(graph: DiGraph) -> SetOfNodeTriples: """Get a set of triples representing the 3-cycles from a directional graph. Each 3-cycle is returned once, with nodes in sorted order. """ return { tuple(sorted([a, b, c], key=str)) for a, b in graph.edges() for c in graph.s...
0.002703
def follow_link_by_selector(self, selector): """ Navigate to the href of the element matching the CSS selector. N.B. this does not click the link, but changes the browser's URL. """ elem = find_element_by_jquery(world.browser, selector) href = elem.get_attribute('href') world.browser.get(hr...
0.003096
def run(self) -> None: """Runs the worker and consumes messages from RabbitMQ. Returns only after `shutdown()` is called. """ if self._logging_level: logging.basicConfig( level=getattr(logging, self._logging_level.upper()), format="%(levelname...
0.002217
def rotate(x, y, x0, y0, angle): """ Returns the coordinates of (x,y) rotated around origin (x0,y0). """ x, y = x - x0, y - y0 a, b = cos(radians(angle)), sin(radians(angle)) return (x * a - y * b + x0, y * a + x * b + y0)
0.003846
def get_unstructured(value): """unstructured = (*([FWS] vchar) *WSP) / obs-unstruct obs-unstruct = *((*LF *CR *(obs-utext) *LF *CR)) / FWS) obs-utext = %d0 / obs-NO-WS-CTL / LF / CR obs-NO-WS-CTL is control characters except WSP/CR/LF. So, basically, we have printable runs, plus control c...
0.00042
def get_submission_archive(self, submissions, sub_folders, aggregations, archive_file=None): """ :param submissions: a list of submissions :param sub_folders: possible values: []: put all submissions in / ['taskid']: put all submissions for each task in a different direct...
0.004669
def apply_to_image(self, image, reference=None, interpolation='linear'): """ Apply transform to an image Arguments --------- image : ANTsImage image to which the transform will be applied reference : ANTsImage target space for transforming image ...
0.007042
def update_bbox(self): """ Recalculates the bbox region attribute for the entire file. Useful after adding and/or removing features. No need to use this method just for saving, because saving automatically updates the bbox. """ xmins, ymins, xmaxs, ymaxs = zip(*...
0.00818
def d_deta_from_pfull(arr): """Compute $\partial/\partial\eta$ of the array on full hybrid levels. $\eta$ is the model vertical coordinate, and its value is assumed to simply increment by 1 from 0 at the surface upwards. The data to be differenced is assumed to be defined at full pressure levels. ...
0.000829
def merge(self, from_uuid, to_uuid): """Merge one unique identity into another. Method that joins <from_uuid> unique identity into <to_uuid>. Identities and enrollments related to <from_uuid> will be assigned to <to_uuid>. In addition, <from_uuid> will be removed from the regist...
0.003157
def count(self, view, include=None): """ Return a ViewCount for a view. :param include: list of objects to sideload. `Side-loading API Docs <https://developer.zendesk.com/rest_api/docs/core/side_loading>`__. :param view: View or view id """ return self._get(...
0.010444
def removable(self, node): ''' node is removable only if all of its children are as well. ''' throw_away = [] for child in self.children(node): throw_away.append(self.visit(child)) if self.mode == 'exclusive': return all(throw_away) elif self.mode == 'inclusive': ret...
0.002364
def xclaim(self, name, groupname, consumername, min_idle_time, message_ids, idle=None, time=None, retrycount=None, force=False, justid=False): """ Changes the ownership of a pending message. name: name of the stream. groupname: name of the consumer group. ...
0.00131
def reply_photo( self, photo: str, quote: bool = None, caption: str = "", parse_mode: str = "", ttl_seconds: int = None, disable_notification: bool = None, reply_to_message_id: int = None, reply_markup: Union[ "pyrogram.InlineKeyboardMa...
0.00513
def convert_msg_to_html(msg): """Convert \n into a <BR> for an HTML formatted message""" msg = re.sub("\n", "<br />", msg, flags=re.MULTILINE) return msg
0.006024
def run_total_dos(self, sigma=None, freq_min=None, freq_max=None, freq_pitch=None, use_tetrahedron_method=True): """Calculate total DOS from phonons on sampling mesh. Parameters -------...
0.005534
def all_synonyms(self, include_label=False): """ Retrieves all synonyms Arguments --------- include_label : bool If True, include label/names as Synonym objects Returns ------- list[Synonym] :class:`Synonym` objects """ ...
0.004367
def get_event_discounts(self, id, **data): """ GET /events/:id/discounts/ Returns a :ref:`paginated <pagination>` response with a key of ``discounts``, containing a list of :format:`discounts <discount>` available on this event. field_error event_id NOT_FOUND The event id...
0.010989
def label(self, *args): """ Add a simple label to your chart call each time for each dataset APIPARAM: chl """ if self['cht'] == 'qr': self['chl'] = ''.join(map(str,args)) else: self['chl'] = '|'.join(map(str,args)) return self
0.012698
def extraneous_whitespace(logical_line): r"""Avoid extraneous whitespace. Avoid extraneous whitespace in these situations: - Immediately inside parentheses, brackets or braces. - Immediately before a comma, semicolon, or colon. Okay: spam(ham[1], {eggs: 2}) E201: spam( ham[1], {eggs: 2}) E...
0.000892
def encode(self, x, layer=None, sample=False, **kwargs): '''Encode a dataset using the hidden layer activations of our network. Parameters ---------- x : ndarray A dataset to encode. Rows of this dataset capture individual data points, while columns represent the...
0.002534
def services(self): """gets the services in the current folder""" services = [] if self._services is None: self.__init() for service in self._services: url = "%s/%s/%s" % (self.root, service['name'], service['type']) if service['type'] == "GPServer": ...
0.0059
def set_scale(self, xscale=None, yscale=None, zscale=None, reset_camera=True): """ Scale all the datasets in the scene of the active renderer. Scaling in performed independently on the X, Y and Z axis. A scale of zero is illegal and will be replaced with one. Parameters ...
0.002513
def update(self, enabled=None, cnames=None, comment=None): """ Update the configuration of the StreamingDistribution. The only values of the StreamingDistributionConfig that can be directly updated are: * CNAMES * Comment * Whether the Distribution is enabled or not ...
0.003346
def emit_yep(self, yep): """Gets the css extension point data(html code). Please use this function between in the template, and the application needs to support multiple static folder functions, that is, the app initialized with :class:`~flask_pluginkit.Flask`. Assuming that the follow...
0.004517
def Update(self, data): """Updates a Dirichlet distribution. data: sequence of observations, in order corresponding to params """ m = len(data) self.params[:m] += data
0.009615
def translate(self, dx, dy): """ Move the text from one place to another Parameters ---------- dx : float distance to move in the x-direction dy : float distance to move in the y-direction Returns ------- out : ``Label`` ...
0.003077
def get_logical_drives(self): """Get all the RAID logical drives in the Server. This method returns all the RAID logical drives on the server by examining all the controllers. :returns: a list of LogicalDrive objects. """ logical_drives = [] for controller in se...
0.003774
def dist_location(dist): """ Get the site-packages location of this distribution. Generally this is dist.location, except in the case of develop-installed packages, where dist.location is the source code location, and we want to know where the egg-link file is. """ egg_link = egg_link_path(...
0.002457
def get_rpaths(filename): """ Return a tuple of rpaths from the library `filename` If `filename` is not a library then the returned tuple will be empty. Parameters ---------- filaname : str filename of library Returns ------- rpath : tuple rpath paths in `filename` ...
0.001098
def wait(self, number, patience): """ Waits and resets if necessary. """ # inspect indicator for our number waiting = int(self.client.get(self.keys.indicator)) != number # wait until someone announces our number while waiting: message = self.subscription.listen(patie...
0.002628
def args(self) -> str: """Provides arguments for the command.""" return '{}{}{}'.format( ChangeSpecialDeviceCommand.args, to_ascii_hex(encode_value_using_ma(self._message_attribute, self._control_high_limit), 2), to_ascii...
0.004464
def get_required_query_params(self, request): """ Gets ``username``, ``course_id``, and ``enterprise_customer_uuid``, which are the relevant query parameters for this API endpoint. :param request: The request to this endpoint. :return: The ``username``, ``course_id``, and ``ente...
0.007235
def replace_orders(self, market_id, instructions, customer_ref=None): """This operation is logically a bulk cancel followed by a bulk place. The cancel is completed first then the new orders are placed. :param str market_id: The market id these orders are to be placed on :param list ins...
0.00316
def set_node_attributes(self): """ Replicates molecule site properties (specie, coords, etc.) in the MoleculeGraph. :return: """ species = {} coords = {} properties = {} for node in self.graph.nodes(): species[node] = self.molecule[no...
0.003096
def get_encoder(encoding, *args, **kwargs): """ Returns a L{codec.Encoder} capable of encoding AMF[C{encoding}] streams. @raise ValueError: Unknown C{encoding}. """ def _get_encoder_class(): if encoding == AMF0: try: from cpyamf import amf0 except Imp...
0.001416
def get_referencestock_list(self, code, reference_type): """ 获取证券的关联数据 :param code: 证券id,str,例如HK.00700 :param reference_type: 要获得的相关数据,参见SecurityReferenceType。例如WARRANT,表示获取正股相关的涡轮 :return: (ret, data) ret == RET_OK 返回pd dataframe数据,数据列格式如下 ret ...
0.003265
def _get_indexers_coords_and_indexes(self, indexers): """ Extract coordinates from indexers. Returns an OrderedDict mapping from coordinate name to the coordinate variable. Only coordinate with a name different from any of self.variables will be attached. """ fr...
0.001088
def _shutdown_listen_socket(self): """ Shutdown listening socket :rtype: None """ self.debug("()") if self._listen_socket in self._listening: self._listening.remove(self._listen_socket) if self._listen_socket: self._listen_socket.close() ...
0.005666
def width(self): """The number of columns it would take to display this string""" if self._width is not None: return self._width self._width = sum(fs.width for fs in self.chunks) return self._width
0.008299
def _from_binary_obj_ace(cls, binary_stream): """See base class.""" ''' Access rights flags - 4 Flags - 4 Object type class identifier (GUID) - 16 Inherited object type class identifier (GUID) - 16 SID - n ''' #content = cls._REPR.unpack(binary_stream[:cls._REPR.size]) ...
0.008104
def count_children(obj, type=None): """Return the number of children of obj, optionally restricting by class""" if type is None: return len(obj) else: # there doesn't appear to be any hdf5 function for getting this # information without inspecting each child, which makes this somewha...
0.002451
def set_symbol_lookup_date(self, dt): """Set the date for which symbols will be resolved to their assets (symbols may map to different firms or underlying assets at different times) Parameters ---------- dt : datetime The new symbol lookup date. """ ...
0.003604
def can_view(self, user=None, access_code=None): ''' Returns true if the accessing user is allowed to view this invoice, or if the given access code matches this invoice's user's access code. ''' if user == self.invoice.user: return True if user.is_staff: ...
0.004484
def reboot(self): """Reboots the device. Generally one should use this method to reboot the device instead of directly calling `adb.reboot`. Because this method gracefully handles the teardown and restoration of running services. This method is blocking and only returns when th...
0.003284
def bound_range(vals, density, time_unit='us'): """ Computes a bounding range and density from a number of samples assumed to be evenly spaced. Density is rounded to machine precision using significant digits reported by sys.float_info.dig. """ if not len(vals): return(np.nan, np.nan, de...
0.002676
def next_hyperparameter_lowest_mu(fun_prediction, fun_prediction_args, x_bounds, x_types, minimize_starting_points, minimize_constraints_fun=None): ''' "Lowest Mu" acquisition ...
0.002611
def open(self): """Opens the connection. An open connection will monitor for disconnects from the remote end. Messages are either received as replies to outgoing messages, or received from an incoming queue. """ LOGGER.info('Connecting to %s', self._url) asyncio....
0.005698
def tensor_kraus_maps(k1, k2): """ Generate the Kraus map corresponding to the composition of two maps on different qubits. :param list k1: The Kraus operators for the first qubit. :param list k2: The Kraus operators for the second qubit. :return: A list of tensored Kraus operators. """ ...
0.002667
def email_quoted_txt2html(text, tabs_before=0, indent_txt='>>', linebreak_txt="\n", indent_html=('<div class="commentbox">', "</div>"), linebreak_html='<br/>', inde...
0.000238
def element_screen_center(self, element): """ :returns: The center point of the element. :rtype: class:`dict` with the field "left" set to the X coordinate and the field "top" set to the Y coordinate. """ pos = self.element_screen_position(element...
0.004348
def merge_link_object(serializer, data, instance): """Add a 'links' attribute to the data that maps field names to URLs. NOTE: This is the format that Ember Data supports, but alternative implementations are possible to support other formats. """ link_object = {} if not getattr(instance...
0.000659
async def get_tracks(self, *, limit: Optional[int] = 20, offset: Optional[int] = 0) -> List[Track]: """get the albums tracks from spotify. Parameters ---------- limit : Optional[int] The limit on how many tracks to retrieve for this album (default is 20). offset : Op...
0.008696
def bin_pkg_info(path, saltenv='base'): ''' .. versionadded:: 2015.8.0 Parses RPM metadata and returns a dictionary of information about the package (name, version, etc.). path Path to the file. Can either be an absolute path to a file on the minion, or a salt fileserver URL (e.g. ...
0.000382
def _create_non_null_wrapper(name, t): 'creates type wrapper for non-null of given type' def __new__(cls, json_data, selection_list=None): if json_data is None: raise ValueError(name + ' received null value') return t(json_data, selection_list) def __to_graphql_input__(value, in...
0.001724
def createThreeObjects(): """ Helper function that creates a set of three objects used for basic experiments. :return: (list(list(tuple)) List of lists of feature / location pairs. """ objectA = zip(range(10), range(10)) objectB = [(0, 0), (2, 2), (1, 1), (1, 4), (4, 2), (4, 1)] objectC = [(0, 0), (...
0.015831
def _send(self, prepared_request): """Send a PreparedRequest to the server. Parameters prepared_request (requests.PreparedRequest) Returns (Response) A Response object, whichcontains a server's response to an HTTP request. """ ...
0.004673
def get_class_recipes(class_url, max_page=20, sleep=0.1): """获取某个菜谱分类url下的所有菜谱url""" class_url = class_url + "?page={page}" recipes = dict() # 暴力爬取方案,每个菜谱分类请求100页 for page in range(1, max_page): time.sleep(sleep) url = class_url.format(page=page) print("current url: ", url) ...
0.001951
def generate_token(): """ Generate a new random security token. >>> len(generate_token()) == 50 True Returns: string """ length = 50 stringset = string.ascii_letters + string.digits token = ''.join([stringset[i % len(stringset)] for i in [ord(x) for x in os.urandom(length)]])...
0.005935
def str(self, indent=0, history=None): """ Get a string representation of this object. @param indent: The indent. @type indent: int @return: A string. @rtype: str """ if history is None: history = [] if self in history: retu...
0.001745
def execute_condition(cond): """ Get a rule instance for given operator and return condition lambda func """ condition_method = 'rulengine.conditions.c_{0}_{1}'.format( cond.data_type, cond.operator) try: func = import_class(condition_method) except AttributeError: c...
0.001845
def mixin(self): """ Add the annotations to the ODM Element (if defined) :return: """ if self.milestones: from rwslib.builders.clinicaldata import Annotation, Flag, FlagValue annotation = Annotation() for codelist, milestones in self.milestone...
0.009785
def get_all_roles(resource_root, service_name, cluster_name="default", view=None): """ Get all roles @param resource_root: The root Resource object. @param service_name: Service name @param cluster_name: Cluster name @return: A list of ApiRole objects. """ return call(resource_root.get, _get_roles...
0.014423
def parse_module(module): '''Parse a module's attributes and generate a markdown document.''' attributes = [ (name, type_) for (name, type_) in getmembers(module) if (isclass(type_) or isfunction(type_)) and type_.__module__ == module.__name__ and not type_.__name__.start...
0.001017
def set_allocated_time(self, time): """Sets the allocated time. arg: time (osid.calendaring.Duration): the allocated time raise: InvalidArgument - ``time`` is invalid raise: NoAccess - ``Metadata.isReadOnly()`` is ``true`` *compliance: mandatory -- This method must be imple...
0.003409
def __make_request_headers(self, teststep_dict, entry_json): """ parse HAR entry request headers, and make teststep headers. header in IGNORE_REQUEST_HEADERS will be ignored. Args: entry_json (dict): { "request": { "hea...
0.002591
def add_layer(self, obj=None): """This function adds another empty layer (Layer) to the layers list and optionally merges a given object into this layer :param obj: An object to be merged with this layer :type obj: object """ new_layer = Layer() if obj: ...
0.005249
def __check(self, decorated_function, *args, **kwargs): """ Check whether function is a bounded method or not. If check fails then exception is raised :param decorated_function: called function (original) :param args: args with which function is called :param kwargs: kwargs with which function is called :ret...
0.027027
def decode_value(stream): """Decode the contents of a value from a serialized stream. :param stream: Source data stream :type stream: io.BytesIO :returns: Decoded value :rtype: bytes """ length = decode_length(stream) (value,) = unpack_value(">{:d}s".format(length), stream) return v...
0.003086
def remove_callback(self, handle): """Remove a callback.""" if self._poll is None: raise RuntimeError('poll instance is closed') remove_callback(self, handle) if handle.extra & READABLE: self._readers -= 1 if handle.extra & WRITABLE: self._writ...
0.005731
def create(fmt): """ Creates a GraphRenderer """ w = None if fmt == 'tree': w = AsciiTreeGraphRenderer() elif fmt == 'dot': w = DotGraphRenderer(image_format='dot') elif fmt == 'png': w = DotGraphRenderer(image_format='png') ...
0.003373
def evaluate_script(self): """ Evaluates current **Script_Editor_tabWidget** Widget tab Model editor content into the interactive console. :return: Method success. :rtype: bool """ editor = self.get_current_editor() if not editor: return Fals...
0.007463
def get_users_batch(self, ids): """ Ids: a list of ids that we want to return """ # Allowed maximum number of ids is 50 assert len(ids) <= 50 ids_ = ','.join(ids) url = _USERS_BATCH.format(c_api=_C_API_BEGINNING, api=_API_VERSION, ...
0.016588
def get_domain_resolver(self, domain_name, cur=None): """ Get the last-knwon resolver entry for a domain name Returns None if not found. """ get_cmd = "SELECT resolver FROM {} WHERE domain=? AND resolver != '' AND accepted=1 ORDER BY sequence DESC, parent_zonefile_index DESC LIMI...
0.004545
def get_service_url( self, block_identifier: BlockSpecification, service_hex_address: AddressHex, ) -> Optional[str]: """Gets the URL of a service by address. If does not exist return None""" result = self.proxy.contract.functions.urls(service_hex_address).call( ...
0.008969
def wrap_multipart_params(func): """ A middleware that parses the multipart request body and adds the parsed content to the `multipart_params` attribute. This middleware also merges the parsed value with the existing `params` attribute in same way as `wrap_form_params` is doing. """ def wr...
0.001899
def fetch_transaction_status(self, transaction_id): """ Get the transaction current status. :param transaction_id: :return: """ url = "%s%s%s/status" % (self.api_endpoint, constants.TRANSACTION_STATUS_ENDPOINT, transaction_id) username = self.base.get_usernam...
0.010152
def rm_values_fields(x): """ (Recursive) Remove all "values" fields from the metadata :param any x: Any data type :return dict x: Metadata (values removed) """ if isinstance(x, dict): if "values" in x: del x["values"] else: for k, v in x.items(): ...
0.001757
def ls(): """List all items in the database in a predefined format.""" if not os.path.exists(ARGS.database): exit('Error: The database does not exist; you must create it first.') with sqlite3.connect(ARGS.database) as connection: connection.text_factory = str cursor = connection.curs...
0.000726
def filter(self, drop_duplicates=False, drop_improper_mate_pairs=False, min_mapping_quality=None, min_base_quality=None, filters=None): ''' Return a new PileupCollection that includes only pileup elements satisfying the specified criter...
0.003527
def calculate_hex(hex_string): """Credit for conversion to itsnotlupus/vesync_wsproxy""" hex_conv = hex_string.split(':') converted_hex = (int(hex_conv[0], 16) + int(hex_conv[1], 16))/8192 return converted_hex
0.008264
def steal_page(self, page): """ Steal a page from another document """ if page.doc == self: return self.fs.mkdir_p(self.path) new_page = ImgPage(self, self.nb_pages) logger.info("%s --> %s" % (str(page), str(new_page))) new_page._steal_content...
0.006135
def __watchers_callbacks_exec(self, signal_name): """ Generate callback for a queue :param signal_name: name of a signal that callback is generated for :type signal_name: str :rtype: callable """ def callback_fn(): for watcher in self.__watchers_callbacks[signal_name]: if watcher is not None: ...
0.033613
def get_cuda_visible_devices(): """Get the device IDs in the CUDA_VISIBLE_DEVICES environment variable. Returns: if CUDA_VISIBLE_DEVICES is set, this returns a list of integers with the IDs of the GPUs. If it is not set, this returns None. """ gpu_ids_str = os.environ.get("CUDA_VISI...
0.002058
def task(self, func: Optional[Callable]=None, name: Optional[str]=None, queue: Optional[str]=None, max_retries: Optional[Number]=None, periodicity: Optional[timedelta]=None): """Decorator to register a task function. :arg name: name of the task, used later to schedule jobs ...
0.011182
def api_token_required(f, *args, **kwargs): """ Decorator helper function to ensure some methods aren't needlessly called without an api_token configured. """ try: if args[0].api_token is None: raise AttributeError('Parameter api_token is required.') except AttributeError: ...
0.002421
def remove_results(vcs, signature): """Removed saved results for this signature Args: vcs (easyci.vcs.base.Vcs) signature (str) Raises: ResultsNotFoundError """ results_directory = _get_results_directory(vcs, signature) if not os.path.exists(results_directory): r...
0.002618
def _condHasEffect(self) -> bool: """ :return: True if statements in branches has different effect """ if not self.cases: return False # [TODO] type_domain_covered = bool(self.default) or len( self.cases) == self.switchOn._dtype.domain_size() ...
0.002554
def frames(self): """ Returns the length of a video stream in frames. Returns 0 if not a video stream. """ f=0 if self.isVideo() or self.isAudio(): if self.__dict__['nb_frames']: try: f=int(self.__dict__['nb_frames']) ...
0.012077
def _proxy(self): """ Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context :returns: MessageInteractionContext for this MessageInteractionInstance :rtype: twilio.rest.proxy.v1.servic...
0.006329
def build_toc_line(toc_line_no_indent: str, no_of_indentation_spaces: int = 0) -> str: r"""Build the TOC line. :parameter toc_line_no_indent: the TOC line without indentation. :parameter no_of_indentation_spaces: the number of indentation spaces. Defaults to ``0``. :type toc...
0.001508
def scan(audio_filepaths, *, album_gain=False, skip_tagged=False, thread_count=None, ffmpeg_path=None, executor=None): """ Analyze files, and return a dictionary of filepath to loudness metadata or filepath to future if executor is not None. """ r128_data = {} with contextlib.ExitStack() as cm: if executor i...
0.010787
def find_genusspecific_allele_list(profiles_file, target_genus): """ A new way of making our specific databases: Make our profiles file have lists of every gene/allele present for each genus instead of just excluding a few genes for each. This way, should have much smaller databases while managing to ma...
0.004878
def get_multipart_md5(self, filename, chunk_size=8 * 1024 * 1024): """ Returns the md5 checksum of the provided file name after breaking it into chunks. This is done to mirror the method used by Amazon S3 after a multipart upload. """ # Loop through the file contents ... ...
0.003802
def clock_on_right(mystring): '''Takes a string, and prints it with the time right aligned''' taken = length_no_ansi(mystring) padding = (get_terminal_size().columns - 1) - taken - 5 clock = time.strftime("%I:%M", time.localtime()) print(mystring + " "*padding + clock)
0.00346
def _get_event_kwargs(view_obj): """ Helper function to get event kwargs. :param view_obj: Instance of View that processes the request. :returns dict: Containing event kwargs or None if events shouldn't be fired. """ request = view_obj.request view_method = getattr(view_obj, request.ac...
0.001179
def title_of_design_condition(self, value=None): """Corresponds to IDD Field `title_of_design_condition` Args: value (str): value for IDD Field `title_of_design_condition` if `value` is None it will not be checked against the specification and is assumed to b...
0.002172
def _get_input_target_path(self, local_file_path): """Returns a directory or file path to be the target for "gsutil cp". If the filename contains a wildcard, then the target path must be a directory in order to ensure consistency whether the source pattern contains one or multiple files. Args: ...
0.004959