id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/NeuroDynamics-0.1.1.tar.gz/NeuroDynamics-0.1.1/brainpy/core_system/synapses.py |
import re
from .base_objects import BaseEnsemble
from .base_objects import BaseType
from .base_objects import ModelDefError
from .base_objects import ModelUseError
from .constants import _SYN_CONN
from .neurons import NeuGroup
from .types import SynState
from .. import numpy as np
from .. import profile
from .. impor... | PypiClean |
/FSMakeROI-1.2.tar.gz/FSMakeROI-1.2/README.md | # FSMakeROI
A CLI tool to convert Freesurfer segmentations into separate NifTi
files
## Installation
Install this package using `pip` with:
```
pip install fsmakeroi
```
## Usage
The command context for running this tool is:
```
fsmakeroi [OPTIONS] aseg rois
```
Where `aseg` is the path to aparc+aseg.mgz file, and... | PypiClean |
/Bempp-cl-0.3.1.tar.gz/Bempp-cl-0.3.1/bempp/api/space/scalar_spaces.py |
from bempp.helpers import timeit as _timeit
import numpy as _np
import numba as _numba
from bempp.api import log
@_timeit
def p0_discontinuous_function_space(
grid,
support_elements=None,
segments=None,
swapped_normals=None,
include_boundary_dofs=None,
truncate_at_segment_edge=None,
):
"... | PypiClean |
/parts/Top/Hairs/StraightStrand.py | def StraightStrand(color):
return (
'<path fill-rule="evenodd" clip-rule="evenodd"'
' d="M133 18C92.1309 18 59 51.1309 59 92V108.838V188C59 196.558 60.4527 204.777 63.125 212.423C74.9236 203.973 89.381 199 105 199H109V180.611C91.4692 172.283 78.9518 155.115 77.2086 134.867C71.4309 134.002 67 129.... | PypiClean |
/LibRecommender-limited-0.6.6.6.tar.gz/LibRecommender-limited-0.6.6.6/serving/flask/vector/vector_deploy.py | import ast
from itertools import islice
import json
from flask import Flask, jsonify, request
import faiss
import numpy as np
import redis
from serving.flask import colorize
app = Flask(__name__)
def get_item_vector_from_redis(name):
item_vector_from_redis = r.hgetall(name)
length = len(item_vector_from_red... | PypiClean |
/0x_contract_wrappers-2.0.0-py3-none-any.whl/zero_ex/contract_wrappers/coordinator/__init__.py |
# pylint: disable=too-many-arguments
import json
from typing import ( # pylint: disable=unused-import
Any,
List,
Optional,
Tuple,
Union,
)
from eth_utils import to_checksum_address
from mypy_extensions import TypedDict # pylint: disable=unused-import
from hexbytes import HexBytes
from web3 impo... | PypiClean |
/AutoTransform-1.1.1a8-py3-none-any.whl/autotransform/repo/github.py |
# @black_format
"""The implementation for the GithubRepo."""
from __future__ import annotations
import json
from copy import deepcopy
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Mapping, Optional, Sequence
import autotransform.schema
from autotransform.batcher.base import Batch
from autotransform.... | PypiClean |
/DoorPi-2.4.1.8.tar.gz/DoorPi-2.4.1.8/doorpi/keyboard/AbstractBaseClass.py |
import logging
logger = logging.getLogger(__name__)
logger.debug("%s loaded", __name__)
import doorpi
from doorpi.action.base import SingleAction
HIGH_LEVEL = ['1', 'high', 'on', 'true']
LOW_LEVEL = ['0', 'low', 'off', 'false']
class KeyboardDestroyAction(SingleAction): pass
class KeyboardAbstractBaseClass(object)... | PypiClean |
/NagParser-0.0.31.tar.gz/NagParser-0.0.31/README.rst | NagParser
****************
This project lives at https://github.com/zebpalmer/NagParser
Documentation for it can be found at http://nagparser.readthedocs.org/
These scripts were a small subset of a larger project and were originally written to parse Nagios status data and
integrate it into a real time Operations Dash... | PypiClean |
/Gato-1.2.7.tar.gz/Gato-1.2.7/svgs/js/util.js | function do_interval(func, speed_ms) {
/* Given speed in ms and a function to execute this
is the same as setInterval(), but it is more accurate
*/
var start = (new Date()).getTime();
var steps = 0;
function instance()
{
if (g.animation.state !== 'animating') {
ret... | PypiClean |
/KGraber-1.1.tar.gz/KGraber-1.1/README.md | # KGraber
**这是一个用来从网页版全民K歌抓取用户自己作品并下载到本地的脚本**
---
Author: wangzhizhou(Joker)
Email: 824219521@qq.com
---
# Python 方式
如果你对python比较熟悉,可以`clone`源码后,使用可编辑源码的方式安装该包,如下命令
```
$ pip install -e .
```
## 使用
```
$ KGraber
```
- 要使用`全民K歌`手机App内置的二维码扫码功能
- 脚本创建名为`songs`的目录保存已下载的用户歌曲
# 下载预编译二进制运行
下载对应平台的可执行文件后... | PypiClean |
/Appium-Python-Client-2.11.1.tar.gz/Appium-Python-Client-2.11.1/docs/_build/html/searchindex.js | Search.setIndex({docnames:["appium","appium.common","appium.webdriver","appium.webdriver.common","appium.webdriver.extensions","appium.webdriver.extensions.android","appium.webdriver.extensions.search_context","index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.dom... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/udf_create.py |
from msrest.serialization import Model
class UDFCreate(Model):
"""UDFCreate.
All required parameters must be populated in order to send to Azure.
:param udf_type: Required. The UDF type. Possible value include: "Vendor",
"Place", "Account", "Meter", "ChannelVersion", "Rate", and "Bill" <span
... | PypiClean |
/OPTALG-1.1.8rc1.tar.gz/OPTALG-1.1.8rc1/optalg/opt_solver/problem.py |
import numpy as np
from types import MethodType
from scipy.sparse import eye, bmat, triu, coo_matrix
class OptProblem(object):
"""
Class for representing general optimization problems.
"""
# Properties
PROP_CURV_LINEAR = 'linear'
PROP_CURV_QUADRATIC = 'quadratic'
PROP_CURV_NONLINEAR = 'no... | PypiClean |
/NovalIDE-1.1.8-py3-none-any.whl/NovalIDE-1.1.8.dist-info/LICENSE.md | GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. {http://fsf.org/}
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Genera... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/dense_heads/deformable_detr_head.py | import copy
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import Linear, bias_init_with_prob, constant_init
from mmcv.runner import force_fp32
from mmdet.core import multi_apply
from mmdet.models.utils.transformer import inverse_sigmoid
from ..builder import HEADS
from .detr_head im... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/readable-stream/CONTRIBUTING.md | # Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
* (a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
* (b) The contribution is based upon previous work that, to the ... | PypiClean |
/BenchExec-3.17.tar.gz/BenchExec-3.17/contrib/plots/quantile-generator.py |
# This file is part of BenchExec, a framework for reliable benchmarking:
# https://github.com/sosy-lab/benchexec
#
# SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0
import argparse
import itertools
import sys
from benchexec import result, tablegenerator... | PypiClean |
/FlaskFarm-4.0.104-py3-none-any.whl/flaskfarm/lib/framework/init_declare.py | import os
from functools import wraps
from flask import abort, request
def check_api(original_function):
@wraps(original_function)
def wrapper_function(*args, **kwargs): #1
from framework import F
#logger.debug('CHECK API... {} '.format(original_function.__module__))
#logger.warning... | PypiClean |
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/models/ssd_mobilenet_v2_fpn_keras_feature_extractor.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from six.moves import range
import tensorflow.compat.v1 as tf
from object_detection.meta_architectures import ssd_meta_arch
from object_detection.models import feature_map_generators
from object_detection.mode... | PypiClean |
/Menu-3.2.2.tar.gz/Menu-3.2.2/README.md | # Menu
Easily create command-line menus.
## Install
pip install Menu
**Note:** Use with Python 2 requires the [future](https://pypi.org/project/future/) package to be installed.
## Create the Menu
The Menu constructor arguments are all optional. The arguments are options, title, message, prompt, and refresh. ... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/dgram.d.ts | declare module 'dgram' {
import { AddressInfo } from 'node:net';
import * as dns from 'node:dns';
import { EventEmitter, Abortable } from 'node:events';
interface RemoteInfo {
address: string;
family: 'IPv4' | 'IPv6';
port: number;
size: number;
}
interface BindOp... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/jquery.pwi/js/jquery.pwi-min.js | (function ($) {
var elem, opts = {};
$.fn.pwi = function (opts) {
var $self, settings = {};
opts = $.extend({}, $.fn.pwi.defaults, opts);
elem = this;
function _initialize() {
settings = opts;
ts = new Date().getTime();
settings.id = ts;
... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/necks/nasfcos_fpn.py | import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import ConvModule, caffe2_xavier_init
from mmcv.ops.merge_cells import ConcatCell
from mmcv.runner import BaseModule
from ..builder import NECKS
@NECKS.register_module()
class NASFCOS_FPN(BaseModule):
"""FPN structure in NASFPN.
Implementat... | PypiClean |
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/mode/cobol/cobol.js | CodeMirror.defineMode("cobol", function () {
var BUILTIN = "builtin", COMMENT = "comment", STRING = "string",
ATOM = "atom", NUMBER = "number", KEYWORD = "keyword", MODTAG = "header",
COBOLLINENUM = "def", PERIOD = "link";
function makeKeywords(str) {
var obj = {}, words = str.split(" ");
for (v... | PypiClean |
/Hikka_TL_New-2.0.4-py3-none-any.whl/hikkatl/tl/custom/participantpermissions.py | from .. import types
def _admin_prop(field_name, doc):
"""
Helper method to build properties that return `True` if the user is an
administrator of a normal chat, or otherwise return `True` if the user
has a specific permission being an admin of a channel.
"""
def fget(self):
if not sel... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/en-gb.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['en-gb']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"... | PypiClean |
/Bashkort_messenger-0.0.1-py3-none-any.whl/common/utils.py | import sys
import json
import logging
import traceback
from common.variables import MAX_PACKAGE_LENGTH, ENCODING
"""Простейший декоратор-класс"""
class Log:
"""Класс-декоратор"""
def __call__(self, func):
def decorated(*args, **kwargs):
"""Обертка"""
res = func(*args, **kwarg... | PypiClean |
/BCPy2000-1.6.tar.gz/BCPy2000-1.6/src/SigTools/Plotting.py | __all__ = [
'plot', 'plotsig',
'imagesc', 'scatterplot', 'scatcmp', 'stem',
'colorbar', 'rmcolorbar',
'make_cmap', 'complement_cmap', 'reverse_cmap', 'show_cmaps',
'subplots',
'curve',
'cax',
'superimpose', 'look', 'hotfig',
]
import numpy
from .Basic import getfs,fft2ap,fft
from .NumTools import isnumpyarray... | PypiClean |
/NREL_reVX-0.3.53-py3-none-any.whl/reVX/offshore/dist_to_ports.py | from concurrent.futures import as_completed
import geopandas as gpd
import logging
import numpy as np
import os
import pandas as pd
from scipy.spatial import cKDTree
from skimage.graph import MCP_Geometric
import time
from warnings import warn
from reV.handlers.exclusions import ExclusionLayers
from reVX.utilities imp... | PypiClean |
/Jobber-0.1.4.tar.gz/Jobber-0.1.4/docs/Jobber.rst | Jobber package
==============
Submodules
----------
Jobber.Connection module
------------------------
.. automodule:: Jobber.Connection
:members:
:undoc-members:
:show-inheritance:
Jobber.DRMAAJobExecuter module
------------------------------
.. automodule:: Jobber.DRMAAJobExecuter
:members:
:u... | PypiClean |
/Flask-SAResource-0.1.1.tar.gz/Flask-SAResource-0.1.1/flask_saresource/resource.py | from flask.ext.restful import reqparse
from flask.ext.restful import abort
from flask.ext.restful import Resource
from flask.ext.restful import fields
from flask.ext.restful import marshal_with
from sqlalchemy import inspect
PYTHON_RESTFUL_MAP = {
'int': fields.Integer,
'str': fields.String,
'bool': field... | PypiClean |
/MeUtils-2023.8.29.13.9.44-py3-none-any.whl/meutils/plot_utils/plot_utils.py |
from meutils.pipe import *
import seaborn as sns
sns.set(style="darkgrid") # darkgrid, whitegrid, dark, white,和ticks
sns.set_context('paper')
# sns.plotting_context()
# sns.axes_style()
# plt.style.use('ggplot')
# plt.style.use('seaborn')
def plot_cum_cr(s: pd.Series, bin_wide=100, bins=12, name=None):
"""Con... | PypiClean |
/EIVideo-0.1a0.tar.gz/EIVideo-0.1a0/paddlevideo/utils/logger.py |
import logging
import os
import sys
import datetime
from paddle.distributed import ParallelEnv
Color = {
'RED': '\033[31m',
'HEADER': '\033[35m', # deep purple
'PURPLE': '\033[95m', # purple
'OKBLUE': '\033[94m',
'OKGREEN': '\033[92m',
'WARNING': '\033[93m',
'FAIL': '\033[91m',
'E... | PypiClean |
/OERPLib_py3-0.8.6-py3-none-any.whl/oerplib/tools/__init__.py | import collections
import re
MATCH_VERSION = re.compile(r'[^\d.]')
class Config(collections.MutableMapping):
"""Class which manage the configuration of an
:class:`OERP <oerplib.OERP>` instance.
.. note::
This class have to be used through the :attr:`oerplib.OERP.config`
property.
>>... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/other_savings_response.py |
from msrest.serialization import Model
class OtherSavingsResponse(Model):
"""OtherSavingsResponse.
:param other_savings_id: Other savings identifier
:type other_savings_id: int
:param frequency: Other savings frequency
Possible values are: one-time, continuous, and recurring
:type frequency... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/x-pseudo.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/GelReportModels-7.8.0.tar.gz/GelReportModels-7.8.0/protocols/cva_1_3_1.py | from protocols.protocol import ProtocolElement
from protocols.protocol import SearchRequest
from protocols.protocol import SearchResponse
from protocols.protocol import avro_parse
import avro.schema
version = '1.3.1'
class ACMGClassification(object):
"""
No documentation
"""
pathogenic_variant = "pa... | PypiClean |
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-grid/README.md |
ag-Grid
==============
#### Install with Bower
```sh
$ bower install ag-grid
```
#### Install with Npm
```sh
$ npm install angular-grid
```
See the [www.angulargrid.com](http://www.angulargrid.com) for overview and documentation.
Building
==============
To build:
- `npm install`
- `npm install gulp -g`
- `bower ... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/enquiry/views.py | from __future__ import unicode_literals
from django.conf import settings
from django.http import HttpResponseRedirect
from django.conf import settings
from django.contrib import messages
from django.db.models.query import QuerySet
from cubane.views import ModelView
from cubane.backend.views import BackendSection
from c... | PypiClean |
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/rl/environments/twoplayergames/tasks/gomokutask.py | __author__ = 'Tom Schaul, tom@idsia.ch'
from inspect import isclass
from pybrain.utilities import Named
from pybrain.rl.environments.twoplayergames import GomokuGame
from pybrain.rl.environments.twoplayergames.gomokuplayers import RandomGomokuPlayer, ModuleDecidingPlayer
from pybrain.rl.environments.twoplayergames.g... | PypiClean |
/CORS-Analyzer-1.0.9.tar.gz/CORS-Analyzer-1.0.9/lib/cors.py |
#Required libraries for this Project
import sys
from requests import get
import os
from colorama import Fore
import getpass
#This variable is used to store the OS username
username = getpass.getuser()
#This function will holds the banner of the project
def banner():
text = '''
++++++++++++++++++++++++++++++++++++... | PypiClean |
/GelReportModels-7.8.0.tar.gz/GelReportModels-7.8.0/protocols/migration/migration_reports_600_to_reports_500.py | import logging
from protocols import reports_6_0_0
from protocols import reports_5_0_0
from protocols.migration.base_migration import BaseMigrateReports500And600
from protocols.reports_6_0_0 import diseaseType, TissueSource
class MigrateReports600To500(BaseMigrateReports500And600):
old_model = reports_6_0_0
... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/voucher.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 voucher(path):
"""voucher
Data loads lazily. Type data(voucher) into the console.
A dat... | PypiClean |
/Divisi-0.6.10.tar.gz/Divisi-0.6.10/csc/divisi/semantic_network.py | from collections import defaultdict
import copy
class SemanticNetwork(object):
'''
This class represents a directed graph with typed edges. Vertices
are represented by hashable objects, and edges are (source vertex,
target vertex, <type>) tuples. There can be many different edges
with the same type... | PypiClean |
/ConceptNet-5.7.0.tar.gz/ConceptNet-5.7.0/conceptnet5/vectors/miniaturize.py | import numpy as np
import pandas as pd
import wordfreq
from conceptnet5.languages import CORE_LANGUAGES
from conceptnet5.uri import split_uri
from .debias import de_bias_frame
def term_freq(term):
"""
Get an estimate of the frequency of this term from the 'wordfreq' library.
When miniaturizing, we use t... | PypiClean |
/Henson-2.2.0.tar.gz/Henson-2.2.0/henson/base.py |
import asyncio
import queue as sync_queue
from contextlib import suppress
from copy import deepcopy
import logging
import sys
import traceback
from .config import Config
from .exceptions import Abort
__all__ = ('Application',)
class Application:
"""A service application.
Each message received from the con... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/charting/plot2d/Candlesticks.js | if(!dojo._hasResource["dojox.charting.plot2d.Candlesticks"]){
dojo._hasResource["dojox.charting.plot2d.Candlesticks"]=true;
dojo.provide("dojox.charting.plot2d.Candlesticks");
dojo.require("dojox.charting.plot2d.common");
dojo.require("dojox.charting.plot2d.Base");
dojo.require("dojox.lang.utils");
dojo.require("dojox.... | PypiClean |
/EazyML-0.1.2.tar.gz/EazyML-0.1.2/README.md | # EazyML
A python library for building, training, and testing simple machine learning models.
### Installation
```
pip install EazyML
```
### Get started
Build and test a simple logistic regression model
```Python
from EazyML import *
# Instantiate a Model object
model = Model()
#Add a sigmoid layer to the model w... | PypiClean |
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot/model/memento.py | import datetime
from sqlalchemy import schema, orm
from sqlalchemy.types import Unicode, Integer, DateTime, PickleType
from camelot.admin.entity_admin import EntityAdmin
from camelot.admin.object_admin import ObjectAdmin
from camelot.admin.not_editable_admin import not_editable_admin
from camelot.core.orm import Enti... | PypiClean |
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/modules/decoders/rnn_decoder_base.py | import sys
from typing import Optional, Tuple, TypeVar
import torch
from torch import nn
from BIT_DL.pytorch.core import layers
from BIT_DL.pytorch.core.cell_wrappers import RNNCellBase
from BIT_DL.pytorch.modules.decoders import decoder_helpers
from BIT_DL.pytorch.modules.decoders.decoder_base import (
DecoderBa... | PypiClean |
/FastWARC-0.14.5-cp39-cp39-macosx_10_9_x86_64.whl/fastwarc/cli.py |
import getpass
import importlib
from itertools import chain
import json
import os
import sys
import time
import urllib.request
import click
from tqdm import tqdm
from fastwarc.stream_io import FileStream, StreamError, FastWARCError, PythonIOStreamAdapter
from fastwarc.warc import ArchiveIterator, WarcRecordType
from... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/lang/sl.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['sl']={"editor":"Urejevalnik obogatenega besedila","editorPanel":"Plošča urejevalnika obogatenega besedila","common":{"editorHelp":"Pritisnite ALT 0 za pomoč","b... | PypiClean |
/DobbyStockSimulation-0.1.1.tar.gz/DobbyStockSimulation-0.1.1/Test_endgame.py |
# In[26]:
import unittest
from sub_package.endgame import *
# In[31]:
class Testendgame(unittest.TestCase): # test class
@classmethod
def setUpClass(cls):
print('setupClass')
def setUp(self):
print('Set up')
def tearDown(self):
print('Tear Down')
... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/webcomponentsjs/CustomElements.js | if (typeof WeakMap === "undefined") {
(function() {
var defineProperty = Object.defineProperty;
var counter = Date.now() % 1e9;
var WeakMap = function() {
this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__");
};
WeakMap.prototype = {
set: function(key, value) {
... | PypiClean |
/APIMATIC%20Caculator-1.0.tar.gz/APIMATIC Caculator-1.0/apimaticcalculator/http/http_request.py | from apimaticcalculator.api_helper import APIHelper
class HttpRequest(object):
"""Information about an HTTP Request including its method, headers,
parameters, URL, and Basic Auth details
Attributes:
http_method (HttpMethodEnum): The HTTP Method that this request should
perform wh... | PypiClean |
/OT_Analysis-0.1.3.tar.gz/OT_Analysis-0.1.3/ot_analysis/controller/controller.py | import logging
import traceback
from os import sep
from pathlib import Path
import argparse
from shutil import copy
from time import time
from datetime import datetime
import re
from math import ceil, floor
import pandas as pd
import numpy as np
from math import isclose
from pandas.core.tools.numeric import to_numeric
... | PypiClean |
/ExpdFtpService-0.9.0.tar.gz/ExpdFtpService-0.9.0/README.md | # ExpdFtpConn
Python wrapper library for upload & download file on Expeditros Ftp Server.
How to install:
pip install ExpdFtpService
How to use with download methods:
from ExpdFtpService import ExpdDownloadFtpServerFile
ExpdDownloadFtpServerFile(hostname, username, password, destfolder, savefolder, f... | PypiClean |
/ClueReleaseManager-0.3.3.tar.gz/ClueReleaseManager-0.3.3/ez_setup.py | import sys
DEFAULT_VERSION = "0.6c9"
DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
md5_data = {
'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca',
'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb',
'setuptools-0.6b2-py2.3.egg': '5657759... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/code_generation/LoaderCodes.py | import sys
from nuitka import Options
from nuitka.ModuleRegistry import (
getDoneModules,
getUncompiledModules,
getUncompiledTechnicalModules,
)
from nuitka.plugins.Plugins import Plugins
from nuitka.PythonVersions import python_version
from nuitka.Tracing import inclusion_logger
from nuitka.utils.CStrings... | PypiClean |
/NESTML-5.3.0-py3-none-any.whl/NESTML-5.3.0.data/data/doc/models_library/wb_cond_exp.rst | wb_cond_exp
###########
wb_cond_exp - Wang-Buzsaki model
Description
+++++++++++
wb_cond_exp is an implementation of a modified Hodkin-Huxley model.
(1) Post-synaptic currents: Incoming spike events induce a post-synaptic change
of conductance modeled by an exponential function.
(2) Spike Detection: Spike det... | PypiClean |
/Flask-Express-0.1.4.tar.gz/Flask-Express-0.1.4/flask_express/_helper.py | from inspect import (
signature,
iscoroutinefunction as is_async_func
)
from functools import wraps
from .response import Response
from flask.globals import request
from flask.helpers import _prepare_send_file_kwargs
from werkzeug.exceptions import NotFound
from werkzeug.security import safe_join
from werk... | PypiClean |
/Chiplotle-0.4.1.tar.gz/Chiplotle-0.4.1/chiplotle/core/cfg/write_config_file.py | import time
def write_config_file(path):
## write file...
f = open(path, 'w')
## set preamble...
preamble = '# -*- coding: utf-8 -*-\n'
preamble += '## \n'
preamble += '## Chiplotle configuration file.\n'
preamble += '## Created by Chiplotle on %s.\n' % time.strftime("%d %B %Y %H:%M:%S")
pre... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/cldr/nls/fi/gregorian.js | ({"months-format-narrow":["T","H","M","H","T","K","H","E","S","L","M","J"],"quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"viikonpäivä","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"EEE d.M.yyyy","dateFormatItem-MMMEd":"E d. MMM","eraNarrow":["eKr.","jKr."],"dateFormat-long":"d. MMMM y","months-f... | PypiClean |
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/directory/invitations/invitation.py | from office365.directory.invitations.message_info import InvitedUserMessageInfo
from office365.directory.users.user import User
from office365.entity import Entity
from office365.runtime.paths.resource_path import ResourcePath
class Invitation(Entity):
"""Represents an invitation that is used to add external user... | PypiClean |
/Dulcinea-0.11.tar.gz/Dulcinea-0.11/lib/code_util.py | from cStringIO import StringIO
from compiler import pycodegen, misc, syntax
from compiler.ast import Function, Class, Name, AssName
from compiler.ast import Import, From, ListComp, Lambda
from sets import Set
from types import ModuleType
import os.path
import sys
try:
import quixote
quixote.enable_ptl()
fr... | PypiClean |
/HC_salgsanalyse-1.0.2-py3-none-any.whl/salgsanalyse/main.py | import salgsanalyse.vareetelling as vt
import os
import pandas as pd
#Skriver ut alle kategorier med tilhørende varer som er solgt i det gitte tidsrommet
#Fra start av første semesteret, til slutt av det andre semesteret
#gi samme semester i begge for å bare telle ett semester
#'start' og 'slutt' kan enten være semes... | PypiClean |
/Awespykit-2.1.0-py3-none-any.whl/awespykit/com/common.py |
from typing import *
from fastpip import PyEnv
from PyQt5.QtCore import *
EMPTY_STR = ""
class VerInfo:
"""包装 PyInstaller 版本号的类"""
defver = "0.0.0"
def __init__(self, ver=defver):
assert isinstance(ver, str)
self.__ver = ver
def __repr__(self):
if not self.__ver:
... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/en.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['en']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"URL... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/core/bbox/iou_calculators/iou2d_calculator.py | import torch
from .builder import IOU_CALCULATORS
def cast_tensor_type(x, scale=1., dtype=None):
if dtype == 'fp16':
# scale is for preventing overflows
x = (x / scale).half()
return x
def fp16_clamp(x, min=None, max=None):
if not x.is_cuda and x.dtype == torch.float16:
# clamp ... | PypiClean |
/Geode_GEM-0.12.0-py3-none-any.whl/geode_gem/widgets/menu.py |
# Geode
from geode_gem.widgets.common import GeodeGtkCommon
# GObject
from gi.repository import Gtk
# ------------------------------------------------------------------------------
# Class
# ------------------------------------------------------------------------------
class CommonMenuItem(GeodeGtkCommon):
... | PypiClean |
/CRIkit2-0.4.4.tar.gz/CRIkit2-0.4.4/crikit/ui/dialog_model.py | import sys as _sys
import numpy as _np
# Generic imports for QT-based programs
from PyQt5.QtWidgets import (QApplication as _QApplication,
QWidget as _QWidget, QDialog as _QDialog,
QMainWindow as _QMainWindow,
QSizePolicy as _QSize... | PypiClean |
/E.S.P.-Hadouken-0.2.1.tar.gz/E.S.P.-Hadouken-0.2.1/esp_hadouken/scoreboard/Row.py | from pygame import Surface, Color
from pygame.locals import *
from esp_hadouken.GameChild import *
from esp_hadouken.Font import *
class Row(GameChild, Surface):
def __init__(self, parent, index):
GameChild.__init__(self, parent)
self.index = index
self.disable_highlight()
self.in... | PypiClean |
/CNVkit-0.9.10-py3-none-any.whl/cnvlib/heatmap.py | import collections
import logging
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from matplotlib.colors import ListedColormap
from skgenome.rangelabel import unpack_range
from . import plots
def cna2df(cna):
"""Extract a subset of DataFrame columns from a CNA."""
return cna.data... | PypiClean |
/ConnectorDB-0.3.5.tar.gz/ConnectorDB-0.3.5/connectordb/_websocket.py | from __future__ import absolute_import
import websocket
import threading
import logging
import json
import random
import time
class WebsocketHandler(object):
"""WebsocketHandler handles websocket connections to a ConnectorDB server. It allows
subscribing and unsubscribing from inputs/outputs. The handler als... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/mathematica/mathematica.js |
// Mathematica mode copyright (c) 2015 by Calin Barbat
// Based on code by Patrick Scheibe (halirutan)
// See: https://github.com/halirutan/Mathematica-Source-Highlighting/tree/master/src/lang-mma.js
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib... | PypiClean |
/BabitMF_GPU-0.0.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/bmf/python_sdk/module_functor.py | import bmf.lib._hmp
from bmf.lib._bmf import sdk
ProcessDone = sdk.ProcessDone
class ModuleFunctor(object):
def __init__(self, impl, itypes, otypes):
self.impl = impl
self.itypes = itypes
self.otypes = otypes
def _inputs(self, *args):
if len(args) != len(self.itypes):
... | PypiClean |
/Gbtestapi0.3-0.1a10-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 |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/legacy/bootstrap3/static/cubane/legacy/bootstrap3/js/bootstrap.js | if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') }
/* ========================================================================
* Bootstrap: transition.js v3.2.0
* http://getbootstrap.com/javascript/#transitions
* ========================================================... | PypiClean |
/Flask_Unchained-0.9.0-py3-none-any.whl/flask_unchained/bundles/controller/bundle_blueprint.py | from flask import Blueprint as BaseBlueprint
from flask import send_from_directory as _send_from_directory
from flask.blueprints import BlueprintSetupState as BaseBlueprintSetupState
from flask.blueprints import _endpoint_from_view_func
from flask_unchained import Bundle
from werkzeug.exceptions import NotFound
clas... | PypiClean |
/Apydia-0.0.2.tar.gz/Apydia-0.0.2/apydia/descriptors.py | import logging
import sys
from os.path import split
from inspect import ismodule, isclass, isfunction, ismethod, isbuiltin, \
getmodule, getsourcefile, findsource, getdoc, \
getcomments, getargspec, formatargspec
import pkg_resources
from glob import glob
__all__ = ["create_des... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/es.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['es']={"editor":"Editor de Texto Enriquecido","editorPanel":"Panel del Editor de Texto Enriquecido","common":{"editorHelp":"Pulse ALT 0 para ayuda","browseServer... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/contrib/gis/geos/prototypes/threadsafe.py | import threading
from djmodels.contrib.gis.geos.base import GEOSBase
from djmodels.contrib.gis.geos.libgeos import (
CONTEXT_PTR, error_h, lgeos, notice_h,
)
class GEOSContextHandle(GEOSBase):
"""Represent a GEOS context handle."""
ptr_type = CONTEXT_PTR
destructor = lgeos.finishGEOS_r
def __ini... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/wire/ml/Invocation.js.uncompressed.js | define("dojox/wire/ml/Invocation", ["dijit","dojo","dojox","dojo/require!dojox/wire/ml/Action"], function(dijit,dojo,dojox){
dojo.provide("dojox.wire.ml.Invocation");
dojo.require("dojox.wire.ml.Action");
dojo.declare("dojox.wire.ml.Invocation", dojox.wire.ml.Action, {
// summary:
// A widget to invoke a method or... | PypiClean |
/Gaussian_and_Binomial_distributions-0.1.tar.gz/Gaussian_and_Binomial_distributions-0.1/Gaussian_and_Binomial_distributions/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Gaussian(Distribution):
""" Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
Attributes:
mean (float) representing the mean value of the distribution
stdev (float) representing ... | PypiClean |
/HessianPy-1.0.4.tar.gz/HessianPy-1.0.4/hessian/UTF8.py | __revision__ = "$Rev: 44 $"
# Masks that select code point bits in 1-st byte of UTF8 code point sequence
BYTE_MASKS = [0x7f, 0x1f, 0x0f, 0x07]
# Bounds of code point ranges that need different number of bytes in UTF8 sequence
BYTE_RANGES = [0x0000007F, 0x000007FF, 0x0000FFFF, 0x001FFFFF]
# bit-marks for first byte ... | PypiClean |
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcontrol/view/widgets/SettingsWidget.py | from pyqtgraph.parametertree import ParameterTree, Parameter
from qtpy import QtCore, QtWidgets
from imswitch.imcommon.model import shortcut
from imswitch.imcommon.view.guitools import naparitools
from imswitch.imcontrol.view import guitools
from .basewidgets import Widget
class CamParamTree(ParameterTree):
""" ... | PypiClean |
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/glances/amps/glances_systemd.py |
r"""
Systemd AMP
===========
Monitor the state of the systemd system and service (unit) manager.
How to read the stats
---------------------
active: Number of active units. This is usually a fairly basic way to tell if the
unit has started successfully or not.
loaded: Number of loaded units (unit's configuration ha... | PypiClean |
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megenginelite/struct.py |
import logging
from ctypes import *
from enum import Enum, IntEnum
class LiteBackend(IntEnum):
"""
The backend type enum, default only
"""
LITE_DEFAULT = 0
class LiteDeviceType(IntEnum):
"""
The backend device type enum
Note:
compute and storage will base on the device
"""... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/gqcms/Hubbard.py | from matplotlib.pyplot import fill
import numpy as np
import scipy.linalg as sp
from gqcms.matrices import Determinant
from typing import List
class Hubbard:
def __init__(
self,
sites: int,
t: float,
U: float,
circular: bool,
nalpha: int = None,
nbeta: int =... | PypiClean |
/BGT_Client-1.0.2-py3-none-any.whl/dgt_sdk/protobuf/authorization_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 |
/Eden-2.1.14.zip/Eden-2.1.14/eden/edenLib/winForms/view.py |
from ..node import *
from ..store import *
import clr
clr.AddReference ('System')
clr.AddReference ('System.Drawing')
clr.AddReference ('System.Windows.Forms')
import System
from System import Drawing
from System.Windows import Forms
from System.Windows.Forms import Keys # In a non .NET implementation the same iden... | PypiClean |
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/apex/apex/parallel/sync_batchnorm_kernel.py | import torch
from torch.autograd.function import Function
from apex.parallel import ReduceOp
class SyncBatchnormFunction(Function):
@staticmethod
def forward(ctx, input, weight, bias, running_mean, running_variance, eps, process_group, world_size):
torch.cuda.nvtx.range_push("sync_BN_fw")
# ... | PypiClean |
/CommunityNet-1.0.0.tar.gz/CommunityNet-1.0.0/README.md | # CommunityNet
`CommunityNet` is a hierarchical Graph Neural Network (GNN) designed for graph datasets with community structure (e.g. social networks, molecules, etc.). It's designed to encode information at both the within-community level and the inter-community level.
<!--TODO: It outperforms a standard GNN on some ... | PypiClean |
/CoCap-0.1.1.tar.gz/CoCap-0.1.1/cap/cap_publisher.py |
import json
import pika
import time
from cap.cap_config import CAPConfig, CAPStorageConfig
from cap.cap_storage import CAPStorage
class CAPPublisher(object):
"""
CAP消息发布器
"""
def __init__(self, config):
self.config = config
def publish(self, routing_key, message):
"""
发... | PypiClean |
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-grid/src/ts/filter/setFilter.ts |
module awk.grid {
var _ = Utils;
var template =
'<div>'+
'<div class="ag-filter-header-container">'+
'<input class="ag-filter-filter" type="text" placeholder="[SEARCH...]"/>'+
'</div>'+
'<div class="ag-filter-header-container">'+
'<l... | PypiClean |
/NEXRAD-quickplot-1.0.0.tar.gz/NEXRAD-quickplot-1.0.0/src/nexradutils/plot.py | from pathlib import Path
import xarray
from argparse import ArgumentParser
import numpy as np
import bisect
import imageio
import logging
from typing import Dict, Any, Union, List, Optional
from matplotlib.pyplot import figure, draw, fignum_exists, pause
import matplotlib.ticker as mticker
import matplotlib.dates as md... | PypiClean |
/Boutique_crawling-0.0.1-py3-none-any.whl/BURBERRY.py | from bs4 import BeautifulSoup
import requests
import pandas as pd
import urllib.request
#가방
def b_bags():
#여자
total = []
for page in range(1, 10):
url = "https://kr.burberry.com/womens-bags/?start={}&pageSize=40&productsOffset=&cellsOffset=8&cellsLimit=&__lang=ko".format(page)
response... | PypiClean |
/IPRA-3.17.51-py3-none-any.whl/ipra/View2/runningStatusFrameCTK.py | import tkinter as tk
import customtkinter
from ipra.Utility.StringUtilityCTK import GetStringSingletionCTK
from ipra.Utility.ConfigUtility import GetConfigSingletion
class RunningStatusFrameCTK(customtkinter.CTkFrame):
STATUS_EXCEPTION = 0
STATUS_SCRAP_COMPLETE = 1
STATUS_REPORT_COMPLETE = 2
def ... | PypiClean |
/NeuroTorch-0.0.1b2.tar.gz/NeuroTorch-0.0.1b2/src/neurotorch/callbacks/lr_schedulers.py | from typing import List, Optional, Iterable
import numpy as np
import torch
from .base_callback import BaseCallback
from ..learning_algorithms.learning_algorithm import LearningAlgorithm
class LinearLRScheduler(BaseCallback):
"""
This class is a callback that implements a linear learning rate decay. This is usefu... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.