id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/BiobankRead2-3.1.tar.gz/BiobankRead2-3.1/Scripts/extract_HES.py
import os import sys import argparse import pandas as pd import re import numpy as np '''Example run: python HES_extract.py --csv ukb21204.csv --html ukb21204.html --excl x/y/z.csv \ --tsv ukb.tsv --codes C49 --codeType ICD10 --baseline True --dateType epistart --out t...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/storage/FlashStorageProvider.js.uncompressed.js
define("dojox/storage/FlashStorageProvider", ["dijit","dojo","dojox","dojo/require!dojox/flash,dojox/storage/manager,dojox/storage/Provider"], function(dijit,dojo,dojox){ dojo.provide("dojox.storage.FlashStorageProvider"); dojo.require("dojox.flash"); dojo.require("dojox.storage.manager"); dojo.require("dojox.storage....
PypiClean
/Haus-0.1.0.tar.gz/Haus-0.1.0/haus/cli.py
import sys from os.path import abspath from optparse import OptionParser from wsgiref.simple_server import make_server from pkg_resources import iter_entry_points, \ Requirement, \ resource_filename from resolver import resolve from memento import Assassin from ske...
PypiClean
/Flask-AppBuilder-jack-3.3.4.tar.gz/Flask-AppBuilder-jack-3.3.4/flask_appbuilder/security/registerviews.py
__author__ = "Daniel Gaspar" import logging from flask import flash, redirect, request, session, url_for from flask_babel import lazy_gettext from .forms import LoginForm_oid, RegisterUserDBForm, RegisterUserOIDForm from .. import const as c from .._compat import as_unicode from ..validators import Unique from ..vie...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/drawing/library/greek.js.uncompressed.js
define("dojox/drawing/library/greek", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){ dojo.provide("dojox.drawing.library.greek"); dojox.drawing.library.greek = { // summary: // Greek characters used by typesetter and greekPalette. // description: // These are used to convert between the character and // ...
PypiClean
/HarmoniaCosmo-0.1.2-py3-none-any.whl/harmonia/algorithms/discretisation.py
import logging import numpy as np from .bases import spherical_besselj, spherical_besselj_root class DiscreteSpectrum: r"""Discrete Fourier spectrum under radial boundary conditions. The spectral modes are indexed by tuple :math:`(\ell, n)`, where :math:`\ell` is the spherical degree associated with th...
PypiClean
/AllTray-0.1.1.tar.gz/AllTray-0.1.1/alltray/tray.py
import sys import subprocess import threading import locale import argparse import shlex import os.path from functools import partial from PyQt4 import QtGui, QtCore from alltray import __version__ class TrayDialog(QtGui.QDialog): logThread = None def __init__(self, settings, parent=None): super(T...
PypiClean
/NNGT-2.7.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl/nngt/analysis/nx_functions.py
import numpy as np import scipy.sparse as ssp from ..lib.test_functions import nonstring_container, is_integer from ..lib.graph_helpers import _get_nx_weights, _get_nx_graph import networkx as nx def global_clustering_binary_undirected(g): ''' Returns the undirected global clustering coefficient. This ...
PypiClean
/FEADRE_AI-1.0.7.tar.gz/FEADRE_AI-1.0.7/FEADRE_AI/fmath/calc_3d/model_3d.py
import cv2 import numpy as np def get_camera_matrix_1(h, w): ''' 1强 ''' x, y = w / 2., h / 2. f_x = x / np.tan(60 / 2 * np.pi / 180) f_y = f_x camera_matrix = np.array( [[f_x, 0, x], [0, f_y, y], [0, 0, 1]], dtype="double" ) return camera_matrix def get_camera_m...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/utils/dictconfig.py
import logging.handlers import re import sys import types from django.utils import six IDENTIFIER = re.compile('^[a-z_][a-z0-9_]*$', re.I) def valid_ident(s): m = IDENTIFIER.match(s) if not m: raise ValueError('Not a valid Python identifier: %r' % s) return True # # This function is defined in ...
PypiClean
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/src/envs/merge_env.py
import numpy as np from gym.envs.registration import register from highway_env import utils from highway_env.envs.common.abstract import AbstractEnv from highway_env.road.lane import LineType, StraightLane, SineLane from highway_env.road.road import Road, RoadNetwork from highway_env.vehicle.controller import Controll...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/views/generic/base.py
import logging from asgiref.sync import iscoroutinefunction, markcoroutinefunction from django.core.exceptions import ImproperlyConfigured from django.http import ( HttpResponse, HttpResponseGone, HttpResponseNotAllowed, HttpResponsePermanentRedirect, HttpResponseRedirect, ) from django.template.r...
PypiClean
/Cartridge-1.3.4-py3-none-any.whl/cartridge/shop/management/commands/product_db.py
import csv import datetime import os import shutil from django.core.management.base import BaseCommand, CommandError from django.db.utils import IntegrityError from django.utils.translation import gettext as _ from mezzanine.conf import settings from mezzanine.core.models import CONTENT_STATUS_PUBLISHED from cartridg...
PypiClean
/NNBuilder-0.3.7.tar.gz/NNBuilder-0.3.7/nnbuilder/layers/simple.py
from basic import * class Linear(LayerBase): def __init__(self, unit, **kwargs): ''' :param unit: :param kwargs: ''' LayerBase.__init__(self, **kwargs) self.unit_dim = unit def set_params(self): self.weight = Parameter(self, 'Weight', Parameter.weight,...
PypiClean
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/models/anchor_heads/ga_rpn_head.py
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import normal_init from mmdet.core import delta2bbox from mmdet.ops import nms from ..registry import HEADS from .guided_anchor_head import GuidedAnchorHead @HEADS.register_module class GARPNHead(GuidedAnchorHead): """Guided-Anchor-...
PypiClean
/GuangTestBeat-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl/econml/data/dynamic_panel_dgp.py
import numpy as np from econml.utilities import cross_product from statsmodels.tools.tools import add_constant import pandas as pd import scipy as sp from scipy.stats import expon from sklearn.linear_model import LinearRegression import matplotlib.pyplot as plt import joblib import os dir = os.path.dirname(__file__) ...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/markdown/markdown.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../xml/xml"), require("../meta")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../xml/xml", "../meta"], mod); else // Pla...
PypiClean
/Eskapade_Spark-1.0.0-py3-none-any.whl/eskapadespark/tutorials/esk610_spark_streaming_wordcount.py
r"""Project: Eskapade - A python-based package for data analysis. Macro: esk610_spark_streaming Created: 2017/05/31 Description: Tutorial macro running Spark Streaming word count example in Eskapade, derived from: https://spark.apache.org/docs/latest/streaming-programming-guide.html Counts words in...
PypiClean
/GoogleNewsScraper-0.0.9.tar.gz/GoogleNewsScraper-0.0.9/README.md
# googlenewsscraper ## Getting Started ### Installation ```bash pip install GoogleNewsScraper ``` # Reference ## Importing ```Python from GoogleNewsScraper import GoogleNewsScraper ``` ## Instantiating Scraper ```Python GoogleNewsScraper(driver) ``` **Constructor Parameters** | Name | Type | Required ...
PypiClean
/GangGang-0.4.tar.gz/GangGang-0.4/GangGang.py
import socket import pickle import sys import time def recv_timeout( the_socket , timeout=1): # implements recvall, from http://www.binarytides.com/receive-full-data-with-the-recv-socket-function-in-python/ the_socket.setblocking(0) total_data=[] data='' begin = time.time() while True: #if ...
PypiClean
/HeiankyoView-1.0.tar.gz/HeiankyoView-1.0/lib/heiankyoview.py
import numpy as np import math def p(msg): pass #print(msg) def half(n): assert(n % 2 == 0) return n / 2 def delElems(L, indices): DL = [] for i in xrange(0, len(indices)): idx = indices[i] DL.append( idx - i ) for i in DL: L.pop(i) class EdgeList: @classmethod def read(cls, filename): f = open(fil...
PypiClean
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/layers/misc.py
import math import torch from torch import nn from torch.nn.modules.utils import _ntuple class _NewEmptyTensorOp(torch.autograd.Function): @staticmethod def forward(ctx, x, new_shape): ctx.shape = x.shape return x.new_empty(new_shape) @staticmethod def backward(ctx, grad): sha...
PypiClean
/Flask-DebugToolbar-0.13.1.tar.gz/Flask-DebugToolbar-0.13.1/src/flask_debugtoolbar/static/codemirror/mode/rpm/spec/spec.js
CodeMirror.defineMode("spec", function(config, modeConfig) { var arch = /^(i386|i586|i686|x86_64|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/; var preamble = /^(Name|Version|Release|License|Summary|Url|Group|Source|BuildArch|BuildRequires|BuildRoot|AutoReqProv|Provides|Requi...
PypiClean
/MojangSkin-1.0.0.tar.gz/MojangSkin-1.0.0/LICENSE.md
MIT License Copyright (c) 2018 YOUR NAME Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribut...
PypiClean
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/message_result.py
import re # noqa: F401 import sys # noqa: F401 from freeclimb.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, vali...
PypiClean
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Examples/SoC2006/RJL/P2PStreamSeed/p2pstreamseed.py
from Kamaelia.Chassis.Pipeline import Pipeline from Kamaelia.Chassis.Graphline import Graphline from Kamaelia.Util.Fanout import Fanout from Kamaelia.Util.Chunkifier import Chunkifier from Kamaelia.Util.ChunkNamer import ChunkNamer from Kamaelia.File.WholeFileWriter import WholeFileWriter from Kamaelia.Protocol.Torre...
PypiClean
/ObjectListView-1.3.1.zip/ObjectListView-1.3.1/Examples/BatchedUpdateExample.py
import datetime import os import os.path import threading import time import wx # Where can we find the ObjectListView module? import sys sys.path.append("..") from ObjectListView import FastObjectListView, ObjectListView, ColumnDefn, BatchedUpdate # We store our images as python code import ExampleImages class MyF...
PypiClean
/CI_CloudConnector-0.60.zip/CI_CloudConnector-0.60/CI_CloudConnector.py
import threading , pip , CI_LC_BL, time , datetime , json from datetime import datetime import sys, logging import cpppo from cpppo.server.enip import address, client upgradeCounter = 0 serverVersion = '' threadTimer = None watchDogThreadTimer = None from threading import Timer class RepeatedTimer(object): d...
PypiClean
/Regression/TimeSeries.py
import numpy as np class GreyPrediction: def __init__(self, alpha=0.5, inspect=False): """ The setting of grey prediction :param alpha: the coefficient of neighbour adding, with default as 0.5, float in (0, 1) :param inspect: whether need to inspect GM(1, 1) is useful, with defaul...
PypiClean
/Mopidy_MPD-3.3.0-py3-none-any.whl/mopidy_mpd/exceptions.py
from mopidy.exceptions import MopidyException class MpdAckError(MopidyException): """See fields on this class for available MPD error codes""" ACK_ERROR_NOT_LIST = 1 ACK_ERROR_ARG = 2 ACK_ERROR_PASSWORD = 3 ACK_ERROR_PERMISSION = 4 ACK_ERROR_UNKNOWN = 5 ACK_ERROR_NO_EXIST = 50 ACK_ER...
PypiClean
/ANNOgesic-1.1.14.linux-x86_64.tar.gz/usr/local/lib/python3.10/dist-packages/annogesiclib/sRNA_utr_derived.py
import os, gc import math import numpy as np from annogesiclib.gff3 import Gff3Parser from annogesiclib.lib_reader import read_wig, read_libs from annogesiclib.coverage_detection import coverage_comparison, get_repmatch from annogesiclib.coverage_detection import replicate_comparison from annogesiclib.args_container im...
PypiClean
/braid-0.1.tar.gz/braid-0.1/braid/berry/layers/pooling.py
from __future__ import division import tensorflow as tf import warnings from .base import Layer from ..activations import get_activation from .. import initializations as init from ..utils import print_activations, get_convolve_shape from ..config import BerryKeys __all__ = [ "MaxPooling2D" ] class MaxPooling2D(...
PypiClean
/AISTLAB_novel_grab-1.2.12.tar.gz/AISTLAB_novel_grab-1.2.12/README.md
# AISTLAB novel grab > novel grab crawler module using python3 and lxml > > multiprocesssing with multithread version > > winxos, AISTLAB Since 2017-02-19 ## INSTALL: ``` pip3 install aistlab_novel_grab ``` ## 1. USAGE: RUN COMMAND IN CONSOLE: ```novel_grab http://the_url_of_novel_chapters_page``` EXAMPLE: ```nove...
PypiClean
/CommonlyTools-2.1.3-py3-none-any.whl/commonlytools/discohook.py
from .error import * import requests import datetime class Embed: def __init__(self, title:str=None, description:str=None, timestamp:datetime.datetime=None, color=0xffffff, colour=0xffffff): self._title=title self._description=description if str(color).startswith("0x") or str(colour).start...
PypiClean
/BenchExec-3.17.tar.gz/BenchExec-3.17/benchexec/containerized_tool.py
import collections import contextlib import errno import functools import inspect import logging import multiprocessing import os import signal import socket import tempfile from benchexec import ( BenchExecException, container, containerexecutor, libc, tooladapter, util, ) tool: tooladapter...
PypiClean
/AMQPStorm-2.10.6.tar.gz/AMQPStorm-2.10.6/README.rst
AMQPStorm ========= Thread-safe Python RabbitMQ Client & Management library. |Version| Introduction ============ AMQPStorm is a library designed to be consistent, stable and thread-safe. - 100% Test Coverage! - Supports Python 2.7 and Python 3.3+. - Fully tested against Python Implementations; CPython and PyPy. Doc...
PypiClean
/Fhire-0.0.9.tar.gz/Fhire-0.0.9/fhire/fhire_pojo/procedure/get_procedure.py
from dataclasses import dataclass from typing import Optional, Any, List, TypeVar, Type, Callable, cast from uuid import UUID from datetime import datetime import dateutil.parser T = TypeVar("T") def from_none(x: Any) -> Any: assert x is None return x def from_str(x: Any) -> str: assert isinstance(x,...
PypiClean
/DTSR-0.2.0.tar.gz/DTSR-0.2.0/README.md
# Deconvolutional time series regression (DTSR) DTSR is a regression technique for modeling temporally diffuse effects (Shain & Schuler, to appear). This repository contains source code for the `dtsr` Python module as well as support for reproducing published experiments. Full documentation for the `dtsr` module is av...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/ebmlib/osutil.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: $" __revision__ = "$Revision: $" __all__ = ['InstallTermHandler', 'GetWindowsDrives', 'GetWindowsDriveType', 'GenericDrive', 'FixedDrive', 'CDROMDrive', 'RamDiskDrive', 'RemoteDrive', 'RemovableDrive' ] #-------------...
PypiClean
/MdNotes_CC-1.0-py3-none-any.whl/md_notes_cc/http/auth/o_auth_2.py
import base64 import calendar from datetime import datetime from md_notes_cc.controllers.o_auth_authorization_controller import OAuthAuthorizationController from md_notes_cc.configuration import Configuration class OAuth2: @classmethod def apply(cls, http_request): """ Add OAuth2 authentication to th...
PypiClean
/Climind-0.1-py3-none-any.whl/climind/plotters/plot_types.py
import copy import itertools from pathlib import Path import cartopy.crs as ccrs from cartopy.util import add_cyclic_point import matplotlib.pyplot as plt import matplotlib.patches as patches from matplotlib.transforms import Bbox import seaborn as sns import numpy as np from typing import List, Union from climind.da...
PypiClean
/Notesh-0.7-py3-none-any.whl/notesh/drawables/drawable.py
from __future__ import annotations from typing import Any, Optional, OrderedDict, Type, TypeVar, cast from rich.markdown import Markdown from textual import events from textual.app import ComposeResult from textual.color import Color from textual.containers import Vertical from textual.geometry import Offset, Size fr...
PypiClean
/CNVkit-0.9.10-py3-none-any.whl/skgenome/merge.py
import itertools import numpy as np import pandas as pd from .chromsort import sorter_chrom from .combiners import get_combiners, first_of def flatten(table, combine=None, split_columns=None): """Combine overlapping regions into single rows, similar to bedtools merge.""" if not len(table): return ta...
PypiClean
/Gooey-1.2.0a0.tar.gz/Gooey-1.2.0a0/gooey/examples/language_demo_russian.py
import sys import hashlib from time import time as _time from time import sleep as _sleep from gooey import Gooey from gooey import GooeyParser from gooey.examples import display_message @Gooey(language='russian', program_name=u'\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0...
PypiClean
/Flickr-nqcuong96-1.1.2.tar.gz/Flickr-nqcuong96-1.1.2/Flickr/__main__.py
import argparse import getpass from Flickr.model.flickr import * def get_arguments(): parser = argparse.ArgumentParser( description="This script support several features such as, to allow our users to mirror images only, information (i.e.,title, description, comments) only, or both.") parser.add_ar...
PypiClean
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/runtime/odata/query_options.py
def _normalize(key, value): if key == "select" or key == "expand": return ",".join(value) return value class QueryOptions(object): def __init__(self, select=None, expand=None, filter_expr=None, orderBy=None, top=None, skip=None): """ A query option is a set of query string paramet...
PypiClean
/MatchZoo-2.2.0.tar.gz/MatchZoo-2.2.0/matchzoo/preprocessors/units/character_index.py
import numpy as np from .unit import Unit class CharacterIndex(Unit): """ CharacterIndexUnit for DIIN model. The input of :class:'CharacterIndexUnit' should be a list of word character list extracted from a text. The output is the character index representation of this text. :class:`NgramLe...
PypiClean
/NREL-jade-0.9.9.tar.gz/NREL-jade-0.9.9/jade/utils/utils.py
from datetime import datetime, date from pathlib import PosixPath, WindowsPath from typing import Union import enum import functools import gzip import logging import json import os import re import shutil import stat import sys from dateutil.parser import parse import toml from pydantic import BaseModel from jade.e...
PypiClean
/Feedjack-16.8.1.tar.gz/Feedjack-16.8.1/feedjack/views.py
from django.utils import feedgenerator from django.shortcuts import render_to_response from django.http import HttpResponse, Http404, HttpResponsePermanentRedirect from django.utils.cache import patch_vary_headers from django.template import Context, RequestContext, loader from django.views.generic import RedirectVie...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/libs/Sortable.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sortable=e()}(this,function(){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/registries/registry.py
import logging from typing import (Dict, Generic, Iterable, Iterator, List, Optional, Sequence, Set, TYPE_CHECKING, Type, TypeVar) from django.utils.translation import gettext_lazy as _ from pkg_resources import EntryPoint, iter_entry_points from typing_extensions import Final, TypeAlias from djbl...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/encoding/crypto/RSAKey-ext.js
if(!dojo._hasResource["dojox.encoding.crypto.RSAKey-ext"]){ dojo._hasResource["dojox.encoding.crypto.RSAKey-ext"]=true; dojo.provide("dojox.encoding.crypto.RSAKey-ext"); dojo.experimental("dojox.encoding.crypto.RSAKey-ext"); dojo.require("dojox.encoding.crypto.RSAKey"); dojo.require("dojox.math.BigInteger-ext"); (funct...
PypiClean
/BotEXBotBase-3.1.3.tar.gz/BotEXBotBase-3.1.3/redbot/core/utils/settings.py
from .dataIO import dataIO from copy import deepcopy import discord import os import argparse default_path = "data/red/settings.json" class Settings: def __init__(self, path=default_path, parse_args=True): self.path = path self.check_folders() self.default_settings = { "TOKEN...
PypiClean
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/types/user_and_chats/user.py
import html from datetime import datetime from typing import List, Optional import newgram from newgram import enums, utils from newgram import raw from newgram import types from ..object import Object from ..update import Update class Link(str): HTML = "<a href={url}>{text}</a>" MARKDOWN = "[{text}]({url})...
PypiClean
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/DeviceFirmwareSimpleUpdateCheckVersionREDFISH.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...
PypiClean
/Flask_Admin-1.6.1-py3-none-any.whl/flask_admin/static/vendor/bootstrap4/modal.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) : typeof define === 'function' && define.amd ? define(['jquery', './util.js'], factory) : (global = global || self, global.Modal = factory(global.jQuery, g...
PypiClean
/Flask-Navigation-0.2.0.tar.gz/Flask-Navigation-0.2.0/README.rst
|Build Status| |Coverage Status| |PyPI Version| |PyPI Downloads| |Wheel Status| Flask-Navigation ================ Build navigation bars in your Flask application. :: nav.Bar('top', [ nav.Item('Home', 'index'), nav.Item('Latest News', 'news', {'page': 1}), ]) Installation ------------ :: ...
PypiClean
/Heimdallr-0.2.7-py36-none-any.whl/heimdallr/utilities/server/github_org_generators.py
from datetime import datetime, timedelta from enum import Enum from typing import Generator, Iterable, List, Union from github import Github # pip install PyGithub from github.GithubObject import NotSet from github.Issue import Issue from github.Label import Label from github.Milestone import Milestone from github.Na...
PypiClean
/IPFX-1.0.8.tar.gz/IPFX-1.0.8/ipfx/bin/mcc_get_settings.py
import ctypes as ct import os import time import json import datetime import argparse from watchdog.events import RegexMatchingEventHandler from watchdog.observers import Observer # Original code taken from https://github.com/tgbugs/inferno/core/mcc.py, commit 3d555888 (Update README.md, 2017-08-02) # Original Licens...
PypiClean
/daxfi-1.1.tar.gz/daxfi-1.1/modules/daxfi/_rulesutils.py
import socket from daxfi._exceptions import * from daxfi._syslog import * from daxfi import iplib # --- Strings that are XML tags # - Valid XML tags. # Names of the firewall actions as used in the XML. xml_actions = ('append', 'delete', 'replace', 'insert', 'flush') # Supported protocols. xml_protocols = ('tcp', ...
PypiClean
/Lokai-0.3.tar.gz/Lokai-0.3/lokai/tool_box/tb_forms/form.py
#----------------------------------------------------------------------- # based on: # """$URL: svn+ssh://svn.mems-exchange.org/repos/trunk/quixote/form/form.py $ # $Id: form.py, v 1.14 2007/01/31 09:46:59 mark Exp $ # # Provides the Form class and related classes. Forms are a convenient # way of building HTML forms...
PypiClean
/ARC_Alkali_Rydberg_Calculator-3.3.0-cp311-cp311-win_amd64.whl/arc/advanced/population_lifetime.py
from scipy.integrate import odeint from lmfit import minimize, Parameters, report_fit import matplotlib.pyplot as plt import numpy as np import sys from arc._database import UsedModulesARC """ **Contributors:** getPopulationLifetime - written by Alessandro Greco, Dipartimento di Fisica *E. Fermi*, Univers...
PypiClean
/51job_autotest_framework-0.3.1-py3-none-any.whl/rolling_king/jason/python/tools/zy_schedule.py
import schedule import time import threading import functools import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s') # logging.basicConfig函数对日志的输出格式及方式做相关配置 logger = logging.getLogger('com.autotest.db.sqlalchemy_u...
PypiClean
/LiamHsieh_toolbox-0.3.4.6-py3-none-any.whl/toolbox/utility.py
import os import datetime import pickle import time from logging.config import fileConfig import logging from pdb import set_trace as bp def file_last_update_datetime(filepath:str, datetime_only:bool=False): modTimesinceEpoc = os.path.getmtime(filepath) modificationTime = datetime.datetime.utcfromtimestamp(m...
PypiClean
/Deeplodocus-0.3.0-py3-none-any.whl/deeplodocus/callbacks/printer.py
from decimal import Decimal from deeplodocus.utils.notification import Notification from deeplodocus.flags import TOTAL_LOSS, TRAINING, VALIDATION # NEEDS TO BE RELOCATED from deeplodocus.brain.thalamus import Thalamus from deeplodocus.flags.event import DEEP_EVENT_PRINT_TRAINING_EPOCH_END from deeplodocus.fla...
PypiClean
/FillingTimeSeries-1.0.0.tar.gz/FillingTimeSeries-1.0.0/README.md
# Filling Time Series (v.1.0.0) ## Filling missing values in geophysical time series ### Contact - Rolando Jesus Duarte Mejias (rolando.duartemejias@ucr.ac.cr) - Erick Rivera Fernandez (erick.rivera@ucr.ac.cr) ![FTS|FillingTimeSeries](https://repository-images.githubusercontent.com/404879203/f4deb7ec-6b24-4ca9-89eb-f...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/doc/sphinx/source/attributes/taxid.rst
taxid ===== An integer referring unambiguously to one taxon in the taxonomic associated database. Attribute added by the programs: - :doc:`ecotag <../scripts/ecotag>` - :doc:`ecopcr <../scripts/ecotag>` - :doc:`obiaddtaxids <../scripts/obiaddtaxids>` .. seealso:: - :doc:`...
PypiClean
/FlowUI-0.2.1.tar.gz/FlowUI-0.2.1/flowui/themes/solarized.py
from flowui.theme import * class Solarized(Theme): '''Solarized theme This theme is based on Ethan Schoonover's excellent theme as described on his page: http://ethanschoonover.com/solarized ''' name = 'Solarized' pal = {'base03': {8: (Bold, 0), 16: 8, 256: 234}, 'base02': {8: (...
PypiClean
/125softNLP-0.0.1-py3-none-any.whl/kashgari/embeddings/bare_embedding.py
# author: BrikerMan # contact: eliyar917@gmail.com # blog: https://eliyar.biz # file: bare_embedding.py # time: 2019-05-20 10:36 import logging from typing import Union, Optional from tensorflow import keras from kashgari.embeddings.base_embedding import Embedding from kashgari.processors.base_processor import Base...
PypiClean
/CC-dbgen-0.2.0.tar.gz/CC-dbgen-0.2.0/dbgen/support/datatypes/attr.py
from typing import Optional,Any,List from copy import deepcopy # Internal Modules from dbgen.support.datatypes.sqltypes import SQLType,Int from dbgen.support.datatypes.table import Col from dbgen.support.datatypes.constraint import EQ,NE,LT,GT """ Defines the Attr (Attribute) class, which have overloaded operat...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/urllib3/contrib/appengine.py
from __future__ import absolute_import import io import logging import warnings from ..packages.six.moves.urllib.parse import urljoin from ..exceptions import ( HTTPError, HTTPWarning, MaxRetryError, ProtocolError, TimeoutError, SSLError ) from ..request import RequestMethods from ..response i...
PypiClean
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/scripts/edfheader.py
import sys # ImageD11_v0.4 Software for beamline ID11 # Copyright (C) 2005 Jon Wright # # 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)...
PypiClean
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/metrics/oid_vrd_challenge_evaluation.py
r"""Runs evaluation using OpenImages groundtruth and predictions. Example usage: python \ models/research/object_detection/metrics/oid_vrd_challenge_evaluation.py \ --input_annotations_vrd=/path/to/input/annotations-human-bbox.csv \ --input_annotations_labels=/path/to/input/annotations-label.csv \ --input_...
PypiClean
/Lunas-0.5.1-py3-none-any.whl/lunas/dataset/core.py
from __future__ import annotations import abc import itertools import math import sys from typing import * import numpy __all__ = [ 'Dataset', 'Sizable', 'NestedN', 'Nested', 'NestedSizable', 'Map', 'Where', 'Repeat', 'Interleave', 'Shuffle', 'Sort', 'Slice', 'Shar...
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/users_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
/AnalysisProjectDependencies-0.1.tar.gz/AnalysisProjectDependencies-0.1/bower_components/jquery/src/effects/Tween.js
define( [ "../core", "../css" ], function( jQuery ) { "use strict"; function Tween( elem, options, prop, end, easing ) { return new Tween.prototype.init( elem, options, prop, end, easing ); } jQuery.Tween = Tween; Tween.prototype = { constructor: Tween, init: function( elem, options, prop, end, easing, unit ) {...
PypiClean
/NIA_image_2latex-1.0-py3-none-any.whl/models.py
import torch import torch.nn as nn import torch.nn.functional as F from x_transformers import * from x_transformers.autoregressive_wrapper import * from timm.models.vision_transformer import VisionTransformer from timm.models.resnetv2 import ResNetV2 from timm.models.layers import StdConv2dSame from einops import rear...
PypiClean
/Gato-1.2.7.tar.gz/Gato-1.2.7/DataStructures.py
from __future__ import generators #Needed for PQImplementation and Python2.2 #from GatoGlobals import * ################################################################################ # # Embedding # ################################################################################ class Point2D: """ Simple Wrap...
PypiClean
/GISAXS_XPCS-0.2.5.tar.gz/GISAXS_XPCS-0.2.5/gisaxs_xpcs/metadata_obj.py
from typing import List, Optional, Any import logging from pathlib import Path import h5py import numpy as np from gisaxs_xpcs.common_tools import get_zaptime_files class MetaData(object): class Property(object): def __init__(self, h5name: str, unit: str = '', description: str = '', ...
PypiClean
/Gbtestapi-0.1a10-py3-none-any.whl/gailbot/services/organizer/organizer.py
from typing import Dict, List, Union, Callable from .source import SourceObject, SourceManager from src.gailbot.core.utils.logger import makelogger from .settings import SettingManager, SettingObject, SettingDict from src.gailbot.configs import default_setting_loader logger = makelogger("organizer") CONFIG = default_...
PypiClean
/EDDIE-Tool-1.0.0.tar.gz/EDDIE-Tool-1.0.0/eddietool/common/sockets.py
__version__ = '$Revision: 862 $' __copyright__ = 'Copyright (c) Chris Miles 2001-2005' __author__ = 'Chris Miles; Rod Telford' __license__ = ''' 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 Foun...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/code_generation/ComparisonHelperDefinitions.py
from nuitka.containers.OrderedSets import buildOrderedSet # Mapping of rich comparison Python level name, to C level name of helpers. rich_comparison_codes = { "Lt": "LT", "LtE": "LE", "Eq": "EQ", "NotEq": "NE", "Gt": "GT", "GtE": "GE", } # Subset of comparisons which will be used for identica...
PypiClean
/CaseRecommender-1.1.1.tar.gz/CaseRecommender-1.1.1/caserec/clustering/paco.py
import itertools import random import numpy as np from scipy.spatial.distance import squareform, pdist from sklearn.cluster import KMeans from caserec.utils.process_data import ReadFile __author__ = 'Arthur Fortes <fortes.arthur@gmail.com> and Fernando S. de Aguiar Neto <fsan110792@gmail.com>' class PaCo(object):...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/blog/management/commands/import_wordpress.py
import re from collections import defaultdict from datetime import datetime, timedelta from time import mktime, timezone from xml.dom import Node from xml.dom.minidom import parse from django.core.management.base import CommandError from django.utils.html import linebreaks from mezzanine.blog.management.base import B...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/is-core-module/README.md
# is-core-module <sup>[![Version Badge][2]][1]</sup> [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][5]][6] [![dev dependency status][7]][8] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![npm badge][11]][1] Is...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/html5lib/filters/lint.py
from __future__ import absolute_import, division, unicode_literals from pip._vendor.six import text_type from . import base from ..constants import namespaces, voidElements from ..constants import spaceCharacters spaceCharacters = "".join(spaceCharacters) class Filter(base.Filter): """Lints the token stream fo...
PypiClean
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/simulator/simulator.py
import copy from typing import Optional, Tuple import numpy as np import os from scipy.optimize import minimize from scipy.optimize import LinearConstraint from grid2op.dtypes import dt_float from grid2op.Environment import BaseEnv from grid2op.Action import BaseAction from grid2op.Backend import Backend from grid2op....
PypiClean
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/annalist/views/help/entity-list-help.md
# List of entities This page lists entities records in a collection, and provides options for them to be created, copied, edited or deleted. Initially, the default behaviour is to display all entities defined in the current collection, but different list options may be selected from the 'List view' dropdown, and disp...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/utils/autolog/model.py
from abc import ABCMeta from typing import TypeVar, Union, List, Any from .base import _LOGGED_MODEL__PROPERTIES, _LOGGED_MODEL__PROPERTY_ATTR_PREFIX, _TimeType, TimeMode, \ _LOGGED_VALUE__PROPERTY_NAME from .data import TimeRangedData from .time_ctl import BaseTime, TimeProxy from .value import LoggedValue _Time...
PypiClean
/InvokeAI-3.1.0-py3-none-any.whl/invokeai/backend/install/legacy_arg_parsing.py
import argparse import shlex from argparse import ArgumentParser # note that this includes both old sampler names and new scheduler names # in order to be able to parse both 2.0 and 3.0-pre-nodes versions of invokeai.init SAMPLER_CHOICES = [ "ddim", "ddpm", "deis", "lms", "lms_k", "pndm", ...
PypiClean
/CreateAI-0.10.0.tar.gz/CreateAI-0.10.0/README.md
# CreateAI v0.9.5 It's easy tool to create ai in python easy and fast. You can edit source code of CreateAI on [Create AI's github](https://github.com/R0fael/CreateAI) ## Dependencies - numpy - knowledge of python - our documentation - your motivation - your brain ## Authors - [@R0fael](https://www.github.com...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/datastructures/network/matrices.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from compas.numerical import adjacency_matrix from compas.numerical import degree_matrix from compas.numerical import connectivity_matrix from compas.numerical import laplacian_matrix __all__ = [ "network...
PypiClean
/ARS-0.5a2.zip/ARS-0.5a2/ars/lib/six/__init__.py
import operator import sys import types __author__ = "Benjamin Peterson <benjamin@python.org>" __version__ = "1.4.1" # Useful for very coarse version differentiation. PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 if PY3: string_types = str, integer_types = int, class_types = type, te...
PypiClean
/EnvelopesWithSMTPS-0.4.tar.gz/EnvelopesWithSMTPS-0.4/README.rst
Envelopes ========= .. image:: https://travis-ci.org/virusdefender/envelopes.png?branch=master :target: https://travis-ci.org/virusdefender/envelopes Mailing for human beings. About ----- Envelopes is a wrapper for Python's *email* and *smtplib* modules. It aims to make working with outgoing e-mail in Python si...
PypiClean
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/billing/migrations/0001_initial.py
import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.ACCOUNT_USER_PROXY_MODEL), ('packages', '0002_auto_20180818_0715'), ...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/_base/manager.js
if(!dojo._hasResource["dijit._base.manager"]){ dojo._hasResource["dijit._base.manager"]=true; dojo.provide("dijit._base.manager"); dojo.declare("dijit.WidgetSet",null,{constructor:function(){ this._hash={}; this.length=0; },add:function(_1){ if(this._hash[_1.id]){ throw new Error("Tried to register widget with id=="+_1...
PypiClean
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/runtime/client_runtime_context.py
import abc from time import sleep from office365.runtime.client_request_exception import ClientRequestException from office365.runtime.compat import is_absolute_url from office365.runtime.http.request_options import RequestOptions from office365.runtime.queries.read_entity_query import ReadEntityQuery class ClientRu...
PypiClean
/FiddleOptions-1.2.4.tar.gz/FiddleOptions-1.2.4/mercury/configuration.py
from __future__ import absolute_import import copy import logging import multiprocessing import sys import urllib3 import six from six.moves import http_client as httplib class TypeWithDefault(type): def __init__(cls, name, bases, dct): super(TypeWithDefault, cls).__init__(name, bases, dct) cls....
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/markdown/extensions/wysiwyg_email.py
from django import template from markdown.extensions import Extension from markdown.treeprocessors import Treeprocessor register = template.Library() class InlineStyleProcessor(Treeprocessor): """Injects CSS styles directly into the tags, for use in e-mails. This will process each element and, depending on...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-table/src/locale/bootstrap-table-fr-FR.js
$.fn.bootstrapTable.locales['fr-FR'] = $.fn.bootstrapTable.locales['fr'] = { formatCopyRows () { return 'Copier les lignes' }, formatPrint () { return 'Imprimer' }, formatLoadingMessage () { return 'Chargement en cours' }, formatRecordsPerPage (pageNumber) { return `${pageNumber} lignes pa...
PypiClean