id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/MirrorMirror2-1.1.6.tar.gz/MirrorMirror2-1.1.6/mirror_mirror/main.py |
from pyggi.gtk3 import GtkWindow, GtkScrolledWindow
from pyggi import gtk3
from pyggi.webkit3 import WebKitWebView
from mirror_mirror import server
from mirror_mirror.weather import WeatherUpdater
from mirror_mirror.clock import Clock
from mirror_mirror.calendardisplay import Calendar
from mirror_mirror.news import Ne... | PypiClean |
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/sandbox/segment2d.py | from __future__ import print_function
import sys, timeit
import numpy as np #, numba
import scipy.ndimage
import hdf5plugin, h5py, fabio
from ImageD11 import cImageD11, sparseframe, blobcorrector, \
parameters, transform
import pylab as pl
# Timer (could be a decorator ...)
timer = timeit.default_timer
class tick... | PypiClean |
/Meraki_Tools-2.5-py3-none-any.whl/merakitools/mnetutils/sync.py | import asyncio
import threading
from random import randrange
from meraki.exceptions import AsyncAPIError
from merakitools import lib, const, model
from merakitools.app_logger import org_sync_log
def set_sync(org_id: str, net_id: str, product: str, is_golden: bool):
"""
Args:
org_id:
net_id:
... | PypiClean |
/Ctrax-0.5.8.linux-x86_64.tar.gz/usr/local/lib/python2.7/dist-packages/psutil/_pssunos.py | import errno
import os
import socket
import subprocess
import sys
from collections import namedtuple
from . import _common
from . import _psposix
from . import _psutil_posix as cext_posix
from . import _psutil_sunos as cext
from ._common import isfile_strict
from ._common import sockfam_to_enum
from ._common import so... | PypiClean |
/51job_autotest_framework-0.3.1-py3-none-any.whl/rolling_king/jason/webdriver/webdriver_common.py |
import logging
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ar-jo.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"\u0635",
"\u0645"
],
"DAY": [
"\u0627\u0644... | PypiClean |
/BabelGladeExtractor-0.7.0.tar.bz2/BabelGladeExtractor-0.7.0/babelglade/extract.py | from __future__ import unicode_literals
import xml.etree.ElementTree as etree
def extract_glade(fileobj, keywords, comment_tags, options):
"""Extracts translatable strings from Glade files or GtkBuilder UI XML.
:param fileobj: the file-like object to extract from, iterable by lines
:param keywords: a li... | PypiClean |
/BlinkStick-1.2.0.tar.gz/BlinkStick-1.2.0/blinkstick/blinkstick.py | from ._version import __version__
import time
import sys
import re
import collections
if sys.platform == "win32":
import pywinusb.hid as hid
from ctypes import *
else:
import usb.core
import usb.util
from random import randint
"""
Main module to control BlinkStick and BlinkStick Pro devices.
"""
VE... | PypiClean |
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct17.py | pairs="""
140 69
105 76
99 11
38 31
82 114
107 29
90 73
6 137
76 118
50 1
146 61
30 25
82 43
144 129
77 78
77 79
71 17
84 33
87 34
5 58
145 139
19 16
71 54
67 143
50 12
71 129
69 121
146 40
18 96
82 57
140 130
111 124
23 13
113 127
19 119
13 104
72 58
70 59
92 77
13 113
110 22
25 133
38 12
115 137
92 112
50 11
101 61
1... | PypiClean |
/GailBot-0.2a0-py3-none-any.whl/gailbot/services/converter/payload/videoPayload.py | import os
from .payloadObject import PayLoadObject, PayLoadStatus
from ...organizer.source import SourceObject
from typing import List, Union
from gailbot.core.utils.general import get_extension, copy
""" NOTE: currently unused and not tested since gailbot does not support
for video transcription yet
"""
... | PypiClean |
/DeeFuzzer-0.8.2.tar.gz/DeeFuzzer-0.8.2/NEWS.rst | Old news
========
See README.rst for last news.
0.6.4
* Fix install bug again (add main script to install), sorry :(
* Reduce streaming buffer length
0.6.3
* Fix install bug
* Setup rewritten
* Fix MANIFEST
0.6.2
* No new functions but bugfixes (including a serious one during install from pypi)
* Definite... | PypiClean |
/Corrfunc-2.5.1.tar.gz/Corrfunc-2.5.1/README.rst | |logo|
|Release| |PyPI| |MIT licensed| |Travis Build| |GitHub CI| |RTD| |Issues|
|CoreInfra| |FAIRSoft|
|Paper I| |Paper II|
Description
===========
This repo contains a suite of codes to calculate correlation functions and
other clustering statistics for **simulated** galaxies in a cosmological box (co-moving XY... | PypiClean |
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/ext/duration.py | from datetime import datetime, timedelta
from itertools import islice
from operator import itemgetter
from typing import Any, Dict, List
from typing import cast
from docutils import nodes
from sphinx.application import Sphinx
from sphinx.domains import Domain
from sphinx.locale import __
from sphinx.util import loggi... | PypiClean |
/src/models/optimization.py | """PyTorch optimization for BERT model."""
import logging
import math
import torch
from torch.optim import Optimizer
from torch.optim.lr_scheduler import LambdaLR
logger = logging.getLogger(__name__)
class ConstantLRSchedule(LambdaLR):
""" Constant learning rate schedule.
"""
def __init__(self, optimize... | PypiClean |
/Firefly-vis-2.0.4.tar.gz/Firefly-vis-2.0.4/src/Firefly/ntbks/.ipynb_checkpoints/convert_FIRE_data-checkpoint.ipynb | ```
%load_ext autoreload
%autoreload 2
import numpy as np
import os
import sys
#sys.path.insert(0, '/Users/ageller/VISUALIZATIONS/Firefly')
#sys.path.insert(0,'/Users/agurvich/research/repos/Firefly/src')
from Firefly.data_reader import FIREreader,SimpleFIREreader
```
# Convert FIRE data
In this example notebook we d... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/page-header.js | module.exports =
/******/ (function (modules) { // webpackBootstrap
/******/ // The module cache
/******/
var installedModules = {};
/******/
/******/ // The require function
/******/
function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in ... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/types/bots_and_keyboards/__init__.py |
from .bot_command import BotCommand
from .bot_command_scope import BotCommandScope
from .bot_command_scope_all_chat_administrators import BotCommandScopeAllChatAdministrators
from .bot_command_scope_all_group_chats import BotCommandScopeAllGroupChats
from .bot_command_scope_all_private_chats import BotCommandScopeAllP... | PypiClean |
/CalculadoraClasesss-0.5.4.tar.gz/CalculadoraClasesss-0.5.4/CalculadoraCla/pytransform/__init__.py | import os
import platform
import sys
import struct
# Because ctypes is new from Python 2.5, so pytransform doesn't work
# before Python 2.5
#
from ctypes import cdll, c_char, c_char_p, c_int, c_void_p, \
pythonapi, py_object, PYFUNCTYPE, CFUNCTYPE
from fnmatch import fnmatch
#
# Support Platforms
#
plat_path = 'p... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/libclang.py | from __future__ import print_function, absolute_import
import os
import copy
import shlex
import threading
from clang import cindex
# Monkeypatch cindex to avoid AttributeError when __del__ is called during program shutdown (Python 2 only):
cindex._CXString.__del__ = lambda self: cindex and cindex.conf.lib.clang_disp... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/ts4.8/module.d.ts | declare module 'module' {
import { URL } from 'node:url';
namespace Module {
/**
* The `module.syncBuiltinESMExports()` method updates all the live bindings for
* builtin `ES Modules` to match the properties of the `CommonJS` exports. It
* does not add or remove exported names... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/STIX-Web/Monospace/Regular/Main.js | MathJax.OutputJax.SVG.FONTDATA.FONTS.STIXMathJax_Monospace={directory:"Monospace/Regular",family:"STIXMathJax_Monospace",id:"STIXWEBMONOSPACE",32:[0,0,525,0,0,""],160:[0,0,525,0,0,""],120432:[673,0,525,26,496,"496 40v-16c0 -13 -11 -24 -24 -24h-127c-14 0 -24 11 -24 24v16c0 13 10 24 24 24h31l-26 117h-178l-26 -117h32c13 0... | PypiClean |
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/atmosphere/atmosphere.py | from aerosandbox.common import AeroSandboxObject
import aerosandbox.numpy as np
from aerosandbox.atmosphere._isa_atmo_functions import pressure_isa, temperature_isa
from aerosandbox.atmosphere._diff_atmo_functions import pressure_differentiable, temperature_differentiable
import aerosandbox.tools.units as u
### Define... | PypiClean |
/EQcorrscan-0.4.4.tar.gz/EQcorrscan-0.4.4/eqcorrscan/doc/submodules/core.subspace.rst | subspace
========
.. currentmodule:: eqcorrscan.core.subspace
.. automodule:: eqcorrscan.core.subspace
Subspace detection for either single-channel cases, or
network cases. This is modelled on the methods described by Harris_. This method
allows for slightly more variation in detected waveforms than the traditional... | PypiClean |
/LOONTEST-1.2.3-py3-none-any.whl/loon/l_layer.py | from tk import tk
from l_throwErrorIfNotLoonWidget import *
from nestedLists import *
from loon_class import *
#' @title Loon layers
#'
#' @description Loon supports layering of visuals and groups of visuals. The
#' \code{l_layer} function is a generic method.
#'
#' @details loon's displays that use the main g... | PypiClean |
/Nxpy-0.6.0.tar.gz/Nxpy-0.6.0/nxpy/svn/url.py |
# Copyright Nicola Musatti 2010 - 2014
# Use, modification, and distribution are subject to the Boost Software
# License, Version 1.0. (See accompanying file LICENSE.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# See http://nxpy.sourceforge.net for library home page. ---------------------
r"""
Subversion U... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/pubsub/core/topictreetraverser.py | class TopicTreeTraverser:
"""
Supports taking action on every topic in the topic tree. The traverse() method
traverses a topic tree and calls visitor._onTopic() for each topic in the tree
that satisfies visitor._accept(). Additionally it calls visitor._startChildren()
whenever it starts traversin... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/iron-location/.github/ISSUE_TEMPLATE.md | <!-- Instructions: https://github.com/PolymerElements/iron-location/CONTRIBUTING.md#filing-issues -->
### Description
<!-- Example: The `paper-foo` element causes the page to turn pink when clicked. -->
### Expected outcome
<!-- Example: The page stays the same color. -->
### Actual outcome
<!-- Example: The page t... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/utils/translation/template.py | import warnings
from io import StringIO
from django.template.base import Lexer, TokenType
from django.utils.regex_helper import _lazy_re_compile
from . import TranslatorCommentWarning, trim_whitespace
TRANSLATOR_COMMENT_MARK = "Translators"
dot_re = _lazy_re_compile(r"\S")
def blankout(src, char):
"""
Cha... | PypiClean |
/DeepPhysX-22.6.tar.gz/DeepPhysX-22.6/src/Network/BaseNetwork.py | from typing import Any, Dict
from numpy import ndarray
from collections import namedtuple
class BaseNetwork:
"""
| BaseNetwork is a network class to compute predictions from input data according to actual state.
:param namedtuple config: namedtuple containing BaseNetwork parameters
"""
def __ini... | PypiClean |
/Funz-1.15.post0-py3-none-any.whl/Funz-1.15.post0.data/scripts/client.py |
import os
from .inst.Funz.Funz import *
from Funz import FUNZ_HOME
def Run(model=None,input_files=None,
input_variables=None,all_combinations=False,
output_expressions=None,
run_control={'force_retry':2,'cache_dir':None},
monitor_control={'sleep':5,'dis... | PypiClean |
/NetCube-0.3.0.zip/NetCube-0.3.0/cube/config.py |
# Copyright 2005 Jeffrey J. Kyllo
# 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 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in ... | PypiClean |
/DeepCellTL-0.12.5.tar.gz/DeepCellTL-0.12.5/deepcell/utils/data_utils.py | """Functions for making training data"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import numpy as np
from sklearn.model_selection import train_test_split
from tensorflow.keras import backend as K
from keras.utils import conv_utils
from deepcell.util... | PypiClean |
/Antares_Launcher-1.3.0.tar.gz/Antares_Launcher-1.3.0/remote_scripts_templates/launchAntares_v1.1.2.sh |
INPUT_ZIPNAME=$1
ANTARES_VERSION=$2
JOB_TYPE=$3
POST_PROCESSING=$4
OTHER_OPTIONS=$5
# Set Variables and load modules
# ==============================
if [ "$ANTARES_VERSION" = "610" ]; then
export ANTARES_SOLVER_BIN="/path/to/antares/solver/610/antares-6.1-solver"
elif [ "$ANTARES_VERSION" = "700" ]; then
ex... | PypiClean |
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/_vendor/requests/adapters.py | import socket
from .models import Response
from .packages.urllib3.poolmanager import PoolManager, proxy_from_url
from .packages.urllib3.response import HTTPResponse
from .packages.urllib3.util import Timeout as TimeoutSauce
from .compat import urlparse, basestring, urldefrag, unquote
from .utils import (DEFAULT_CA_BUN... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/basic/lang/mn.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['mn']={"editor":"Хэлбэрт бичвэр боловсруулагч","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Үйлчлэгч тооц... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_qu-bo.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 |
/FicusFramework-3.1.0.post2.tar.gz/FicusFramework-3.1.0.post2/src/factdatasource/persistence/es/EsFactDatasourceContext.py | import logging
from munch import Munch
from api.model.Page import Page
from factdatasource.dao.FactDatasource import customer_dao_context_holder as costomer_context
from factdatasource.dao.es.EsDatasourceDao import EsDatasourceDao
from factdatasource.execptions import FDExecuteException
from factdatasource.persistenc... | PypiClean |
/Captcha-Impulse-0.0.9.tar.gz/Captcha-Impulse-0.0.9/src/impulse/yolov5/utils/callbacks.py | class Callbacks:
""""
Handles all registered callbacks for YOLOv5 Hooks
"""
def __init__(self):
# Define the available callbacks
self._callbacks = {
'on_pretrain_routine_start': [],
'on_pretrain_routine_end': [],
'on_train_start': [],
'on... | PypiClean |
/Catalyst_Lib-0.8.tar.gz/Catalyst_Lib-0.8/Catalyst_Lib/table.py | "─│┌┐└┘├┤┬┼┴═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬"
from .lists import contains_duplicates
"""
print("┌────────────────────────────────────┐")
print("│ │")
print("└────────────────────────────────────┘")
print("")
print("╔════════════════════════════════════╗")
print("╠═══════════════════════... | PypiClean |
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/docs/source/_themes/armstrong/README.rst | Armstrong Sphinx Theme
======================
Sphinx theme for Armstrong documentation
Usage
-----
Symlink this repository into your documentation at ``docs/_themes/armstrong``
then add the following two settings to your Sphinx ``conf.py`` file::
html_theme = "armstrong"
html_theme_path = ["_themes", ]
You ... | PypiClean |
/FastFlask-1.2.32-py3-none-any.whl/importlib_metadata/_itertools.py | from itertools import filterfalse
def unique_everseen(iterable, key=None):
"List unique elements, preserving order. Remember all elements ever seen."
# unique_everseen('AAAABBBCCDAABBB') --> A B C D
# unique_everseen('ABBCcAD', str.lower) --> A B C D
seen = set()
seen_add = seen.add
if key is ... | PypiClean |
/ConSReg-1.1.5.tar.gz/ConSReg-1.1.5/README.md | # ConSReg 1.1.4
[](https://opensource.org/licenses/MIT)
Condition-specific regulations
# Getting Started
## 1. Installation
### 1.1 Required packages
#### 1.1.1 Python
- python = 3.6
- numpy == 1.16.2
- scipy == 1.1.0
- pandas == 0.21.1
- joblib >= 0.... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Variables/EnumVariable.py |
__revision__ = "src/engine/SCons/Variables/EnumVariable.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan"
__all__ = ['EnumVariable',]
import SCons.Errors
def _validator(key, val, env, vals):
if val not in vals:
raise SCons.Errors.UserError(
'Invalid value for option %... | PypiClean |
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/oidc/core/errors.py | from authlib.oauth2 import OAuth2Error
class InteractionRequiredError(OAuth2Error):
"""The Authorization Server requires End-User interaction of some form
to proceed. This error MAY be returned when the prompt parameter value
in the Authentication Request is none, but the Authentication Request
cannot... | PypiClean |
/MessWithDevs-0.2.tar.gz/MessWithDevs-0.2/README.md | # MessWithDevs
Wind up people that leave their computers unattended, they should probably learn
if they haven't already!
## What does it do?
Ever noticed how a greek question mark, `;`, looks a lot like a semicolon, `;`,
and thought that this little coincidence could play havoc with compiling and
running code?
Prob... | PypiClean |
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/rlgym_tools/extra_state_setters/symmetric_setter.py | from rlgym.utils.state_setters import StateSetter
from rlgym.utils.state_setters import StateWrapper
from rlgym.utils.common_values import BALL_RADIUS, CEILING_Z, BLUE_TEAM
import numpy as np
from numpy import random as rand
X_MAX = 7000
Y_MAX = 9000
Z_MAX_CAR = 1900
PITCH_MAX = np.pi / 2
ROLL_MAX = np.pi
class Kick... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/meter_group_digest_demand_ranking_child.py |
from msrest.serialization import Model
class MeterGroupDigestDemandRankingChild(Model):
"""MeterGroupDigestDemandRankingChild.
:param cost:
:type cost: float
:param value:
:type value: float
:param meter_id:
:type meter_id: int
:param meter_code:
:type meter_code: str
:param ... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/fullscreen/plugin.min.js | !function(g){"use strict";var n,t,e,r,c=function(n){var t=n;return{get:function(){return t},set:function(n){t=n}}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=function(n){return{isFullscreen:function(){return null!==n.get()}}},i=function(){},a=function(n){return function(){return n}},l=a(!1),f=a(!0),d=funct... | PypiClean |
/CPM-Bee-2023.5.30.14.12.33.tar.gz/CPM-Bee-2023.5.30.14.12.33/chatllm/applications/chatann.py |
from meutils.pipe import *
from meutils.np_utils import cosine_topk
from chatllm.applications import ChatBase
from sentence_transformers import SentenceTransformer
class ChatANN(ChatBase):
def __init__(self, backend='in_memory', encode_model="nghuyong/ernie-3.0-nano-zh", **kwargs):
"""
:param ... | PypiClean |
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/examples/tutorial/simple_ensembles.py | import os
import sys
import pilot
import traceback
""" DESCRIPTION: Tutorial 1: A Simple Workload
Note: User must edit USER VARIABLES section
This example will not run if these values are not set.
"""
# ---------------- BEGIN REQUIRED PILOT SETUP -----------------
# Distributed Coordination Service - Redis server a... | PypiClean |
/ElectroMagneticPythonGpu-0.0.0.tar.gz/ElectroMagneticPythonGpu-0.0.0/examples/ex_laser_etch_monitor.py | from __future__ import print_function
# to make copies of Layer objects, instead of mutable references
from copy import copy, deepcopy
# for progress bar (sys.stdout)
import sys
import pylab
import numpy
import EMpy_gpu
# file of refractive indices, takes wavelengths in Microns!!
import nk
# Simulation Parameters
#... | PypiClean |
/OSF_EIMTC-0.1.46.tar.gz/OSF_EIMTC-0.1.46/src/EIMTC/plugins/res_req_diff_time.py | from EIMTC.stats.stats import IterableStats
from nfstream import NFPlugin
import numpy as np # for bytes distribution
class ResReqDiffTime(NFPlugin):
''' ResReqDiffTime |
Statistics of delta time between upload packets to download packets.
For example, if there are 3 consequtive packets at time t1 going f... | PypiClean |
/BALISTICA-1.0.0.tar.gz/BALISTICA-1.0.0/balistica/PhysicsEngine/IdealPhysicsHandler.py | import numpy as np
import pandas as pd
from balistica.PhysicsEngine.PhysicsHandler import PhysicsHandler
class IdealPhysicsHandler(PhysicsHandler):
def __init__(self, v0=0, theta=0, h=0, distance=-1):
self.v0 = v0
self.theta = theta
self.b = 0
self.height= h
self.distance =... | PypiClean |
/Azure-Sentinel-Utilities-0.6.5.tar.gz/Azure-Sentinel-Utilities-0.6.5/SentinelPortal/bookmark_helper.py | # pylint: disable-msg=C0103
# pylint: disable-msg=E0401
# pylint: disable-msg=E0602
# pylint: disable-msg=R0902
# pylint: disable-msg=R0903
# pylint: disable-msg=R0913
# pylint: disable-msg=W0201
# pylint: disable=line-too-long
import uuid
import requests
import jsons
from SentinelUtils import InputValidation
class ... | PypiClean |
/FEV_KEGG-1.1.4.tar.gz/FEV_KEGG-1.1.4/FEV_KEGG/Experiments/25.py | from FEV_KEGG.Evolution.Taxonomy import NCBI
import FEV_KEGG.KEGG.Organism
from FEV_KEGG.Statistics.Percent import getPercentSentence
def groupEcGraph(taxonomy):
#- Create a group of example organisms of Order.
nodes = taxonomy.getOrganismNodesByPath('Bacteria/Proteobacteria/Deltaproteobacteria/Desulfobactera... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Neo-Euler/fontdata.js | (function(o,e,A){var x="2.7.9";var b="NeoEulerMathJax_Alphabets",u="NeoEulerMathJax_Arrows",y="NeoEulerMathJax_Fraktur",t="NeoEulerMathJax_Main",k="NeoEulerMathJax_Marks",w="NeoEulerMathJax_NonUnicode",q="NeoEulerMathJax_Normal",z="NeoEulerMathJax_Operators",n="NeoEulerMathJax_Script",c="NeoEulerMathJax_Shapes",l="NeoE... | PypiClean |
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/Proposer/hpbandster/optimizers/config_generators/lcnet.py | import ConfigSpace
import numpy as np
import threading
from robo.models.lcnet import LCNet, get_lc_net
from hpbandster.core.base_config_generator import base_config_generator
def smoothing(lc):
new_lc = []
curr_best = np.inf
for i in range(len(lc)):
if lc[i] < curr_best:
curr_best = ... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/agw/aui/dockart.py | __author__ = "Andrea Gavana <andrea.gavana@gmail.com>"
__date__ = "31 March 2009"
import wx
from .aui_utilities import BitmapFromBits, StepColour, ChopText, GetBaseColour
from .aui_utilities import DrawGradientRectangle, DrawMACCloseButton
from .aui_utilities import DarkenBitmap, LightContrastColour
from .aui_consta... | PypiClean |
/GQCConstraints-1.1.1-py3-none-any.whl/GQCC/Methods/ExpectationValueSearch.py | import pandas as pd
def spinResolved(constrained_object, optimization_function, expectation_value_grid, initial_alpha_guesses=None, initial_beta_guesses=None, return_parameters=False, threshold=1e-5, verbose=0, **options):
"""
An optimization that optimizes the multiplier at each one of the provided expectati... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/utils/termcolors.py | color_names = ('black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white')
foreground = {color_names[x]: '3%s' % x for x in range(8)}
background = {color_names[x]: '4%s' % x for x in range(8)}
RESET = '0'
opt_dict = {'bold': '1', 'underscore': '4', 'blink': '5', 'reverse': '7', 'conceal': '8'}
def coloriz... | PypiClean |
/L1L2Signature-0.2.4.tar.gz/L1L2Signature-0.2.4/l1l2signature/plots.py |
# Author: Salvatore Masecchia <salvatore.masecchia@disi.unige.it>,
# Annalisa Barla <annalisa.barla@disi.unige.it>
# License: new BSD.
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.patches import Rectangle
from matplot... | PypiClean |
/CantrelleJouisseMamann-0.0.1.tar.gz/CantrelleJouisseMamann-0.0.1/philcantrel/module_carte.py |
# In[1]:
import cartopy.crs as ccrs
import cartopy.feature as cfeature
import matplotlib.pyplot as plt
import imageio
import moviepy
from moviepy.editor import ImageSequenceClip
#fonction pour voir les dechets en France selon les annees voulues
def plot_geo_time_value(x, y, df, lim_metropole = [-5, 10, 41, 52], ... | PypiClean |
/CoLT5-attention-0.10.15.tar.gz/CoLT5-attention-0.10.15/README.md | <img src="./colt5.png" width="400px"></img>
## CoLT5 Attention - Pytorch
Implementation of the conditionally routed efficient attention in the proposed <a href="https://arxiv.org/abs/2303.09752">CoLT5</a> architecture, in Pytorch.
They used coordinate descent from <a href="https://arxiv.org/abs/2211.01267">this pape... | PypiClean |
/Covid_19_Dashboard_Samuel_Thomas_CA_Yr1-0.0.1-py3-none-any.whl/ECM1400_CA_CODE/covid_data_interface.py | from werkzeug.utils import redirect
import datetime
from flask import Flask, render_template, request
from news_data_handling import ARTICLES, scheduler_news, headlines, process_news_api, update_news, logger_news_handler
from covid_data_handler import scheduler_covid, schedule_covid_updates, logger_covid_handler, sched... | PypiClean |
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/src/dendropy/legacy/continuous.py |
##############################################################################
## DendroPy Phylogenetic Computing Library.
##
## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder.
## All rights reserved.
##
## See "LICENSE.rst" for terms and conditions of usage.
##
## If you use this work or any portion there... | PypiClean |
/HolmesV-2021.10.8.tar.gz/HolmesV-2021.10.8/mycroft/skills/skill_data.py | import collections
import csv
import re
from os import walk
from os.path import splitext, join
from mycroft.util.format import expand_options
from mycroft.util.log import LOG
def read_vocab_file(path):
""" Read voc file.
This reads a .voc file, stripping out empty lines comments and expand
paren... | PypiClean |
/Chandler-DependencyPlugin-0.1.tar.gz/Chandler-DependencyPlugin-0.1/README.txt | This plugin adds rudimentary dependency tracking between items in Chandler.
To set an item as a dependency, copy the item, select another item, then go to the Edit > Dependencies menu. New Dependencies and Blocking menus will be added to items, selecting a dependency or blocker will navigate to that item.
There is c... | PypiClean |
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/dragonflow/db/drivers/zookeeper_db_driver.py |
import kazoo
from kazoo import client
from kazoo.handlers import eventlet
from kazoo import retry
import six
from dragonflow.common import exceptions as df_exceptions
from dragonflow.common import utils
from dragonflow.db import db_api
ROOT_NS = '/openstack'
CLIENT_CONNECTION_RETRIES = -1
ZK_MAX_RETRIES = 3
def ... | PypiClean |
/My-APScheduler-3.9.5.tar.gz/My-APScheduler-3.9.5/.github/ISSUE_TEMPLATE.md | This issue tracker is **ONLY** for reporting bugs.
Issues other than bug reports will be summarily closed.
Any support questions or feature requests should be directed to:
* [StackOverflow](http://stackoverflow.com/questions/tagged/apscheduler)
* [Gitter](https://gitter.im/apscheduler/Lobby)
* [Google groups](http://... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/form/manager/_ClassMixin.js.uncompressed.js | define("dojox/form/manager/_ClassMixin", [
"dojo/_base/lang",
"dojo/_base/kernel",
"dojo/dom-class",
"./_Mixin",
"dojo/_base/declare"
], function(lang, dojo, domClass, _Mixin, declare){
var fm = lang.getObject("dojox.form.manager", true),
aa = fm.actionAdapter,
ia = fm.inspectorAdapter;
return declare("dojo... | PypiClean |
/GelReportModels-7.8.0.tar.gz/GelReportModels-7.8.0/protocols/migration/migration_reports_500_to_reports_400.py | import logging
import distutils.util
from protocols import reports_4_0_0 as reports_4_0_0
from protocols import reports_5_0_0 as reports_5_0_0
from protocols.migration.base_migration import BaseMigrateReports400And500
from protocols.migration.base_migration import MigrationError
from protocols.migration import Migrate... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/59806.11b62577f60fa025dd12.min.js | "use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[59806],{22424:function(n,e,t){var o=t(87537),s=t.n(o),r=t(23645),l=t.n(r)()(s());l.push([n.id,".hljs{display:block;overflow-x:auto;padding:.5em;background:#fff;color:#000}.hljs-comment,.hljs-quote{color:#800}.h... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/encoding/crypto/SimpleAES.js.uncompressed.js | define("dojox/encoding/crypto/SimpleAES", ["../base64", "./_base"],
function(base64, crypto){
/*=====
crypto = dojox.encoding.crypto;
=====*/
// Sbox is pre-computed multiplicative inverse in GF(2^8) used in SubBytes and KeyExpansion [��5.1.1]
var Sbox = [0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67... | PypiClean |
/datashape-0.5.2.tar.gz/datashape-0.5.2/datashape/typesets.py | from itertools import chain
from .coretypes import (Unit, int8, int16, int32, int64, uint8, uint16, uint32,
uint64, float16, float32, float64, complex64,
complex128, bool_, Decimal, TimeDelta, Option)
__all__ = ['TypeSet', 'matches_typeset', 'signed', 'unsigned', 'inte... | PypiClean |
/Beetroot-1.1.7.4.tar.gz/Beetroot-1.1.7.4/README.rst | ===============
Python-Beetroot
===============
Beetroot, a general purpose library full of random python functions that I thought were useful. Has file manipulation, random, tts and more!
Have fun using it!
Also, to make JSON dumping and reading faster, do ``pip install ujson`` or ``pip install simplejson``
If you ... | PypiClean |
/LUBEAT-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl/econml/iv/nnet/_deepiv.py | import numpy as np
from ..._cate_estimator import BaseCateEstimator
from ...utilities import check_input_arrays, _deprecate_positional, deprecated, MissingModule
try:
import keras
from keras import backend as K
import keras.layers as L
from keras.models import Model
except ImportError as exn:
keras ... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/unemployment.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 unemployment(path):
"""Unemployment Duration
a cross-section from 1993
*number of obser... | PypiClean |
/CryptoLyzer-0.9.1-py3-none-any.whl/cryptolyzer/tls/analyzer.py |
from cryptoparser.tls.version import TlsProtocolVersion, TlsVersion
from cryptolyzer.common.analyzer import ProtocolHandlerTlsBase, ProtocolHandlerTlsExactVersion
from cryptolyzer.tls.pubkeys import AnalyzerPublicKeys
from cryptolyzer.tls.pubkeyreq import AnalyzerPublicKeyRequest
from cryptolyzer.tls.ciphers import A... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/jinja2_35/jinja2/lexer.py | import re
from collections import deque
from operator import itemgetter
from jinja2._compat import implements_iterator, intern, iteritems, text_type
from jinja2.exceptions import TemplateSyntaxError
from jinja2.utils import LRUCache
# cache for the lexers. Exists in order to be able to have multiple
# environments wi... | PypiClean |
/KratosSwimmingDEMApplication-9.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/SwimmingDEMApplication/custom_body_force/polynomial_vortex.py | import KratosMultiphysics
import numpy as np
## Import base class file
from custom_body_force.manufactured_solution import ManufacturedSolution
def CreateManufacturedSolution(custom_settings):
return PolynomialVortex(custom_settings)
class PolynomialVortex(ManufacturedSolution):
def __init__(self, settings):... | PypiClean |
/Goulib-2.0.9.tar.gz/Goulib-2.0.9/README.rst | Goulib
======
library of useful Python code for scientific + technical applications.
see the `IPython notebook <http://nbviewer.ipython.org/github/Goulu/Goulib/blob/master/notebook.ipynb>`_ for an overview of features
.. image:: https://badge.fury.io/gh/goulu%2Fgoulib.svg
:target: https://badge.fury.io/gh/goulu%... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/datastructures/network/network.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import compas
if compas.PY2:
from collections import Mapping
else:
from collections.abc import Mapping
from compas.files import OBJ
from compas.utilities import geometric_key
from compas.geometry imp... | PypiClean |
/NeuroUnits-0.1.2.tar.gz/NeuroUnits-0.1.2/src/neurounitscontrib/demo/plugins/demo1.py | import mreorg
import neurounits
import sys
import numpy as np
import pylab
#from neurounits.nineml import build_compound_component
#from neurounits.nineml import simulate_component
from neurounits import NineMLComponent
from neurounitscontrib.demo import DemoPluginBase
from neurounits import NutsIO
import glob
... | PypiClean |
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/DeviceFirmwareMultipartUploadREDFISH.py |
import argparse
import getpass
import json
import logging
import os
import platform
import re
import requests
import subprocess
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser=argparse.ArgumentParser(description="Python script u... | PypiClean |
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/autocomplete_account_array.py | import re # noqa: F401
import sys # noqa: F401
from firefly_iii_client.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,... | PypiClean |
/Mopidy-SevenSegmentDisplay-0.3.1.tar.gz/Mopidy-SevenSegmentDisplay-0.3.1/mopidy_sevensegmentdisplay/ir.py | from __future__ import division
from __future__ import unicode_literals
import time
import lirc
import logging
from subprocess import call
from threader import Threader
class IrReceiver(Threader):
def __init__(self, ir_receiver_enabled, on_power, on_menu, on_left, on_right, on_vol_down, on_vol_up, on_mute, on_p... | PypiClean |
/DisplaceNet-0.1.tar.gz/DisplaceNet-0.1/engine/object_detection_branch/single_shot_detector/ssd_encoder_decoder/matching_utils.py | from __future__ import division
import numpy as np
def match_bipartite_greedy(weight_matrix):
'''
Returns a bipartite matching according to the given weight matrix.
The algorithm works as follows:
Let the first axis of `weight_matrix` represent ground truth boxes
and the second axis anchor boxes.... | PypiClean |
/Lysidike-0.1.2.tar.gz/Lysidike-0.1.2/lysidike/publishgateway.py | from pelops.abstractmicroservice import AbstractMicroservice
from lysidike.services.servicefactory import ServiceFactory
from lysidike.tasks.taskfactory import TaskFactory
from lysidike.schema.publishgateway import get_schema
import lysidike
class PublishGateway(AbstractMicroservice):
"""
Provides the possibi... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/asterisk/asterisk.js | (function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use st... | PypiClean |
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/models/data_store/psql_helpers.py | import numpy as np
import io
from struct import pack
import datetime
import asyncpg
from typing import List, Optional, Tuple, Dict
import logging
import psycopg2.sql
from joule.errors import DataError
from joule.models.data_stream import DataStream
import joule.utilities
log = logging.getLogger('joule')
postgres_ts... | PypiClean |
/MetaPathways-3.1.6.tar.gz/MetaPathways-3.1.6/metapathways/scripts/MetaPathways_extract_pathways.py |
from __future__ import division
__author__ = "Kishori M Konwar"
__copyright__ = "Copyright 2013, MetaPathways"
__credits__ = ["r"]
__version__ = "1.0"
__maintainer__ = "Kishori M Konwar"
__status__ = "Release"
try:
import os
from sys import path
import re
import operator
import math
import pi... | PypiClean |
/FunID-0.3.16.2.tar.gz/FunID-0.3.16.2/funid/external/trimal.v1.4/trimAl/scripts/check_codon_alignments.py |
#
# 'check_codon_alignments.py'
#
# Script implemented to analyze resulting back-translated alignments by trimAl
# Main idea here is to remove those codon-columns composed by only 'N'/'n' -
# which are the symbol to indicate indeterminate nucleotides.
#
# [2014] S. Capella-Gutierrez - scapella@crg.es
#
# thi... | PypiClean |
/BEATluzgool-1.0.1-py3-none-any.whl/econml/iv/dml/_dml.py | import numpy as np
from sklearn.base import clone
from sklearn.linear_model import LinearRegression, LogisticRegressionCV
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import FunctionTransformer
from itertools import product
from ..._ortho_learner import _OrthoLearner
from ..._cate_estimator import ... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/people/migrations/0026_auto_20171120_0730.py |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('people', '0025_auto_20170924_0932'),
]
operations = [
migrations.AddField(
model_name='profile',
name='language',
field=models.CharField(default='en', ... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js | 'use strict';
{
const DateTimeShortcuts = {
calendars: [],
calendarInputs: [],
clockInputs: [],
clockHours: {
default_: [
[gettext_noop('Now'), -1],
[gettext_noop('Midnight'), 0],
[gettext_noop('6 a.m.'), 6],
... | PypiClean |
/FAST-2.5.tar.gz/FAST-2.5/server/dbload.py |
# Stefan Chakerian schake@sandia.gov
# Sandia National Labs
# Dec 2007
# a note for the weak:
# On software, /usr/bin/python is the RHN version, and has mysql db module installed
# /usr/local/bin/python is a higher version of python, but DOES NOT have mysql
# Yeah, you're right. It is messed up.
import xml
import... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/contrib/contenttypes/views.py | from djmodels.apps import apps
from djmodels.contrib.contenttypes.models import ContentType
from djmodels.contrib.sites.shortcuts import get_current_site
from djmodels.core.exceptions import ObjectDoesNotExist
from djmodels.http import Http404, HttpResponseRedirect
from djmodels.utils.translation import gettext as _
... | PypiClean |
/Nikola-8.2.4-py3-none-any.whl/nikola/plugins/command/import_wordpress.py |
# Copyright © 2012-2023 Roberto Alsina and others.
# 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, mer... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/twig/twig.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../../addon/mode/multiplex"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "../../addon/mode/multiplex"], mod);
else // P... | PypiClean |
/Flask-REST-multiformat-api-0.1.0.tar.gz/Flask-REST-multiformat-api-0.1.0/flask_rest_multiformat_api/format/simple_json.py | import json
from flask import make_response
from flask_rest_multiformat_api.errors import InvalidDataformatError
from flask_rest_multiformat_api.exceptions import ApiException
class SipleJsonFormater():
def build_data_dict(self, orm_obj__dict, type=''):
return orm_obj__dict
def parse(self, d... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.