id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/GenomeTreeTk-0.1.6.tar.gz/GenomeTreeTk-0.1.6/genometreetk/markers/align_markers.py |
import os
import sys
import multiprocessing as mp
import logging
from collections import defaultdict
import biolib.seq_io as seq_io
from biolib.external.hmmer import HMMER
from genometreetk.default_values import DefaultValues
class AlignMarkers(object):
"""Align genes to HMM."""
def __init__(self, cpus):
... | PypiClean |
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/miscutils/HttpSession.py | from __future__ import unicode_literals
from __future__ import absolute_import, division, print_function
__author__ = "Graham Klyne (GK@ACM.ORG)"
__copyright__ = "Copyright 2011-2013, University of Oxford"
__license__ = "MIT (http://opensource.org/licenses/MIT)"
import logging
log = logging.getLogger(__nam... | PypiClean |
/EnStp_de-1.0.0-py3-none-any.whl/EnStp_de/EnStp_de.py |
# In[8]:
import spacy
sp_d = spacy.load('de_core_news_sm')
import nltk
nltk.download('stopwords')
from nltk.corpus import stopwords
stop_words = set(stopwords.words('german'))
# In[12]:
# ADD FURTHER STOP WORDS
stop_words.add('agentur')
stop_words.add('emission')
stop_words.add('art')
stop_words.add('geehrte')
... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/dizoo/mujoco/config/hopper_trex_onppo_config.py | from easydict import EasyDict
hopper_trex_onppo_config = dict(
exp_name='hopper_trex_onppo_seed0',
env=dict(
env_id='Hopper-v3',
norm_obs=dict(use_norm=False, ),
norm_reward=dict(use_norm=False, ),
collector_env_num=8,
evaluator_env_num=10,
n_evaluator_episode=10... | PypiClean |
/MSOIoos-1.0.tar.gz/MSOIoos-1.0/flood_tool/analysis.py |
import os
import math
import numpy as np
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
__all__ = ['plot_risk_map']
def plot_postcode_density(postcode_file=(os.path.dirname(__file__)
+'/resources/postcodes_unlabelled.csv'),
coor... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/msvs.py | import base64
import uuid
import ntpath
import os
import pickle
import re
import sys
import SCons.Builder
import SCons.Node.FS
import SCons.Platform.win32
import SCons.Script.SConscript
import SCons.PathList
import SCons.Util
import SCons.Warnings
from SCons.Defaults import processDefines
from SCons.compat import PICK... | PypiClean |
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/baselib/platforms/ubuntu/Ubuntu.py | from JumpScale import j
class Ubuntu:
def __init__(self):
self._aptupdated = False
self._checked = False
self._cache=None
self.installedPackageNames=[]
def initApt(self):
try:
import apt
except ImportError:
#we dont wont jshell to break, ... | PypiClean |
/Flask-WhooshAlchemy-0.56.tar.gz/Flask-WhooshAlchemy-0.56/README.rst | Welcome to Flask-WhooshAlchemy!
===============================
Flask-WhooshAlchemy is a Flask extension that integrates the text-search functionality of `Whoosh <https://bitbucket.org/mchaput/whoosh/wiki/Home>`_ with the ORM of `SQLAlchemy <http://www.sqlalchemy.org/>`_ for use in `Flask <http://flask.pocoo.org/>`_ a... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/interfaces/thorcamera.py | from logging import raiseExceptions
import numpy as np
import time
import cv2
from imswitch.imcommon.model import initLogger
import collections
import numpy as np
import matplotlib.pyplot as plt
# init devwraps
#import devwraps
# removes all DLLs
#devwraps.remove_dlls()
# look for DLLs according to the paths spe... | PypiClean |
/FindMyAccounts-1.4.4.tar.gz/FindMyAccounts-1.4.4/third_party/README.md | # FindMyAccounts Third Party Dependencies
FindMyAccounts depends on third party libraries to implement some functionality. This document describes which libraries WDIHAA depends on. This is a best effort attempt to describe the library's dependencies, it is subject to change as libraries are added/removed.
| Name ... | PypiClean |
/DisPass-0.4.0.tar.gz/DisPass-0.4.0/dispass/filehandler.py |
# Copyright (c) 2012-2016 Tom Willemse <tom@ryuslash.org>
# Copyright (c) 2011-2018 Benjamin Althues <benjamin@babab.nl>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice app... | PypiClean |
/AutoMonkey-0.2.1.tar.gz/AutoMonkey-0.2.1/automonkey/img_funcs.py | from os import remove
from os.path import isfile
from time import sleep
from pyautogui import center
from pyautogui import locateOnScreen
from pyscreeze import Box
from pytesseract import image_to_string
from clipboard import copy as copy1
from pyperclip import copy as copy2
try:
from PIL import Image
except I... | PypiClean |
/MetPy-1.5.1-py3-none-any.whl/metpy/plots/ctables.py | import ast
import logging
from pathlib import Path
import matplotlib.colors as mcolors
from ..package_tools import Exporter
exporter = Exporter(globals())
TABLE_EXT = '.tbl'
log = logging.getLogger(__name__)
def _parse(s):
if hasattr(s, 'decode'):
s = s.decode('ascii')
if not s.startswith('#'):
... | PypiClean |
/lektor-3.4.0b6-py3-none-any.whl/lektor/sourcesearch.py | import sqlite3
from lektor.constants import PRIMARY_ALT
def _iter_parents(path):
path = path.strip("/")
if path:
pieces = path.split("/")
for x in range(len(pieces)):
yield "/" + "/".join(pieces[:x])
def _find_info(infos, alt, lang):
for info in infos:
if info["alt"]... | PypiClean |
/Benker-0.5.4.tar.gz/Benker-0.5.4/CHANGELOG.rst | =========
Changelog
=========
All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_
and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
v0.5.4 (2021-11-13)
===================
Bug f... | PypiClean |
/MiMSI-0.4.1.tar.gz/MiMSI-0.4.1/model/mi_msi_model.py | import torch
import torch.nn as nn
class MSIModel(nn.Module):
def __init__(self, coverage=100, use_attention=False):
super(MSIModel, self).__init__()
self.num_features = 512
self.batch_size = 1
self.coverage = coverage
self.use_attention = use_attention
# Input is ... | PypiClean |
/NREL_reV-0.8.1-py3-none-any.whl/reV/supply_curve/points.py | from abc import ABC
import logging
import numpy as np
import pandas as pd
from warnings import warn
from reV.econ.economies_of_scale import EconomiesOfScale
from reV.econ.utilities import lcoe_fcr
from reV.handlers.exclusions import ExclusionLayers
from reV.supply_curve.exclusions import ExclusionMask, ExclusionMaskFr... | PypiClean |
/OctoPyClient-1.0.2.tar.gz/OctoPyClient-1.0.2/octopyclient/ui.py | import time
import sdnotify
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk
from octopyclient.common import BackgroundTask, LogHandler, Config
from .octorest.octorest import OctoRest
from .splash import SplashPanel
from .idle_status import IdleStatusPanel
from .print_status import PrintS... | PypiClean |
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/build_scripts/EnsemblImport.py |
#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, distribute, sublicense, and/or sell
#copi... | PypiClean |
/EventGeometry-1.0.1-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl/eventgeometry/eventgeometry.py | import numpy as np
import itertools
import pyfjcore
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError("Python 2.7 or later required")
# Import the low-level C/C++ module
if __package__ or "." in __name__:
from . import _eventgeometry
els... | PypiClean |
/Lasco-0.1.0.tar.gz/Lasco-0.1.0/docs/_build/html/_static/underscore.js | (function(){var j=this,n=j._,i=function(a){this._wrapped=a},m=typeof StopIteration!=="undefined"?StopIteration:"__break__",b=j._=function(a){return new i(a)};if(typeof exports!=="undefined")exports._=b;var k=Array.prototype.slice,o=Array.prototype.unshift,p=Object.prototype.toString,q=Object.prototype.hasOwnProperty,r=... | PypiClean |
/NNS-RPY2-ScikitLearn-0.0.1.tar.gz/NNS-RPY2-ScikitLearn-0.0.1/nns_rpy2/nns.py | from sklearn.base import BaseEstimator, ClassifierMixin, RegressorMixin, ClusterMixin
from rpy2 import robjects
from rpy2.robjects.packages import importr
import rpy2.robjects.numpy2ri
import numpy as np
class NNSRPY2Estimator(BaseEstimator):
"""An example of classifier"""
def __init__(
self,
... | PypiClean |
/DynamicForms-0.74.8-py3-none-any.whl/dynamicforms/mixins/related_field_ajax.py | from typing import Optional
from django.db.models.manager import BaseManager
from django.urls import reverse
from django.utils.http import urlencode
from rest_framework.relations import ManyRelatedField, RelatedField
class RelatedFieldAJAXMixin(object):
def __init__(
self,
*args,
url_reve... | PypiClean |
/NinjaTools-0.68-py3-none-any.whl/ninja_tools/memory.py | from typing import List
try:
import psutil
import pymem
except ImportError:
raise 'pip install ninjatools[memory] or ninjatools[all] to use image functions!'
from ninja_tools.ReadWriteMemory import ReadWriteMemory
class Parser:
def __init__(self, pid: int):
self.pid = pid
self.rwm ... | PypiClean |
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/deepgmap/post_train_tools/motif_compare.py | import numpy as np
import sys
#from curses.ascii import isdigit
from scipy.spatial.distance import cdist
import deepgmap.post_train_tools.cython_util as cutil
mc=cutil.motif_compare
from matplotlib import pyplot as plt
import os
def _is_number(s):
try:
complex(s) # for int, long, float and complex
exce... | PypiClean |
/CWR-API-0.0.40.tar.gz/CWR-API-0.0.40/docs/source/cwr_structure/group_header.rst | ==================
Group Header (GRH)
==================
The Group header indicates the begginning of a batch CWR transactions on the
file.
It contains the following fields:
================ ===================================== ======== ===========
Field Type Require... | PypiClean |
/Av1an-6.1.post2.tar.gz/Av1an-6.1.post2/av1an/encoder/vvc.py | import os
import subprocess
from distutils.spawn import find_executable
from pathlib import Path
from subprocess import PIPE, STDOUT
from typing import Tuple, Optional
import re
from av1an.project import Project
from av1an.chunk import Chunk
from av1an.commandtypes import MPCommands, CommandPair, Command
from .encoder... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/hilbert/particle.py | from typing import Tuple, Union
import numpy as np
from .continuous_hilbert import ContinuousHilbert
class Particle(ContinuousHilbert):
r"""Hilbert space derived from ContinuousHilbert defining N particles
in continuous space with or without periodic boundary conditions."""
def __init__(
self,
... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/nodes/BuiltinAllNodes.py | from nuitka.specs import BuiltinParameterSpecs
from .ExpressionBases import ExpressionBuiltinSingleArgBase
from .ExpressionShapeMixins import ExpressionBoolShapeExactMixin
from .NodeMakingHelpers import (
makeConstantReplacementNode,
makeRaiseTypeErrorExceptionReplacementFromTemplateAndValue,
wrapExpressio... | PypiClean |
/IOT3ApiClient-1.0.0.tar.gz/IOT3ApiClient-1.0.0/idna/core.py | from . import idnadata
import bisect
import unicodedata
import re
from typing import Union, Optional
from .intranges import intranges_contain
_virama_combining_class = 9
_alabel_prefix = b'xn--'
_unicode_dots_re = re.compile('[\u002e\u3002\uff0e\uff61]')
class IDNAError(UnicodeError):
""" Base exception for all I... | PypiClean |
/Nasse-1.1-py3-none-any.whl/nasse/receive.py | import base64
import inspect
import sys
import typing
import flask
from nasse import config, exceptions, models, request, timer, utils
from nasse.response import Response, exception_to_response
RECEIVERS_COUNT = 0
def retrieve_token(context: request.Request = None) -> str:
"""
Internal function to retrieve... | PypiClean |
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/views/post_admin.py | import os
import datetime
from pylot import (Pylot,
utils,
route,
abort,
redirect,
request,
url_for,
jsonify,
session,
AppError)
from pylot.componen... | PypiClean |
/alphahousepython-1.0.6-cp36-cp36m-macosx_10_6_x86_64.whl/alphahousepython/src/PedigreeHolder.py | import csv
import re
import typing
from collections import OrderedDict
from enum import Enum
from typing import *
from gen import PyGenotype
from hap import PyHaplotype, compareHapsOnIntersectArray
import numpy as np
import pandas as pd
try:
from plinkio import plinkfile
except ImportError:
use_plink = False... | PypiClean |
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/conference_participant_result_all_of.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 |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ksb-tz.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 |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/viewers/matplotlibViewer/__init__.py | from __future__ import unicode_literals
__docformat__ = 'restructuredtext'
from fipy.viewers.matplotlibViewer.matplotlib1DViewer import *
from fipy.viewers.matplotlibViewer.matplotlib2DGridViewer import *
from fipy.viewers.matplotlibViewer.matplotlib2DContourViewer import *
from fipy.viewers.matplotlibViewer.matplotli... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/MSCommon/sdk.py |
__revision__ = "src/engine/SCons/Tool/MSCommon/sdk.py rel_2.3.5:3329:275e75118ad4 2015/06/20 11:18:26 bdbaddog"
__doc__ = """Module to detect the Platform/Windows SDK
PSDK 2003 R1 is the earliest version detected.
"""
import os
import SCons.Errors
import SCons.Util
import common
debug = common.debug
# SDK Chec... | PypiClean |
/BuzzAlgoTrade-0.0.2.tar.gz/BuzzAlgoTrade-0.0.2/pyalgotrade/optimizer/base.py | import threading
class Parameters(object):
def __init__(self, *args, **kwargs):
self.args = args
self.kwargs = kwargs
class ParameterSource(object):
"""
Source for backtesting parameters. This class is thread safe.
"""
def __init__(self, params):
self.__iter = iter(params... | PypiClean |
/Mastodon.py-1.8.1.tar.gz/Mastodon.py-1.8.1/docs/15_everything.rst | Every function on a huge CTRL-F-able page
=========================================
.. py:module:: mastodon
.. py:class: Mastodon
.. automethod:: Mastodon.retrieve_mastodon_version
.. automethod:: Mastodon.verify_minimum_version
.. automethod:: Mastodon.create_app
.. automethod:: Mastodon.app_verify_credentials
.. aut... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/plugins/standard/UpxPlugin.py | """UPX plugin. """
import os
from nuitka.Options import isOnefileMode, isOnefileTempDirMode
from nuitka.plugins.PluginBase import NuitkaPluginBase
from nuitka.utils.AppDirs import getCacheDir
from nuitka.utils.Execution import executeToolChecked, getExecutablePath
from nuitka.utils.FileOperations import copyFile, mak... | PypiClean |
/Maisie-0.1.6-py3-none-any.whl/maisie/cli/projects.py | import click
import logging
from terminaltables import SingleTable
from colorama import Fore
from maisie import Projects
from maisie.utils.misc import Transform
from textwrap import wrap
import os
DEFAULT_DISPLAY_ATTRIBUTES = [
"id",
# "workspace_id",
"name",
"description",
"git_url",
"crea... | PypiClean |
/CoSA-0.3.0.tar.gz/CoSA-0.3.0/cosa/environment.py |
import re
from pysmt.shortcuts import TRUE, FALSE, And, Or, Symbol, BV, EqualsOrIff, Implies, get_env
from pysmt.typing import BOOL, BVType
from pysmt.parsing import parse, HRParser, HRLexer, PrattParser, Rule, UnaryOpAdapter, InfixOpAdapter
import pysmt.environment
import pysmt.formula
from cosa.encoders.formulae ... | PypiClean |
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/torch_utilities/optimisation/debugging/gradients/grad_trace.py |
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 29/07/2020
"""
__all__ = ["register_bad_grad_hooks", "print_grad_trace"]
from typing import Any
import torch
def register_bad_grad_hooks(var: Any) -> callable:
"""
:param var:
:type var:
:return:
:rtype:"... | PypiClean |
/parts/Top/Glasses/Prescription2.py | def Prescription2():
return (
'<g filter="url(#filter0_d_0_1727)">'
' <path fill-rule="evenodd" clip-rule="evenodd"'
' d="M37.2421 48H40C54.7213 48 65 39.5686 65 27.5C65 17.127 63.183 7 41.4701 7H38.5299C16.817 7 15 17.127 15 27.5C15 40.3359 23.3147 48 37.2421 48ZM19 28.5015C19 19.... | PypiClean |
/JBPhD-2.3.2-py3-none-any.whl/Task/Consent.py | import tkinter
import tkinter.messagebox
import customtkinter
from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import Mail
import spwf
import Location
import time
from datetime import datetime
import tkinter as tk
import socket
import os
import glob
import subprocess
class App(customtkinter.CTk):
... | PypiClean |
/Flask-AppBuilder-jack-3.3.4.tar.gz/Flask-AppBuilder-jack-3.3.4/flask_appbuilder/models/group.py | from __future__ import unicode_literals
import calendar
import datetime
from functools import reduce
from itertools import groupby
import logging
from flask_appbuilder._compat import as_unicode
from flask_babel import lazy_gettext as _
from .. import const as c
log = logging.getLogger(__name__)
def aggregate(labe... | PypiClean |
/AlleleFinder-0.1.4.tar.gz/AlleleFinder-0.1.4/allele_tools/allele_translate_reduce.py | # Standard imports
from argparse import ArgumentParser
from glob import glob
import logging
import shutil
import sys
import os
# Third-party imports
from olctools.accessoryFunctions.accessoryFunctions import make_path, SetupLogging
from Bio.SeqRecord import SeqRecord
from Bio import SeqIO
# Local imports
from allele_... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/utils/encodings.py | import sys
import codecs
from typing import List, Iterable
from AnyQt.QtCore import Qt, QModelIndex, QAbstractItemModel, QSettings
from AnyQt.QtGui import QStandardItemModel, QStandardItem
from AnyQt.QtWidgets import (
QVBoxLayout, QWidget, QLabel, QListView, QDialogButtonBox, QSizePolicy,
QStyle, QStyleOptio... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/bootstrap/js/src/offcanvas.js | import {
defineJQueryPlugin,
getElementFromSelector,
isDisabled,
isVisible,
typeCheckConfig
} from './util/index'
import ScrollBarHelper from './util/scrollbar'
import EventHandler from './dom/event-handler'
import BaseComponent from './base-component'
import SelectorEngine from './dom/selector-engine'
import... | PypiClean |
/ModelFlowIb-1.56-py3-none-any.whl/modelwidget_new.py | # from shiny import App, event, html_dependencies, http_staticfiles, input_handler, module, reactive, render, render_image, render_plot, render_text, render_ui, req, run_app, session, types, ui
# from shinywidgets import output_widget, reactive_read, register_widget, render_widget
import ipywidgets as ipy
import panda... | PypiClean |
/MIDAS-V-1.0.tar.gz/MIDAS-V-1.0/MIDAS/MIDAS.py |
__author__ = "Vrushali Dipak Fangal"
__copyright__ = "Copyright 2014"
__license__ = "MIT"
__maintainer__ = "Vrushali Dipak Fangal"
__email__ = "vrushali@broadinstitute.org"
__status__ = "Development"
__created__ = "Oct, 2017"
#import dependencies
import xmltodict
import glob
from bioservices import *
import re
import... | PypiClean |
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/baselib/specparser/SpecModelActorsGenerator.py | from JumpScale import j
class SpecModelActorsGenerator():
def __init__(self,appname,actorname,specpath,typecheck=True,dieInGenCode=True):
self.content=""
self.typecheck=typecheck
self.die=dieInGenCode
self.appname=appname
self.actorname=actorname
self.specpath=specpa... | PypiClean |
/NEMO_keycloak-1.3.1-py3-none-any.whl/NEMO_keycloak/keycloak/aio/client.py | import asyncio
from functools import partial
from typing import Any
import aiohttp
from NEMO_keycloak.keycloak.aio.abc import AsyncInit
from NEMO_keycloak.keycloak.client import KeycloakClient as SyncKeycloakClient
from NEMO_keycloak.keycloak.exceptions import KeycloakClientError
__all__ = ("KeycloakClient",)
clas... | PypiClean |
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/static/mezzanine/tinymce/langs/uk_UA.js | tinymce.addI18n('uk_UA',{
"Cut": "\u0412\u0438\u0440\u0456\u0437\u0430\u0442\u0438",
"Heading 5": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 5",
"Header 2": "\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 2",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V ... | PypiClean |
/Flask_Executor-1.0.0-py3-none-any.whl/flask_executor/futures.py | from collections import OrderedDict
from concurrent.futures import Future
from flask_executor.helpers import InstanceProxy
class FutureCollection:
"""A FutureCollection is an object to store and interact with
:class:`concurrent.futures.Future` objects. It provides access to all
attributes and methods of ... | PypiClean |
/EAST-0.3.8.tar.gz/EAST-0.3.8/east/asts/ast_naive.py |
from east.asts import ast
from east.asts import utils
class NaiveAnnotatedSuffixTree(ast.AnnotatedSuffixTree):
__algorithm__ = "ast_naive"
def _construct(self, strings_collection):
"""
Naive generalized suffix tree construction algorithm,
with quadratic [O(n_1^2 + ... + n_m^2)] worst... | PypiClean |
/Montenegro_tour_guide-1.0.0-py3-none-any.whl/api/health_tour_guides.py | import json
cites_json = 'meta_data/top_cites.json'
health_tour_spot = 'meta_data/health_tourism.json'
class CitesApi:
def __init__(self):
with open(cites_json, 'rb') as fb:
self.cites_data = json.load(fb)
def get_top_cites_names(self):
top_cites = self.cites_data.get('top_cites'... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/htdocs/static/djblets/js/jquery.gravy.autosize.js | (function($) {
/*
* Auto-sizes a text area to make room for the contained content.
*/
$.widget("ui.autoSizeTextArea", {
options: {
fadeSpeedMS: 200,
growOnKeyUp: true,
minHeight: 100
},
_init: function() {
var self = this;
this._proxyEl = $("<pre/>")
... | PypiClean |
/LightGBMwithBayesOpt-1.0.1.tar.gz/LightGBMwithBayesOpt-1.0.1/README.md | ## Modeling by **LigthGBM** with hyper-parameter tuning using **Bayesian Optimization**
* 본 패키지는 Microsoft사에서 개발한 Light GBM 알고리즘으로 classification 문제의 학습 및 테스트를 돕는 툴이다.
* 학습의 hyper-parmeter tuning 수행 시, Bayesian Optimization을 통해 방대한 parameter hyperplane 상에서 효율적으로 optimal parameter set을 찾도록 돕는다.
* k-fold cross validati... | PypiClean |
/Colbert-0.30.tar.gz/Colbert-0.30/src/scripts/colbert_compte_de_resultat_to_rst.py |
# Copyright (c) 2012 Stanislas Guerra <stanislas.guerra@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notic... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/dtl/contrib/dom.js | if(!dojo._hasResource["dojox.dtl.contrib.dom"]){
dojo._hasResource["dojox.dtl.contrib.dom"]=true;
dojo.provide("dojox.dtl.contrib.dom");
dojo.require("dojox.dtl.dom");
(function(){
var dd=dojox.dtl;
var _1=dd.contrib.dom;
var _2={render:function(){
return this.contents;
}};
_1.StyleNode=dojo.extend(function(_3){
this.c... | PypiClean |
/GSAS-II-WONDER_osx-1.0.4.tar.gz/GSAS-II-WONDER_osx-1.0.4/GSAS-II-WONDER/GSASIIdataGUI.py | from __future__ import division, print_function
import platform
import time
import math
import random as ran
import copy
import sys
import os
#import glob
#import imp
import inspect
if '2' in platform.python_version_tuple()[0]:
import cPickle
else:
try:
import _pickle as cPickle
except:
prin... | PypiClean |
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/person/nl_NL/__init__.py | from .. import Provider as PersonProvider
class Provider(PersonProvider):
# conforming to http://nl.wikipedia.org/wiki/Achternaam#Naamswijziging and
# http://en.wikipedia.org/wiki/Dutch_name#Dutch_naming_law_.28surnames.29
# by adding a "-" between the two last names when someone is married
formats = ... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ln-cg.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": [
"nt\u0254\u0301ng\u0254\u0301",
"mp\u00f3kwa"
],
"... | PypiClean |
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/personal_data/orders/channel/orders_updater.py | import asyncio
import octobot_commons.async_job as async_job
import octobot_commons.tree as commons_tree
import octobot_commons.enums as commons_enums
import octobot_trading.errors as errors
import octobot_trading.personal_data.orders.channel.orders as orders_channel
import octobot_trading.constants as constants
cl... | PypiClean |
/LuaAutoDoc-0.9.1-py3-none-any.whl/lua_auto_doc/modules/html_handler/fragment_reader.py |
import os
import re
import lua_auto_doc.modules.tools.config_handler as conf
from lua_auto_doc.modules.tools.misc import g_error_colour, g_end_colour
# Regex patterns
g_html_fragment_pattern: re.Pattern = re.compile(r'''^#LuaAutoDoc-(\w*)\n([\w\W]*?)\n*(?:(?=^#LuaAutoDoc-)|\Z)''', re.MULTILINE)
""" Captures HTML fra... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/el.js | (function (global, factory) {
if (typeof define === "function" && define.amd) {
define('element/locale/el', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(... | PypiClean |
/Metadata_Magic-0.7.1-py3-none-any.whl/metadata_magic/error/missing_metadata.py |
import os
import tqdm
import argparse
import python_print_tools.printer
import metadata_magic.meta_finder as mm_meta_finder
from os.path import abspath, exists, join
from typing import List
def find_missing_metadata(path:str) -> List[str]:
"""
Returns a list of media files without corresponding JSON metadata.... | PypiClean |
/AWSXenos-0.0.2.tar.gz/AWSXenos-0.0.2/awsxenos/scan.py |
import argparse
from collections import defaultdict
from re import I
from typing import Any, Optional, Dict, List, DefaultDict, Set
import json
import sys
import boto3 # type: ignore
from botocore.exceptions import ClientError # type: ignore
from policyuniverse.arn import ARN # type: ignore
from policyuniverse.pol... | PypiClean |
/CMCpy-0.3.tar.gz/CMCpy-0.3/cmcpy/__main__.py | from optparse import OptionParser, OptionValueError
from types import FloatType
import cmcpy
import pdb
import time
import sys
import multiprocessing
import numpy
def main():
starttime = time.time()
if 1 == 1:
version = 0.1
prog = 'cmc'
usage = '''usage: %prog [options]
Examples:
... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/robots/model/base.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from compas.files.urdf import URDFElement
from compas.files.urdf import URDFGenericElement
from compas.geometry import Frame
__all__ = [
"FrameProxy",
"ProxyObject",
]
def _parse_floats(values):
... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/extern/pygments/formatters/other.py | from pygments.formatter import Formatter
from pygments.util import OptionError, get_choice_opt, b
from pygments.token import Token
from pygments.console import colorize
__all__ = ['NullFormatter', 'RawTokenFormatter']
class NullFormatter(Formatter):
"""
Output the text unchanged without any formatting.
"... | PypiClean |
/chatglm6bpkg-0.0.1.tar.gz/chatglm6bpkg-0.0.1/improve/README.md | # ChatGLM-6B Badcase 反馈计划
ChatGLM-6B 自3月14号发布以来受到了广大开发者和用户的喜爱,截至4月22号 GitHub 的 star 数达到 2 万,各个渠道模型的累计下载量过 100 万,并连续 12 天居 Hugging Face 全球大模型下载榜第一名。 与此同时,有一批基于 ChatGLM-6B 的[优秀开源项目](https://github.com/THUDM/ChatGLM-6B)出现,在各个平台也引起了广泛好评和关注。此外,基于 GLM-130B 的千亿对话模型 ChatGLM 也自3月14号开始了第一阶段的邀请制内测,得到了内测用户的好评和支持。谢谢大家对 ChatGLM 及其 6... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/ishop/apps/merchant/customers/forms.py | from __future__ import unicode_literals
from django import forms
from django.conf import settings
from django.db.models import Q
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse_lazy
from cubane.backend.forms import BrowseField
from cubane.forms import BaseModelForm, BaseForm
fro... | PypiClean |
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/scripts/symbolic_regression/SFRH_symbolic.py | import numpy as np
from gplearn.genetic import SymbolicRegressor
from gplearn.functions import make_function
import sys,os
def _pow(x1,x2):
with np.errstate(over='ignore'):
return _protected_exponent(x2*_protected_log(x1))
def _protected_exponent(x):
with np.errstate(over='ignore'):
return np.... | PypiClean |
/ECoXiPy-0.4.0.tar.gz/ECoXiPy-0.4.0/ecoxipy/pyxom/_attributes.py | import collections
from ecoxipy import _unicode
from ecoxipy import _helpers
from ._common import _string_repr
class NamespaceNameMixin(object):
'''\
Contains functionality implementing `Namespaces in XML
<http://www.w3.org/TR/REC-xml-names/>`_.
'''
_slots = {'_namespace_prefix', '_local_name',
... | PypiClean |
/MLapp1-0.0.37.tar.gz/MLapp1-0.0.37/src/MLapp/subScript.py | # =============================================================================
# Import packages
# =============================================================================
import pandas as pd
import os
from collections import Counter
import pickle
import numpy as np
import warnings
warnings.filterwarnings("erro... | PypiClean |
/IPFX-1.0.8.tar.gz/IPFX-1.0.8/ipfx/spike_detector.py | import numpy as np
import logging
from . import time_series_utils as tsu
from . import error as er
def detect_putative_spikes(v, t, start=None, end=None, filter=10., dv_cutoff=20., dvdt=None):
"""Perform initial detection of spikes and return their indexes.
Parameters
----------
v : numpy array of vol... | PypiClean |
/BlendSCAD-20170429.0.0.2.zip/BlendSCAD-20170429.0.0.2/examples/projection_demo.py |
# additional module path
#import sys
#sys.path.append("O:/BlenderStuff")
from mathutils import Vector # using Vector type below...
# This block helps during developmentas it reloads the blenderscad modules which are already present
# and may have changed...
# can be commented out or removed if you do not modify b... | PypiClean |
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_201501.py | from __future__ import unicode_literals
name = '201501'
division_schema = {
'110000': '北京市',
'110101': '东城区',
'110102': '西城区',
'110105': '朝阳区',
'110106': '丰台区',
'110107': '石景山区',
'110108': '海淀区',
'110109': '门头沟区',
'110111': '房山区',
'110112': '通州区',
'110113': '顺义区',
'11011... | PypiClean |
/DynamicForms-0.74.8-py3-none-any.whl/dynamicforms_legacy/renderers.py | import copy
import six
from django.template import loader
from django.utils.safestring import mark_safe
from rest_framework.renderers import HTMLFormRenderer, TemplateHTMLRenderer
from rest_framework.serializers import HiddenField, ListSerializer
from rest_framework.utils.serializer_helpers import ReturnDict, ReturnLi... | PypiClean |
/FAT-Forensics-0.1.2.tar.gz/FAT-Forensics-0.1.2/fatf/utils/distances.py |
import inspect
import logging
import warnings
from typing import Callable, Union
import numpy as np
import fatf.utils.array.tools as fuat
import fatf.utils.array.validation as fuav
import fatf.utils.validation as fuv
from fatf.exceptions import IncorrectShapeError
__all__ = ['get_distance_matrix',
'get... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/ts4.8/timers.d.ts | declare module 'timers' {
import { Abortable } from 'node:events';
import { setTimeout as setTimeoutPromise, setImmediate as setImmediatePromise, setInterval as setIntervalPromise } from 'node:timers/promises';
interface TimerOptions extends Abortable {
/**
* Set to `false` to indicate that... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/numerical/dr/dr_numpy.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from numpy import array
from numpy import isnan
from numpy import isinf
from numpy import ones
from numpy import zeros
from scipy.linalg import norm
from scipy.sparse import diags
from compas.numerical import ... | PypiClean |
/Arpeggio-2.0.2.tar.gz/Arpeggio-2.0.2/arpeggio/peg.py |
from __future__ import print_function, unicode_literals
import sys
import codecs
import copy
import re
from arpeggio import Sequence, OrderedChoice, Optional, ZeroOrMore, \
OneOrMore, UnorderedGroup, EOF, EndOfFile, PTNodeVisitor, \
SemanticError, CrossRef, GrammarError, StrMatch, And, Not, Parser, \
Parse... | PypiClean |
/ChemDataExtractor-1.3.0-py3-none-any.whl/chemdataextractor/model.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import copy
from abc import ABCMeta
from collections import MutableSequence
import json
import logging
import six
from .utils import python_2_unicode_compatible
log =... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/contrib/flatpages/templatetags/flatpages.py | from djmodels import template
from djmodels.conf import settings
from djmodels.contrib.flatpages.models import FlatPage
from djmodels.contrib.sites.shortcuts import get_current_site
register = template.Library()
class FlatpageNode(template.Node):
def __init__(self, context_name, starts_with=None, user=None):
... | PypiClean |
/ConfigSpace-nni-0.4.7.tar.gz/ConfigSpace-nni-0.4.7/ConfigSpace/nx/classes/graph.py | import collections
from copy import deepcopy
import ConfigSpace.nx
from ConfigSpace.nx.exception import NetworkXError
# from ConfigSpace.nx import convert
__author__ = """\n""".join(['Aric Hagberg (hagberg@lanl.gov)',
'Pieter Swart (swart@lanl.gov)',
'Dan Schul... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/code_generation/BuiltinCodes.py | from nuitka import Builtins
from nuitka.PythonVersions import python_version
from .CodeHelpers import (
decideConversionCheckNeeded,
generateChildExpressionsCode,
withObjectCodeTemporaryAssignment,
)
from .ErrorCodes import (
getAssertionCode,
getErrorExitBoolCode,
getErrorExitCode,
)
from .Pyt... | PypiClean |
/Helios_Scanner-1.1-py3-none-any.whl/helios/webapp/php.py | from helios.webapp import base_app
import re
import json
try:
from urlparse import urljoin
except ImportError:
from urllib.parse import urljoin
# This script detects vulnerabilities in the following PHP based products:
# - Typo 3
class Scanner(base_app.BaseAPP):
def __init__(self):
self.name = "... | PypiClean |
/OctoBot-Commons-1.9.18.tar.gz/OctoBot-Commons-1.9.18/octobot_commons/databases/run_databases/run_databases_identifier.py | import os
import shutil
import octobot_commons.databases.document_database_adaptors as adaptors
import octobot_commons.constants as constants
import octobot_commons.enums as enums
import octobot_commons.symbols.symbol_util as symbol_util
class RunDatabasesIdentifier:
def __init__(
self,
tentacle_... | PypiClean |
/Cybuild-0.1.tar.gz/Cybuild-0.1/version.py | __author__ = ('Douglas Creager <dcreager@dcreager.net>',
'Michal Nazarewicz <mina86@mina86.com>')
__license__ = 'This file is placed into the public domain.'
__maintainer__ = 'Michal Nazarewicz'
__email__ = 'mina86@mina86.com'
__all__ = ('getVersion')
import re
import subprocess
import sys
RELEASE_VE... | PypiClean |
/Bibtex_File_Comparison_and_Update-1.4.tar.gz/Bibtex_File_Comparison_and_Update-1.4/docs/source/view.py | import Tkinter as tk
from Tkinter import *
import controller
import os
from git import *
from git import Repo
import shutil
import Tkinter, Tkconstants, tkFileDialog
# from pyparsing import Each
class View(tk.Frame):
""" ..class:: View
This class is used for getting user inputs. It uses the tki... | PypiClean |
/JSON_messenger_client-0.1a2-py3-none-any.whl/jim/messages.py | import datetime
from .config import ENCODING
from .decorators import log
def is_helo(message):
"""
Check that received message is helo.
"""
try:
if message["action"] == "helo":
return message["publickey"]
except Exception:
pass
return None
@log
def key_exchange(... | PypiClean |
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/structure/networks/multidimensional.py | __author__ = 'Tom Schaul, tom@idsia.ch'
from pybrain.structure.networks.swiping import SwipingNetwork
from pybrain import MDLSTMLayer, IdentityConnection
from pybrain import ModuleMesh, LinearLayer, TanhLayer, SigmoidLayer
from scipy import product
class MultiDimensionalRNN(SwipingNetwork):
""" One possible impl... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/a11yhelp/dialogs/lang/fr-ca.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("a11yhelp","fr-ca",{title:"Instructions d'accessibilité",contents:"Contenu de l'aide. Pour fermer cette fenêtre, appuyez sur ESC... | PypiClean |
/Flask-Funnel-0.1.10.tar.gz/Flask-Funnel-0.1.10/README.rst | Summary
=======
A Flask extension for compressing/minifying assets.
A Flask-Script submanager is also provided.
.. image:: https://api.travis-ci.org/rehandalal/flask-funnel.png
Documentation
=============
Documentation is at
`<http://flask-funnel.readthedocs.org/en/latest/>`_.
Install
=======
To install::
... | PypiClean |
/Dero-0.15.0-py3-none-any.whl/dero/data/compareids/models/bars.py | from .interface import MatchComparisonBarData, MatchComparisonBarGraphData, IDComparisonCollection
import math
class MatchComparisonBar:
def __init__(self, data: MatchComparisonBarData):
self.data = data
class BarText:
def __init__(self, label, bar_length, total_length, xy=(0,0), **text_kwargs):
... | PypiClean |
/maxbot-0.3.0b2-py3-none-any.whl/maxbot/jinja_env.py | import logging
import jinja2
from jinja2 import nodes
from jinja2.exceptions import TemplateRuntimeError, UndefinedError
from jinja2.ext import Extension
from jinja2.utils import Namespace, missing
from markupsafe import Markup
logger = logging.getLogger(__name__)
def create_jinja_env(options=None):
"""Create J... | PypiClean |
/FishFishJump-0.2.3.tar.gz/FishFishJump-0.2.3/fish_crawlers/slave_crawler/slave_crawler/settings.py |
# Scrapy settings for slave_crawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/topics/downloader... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.