id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Nimbus_Splash-1.1.0.tar.gz/Nimbus Splash-1.1.0/nimbus_splash/cli.py | import argparse
from . import job
import subprocess
import os
import re
import xyz_py as xyzp
from . import utils as ut
def gen_job_func(uargs):
'''
Wrapper for CLI gen_job call
Parameters
----------
uargs : argparser object
User arguments
Returns
-------
None
'''
... | PypiClean |
/HybridUI-0.0.1.tar.gz/HybridUI-0.0.1/hybrid/style.py | import json
from dataclasses import dataclass
from typing import List, Dict
from typing import List, TypedDict
class NStyle(TypedDict):
name: str
value: str
styles: List[NStyle]
@dataclass
class Style:
alignContent: str = None
alignItems: str = None
alignSelf: str = None
all: str = None
... | PypiClean |
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/core/tensor/utils.py | import collections
import itertools
from typing import Iterable, Union
import numpy as np
from .. import _config
from .._imperative_rt import make_const
from .._imperative_rt.core2 import (
Const,
Tensor,
_get_convert_inputs,
_set_convert_inputs,
apply,
astensor1d_cpp,
astype_cpp,
conv... | PypiClean |
/LazySearch-1.0rc3.tar.gz/LazySearch-1.0rc3/lazysearch/lazysearch.py | import os
import uuid
import tantivy
import datetime
import diskcache
from collections.abc import MutableMapping
from . import simple_pattern
def flatten_dict(dictionary, parent_key=(), meta={}):
items = []
for key, value in dictionary.items():
if not isinstance(key, str):
if key not in me... | PypiClean |
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/poco/utils/simplerpc/jsonrpc/six.py |
# Copyright (c) 2010-2013 Benjamin Peterson
#
# 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, publ... | PypiClean |
/BGWpy-3.2.2.tar.gz/BGWpy-3.2.2/Documentation/Tutorial/.ipynb_checkpoints/Tutorial_Abinit-checkpoint.ipynb | # Running BerkeleyGW with BGWpy #
In this notebook, we assume that you are somewhat familiar with the BerkeleyGW software: what problem it solves, and what is the general workflow to run it. We also assume that you have a basic knowledge of Python and its terminology.
Before you begin, make sure that you have the f... | PypiClean |
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/docs/first_simple_measurement.md | # Main Window and a First Measurement
This section serves as a small introduction to LabExT, its capabilities and how to use it effieciently. To install
LabExT properly, please follow the installation, see [here](./installation.md).
## Measurements, Instruments and the LabExT workflow
First, we would like to establi... | PypiClean |
/Lespy-0.1.2-py3-none-any.whl/lespy/core/base.py | import typing as t
from lespy.http.request import Request
from lespy.http.response.base import ResponseBase
from lespy.http.response import Response, JSONResponse
from lespy.core.router import Route
from lespy.confs import MIDDLEWARES
from lespy.exceptions import RouteNotFound
class Base:
def __init__(self):
... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/plugins/standard/KivyPlugin.py | from nuitka.Options import isStandaloneMode
from nuitka.plugins.PluginBase import NuitkaPluginBase
class NuitkaPluginKivy(NuitkaPluginBase):
"""This class represents the main logic of the plugin."""
plugin_name = "kivy"
plugin_desc = "Required by 'kivy' package."
@staticmethod
def isAlwaysEnable... | PypiClean |
/MeshPy-2022.1.3.tar.gz/MeshPy-2022.1.3/examples/MESH_README.txt | -------------------------------------------------------------------------------
Mesh licensing
-------------------------------------------------------------------------------
This file summarizes the licenses surrounding data files in this directory.
When using them for research or demonstration purposes, please be mi... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/db/backends/base/introspection.py | from collections import namedtuple
# Structure returned by DatabaseIntrospection.get_table_list()
TableInfo = namedtuple('TableInfo', ['name', 'type'])
# Structure returned by the DB-API cursor.description interface (PEP 249)
FieldInfo = namedtuple('FieldInfo', 'name type_code display_size internal_size precision sca... | PypiClean |
/Dero-0.15.0-py3-none-any.whl/dero/data/compareids/models/steps.py | from itertools import product
from .datasets import DataSubject, DataCombination
from .flowchart import Edge
from .interface import PipelineOptions
class Step:
def __init__(self, data_subject: DataSubject):
self.data_subject = data_subject
self.all_subjects = [data_subject]
self._subgrap... | PypiClean |
/GNN4LP-0.1.0-py3-none-any.whl/src/graph_att_gae/train.py | import scipy.sparse as sp
import numpy as np
import torch
import time
import os
from configparser import ConfigParser
import sys
sys.path.append('/home/shiyan/project/gnn4lp/')
from src.util.load_data import load_data_with_features, load_data_without_features, sparse_to_tuple, mask_test_edges, preprocess_graph
from s... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/ts4.8/buffer.d.ts | declare module 'buffer' {
import { BinaryLike } from 'node:crypto';
import { ReadableStream as WebReadableStream } from 'node:stream/web';
export function isUtf8(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
export function isAscii(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
... | PypiClean |
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/tl/custom/sendergetter.py | import abc
from ... import utils
class SenderGetter(abc.ABC):
"""
Helper base class that introduces the `sender`, `input_sender`
and `sender_id` properties and `get_sender` and `get_input_sender`
methods.
"""
def __init__(self, sender_id=None, *, sender=None, input_sender=None):
self.... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/io/proxy/README | -------------------------------------------------------------------------------
Project Name
-------------------------------------------------------------------------------
Version 0.6
Release date: 01/31/2008
-------------------------------------------------------------------------------
Project state:
experimental
--... | PypiClean |
/D47crunch-2.0.3.tar.gz/D47crunch-2.0.3/changelog.md | # Changelog
## v2.0.3
*Released on 2022-02-27*
### New feature
* `D4xdata.covar_table()` allows exporting the variance-covariance matrix or the correlation matrix for the Δ<sub>4x</sub> values of unknwon samples.
### Changes
* New `hist` keyword to `D4xdata.plot_residuals()`, which adds a histogram of residuals to t... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/shopify_handler/shopify_handler.py | import shopify
from mindsdb.integrations.handlers.shopify_handler.shopify_tables import ProductsTable, CustomersTable, OrdersTable
from mindsdb.integrations.libs.api_handler import APIHandler
from mindsdb.integrations.libs.response import (
HandlerStatusResponse as StatusResponse,
)
from mindsdb.utilities import ... | PypiClean |
/KPyGithub-1.32a1.tar.gz/KPyGithub-1.32a1/github/GitAuthor.py |
# ########################## Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | PypiClean |
/fastapi_jsonapi-2.0.0.tar.gz/fastapi_jsonapi-2.0.0/fastapi_jsonapi/views/view_base.py | import logging
from contextvars import ContextVar
from typing import (
Any,
Dict,
Iterable,
List,
Optional,
Tuple,
Type,
Union,
)
from fastapi import Request
from pydantic.fields import ModelField
from fastapi_jsonapi import QueryStringManager, RoutersJSONAPI
from fastapi_jsonapi.data_... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/zmnam/zmnam_calc.py | import netCDF4
import numpy as np
from scipy import signal
def butter_filter(data, freq, lowcut=None, order=2):
"""Function to perform time filtering."""
if lowcut is not None:
filttype = 'lowpass'
# Sampling determines Nyquist frequency
nyq = 0.5 * freq
if filttype == 'lowpass':
... | PypiClean |
/IcoCube-0.0.1a6.tar.gz/IcoCube-0.0.1a6/ICO3Plugin/ConnectionManager/ICO3IPListenerConnectionManager.py | import socket
from threading import Thread
from ICO3Plugin.ConnectionManager.ICO3ConnectionManager import ICO3ConnectionManager
from ICO3Plugin.ConnectionManager.ICO3IPLink import ICO3IPLink
from ICO3Utilities.Debug.LogDebug import ICO3Log
from ICO3Utilities.Xml.XmlProcess import XmlProcessing
class ICO3IPListenerCo... | PypiClean |
/DatabaseDataGenerator-1.7.0-py3-none-any.whl/DataGenerator/Generators.py | import random
import string
from faker import Faker
from faker_vehicle import VehicleProvider
class Generator:
class GeneratorOutOfItemsException(Exception):
pass
def __init__(self):
pass
def generate(self):
pass
def pickUnique(self, fakerFunction, pickTable):
picks ... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/startup.py |
from builtins import str
__all__ = ['call_on_startup', 'call_on_shutdown',
'reloader_thread', 'webpath',
'start_bonjour', 'stop_bonjour', 'start_server',
'start_turbogears', 'stop_turbogears']
import atexit
import logging
import os
import signal
import sys
from os.path import abspath, exists
import pkg_... | PypiClean |
/7Wonder-RL-Lib-0.1.1.tar.gz/7Wonder-RL-Lib-0.1.1/.github/ISSUE_TEMPLATE/feature_request.md | ---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and con... | PypiClean |
/NREL_sup3r-0.1.0-py3-none-any.whl/sup3r/qa/utilities.py | """Utilities used for QA"""
import numpy as np
from scipy.interpolate import interp1d
import logging
logger = logging.getLogger(__name__)
def tke_frequency_spectrum(u, v, f_range=None):
"""Kinetic Energy Spectrum. Gives the portion of kinetic energy
associated with each frequency.
Parameters
-------... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/math/so3.py | import math
from . import vectorops
from typing import Tuple,Callable
from ..model.typing import Rotation,Matrix3,Vector3
def __str__(R : Rotation) -> str:
"""Converts a rotation to a string."""
return '\n'.join([' '.join([str(ri) for ri in r]) for r in matrix(R)])
def identity() -> Rotation:
"""Returns t... | PypiClean |
/DownloadFTP_Packages-1.0-py3-none-any.whl/DownloadFTP_Packages/FTP_Package.py |
from ftplib import FTP
import tkinter as tk
import os
import sys
# 导入消息对话框子模块
import tkinter.messagebox as tk_box
from threading import Thread
# # 项目
# project_model = "T8520"
#
# # 下载版本
# download_edition = '1.0.0.6'
#
# # 本地存放路径
# local_path = 'D:' + os.sep + '1' + os.sep
# 定义登录窗口
class LoginExecute():
def __... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/scripts/i18n/gen_lang.sh |
##############################################################################
# Variables
##############################################################################
ARG=$1
IMPORT_DIR=$2
##############################################################################
# Function: print_help
# Purpose: Print the scri... | PypiClean |
/FIXation-0.0.4.tar.gz/FIXation-0.0.4/fixation/models.py |
class Entry:
def __init__(self):
self.attrib = {}
class Message(Entry):
def parse_value(self, tag, text):
if tag == 'NotReqXML':
text = bool(int(text))
elif tag == 'ComponentID':
text = int(text)
setattr(self, tag, text)
def pretty_name(self):
... | PypiClean |
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/pages/migrations/south/0013_auto__add_field_page_in_sitemap.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Page.in_sitemap'
db.add_column('pages_page', 'in_sitemap',
self.gf('django.db.models.fields.Bo... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/vtc/main_window.py |
import sys, time, threading
import os, json, traceback
import shutil
import socket
import weakref
import webbrowser
import csv
from decimal import Decimal
import base64
from functools import partial
import PyQt4
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import PyQt4.QtCore as QtCore
import icons_rc
from ... | PypiClean |
/parts/Mouth/Vomit.py | def MouthVomit():
return (
'<path fill-rule="evenodd" clip-rule="evenodd"'
' d="M34.0082 30.3979C35.128 19.9071 38.2345 11.0056 53.9962 11C69.7578 10.9944 72.9169 19.9575 73.9943 30.4952C74.081 31.3433 73.1739 32 72.037 32C65.3505 32 62.6703 30.5048 53.9894 30.5C45.3085 30.4952 40.7568 32 36.0925... | PypiClean |
/Flask-S3-0.3.3.tar.gz/Flask-S3-0.3.3/flask_s3.py | import hashlib
import json
import logging
import os
import re
import gzip
import warnings
try:
from cStringIO import StringIO
except ImportError:
from io import StringIO
import mimetypes
from collections import defaultdict
import boto3
import boto3.exceptions
from botocore.exceptions import ClientError
from ... | PypiClean |
/OBP_reliability_pillar-0.2.0.tar.gz/OBP_reliability_pillar-0.2.0/README.md | # OBP_Reliability_Pillar
OBP_Reliability_Pillar package can be used to get the compliance details of Operational Best Practices for AWS Well Architected Reliability Pillar.
Release Notes:
# v0.0.8
1. Added following compliance checks:
- DbInstanceBackupEnabled
- S3BucketDefaultLockEnabled
- LambdaInsideVpc
... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/colors/color.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
try:
basestring
except NameError:
basestring = str
import colorsys
import re
from compas.colors.html_colors import HTML_TO_RGB255
from compas.data import Data
BASE16 = "0123456789abcdef"
try:
HE... | PypiClean |
/ConfigFramework-4.0.2.tar.gz/ConfigFramework-4.0.2/config_framework/loaders/toml_read_only.py | import tomllib as toml_loader_lib
from functools import partial
from os import PathLike
from pathlib import Path
from typing import Union, Optional, MutableMapping, Any, Callable, Dict
from config_framework.types.abstract import AbstractLoader
class TomlReadOnly(AbstractLoader):
path: Union[PathLike, Path]
e... | PypiClean |
/HydDown-0.16.2.tar.gz/HydDown-0.16.2/scripts/streamlit_app.py |
import streamlit as st
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from PIL import Image
import base64
try:
from hyddown import HydDown
except:
import sys
import os
hyddown_path = os.path.join(os.path.abspath(os.path.dirname(__file__)),"..","src")
sys.... | PypiClean |
/FP-SMC-ALS-test1-0.0.1.tar.gz/FP-SMC-ALS-test1-0.0.1/smc/vpn/policy.py | from smc.base.model import Element, ElementCreator, SubElement, ElementRef
from smc.api.exceptions import (
CreatePolicyFailed,
CreateElementFailed,
PolicyCommandFailed,
ElementNotFound,
)
from smc.base.collection import sub_collection
from smc.vpn.elements import VPNProfile, VPNSite
from smc.base.decor... | PypiClean |
/BEETools-4.4.0.tar.gz/BEETools-4.4.0/src/beetools/beescript.py | import configparser
import os
from pathlib import Path
import shlex
import subprocess
import sys
from termcolor import colored
from beetools.beearchiver import msg_info
from beetools import beeutils, beevenv
_PROJ_DESC = __doc__.split('\n')[0]
_PROJ_PATH = Path(__file__)
_PROJ_NAME = _PROJ_PATH.stem
_PROJ_VERSION = '3... | PypiClean |
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/update_call_request.py | import re # noqa: F401
import sys # noqa: F401
from freeclimb.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,
vali... | PypiClean |
/Flappy-0.3.7.tar.gz/Flappy-0.3.7/samples/parasprites.py |
import flappy
from flappy.display import Sprite, Bitmap, BitmapData, Tilesheet
from flappy.events import Event, MouseEvent
from flappy.geom import Rectangle, Point
import math
import random
from time import time
WIDTH = 1000
HEIGHT = 600
START_PARASPRITES = 5
MAX_PARASPRITES = 1000
class ParaspritesExample(Sprite)... | PypiClean |
/CherryMusic-0.41.3.tar.gz/CherryMusic-0.41.3/res/bootstrap3/js/carousel.js | +function ($) { "use strict";
// CAROUSEL CLASS DEFINITION
// =========================
var Carousel = function (element, options) {
this.$element = $(element)
this.$indicators = this.$element.find('.carousel-indicators')
this.options = options
this.paused =
this.sliding =
... | PypiClean |
/freespeak-0.2.0.tar.gz/freespeak-0.2.0/freespeak/ui/settings.py |
import gtk
from freespeak import utils
import freespeak.ui.utils as uiutils
from freespeak.ui.translation_box import TranslatorCombo
class Settings(gtk.Dialog):
@utils.syncronized
def __init__(self, application):
gtk.Dialog.__init__ (self, _('Preferences'), application.main_window, 0,
... | PypiClean |
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/web/static/dist/plugins/advlist/plugin.min.js | !(function () { var a = {}, b = function (b) { for (var c = a[b], e = c.deps, f = c.defn, g = e.length, h = new Array(g), i = 0; i < g; ++i)h[i] = d(e[i]); var j = f.apply(null, h); if (void 0 === j) throw 'module [' + b + '] returned undefined'; c.instance = j; }, c = function (b, c, d) { if (typeof b !== 'string') th... | PypiClean |
/LAD_SOMPY-1.1-py3-none-any.whl/sompy/visualization/plot_tools2.py | import math
import numpy as np
from matplotlib import cm, pyplot as plt
from matplotlib.collections import RegularPolyCollection
from mpl_toolkits.axes_grid1 import make_axes_locatable
def plot_rect_map(d_matrix, titles=[], colormap=cm.gray, shape=[1, 1], comp_width=5, hex_shrink=1.0, fig=None,
colo... | PypiClean |
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/uix/spinner.py | __all__ = ('Spinner', 'SpinnerOption')
from kivy.compat import string_types
from kivy.factory import Factory
from kivy.properties import ListProperty, ObjectProperty, BooleanProperty
from kivy.uix.button import Button
from kivy.uix.dropdown import DropDown
class SpinnerOption(Button):
'''Special button used in t... | PypiClean |
/Mopidy-Radio-Rough-3.14.15.tar.gz/Mopidy-Radio-Rough-3.14.15/README.rst | ****************************
Radio Rough
****************************
Radio rough is a computer program for listening to internet.
For those who care, it is based on the excellent `Mopidy <https://www.mopidy.com/>`_ framework, written in python 2.7, using tk inter for the front end. It has only been tested on linux ... | PypiClean |
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/person/th_TH/__init__.py | from collections import OrderedDict
from .. import Provider as PersonProvider
class Provider(PersonProvider):
# weights are arbitrarily assigned
formats_female = OrderedDict(
(
("{{first_name_female}} {{last_name}}", 0.97),
("{{prefix_female}}{{first_name_female}} {{last_name}... | PypiClean |
/MonQueue-0.3.3.tar.gz/MonQueue-0.3.3/README.rst | .. image:: https://img.shields.io/travis/rexzhang/monqueue.svg
:target: https://travis-ci.org/rexzhang/monqueue
.. image:: https://img.shields.io/coveralls/rexzhang/monqueue.svg
:target: https://coveralls.io/github/rexzhang/monqueue?branch=master
.. image:: https://img.shields.io/pypi/v/monqueue.svg
:target... | PypiClean |
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/widgets/model/owadaboost.py | from AnyQt.QtCore import Qt
from Orange.base import Learner
from Orange.data import Table
from Orange.modelling import SklAdaBoostLearner, SklTreeLearner
from Orange.widgets import gui
from Orange.widgets.settings import Setting
from Orange.widgets.utils.owlearnerwidget import OWBaseLearner
from Orange.widgets.widget ... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/contenttypes/generic.py | from __future__ import unicode_literals
from collections import defaultdict
from functools import partial
from django.core.exceptions import ObjectDoesNotExist
from django.db import connection
from django.db.models import signals
from django.db import models, router, DEFAULT_DB_ALIAS
from django.db.models.fields.rela... | PypiClean |
/MozPhab-1.4.3-py3-none-any.whl/mozphab/updater.py |
import json
import sys
import time
import urllib.request
from typing import Optional
from setuptools import Distribution
from packaging.version import Version
from pathlib import Path
from pkg_resources import parse_version
from mozphab import environment
from .config import config
from .environment import MOZPHAB... | PypiClean |
/Flask-State-1.1.4.tar.gz/Flask-State-1.1.4/src/flask_state/migrations/versions/b6b1ecfc9524_.py | import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import mysql
from flask_state.conf.config import Config
# revision identifiers, used by Alembic.
revision = "b6b1ecfc9524"
down_revision = "637920a840f7"
branch_labels = None
depends_on = None
def upgrade(engine_name):
if engine_name != Con... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/37721.28b126da78bbc7db9fa3.min.js | (self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[37721],{37721:function(e){var n="[0-9](_*[0-9])*",a=`\\.(${n})`,s="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${n})((${a})|\\.)?|(${a}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${a})[fFd... | PypiClean |
/MikeT_messenger_client-0.4.1.tar.gz/MikeT_messenger_client-0.4.1/client/client/main_window.py | import json
import logging
import base64
from PyQt5.QtWidgets import QMainWindow, qApp, QMessageBox, QApplication, QListView
from PyQt5.QtGui import QStandardItemModel, QStandardItem, QBrush, QColor
from PyQt5.QtCore import pyqtSlot, QEvent, Qt
from Crypto.Cipher import PKCS1_OAEP
from Crypto.PublicKey import RSA
from ... | PypiClean |
/Daarmaan-0.2.2.tar.gz/Daarmaan-0.2.2/docs/build/html/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/94470.f77a609f5da063b460fa.min.js | (self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[94470],{94470:function(e,a,r){!function(e){"use strict";
//! moment.js locale configuration
var a=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,r=/(janv\.?|févr\.?|mars|avr\.?|ma... | PypiClean |
/FFmpyg_DavidRodriguezSoaresCUI-0.0.6.tar.gz/FFmpyg_DavidRodriguezSoaresCUI-0.0.6/src/FFmpyg/ffmpeg_encoder.py | import logging
import re
from pathlib import Path
# import re
from typing import Any, Callable, Dict, List, Optional, Union
import yaml
from DRSlib.cli_ui import choose_from_list, user_input
from DRSlib.utils import assertTrue
from .encoder_spec import (
ffmpeg_supported_encoders,
get_codec_from_encoder,
... | PypiClean |
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Examples/TCP_Systems/HTTP/cookbook_2.py |
import socket
import Axon
from Kamaelia.Chassis.ConnectedServer import SimpleServer
from Kamaelia.Protocol.HTTP.HTTPServer import HTTPServer
from Kamaelia.Protocol.HTTP.Handlers.Minimal import Minimal
import Kamaelia.Protocol.HTTP.ErrorPages as ErrorPages
from Kamaelia.Chassis.Pipeline import Pipeline
homedirectory... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/db/backends/oracle/operations.py | import re
from django.contrib.gis.db import models
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations
from django.contrib.gis.db.backends.oracle.adapter import OracleSpatialAdapter
from django.contrib.gis.db.backends.utils import SpatialOperator
from django.contrib.gis.geos.geometry impor... | PypiClean |
/Djax-0.8.6.tar.gz/Djax-0.8.6/README.rst | Djax
====
**Django / ACE Integration**
Djax integrates the Django web framework with `Axilent
ACE <http://www.axilent.com/products/ace/>`__. ACE is a sophisticated
content targeting system that can be used for product recommendations,
related content, personalization and contextual advertising.
Djax links Django mod... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/postgres/apps.py | from django.apps import AppConfig
from django.core.signals import setting_changed
from django.db import connections
from django.db.backends.postgresql.psycopg_any import RANGE_TYPES
from django.db.backends.signals import connection_created
from django.db.migrations.writer import MigrationWriter
from django.db.models im... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/snow_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 snow_deaths(path):
"""John Snow's Map and Data on the 1854 London Cholera Outbreak
The `Sn... | PypiClean |
/Kahi_openalex_subjects-0.0.2a0-py3-none-any.whl/kahi_openalex_subjects/Kahi_openalex_subjects.py | from kahi.KahiBase import KahiBase
from pymongo import MongoClient, TEXT
from time import time
from joblib import Parallel, delayed
def process_relation(sub, url, db_name):
client = MongoClient(url)
db = client[db_name]
collection = db["subjects"]
relations = []
for rel in sub["related_concepts"]... | PypiClean |
/NeuroTS-3.4.0-py3-none-any.whl/neurots/morphmath/rotation.py |
# Copyright (C) 2021 Blue Brain Project, EPFL
#
# 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 3 of the License, or
# (at your option) any later version.
#
# This program is di... | PypiClean |
/Cantiz-PyChromecast-3.2.2.tar.gz/Cantiz-PyChromecast-3.2.2/pychromecast/cast_channel_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf i... | PypiClean |
/APASVO-0.0.6.tar.gz/APASVO-0.0.6/README.rst | ######
APASVO
######
*A graphical tool to perform event detection/picking in seismic traces.*
**Main Features**
* Three different picking algorithms available: STA-LTA [1]_, AMPA [2]_ and Takanami's autoregressive method [3]_.
* Proper functionality from DSP tools: scrolling, zooming, panning, playbacking...
* Sig... | PypiClean |
/MambuPy-2.0.0b22.tar.gz/MambuPy-2.0.0b22/mambupy/rest/mamburoles.py | from ..mambugeturl import getrolesurl
from .mambustruct import MambuStruct
from .mamburestutils import MambuStructIterator
mod_urlfunc = getrolesurl
class MambuRole(MambuStruct):
"""A Role from Mambu."""
def __init__(self, urlfunc=mod_urlfunc, entid="", *args, **kwargs):
"""Tasks done here:
... | PypiClean |
/dyson-1.1.2.tar.gz/dyson-1.1.2/docs/storing_variables.md | Storing Variables
=================
Storing variables, in short, is a way to store variables returned from specific steps
in order to run validations, or perform other actions upon them.
## Examples
```yaml
---
- goto: url=https://google.com
- get_attribute:
of: name=btnK
attribute: value
store: button_val... | PypiClean |
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/layers/sigmoid_focal_loss.py | import torch
from torch import nn
from torch.autograd import Function
from torch.autograd.function import once_differentiable
from PMTD.maskrcnn_benchmark import _C
# TODO: Use JIT to replace CUDA implementation in the future.
class _SigmoidFocalLoss(Function):
@staticmethod
def forward(ctx, logits, targets, ... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/utils/model_frameworks/haiku.py |
import sys
from flax import serialization
from flax.core import freeze
from .base import ModuleFramework, framework
# expose jax-stax as a flax module
class HaikuWrapper:
def __init__(self, transformed):
self.transformed = transformed
def init(self, rng, *args, **kwargs):
variables = self.... | PypiClean |
/MorningstarAutoTestingFramework-0.1.2.zip/MorningstarAutoTestingFramework-0.1.2/Src/Database/SQLServerHelper.py | import pymssql
class SQLServerHelper:
server = ""
user = ""
password = ""
def __init__(self, server_instance, login_user, login_password):
global server
server = server_instance
global user
user = login_user
global password
password = login_password
... | PypiClean |
/BuildStream-2.0.1-cp39-cp39-manylinux_2_28_x86_64.whl/buildstream/_artifactelement.py |
from typing import TYPE_CHECKING, Optional, Dict
from contextlib import suppress
from . import Element
from . import _cachekey
from ._artifactproject import ArtifactProject
from ._exceptions import ArtifactElementError
from ._loader import LoadElement
from .node import Node
if TYPE_CHECKING:
from ._context impor... | PypiClean |
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/factory_registers.py |
from kivy.factory import Factory
r = Factory.register
r('Animation', module='kivy.animation')
r('AnimationTransition', module='kivy.animation')
r('ExceptionHandler', module='kivy.base')
r('Cache', module='kivy.cache')
r('ClockBase', module='kivy.clock')
r('ColorPicker', module='kivy.uix.colorpicker')
r('ColorWheel', ... | PypiClean |
/Biomatters_Azimuth-0.2.6-py3-none-any.whl/azimuth/corrstats.py | __author__ = 'psinger'
import numpy as np
from scipy.stats import t, norm
from math import atanh, pow
from numpy import tanh
def rz_ci(r, n, conf_level = 0.95):
zr_se = pow(1/(n - 3), .5)
moe = norm.ppf(1 - (1 - conf_level)/float(2)) * zr_se
zu = atanh(r) + moe
zl = atanh(r) - moe
return tanh((zl,... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.6.16.rst | ============================
Djblets 0.6.16 Release Notes
============================
**Release date**: February 26, 2012
djblets.datagrid
================
* Removed an extraneous ``</span>`` in the paginator.
* Fixed a compatibility issue with Django 1.4 in the queries.
djblets.util
============
* Fix parsing... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/utils/Utils.py | import functools
import os
import sys
import time
from contextlib import contextmanager
def getOS():
if os.name == "nt":
return "Windows"
elif os.name == "posix":
result = os.uname()[0]
# Handle msys2 posix nature still meaning it's Windows.
if result.startswith(("MSYS_NT-", "... | PypiClean |
/Neodroid-0.4.9-py36-none-any.whl/neodroid/environments/networking_environment.py | import logging
from neodroid.messaging import ClientEvents, message_client_event
from neodroid.messaging.message_client import MessageClient
from neodroid.utilities.unity_specifications.environment_snapshot import (
EnvironmentSnapshot,
)
__author__ = "Christian Heider Nielsen"
import time
from abc import ABC, a... | PypiClean |
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/ibid/plugins/oeis.py |
from urllib2 import urlopen
import re
import logging
from ibid.compat import defaultdict
from ibid.plugins import Processor, match
from ibid.utils import plural
log = logging.getLogger('plugins.oeis')
features = {'oeis': {
'description': 'Query the Online Encyclopedia of Integer Sequences',
'categories': ('... | PypiClean |
/EpyNN-1.2.11.tar.gz/EpyNN-1.2.11/epynn/convolution/forward.py | import numpy as np
# Local application/library specific imports
from epynn.commons.io import padding
def initialize_forward(layer, A):
"""Forward cache initialization.
:param layer: An instance of convolution layer.
:type layer: :class:`epynn.convolution.models.Convolution`
:param A: Output of forw... | PypiClean |
/MPT5.0.1-0.1.tar.gz/MPT5.0.1-0.1/src/MPT5/Res/Allicons.py |
from wx.lib.embeddedimage import PyEmbeddedImage
accept_button = PyEmbeddedImage(
b'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9i'
b'ZSBJbWFnZVJlYWR5ccllPAAAAmpJREFUeNqkU01oE1EQ/t52E5PNj01BSqlWyLXeWgvGggpF'
b'RAo96c2TImgRKc1B8OLBQ9GmIFVPemlBwYKgFKRQFLyI+bGaUtHYWCzW1ND8NnbT7J/zdp... | PypiClean |
/HolmesIV-2021.9.8a1.tar.gz/HolmesIV-2021.9.8a1/mycroft/skills/fallback_skill.py | import operator
from mycroft.metrics import report_timing, Stopwatch
from mycroft.util.log import LOG
from mycroft.skills.mycroft_skill import MycroftSkill, get_handler_name
class FallbackSkill(MycroftSkill):
"""Fallbacks come into play when no skill matches an Adapt or closely with
a Padatious intent. All... | PypiClean |
/FFC-2017.1.0.tar.gz/FFC-2017.1.0/ffc/quadrature/tabulate_basis.py |
# Copyright (C) 2009-2014 Kristian B. Oelgaard
#
# This file is part of FFC.
#
# FFC is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | PypiClean |
/node_managment_application-0.0.1.tar.gz/node_managment_application-0.0.1/nms_api_script.py |
import urllib.parse
import requests
from nms_project_settings.settings import IP_ADD
def post_request(path, app_key, body_json):
headers = {
"Authorization": app_key}
response = requests.post(urllib.parse.urljoin(API_URL, path), params=body_json, headers=headers)
return response
def get_reques... | PypiClean |
/NeuroUnits-0.1.2.tar.gz/NeuroUnits-0.1.2/src/neurounits/visitors/common/ast_replace_node.py |
# -------------------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# - Redistributions of sourc... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ru-by.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/CTBN-0.0.1-py3-none-any.whl/ctbn/ctbn.py | import numpy as np
from copy import deepcopy
from .parameter_learning_models import LRModel
from .graph_preliminaries import DirectedGraph
from .msa import ChuLiuEdmonds
from .inference import JunctionTreeAlgorithm
PARAMETER_STATEGIES = {
"lr":LRModel
}
class Utils:
@staticmethod
def get_column_vec... | PypiClean |
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/esmvalcore/esgf/_search.py | import itertools
import logging
from functools import lru_cache
import pyesgf.search
import requests.exceptions
from ..config._esgf_pyclient import get_esgf_config
from ..local import (
_get_start_end_date,
_parse_period,
_replace_years_with_timerange,
_truncate_dates,
)
from ._download import ESGFFil... | PypiClean |
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct57.py | pairs="""
8 79
132 124
126 134
61 149
49 142
48 36
10 159
136 104
110 3
28 18
29 3
41 149
20 140
67 72
28 136
34 68
139 81
152 71
20 12
131 133
104 49
72 14
109 53
152 133
37 73
86 121
13 133
134 145
108 55
106 54
147 127
135 151
32 153
21 45
85 132
8 55
86 137
92 48
41 112
126 14
69 9
159 142
109 47
83 94
86 96
17 58
... | PypiClean |
/LightZero-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/zoo/board_games/tictactoe/config/tictactoe_muzero_bot_mode_config.py | from easydict import EasyDict
# ==============================================================
# begin of the most frequently changed config specified by the user
# ==============================================================
collector_env_num = 8
n_episode = 8
evaluator_env_num = 5
num_simulations = 25
update_per_c... | PypiClean |
/GraphForm-0.1.1.tar.gz/GraphForm-0.1.1/graphform.py | from logging import getLogger, basicConfig, INFO, DEBUG
import sys
from p5 import *
import itertools as it
import sys
import numpy as np
import networkx as nx
from attrdict import AttrDict
from PIL.ImageFont import truetype
__version__ = "0.1.1"
class Interaction:
def __init__(self, forcefunc):
self.func ... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/nvdlg.py | import wx
MARGIN = 4
class SimpleNameValueDialog(wx.Dialog):
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE,
fields=[], initialValues=None,
captionTitle="", captionDescr=""):
wx.Dia... | PypiClean |
/ADPYNE-207-0.1.4.tar.gz/ADPYNE-207-0.1.4/ADPYNE/elemFunctions.py | import warnings
import numpy as np
from ADPYNE.AutoDiff import AutoDiff
from ADPYNE.Dual import Dual
#-------------------BASE TRIG FUNCTIONS-------------------#
# Sine function
def sin(x):
''' Compute the sine of an AutoDiff object and its derivative.
Compute the sine of Dual Number
INPUTS
======
x: an AutoDi... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/locale/lang/lt.js | 'use strict';
exports.__esModule = true;
exports.default = {
el: {
colorpicker: {
confirm: 'OK',
clear: 'Valyti'
},
datepicker: {
now: 'Dabar',
today: 'Šiandien',
cancel: 'Atšaukti',
clear: 'Valyti',
confirm... | PypiClean |
/AuthKit-0.4.5.tar.gz/AuthKit-0.4.5/authkit/authenticate/multi.py | from paste.auth import multi
import logging
log = logging.getLogger('authkit.authenticate.multi')
class MultiHandler(multi.MultiHandler):
def __init__(self, application):
multi.MultiHandler.__init__(self, application)
self.checker = []
def add_checker(self, name, checker):
self.check... | PypiClean |
/DjAIoT-23.6.21.1.tar.gz/DjAIoT-23.6.21.1/src/djaiot/device_data/forms/forms.py | from django.contrib.admin import site
from django.contrib.admin.widgets import RelatedFieldWidgetWrapper
from django.forms import ModelChoiceField, ModelMultipleChoiceField
from django_admin_hstore_widget.widgets import HStoreFormWidget
from django_json_widget.widgets import JSONEditorWidget
from dal.autocomplete i... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/reading_import_profile_response_py3.py |
from msrest.serialization import Model
class ReadingImportProfileResponse(Model):
"""ReadingImportProfileResponse.
:param profile_id: The profile Identifier
:type profile_id: int
:param profile_code: The profile code
:type profile_code: str
:param created_by:
:type created_by: ~energycap... | PypiClean |
/NESTML-5.3.0-py3-none-any.whl/pynestml/transformers/synapse_post_neuron_transformer.py |
from __future__ import annotations
from typing import Any, Sequence, Mapping, Optional, Union
from pynestml.frontend.frontend_configuration import FrontendConfiguration
from pynestml.meta_model.ast_equations_block import ASTEquationsBlock
from pynestml.meta_model.ast_inline_expression import ASTInlineExpression
from... | PypiClean |
/EnergySystemModels-0.1.17.post63-py3-none-any.whl/NodeEditor/nodeeditor/node_graphics_node.py | from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
class QDMGraphicsNode(QGraphicsItem):
"""Class describing Graphics representation of :class:`~nodeeditor.node_node.Node`"""
def __init__(self, node:'Node', parent:QWidget=None):
"""
:param node: reference to :cl... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.