id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/p-limit/readme.md | # p-limit [](https://travis-ci.org/sindresorhus/p-limit)
> Run multiple promise-returning & async functions with limited concurrency
## Install
```
$ npm install p-limit
```
## Usage
```js
const pLimit = require('p-limit');
const limit... | PypiClean |
/django_bazaar_of_wonders-0.1.40-py3-none-any.whl/main/models.py | from datetime import datetime
from django.db import models
from django.urls import reverse
from django.contrib.auth.models import User
class Card_Rarity(models.Model):
card_rarity = models.CharField(max_length=200, unique=True)
# def __str__(self):
# return self.card_rarity
class Card_Type(models.Model... | PypiClean |
/pulumi_kubernetes-4.2.0a1693403901-py3-none-any.whl/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.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
from ... import meta as _meta
from ._inputs import *
__all__ = ['FlowSchemaPatchArgs', 'FlowSchemaPatch']
@pulumi.input_type
class Flow... | PypiClean |
/robotframework-mobilelibrary-2.0.5.tar.gz/robotframework-mobilelibrary-2.0.5/src/AppiumLibrary/locators/elementfinder.py |
from AppiumLibrary import utils
from robot.api import logger
class ElementFinder(object):
def __init__(self):
self._strategies = {
'identifier': self._find_by_identifier,
'id': self._find_by_id,
'name': self._find_by_name,
'xpath': self._find_by_xpath,
... | PypiClean |
/stem_registration-0.0.49.tar.gz/stem_registration-0.0.49/stem_registration/static/stem_registration/js/dist/inputmask/inputmask.regex.extensions.js | !function(factory) {
"function" == typeof define && define.amd ? define([ "./dependencyLibs/inputmask.dependencyLib", "./inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("./dependencyLibs/inputmask.dependencyLib"), require("./inputmask")) : factory(window.dependencyLib || jQuer... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/identity/saprovider.py | from builtins import str
from builtins import object
import logging
from datetime import datetime
from turbogears import config, identity
from turbogears.database import bind_metadata, metadata, session
from turbogears.util import load_class
from sqlalchemy import (Table, Column, ForeignKey,
String, Unicode, Inte... | PypiClean |
/rockset_sqlcli-0.8.10.tar.gz/rockset_sqlcli-0.8.10/rockset_sqlcli/rscli/main.py | from __future__ import unicode_literals
from __future__ import print_function
import datetime as dt
import functools
import humanize
import itertools
import logging
import os
import re
import rockset
import threading
import traceback
from collections import namedtuple
from codecs import open
from cli_helpers.tabular_... | PypiClean |
/LinOtpUserIdResolver-2.9.3.tar.gz/LinOtpUserIdResolver-2.9.3/useridresolver/PasswdIdResolver.py | import os
import re
import logging
from . import resolver_registry
from UserIdResolver import UserIdResolver
from UserIdResolver import ResolverLoadConfigError
from UserIdResolver import getResolverClass
from linotp.lib.type_utils import text
log = logging.getLogger(__name__)
def str2unicode(input_str):
"""
... | PypiClean |
/quart_openapi-1.7.2-py3-none-any.whl/quart_openapi/swagger.py | from collections import OrderedDict
from http import HTTPStatus
from itertools import chain
from typing import (Any, Callable, Dict, Generator, Iterable, List, Mapping,
Optional, Tuple, Union)
from jsonschema import Draft4Validator
from quart.routing import Map as RouteMap
from werkzeug.routing imp... | PypiClean |
/pi-env-0.1.2rc1.tar.gz/pi-env-0.1.2rc1/pi/_requires/docker/utils/build.py | import io
import os
import re
import tarfile
import tempfile
import pi._requires.six
from .fnmatch import fnmatch
from ..constants import IS_WINDOWS_PLATFORM
_SEP = re.compile('/|\\\\') if IS_WINDOWS_PLATFORM else re.compile('/')
def tar(path, exclude=None, dockerfile=None, fileobj=None, gzip=False):
root = o... | PypiClean |
/concrete_ml_extensions_brevitas-0.1.0-py3-none-any.whl/brevitas/nn/quant_dropout.py |
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redist... | PypiClean |
/sentry-nos-9.0.0.tar.gz/sentry-nos-9.0.0/src/sentry/south_migrations/0407_auto__add_field_identityprovider_external_id__add_unique_identityprovi.py | from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
# Flag to indicate if this migration is too risky
# to run online and needs to be coordinated for offline
is_dangerous = False
... | PypiClean |
/PyNLPIR-0.6.0.tar.gz/PyNLPIR-0.6.0/docs/index.rst | .. PyNLPIR documentation master file, created by
sphinx-quickstart on Thu Mar 27 17:10:46 2014.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to PyNLPIR's documentation!
===================================
PyNLPIR is a Python wrapper a... | PypiClean |
/ansible_alicloud-1.20.0.tar.gz/ansible_alicloud-1.20.0/lib/ansible/modules/cloud/alicloud/ali_slb_lb.py |
# Copyright (c) 2017-present Alibaba Group Holding Limited. He Guimin <heguimin36@163.com.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GN... | PypiClean |
/agentMET4FOF-0.13.2.tar.gz/agentMET4FOF-0.13.2/agentMET4FOF_tutorials/plotting/custom_memory_multiple_plot.py |
from agentMET4FOF.agents import AgentMET4FOF, AgentNetwork, MonitorAgent
from agentMET4FOF.streams import SineGenerator
import numpy as np
import plotly.graph_objs as go
from datetime import datetime
def custom_create_monitor_graph(
data, sender_agent, xname="Time", yname="Y", noise_level=0.1
):
"""
Par... | PypiClean |
/pyserialize-1.0.2.tar.gz/pyserialize-1.0.2/README.md | # pyserialize
Python simple serializer
pyserialize
============
`pyserialize` is a simple python serialization/deserialization library.
Installation
------------
You can to use [pip](https://pypi.python.org/pypi/pip) to install pyserialize:
``` bash
$ pip install pyserialize
```
Or using last source:
``` bash
$ pi... | PypiClean |
/airflow-declarative-1.1.tar.gz/airflow-declarative-1.1/src/airflow_declarative/transformer.py |
from __future__ import absolute_import, division, print_function, unicode_literals
import json
import shlex
import subprocess
import sys
from itertools import chain
import jinja2
import yaml
from jinja2.ext import Extension
from jinja2.lexer import Token
from trafaret import str_types
from .compat import Iterable, ... | PypiClean |
/pace-util-0.9.0.tar.gz/pace-util-0.9.0/pace/util/grid/generation.py | import functools
import warnings
from pace import util
from pace.dsl.gt4py_utils import asarray
from pace.dsl.stencil import GridIndexing
from pace.stencils.corners import (
fill_corners_2d,
fill_corners_agrid,
fill_corners_cgrid,
fill_corners_dgrid,
)
from pace.util.constants import N_HALO_DEFAULT, PI... | PypiClean |
/Categorize_CLI-1.0.0-py3-none-any.whl/src/Categorize_CLI/common/utils.py | from collections import Counter
import os
import re
import time
from .extensions import *
from progress.bar import IncrementalBar
UNITS_MAPPING = [
(1<<50, ' PB'),
(1<<40, ' TB'),
(1<<30, ' GB'),
(1<<20, ' MB'),
(1<<10, ' KB'),
(1, (' byte', ' bytes')),
]
def calc_size(bytes, units=UNITS_MA... | PypiClean |
/gammapy-1.1.tar.gz/gammapy-1.1/docs/development/pigs/pig-019.rst | .. include:: ../../references.txt
.. _pig-019:
********************************************
PIG 19 - Gammapy package structure follow up
********************************************
* Author: Axel Donath, Régis Terrier
* Created: Jan 16, 2020
* Accepted: Feb 24, 2020
* Status: accepted
* Discussion: `GH 2720`_
Abst... | PypiClean |
/torchdatasets-nightly-1676937807.tar.gz/torchdatasets-nightly-1676937807/torchdatasets/maps.py | r"""**This module provides functions one can use with** `torchdatasets.Dataset.map` **method.**
Following `dataset` object will be used throughout documentation for brevity (if not defined explicitly)::
# Image loading dataset
import torchdatasets as td
class Example(td.Dataset):
def __init__(sel... | PypiClean |
/maltpynt-2.0.1.tar.gz/maltpynt-2.0.1/astropy_helpers/astropy_helpers/sphinx/ext/utils.py | import inspect
import sys
def find_mod_objs(modname, onlylocals=False):
""" Returns all the public attributes of a module referenced by name.
.. note::
The returned list *not* include subpackages or modules of
`modname`,nor does it include private attributes (those that
beginwith '_' ... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/KoubeiCateringDishRecommendQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiCateringDishRecommendQueryModel import KoubeiCateringDishRecommendQueryModel
class KoubeiCateringDishRecommendQueryRequest(object):
def __init__(self, biz_model=None):... | PypiClean |
/up_ibacop-0.0.4-py3-none-manylinux2014_x86_64.whl/up_ibacop/utils/features/heuristics/translate/instantiate.py |
from __future__ import with_statement
from collections import defaultdict
import build_model
import pddl_to_prolog
import pddl
import timers
def get_fluent_facts(task, model):
fluent_predicates = set()
for action in task.actions:
for effect in action.effects:
fluent_predicates.add(effect.... | PypiClean |
/pydistman-0.0.9.tar.gz/pydistman-0.0.9/docs/CONTRIBUTING.rst | ==============================
Appendix A. Contribution rules
==============================
:Info: Those are the contribution rules for Python Dist Manager.
:Copyright: © 2012-2022, Chris Warrick.
:License: 3-clause BSD
.. index:: contributing
Do you want to contribute to this project? Great! I’d love to see some ... | PypiClean |
/ast-toolbox-2020.9.1.7.tar.gz/ast-toolbox-2020.9.1.7/third_party/garage/src/garage/sampler/on_policy_vectorized_sampler.py | import itertools
import pickle
import time
from dowel import logger, tabular
import numpy as np
from garage.experiment import deterministic
from garage.misc import tensor_utils
from garage.misc.prog_bar_counter import ProgBarCounter
from garage.sampler.batch_sampler import BatchSampler
from garage.sampler.stateful_po... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@jupyterlab/codeeditor/lib/editor.js | import { ModelDB } from '@jupyterlab/observables';
import * as models from '@jupyterlab/shared-models';
import { Signal } from '@lumino/signaling';
const globalModelDBMutex = models.createMutex();
/**
* A namespace for code editors.
*
* #### Notes
* - A code editor is a set of common assumptions which hold for all ... | PypiClean |
/hass-home-assistant-frontend-20200427.3.tar.gz/hass-home-assistant-frontend-20200427.3/hass_frontend/frontend_latest/chunk.26293c1d324edfa5efe8.js | (self.webpackJsonp=self.webpackJsonp||[]).push([[213],{334:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"==typeof window&&(n=window)}t.exports=n},857:function(t,e,n){"use strict";n.r(e),function(t){var n=function(){if("undefined"!=typeof Map)return Map;function ... | PypiClean |
/azure-mgmt-oep-1.0.0b1.zip/azure-mgmt-oep-1.0.0b1/azure/mgmt/oep/operations/_operations.py | import functools
from typing import Any, Callable, Dict, Generic, Optional, TypeVar
import warnings
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transport i... | PypiClean |
/amazon-braket-schemas-1.19.1.tar.gz/amazon-braket-schemas-1.19.1/src/braket/device_schema/simulators/gate_model_simulator_device_capabilities_v1.py |
from typing import Dict, Union
from pydantic import Field
from braket.device_schema.device_action_properties import DeviceActionType
from braket.device_schema.device_capabilities import DeviceCapabilities
from braket.device_schema.jaqcd_device_action_properties import JaqcdDeviceActionProperties
from braket.device_s... | PypiClean |
/parrot_olympe-7.7.1-py3-none-manylinux_2_31_x86_64.whl/olympe/doc/userguide/basics/expectations.rst | Changing a drone setting - Understand the "expectation" mechanism
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In this example, we will change the "maximum tilt" drone setting. This setting indirectly controls
the maximum drone acceleration and speed. The more the drone can tilt, the more the dron... | PypiClean |
/indie_engine-1.0.0-py3-none-any.whl/IndieEngine/input_feild.py | from IndieEngine.font import FONT
from IndieEngine.inputs import EVENT, KEY
from IndieEngine.physics import QUAD
from .transform import TRANSFORM
from .colour import COLOUR
from . import app as e
import pygame
pygame.init()
class INPUTFEILD(TRANSFORM):
"""
Customisable Input feilds
"""
save_status = ... | PypiClean |
/shimmer-listener-0.4.0.tar.gz/shimmer-listener-0.4.0/shimmer_listener/__init__.py | from ._streams import BtStream, BtSlaveInputStream, BtMasterInputStream, Frameinfo
from ._slave import _slave_init, _slave_listen, _slave_close
from ._master import _master_listen, _master_close
from typing import Optional, Callable, Any, Dict, List, Union
import enum
__all__ = ["bt_init", "bt_listen", "bt_close", "... | PypiClean |
/pandas_sanddance-0.2.0.tar.gz/pandas_sanddance-0.2.0/src/widget.ts |
import {
DOMWidgetModel, DOMWidgetView, ISerializers
} from '@jupyter-widgets/base';
import {
MODULE_NAME, MODULE_VERSION
} from './version';
import * as deck from '@deck.gl/core';
import * as layers from '@deck.gl/layers';
import * as luma from 'luma.gl';
import * as fabric from 'office-ui-fabric-react';
import... | PypiClean |
/horizon-23.2.0.tar.gz/horizon-23.2.0/openstack_dashboard/dashboards/identity/application_credentials/views.py |
from django.conf import settings
from django import http
from django.template.loader import render_to_string
from django.urls import reverse
from django.urls import reverse_lazy
from django.utils.translation import gettext_lazy as _
from horizon import exceptions
from horizon import forms
from horizon import tables
f... | PypiClean |
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/caniuse-lite/data/regions/WS.js | module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"... | PypiClean |
/boulder_opal-0.12.1.tar.gz/boulder_opal-0.12.1/boulderopal/ions/_molmer_sorensen.py | from __future__ import annotations
from typing import Optional
import numpy as np
from qctrlcommons.preconditions import check_argument
from boulderopal._validation import (
ArrayDType,
ScalarDType,
nullable,
)
from boulderopal.graph import (
Graph,
execute_graph,
)
from boulderopal.ions._drives ... | PypiClean |
/commonroad_dataset_converter-2022.1.1-py3-none-any.whl/commonroad_dataset_converter/inD/map_utils.py | __desc__ = """
Extracts planning problems from a big recording by removing a dynamic vehicle and replacing its first and last state
with ego vehicle start and goal position
"""
import os
import logging
from typing import Dict
from commonroad.scenario.scenario import Scenario, ScenarioID
from commonroad.scenario.lanel... | PypiClean |
/etu_django_frame-1.2.0-py3-none-any.whl/etu_django_frame/django/2.2.2/data/static/admin/simpleui-x/elementui/submenu.js | module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])... | PypiClean |
/PyDapi2-0.6.2-py3-none-any.whl/dapi2/derror.py | import lxml.etree as ET
from dapi2.common import DApi2ErrorLevel
class DApiComError(Exception):
'''Base exception class for DAPI communication errors
:param ErrorMessage errmsg: The error message.
'''
errorno = None
name = None
label = None
text = None
... | PypiClean |
/torch_salad-0.2.1a0-py3-none-any.whl/salad/models/gan.py | import torch
from torch import nn
import torch.nn.functional as F
def to_one_hot(y, n_dims=None):
y_tensor = y.long().view(-1, 1)
n_dims = n_dims if n_dims is not None else int(torch.max(y_tensor)) + 1
#y_one_hot = torch.zeros(y_tensor.size()[0], n_dims).type(y.type()).scatter_(1, y_tensor, 1)
y_one_h... | PypiClean |
/refinitiv-data-1.3.1.tar.gz/refinitiv-data-1.3.1/refinitiv/data/_log.py | import logging
import os
import sys
from datetime import datetime
from functools import lru_cache
from logging import LogRecord
from logging.handlers import RotatingFileHandler, TimedRotatingFileHandler
from typing import Tuple, Any, Optional
from ._tools import DEBUG
from ._tools._specification import BaseSpecificati... | PypiClean |
/cubicweb-timesheet-1.0.0.tar.gz/cubicweb-timesheet-1.0.0/cubicweb_timesheet/views/activity.py | __docformat__ = "restructuredtext en"
from logilab.mtconverter import xml_escape
from cubicweb import _
from cubicweb.utils import UStringIO
from cubicweb.schema import display_name
from cubicweb.predicates import (is_instance, multi_columns_rset,
match_user_groups, score_entity, rql... | PypiClean |
/jiminy_py-1.7.16-cp311-cp311-macosx_10_15_universal2.whl/jiminy_py/viewer/meshcat/server.py | import os
import sys
import signal
import logging
import asyncio
import argparse
import multiprocessing
import multiprocessing.managers
from typing import Optional, Tuple, Sequence, Dict, List, Set
import zmq
import psutil
import umsgpack
import tornado.web
import tornado.ioloop
from zmq.eventloop.zmqstream import ZMQ... | PypiClean |
/nifigator-0.1.22.tar.gz/nifigator-0.1.22/docs/04_using a SPARQL endpoint.md | ---
jupyter:
jupytext:
text_representation:
extension: .md
format_name: markdown
format_version: '1.3'
jupytext_version: 1.14.5
kernelspec:
display_name: Python 3 (ipykernel)
language: python
name: python3
---
# Using a SPARQL endpoint
## Connecting to a (local) SPARQL en... | PypiClean |
/substrait_validator-0.0.11-cp37-none-win_amd64.whl/substrait_validator/__init__.py |
import sys
import json
import jdot
import yaml
import click
import urllib.request
from io import BytesIO
from typing import Iterable
from google.protobuf import json_format
from google.protobuf.message import DecodeError as ProtoDecodeError
from .substrait_validator import (
ResultHandle,
Config as _Config,
... | PypiClean |
/pano_airflow-2.7.1-py3-none-any.whl/airflow/models/dagwarning.py | from __future__ import annotations
from enum import Enum
from sqlalchemy import Column, ForeignKeyConstraint, String, Text, false
from sqlalchemy.orm import Session
from airflow.api_internal.internal_api_call import internal_api_call
from airflow.models.base import Base, StringID
from airflow.utils import timezone
f... | PypiClean |
/invenio-rest-1.2.8.tar.gz/invenio-rest-1.2.8/invenio_rest/csrf.py | import re
import secrets
import string
from datetime import datetime, timedelta, timezone
from flask import Blueprint, abort, current_app, request
from itsdangerous import BadSignature, SignatureExpired, \
TimedJSONWebSignatureSerializer
from six import string_types
from six.moves.urllib.parse import urlparse
fro... | PypiClean |
/mendidenborak-2.0.0.tar.gz/mendidenborak-2.0.0/CONTRIBUTING.rst | .. highlight:: shell
============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every little bit
helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com... | PypiClean |
/PyRlEnvs_andnp-2.0.1-py3-none-any.whl/PyRlEnvs/domains/Acrobot.py | import numpy as np
from functools import partial
from PyRlEnvs.Category import addToCategory
from PyRlEnvs.utils.math import clip, try2jit, wrap
from PyRlEnvs.utils.numerical import rungeKutta
from PyRlEnvs.BaseEnvironment import BaseEnvironment
from PyRlEnvs.utils.random import makeSampler, sampleDict, truncatedGaussi... | PypiClean |
/utils_nm-1.0.12.tar.gz/utils_nm-1.0.12/src/utils_nm/orm_models.py | import sqlalchemy as sa
from sqlalchemy.orm import Session
from sqlalchemy.orm.attributes import InstrumentedAttribute
# ______________________________________________________________________________________________________________________
Base = sa.orm.declarative_base()
class BaseClass:
"""
Base class w... | PypiClean |
/netbox_lists-3.1.1-py3-none-any.whl/netbox_lists/api/utils.py | import itertools
from typing import Any, Iterable, List, Union
from django.conf import settings
from django.db.models import Q
from django.db.models.query import QuerySet
from django_filters import FilterSet
from django_filters.utils import translate_validation
from netaddr import cidr_merge, IPNetwork, iprange_to_cid... | PypiClean |
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/schemes/elliptic_curves/period_lattice.py | r"""
Period lattices of elliptic curves and related functions
Let `E` be an elliptic curve defined over a number field `K`
(including `\QQ`). We attach a period lattice (a discrete rank 2
subgroup of `\CC`) to each embedding of `K` into `\CC`.
In the case of real embeddings, the lattice is stable under complex
conju... | PypiClean |
/templot-1.1.tar.gz/templot-1.1/doc/examples/plot_aggregated_map.rst | .. note::
:class: sphx-glr-download-link-note
Click :ref:`here <sphx_glr_download_examples_plot_aggregated_map.py>` to download the full example code
.. rst-class:: sphx-glr-example-title
.. _sphx_glr_examples_plot_aggregated_map.py:
Plot Aggregated Map Example.
============================
.. code-block:... | PypiClean |
/green_magic-0.5.6.tar.gz/green_magic-0.5.6/green_magic/map_maker.py | import os
import sys
import inspect
import subprocess
from time import time
from collections import Counter
import somoclu
import numpy as np
from sklearn.cluster import KMeans
from . import definitions
from .weedata import Weedataset
from .labeling import get_labeler_instance
class MapMakerManager:
def __init__... | PypiClean |
/isla-solver-1.14.1.tar.gz/isla-solver-1.14.1/src/isla/isla_language/IslaLanguageLexer.py | from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
def serializedATN():
return [
4,0,45,607,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,
2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,1... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/intl/locale-data/jsonp/ms-SG.js | IntlPolyfill.__addLocaleData({locale:"ms-SG",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:true,hour12:true,formats:{short:"{1} {0}",medium:"{1} {0}",full:"{1} {0}",long:"{1} {0}",availableFormats:{"d":... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/typescript/lib/lib.es2022.array.d.ts |
interface Array<T> {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): T | undefined;
}
interface ReadonlyArray<T> {
/**
* Returns the item loc... | PypiClean |
/iaweb.privacy-1.0a1.tar.gz/iaweb.privacy-1.0a1/README.rst | .. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
This text does not appear on pypi or github. It is a commen... | PypiClean |
/cegalprizm_pythontoolpro-2.3.2-py3-none-any.whl/cegalprizm/pythontool/grpc/petrelinterface_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
from cegalprizm.pythontool.grpc import petrelinterface_pb2 as cegalprizm_dot_pythontool_dot_grpc_dot_petrelinterface__pb2
class PetrelConnection_ProjectStub(object):
"""Missing associated documentation comment in .proto file.... | PypiClean |
/pulumi_gcp_native-0.0.2a1617829075.tar.gz/pulumi_gcp_native-0.0.2a1617829075/pulumi_gcp_native/healthcare/v1beta1/dataset_consent_store.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = ['DatasetConsentStore']
class DatasetConsentStore(pulumi.CustomResource):
def __init__(__self__,
resource_name: str,
opts... | PypiClean |
/kubernetes-async-patch-4.0.1.tar.gz/kubernetes-async-patch-4.0.1/kubernetes/stream/ws_client.py |
from kubernetes.client.rest import ApiException
import select
import certifi
import time
import collections
from websocket import WebSocket, ABNF, enableTrace
import six
import ssl
from six.moves.urllib.parse import urlencode, quote_plus, urlparse, urlunparse
STDIN_CHANNEL = 0
STDOUT_CHANNEL = 1
STDERR_CHANNEL = 2
E... | PypiClean |
/yr_weather-0.3.0-py3-none-any.whl/yr_weather/locationforecast.py | import requests
from requests_cache import CachedSession
from typing import Optional, Literal, Union
from .base import BaseClient
from .types.completeforecast import CompleteForecast, CompleteUnits
from .types.compactforecast import CompactForecast, CompactInstantDetails
class Locationforecast(BaseClient):
"""A ... | PypiClean |
/reactive-pyecharts-1.0.0.tar.gz/reactive-pyecharts-1.0.0/example/polar_example.py | import math
import random
from example.commons import Collector, Faker
from pyecharts import options as opts
from pyecharts.charts import Page, Polar
C = Collector()
@C.funcs
def polar_scatter0() -> Polar:
data = [(i, random.randint(1, 100)) for i in range(101)]
c = (
Polar()
.add("", data, ... | PypiClean |
/jkg_evaluators-0.0.6.tar.gz/jkg_evaluators-0.0.6/jkg_evaluators/challenges/data/hotels.py | import json
import os
import random
import shutil
import numpy as np
import pandas as pd
from .comparator_class import SolutionComparator
def _create_hotel_input(size):
return [
{
"lat": (random.betavariate(3, 3) - 0.5) * 125,
"lon": (random.betavariate(3, 3) - 0.5) * 300,
... | PypiClean |
/fake_bpy_module_2.80-20230117-py3-none-any.whl/bl_operators/clip.py | import sys
import typing
import bpy_types
GenericType = typing.TypeVar("GenericType")
class CLIP_OT_bundles_to_mesh(bpy_types.Operator):
bl_idname = None
''' '''
bl_label = None
''' '''
bl_options = None
''' '''
bl_rna = None
''' '''
id_data = None
''' '''
def as_keyw... | PypiClean |
/astro_pyvista-0.2.1-py3-none-any.whl/pyvista/spectra.py | import matplotlib
import glob
from importlib_resources import files
import matplotlib.pyplot as plt
import multiprocessing as mp
import os
import pdb
import pickle
import copy
import scipy.signal
import scipy.interpolate
from scipy.optimize import curve_fit
from scipy.ndimage import median_filter, gaussian_filter1d
fro... | PypiClean |
/pyplan-core-0.1.36.tar.gz/pyplan-core-0.1.36/pyplan_core/cubepy/axes.py | import numpy as np
from pyplan_core.cubepy.exceptions import NonUniqueDimNamesError
from pyplan_core.cubepy.utils import is_axis
class Axes(object):
"""Axes is an internal helper class allowing easier manipulation with cube axes.
It is not intended to be accessed by users of cubepy package.
Get axis nam... | PypiClean |
/yangsuite_grpc_telemetry-1.0.7-py3-none-any.whl/ysgrpctelemetry/static/ysgrpctelemetry/docs/_static/underscore-1.13.1.js | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define('underscore', factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () {
var current = global.... | PypiClean |
/monk_cuda90-0.0.1.tar.gz/monk_cuda90-0.0.1/monk/pytorch/datasets/params.py | from monk.pytorch.datasets.imports import *
from monk.system.imports import *
@accepts([int, tuple], dict, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def set_input_size(input_size, system_dict):
'''
Set Input data size
Args:
input_size (int, tuple): Single integer in case... | PypiClean |
/py_bot_starter-0.0.19-py3-none-any.whl/botstarter/db/base.py | import logging
import os
from enum import Enum
from importlib import import_module
from os.path import isdir
from typing import List, TypeVar, Optional
import pymongo
from bson import ObjectId
from pymongo import database
from pymongo.database import Collection
from pymongo.results import UpdateResult, DeleteResult
_... | PypiClean |
/dgl_cu90-0.5.3-cp38-cp38-win_amd64.whl/dgl_cu90-0.5.3.data/purelib/dgl/sampling/neighbor.py |
from .._ffi.function import _init_api
from .. import backend as F
from ..base import DGLError, EID
from ..heterograph import DGLHeteroGraph
from .. import ndarray as nd
from .. import utils
__all__ = [
'sample_neighbors',
'select_topk']
def sample_neighbors(g, nodes, fanout, edge_dir='in', prob=None, replace... | PypiClean |
/django-onec-utils-0.2.2.tar.gz/django-onec-utils-0.2.2/onec_utils/models.py | from datetime import *
import logging
import random, string
import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.localflavor.us.models import USStateField, PhoneNumberField
from django.contrib.markup.templatetags import markup
from onec_utils.fields i... | PypiClean |
/fds.sdk.SecuritizedDerivativesAPIforDigitalPortals-0.10.2-py3-none-any.whl/fds/sdk/SecuritizedDerivativesAPIforDigitalPortals/model/inline_response2005_data_key_figures_delta_effective.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.SecuritizedDerivativesAPIforDigitalPortals.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetim... | PypiClean |
/vantetider_scraper-0.2.0.tar.gz/vantetider_scraper-0.2.0/README.rst |
This is a scraper for statistical data from http://www.vantetider.se built on top of the `Statscraper package <https://github.com/jplusplus/statscraper>`.
Install
-------
pip install -r requirements.txt
The scraper has to do a lot of requests and uses `requests-cache <https://pypi.python.org/pypi/requests-cache>`... | PypiClean |
/url-normalize-1.4.3.tar.gz/url-normalize-1.4.3/README.md | url-normalize
=============
[](https://travis-ci.org/niksite/url-normalize)
[](https://coveralls.io/github/niksite/url-normalize?branch=master... | PypiClean |
/PySDL2-0.9.16.tar.gz/PySDL2-0.9.16/doc/index.rst | Welcome to PySDL2's documentation!
==================================
PySDL2 is a wrapper around the SDL2 library and as such similar to the
discontinued PySDL project. In contrast to PySDL, it has no licensing
restrictions, nor does it rely on C code, but uses :mod:`ctypes` instead.
Getting Started
===============
.... | PypiClean |
/DeploymentTool-1.5.zip/DeploymentTool-1.5/README.rst | How to use:
1. easy_install DeploymentTool
2. after all dependency installed download the project at here https://pypi.python.org/pypi?:action=display&name=DeploymentTool&version=1.4
3. extract the downloaded file
4. go to the directory of extracted file or with cmd if using windows
5. go to Deployment directory and m... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/css/node_modules/source-map/lib/source-map-consumer.js | * Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
* http://opensource.org/licenses/BSD-3-Clause
*/
var util = require('./util');
var binarySearch = require('./binary-search');
var ArraySet = require('./array-set').ArraySet;
var base64VLQ = require('./base64-... | PypiClean |
/optimizer/MomentumBisection.py | from abc import abstractmethod
# Third party imports
import numpy as np
from .base import Optimizer
class Momentum(Optimizer):
"""Optimizer object
Implementation of Momentum (Polyak, 1964)
"""
def __init__(self, surrogate, params=[1e-3, 0.9]):
super().__init__(surrogate, params)
def r... | PypiClean |
/django-rest-framework-braces-0.3.4.tar.gz/django-rest-framework-braces-0.3.4/drf_braces/serializers/enforce_validation_serializer.py | from __future__ import absolute_import, print_function, unicode_literals
import inspect
from rest_framework import fields, serializers
from rest_framework.fields import empty
from ..utils import add_base_class_to_instance, get_class_name_with_new_suffix
class EnforceValidationFieldMixin(object):
"""
Custom ... | PypiClean |
/Products.FCKeditor-2.6.6.3.zip/Products.FCKeditor-2.6.6.3/Products/FCKeditor/_src/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js | /*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2010 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://ww... | PypiClean |
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/reporting/wrappers/_admin_configurations.py |
# template file: ags_py_codegen
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint: disable=missing-function-docstring
# pylint: disable=missing-function-docstring
# pylint: disable=missing-module-docstring
# pylint: disable=too-many-arguments
# pylint: disable=too-many-branches
# pylint: disab... | PypiClean |
/gen_py_tool-1.2.3-py3-none-any.whl/gen_py_tool/pro/factory/extractiner/tool/base.py | import sys
try:
from gen_py_tool.pro.schema.schema_container import SchemaContainer
from gen_py_tool.pro.element.element_container import ElementContainer
except ImportError as ats_error_message:
MESSAGE = '\n{0}\n{1}\n'.format(__file__, ats_error_message)
sys.exit(MESSAGE) # Force close python ATS ##... | PypiClean |
/neural_compressor_full-2.1.1.tar.gz/neural_compressor_full-2.1.1/neural_compressor/experimental/data/dataloaders/base_dataloader.py | """BaseDataloder of all dataloaders."""
from abc import abstractmethod
class BaseDataLoader:
"""Base class for all DataLoaders.
_generate_dataloader is needed to create a dataloader object
from the general params like batch_size and sampler. The dynamic batching is just to
generate a new dataloader ... | PypiClean |
/ssh-import-id-5.11.tar.gz/ssh-import-id-5.11/README | ssh-import-id
===========
You're logged onto a cloud instance working on a problem with your fellow devs, and you want to invite them to log in and take a look at these crazy log messages. What do?
Oh. You have to ask them to cat their public SSH key, paste it into IRC (wait, no, it's id\_rsa.pub, not id\_rsa silly!)... | PypiClean |
/pyclimacell-0.18.2.tar.gz/pyclimacell-0.18.2/README.rst | ====================
Python ClimaCell API
====================
.. image:: https://img.shields.io/pypi/v/pyclimacell.svg
:target: https://pypi.python.org/pypi/pyclimacell
.. image:: https://img.shields.io/travis/raman325/pyclimacell.svg
:target: https://travis-ci.com/raman325/pyclimacell
.. image:: h... | PypiClean |
/cardinal_pythonlib-1.1.24.tar.gz/cardinal_pythonlib-1.1.24/cardinal_pythonlib/sqlalchemy/alembic_ops.py | from alembic.operations import Operations, MigrateOperation
# =============================================================================
# The thing (e.g. view) we are representing
# =============================================================================
class ReplaceableObject(object):
def __init__(se... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/request/lib/har.js | 'use strict'
var fs = require('fs')
var qs = require('querystring')
var validate = require('har-validator')
var extend = require('extend')
function Har (request) {
this.request = request
}
Har.prototype.reducer = function (obj, pair) {
// new property ?
if (obj[pair.name] === undefined) {
obj[pair.name] = ... | PypiClean |
/pesapal-0.0.6.tar.gz/pesapal-0.0.6/lib/__init__.py | import xml.etree.cElementTree as etree
try:
# Python 3
from html import escape
except ImportError:
# Python 2
from cgi import escape
from . import oauth
from .oauth import OAuthConsumer, OAuthRequest
SIGNATURE_METHOD = oauth.OAuthSignatureMethod_HMAC_SHA1()
# configurable enc variables
consumer_key ... | PypiClean |
/snf_image_creator-0.10.tar.gz/snf_image_creator-0.10/image_creator/os_type/linux.py | from image_creator.os_type.unix import Unix, sysprep, add_sysprep_param
import os
import re
import pkg_resources
import tempfile
X2GO_DESKTOPSESSIONS = {
'CINNAMON': 'cinnamon',
'KDE': 'startkde',
'GNOME': 'gnome-session',
'MATE': 'mate-session',
'XFCE': 'xfce4-session',
'LXDE': 'startlxde',
... | PypiClean |
/birenci_infra-0.0.9-py3-none-any.whl/sdk/apis/pdu.py | from os import urandom
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverW... | PypiClean |
/holoviews-1.17.1.tar.gz/holoviews-1.17.1/examples/reference/elements/matplotlib/BoxWhisker.ipynb | <div class="contentcontainer med left" style="margin-left: -50px;">
<dl class="dl-horizontal">
<dt>Title</dt> <dd> BoxWhisker Element</dd>
<dt>Dependencies</dt> <dd>Matplotlib</dd>
<dt>Backends</dt>
<dd><a href='./BoxWhisker.ipynb'>Matplotlib</a></dd>
<dd><a href='../bokeh/BoxWhisker.ipynb'>Bokeh</a></dd>... | PypiClean |
/ast-toolbox-2020.9.1.7.tar.gz/ast-toolbox-2020.9.1.7/third_party/garage/examples/tf/trpo_cubecrash.py | import click
import gym
from garage.envs import normalize
from garage.experiment import run_experiment
from garage.tf.algos import TRPO
from garage.tf.baselines import GaussianCNNBaseline
from garage.tf.envs import TfEnv
from garage.tf.experiment import LocalTFRunner
from garage.tf.policies import CategoricalCNNPolicy... | PypiClean |
/flying_ioc-1.0.3.tar.gz/flying_ioc-1.0.3/README.md | # Inversion of control (IoC) for Humans - written in Python
[Inversion of control](https://en.wikipedia.org/wiki/Inversion_of_control)
## How to use it
pip install flying-ioc
``` {.sourceCode .python}
from flying_ioc import *
ioc = IocManager()
ioc.set_class(cls=HelperWrapper, singleton=True)
ioc.set_class(cls=GRHe... | PypiClean |
/nm_transformers-1.5.1.42301-py3-none-any.whl/transformers/models/poolformer/configuration_poolformer.py | """ PoolFormer model configuration"""
from collections import OrderedDict
from typing import Mapping
from packaging import version
from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging
logger = logging.get_logger(__name__)
POOLFORMER_PRETRAINED_CONFIG_ARCHI... | PypiClean |
/foundation-sphinx-theme-0.0.3.tar.gz/foundation-sphinx-theme-0.0.3/foundation_sphinx_theme/static/foundation/js/vendor/zepto.js | ;(function(undefined){
if (String.prototype.trim === undefined) // fix for iOS 3.2
String.prototype.trim = function(){ return this.replace(/^\s+|\s+$/g, '') }
// For iOS 3.x
// from https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reduce
if (Array.prototype.reduce === undefined)
... | PypiClean |
/hindsight_ubuntu-0.0.3-py3-none-any.whl/hindsight/save.py |
# -----------
# SPDX-License-Identifier: MIT
# Copyright (c) 2021 Troy Williams
# uuid = c3207508-b7ef-11eb-89b8-59b62252b88f
# author = Troy Williams
# email = troy.williams@bluebill.net
# date = 2021-05-18
# -----------
"""
"""
# ------------
# System Modules - Included with Python
import sy... | PypiClean |
/blockstore-client-0.0.12.10.tar.gz/blockstore-client-0.0.12.10/blockstore_client/drivers/disk.py | # This module lets the blockstore client treat local disk as a storage provider.
# This is useful for doing local testing.
import os
import sys
import traceback
DISK_ROOT="/tmp/blockstore-disk"
IMMUTABLE_STORAGE_ROOT = DISK_ROOT + "/immutable"
MUTABLE_STORAGE_ROOT = DISK_ROOT + "/mutable"
DEBUG = False
def storage... | PypiClean |
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/docs/source/development/output.rst | Output
======
To see an overview of cibyl output from a user's perspective see the `output page <../output.html>`_.
From a developer's perspective there are three objects that are involved in
printing the output, which are summarized in the diagram below.
.. image:: ../images/cibyl_printing.png
:align: center
Fir... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.