text
stringlengths
78
104k
score
float64
0
0.18
def epomeo_gpx(data_set='epomeo_gpx', sample_every=4): """Data set of three GPS traces of the same movement on Mt Epomeo in Ischia. Requires gpxpy to run.""" import gpxpy import gpxpy.gpx if not data_available(data_set): download_data(data_set) files = ['endomondo_1', 'endomondo_2', 'garmin_...
0.010518
def edit(cls, record, parent=None, autoCommit=True, title=''): """ Prompts the user to edit the inputed record. :param record | <orb.Table> parent | <QWidget> :return <bool> | accepted """ dlg = cls.getDialog('edit',...
0.010909
def add_distances(self, indices, periodic=True, indices2=None): r""" Adds the distances between atoms to the feature list. Parameters ---------- indices : can be of two types: ndarray((n, 2), dtype=int): n x 2 array with the pairs of atoms be...
0.006289
def p_obs(self, obs, out=None): """ Returns the output probabilities for an entire trajectory and all hidden states Parameters ---------- obs : ndarray((T), dtype=int) a discrete trajectory of length T Return ------ p_o : ndarray (T,N) ...
0.004651
def findMentions(sourceURL, targetURL=None, exclude_domains=[], content=None, test_urls=True, headers={}, timeout=None): """Find all <a /> elements in the given html for a post. Only scan html element matching all criteria in look_in. optionally the content to be scanned can be given as an argument. If an...
0.001769
def get_commands_to_run(self): """ Prepare either TMaster or Streaming commands according to shard. The Shell command is attached to all containers. The empty container plan and non-exist container plan are bypassed. """ # During shutdown the watch might get triggered with the empty packing plan...
0.010446
def calc_retinotopy(note, error, subject, clean, run_lh, run_rh, invert_rh_angle, max_in_eccen, min_in_eccen, angle_lh_file, theta_lh_file, eccen_lh_file, rho_lh_file, weight_lh_file, radius_lh_file, angle_rh_file, theta...
0.008756
def encode(message, encoding_type='default', letter_sep=' ' * 3, strip=True): """Converts a string of message into morse Two types of marks are there. One is short mark, dot(.) or "dit" and other is long mark, dash(-) or "dah". After every dit or dah, there is a one dot duration or one unit log gap. ...
0.001294
def _create_service_nwk(self, tenant_id, tenant_name, direc): """Function to create the service in network in DCNM. """ net_dict = self.retrieve_dcnm_net_info(tenant_id, direc) net = utils.Dict2Obj(net_dict) subnet_dict = self.retrieve_dcnm_subnet_info(tenant_id, direc) subnet = ...
0.003378
def get_subscription(self, subscription_id): """GetSubscription. Get a specific service hooks subscription. :param str subscription_id: ID for a subscription. :rtype: :class:`<Subscription> <azure.devops.v5_0.service_hooks.models.Subscription>` """ route_values = {} ...
0.006631
def transitions(self, transitions): """ Setter for _transitions field See property :param: transitions: Dictionary transitions[transition_id] of :class:`rafcon.core.transition.Transition` :raises exceptions.TypeError: if the transitions parameter has the wrong type :raises exce...
0.007303
def _create_directory(cls, directory, loop=False): """ Creates the given directory if it does not exists. :param directory: The directory to create. :type directory: str :param loop: Tell us if we are in the creation loop or not. :type loop: bool """ if...
0.001882
def settings(ctx, slot, new_access_code, delete_access_code, enter, pacing, force): """ Update the settings for a slot. Change the settings for a slot without changing the stored secret. All settings not specified will be written with default values. """ controller = ctx.obj['contr...
0.000529
def shutdown_server(self): """Shut down server if it is alive.""" self.log.debug('shutdown_server: in') if self.ensime and self.toggle_teardown: self.ensime.stop()
0.01005
def rows_after(self): """The rows that consume meshes from this row. :rtype: list :return: a list of rows that consume meshes from this row. Each row occurs only once. They are sorted by the first occurrence in the instructions. """ rows_after = [] fo...
0.00367
def head(self, n=10): """ Display the top of the file. Args: n (int): Number of lines to display """ r = self.__repr__().split('\n') print('\n'.join(r[:n]), end=' ')
0.00885
def line_oriented(cls, line_oriented_options, console): """Given Goal.Options and a Console, yields functions for writing to stdout and stderr, respectively. The passed options instance will generally be the `Goal.Options` of a `LineOriented` `Goal`. """ if type(line_oriented_options) != cls.Options: ...
0.015322
def encode_memo(priv, pub, nonce, message): """ Encode a message with a shared secret between Alice and Bob :param PrivateKey priv: Private Key (of Alice) :param PublicKey pub: Public Key (of Bob) :param int nonce: Random nonce :param str message: Memo message :return: Encry...
0.001456
def destroySynapse(self, synapse): """ Destroys a synapse. :param synapse: (:class:`Synapse`) synapse to destroy """ self._numSynapses -= 1 self._removeSynapseFromPresynapticMap(synapse) synapse.segment._synapses.remove(synapse)
0.003846
def authenticate_credentials(self, token: bytes, request=None): """ Authenticate the token with optional request for context. """ user = AuthToken.get_user_for_token(token) if user is None: raise AuthenticationFailed(_('Invalid auth token.')) if not user.is_...
0.004695
def create_hosted_zone(self, name, caller_reference=None, comment=None): """ Creates and returns a new hosted zone. Once a hosted zone is created, its details can't be changed. :param str name: The name of the hosted zone to create. :keyword str caller_reference: A unique string...
0.001393
def group_cache_valid(self, col_list): """ Checks whether the column has a factorization that exists and is not older than the source :param col: :return: """ cache_valid = False if self.rootdir: col_values_file_check = os.path.join(self.rootdir, sel...
0.007143
def dcm(self, dcm): """ Set the DCM :param dcm: 3x3 array """ assert(len(dcm) == 3) for sub in dcm: assert(len(sub) == 3) self._dcm = np.array(dcm) # mark other representations as outdated, will get generated on next # read s...
0.005556
def _get_result_paths(self, data): """ Set the result paths """ result = {} result['Output'] = ResultPath( Path=self.Parameters['--output'].Value, IsWritten=self.Parameters['--output'].isOn()) result['ClusterFile'] = ResultPath( Path=self.Parameters...
0.001436
def cli(ctx, config_file, profile, endpoint_url, output, color, debug): """ Alerta client unified command-line tool. """ config = Config(config_file) config.get_config_for_profle(profile) config.get_remote_config(endpoint_url) ctx.obj = config.options # override current options with co...
0.003012
def avatar_url_from_email(email, size=64, default='retro', dns=False): """ Our own implementation since fas doesn't support this nicely yet. """ if dns: # This makes an extra DNS SRV query, which can slow down our webapps. # It is necessary for libravatar federation, though. imp...
0.001403
def create_class(self, data, options=None, **kwargs): """Return instance of class based on Go data Data keys handled here: _type Set the object class consts, types, vars, funcs Recurse into :py:meth:`create_class` to create child object ...
0.000978
def dereference(self): """Instruct all children to perform dereferencing.""" all = [] indexes = {} for child in self.children: child.content(all) dependencies = {} for x in all: x.qualify() midx, deps = x.dependencies() depe...
0.00313
def make_needed(pattern, path_to_directory, wanted): """Make a method to check if an item matches the pattern, and is wanted If wanted is None just check the pattern """ if wanted: def needed(name): return fnmatch(name, pattern) and wanted( os.path.join(path_to_direc...
0.00241
def ips_excepthook(excType, excValue, traceback, frame_upcount=0): """ This function is launched after an exception. It launches IPS in suitable frame. Also note that if `__mu` is an integer in the local_ns of the closed IPS-Session then another Session is launched in the corresponding frame: "__mu" mea...
0.004409
async def updateTrigger(self, iden, query): ''' Change an existing trigger's query ''' trig = self.cell.triggers.get(iden) self._trig_auth_check(trig.get('useriden')) self.cell.triggers.mod(iden, query)
0.008
def _get_tile_when_web_mercator_crs(self, x_tile, y_tile, zoom, bands=None, masked=None, resampling=Resampling.cubic): """ The reason we want to treat this case in a special way is that there are cases where the rater is...
0.00457
def add_data_flow_to_state(from_port, to_port): """Interface method between Gaphas and RAFCON core for adding data flows The method checks the types of the given ports and their relation. From this the necessary parameters for the add_dat_flow method of the RAFCON core are determined. Also the parent state...
0.00489
def delete(self, filename): """Remove the metadata from the given filename.""" self._failed_atoms.clear() self.clear() self.save(filename, padding=lambda x: 0)
0.010417
def header(self, name, data, data_type, **kwargs): """Serialize data intended for a request header. :param data: The data to be serialized. :param str data_type: The type to be serialized from. :rtype: str :raises: TypeError if serialization fails. :raises: ValueError if...
0.002291
def enqueue_request(self, request): ''' Pushes a request from the spider into the proper throttled queue ''' if not request.dont_filter and self.dupefilter.request_seen(request): self.logger.debug("Request not added back to redis") return req_dict = self.r...
0.003487
def approveproposal(self, proposal_ids, account=None, approver=None, **kwargs): """ Approve Proposal :param list proposal_id: Ids of the proposals :param str appprover: The account or key to use for approval (defaults to ``account``) :param str account: (opti...
0.001514
def add_event(self, name, time, chan): """Action: add a single event.""" self.annot.add_event(name, time, chan=chan) self.update_annotations()
0.012048
def call_openers(self, client, clients_list): """ Calls openers callbacks """ for func in self.openers: func(client, clients_list)
0.011494
def run(self): """ Runs the task. This fires the ``on_start`` hook function first (if present), passing the task itself. Then it runs the target function supplied via ``Task.to_call`` with its arguments & stores the result. If the target function succeeded, the...
0.00186
def songs_add(self, songs): """Add store songs to your library. Parameters: songs (list): A list of store song dicts. Returns: list: Songs' library IDs. """ mutations = [mc_calls.TrackBatch.add(song) for song in songs] response = self._call( mc_calls.TrackBatch, mutations ) success_ids =...
0.042889
def refresh_session_token(self): """ 重置当前用户 `session token`。 会使其他客户端已登录用户登录失效。 """ response = client.put('/users/{}/refreshSessionToken'.format(self.id), None) content = response.json() self._update_data(content) self._handle_save_result(False)
0.00974
def installed_packages(self): """ List of all packages that are installed in this environment in the format [(name, ver), ..]. """ freeze_options = ['-l', '--all'] if self.pip_version >= (8, 1, 0) else ['-l'] return list(map(split_package_name, filter(None, self._execute_...
0.007752
def run_vdptool(self, args, oui_args=None): """Function that runs the vdptool utility. """ if oui_args is None: oui_args = [] full_args = ['vdptool'] + args + oui_args try: return utils.execute(full_args, root_helper=self.root_helper) except Exception as e...
0.004158
def widgetSubCheckBoxRect(widget, option): """ Returns the rectangle of a check box drawn as a sub element of widget """ opt = QtWidgets.QStyleOption() opt.initFrom(widget) style = widget.style() return style.subElementRect(QtWidgets.QStyle.SE_ViewItemCheckIndicator, opt, widget)
0.006579
def getdarkimg(self,chip): """ Notes ===== Return an array representing the dark image for the detector. The method will return an array of the same shape as the image. :units: electrons """ sci_chip = self._image[self.scienceExt,chip] return np....
0.015228
def imag(self): """Imaginary part""" if hasattr(self.val, 'imag'): return self.val.imag else: # SymPy return self.val.as_real_imag()[1]
0.010256
def save(self, dolist=0): """Return .par format string for this parameter If dolist is set, returns fields as a list of strings. Default is to return a single string appropriate for writing to a file. """ quoted = not dolist fields = 7*[""] fields[0] = self.name...
0.007671
def get_profile_info(self, obj): """Returns the info for a Profile """ info = self.get_base_info(obj) info.update({}) return info
0.011834
def commit(self, repository=None, tag=None, **kwargs): """ Commit a container to an image. Similar to the ``docker commit`` command. Args: repository (str): The repository to push the image to tag (str): The tag to push message (str): A commit message...
0.00206
def QA_fetch_get_extensionmarket_list(ip=None, port=None): '期货代码list' ip, port = get_extensionmarket_ip(ip, port) apix = TdxExHq_API() with apix.connect(ip, port): num = apix.get_instrument_count() return pd.concat([apix.to_df( apix.get_instrument_info((int(num / 500) - i) * ...
0.004796
def com_google_fonts_check_metadata_fontname_not_camel_cased(font_metadata): """METADATA.pb: Check if fontname is not camel cased.""" import re if bool(re.match(r'([A-Z][a-z]+){2,}', font_metadata.name)): yield FAIL, ("METADATA.pb: '{}' is a CamelCased name." " To solve this, simply use space...
0.011062
def map(self, func): """ Process all data with given function. The scheme of function should be x,y -> x,y. """ if self._train_set: self._train_set = map(func, self._train_set) if self._valid_set: self._valid_set = map(func, self._valid_set) ...
0.005063
def prepare_replicant_order_object(manager, snapshot_schedule, location, tier, volume, volume_type): """Prepare the order object which is submitted to the placeOrder() method :param manager: The File or Block manager calling this function :param snapshot_schedule: The pri...
0.000154
def _meta_name(self, name): """ Translate HTTP header names to the format used by Django request objects. See https://docs.djangoproject.com/en/1.4/ref/request-response/#django.http.HttpRequest.META """ name = name.upper().replace('-', '_') if name not in self.UNPREFIXED...
0.010444
def request(self, service, data): """ Makes a call to TinyLetter's __svcbus__ endpoint. """ _res = self._request(service, data) res = _res.json()[0][0] if res["success"] == True: return res["result"] else: err_msg = res["errmsg"] ...
0.007772
def print_summary(self, strm): """Print summary of lint.""" nerr = 0 nerr += LintHelper._print_summary_map(strm, self.cpp_header_map, 'cpp-header') nerr += LintHelper._print_summary_map(strm, self.cpp_src_map, 'cpp-soruce') nerr += LintHelper._print_summary_map(strm, self.python_...
0.00823
def setup_directories(builddir): """Create the in and out directories of the container.""" build_dir = local.path(builddir) in_dir = build_dir / "container-in" out_dir = build_dir / "container-out" if not in_dir.exists(): in_dir.mkdir() if not out_dir.exists(): out_dir.mkdir()
0.003145
def list_actions(name, location='\\'): r''' List all actions that pertain to a task in the specified location. :param str name: The name of the task for which list actions. :param str location: A string value representing the location of the task from which to list actions. Default is '\\' whi...
0.000996
def getH264V4l2(verbose=False): """Find all V4l2 cameras with H264 encoding, and returns a list of tuples with .. (device file, device name), e.g. ("/dev/video2", "HD Pro Webcam C920 (/dev/video2)") """ import glob from subprocess import Popen, PIPE cams=[] for device in glob.glob...
0.016859
def make_separate_indels_and_one_alt_with_all_snps_no_combinations(self, ref_seq): '''Returns a VCF record, where each indel from this cluster is in a separate ALT. Then all the remaining SNPs are applied to make one ALT. If >1 SNP in same place, either one might be used''' final...
0.004051
def commit(self, message, parent_commits=None, head=True, author=None, committer=None, author_date=None, commit_date=None, skip_hooks=False): """Commit the current default index file, creating a commit object. For more information on the arguments, see tree.commit. ...
0.006772
def sendMessage(self, to, message, extra={}): """ If the 'to' parameter is a single entry, we will parse it into a list. We will merge default values into the request data and the extra parameters provided by the user. """ to = to if isinstance(to, list) else [to] ...
0.005936
def expand_defaults(default, client=False, getenv=True, getshell=True): """Compile env, client_env, shell and client_shell commands Execution rules: - env() and shell() execute where the cat is loaded, if getenv and getshell are True, respectively - client_env() and client_shell() execute only if...
0.000678
def spacing(text): """ Perform paranoid text spacing on text. """ if len(text) <= 1 or not ANY_CJK.search(text): return text new_text = text # TODO: refactoring matched = CONVERT_TO_FULLWIDTH_CJK_SYMBOLS_CJK.search(new_text) while matched: start, end = matched.span() ...
0.00212
def play_Track(self, track, channel=1, bpm=120): """Play a Track object.""" self.notify_listeners(self.MSG_PLAY_TRACK, {'track': track, 'channel' : channel, 'bpm': bpm}) for bar in track: res = self.play_Bar(bar, channel, bpm) if res != {}: ...
0.007092
def remove_bad_sequence(codon_list, bad_seq, bad_seqs): """ Make a silent mutation to the given codon list to remove the first instance of the given bad sequence found in the gene sequence. If the bad sequence isn't found, nothing happens and the function returns false. Otherwise the function r...
0.005658
def skipNullPadding(self, buff): ''' 不断地寻找 CHUNK_STRINGPOOL_TYPE,目前暂时没有遇到这种样本。 ''' def readNext(buff, first_run=True): datas = unpack('<i', buff.read(4)) header = datas[0] if header == CHUNK_NULL_TYPE and first_run: print("Skipping nul...
0.003215
def build_gui(self, container): """ This is responsible for building the viewer's UI. It should place the UI in `container`. """ vbox = Widgets.VBox() vbox.set_border_width(2) vbox.set_spacing(1) w = Viewers.GingaViewerWidget(viewer=self) vbox.ad...
0.003024
def evaluate_list(molecules, ensemble_lookup, options): """ Evaluate a list of ensembles and return statistics and ROC plots if appropriate """ # create stats dictionaries to store results from each ensemble stats = {} # {file name : metric_List} # print progress messages if options.write...
0.006515
def clear_cache(scope=None): """ Clear all cached data. Parameters ---------- scope : {None, 'step', 'iteration', 'forever'}, optional Clear cached values with a given scope. By default all cached values are removed. """ if not scope: _TABLE_CACHE.clear() _C...
0.001145
def IntegerMin(left: vertex_constructor_param_types, right: vertex_constructor_param_types, label: Optional[str]=None) -> Vertex: """ Finds the minimum between two vertices :param left: one of the vertices to find the minimum of :param right: one of the vertices to find the minimum of """ r...
0.013699
def convert_to_culled_timestep(self, timestep=1): """Convert this collection to one that only has datetimes that fit a timestep.""" valid_s = self.header.analysis_period.VALIDTIMESTEPS.keys() assert timestep in valid_s, \ 'timestep {} is not valid. Choose from: {}'.format(timestep, v...
0.007663
def annotatedcore(self): """ Calculates the core genome of organisms using custom databases """ logging.info('Calculating annotated core') # Determine the total number of core genes self.total_core() # Iterate through all the samples, and process all Escherichia ...
0.002451
def deep_documents(self): """ list of all documents find in subtrees of this node """ tree = [] for entry in self.contents: if isinstance(entry, Document): tree.append(entry) else: tree += entry.deep_documents return...
0.006154
def _encode_resp(self, value): """Dynamically build the RESP payload based upon the list provided. :param mixed value: The list of command parts to encode :rtype: bytes """ if isinstance(value, bytes): return b''.join( [b'$', ascii(l...
0.00198
def split(self, new_index): """Create a new event which is a copy of this one but with a new index. """ new_event = Event(new_index, self.user_data) new_event.time = self.time new_event.step_size = self.step_size return new_event
0.00722
def as_bel(self) -> str: """Return this node as a BEL string.""" variants = self.get(VARIANTS) if not variants: return super(CentralDogma, self).as_bel() variants_canon = sorted(map(str, variants)) return "{}({}:{}, {})".format( self._func, ...
0.004662
def ellpoint (mjr, mnr, pa, th): """Compute a point on an ellipse parametrically. Inputs: * mjr: major axis (sigma not FWHM) of the ellipse * mnr: minor axis (sigma not FWHM) of the ellipse * pa: position angle (from +x to +y) of the ellipse, radians * th: the parameter, 0 <= th < 2pi: the eccentri...
0.010955
def remove_schema(self, database, schema): """Remove a schema from the set of known schemas (case-insensitive) If the schema does not exist, it will be ignored - it could just be a temporary table. :param str database: The database name to remove. :param str schema: The schema ...
0.004854
def parse_log_line(line): """Parses a log line and returns it with more information :param line: str - A line from a bcbio-nextgen log :returns dict: A dictionary containing the line, if its a new step if its a Traceback or if the analysis is finished """ matches = re.search(r'^\...
0.002342
def get_app(settings_file=None): """Get scheduler app singleton The app configuration is performed when the function is run for the first time. Because the scheduler is a threaded enviroment, it is important that this function be thread-safe. The scheduler instance is not created until the `commands/run...
0.014504
def convert_to_string(data, headers, **_): """Convert all *data* and *headers* to strings. Binary data that cannot be decoded is converted to a hexadecimal representation via :func:`binascii.hexlify`. :param iterable data: An :term:`iterable` (e.g. list) of rows. :param iterable headers: The colum...
0.001931
def empty_surface(fill_color, size=None): """Returns an empty surface filled with fill_color. :param fill_color: color to fill the surface with :type fill_color: pygame.Color :param size: the size of the new surface, if None its created to be the same size as the screen :type size: int-2-t...
0.002123
def plot_ortho_stack(images, overlays=None, reorient=True, # xyz arguments xyz=None, xyz_lines=False, xyz_color='red', xyz_alpha=0.6, xyz_linewidth=2, xyz_pad=5, # base image arguments cmap='Greys_r', alpha=1, # overlay arguments overlay_cmap='jet', overlay_alpha=0.9, # background arguments...
0.012042
def finalize(self): """Finalize the counter Once finalized, the counter never be incremented and the callback can be invoked once the count reaches zero """ with self._lock: self._is_finalized = True if self._count == 0: self._callback()
0.006289
def get(self, request, customer_uuid): """ Handle GET request - render linked learners list and "Link learner" form. Arguments: request (django.http.request.HttpRequest): Request instance customer_uuid (str): Enterprise Customer UUID Returns: django....
0.006596
def ms_to_datetime(ms): """ Converts a millisecond accuracy timestamp to a datetime """ dt = datetime.datetime.utcfromtimestamp(ms / 1000) return dt.replace(microsecond=(ms % 1000) * 1000).replace(tzinfo=pytz.utc)
0.004292
def is_random_accessible(self): """ Check if self._is_random_accessible is set to true and if all the random access strategies are implemented. Returns ------- bool : Returns True if random accessible via strategies and False otherwise. """ return self._is_random_...
0.017143
def fire(self, *args, **kargs): """ collects results of all executed handlers """ self._time_secs_old = time.time() # allow register/unregister while execution # (a shallowcopy should be okay.. https://docs.python.org/2/library/copy.html ) with self._hlock: handler_l...
0.003049
def _onmessage(cls, kmsg): """ Call on received message :param kser.schemas.Message kmsg: Kafka message :return: Kafka message :rtype: kser.schemas.Message """ logger.debug( "{}.ReceivedMessage {}[{}]".format( cls.__name__, kmsg.entrypoint, km...
0.004673
def records_identical(rec1, rec2, skip_005=True, ignore_field_order=False, ignore_subfield_order=False, ignore_duplicate_subfields=False, ignore_duplicate_controlfields=False): """ Return True if rec1 is identical to rec2. It does so regardl...
0.000425
def CreateBiddingStrategy(client): """Creates a bidding strategy object. Args: client: AdWordsClient the client to run the example with. Returns: dict An object representing a bidding strategy. """ # Initialize appropriate service. bidding_strategy_service = client.GetService( 'BiddingStrate...
0.010961
def healthy_services(self, role=None): ''' Look up healthy services in the registry. A service is considered healthy if its 'last_heartbeat' was less than 'ttl' seconds ago Args: role (str, optional): role name Returns: If `role` is supplied, re...
0.004454
def make_plot(fnames=[], name=[], dims=None, plot_method=None, output=None, project=None, engine=None, formatoptions=None, tight=False, rc_file=None, encoding=None, enable_post=False, seaborn_style=None, output_project=None, concat_dim=get_default_value(xr.open_mf...
0.000628
def get_unit_spike_feature_names(self, unit_id=None): '''This function returns the names of spike features for a single unit or across all units (depending on the given unit_id). Returns ---------- spike_features: list A list of string names for each feature in the s...
0.001415
def add_hookspecs(self, module_or_class): """ add new hook specifications defined in the given module_or_class. Functions are recognized if they have been decorated accordingly. """ names = [] for name in dir(module_or_class): spec_opts = self.parse_hookspec_opts(module_or_cl...
0.003756
def get_all_keys(self): """Get all keys indexed. :return: All keys :rtype: list(str) """ all_keys = [] for keys in self._index.values(): all_keys.extend(keys) return all_keys
0.008197
def process(self, t_path, name_info, i_str): '''converts each :attr:`streamcorpus.StreamItem.body.clean_html` from `t_path` into a :class:`~dossier.fc.FeatureCollection` and saves it in a :class:`~dossier.store.Store` configured with the global `kvlayer` config. ''' def ...
0.003212
def date_time_this_month( self, before_now=True, after_now=False, tzinfo=None): """ Gets a DateTime object for the current month. :param before_now: include days in current month before today :param after_now: include days in current month...
0.001738