id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Frontiersman-2.0.2-py3-none-any.whl/frontiersman/gameboard/Hexagon.py | import math
class Hexagon:
def __init__(self, radius, flat=True):
self.__radius = radius
self.__points = []
self.__flat = flat
self.construct_hexagon()
def construct_hexagon(self):
# clockwise starting from north
width = 0.5 * self.__radius
height = sel... | PypiClean |
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/types/user_and_chats/chat_invite_link.py |
from datetime import datetime
from typing import Dict
from typing import Optional
import pyrogram
from pyrogram import raw, utils
from pyrogram import types
from ..object import Object
class ChatInviteLink(Object):
"""An invite link for a chat.
Parameters:
invite_link (``str``):
The inv... | PypiClean |
/HBT_IP_Test-1.0.1-py3-none-any.whl/HBT_IP_Test/libs/sparkplug_b_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 |
/GuangTestBeat-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl/econml/automated_ml/_automated_ml.py |
# AzureML
from azureml.core.experiment import Experiment
from azureml.core import Workspace
from azureml.train.automl.automlconfig import AutoMLConfig
from azureml._base_sdk_common.common import ProjectSystemException
from sklearn.multioutput import MultiOutputRegressor
# helper imports
import time
import copy
"""Aut... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/pouchdb/dist/pouchdb.find.js | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | PypiClean |
/ACTIONet-0.1.1.tar.gz/ACTIONet-0.1.1/pybind11/docs/changelog.rst | .. _changelog:
Changelog
#########
Starting with version 1.8.0, pybind11 releases use a `semantic versioning
<http://semver.org>`_ policy.
v2.5.0 (Mar 31, 2020)
-----------------------------------------------------
* Use C++17 fold expressions in type casters, if available. This can
improve performance during ove... | PypiClean |
/MacSyFinder-2.1.2.tar.gz/MacSyFinder-2.1.2/macsypy/scripts/macsyconfig.py | import itertools
import sys
import os.path
import argparse
import shutil
from dataclasses import dataclass
from configparser import ConfigParser
from colorama import Fore, Style
from colorama import init as col_init
from macsypy import __version__ as msf_vers
from macsypy.config import MacsyDefaults
from macsypy.erro... | PypiClean |
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/os_utilities/mac_utilities/dark_mode.py |
__author__ = "heider"
__doc__ = r"""
"""
__all__ = []
import ctypes
import ctypes.util
try: # macOS Big Sur+ use "a built-in dynamic linker cache of all system-provided libraries"
appkit = ctypes.cdll.LoadLibrary("AppKit.framework/AppKit")
objc = ctypes.cdll.LoadLibrary("libobjc.dylib")
except ... | PypiClean |
/Icotest_DeviceServer-1.0.3-py3-none-any.whl/DeviceServer/exceptions.py | import six
class OpenApiException(Exception):
"""The base exception class for all OpenAPIExceptions"""
class ApiTypeError(OpenApiException, TypeError):
def __init__(self, msg, path_to_item=None, valid_classes=None,
key_type=None):
""" Raises an exception for TypeErrors
Args... | PypiClean |
/Itachi-0.0.1rc1-py3-none-any.whl/itachi/predictors/predictor.py | # import tensorflow as tf
# import codecs
# import os
#
#
# class TextBiClassifierPredictor(object):
# """
# classifier model predictor
# """
#
# def __init__(self, serialization_dir: str, is_padded: bool = True, oov_token: str = "@@UNKNOWN@@",
# namespace: str = "tokens"):
# ""... | PypiClean |
/CIoT_Course-0.0.1-py3-none-any.whl/CIoT_Course/api.py | import requests
# 取得股票資訊
# Input:
# stock_code: 股票ID
# start_date: 開始日期,YYYYMMDD
# stop_date: 結束日期,YYYYMMDD
# Output: 持有股票陣列
def Get_Stock_Informations(stock_code, start_date, stop_date):
information_url = ('http://140.116.86.242:8081/stock/' +
'api/v1/api_get_stock_info_from_date_j... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/ts4.8/tty.d.ts | declare module 'tty' {
import * as net from 'node:net';
/**
* The `tty.isatty()` method returns `true` if the given `fd` is associated with
* a TTY and `false` if it is not, including whenever `fd` is not a non-negative
* integer.
* @since v0.5.8
* @param fd A numeric file descriptor
... | PypiClean |
/11Team_AssistantBot-1.11.tar.gz/11Team_AssistantBot-1.11/11Team_AssistantBot/greeting.py | greeting = """
@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@
#@@@@ @@@@@@@@@@@@@@@@@@@@ ... | PypiClean |
/DeCiDa-1.1.5.tar.gz/DeCiDa-1.1.5/decida/Balloonhelp.py | import tkinter as tk
from decida.ItclObjectx import ItclObjectx
class Balloonhelp(ItclObjectx) :
"""
**synopsis**:
Tool-tips help class.
*Balloonhelp* sets up tool-tips help pop-up windows.
**configuration options**:
**verbose** (bool, default=False)
enable/disable ... | PypiClean |
/JPMyNumber-0.2.3.tar.gz/JPMyNumber-0.2.3/README.rst | JPMyNumber
==========
JPMyNumber is Japanese common number of social security and tax
(=My Number) library.
.. code:: python
# this is valid
IndividualNumber('123456789018')
# JPMyNumberCheckDigitError
IndividualNumber('123456789019')
Installation
------------
::
$ pip install JPMyNumber
U... | PypiClean |
/AuthZ-Group-1.7.tar.gz/AuthZ-Group-1.7/README.md | authz-group
===========
An interface and implementation of groups. Can be used for authenticating django applications.
To use:
from authz_group import Group
g = Group()
if g.is_member_of_group(username, group_name):
# do something useful
pass
The default implementation will alway... | PypiClean |
/EngineeringToolbox-JP-0.0.2.tar.gz/EngineeringToolbox-JP-0.0.2/README.md | # EngineeringToolbox
## Table of Contents
* [WIP Notes](#wip-notes)
* [Overview](#overview)
* [Updates](#updates)
* [History](#history)
* [Courses Covered](#courses-covered)
* [Using the Code](#using-the-code)
* [Learning Python](#learning-python)
* [Downloading](#downloading)
* [Python](#python)
* [Anaconda]... | PypiClean |
/BGT_Client-1.0.2-py3-none-any.whl/dgt_signing/__init__.py | import os
from dgt_signing.core import NoSuchAlgorithmError
from dgt_signing.core import ParseError
from dgt_signing.core import SigningError
from dgt_signing.secp256k1 import Secp256k1Context
from dgt_signing.open_crypto import OpenCryptoContext
DGT_CRYPTO_NM = 'dgt.crypto'
DGT_CRYPTO_ALG_NM = 'dgt.crypto.alg'
... | PypiClean |
/GloboNetworkAPI-0.9.6.tar.gz/GloboNetworkAPI-0.9.6/networkapiclient/utils.py | import re
from networkapiclient.Config import IP_VERSION
def is_valid_int_param(param):
"""Verifica se o parâmetro é um valor inteiro válido.
:param param: Valor para ser validado.
:return: True se o parâmetro tem um valor inteiro válido, ou False, caso contrário.
"""
if param is None:
... | PypiClean |
/Furious-GUI-0.2.4.tar.gz/Furious-GUI-0.2.4/Furious/Action/Settings.py | from Furious.Gui.Action import Action, Seperator
from Furious.Widget.Widget import Menu
from Furious.Utility.Constants import APP
from Furious.Utility.Utility import bootstrapIcon, Switch
from Furious.Utility.Translator import gettext as _
from Furious.Utility.StartupOnBoot import StartupOnBoot
class SettingsChildAct... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/worker/learner/comm/base_comm_learner.py | from abc import ABC, abstractmethod, abstractproperty
from easydict import EasyDict
from ding.utils import EasyTimer, import_module, get_task_uid, dist_init, dist_finalize, COMM_LEARNER_REGISTRY
from ding.policy import create_policy
from ding.worker.learner import create_learner
class BaseCommLearner(ABC):
"""
... | PypiClean |
/GRID_LRT-1.0.7.tar.gz/GRID_LRT-1.0.7/GRID_LRT/Staging/srmlist.py | import sys
import re
from collections import deque
from math import ceil
import logging
import subprocess
GSI_FQDNs={
'grid.sara.nl':'sara',
'fz-juelich.de':'juelich',
'lofar.psnc.pl':'poznan'
}
class srmlist(list):
"""
The srmlist class is an extension of Python lists that can... | PypiClean |
/django-chuck-0.2.3.tar.gz/django-chuck/modules/django-cms/project/apps/cmsplugin_filer_folder/migrations/0001_initial.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 model 'FilerFolder'
db.create_table('cmsplugin_filerfolder', (
('cmsplugin_ptr', self.gf('django.db.mod... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/variables/faceGradVariable.py | from __future__ import division
from __future__ import unicode_literals
__docformat__ = 'restructuredtext'
__all__ = []
from fipy.variables.faceVariable import FaceVariable
from fipy.tools import numerix
from fipy.tools import inline
class _FaceGradVariable(FaceVariable):
"""
Test case for a vector cell vari... | PypiClean |
/DeepPhysX.Sofa-22.12.1.tar.gz/DeepPhysX.Sofa-22.12.1/src/Sofa/Environment/SofaEnvironmentConfig.py | from typing import Type, Optional, Any, Dict
from os.path import join, dirname
from sys import modules, executable
from subprocess import run
from DeepPhysX.Core.Environment.BaseEnvironmentConfig import BaseEnvironmentConfig
from DeepPhysX.Sofa.Environment.SofaEnvironment import SofaEnvironment
class SofaEnvironment... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/linkCommon/SharedLibrary.py |
from SCons.Errors import UserError
from SCons.Tool import createSharedLibBuilder
from SCons.Util import CLVar
from . import lib_emitter, EmitLibSymlinks, StringizeLibSymlinks
def shlib_symlink_emitter(target, source, env, **kw):
verbose = False
if "variable_prefix" in kw:
var_prefix = kw["variable_p... | PypiClean |
/ELDAM_LCA-1.0-py3-none-any.whl/eldam/core/simapro.py | import os
import re
import openpyxl
import jinja2
from eldam.core.lci_data import *
from eldam.utils.lci_data import encode_simapro_csv_format
from eldam.utils.simapro import extract_data_from_comment
from eldam.utils.exceptions import SimaProXlsxError, ParameterConflictError, NotASimaProExportError
from eldam.utils.... | PypiClean |
/Flask-Pypi-Proxy-0.5.1.tar.gz/Flask-Pypi-Proxy-0.5.1/README.rst | ================
Flask-Pypi-Proxy
================
A pypi proxy done using flask. It will use PyPI, and then keep the downloaded
egg for future reference. After the package is downloaded from PyPI, it
won't download it from PyPI again and instead use the local copy of the file.
How to use it
=============
To use it ... | PypiClean |
/FairMongo-5.2.0.tar.gz/FairMongo-5.2.0/FCM/Jarticle/jVirtualWorld.py | from F import LIST, DICT
from F.LOG import Log
from FCM.MCCore import MCCore
Log = Log("jVirtualWorld")
COLLECTION_NAME = "virtual_worlds"
""" Master Class to work with Companies Collection """
class jVirtualWorld(MCCore):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.connect(COL... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/localflavor/it/it_province.py | from __future__ import unicode_literals
PROVINCE_CHOICES = (
('AG', 'Agrigento'),
('AL', 'Alessandria'),
('AN', 'Ancona'),
('AO', 'Aosta'),
('AR', 'Arezzo'),
('AP', 'Ascoli Piceno'),
('AT', 'Asti'),
('AV', 'Avellino'),
('BA', 'Bari'),
('BT', 'Barletta-Andria-Trani'), # active st... | PypiClean |
/Impression-CMS-0.2.0.tar.gz/Impression-CMS-0.2.0/impression/themes/impression/static/js/plugins/morris/raphael-2.1.0.min.js |
(function(a){var b="0.3.4",c="hasOwnProperty",d=/[\.\/]/,e="*",f=function(){},g=function(a,b){return a-b},h,i,j={n:{}},k=function(a,b){var c=j,d=i,e=Array.prototype.slice.call(arguments,2),f=k.listeners(a),l=0,m=!1,n,o=[],p={},q=[],r=h,s=[];h=a,i=0;for(var t=0,u=f.length;t<u;t++)"zIndex"in f[t]&&(o.push(f[t].zIndex),f... | PypiClean |
/JoUtil-1.3.3-py3-none-any.whl/JoTools/utils/BytesUtil.py |
import struct
# fixme 目前只支持,int, float, str,输入结构体的信息 ((int, 20), (float, 512), (char, 20)) 自动解析并返回结果,存储同样的是用这么一个结构,反向操作
# fixme 如何处理那些重复的数据结构,一直是重复的 struct,增加一个参数,询问是否重复进行读取
# fixme 目前不支持中文,不知道如何支持中文转为二进制
# fixme 使用 struct.unpack 函数解析二进制数据的时候,同时解析发多个格式的数据可能会报错,所以每次解析一个类型,比如 struct.unpack('iiffcciiffcciicciif', f.rea... | PypiClean |
/Binner-0.3.0.tar.gz/Binner-0.3.0/README | Binner - Quick And Dirty bin allocation
==========================================================
binner is a quick way to find the best bin sizes for
your items. You give it a set of bins and items, select
an algorithm and it will return you the best fit.
It is for 3 Dimensional space, supports an API
and is a work... | PypiClean |
/KingPaint-1.3-py3-none-any.whl/king/alg/basic_alg.py | import numpy as np
import ctypes
import sympy
import platform
import random
pi = np.pi
pi_half = pi / 2
pi_one_third = pi / 3
pi_quarter = pi / 4
one_degree = pi / 180
pi_2 = pi * 2
theta_list = np.linspace(0, pi_2, 360)
theta_list.flags.writeable = False
unit_circle = (np.cos(theta_list), np.sin(theta_list))
unit_cir... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/js/src/util/sanitizer.js | const uriAttrs = new Set([
'background',
'cite',
'href',
'itemtype',
'longdesc',
'poster',
'src',
'xlink:href'
])
const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i
/**
* A pattern that recognizes a commonly useful subset of URLs that are safe.
*
* Shoutout to Angular 7 https://github.com/angular/angu... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/base/migrations/0048_auto_20201116_0914.py |
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('base', '0047_resourcebase_attribution'),
]
operations = [
migrations.AlterField(
model_name='resourcebase',
name='category',
... | PypiClean |
/Mapp-0.1.0.tar.gz/Mapp-0.1.0/mapp/core/parsers.py | from ConfigParser import SafeConfigParser
from abc import ABCMeta, abstractmethod
class BasicParser(object):
'''
Abstract class for parsers. Reimplement only `populate_parser` method is
probably enough.
'''
__metaclass__ = ABCMeta
'''CONSTANTS as keys for the settings _values dictionary.'''... | PypiClean |
/NiMARE-0.2.0rc2.tar.gz/NiMARE-0.2.0rc2/nimare/dataset.py | import copy
import inspect
import json
import logging
import os.path as op
import warnings
import numpy as np
import pandas as pd
from nilearn._utils import load_niimg
from nimare.base import NiMAREBase
from nimare.utils import (
_dict_to_coordinates,
_dict_to_df,
_listify,
_transform_coordinates_to_s... | PypiClean |
/Js2Py-0.74.tar.gz/Js2Py-0.74/js2py/internals/desc.py |
# I am implementing everything as dicts to speed up property creation
# Warning: value, get, set props of dest are PyJs types. Rest is Py!
def is_data_descriptor(desc):
return desc and ('value' in desc or 'writable' in desc)
def is_accessor_descriptor(desc):
return desc and ('get' in desc or 'set' in desc... | PypiClean |
/GhettoRecorder-3.0-py3-none-any.whl/ghettorecorder/static/js/index.js | window.addEventListener('load', function() {
/**
* Html loaded, can get id and class now.
*/
console.log('All assets are loaded');
const audioR = document.getElementById('audioR');
const gainR = document.getElementById('gainR');
gainR.addEventListener("input", setAudioGain); // move slide... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/82677.8e340adebc2e0aa91f7f.min.js | (self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[82677],{82677:function(){!function(){function t(t,e){return(" "+t.className+" ").replace(this._whitespace," ").indexOf(e)>=0}function e(e,n){t(e,n)||(e.className+=" "+n)}function n(t,e){for(var n=t.className.split(/\s+/),i=... | PypiClean |
/Fraunhofer-1.0.3.tar.gz/Fraunhofer-1.0.3/docs/install.rst | ************
Installation
************
Important packages
==================
`Doppler <https://github.com/dnidever/doppler>`_ is a generic radial velocity package and is needed to read spectra, get initial parameters and RVs, and other things.
``synple`` is Carlos Allende Prieto's python wrapper around the `Synspec ... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.6/fs.js | var fs = {};
/**
* Asynchronous rename(2). No arguments other than a possible exception are
* given to the completion callback.
* @param path1
* @param path2
* @param callback
*/
fs.rename = function(path1, path2, callback) {}
/**
* Synchronous version of buffer-based fs.write(). Returns the number of
* bytes... | PypiClean |
/OASYS1-SYNED-1.0.45.tar.gz/OASYS1-SYNED-1.0.45/orangecontrib/syned/widgets/beamline_elements/ow_crystal.py | import numpy
from orangewidget.settings import Setting
from oasys.widgets import gui as oasysgui
from oasys.widgets import congruence
from oasys.util.oasys_util import ChemicalFormulaParser
from orangecontrib.syned.widgets.gui.ow_optical_element import OWOpticalElementWithSurfaceShape
from syned.beamline.optical_ele... | PypiClean |
/NESTML-5.3.0-py3-none-any.whl/NESTML-5.3.0.data/data/doc/models_library/iaf_psc_alpha.rst | iaf_psc_alpha
#############
iaf_psc_alpha - Leaky integrate-and-fire neuron model
Description
+++++++++++
iaf_psc_alpha is an implementation of a leaky integrate-and-fire model
with alpha-function kernel synaptic currents. Thus, synaptic currents
and the resulting post-synaptic potentials have a finite rise time.
... | PypiClean |
/FicusFrameworkAPI-3.0.0.tar.gz/FicusFrameworkAPI-3.0.0/README.rst | \u0023\u0020\u0046\u0069\u0063\u0075\u0073\u0020\u0050\u0079\u0074\u0068\u006f\u006e\u0020\u5f00\u53d1\u5957\u4ef6\u000d\u000a\u000d\u000a\u000d\u000a\u0023\u0023\u0020\u5f00\u53d1\u6b65\u9aa4\u000d\u000a\u000d\u000a\u0031\u002e\u0020\u5fc5\u987b\u8981\u6709\u4e00\u4e2a\u0060\u0061\u0070\u0070\u002e\u0070\u0079\u0060\u... | PypiClean |
/Adyen-9.0.2.tar.gz/Adyen-9.0.2/test/UtilTest.py | import unittest
from json import load
import Adyen
from Adyen.util import (
generate_notification_sig,
is_valid_hmac_notification,
get_query
)
try:
from BaseTest import BaseTest
except ImportError:
from .BaseTest import BaseTest
class UtilTest(unittest.TestCase):
ady = Adyen.Adyen()
client... | PypiClean |
/KE-py-0.9.tar.gz/KE-py-0.9/KE/v4/job.py | from __future__ import with_statement, absolute_import
from KE.base import Base
from datetime import datetime
class Job(Base):
def __init__(self, client=None, job_id=None, name=''):
"""Job Object
"""
super(Job, self).__init__(client=client)
self.id = job_id
self.name = nam... | PypiClean |
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/dragonflow/controller/apps/metadata_service.py |
import hashlib
import hmac
import httplib2
import netaddr
from oslo_log import log
from oslo_utils import encodeutils
from ryu.lib.packet import arp
from ryu.lib.packet import ethernet
from ryu.lib.packet import ipv4
from ryu.ofproto import nicira_ext
import six
import six.moves.urllib.parse as urlparse
import webob
... | PypiClean |
/django-chuck-0.2.3.tar.gz/django-chuck/modules/feincms/project/static/scripts/libs/tiny_mce/plugins/legacyoutput/editor_plugin_src.js | (function(tinymce) {
// Override inline_styles setting to force TinyMCE to produce deprecated contents
tinymce.onAddEditor.addToTop(function(tinymce, editor) {
editor.settings.inline_styles = false;
});
// Create the legacy ouput plugin
tinymce.create('tinymce.plugins.LegacyOutput', {
init : function(editor) ... | PypiClean |
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/personal_data/portfolios/history/historical_portfolio_value_manager.py | import time
import sortedcontainers
import copy
import octobot_commons.logging as logging
import octobot_commons.constants as commons_constants
import octobot_commons.enums as commons_enums
import octobot_commons.symbols as symbol_util
import octobot_trading.util as util
import octobot_trading.errors as errors
impor... | PypiClean |
/Flask-Caching-IceFruit-0.0.3.tar.gz/Flask-Caching-IceFruit-0.0.3/flask_caching/backends/clients.py | import pickle
from flask_caching.backends.cache import BaseCache, MemcachedCache
from flask_caching._compat import PY2, range_type
class SASLMemcachedCache(MemcachedCache):
def __init__(self, servers=None, default_timeout=300, key_prefix=None,
username=None, password=None, **kwargs):
Bas... | PypiClean |
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/data/datasets/evaluation/voc/voc_eval.py | from __future__ import division
import os
from collections import defaultdict
import numpy as np
from PTMD.maskrcnn_benchmark.structures.bounding_box import BoxList
from PTMD.maskrcnn_benchmark.structures.boxlist_ops import boxlist_iou
def do_voc_evaluation(dataset, predictions, output_folder, logger):
# TODO ne... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/libs/bootstrap.min.js | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,h){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=... | PypiClean |
/FVS-0.2.tar.gz/FVS-0.2/fvs/exceptions.py | class FVSException(Exception):
"""
Base class for all FVS exceptions.
"""
def __init__(self, message: str = "An unknown error occurred."):
super().__init__(message)
class FVSStateNotFound(FVSException):
"""
Exception raised when a state is not found.
"""
def __init__(self, st... | PypiClean |
/CrowHTE-2.0.3.tar.gz/CrowHTE-2.0.3/examples/setup_step-by-step.md | # Step-by-Step Crow Setup Tutorial
If you have already completed or are familiar with a given section, skip ahead to the next applicable section.
## Setting up lab equipment to export *xml* files
This is going to vary a lot depending on your indivudal equipment, but for our Agilent 6890 it went like this:
1. Modify ... | PypiClean |
/OASYS1-XRayServer-1.0.36.tar.gz/OASYS1-XRayServer-1.0.36/orangecontrib/xrayserver/widgets/xrayserver/ow_gid_sl.py | __author__ = "Luca Rebuffi"
import numpy
from orangewidget import gui
from orangewidget.settings import Setting
from oasys.widgets import gui as oasysgui
from oasys.widgets.exchange import DataExchangeObject
from oasys.util.oasys_util import ShowTextDialog
import urllib
from http import server
from orangecontrib.xra... | PypiClean |
/AnalysisProjectDependencies-0.1.tar.gz/AnalysisProjectDependencies-0.1/bower_components/jquery/src/attributes/prop.js | define( [
"../core",
"../core/access",
"./support",
"../selector"
], function( jQuery, access, support ) {
"use strict";
var rfocusable = /^(?:input|select|textarea|button)$/i,
rclickable = /^(?:a|area)$/i;
jQuery.fn.extend( {
prop: function( name, value ) {
return access( this, jQuery.prop, name, value, arg... | PypiClean |
/mcpacker-1.0.1.tar.gz/mcpacker-1.0.1/README.md | # MCPacker
[](https://spdx.org/licenses/MIT.html) [](https://python.org) [](https://pypi.org/project/MC... | PypiClean |
/Ferris-3.0.0-alpha8.tar.gz/Ferris-3.0.0-alpha8/ferris3/caching.py | from __future__ import absolute_import
from google.appengine.api import memcache
from google.appengine.ext import ndb
from functools import wraps
import datetime
import threading
import inspect
none_sentinel_string = u'☃☸☃ - caching sentinel'
def cache(key, ttl=0, backend=None):
"""
General-purpose caching ... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/crm/model/email_address_request.py | import re # noqa: F401
import sys # noqa: F401
from typing import (
Optional,
Union,
List,
Dict,
)
from MergePythonSDK.shared.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
OpenApiModel,
change_keys_js_to_python,... | PypiClean |
/NovalIDE-1.1.8-py3-none-any.whl/noval/util/parser.py |
import re
import string
import array
XPATH_ROOT_VAR = '__rootObj__'
GETOBJECTPARTNAMES = ["primaryRef", "ref", "orderings", "limit"]
class Tokenizer(object):
TOKEN_IDENT = 1
TOKEN_STRING = 2
TOKEN_OP = 3
TOKEN_WS = 4
## TOKEN_PLACEHOLDER = 5
def __init__(self, text, identStart=Non... | PypiClean |
/Marcus_Rodmichael_338_final-1.0-py3-none-any.whl/myLib/datastructures/Linear/SLL.py | class SLL:
def __init__(self, head=None): # Acts as both default and normal constructor from the part: head = None
self.head = head
self.tail = head
self.size = 1 if head else 0 # If head exists default val of 1, without head it is 0
def insert_head(self, node):
... | PypiClean |
/Adafruit_BluefruitLE-0.9.10.tar.gz/Adafruit_BluefruitLE-0.9.10/Adafruit_BluefruitLE/services/uart.py | import queue
import uuid
from .servicebase import ServiceBase
# Define service and characteristic UUIDs.
UART_SERVICE_UUID = uuid.UUID('6E400001-B5A3-F393-E0A9-E50E24DCCA9E')
TX_CHAR_UUID = uuid.UUID('6E400002-B5A3-F393-E0A9-E50E24DCCA9E')
RX_CHAR_UUID = uuid.UUID('6E400003-B5A3-F393-E0A9-E50E24DCCA9E')
... | PypiClean |
/aleksis_app_alsijil-3.0.1.tar.gz/aleksis_app_alsijil-3.0.1/aleksis/apps/alsijil/actions.py | from typing import Callable, Sequence
from django.contrib import messages
from django.contrib.humanize.templatetags.humanize import apnumber
from django.http import HttpRequest
from django.template.loader import get_template
from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from a... | PypiClean |
/Bootstrap-Flask-2.3.0.tar.gz/Bootstrap-Flask-2.3.0/flask_bootstrap/static/bootstrap5/umd/popper.min.js | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=... | PypiClean |
/Data_Save-1.1.0.tar.gz/Data_Save-1.1.0/Data_Save/README.md | # from now on, no more than three checks are possible
# no more than three checks are allowed
```
import Data_Save
def r20():
print('text if 1')
def r670():
print('text if 2')
def r620():
print('text if 3')
Data_Save.Data("save_play.save", "text if 1") # Create a file named "save_play.save" and with the t... | PypiClean |
/DLRN-0.26.1.tar.gz/DLRN-0.26.1/scripts/recreate-promotion-symlinks.py |
# This utility script will recreate all promotion symlinks from the database,
# using the latest promotion for each.
import argparse
import os
import sys
from dlrn.db import Commit
from dlrn.db import getSession
from dlrn.db import Promotion
from six.moves import configparser
from sqlalchemy import desc
def main()... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/montreal_forced_aligner/transcription/multiprocessing.py | from __future__ import annotations
import os
import re
import subprocess
import typing
from pathlib import Path
from typing import TYPE_CHECKING, Dict, List
from _kalpy.fstext import ConstFst, VectorFst
from _kalpy.lat import CompactLatticeWriter
from _kalpy.lm import ConstArpaLm
from _kalpy.util import BaseFloatMatr... | PypiClean |
/CDS-1.0.1.tar.gz/CDS-1.0.1/cds/modules/records/permissions.py | from __future__ import absolute_import, print_function
from flask import current_app
from flask_security import current_user
from invenio_access import DynamicPermission
from invenio_files_rest.models import Bucket, MultipartObject, ObjectVersion
from invenio_records_files.api import FileObject
from invenio_records_fi... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/basic/lang/mk.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['mk']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Притисни ALT 0 за помош","browseServer":"Пребарај низ серверот"... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/js/mode/perl/perl.js |
// CodeMirror2 mode/perl/perl.js (text/x-perl) beta 0.10 (2011-11-08)
// This is a part of CodeMirror from https://github.com/sabaca/CodeMirror_mode_perl (mail@sabaca.com)
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (t... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/data/PicasaStore.js.uncompressed.js | define("dojox/data/PicasaStore", ["dojo/_base/lang","dojo/_base/declare", "dojo/_base/connect", "dojo/io/script", "dojo/data/util/simpleFetch", "dojo/date/stamp"],
function(lang, declare, connect, scriptIO, simpleFetch, dateStamp) {
var PicasaStore = declare("dojox.data.PicasaStore", null, {
constructor: function(... | PypiClean |
/DataSae-0.1.37.tar.gz/DataSae-0.1.37/datasae/datasource/mongodb.py | import os
from dotenv import load_dotenv
from pymongo import MongoClient
from datasae.datasource.config_file import get_config
class ConnectionMongodb:
"""
A class to represent mongodb access and datasource.
...
Attributes
----------
env_file_location : str
yo... | PypiClean |
/MQ2-1.1.0.tar.gz/MQ2-1.1.0/doc/data.rst | Prepare your data
=================
In order to run correctly MQ², you may have to prepare a little bit you
data.
Running from MapQTL output
~~~~~~~~~~~~~~~~~~~~~~~~~~
For each project, `MapQTL <http://www.kyazma.nl/index.php/mc.MapQTL>`_
generates a ``.mqp`` file containing information about the project.
Within the... | PypiClean |
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/addon/hint/javascript-hint.js | (function () {
var Pos = CodeMirror.Pos;
function forEach(arr, f) {
for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]);
}
function arrayContains(arr, item) {
if (!Array.prototype.indexOf) {
var i = arr.length;
while (i--) {
if (arr[i] === item) {
return true;
}... | PypiClean |
/ChiantiPy-0.15.1.tar.gz/ChiantiPy-0.15.1/docs/build/_static/underscore.js | (function(){function q(a,c,d){if(a===c)return a!==0||1/a==1/c;if(a==null||c==null)return a===c;if(a._chain)a=a._wrapped;if(c._chain)c=c._wrapped;if(a.isEqual&&b.isFunction(a.isEqual))return a.isEqual(c);if(c.isEqual&&b.isFunction(c.isEqual))return c.isEqual(a);var e=l.call(a);if(e!=l.call(c))return false;switch(e){case... | PypiClean |
/JogoDaVelha-Elielson68-0.0.3.tar.gz/JogoDaVelha-Elielson68-0.0.3/Tabuleiro/tabuleiro.py | from .jogador import Jogador
class Tabuleiro():
"""
Essa é uma classe para instanciar o tabuleiro.
"""
def __init__(self):
self.casas = [["[-]"] * 3, ["[-]"] * 3, ["[-]"] * 3]
self.decodificador = {
"A1": [0, 0], "A2": [0, 1], "A3": [0, 2],
... | PypiClean |
/OSolntseva_client-0.0.1.tar.gz/OSolntseva_client-0.0.1/client/my_client.py | import os
import sys
import logging
import argparse
from Cryptodome.PublicKey import RSA
from PyQt5.QtWidgets import QApplication, QMessageBox
import traceback
from client.main_window import ClientMainWindow
from client.start_dialog import UserDialog
from client.transport import TransportClient
from common.decorator i... | PypiClean |
/Flask-Material-0.1.1.tar.gz/Flask-Material-0.1.1/flask_material/__init__.py |
__app_version__ = '0.1.1'
__material_version__ = '0.96.1'
import re
from flask import Blueprint, current_app, url_for
try:
from wtforms.fields import HiddenField
except ImportError:
def is_hidden_field_filter(field):
raise RuntimeError('WTForms is not installed.')
else:
def is_hidden_field_filte... | PypiClean |
/CSSegmentation-0.0.1-py3-none-any.whl/csseg/modules/models/losses/celoss.py | import torch
import torch.nn as nn
import torch.nn.functional as F
'''CrossEntropyLoss'''
class CrossEntropyLoss(nn.Module):
def __init__(self, reduction='mean', ignore_index=255, scale_factor=1.0, weight=None, label_smoothing=None):
super(CrossEntropyLoss, self).__init__()
self.weight = weight
... | PypiClean |
/Halocoin-0.1.0.4.tar.gz/Halocoin-0.1.0.4/halocoin/static/dashboard/js/perfect-scrollbar.jquery.min.js | !function t(e,n,r){function o(i,s){if(!n[i]){if(!e[i]){var a="function"==typeof require&&require;if(!s&&a)return a(i,!0);if(l)return l(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[i]={exports:{}};e[i][0].call(u.exports,function(t){var n=e[i][1][t];return o(n?n:t)},u,u.ex... | PypiClean |
/AssetVendor-0.0.2-py3-none-any.whl/assetvendor/commands/check.py | import os.path
import shutil
import tarfile
import tempfile
from .base import Command
from ..npm import Client
class Check(Command):
def add_arguments(self, parser):
parser.add_argument('--vendor-conf', metavar="FILEPATH", default=os.environ.get('ASSETVENDOR_CONF'),
help="The... | PypiClean |
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/HighwayEnv_iPLAN/interval.py | import itertools
from typing import Tuple, Union, List, Callable
import numpy as np
from numpy.linalg import LinAlgError
from highway_env.road.lane import AbstractLane
from highway_env.utils import Vector, Matrix, Interval
def intervals_product(a: Interval, b: Interval) -> np.ndarray:
"""
Compute the produc... | PypiClean |
/ADCPy-0.1.1.tar.gz/ADCPy-0.1.1/adcpy/EPICstuff/reshapeEPIC.py | import sys
import os
import datetime as dt
import netCDF4 as nc
from netCDF4 import num2date
import numpy as np
import math
# noinspection PyUnboundLocalVariable,SpellCheckingInspection
def reshapeEPIC(cont_file, burst_file, burst_length, dim='time', edges=None, drop=None,
variable_attributes_to_omit=... | PypiClean |
/BioCantor-0.4.5.tar.gz/BioCantor-0.4.5/inscripta/biocantor/parent/parent.py | from functools import reduce
from typing import TypeVar, Optional, Union
from enum import Enum
import inscripta.biocantor
from inscripta.biocantor.exc import (
NoSuchAncestorException,
LocationException,
InvalidStrandException,
ParentException,
InvalidPositionException,
)
from inscripta.biocantor.l... | PypiClean |
/OSCAAR-2.0beta.tar.gz/OSCAAR-2.0beta/oscaar/extras/eph/calculateEphemerides.py | import ephem ## PyEphem module
import numpy as np
#from ephemeris import gd2jd, jd2gd
from matplotlib import pyplot as plt
from glob import glob
from os import getcwd, sep
from time import time
import os.path
import oscaar
import sys
def calculateEphemerides(parFile):
'''
:INPUTS:
parFile -- pa... | PypiClean |
/BioCantor-0.4.5.tar.gz/BioCantor-0.4.5/inscripta/biocantor/sequence/sequence.py | from typing import TypeVar, Optional, Union
from Bio.Seq import Seq
from inscripta.biocantor.exc import (
AlphabetError,
NoSuchAncestorException,
EmptySequenceFastaError,
MismatchedParentException,
)
from inscripta.biocantor.location.strand import Strand
from inscripta.biocantor.parent import Parent, ... | PypiClean |
/Flask-AppBuilder-jwi078-2.1.13.tar.gz/Flask-AppBuilder-jwi078-2.1.13/flask_appbuilder/views.py | import json
import logging
from flask import (
abort,
flash,
jsonify,
make_response,
redirect,
request,
send_file,
session,
url_for
)
from ._compat import as_unicode, string_types
from .baseviews import BaseCRUDView, BaseFormView, BaseView, expose, expose_api
from .const import FLA... | PypiClean |
/AWAKE_ANALYSIS_TOOLS-0.0.2-py3-none-any.whl/analyses/analyze_frame.py | import numpy as np
import scipy.signal as sig
from scipy.optimize import curve_fit
from numpy.fft import fft
# Centroid and weighted RMS
def profile_moments(prof_data,prof_axis):
cent = prof_data.dot(prof_axis)/prof_data.sum()
rms = np.sqrt(prof_data.dot((prof_axis-cent)**2)/prof_data.sum())
retu... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-pure.min.js | !function(e){e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},s... | PypiClean |
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/smartymixed/smartymixed.js | // Warning: Don't base other modes on this one. This here is a
// terrible way to write a mixed mode.
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../smarty/smarty"));
else if (typeof d... | PypiClean |
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/docs/factoids.rst | Factoids
========
.. highlight:: irc
Factoids are one of the most important Ibid plugins.
They are what give a bot most of its personality, and after a few years
on IRC, it can expect to pick up a few thousand of them from its users.
While it can store simple factoids like::
<Alice> Ibid is an awesome bot writte... | PypiClean |
/GenomeTreeTk-0.1.6.tar.gz/GenomeTreeTk-0.1.6/genometreetk/combine_support.py |
import logging
import dendropy
class CombineSupport(object):
"""Combine all support values into a single tree."""
def __init__(self):
"""Initialization."""
self.logger = logging.getLogger()
def _collect_support_values(self, tree):
"""Get support value for each node in ... | PypiClean |
/HiveNetGRPC-0.1.0.tar.gz/HiveNetGRPC-0.1.0/HiveNetGRpc/proto/proto_generate.py | import os
import sys
# 根据当前文件路径将包路径纳入, 在非安装的情况下可以引用到
sys.path.append(os.path.abspath(os.path.join(
os.path.dirname(__file__), os.path.pardir, os.path.pardir)))
from HiveNetCore.utils.run_tool import RunTool
from HiveNetCore.utils.file_tool import FileTool
class ProtoTools(object):
"""
处理Proto文件的工具类
""... | PypiClean |
/GloboNetworkAPI-0.9.6.tar.gz/GloboNetworkAPI-0.9.6/networkapiclient/GrupoL3.py |
from networkapiclient.GenericClient import GenericClient
from networkapiclient.utils import get_list_map, is_valid_int_param
from networkapiclient.exception import InvalidParameterError
class GrupoL3(GenericClient):
def __init__(self, networkapi_url, user, password, user_ldap=None):
"""Class constructor... | PypiClean |
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/api/available_budgets_api.py | import re # noqa: F401
import sys # noqa: F401
from firefly_iii_client.api_client import ApiClient, Endpoint as _Endpoint
from firefly_iii_client.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
... | PypiClean |
/IPTCInfo3-2.1.4-py3-none-any.whl/iptcinfo3.py | import contextlib
import logging
import os
import shutil
import sys
import tempfile
from struct import pack, unpack
__version__ = '2.1.4'
__author__ = 'Gulácsi, Tamás'
__updated_by__ = 'Campbell, James'
SURELY_WRITE_CHARSET_INFO = False
debugMode = 0
# Debug off for production use
logger = logging.getLogger('iptci... | PypiClean |
/BotsBotsBots-0.1.tar.gz/BotsBotsBots-0.1/bots/youtube_bot.py | import os
from pytube import YouTube
from pytube import Playlist
from time import time, sleep
import ssl
import urllib.request
from bs4 import BeautifulSoup
import webbrowser
from mutagen.mp3 import MP3
from random import shuffle
# sometimes needed for youtube
ssl._create_default_https_context = ssl._create_unverifi... | PypiClean |
/AmiAutomation-0.1.4.3.tar.gz/AmiAutomation-0.1.4.3/README.md | # RPH extraction
Contains a tool to read a .rph file into a RphData structure.
#### Usage
A simple example is given below:
```
from AmiAutomation import RphData
# Read from a rph file to a RphData object
rphData = RphData.rphToDf(path = "path_to_rph_file")
# Table data inside a dataframe
dataframe = rphData.dataFr... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.