id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/py-irtools-1.0.11.tar.gz/py-irtools-1.0.11/irtools/utils.py |
# Standard Imports
from optparse import OptionParser
import collections
import signal
# Library Imports
from __init__ import *
from _libs.csv_utils import *
from _libs.decorator_utils import *
from _libs.mail_utils import *
from _libs.byte_utils import *
from _libs.file_utils import *
from _libs.exec_utils import *
f... | PypiClean |
/windmill_api-1.165.0-py3-none-any.whl/windmill_api/models/flow_module_value_2_type_4.py | from typing import Any, Dict, List, Type, TypeVar
import attr
from ..models.flow_module_value_2_type_4_branches_item import FlowModuleValue2Type4BranchesItem
from ..models.flow_module_value_2_type_4_default_item import FlowModuleValue2Type4DefaultItem
from ..models.flow_module_value_2_type_4_type import FlowModuleVal... | PypiClean |
/RL_OM-0.2.1.tar.gz/RL_OM-0.2.1/RL_OM/agents/rl_agents/sac_gumbel.py |
# %% auto 0
__all__ = ['GumbelSoftmax', 'SAC_gumbelPolicy', 'SAC_gumbel']
# %% ../../../nbs/agents/rl_agents/01_SAC_gumbel.ipynb 4
# General libraries
import numpy as np
from copy import deepcopy
# PyTorch
import torch
import torch.optim as optim
import torch.nn.functional as F
# Mushroom
from mushroom_rl.utils.par... | PypiClean |
/salt-3006.2.tar.gz/salt-3006.2/doc/topics/releases/2016.11.10.rst | =============================
Salt 2016.11.10 Release Notes
=============================
Version 2016.11.10 is a security release for :ref:`2016.11.0 <release-2016-11-0>`.
Changes for v2016.11.9..v2016.11.10
-----------------------------------
Security Fix
============
CVE-2018-15751 Remote command execution and i... | PypiClean |
/spyder-terminal-1.2.2.tar.gz/spyder-terminal-1.2.2/spyder_terminal/server/static/components/browserify-zlib/src/binding.js | 'use strict'
/* eslint camelcase: "off" */
var assert = require('assert')
var Zstream = require('pako/lib/zlib/zstream')
var zlib_deflate = require('pako/lib/zlib/deflate.js')
var zlib_inflate = require('pako/lib/zlib/inflate.js')
var constants = require('pako/lib/zlib/constants')
for (var key in constants) {
expo... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/network/v20230501/application_security_group.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__all__ = ['ApplicationSecurityGroupInitArgs', 'ApplicationSecurityGroup']
@pulumi.input_type
class ApplicationSecurityGroupInitArgs:
def __init__(__self... | PypiClean |
/cmsplugin-text-ng-0.6.tar.gz/cmsplugin-text-ng-0.6/README.rst | cmsplugin-text-ng
=================
An enhanced version of the ``Text`` plugin for `django CMS`_. It allows wrapping
the text plugin inside a template selectable by the CMS content editor.
.. note::
This plugin is not meant to replace ``cms.plugins.text``. It is an
enhancement for certain use cases. For most ... | PypiClean |
/alteon-sdk-0.11b2.tar.gz/alteon-sdk-0.11b2/radware/alteon/sdk/configurators/health_check_http.py |
from radware.sdk.common import RadwareParametersStruct, PasswordArgument
from radware.alteon.sdk.alteon_configurator import MSG_UPDATE, MSG_DELETE, AlteonConfigurator
from radware.alteon.beans.SlbNewAdvhcHttpTable import *
from radware.sdk.beans_common import *
from typing import Optional, ClassVar
class EnumSlbAdv... | PypiClean |
/tensorflow-probability-0.2.0.tar.gz/tensorflow-probability-0.2.0/tensorflow_probability/python/bijectors/transform_diagonal.py | """TransformDiagonal bijector."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow.python.ops.distributions import bijector
__all__ = [
"TransformDiagonal",
]
class TransformDiagonal(bijector.Bijector):
"""App... | PypiClean |
/python_architecture_linter_cli-0.1.5.tar.gz/python_architecture_linter_cli-0.1.5/python_architecture_linter_cli/lint_command.py | import os
import sys
from functools import partial
from typing import Callable, Iterable, List
import click
from python_architecture_linter import Linter, Structure, ValidationResult
from python_architecture_linter_cli.steps import (
display_results,
filter_out_excuses,
filter_out_successes,
identity,... | PypiClean |
/threedi-cmd-statistics-0.0.5.tar.gz/threedi-cmd-statistics-0.0.5/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 |
/testdocker-0.2.6.tar.gz/testdocker-0.2.6/README.rst | testdocker
~~~~~~~~~~
Maintainer: Joe Black <joeblack949@gmail.com>
Repository: https://www.github.com/joeblackwaslike/testdocker
Description
-----------
Unit Testing for docker containers.
Usage:
------
* Execute `testdocker init` in the root of your project folder to create the
`tests` directory.
* Modify cl... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/azure/azcollection/plugins/modules/azure_rm_adpassword.py |
from __future__ import absolute_import, division, print_function
import datetime
__metaclass__ = type
DOCUMENTATION = '''
---
module: azure_rm_adpassword
version_added: "0.2.0"
short_description: Manage application password
description:
- Manage application password.
options:
app_id:
description... | PypiClean |
/ciefunctions-1.0.2.tar.gz/ciefunctions-1.0.2/tc1_97/MathJax-2.7.5/jax/output/SVG/fonts/Neo-Euler/fontdata.js | (function(w,e,B,m){var y="2.7.5";var b="NeoEulerMathJax_Alphabets",u="NeoEulerMathJax_Arrows",z="NeoEulerMathJax_Fraktur",t="NeoEulerMathJax_Main",k="NeoEulerMathJax_Marks",x="NeoEulerMathJax_NonUnicode",q="NeoEulerMathJax_Normal",A="NeoEulerMathJax_Operators",o="NeoEulerMathJax_Script",c="NeoEulerMathJax_Shapes",l="Ne... | PypiClean |
/tensorflow_cpu_aws-2.14.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/dtensor/python/config.py | """DTensor Configuration API."""
import os
from typing import List, Optional, Union
from tensorflow.python.eager import context
from tensorflow.python.framework import config as tf_config
from tensorflow.python.framework import device as tf_device
from tensorflow.python.util.tf_export import tf_export
_DT_CLIENT_ID ... | PypiClean |
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/pip/_vendor/urllib3/__init__.py | from __future__ import absolute_import
# Set default logging handler to avoid "No handler found" warnings.
import logging
import warnings
from logging import NullHandler
from . import exceptions
from ._version import __version__
from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
... | PypiClean |
/win32ext-221.2-cp36-cp36m-win32.whl/win32com/client/combrowse.py | import sys
import pythoncom
import win32api
import win32con
import win32ui
from pywin.tools import browser
from win32com.client import util
class HLIRoot(browser.HLIPythonObject):
def __init__(self, title):
self.name = title
def GetSubList(self):
return [
HLIHeadingCategory(),
... | PypiClean |
/message_app_client-0.0.2.tar.gz/message_app_client-0.0.2/client/metaclasses.py | import dis
class ServerValidator(type):
"""
Check the server class for the absence of the client method connect
and for the correct initialization of the socket.
"""
def __init__(cls, clsname, bases, clsdict):
methods = []
attrs = []
for func in clsdict:
try:
... | PypiClean |
/orb-api-4.4.12.tar.gz/orb-api-4.4.12/orb/querying/querycompound.py | import logging
import projex.text
from projex.lazymodule import lazy_import
from projex.enum import enum
from projex.text import nativestring as nstr
from xml.etree import ElementTree
from xml.parsers.expat import ExpatError
log = logging.getLogger(__name__)
orb = lazy_import('orb')
class QueryCompound(object):
... | PypiClean |
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/network/aaz/latest/network/routeserver/ip_config/_delete.py |
# pylint: skip-file
# flake8: noqa
from azure.cli.core.aaz import *
class Delete(AAZCommand):
"""Delete a VirtualHubIpConfiguration.
"""
_aaz_info = {
"version": "2022-01-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virt... | PypiClean |
/repliclust-0.0.3.tar.gz/repliclust-0.0.3/.ipynb_checkpoints/mixture_model_figure-checkpoint.ipynb | ```
import matplotlib.pyplot as plt
import seaborn as sn
import numpy as np
from repliclust.distributions import N_EMPIRICAL_QUANTILE, QUANTILE_LEVEL
from repliclust import Archetype, DataGenerator, set_seed, get_supported_distributions
from scipy.stats import norm, expon, genpareto, t, beta, gamma
nrows=1
ncols=2
fig... | PypiClean |
/udsp-0.2.0-py3-none-any.whl/files3/InfoPackage.py | import os
import shutil
from files3.PfBool import *
class InfoPackage(object):
path = "/"
temp = "/.pftemp"
type = ".object"
aes_type = ".aes"
def __init__(self, path:str, type:str=".inst", aes_type=".aes"):
# 记录工作位置 Record working position
self.NewPath(path)
# 记录数据文件后缀... | PypiClean |
/tf_gpu-2.11.0.2301-cp38-cp38-manylinux2014_x86_64.whl/tensorflow/python/distribute/failure_handling/gce_util.py | """Util of GCE specifics to ingegrate with WorkerPreemptionHandler."""
import enum
import os
import sys
import requests
from six.moves.urllib import request
from tensorflow.python.eager import context
GCP_METADATA_HEADER = {'Metadata-Flavor': 'Google'}
_GCE_METADATA_URL_ENV_VARIABLE = 'GCE_METADATA_IP'
_RESTARTABLE... | PypiClean |
/Locker_Project-1.1.3-py3-none-any.whl/Locker_Project/CMD_Process.py | import threading
import time
import socket
from Locker_Project import Func, MyTask_Finger, MyTask_Tag
from Locker_Project.Func import TaiCauTruc
class Class_Thread:
def __init__(self, name, ObjectThread):
self.Name = name
self.Object = ObjectThread
@property
def ThreadName(self):
... | PypiClean |
/excitingtools-1.5.0.tar.gz/excitingtools-1.5.0/paper/paper.md | ---
title: 'excitingtools: An exciting Workflow Tool'
tags:
- Python
- Physics
- DFT
- Workflow
authors:
- name: Alexander Buccheri
orcid: 0000-0001-5983-8631
affiliation: 1, 2
- name: Fabian Peschel
orcid: 0000-0003-0619-6713
affiliation: 1
- name: Benedikt Maurer
orcid: 0000-0001-9152-73... | PypiClean |
/fabric_cf-1.5.0b2.tar.gz/fabric_cf-1.5.0b2/fabric_cf/actor/core/apis/abc_reservation_resources.py | from __future__ import annotations
import datetime
from abc import abstractmethod, ABC
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from fabric_cf.actor.core.time.term import Term
from fabric_cf.actor.core.util.resource_type import ResourceType
from fabric_cf.actor.core.kernel.resource_set import R... | PypiClean |
/SMPy-1.0.3.tar.gz/SMPy-1.0.3/surveyman/survey/constraints.py | __author__ = 'mmcmahon13'
import json
from __ids__ import *
from survey_exceptions import *
__constraintGen__ = IdGenerator("c")
NEXT = "NEXT"
"""
The `Javascript SurveyMan Interpreter <http://surveyman.github.io/surveyman.js>`_ uses the NEXT pointer to defer the
choice of branch target to runtime.
"""
class Const... | PypiClean |
/arabic_text_quote-0.0.2-py3-none-any.whl/quotation/query.py | from whoosh import scoring
from whoosh.qparser import QueryParser
from . import sanitize
from . import ngram
from . import constants
from . import indexr
from .models import Result
from .utiles import type_check
class Query(object):
__text: str
@type_check
def __init__(self, text: str) -> None:
s... | PypiClean |
/channels_hellwebprice_events-1.0.0.tar.gz/channels_hellwebprice_events-1.0.0/setuptools/command/install.py | from distutils.errors import DistutilsArgError
import inspect
import glob
import warnings
import platform
import distutils.command.install as orig
import setuptools
# Prior to numpy 1.9, NumPy relies on the '_install' name, so provide it for
# now. See https://github.com/pypa/setuptools/issues/199/
_install = orig.in... | PypiClean |
/SkPy-0.10.6.tar.gz/SkPy-0.10.6/skpy/user.py | from datetime import datetime
from .core import SkypeObj, SkypeObjs, SkypeEnum, SkypeApiException
from .util import SkypeUtils
from .conn import SkypeConnection
from .chat import SkypeSingleChat
@SkypeUtils.initAttrs
class SkypeUser(SkypeObj):
"""
A user on Skype -- the current one, a contact, or someone els... | PypiClean |
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/response/AlipayAccountExrateTraderequestCreateResponse.py | import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayAccountExrateTraderequestCreateResponse(AlipayResponse):
def __init__(self):
super(AlipayAccountExrateTraderequestCreateResponse, self).__init__()
self._base_ccy = None
self._client_id = None
... | PypiClean |
/test_10_powerhouse_helper-1-py3-none-any.whl/test_10_powerhouse_helper/AddressBook/addressbook_data.py | import re
from abc import ABC, abstractmethod
import datetime
from prompt_toolkit.validation import Validator, ValidationError
from prompt_toolkit import prompt
class Field(ABC):
@abstractmethod
def __getitem__(self):
pass
class Name(Field):
def __init__(self):
value = prompt("Name: ")
... | PypiClean |
/python_drift-0.6.3-py3-none-any.whl/drift/management/commands/ssh.py |
import sys
import os
import os.path
import subprocess
import boto3
from click import echo
from six import print_
from six.moves import input
from drift.utils import get_config
def get_options(parser):
parser.add_argument("service", help="Service or deployable to connect to", nargs='?')
def run_command(args):... | PypiClean |
/np-session-0.6.38.tar.gz/np-session-0.6.38/src/np_session/databases/redis_state.py | from __future__ import annotations
import collections.abc
import contextlib
import doctest
import pathlib
from typing import ClassVar, Iterator, Union
import np_logging
import redis
logger = np_logging.getLogger(__name__)
password_file = pathlib.Path(
'//allen/scratch/aibstemp/arjun.sridhar/redis_db.txt'
)
# A... | PypiClean |
/jutge-toolkit-2.9.3.tar.gz/jutge-toolkit-2.9.3/documentation/quizzes.md | # Make quizzes for Jutge.org
This page describes the structure of a quiz problem in
[Jutge.org](https://jutge.org/) and how to prepare it with the
`jutge-make-quiz` command of the tookit.
# Sample quizzes
Some sample quizzes are given under the [`examples/quizzes`](../examples/quizzes) directory.
# Usage
In orde... | PypiClean |
/testflows.core-1.9.230705.1122619.tar.gz/testflows.core-1.9.230705.1122619/testflows/_core/contrib/pygments/lexers/make.py | import re
from testflows._core.contrib.pygments.lexer import Lexer, RegexLexer, include, bygroups, \
do_insertions, using
from testflows._core.contrib.pygments.token import Text, Comment, Operator, Keyword, Name, String, \
Punctuation
from testflows._core.contrib.pygments.lexers.shell import BashLexer
__all__... | PypiClean |
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/merge-source-map/node_modules/source-map/lib/array-set.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 has = Object.prototype.hasOwnProperty;
var hasNativeMap = typeof Map !== "undefined";
/**
* A data structure which is a com... | PypiClean |
/pytram-0.3.0.tar.gz/pytram-0.3.0/README.rst | ******
pytram
******
The pytram package is decprecated and no longer supported. We recommend to switch to `PyEMMA <https://github.com/markovmodel/PyEMMA>`_.
.. image:: http://badges.github.io/stability-badges/dist/deprecated.svg
:target: http://github.com/badges/stability-badges
.. image:: https://travis-ci.org/ma... | PypiClean |
/nrobo-2.0.22.tar.gz/nrobo-2.0.22/docs/youtube/create_channel.md | # YouTube Channel
1. Create a separate channel on each topic
2. Choose title wisely
3. Choose description wisely
4. Choose tags wisely
5. Create thumbnail wisely
6. Work on content
## Tips for Managing Multiple YouTube Channels
Managing multiple YouTube channels isn’t too difficult, but there are certain chords you ... | PypiClean |
/django_crm-0.9.0-py3-none-any.whl/invoices/api_views.py | import pytz
from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
from django.db.models import Q
from invoices.models import Invoice
from invoices.tasks import (
send_email,
send_invoice_email,
send_invoice_email_cancel,
create_invoice_history,
)
from invoices impo... | PypiClean |
/squash-0.5.0alpha.tar.gz/squash-0.5.0alpha/django/contrib/webdesign/lorem_ipsum.py | import random
COMMON_P = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit es... | PypiClean |
/py_lav-1.12.1.tar.gz/py_lav-1.12.1/pylav/events/node.py | from __future__ import annotations
from typing import TYPE_CHECKING
import discord
from pylav.events.base import PyLavEvent
if TYPE_CHECKING:
from pylav.nodes.api.responses.websocket import Closed
from pylav.nodes.node import Node
from pylav.players.player import Player
class NodeDisconnectedEvent(PyL... | PypiClean |
/castle.cms-3.0.0b123.tar.gz/castle.cms-3.0.0b123/castle/cms/jbot.py | import logging
import os
import sys
import time
import traceback
import Globals
from DateTime import DateTime
from plone import api
from plone.app.theming.interfaces import THEME_RESOURCE_NAME
from plone.app.theming.utils import getCurrentTheme
from plone.registry.interfaces import IRegistry
from plone.resource.utils ... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/address/ta_IN/__init__.py | from .. import Provider as AddressProvider
class Provider(AddressProvider):
city_formats = ("{{city_name}}",)
street_name_formats = (
"{{first_name}} {{last_name}}",
"{{last_name}}",
)
street_address_formats = ("{{building_number}} {{street_name}}",)
address_formats = (
... | PypiClean |
/champollion-1.0.0.tar.gz/champollion-1.0.0/doc/directive.rst | .. _directive:
****************
Using Directives
****************
.. _directive/automodule:
Using automodule
================
Document nested elements from a module represented by a *file* or a
**index.js** file within a folder::
example/
|- index.js
`- test.js
Two modules are available in the examp... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/role_management/directory/role_assignment_schedule_requests/filter_by_current_user_with_on/filter_by_current_user_with_on_response.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from .....models import base_collection_pagination_count_response, unified_role_assignment_schedule... | PypiClean |
/delphix_dct_api-9.0.0rc1-py3-none-any.whl/delphix/api/gateway/model/bookmark.py | import re # noqa: F401
import sys # noqa: F401
from delphix.api.gateway.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type... | PypiClean |
/mw-adapter-transformers-3.2.1.tar.gz/mw-adapter-transformers-3.2.1/src/adapter_transformers/models/bert/convert_bert_original_tf2_checkpoint_to_pytorch.py | import argparse
import os
import re
import tensorflow as tf
import torch
from adapter_transformers import BertConfig, BertModel
from adapter_transformers.utils import logging
logging.set_verbosity_info()
logger = logging.get_logger(__name__)
def load_tf2_weights_in_bert(model, tf_checkpoint_path, config):
tf_... | PypiClean |
/navigator_auth-0.8.20-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/navigator_auth/backends/azure.py | import base64
import orjson
from aiohttp import web
import msal
import aioredis
from msal.authority import AuthorityBuilder, AZURE_PUBLIC
from navconfig.logging import logging
from navigator_session import get_session
from navigator_auth.exceptions import AuthException, UserNotFound
from navigator_auth.conf import (
... | PypiClean |
/h2o_pysparkling_3.0-3.42.0.2.post1.tar.gz/h2o_pysparkling_3.0-3.42.0.2.post1/h2o/estimators/kmeans.py |
from h2o.estimators.estimator_base import H2OEstimator
from h2o.exceptions import H2OValueError
from h2o.frame import H2OFrame
from h2o.utils.typechecks import assert_is_type, Enum, numeric
class H2OKMeansEstimator(H2OEstimator):
"""
K-means
Performs k-means clustering on an H2O dataset.
"""
al... | PypiClean |
/mindscience_mindsponge_gpu-0.1.0rc1-py3-none-any.whl/mindsponge/md/potential/simple_constrain.py | class BondInformation:
def __init__(self):
self.bond_numbers = 0
self.atom_a = []
self.atom_b = []
self.bond_r = []
class Information:
"""Information"""
def __init__(self):
self.atom_numbers = 0
self.dt = 0.001
self.uint_dr_to_dr_cof = []
se... | PypiClean |
/libecl-2.9.2b0-cp36-cp36m-manylinux2010_x86_64.whl/ecl/well/well_state.py | from cwrap import BaseCClass
from ecl import EclPrototype
from ecl.well import WellTypeEnum, WellConnection
from ecl.util.util import CTime
class WellState(BaseCClass):
TYPE_NAME = "well_state"
_global_connections_size = EclPrototype("int well_conn_collection_get_size(void*)", bind = False)
_global_conne... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/monitor/outputs.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__ = [
'AzureMonitorWorkspaceResponseDefaultIngestionSettings',
'AzureMonitorWorkspaceResponseMetrics',
'PrivateEndpoint... | PypiClean |
/pyannote.db.etape-0.4.tar.gz/pyannote.db.etape-0.4/Etape/__init__.py |
# The MIT License (MIT)
# Copyright (c) 2016 CNRS
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge... | PypiClean |
/Soya3-0.1.tar.bz2/Soya3-0.1/tutorial/ray-1.py |
# Soya 3D
# Copyright (C) 2001-2014 Jean-Baptiste LAMY
# http://www.lesfleursdunormal.fr/static/informatique/soya3d/index_en.html
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version... | PypiClean |
/ntier_aiohttp-1.0.1.tar.gz/ntier_aiohttp-1.0.1/ntier_aiohttp/deserialize.py | from typing import Any, Callable, List, Mapping, NamedTuple, Optional
from multidict import MultiDict
from ntier.deserialize import Deserialize as DeserializeBase
from ntier.deserialize import Map, MapDef
OpStr = Optional[str]
class RequestData(NamedTuple):
query: MultiDict
match_info: Mapping[str, str]
... | PypiClean |
/object_detection_by_ovi-0.0.1-py3-none-any.whl/object_detection/core/target_assigner.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from six.moves import range
from six.moves import zip
import tensorflow.compat.v1 as tf
import tensorflow.compat.v2 as tf2
from object_detection.box_coders import faster_rcnn_box_coder
from object_detection.bo... | PypiClean |
/osint_tools-0.2.8-py3-none-any.whl/osint_tools/api/utube/utube.py | import subprocess
'''
download utube stream in chunks while it is in progress
url="https://www.youtube.com/watch?v=kEfldEpDMQA"
chunk_stream() {
# youtube-dl --list-formats $1
local manifest=$(youtube-dl -f 95 -g $1)
echo $manifest
ffmpeg -i $manifest -c copy utube.mp4
# ffmpeg -i $manifest -c co... | PypiClean |
/pyhepdata-0.2.1.tar.gz/pyhepdata-0.2.1/examples/hepdata_plot.py | import math
import re
import sys
sys.path.append('..')
sys.path.append('.')
import matplotlib.pyplot as plt
import hepdata as hd
import hepdata.io as hi
import hepdata.plot as hp
import hepdata.names as hn
from pprint import pprint
class All:
"""Open file, read in the submission, and plot all tables in the
su... | PypiClean |
/chekov-2.3.273.tar.gz/chekov-2.3.273/checkov/bicep/graph_builder/graph_to_tf_definitions.py | from __future__ import annotations
import os
from pathlib import Path
from typing import Any, TYPE_CHECKING, cast
from checkov.bicep.graph_builder.graph_components.block_types import BlockType, BlockTypeAlias
from checkov.bicep.graph_builder.local_graph import BicepElements, BicepElementsAlias
if TYPE_CHECKING:
... | PypiClean |
/fake_bpy_module_3.2-20230117-py3-none-any.whl/bpy/ops/uv.py | import sys
import typing
import bpy.types
import bpy.ops.transform
GenericType = typing.TypeVar("GenericType")
def align(override_context: typing.Union[typing.
Dict, 'bpy.types.Context'] = None,
execution_context: typing.Union[str, int] = None,
undo: typin... | PypiClean |
/pnap-audit-api-1.0.6.tar.gz/pnap-audit-api-1.0.6/pnap_audit_api/rest.py | import io
import json
import logging
import re
import ssl
from urllib.parse import urlencode
from urllib.parse import urlparse
from urllib.request import proxy_bypass_environment
import urllib3
import ipaddress
from pnap_audit_api.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundExcep... | PypiClean |
/RsCMPX_Base-4.0.170-py3-none-any.whl/RsCMPX_Base/Implementations/HardCopy/__init__.py | from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class HardCopyCls:
"""HardCopy commands group definition. 6 total commands, 2 Subgroups, 3 group c... | PypiClean |
/take_satisfaction-0.4.1-py3-none-any.whl/take_satisfaction/conversion/scale_conversion.py | __author__ = 'Milo Utsch and Gabriel Salgado'
__version__ = '0.2.4'
__all__ = [
'verify_answer_is_numeric',
'convert_numeric_answer_column',
'convert_answer',
'convert_scale_to_indexes',
'convert_scale'
]
import typing as tp
import unidecode as uni
import emoji
import pandas as pd
from fuzzywuzzy ... | PypiClean |
/hera-py-1.0.7.tar.gz/hera-py-1.0.7/hera/stdlib.py | import sys
from .utils import from_u16, to_u16
def tiger_printint_stack(vm):
print(from_u16(vm.load_memory(vm.registers[14] + 3)), end="")
def tiger_printbool_stack(vm):
v = vm.load_memory(vm.registers[14] + 3)
print("false" if v == 0 else "true", end="")
def tiger_print_stack(vm):
addr = vm.load... | PypiClean |
/spike2py_preprocess-0.1.4.tar.gz/spike2py_preprocess-0.1.4/spike2py_preprocess/trial_sections.py | import copy
import sys
import numpy as np
import spike2py_preprocess.trial as trial
def extract(data, plot=False):
section_names, section_times = _get_section_details(data)
_validate_sections(section_names, data)
section_name_times = _concat_section_names_times(section_names, section_times)
for sect... | PypiClean |
/design-django-theme-2.4.2.tar.gz/design-django-theme-2.4.2/bootstrap_italia_template/static/plugins/backToTop.js | import BaseComponent from 'bootstrap/js/src/base-component.js';
import EventHandler from 'bootstrap/js/src/dom/event-handler';
import SelectorEngine from 'bootstrap/js/src/dom/selector-engine';
import Manipulator from 'bootstrap/js/src/dom/manipulator';
import onDocumentScroll from './util/on-document-scroll.js';
impor... | PypiClean |
/harmonize_wq-0.3.0.tar.gz/harmonize_wq-0.3.0/harmonize_wq/location.py | from pyproj import Transformer
from shapely.geometry import shape
import geopandas
import pandas
import dataretrieval.wqp as wqp
from harmonize_wq import harmonize
from harmonize_wq import domains
from harmonize_wq import wrangle
from harmonize_wq import clean
def infer_CRS(df_in,
out_EPSG,
... | PypiClean |
/sqlalchemy_model_factory-0.4.6-py3-none-any.whl/sqlalchemy_model_factory/base.py | from typing import Any, Dict, Optional, Set
from sqlalchemy_model_factory.registry import Method, Registry
_ITERABLES = (list, tuple, set)
class Options:
def __init__(self, commit=True, cleanup=True):
self.commit = commit
self.cleanup = cleanup
class ModelFactory:
def __init__(self, regist... | PypiClean |
/youtube_dlc-2020.11.11.post3.tar.gz/youtube_dlc-2020.11.11.post3/youtube_dlc/extractor/xminus.py | from __future__ import unicode_literals
import re
import time
from .common import InfoExtractor
from ..compat import (
compat_ord,
)
from ..utils import (
int_or_none,
parse_duration,
)
class XMinusIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?x-minus\.org/track/(?P<id>[0-9]+)'
_TEST = {
... | PypiClean |
/nidaba-2.0.4.tar.gz/nidaba-2.0.4/docs/source/nidaba.algorithms.rst | nidaba.algorithms package
=========================
Submodules
----------
nidaba.algorithms.otsu module
-----------------------------
.. automodule:: nidaba.algorithms.otsu
:members:
:undoc-members:
:show-inheritance:
nidaba.algorithms.string module
-------------------------------
.. automodule:: nidab... | PypiClean |
/robot_grpc-0.0.4.tar.gz/robot_grpc-0.0.4/robot_grpc/node_modules/imurmurhash/imurmurhash.js | (function(){
var cache;
// Call this function without `new` to use the cached object (good for
// single-threaded environments), or with `new` to create a new object.
//
// @param {string} key A UTF-16 or ASCII string
// @param {number} seed An optional positive integer
// @return {object} ... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/documentdb/mongo_cluster.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 ._enums import *
from ._inputs import *
__all__ = ['MongoClusterArgs', 'MongoCluster']
@pulumi.input_type
class MongoClusterArgs:
... | PypiClean |
/rss_readerCLI-5.0.1.tar.gz/rss_readerCLI-5.0.1/README.md |
Implemented Python RSS-reader using python 3.9.
RSS reader is a command-line utility that receives RSS URL and prints results in a human-readable format.
---
Quick start
---
>>> rss_reader https://people.onliner.by/feed --limit 1
---------------------------------- Start Program ------------------------... | PypiClean |
/sidechain-launch-kit-1.0.0b0.tar.gz/sidechain-launch-kit-1.0.0b0/slk/sidechain_interaction.py | import os
import sys
import time
from multiprocessing import Process, Value
from pathlib import Path
from typing import Any, Callable, List
from slk.chain.chain import Chain
from slk.chain.chain_setup import setup_mainchain, setup_sidechain
from slk.chain.context_managers import (
connect_to_external_chain,
si... | PypiClean |
/camely-1.0.5.tar.gz/camely-1.0.5/README.md | ## Camelcase Converter
> Convert snake_case to camelCase
## Screenshot
<img src="https://gitlab.com/yoginth/camely/raw/master/Screenshot.png" width="550">
## Install
```
$ pip install camely
```
## Usage
```python
import camely
print (camely.convert("yoginth_var"))
#=> YoginthVar
print (camely.convert("this_is... | PypiClean |
/django_jsonlistedit-0.0.8.tar.gz/django_jsonlistedit-0.0.8/django_jsonlistedit/static/jsonlistedit/jsonlistedit.js | (function () {
"use strict";
// Temporary hack for quick dev:
var default_templates = {
"default": '<div class="handle">☰</div><label>Name: $$name</label>, <label>price <input name="price" value="$price" type="number" form="NOSUBMIT"/></label>',
"section": '$$name',
"not... | PypiClean |
/XStatic-Graphlib-2.1.7.0.tar.gz/XStatic-Graphlib-2.1.7.0/xstatic/pkg/graphlib/data/graphlib.core.js | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.graphlib = f()... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/mail_folders/item/multi_value_extended_properties/count/count_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/dnamlops-0.0.3-py3-none-any.whl/mlopsdna/evidently/metrics/data_quality/column_quantile_metric.py | import dataclasses
from typing import List
from typing import Optional
import pandas as pd
from mlopsdna.evidently.base_metric import InputData
from mlopsdna.evidently.base_metric import Metric
from mlopsdna.evidently.model.widget import BaseWidgetInfo
from mlopsdna.evidently.renderers.base_renderer import MetricRend... | PypiClean |
/emus_web-0.1.0.tar.gz/emus_web-0.1.0/emus_web/apps/games/management/commands/import_gamelist_xml_file.py | from django.conf import settings
from django.core.management.base import BaseCommand
from games.utils import import_gamelist_file_to_db_for_system
class Command(BaseCommand):
help = "Import all games found in a given gamelist XML file"
def add_arguments(self, parser):
parser.add_argument("system", t... | PypiClean |
/balsam_flow-0.7.0a10-py3-none-any.whl/balsam/site/service/main.py | import logging
import multiprocessing
import os
import socket
import time
from pathlib import Path
from typing import Any
from balsam.config import SiteConfig
from balsam.util import SigHandler
logger = logging.getLogger("balsam.site.service.main")
class PIDFile:
def __init__(self, site_path: Path) -> None:
... | PypiClean |
/data_preprocessors-0.39.0-py3-none-any.whl/data_preprocessors/text_preprocessor.py | from collections import Counter
from bnlp import NLTKTokenizer
import pandas as pd
import random
import re
import csv
import os
import fileinput
import glob
import nltk
# Checking punkt downloaded or not
try:
nltk.data.find('tokenizers/punkt')
except LookupError:
print("punkt not found. downloading...")
nl... | PypiClean |
/tensorflow_tflex-1.13.1rc1-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_tflex-1.13.1rc1.data/purelib/tensorflow/contrib/text/python/ops/gen_skip_gram_ops.py | import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _context
from tensorflow.python.eager import core as _core
from tensorflow.python.eager import execute as _execute
from tensorflow.python.framework ... | PypiClean |
/putcall-0.1.tar.gz/putcall-0.1/README.rst | =================================
putcall - option pricing formulae
=================================
.. image:: https://img.shields.io/codeship/b731e790-9d6a-0134-75d5-4e318545e956/master.svg
:target: https://codeship.com//projects/188643
Collection of classical option pricing formulas.
Example Usage
---------... | PypiClean |
/ukis-pysat-1.5.1.tar.gz/ukis-pysat-1.5.1/ukis_pysat/raster.py |
import math
from itertools import product
from pathlib import Path
from ukis_pysat.members import Platform
try:
import xmltodict
import numpy as np
import rasterio
import rasterio.dtypes
import rasterio.mask
import rasterio.plot
import rasterio.warp
import rasterio.windows
import ... | PypiClean |
/paddle_fl_gpu-1.2.0-py3-none-any.whl/paddle_fl/paddle_fl/core/trainer/diffiehellman/decorators.py |
#
# The MIT License (MIT)
#
# Copyright (c) 2016 Chris von Csefalvay
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, co... | PypiClean |
/fast-transformer-pytorch-0.0.4.tar.gz/fast-transformer-pytorch-0.0.4/fast_transformer_pytorch/fast_transformer_pytorch.py | import torch
import torch.nn.functional as F
from torch import nn, einsum
from einops import rearrange, reduce
from rotary_embedding_torch import apply_rotary_emb, RotaryEmbedding
# helper functions
def exists(val):
return val is not None
def default(val, d):
return val if exists(val) else d
# helper class... | PypiClean |
/xraylarch-0.9.71-py3-none-any.whl/larch/qtlib/plot1D.py | from __future__ import absolute_import, division, unicode_literals
import functools
from silx.gui import qt
from silx.gui.plot import PlotWindow
from silx.gui.plot.tools.CurveLegendsWidget import CurveLegendsWidget
from silx.gui.widgets.BoxLayoutDockWidget import BoxLayoutDockWidget
class CustomCurveLegendsWidget(Cur... | PypiClean |
/oemof.solph-0.5.1.tar.gz/oemof.solph-0.5.1/docs/whatsnew/v0-0-5.rst | v0.0.5 (April 1, 2016)
----------------------
New features
####################
* There's now a `flexible transformer
<oemof.core.network.entities.components._transformers.TwoInputsOneOutput>`
with two inputs and one output.
(`Issue #116 <https://github.com/oemof/oemof-solph/pull/116>`_)
* You now have the opti... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/dnd/Selector.js | if(!dojo._hasResource["dojo.dnd.Selector"]){
dojo._hasResource["dojo.dnd.Selector"]=true;
dojo.provide("dojo.dnd.Selector");
dojo.require("dojo.dnd.common");
dojo.require("dojo.dnd.Container");
dojo.declare("dojo.dnd.Selector",dojo.dnd.Container,{constructor:function(_1,_2){
if(!_2){
_2={};
}
this.singular=_2.singular;... | PypiClean |
/azure-mgmt-rdbms-10.2.0b6.zip/azure-mgmt-rdbms-10.2.0b6/azure/mgmt/rdbms/postgresql_flexibleservers/aio/operations/_check_name_availability_operations.py | import sys
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.pipeline import Pipeline... | PypiClean |
/conda_lock-2.2.0.tar.gz/conda_lock-2.2.0/conda_lock/_vendor/poetry/core/packages/file_dependency.py | import hashlib
import io
from typing import TYPE_CHECKING
from typing import FrozenSet
from typing import List
from typing import Union
from conda_lock._vendor.poetry.core.packages.utils.utils import path_to_url
from conda_lock._vendor.poetry.core.utils._compat import Path
from .dependency import Dependency
if TYP... | PypiClean |
/superset-d1-0.26.3.tar.gz/superset-d1-0.26.3/superset/models/helpers.py | """a collection of model-related helper classes and functions"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from datetime import datetime
import json
import logging
import re
from flask import escape, Markup
from... | PypiClean |
/enough-2.2.35.tar.gz/enough-2.2.35/playbooks/debops/docs/ansible/roles/opendkim/defaults-detailed.rst | .. Copyright (C) 2017 Maciej Delmanowski <drybjed@gmail.com>
.. Copyright (C) 2017 DebOps <https://debops.org/>
.. SPDX-License-Identifier: GPL-3.0-only
.. _opendkim__ref_defaults_detailed:
Default variable details
========================
some of ``debops.opendkim`` default variables have more extensive configurati... | PypiClean |
/RLPack-1.0.1.tar.gz/RLPack-1.0.1/rlpack/utils/sanity_check.py | import logging
import re
from typing import Any, Dict, List
from rlpack.utils.base.register import Register
class SanityCheck(Register):
"""
This class does the basic sanity check of input_config.
"""
def __init__(self, input_config: Dict[str, Any]):
"""
@param input_config: (Dict[st... | PypiClean |
/ikkez_vector-0.7.2.tar.gz/ikkez_vector-0.7.2/anki_vector/screen.py | # __all__ should order by constants, event classes, other classes, functions.
__all__ = ['dimensions', 'convert_image_to_screen_data',
'convert_pixels_to_screen_data', 'ScreenComponent']
import sys
from . import color, connection, util
from .messaging import protocol
try:
from PIL import Image
except ... | PypiClean |
/astroquery-integral-0.4.5.tar.gz/astroquery-integral-0.4.5/docs/noirlab/noirlab.rst | .. doctest-skip-all
.. # To render rst files to HTML: python setup.py build_docs
.. # When above stops working (astroquery removes helpers) do next:
.. # cd docs; make html
.. _astroquery.noirlab:
**************************************
NOIRLab Queries (`astroquery.noirlab`)
**************************************
Get... | PypiClean |
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/foobot/sensor.py | import asyncio
from datetime import timedelta
import logging
import aiohttp
from foobot_async import FoobotClient
import voluptuous as vol
from homeassistant.components.sensor import SensorEntity
from homeassistant.const import (
ATTR_TEMPERATURE,
ATTR_TIME,
CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
C... | PypiClean |
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/recorder/const.py |
from homeassistant.backports.enum import StrEnum
from homeassistant.const import ATTR_ATTRIBUTION, ATTR_RESTORED, ATTR_SUPPORTED_FEATURES
from homeassistant.helpers.json import ( # noqa: F401 pylint: disable=unused-import
JSON_DUMP,
)
DATA_INSTANCE = "recorder_instance"
SQLITE_URL_PREFIX = "sqlite://"
MARIADB_UR... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.