id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/latest/i18n/angular-locale_ckb.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/networkrepository/rail2586.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def Rail2586(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/networkrepository",
**additional_graph_kwargs: Di... | PypiClean |
/cpg-hail-0.2.90.tar.gz/cpg-hail-0.2.90/hail/experimental/lens.py | import abc
import hail as hl
class TableLike(abc.ABC):
@abc.abstractmethod
def annotate(self, *args, **kwargs):
raise NotImplementedError
@abc.abstractmethod
def drop(self, *args, **kwargs):
raise NotImplementedError
@abc.abstractmethod
def select(self, *args, **kwargs):
... | PypiClean |
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/moment/locale/x-pseudo.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/deeprob_kit-1.1.0-py3-none-any.whl/deeprob/flows/models/maf.py |
from typing import Optional
from deeprob.torch.base import DensityEstimator
from deeprob.utils.random import check_random_state, RandomState
from deeprob.flows.utils import BatchNormLayer1d
from deeprob.flows.layers.autoregressive import AutoregressiveLayer
from deeprob.flows.models.base import NormalizingFlow
clas... | PypiClean |
/framedork.py-0.1.0.tar.gz/framedork.py-0.1.0/framedork/src/preprocessors/Response.py | import json
class Response:
def __init__(self, contents: list):
self.contents = contents
if len(self.contents) > 1:
self.method = "html"
else:
self.method = "json"
class ResponseHandler:
base_headers: list = [
('Server', 'Framedork.py'),
('Conn... | PypiClean |
/wizata_dsapi-0.3.35-py3-none-any.whl/wizata_dsapi/mlmodel.py | import json
import uuid
from flask import jsonify
from .api_dto import ApiDto
from enum import Enum
class ModelKeyType(Enum):
DIRECT = "direct"
TEMPLATE = "template"
VARIABLE = "variable"
class MLModelConfig(ApiDto):
"""
a model config defines execution properties for a specific model.
usual... | PypiClean |
/coinstac_pyprofiler-0.1.0.tar.gz/coinstac_pyprofiler-0.1.0/README.md | # coinstac python profiler
Profile your python code (includes code running using coinstac-simulator). This primarily uses pyinstrument profiler, but can also be extended to include other python profilers
## Prerequisites
Python 3.6+
Other packages listed in Requirements.txt
# Usage
NOTE: The code currentl... | PypiClean |
/dsin100days603v37-6.0.3.tar.gz/dsin100days603v37-6.0.3/notebook/static/components/codemirror/mode/forth/forth.js |
// Author: Aliaksei Chapyzhenka
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);... | PypiClean |
/yi-mp-1.0.5.tar.gz/yi-mp-1.0.5/emp_boot.py | from emp_utils import rainbow
from emp_utils import print_as_a_list_item
from emp_utils import selection
from emp_utils import _const
from emp_utils import config_path
import os
import machine
BOOT_MODE = _const()
BOOT_MODE.WITH_NOTHING = 0
BOOT_MODE.WITH_WIFI_STARTUP = 1
BOOT_MODE.EASY_DEVELOP = 2
BOOT_MODE.WITH_WIF... | PypiClean |
/mengyu_distributions-1.1.tar.gz/mengyu_distributions-1.1/mengyu_distributions/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/policyinsights/get_remediation_at_resource.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
__all__ = [
'GetRemediationAtResourceResult',
'AwaitableGetRemediationAtResourceResult',
'get_remediation_at_resource',
'... | PypiClean |
/v1/model/update_vault_request.py |
import pprint
import re
import six
class UpdateVaultRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in ... | PypiClean |
/tensorflow_tflex-1.13.1rc1-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_tflex-1.13.1rc1.data/purelib/tensorflow/core/framework/op_def_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_in... | PypiClean |
/robotframework-tidy-4.5.0.tar.gz/robotframework-tidy-4.5.0/robotidy/transformers/SmartSortKeywords.py | from robot.api.parsing import EmptyLine
from robot.parsing.model.blocks import Keyword
from robotidy.disablers import skip_section_if_disabled
from robotidy.transformers import Transformer
class SmartSortKeywords(Transformer):
"""
Sort keywords in ``*** Keywords ***`` section.
By default sorting is case... | PypiClean |
/pepper_polish-0.1.5-cp36-cp36m-macosx_10_6_intel.whl/pepper_hp/modules/python/MergeVCFsWithSimplify.py | import collections
from copy import deepcopy
import itertools
from threading import Lock
from datetime import datetime
from distutils.version import LooseVersion
import intervaltree
import pysam
import sys
import os
import re
from pepper_hp.build import PEPPER_HP
from pepper_hp.modules.python.ImageGenerationUI import ... | PypiClean |
/pulse2percept-0.7.1.tar.gz/pulse2percept-0.7.1/examples/implants/plot_implants.py |
import matplotlib.pyplot as plt
from pulse2percept.implants import *
from pulse2percept.models import AxonMapModel
fig, ax = plt.subplots(ncols=2, figsize=(10, 6))
# For illustrative purpose, also show the map of fiber
# bundles in the optic fiber layer:
model = AxonMapModel()
model.plot(ax=ax[0])
# Argus I is typic... | PypiClean |
/OpenDSS_SciVis-1.1.1-py3-none-any.whl/opendss_scivis/read_element_data_old.py | import os
import pandas as pd
def read_element_data(name):
'''
Read data of an element in power grid that contains a time series of monitored power
system quantities from a Comma Separated Value (CSV) file output by OpenDSS.
Input:
name : name of CSV file with or without suffix, e.g. SimpleDemo.c... | PypiClean |
/spyc_iot-0.0.8-py3-none-any.whl/spyc_iot/bme280.py |
# Updated 2018 and 2020
# This module is based on the below cited resources, which are all
# based on the documentation as provided in the Bosch Data Sheet and
# the sample implementation provided therein.
#
# Final Document: BST-BME280-DS002-15
#
# Authors: Paul Cunnane 2016, Peter Dahlebrg 2016
#
# This module borro... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/calendar_view/item/instances/item/exception_occurrences/item/decline/decline_post_request_body.py | from __future__ import annotations
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from ..........models import time_slot
class DeclinePostRequestBody(Addition... | PypiClean |
/calcasa-api-1.2.1.tar.gz/calcasa-api-1.2.1/calcasa/api/api/rapporten_api.py | import re # noqa: F401
import sys # noqa: F401
from calcasa.api.api_client import ApiClient, Endpoint as _Endpoint
from calcasa.api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from calcasa.a... | PypiClean |
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/packaging/rpm.py |
__revision__ = "src/engine/SCons/Tool/packaging/rpm.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog"
import os
import SCons.Builder
import SCons.Tool.rpmutils
from SCons.Environment import OverrideEnvironment
from SCons.Tool.packaging import stripinstallbuilder, src_targz
from SCons.Errors import UserEr... | PypiClean |
/compas_cra-0.3.0.tar.gz/compas_cra-0.3.0/src/compas_cra/viewers/cra_view.py |
from math import sqrt
import numpy as np
from compas.datastructures import Mesh
from compas.geometry import Polyline, Point, Line, Polygon
from compas.geometry import Rotation, Translation
from compas.geometry import is_coplanar
from compas.utilities import hex_to_rgb
try:
from compas_view2 import app
from c... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/rds/create-db-instance.rst | **To create a DB instance**
The following ``create-db-instance`` example uses the required options to launch a new DB instance. ::
aws rds create-db-instance \
--db-instance-identifier test-mysql-instance \
--db-instance-class db.t3.micro \
--engine mysql \
--master-username admin ... | PypiClean |
/docums-git-authors-plugin-1.0.tar.gz/docums-git-authors-plugin-1.0/docums_git_authors_plugin/util.py | from datetime import datetime, timezone, timedelta
from pathlib import Path
def commit_datetime(author_time: str, author_tz: str):
"""
Convert a commit's timestamp to an aware datetime object.
Args:
author_time: Unix timestamp string
author_tz: string in the format +hhmm
Returns:
... | PypiClean |
/ngs-smap-4.6.5.tar.gz/ngs-smap-4.6.5/INSTALL.md | # Installation
## Prerequisites
This manual presumes that you have access to the following:
* A running linux distribution with python3 installed
* Administrator privileges (sudo rights)
* A working internet connection
## Downloading the software
The latest release of the software can be obtained from https://gitlab... | PypiClean |
/NarrowBand-0.2.1.tar.gz/NarrowBand-0.2.1/README.md | # NarrowBand Lib for Python 3
This is an easy-to-use library for Narrowband IoT applications.
It communicates via UART with your target device.
It simplifies the setup and use, you don't have to manually send AT commands.
For beginners, use the Narrowband class with it's pre-defined methods.
If you want more freed... | PypiClean |
/stable_baselines-2.10.2-py3-none-any.whl/stable_baselines/sac/policies.py | import tensorflow as tf
import numpy as np
from gym.spaces import Box
from stable_baselines.common.policies import BasePolicy, nature_cnn, register_policy
from stable_baselines.common.tf_layers import mlp
EPS = 1e-6 # Avoid NaN (prevents division by zero or log of zero)
# CAP the standard deviation of the actor
LOG_... | PypiClean |
/django-codenerix-4.0.24.tar.gz/django-codenerix-4.0.24/codenerix/static/codenerix/lib/angular/i18n/angular-locale_es-co.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"a. m.",
"p. m."
],
"DAY": [
"domingo",
... | PypiClean |
/fsds_100719-0.7.22.tar.gz/fsds_100719-0.7.22/README.rst | ===========
fsds_100719
===========
.. image:: https://img.shields.io/pypi/v/fsds_100719.svg
:target: https://pypi.python.org/pypi/fsds_100719
.. image:: https://img.shields.io/travis/jirvingphd/fsds_100719.svg
:target: https://travis-ci.org/jirvingphd/fsds_100719
.. image:: https://readthedocs.org/... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_9/models/file_system_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flashblade.FB_2_9 import models
class FileSystemResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value... | PypiClean |
/KindleComicConverter_headless-5.5.2-py3-none-any.whl/kindlecomicconverter/image.py |
import os
from PIL import Image, ImageOps, ImageStat, ImageChops, ImageFilter
from .shared import md5Checksum
class ProfileData:
def __init__(self):
pass
Palette4 = [
0x00, 0x00, 0x00,
0x55, 0x55, 0x55,
0xaa, 0xaa, 0xaa,
0xff, 0xff, 0xff
]
Palette15 = [
... | PypiClean |
/tencentcloud-python-sdk-3.0.960.tar.gz/tencentcloud-python-sdk-3.0.960/tencentcloud/aiart/v20221229/aiart_client.py |
import json
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
from tencentcloud.common.abstract_client import AbstractClient
from tencentcloud.aiart.v20221229 import models
class AiartClient(AbstractClient):
_apiVersion = '2022-12-29'
_endpoint = 'aiart.tencentcl... | PypiClean |
/synergy_scheduler-2.3.tar.gz/synergy_scheduler-2.3/synergy/mx/static/js/d3-scale.v2.2.2.js | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-collection'), require('d3-array'), require('d3-interpolate'), require('d3-format'), require('d3-time'), require('d3-time-format')) :
typeof define === 'function' && define.amd ? define([... | PypiClean |
/SAMY-1.0.0.tar.gz/SAMY-1.0.0/README.md | # YOLO-SAM
A repository for Instance Segmentation using YOLO and SAM (Segment Anything Model).
## Installation
Install YOLOv8 and SAM dependencies:
```
pip install -r requirements.txt
```
Install YOLOv8:
```
pip install ultralytics
```
Install Segment Anything:
```
pip install git+https://github.com/facebookresearch/... | PypiClean |
/superftp-1.0.3.tar.gz/superftp-1.0.3/README.md | # superftp
Fast multi-segment FTP client
This FTP client maximizes download speed for large files over
long geographic distances. The program splits the file into
segments. It then launches several download process, one for each segment.
The program monitors what parts of which segments have been downloaded.
Superft... | PypiClean |
/pyknp_eventgraph-6.2.5-py3-none-any.whl/pyknp_eventgraph/eventgraph.py | import json
import pickle
from logging import getLogger
from typing import BinaryIO, List, Optional, TextIO, Union
from pyknp import BList
from pyknp_eventgraph.base_phrase import BasePhraseBuilder
from pyknp_eventgraph.builder import Builder
from pyknp_eventgraph.component import Component
from pyknp_eventgraph.docu... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.