id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Auxjad-1.0.0.tar.gz/Auxjad-1.0.0/auxjad/get/selections_are_identical.py | from collections.abc import Iterable
from typing import Union
import abjad
def selections_are_identical(selections: Union[Iterable[abjad.Component],
Iterable[abjad.Selection],
],
*,
... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/forms/dialogs/textfield.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.dialog.add("textfield",function(b){function e(a){a=a.element;var b=this.getValue();b?a.setAttribute(this.id,b):a.removeAttribute(this.id)}functio... | PypiClean |
/Create-Python-Project-0.1.0.tar.gz/Create-Python-Project-0.1.0/create_python_project/info.py | import re
from collections import OrderedDict
class FieldDescriptor:
"""Base Field Descriptor from which every Info inherit from"""
def __init__(self, name=None, default=None):
self._name = name
self.default = default
def __set__(self, instance, value):
value = value if value is... | PypiClean |
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/gcc.py |
__revision__ = "src/engine/SCons/Tool/gcc.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog"
import cc
import os
import re
import subprocess
import SCons.Util
compilers = ['gcc', 'cc']
def generate(env):
"""Add Builders and construction variables for gcc to an Environment."""
if 'CC' not in env:... | PypiClean |
/knics_jupyter_frontend-0.1.0.tar.gz/knics_jupyter_frontend-0.1.0/KNICS_Jupyter_frontend/labextension/static/remoteEntry.a910049d2e28ec9b8a93.js | var _JUPYTERLAB;
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ "webpack/container/entry/KNICS_Jupyter_frontend":
/*!***********************!*\
!*** container entry ***!
\***********************/
/***/ ((__unused_webpack_module, exports, __webpack_require... | PypiClean |
/Odoo_API_Library-1.1.4.tar.gz/Odoo_API_Library-1.1.4/Odoo_API_Library/Validator.py | import logging
import jwt
import re
import datetime
import traceback
import os
from odoo import http, service, registry, SUPERUSER_ID
from odoo.http import request
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
_logger = logging.getLogger(__name__)
regex = r"^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/... | PypiClean |
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/View/ExperimentWizard/Components/MeasurementWindow.py | import logging
from tkinter import Tk, Frame, Label, Button, messagebox
from LabExT.View.Controls.CustomTable import CustomTable
from LabExT.View.TooltipMenu import CreateToolTip
class MeasurementWindow(Frame):
"""Shows all possible measurements in a table and lets the user
decide on the order in which the m... | PypiClean |
/GhettoRecorder-3.0-py3-none-any.whl/ghettorecorder/cmd.py | import os
import sys
import time
import signal
import multiprocessing as mp
from pathlib import Path
import ghettorecorder.ghetto_menu as menu
import ghettorecorder.ghetto_procenv as procenv
import ghettorecorder.ghetto_blacklist as ghetto_blacklist
import ghettorecorder.ghetto_container as container
from ghettorecord... | PypiClean |
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/models/bbox_heads/double_bbox_head.py | import torch.nn as nn
from mmcv.cnn.weight_init import normal_init, xavier_init
from ..backbones.resnet import Bottleneck
from ..registry import HEADS
from ..utils import ConvModule
from .bbox_head import BBoxHead
class BasicResBlock(nn.Module):
"""Basic residual block.
This block is a little different from... | PypiClean |
/BMI160_i2c-0.6.tar.gz/BMI160_i2c-0.6/README.md | # BMI160-i2c
I2C library to use the Inertial Mesurment Unit BMI160. Heavily inspired on @serioeseGmbH code [serioeseGmbH/BMI160](https://github.com/serioeseGmbH/BMI160), in fact I just adapted his code.
This library was tested successfully on a Raspberry Pi 3 B
## Installation
The package is [available on pypi.org]... | PypiClean |
/Deeplodocus-0.3.0-py3-none-any.whl/deeplodocus/data/load/pipeline_entry.py | from typing import Optional
from typing import List
from typing import Any
import weakref
# Deeplodocus imports
from deeplodocus.data.load.formatter import Formatter
from deeplodocus.utils.flag import Flag
class PipelineEntry(object):
"""
AUTHORS:
--------
:author: Alix Leroy
DESCRIPTION:
... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Lang/be-tarask.js | * @requires OpenLayers/Lang.js
*/
/**
* Namespace: OpenLayers.Lang["be-tarask"]
* Dictionary for Беларуская (тарашкевіца). Keys for entries are used in calls to
* <OpenLayers.Lang.translate>. Entry bodies are normal strings or
* strings formatted for use with <OpenLayers.String.format> calls.
*/
OpenL... | PypiClean |
/Box2D-2.3.2.tar.gz/Box2D-2.3.2/examples/backends/pyqt4_framework.py | import string
import sys
import re
from PyQt4 import (QtGui, QtCore)
from PyQt4.QtGui import (QTableWidgetItem, QColor)
from PyQt4.QtCore import Qt
from Box2D import (b2AABB, b2CircleShape, b2Color, b2DistanceJoint,
b2EdgeShape, b2LoopShape, b2MouseJoint, b2Mul,
b2PolygonShape, b... | PypiClean |
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/cogs/audio/databases.py | import asyncio
import concurrent.futures
import contextlib
import datetime
import json
import logging
import time
from dataclasses import dataclass, field
from typing import TYPE_CHECKING, Dict, List, Mapping, MutableMapping, Optional, Tuple, Union
import apsw
from kronbot.core import Config
from kronbot.core.bot imp... | PypiClean |
/MITunaX-0.1.tar.gz/MITunaX-0.1/tuna/utils/dupe_resolve.py |
from sqlalchemy.exc import IntegrityError, OperationalError
from tuna.dbBase.sql_alchemy import DbSession
from tuna.helper import handle_op_error
from tuna.utils.logger import setup_logger
LOGGER = setup_logger('dupe_resolve')
view_perf_cfg_rep = """
create or replace view perf_cfg_rep as
select cc2.id, cc3.id as c... | PypiClean |
/NEMO_billing-2.6.7-py3-none-any.whl/NEMO_billing/prepayments/admin.py | from NEMO.utilities import format_datetime
from django import forms
from django.contrib import admin
from django.contrib.admin import widgets
from NEMO_billing.invoices.models import BillableItemType
from NEMO_billing.prepayments.models import Fund, FundType, ProjectPrepaymentDetail
from NEMO_billing.utilities import ... | PypiClean |
/Agora-Scholar-0.2.0.tar.gz/Agora-Scholar-0.2.0/agora/scholar/actions/stream.py | import calendar
import logging
from datetime import datetime as dt, datetime
from redis.lock import Lock
from agora.scholar.actions import FragmentConsumerResponse
from agora.scholar.daemons.fragment import FragmentPlugin, map_variables, match_filter, is_fragment_synced, \
fragment_contexts
from agora.scholar.dae... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/iron-flex-layout/README.md | [](https://travis-ci.org/PolymerElements/iron-flex-layout)
[](https://beta.webcomponents.org/element/PolymerElements/iron-flex-layo... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/yaml_27/yaml/serializer.py | __all__ = ['Serializer', 'SerializerError']
from error import YAMLError
from events import *
from nodes import *
class SerializerError(YAMLError):
pass
class Serializer(object):
ANCHOR_TEMPLATE = u'id%03d'
def __init__(self, encoding=None,
explicit_start=None, explicit_end=None, version=Non... | PypiClean |
/GailBot-0.2a0-py3-none-any.whl/gailbot/services/organizer/source/source_manager.py | from typing import List, Dict, Union
import os
from .source_object import SourceObject
from ..settings import SettingObject
from gailbot.core.utils.general import get_name, is_file, is_directory, is_path
from gailbot.core.utils.logger import makelogger
from gailbot.configs import workspace_config_loader
OUTPUT_EXTENSI... | PypiClean |
/NLP_LIB_cpu-0.0.12.tar.gz/NLP_LIB_cpu-0.0.12/NLP_LIB/nlp_core/engine.py | import importlib
import random
import sys
import json
import numpy as np
import codecs
import os
import tensorflow as tf
import tensorflow.keras
import re
from tensorflow.keras.callbacks import TensorBoard, ModelCheckpoint
from tensorflow.keras import backend as K
from NLP_LIB.nlp_core.predefined import ConfigMapper
... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/gqcms/MPD.py | import numpy as np
from itertools import combinations
import pandas as pd
import scipy.linalg as sp
import heapq
from . import Hubbard
from gqcms.matrices import Determinant
class MPD:
"""
Will calculate the Maximum probability domains in a given basis set in the Hubbard model.
"""
def __init__(self,... | PypiClean |
/chatglm6bpkg-0.0.1.tar.gz/chatglm6bpkg-0.0.1/ptuning/trainer.py | import contextlib
import functools
import glob
import inspect
import math
import os
import random
import re
import shutil
import sys
import time
import warnings
from collections.abc import Mapping
from distutils.util import strtobool
from pathlib import Path
from typing import TYPE_CHECKING, Any, Callable, Dict, List, ... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/divider.js | module.exports =
/******/ (function (modules) { // webpackBootstrap
/******/ // The module cache
/******/
var installedModules = {};
/******/
/******/ // The require function
/******/
function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in ... | PypiClean |
/Mazes-0.2.1.tar.gz/Mazes-0.2.1/mazes/cli.py | import click
import colorama
import termcolor
import pathlib
import pickle
from mazes import Maze
from mazes.store import MazeIO
class DimensionsParamType(click.ParamType):
name = "dimensions"
def convert(self, value, param, ctx):
try:
w, h = value.split('x')
return int(w), i... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/viewers/matplotlibViewer/matplotlib2DGridContourViewer.py | from __future__ import division
from __future__ import unicode_literals
__docformat__ = 'restructuredtext'
from future.builtins import super
from fipy.tools import numerix
from fipy.viewers.matplotlibViewer.matplotlib2DViewer import AbstractMatplotlib2DViewer
__all__ = ["Matplotlib2DGridContourViewer"]
from future.... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/datatables-rowreorder/js/dataTables.rowReorder.min.js | (function(e){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(f){return e(f,window,document)}):"object"===typeof exports?module.exports=function(f,g){f||(f=window);if(!g||!g.fn.dataTable)g=require("datatables.net")(f,g).$;return e(g,f,f.document)}:e(jQuery,window,document)})(function(e... | PypiClean |
/DataQualityFramework-0.0.7.tar.gz/DataQualityFramework-0.0.7/data_quality_framework/quality/timeliness.py |
# GNU AFFERO GENERAL PUBLIC LICENSE
# Version 3, 19 November 2007
# Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
# ... | PypiClean |
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/doc/sphinx/source/doc/index.rst | .. _doc-index:
########################
Camelot Documentation
########################
This is the reference documentation for developing projects using the Camelot
library. The first time Camelot developer is encouraged to read
:ref:`doc-models` and :ref:`doc-admin`.
The section :ref:`doc-threads` is for develop... | PypiClean |
/BuildChecker-0.1.3.zip/BuildChecker-0.1.3/README.rst | ===============================
BuildChecker
===============================
.. image:: https://img.shields.io/pypi/v/BuildChecker.svg
:target: https://pypi.python.org/pypi/BuildChecker
.. image:: https://img.shields.io/travis/ashwin1992/BuildChecker.svg
:target: https://travis-ci.org/ashwin1992/Buil... | PypiClean |
/Ciw-3.0.0.tar.gz/Ciw-3.0.0/docs/Guides/set_distributions.rst | .. _set-dists:
==========================================
How to Set Arrival & Service Distributions
==========================================
Ciw offeres a variety of inter-arrival and service time distributions.
A full list can be found :ref:`here <refs-dists>`.
They are objects, that are defined in the :code:`Net... | PypiClean |
/AstroScheduller-1.0.3.2210-py3-none-any.whl/astroscheduller/interfaces/get_schedule.py | import tkinter
from tkinter import ttk, messagebox
from tkinter.filedialog import askopenfilename, asksaveasfilename
class get_schedule():
def __init__(self, upper):
self.upper = upper
self.setup_window()
self.setup_widgets()
self.root.mainloop
def setup_window(self):
... | PypiClean |
/EpyNN-1.2.11.tar.gz/EpyNN-1.2.11/epynnlive/dummy_image/train.py | import random
# Related third party imports
import numpy as np
# Local application/library specific imports
import epynn.initialize
from epynn.commons.maths import relu, softmax
from epynn.commons.library import (
configure_directory,
read_model,
)
from epynn.network.models import EpyNN
from epynn.embedding.m... | PypiClean |
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/signals/channel/signal_producer.py | import async_channel.enums as channel_enums
import octobot_commons.logging as logging
import octobot_commons.enums as commons_enums
import octobot_commons.authentication as authentication
import octobot_commons.signals as signals
import octobot_trading.signals.channel.remote_trading_signal as signals_channel
class Re... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/montreal_forced_aligner/command_line/configure.py | import rich_click as click
from montreal_forced_aligner import config
__all__ = ["configure_cli"]
@click.command(
"configure",
help="The configure command is used to set global defaults for MFA so "
"you don't have to set them every time you call an MFA command.",
)
@click.option(
"-p",
"--profi... | PypiClean |
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot/view/controls/standalone_wizard_page.py |
from PyQt4 import QtGui
from PyQt4.QtCore import Qt
from PyQt4.QtGui import QDialog, QFrame, QGridLayout, QLabel, QVBoxLayout, \
QWidget
from camelot.view.model_thread import object_thread
from camelot.core.utils import ugettext_lazy as _
class HSeparator(QFrame):
def __init__(self, parent=None):
su... | PypiClean |
/DuckMapper-1.0.1.tar.gz/DuckMapper-1.0.1/README.md | # DuckMapper
A tiny library to help you to convert classes to DTO and vice versa.
# Usage
### Using the default function
```python
class testClass():
def __init__(self):
self.id = None
self.gender =None
self.github = None
self.name = None
self.password = None
self.p... | PypiClean |
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/docs/2. Create a custom box.md | # Create a custom box
To create a functionnal process box for Muphyn application
Build two files:
- a model description file ;
- a process file.
The two files must have the same basefilename :
- model description file: `myFile`.yaml
- process file: `myFile`.py
- [Create a custom box](#create-a-custom-box)
- [1. ... | PypiClean |
/Assessor-0.2.13.tar.bz2/Assessor-0.2.13/tastypie/api.py | import warnings
from django.conf.urls.defaults import *
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import reverse
from django.http import HttpResponse
from tastypie.exceptions import NotRegistered, BadRequest
from tastypie.serializers import Serializer
from tastypie.utils impo... | PypiClean |
/Couchapp-1.0.2.tar.gz/Couchapp-1.0.2/couchapp/localdoc.py |
from __future__ import with_statement
import base64
import logging
import mimetypes
import os
import os.path
import re
import urlparse
import webbrowser
try:
import desktopcouch
try:
from desktopcouch.application import local_files
except ImportError:
from desktopcouch import local_files
... | PypiClean |
/Complex-API-0.1.0.tar.gz/Complex-API-0.1.0/Complex_API/complex_api.py | import requests
API_URL = "https://API.jagthefriend.repl.co"
GITHUB_REPO = "https://github.com/JagTheFriend/Complex-API"
__version__ = "0.1.0"
__all__ = [
"compile", "reddit", "lyrics",
"ascii", "temp", "length",
"inspire", "calculator", "hex_to_denary"
]
def main() -> str:
return requests.get(f"{AP... | PypiClean |
/Flask-AppBuilder-red-2.1.13.tar.gz/Flask-AppBuilder-red-2.1.13/flask_appbuilder/security/forms.py | from flask_babel import lazy_gettext
from flask_wtf.recaptcha import RecaptchaField
from wtforms import BooleanField, PasswordField, StringField
from wtforms.validators import DataRequired, Email, EqualTo
from ..fieldwidgets import BS3PasswordFieldWidget, BS3TextFieldWidget
from ..forms import DynamicForm
class Logi... | PypiClean |
/DUELink-1.0.1-py3-none-any.whl/DUE/DUEController.py | from DUE.Analog import AnalogController
from DUE.Button import ButtonController
from DUE.Digital import DigitalController
from DUE.Display import DisplayController
from DUE.DistanceSensor import DistanceSensorController
from DUE.Frequency import FrequencyController
from DUE.I2C import I2cController
from DUE.Infrared im... | PypiClean |
/DeerLab-1.1.1.tar.gz/DeerLab-1.1.1/deerlab/fit.py |
import numpy as np
from deerlab.solvers import snlls
from deerlab.fitresult import FitResult
from deerlab.utils import formatted_table, parse_multidatasets
from deerlab.bootstrap_analysis import bootstrap_analysis
from deerlab.classes import UQResult
from sys import stdout
from deerlab.model import Model
from copy im... | PypiClean |
/KPyGithub-1.32a1.tar.gz/KPyGithub-1.32a1/github/Installation.py |
# ########################## Copyrights and license ############################
# #
# Copyright 2017 Jannis Gebauer <ja.geb@me.com> #
# ... | PypiClean |
/EnergySystemModels-0.1.17.post63-py3-none-any.whl/PyqtSimulator/nodes/cooling_coil.py | from PyQt5.QtCore import *
from PyqtSimulator.calc_conf import *
from PyqtSimulator.calc_node_base import *
from NodeEditor.nodeeditor.utils import dumpException
#############les modèles d'un groupe frigorifique#################
from AHU.Coil import CoolingCoil
from AHU.Connect import Air_connect
from AHU.AirPort.Air... | PypiClean |
/HOPP-0.0.5-py3-none-any.whl/tools/optimization/optimizer/CMA_ES_optimizer.py | import math
from typing import (
List,
Optional,
Tuple,
)
# matplotlib.use('tkagg')
import numpy as np
import scipy
from ..data_logging.data_recorder import DataRecorder
from .ask_tell_optimizer import AskTellOptimizer
from .dimension.gaussian_dimension import DimensionInfo, Gaussian
# sys.path.appe... | PypiClean |
/LiftoffTools-0.4.4.tar.gz/LiftoffTools-0.4.4/liftofftools/cli_arguments.py | import argparse
def parse_args(arglist):
parser = argparse.ArgumentParser(description='Compare gene annotations across genome assemblies')
parser.add_argument('subcommand', choices=['clusters', 'variants', 'synteny', 'all'])
parser.add_argument('-r', help='reference fasta', required=True)
parser.add_ar... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/test2/bits/rails/habitual-readers/README | == Welcome to Rails
Rails is a web-application and persistence framework that includes everything
needed to create database-backed web-applications according to the
Model-View-Control pattern of separation. This pattern splits the view (also
called the presentation) into "dumb" templates that are primarily responsible... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Domain/Variables/Leafs/AbstractVariableLeaf.py |
# +---------------------------------------------------------------------------+
# | 01001110 01100101 01110100 01111010 01101111 01100010 |
# | |
# | Netzob : Inferring communication protocols |... | PypiClean |
/EModelRunner-1.1.16.tar.gz/EModelRunner-1.1.16/emodelrunner/load.py |
# Copyright 2020-2022 Blue Brain Project / EPFL
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agree... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/google/protobuf/internal/import_test_package/outer_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
from google.p... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/string_decoder/lib/string_decoder.js |
'use strict';
/*<replacement>*/
var Buffer = require('safe-buffer').Buffer;
/*</replacement>*/
var isEncoding = Buffer.isEncoding || function (encoding) {
encoding = '' + encoding;
switch (encoding && encoding.toLowerCase()) {
case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case... | PypiClean |
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/GetOSNetworkInformationREDFISH.py |
import argparse
import getpass
import json
import logging
import re
import requests
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser = argparse.ArgumentParser(description='Python script using Redfish API to get operating system n... | PypiClean |
/Hikka_TL_New-2.0.4-py3-none-any.whl/hikkatl/events/newmessage.py | import re
from .common import EventBuilder, EventCommon, name_inner_event, _into_id_set
from .. import utils
from ..tl import types
@name_inner_event
class NewMessage(EventBuilder):
"""
Occurs whenever a new text message or a message with media arrives.
Args:
incoming (`bool`, optional):
... | PypiClean |
/GPy_ABCD-1.2.1-py3-none-any.whl/GPy_ABCD/KernelExpressions/change.py | import operator
from GPy_ABCD.KernelExpressions.base import KernelExpression
from GPy_ABCD.KernelExpressions.commutatives import SumKE, ProductKE
from GPy_ABCD.KernelExpansion.kernelOperations import *
from GPy_ABCD.KernelExpansion.kernelInterpretation import *
from GPy_ABCD.Util.genericUtil import update_dict_with
fr... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/policy/fqf.py | from typing import List, Dict, Any, Tuple, Union
import copy
import torch
from ding.torch_utils import Adam, RMSprop, to_device
from ding.rl_utils import fqf_nstep_td_data, fqf_nstep_td_error, fqf_calculate_fraction_loss, \
get_train_sample, get_nstep_return_data
from ding.model import model_wrap
from ding.utils i... | PypiClean |
/Gooey-1.2.0a0.tar.gz/Gooey-1.2.0a0/gooey/examples/issue594.py | import wx
from gooey import Gooey, GooeyParser
# @Gooey
# def main():
# parser = GooeyParser(description="Gooey example")
# parser.add_argument("-a", "--myargument",
# # choices=['one', 'two', 'three'], gooey_options={
# # 'label_color': (255, 100, 100)
# # }... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/tools/specialize/SpecializeC.py | import nuitka.Options
nuitka.Options.is_full_compat = False
# isort:start
import os
import nuitka.specs.BuiltinBytesOperationSpecs
import nuitka.specs.BuiltinDictOperationSpecs
import nuitka.specs.BuiltinStrOperationSpecs
import nuitka.specs.BuiltinUnicodeOperationSpecs
from nuitka.code_generation.BinaryOperationHe... | PypiClean |
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/rlgym_tools/sb3_utils/sb3_multiple_instance_env.py | import multiprocessing as mp
import os
import time
from typing import Optional, List, Union, Any, Callable, Sequence
import numpy as np
from stable_baselines3.common.vec_env import SubprocVecEnv, CloudpickleWrapper, VecEnv
from stable_baselines3.common.vec_env.base_vec_env import (
VecEnvObs,
VecEnvStepReturn,... | PypiClean |
/Helmholtz-0.2.0.tar.gz/Helmholtz-0.2.0/helmholtz/storage/models.py | from django.utils.datastructures import SortedDict
from django.db import models
from helmholtz.core.shortcuts import find_file
class CommunicationProtocol(models.Model):
"""Existing communication protocols."""
name = models.TextField(primary_key=True)
initials = models.CharField(max_length=10)
def... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/services/tasks.py | """Celery tasks for geonode.services"""
import time
import logging
from hashlib import md5
from django.template.defaultfilters import slugify
from . import models
from . import enumerations
from .serviceprocessors import base, get_service_handler
from geonode.celery_app import app
from geonode.layers.models import L... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/interfaces/piezoPiezoconceptZ_mock.py | from lantz import Action, Feat, Driver
from imswitch.imcommon.model import initLogger
class MockPCZPiezo(Driver):
"""Mock driver for the PiezoConcept Z-piezo."""
def __init__(self):
super().__init__()
self.__logger = initLogger(self, tryInheritParent=True)
@Feat(read_once=True)
def ... | PypiClean |
/NEURON-9.0a0-cp311-cp311-macosx_10_15_x86_64.whl/neuron/.data/bin/nrnpyenv.sh |
# eval "`sh nrnpyenv.sh`"
# will set bash environment variables so that nrniv -python has same
# environment as python
# May specify the python executable with explicit first argument.
# Overcome environment issues when --with-nrnpython=dynamic .
# The problems might be an immediate exit due to 'No module named sit... | PypiClean |
/Comet-3.1.0.tar.gz/Comet-3.1.0/comet/utility/voevent.py |
# Python standard library
import re
from datetime import datetime
# XML parsing using lxml
import lxml.etree as ElementTree
from comet import __version__, __url__
import comet.log as log
from comet.utility.xml import xml_document
__all__ = ["parse_ivoid", "broker_test_message"]
ElementTree.register_namespace("voe"... | PypiClean |
/GWlal-0.0.4.tar.gz/GWlal-0.0.4/lal/python/lal/utils/series.py | import numpy
import re
try:
from .. import lal
except ImportError:
raise ImportError("The SWIG-wrappings of LAL cannot be imported.")
from .. import git_version
__author__ = "Duncan Macleod <duncan.macleod@ligo.org>"
__version__ = git_version.id
__date__ = git_version.date
# ---------------------------------... | PypiClean |
/ActiveReign-1.0.5.tar.gz/ActiveReign-1.0.5/README.md | # ActiveReign
<p align="center">
<img src="https://user-images.githubusercontent.com/13889819/62736481-6f7e7880-b9fb-11e9-92d6-47b650fdb84b.png"/>
<br>
<img src="https://img.shields.io/badge/Python-3.7-blue.svg"/>
<img src="https://img.shields.io/badge/License-GPLv3-green.svg">
<a href="https://w... | PypiClean |
/AMAS_sb-1.0.1-py3-none-any.whl/AMAS/recommend_reactions.py |
# recommend_reactions.py
"""
Predicts annotations of reaction(s) using a local XML file
and the reaction ID.
Usage: python recommend_reaction.py files/BIOMD0000000190.xml --cutoff 0.6 --outfile res.csv
"""
import argparse
import os
from os.path import dirname, abspath
import pandas as pd
import sys
sys.path.insert(0... | PypiClean |
/ISYlib-0.1.20150912c.tar.gz/ISYlib-0.1.20150912c/bin/isy_nestset.py | __author__ = "Peter Shipley"
import nest
import sys
import os
from warnings import warn
# import time
import pprint
from optparse import OptionParser
import ISY
from ISY.IsyExceptionClass import IsyValueError, IsyResponseError, IsyPropertyError
uuser=os.getenv('NEST_USER', None)
upass=os.getenv('NEST_PASS', None)... | PypiClean |
/CoAPthon3-1.0.2.tar.gz/CoAPthon3-1.0.2/coapthon/messages/request.py | from coapthon import defines
from coapthon.messages.message import Message
from coapthon.messages.option import Option
__author__ = 'Giacomo Tanganelli'
class Request(Message):
"""
Class to handle the Requests.
"""
def __init__(self):
"""
Initialize a Request message.
"""
... | PypiClean |
/Ciw-3.0.0.tar.gz/Ciw-3.0.0/docs/Background/kendall.rst | .. _kendall-notation:
==================
Kendall's Notation
==================
Kendall's notation is used as shorthand to denote single node queueing systems [WS09]_.
A queue is characterised by:
.. math::
A/B/C/X/Y/Z
where:
+ :math:`A` denotes the distribution of inter-arrival times
+ :math:`B` denotes the ... | PypiClean |
/125softNLP-0.0.1-py3-none-any.whl/pysoftNLP/kashgari/processors/labeling_processor.py |
# author: BrikerMan
# contact: eliyar917@gmail.com
# blog: https://eliyar.biz
# version: 1.0
# license: Apache Licence
# file: corpus.py
# time: 2019-05-17 11:28
import collections
import logging
import operator
from typing import List, Dict, Optional
import numpy as np
from tensorflow.python.keras.preprocessing.se... | PypiClean |
/Dickens-2.1.1.tar.gz/Dickens-2.1.1/README.rst | =======
Dickens
=======
Additional Python decorators implementing the descriptor interface.
Use cases
=========
Like the built-in decorator, ``property``, these classes are initialized by and wrap a function, generally within the context of a class, in order to modify its behavior.
cached property
---------------
... | PypiClean |
/GooeyDev-1.0.8b2.tar.gz/GooeyDev-1.0.8b2/gooey/gui/components/header.py | import wx
from gooey.gui import imageutil, image_repository
from gooey.gui.util import wx_util
from gooey.gui.three_to_four import bitmapFromImage
from gooey.util.functional import getin
from gooey.gui.components.mouse import notifyMouseEvent
PAD_SIZE = 10
class FrameHeader(wx.Panel):
def __init__(self, parent,... | PypiClean |
/0x0-python-0.5.tar.gz/0x0-python-0.5/README.md | ### Здесь есть функции:
- `upload_file_url(url, expires, secret)`: Загрузка файла через ссылку, url=ссылка, expires=время хранения файла в часах(можно оставить пустым), secret=удлинняет ссылку(можно оставить пустым).
- `upload_file_path(path, expires, secret)`: Тоже самое что и upload_file_url, только нужно указывать ... | PypiClean |
/GMMA-1.2.2.tar.gz/GMMA-1.2.2/gamma/_gaussian_mixture.py |
# Author: Wei Xue <xuewei4d@gmail.com>
# Modified by Thierry Guillemot <thierry.guillemot.work@gmail.com>
# License: BSD 3 clause
import numpy as np
from scipy import linalg
from sklearn.utils import check_array
from sklearn.utils.extmath import row_norms
from sklearn.utils.validation import _deprecate_positional_arg... | PypiClean |
/KratosDelaunayMeshingApplication-9.1.3-1-cp37-cp37m-win_amd64.whl/KratosMultiphysics/DelaunayMeshingApplication/domain_utilities.py | from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7
import KratosMultiphysics
import KratosMultiphysics.DelaunayMeshingApplication as KratosDelaunay
class DomainUtilities(object):
#
def __init__(self):
pass
#
d... | PypiClean |
/MTfit-1.0.6a5.tar.gz/MTfit-1.0.6a5/docs/source/run_base.rst | *******************************
Running MTfit
*******************************
There are several ways to run :mod:`MTfit`, and these are described here.
Command Line
===============================
:mod:`MTfit` can be run from the command line. A script should have been installed onto the path during installation and... | PypiClean |
/HalRing_Lib-1.1.0-py3-none-any.whl/halring/jenkins_lib/halring_jenkins.py | import traceback
import jenkins
import requests
import json
from halring.log.halring_logging import LoggingUtil
from time import sleep
from requests import exceptions
class JenkinsUtil(object):
def __init__(self, server_ip, user, password):
self._user = user
self._password = password
self.... | PypiClean |
/OTLModel/Classes/Onderdeel/HSBeveiligingscel.py | from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Classes.ImplementatieElement.AIMNaamObject import AIMNaamObject
from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField
from OTLMOW.OTLModel.Datatypes.DtcDocument import DtcDocument
from OTLMOW.OTLModel.Datatypes.KlHSBeveilig... | PypiClean |
/AI%20%20Education%20Tools-1.9.11.tar.gz/AI Education Tools-1.9.11/src/pet/textbook1/chapter.09.文本数据处理与分析.ipynb | 使用正则表达式做字符串模式验证。如:银行只允许对信用卡使用6位数字做密码,若使用含有非数字或超过或不足6位数字做密码,则显示密码无效。
```
import re
pwd=input('请输入密码(6位数字):')
result = re.match("^\d{6}$",pwd)
print('密码无效!') if result==None else print('密码合法!')
import re
s='''
Select the exam:
(A)GRE (B)TOEFL (C) IELTS (D)PETS
'''
re.findall('\s?\([A-D]\)\s*(\w*)\s?',s)
import re
s=... | PypiClean |
/Mopidy-Tubeify-0.1.0.tar.gz/Mopidy-Tubeify-0.1.0/mopidy_tubeify/spotify.py | import json
from bs4 import BeautifulSoup as bs
from mopidy_tubeify import logger
from mopidy_tubeify.data import find_in_obj
from mopidy_tubeify.serviceclient import ServiceClient
from mopidy_tubeify.yt_matcher import search_and_get_best_match
class Spotify(ServiceClient):
def get_spotify_headers(self, endpoin... | PypiClean |
/GAqap-0.0.1.tar.gz/GAqap-0.0.1/qapGA/GeneticAlgorithm.py | import sys
from GeneratePopulation import Generate_Initial_Population
from Fitness import Cost_Function
from Selection import Selection_Function
from Mutation import Mutation_Function
from Crossover import Crossover_Function
def GeneticAlgorithm(problem_size, population_size, distances, flows, number_of_iterations):
... | PypiClean |
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/personal_data/orders/order_adapter.py | import math
import octobot_trading.constants as constants
import octobot_trading.exchanges as exchanges
import octobot_trading.personal_data as personal_data
from octobot_trading.enums import ExchangeConstantsMarketStatusColumns as Ecmsc
def adapt_price(symbol_market, price):
maximal_price_digits = symbol_market... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/api/api.py |
import json
import time
from django.apps import apps
from django.db.models import Q
from django.conf.urls import url
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from django.urls import reverse
from django.contrib.contenttypes.models import ContentType
from django.conf i... | PypiClean |
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot/core/orm/entity.py | import sys
from sqlalchemy import orm, schema, sql
from sqlalchemy.ext.declarative.api import ( _declarative_constructor,
DeclarativeMeta )
from sqlalchemy.ext import hybrid
from . statements import MUTATORS
from . properties import EntityBuilder, Property
from . import Se... | PypiClean |
/BlockSDK-0.2.5.tar.gz/BlockSDK-0.2.5/README.md | # PYTHON REST API SDK for BlockSDK
[](https://twitter.com/BlockSdk1)
[](https://www.facebook.com/blocksdk)
[:
def __init__(self, name=None):
self.name = name
def makemap(self):
rooms.make_rooms_from_json(self.name)
things.make_things_from_json(self.name)
people.make_people_from_json... | PypiClean |
/GoldSaxEngineInitialize-1.033.zip/GoldSaxEngineInitialize-1.033/README.txt | To install the package, you should be using Python 3.3 and above.(It also works with 2.7).
should have pip installed.
you can git clone from https://github.com/VanceKingSaxbeA/GoldSaxPersist
by git clone https://github.com/VanceKingSaxbeA/GoldSaxPersist.git
This is a dependancy Module to be used with GoldSaxEngine-... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/bill_payment_details_item.py |
from msrest.serialization import Model
class BillPaymentDetailsItem(Model):
"""BillPaymentDetailsItem.
All required parameters must be populated in order to send to Azure.
:param bill_id: Required. Identifier for bill to update <span
class='property-internal'>Required</span> <span
class='prop... | PypiClean |
/3DCORE-1.1.4.tar.gz/3DCORE-1.1.4/py3dcore/models/ttncv2/__init__.py |
import json
import numpy as np
import os
import py3dcore
from py3dcore.model import Toroidal3DCOREModel
from py3dcore.params import Base3DCOREParameters
from py3dcore.models.ttncv2.coordinates import g, f
from py3dcore.models.ttncv2.magfield import h
from py3dcore.models.ttncv2.propagation import p
class TTNCv2(Tor... | PypiClean |
/Inbreeding-0.1.1.3.post2-py3-none-any.whl/inbreeding/MissingYOB.py |
import pandas as pd
import numpy as np
from MultiProcessDivision.divide import divide
import multiprocessing as mp
import functools
import gc
class MissingYOB():
def __init__(self):
pass
def missingYOB(self, animals:pd.DataFrame, data:pd.DataFrame) -> pd.DataFrame:
splitted = divide(animals,... | PypiClean |
/Colbert-0.30.tar.gz/Colbert-0.30/src/scripts/colbert_solder_tva.py |
# Copyright (c) 2012 Stanislas Guerra <stanislas.guerra@gmail.com>
# 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
# notic... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/lang/de.js | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* German language.
*/
/**#@+
@type String
@example
*/
/**
* Constains the dictionary of lan... | PypiClean |
/EventSimpleGUI-0.3.1.tar.gz/EventSimpleGUI-0.3.1/README.md | # Events For SimpleGui
> Status of project: in progress...
<div align="center">


<a href="https://github.com/MikalROn/EventSimpleGUI">
<i... | PypiClean |
/Font-Awesome-Flask-0.1.1.tar.gz/Font-Awesome-Flask-0.1.1/docs/usage.md | # Usage
## Configuration
Font-Awesome-Flask can be configured via the [Flask configuration API](https://flask.palletsprojects.com/en/latest/config/), using the {attr}`config <flask.Flask.config>` attribute of the {class}`Flask <flask.Flask>` object. These are the available configuration values along with their descri... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/uk_driver_deaths.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def uk_driver_deaths(path):
"""Road Casualties in Great Britain 1969–84
`UKDriverDeaths` is a ... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.