id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/preprocess/remove.py
from collections import namedtuple import numpy as np from Orange.data import Domain, DiscreteVariable from Orange.preprocess.transformation import Lookup from Orange.statistics.util import nanunique from .preprocess import Preprocess __all__ = ["Remove"] class Remove(Preprocess): """ Construct a preproces...
PypiClean
/Gbtestapi0.1-0.1a10-py3-none-any.whl/gailbot/core/engines/exception.py
class ConnectionError(Exception): def __str__(self) -> str: return "ERROR 404: STT Connection Error" class TranscriptionError(Exception): def __init__(self, error: str = None) -> None: super().__init__(error) self.error = error def __str__(self) -> str: return f"ERROR 500:...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/a11yhelp/dialogs/lang/sr-latn.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","sr-latn",{title:"Uputstva za pomoć",contents:"Sadržaji za pomoć. Da bi ste zatvorili diјalog pritisnite ESC.",legend:...
PypiClean
/MakeItSo-0.6.1.tar.gz/MakeItSo-0.6.1/makeitso/python.py
# TODO: console_scripts for all of these import os import shutil import string import sys from cli import MakeItSoCLI from makeitso import ContentTemplate from optparse import OptionParser from template import MakeItSoTemplate from template import Variable class SetupPy(MakeItSoTemplate): """template for setup.p...
PypiClean
/d2lvalence-1.2.2.tar.gz/d2lvalence-1.2.2/README.rst
====================================== Desire2Learn Client Library for Python ====================================== The Python library divides functionality into a number of modules. The primary module helps with authentication. Several supporting modules can assist with making calls in several areas of the Valence AP...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/installer.py
import hashlib import os import tarfile import tempfile import re import urllib.request from binascii import hexlify import docker from docker.errors import BuildError from gridfs import GridFS from pymongo import MongoClient from inginious import __version__ import inginious.common.custom_yaml as yaml from inginious.f...
PypiClean
/Hikka_Pyro-2.0.66-py3-none-any.whl/pyrogram/storage/sqlite_storage.py
import inspect import sqlite3 import time from threading import Lock from typing import List, Tuple, Any from pyrogram import raw from .storage import Storage from .. import utils # language=SQLite SCHEMA = """ CREATE TABLE sessions ( dc_id INTEGER PRIMARY KEY, api_id INTEGER, test_mode INTEGER, ...
PypiClean
/DMS_APP-0.2.1-py3-none-any.whl/dms_app/resources/schema/schema_data.py
from flask import request from flask_restx import Resource, fields from ...db.db_connection import database_access from ...namespace import api import logging from ...response_helper import get_response import json from bson import json_util from ..login_register.login import token_required, token_required_get post_s...
PypiClean
/Nikwus-0.5.4.zip/Nikwus-0.5.4/nikwus/__init__.py
from PIL import Image import cssutils import logging import os.path SPRITE_OFFSET = 10 def as_bool(value): """Converts a value into Boolean.""" return str(value).lower() in ('1', 'true', 'on', 'yes') def normalize_filename(url): """ Normalize file names from file URL to local file names. File...
PypiClean
/Abies-0.0.5.tar.gz/Abies-0.0.5/extern/pybind11/docs/advanced/smart_ptrs.rst
Smart pointers ############## std::unique_ptr =============== Given a class ``Example`` with Python bindings, it's possible to return instances wrapped in C++11 unique pointers, like so .. code-block:: cpp std::unique_ptr<Example> create_example() { return std::unique_ptr<Example>(new Example()); } .. code-blo...
PypiClean
/CherryPy-18.8.0.tar.gz/CherryPy-18.8.0/cherrypy/test/modfastcgi.py
import os import re import cherrypy from cherrypy.process import servers from cherrypy.test import helper curdir = os.path.join(os.getcwd(), os.path.dirname(__file__)) def read_process(cmd, args=''): pipein, pipeout = os.popen4('%s %s' % (cmd, args)) try: firstline = pipeout.readline() if (r...
PypiClean
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/methods/messages/edit_message_caption.py
from typing import Union, List, Optional import newgram from newgram import types, enums class EditMessageCaption: async def edit_message_caption( self: "newgram.Client", chat_id: Union[int, str], message_id: int, caption: str, parse_mode: Optional["enums.ParseMode"] = No...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/a11yhelp/dialogs/lang/he.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","he",{title:"הוראות נגישות",contents:"הוראות נגישות. לסגירה לחץ אסקייפ (ESC).",legend:[{name:"כללי",items:[{name:"סרגל...
PypiClean
/Klarna_API-3.1.0.tar.gz/Klarna_API-3.1.0/klarna/ilt.py
# Copyright 2015 Klarna AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
PypiClean
/Auxjad-1.0.0.tar.gz/Auxjad-1.0.0/auxjad/get/time_signature_list.py
import abjad def time_signature_list(container: abjad.Container, *, do_not_use_none: bool = False, implicit_common_time: bool = True, omit_repeated: bool = False, ) -> list[abjad.TimeSignature]: ...
PypiClean
/DataTig-0.5.0.tar.gz/DataTig-0.5.0/datatig/process.py
import os import shutil import sys import tempfile from datatig.models.siteconfig import SiteConfigModel from .readers.directory import process_type from .repository_access import RepositoryAccessLocalFiles, RepositoryAccessLocalGit from .sqlite import DataStoreSQLite from .sqliteversioned import DataStoreSQLiteVersi...
PypiClean
/OTLModel/Classes/Onderdeel/Pomp.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.Abstracten.LinkendElement import LinkendElement from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField from OTLMOW.OTLModel.Datatypes.KlPompMerk import KlPompMerk from OTLMOW.OTLModel.Datatypes.KlPompModelnaam import...
PypiClean
/EASYPLOT_TOOLBOX-2023.8.tar.gz/EASYPLOT_TOOLBOX-2023.8/license.md
Copyright (c) [2023] [Wanderlei Malaquias Pereira Junior] 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, me...
PypiClean
/CityLearn-1.3.1-py3-none-any.whl/citylearn/rl.py
import random import numpy as np # conditional imports try: import torch from torch.distributions import Normal import torch.nn as nn import torch.nn.functional as F except ImportError: raise Exception("This functionality requires you to install torch. You can install torch by : pip install torch t...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/lockfile/__init__.py
from __future__ import absolute_import import functools import os import socket import threading import warnings # Work with PEP8 and non-PEP8 versions of threading module. if not hasattr(threading, "current_thread"): threading.current_thread = threading.currentThread if not hasattr(threading.Thread, "get_name"):...
PypiClean
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/controllers/api/api.py
import logging import traceback from datetime import datetime from tg import request from kallithea.controllers.api import JSONRPCController, JSONRPCError from kallithea.lib.auth import (AuthUser, HasPermissionAny, HasPermissionAnyDecorator, HasRepoGroupPermissionLevel, HasRepoPermissionLevel, ...
PypiClean
/Cahoots-0.5.2.zip/Cahoots-0.5.2/cahoots/parsers/programming/lexer.py
from pygments.lexers.agile import PerlLexer, PythonLexer, RubyLexer from pygments.lexers.compiled import CLexer, CppLexer from pygments.lexers.dotnet import CSharpLexer, VbNetLexer from pygments.lexers.jvm import JavaLexer from pygments.lexers.web import ActionScript3Lexer, PhpLexer, JavascriptLexer from pygments impor...
PypiClean
/CNN4IE-0.1.9-py3-none-any.whl/cnn4ie/channel_spatial_attention_cnn/model.py
import torch import torch.nn.functional as F import torch.nn as nn from cnn4ie.util import crf from cnn4ie.channel_spatial_attention_cnn.channel_spatial_attention import ChannelSpatialAttention DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu') class Encoder(nn.Module): def __init__(self, emb_d...
PypiClean
/LiBai-0.1.1.tar.gz/LiBai-0.1.1/libai/models/vision_transformer.py
import oneflow as flow import oneflow.nn as nn from flowvision.layers.weight_init import trunc_normal_ import libai.utils.distributed as dist from libai.config.config import configurable from libai.layers import LayerNorm, Linear, PatchEmbedding, TransformerLayer from .build import MODEL_ARCH_REGISTRY @MODEL_ARCH_...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/nls/th/colors.js
define( "dojo/nls/th/colors", //begin v1.x content ({ // local representation of all CSS3 named colors, companion to dojo.colors. To be used where descriptive information // is required for each color, such as a palette widget, and not for specifying color programatically. //Note: due to the SVG 1.0 spec additions, s...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/mixins/imagelist.py
import wx #---------------------------------------------------------------------------- class MagicImageList: ''' Mix-in to provide "magic" growing image lists By Mike Fletcher ''' ### LAZYTREE and LISTCONTROL Methods DEFAULTICONSIZE = 16 def SetupIcons(self, images=(), size=None): ...
PypiClean
/lektor-3.4.0b6-py3-none-any.whl/lektor/datamodel.py
import errno import os from inifile import IniFile from lektor.constants import PRIMARY_ALT from lektor.environment.expressions import Expression from lektor.environment.expressions import FormatExpression from lektor.i18n import generate_i18n_kvs from lektor.i18n import get_i18n_block from lektor.pagination import P...
PypiClean
/FF-Flask-Security-3.1.0.tar.gz/FF-Flask-Security-3.1.0/docs/models.rst
Models ====== Flask-Security assumes you'll be using libraries such as SQLAlchemy, MongoEngine, Peewee or PonyORM to define a data model that includes a `User` and `Role` model. The fields on your models must follow a particular convention depending on the functionality your app requires. Aside from this, you're free ...
PypiClean
/FightMan01dc.pymod-2.0.4.tar.gz/FightMan01dc.pymod-2.0.4/discord/opus.py
import array import ctypes import ctypes.util import logging import sys import time import math import struct import os.path import sys import bisect import threading import traceback from collections import deque from bisect import insort from . import utils from .rtp import RTPPacket, RTCPPacket, SilencePacket, FEC...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/place_digest_ghg_monthly_response_py3.py
from msrest.serialization import Model class PlaceDigestGHGMonthlyResponse(Model): """PlaceDigestGHGMonthlyResponse. :param place_code: The place code :type place_code: str :param place_info: The place info :type place_info: str :param place_id: The place identifier :type place_id: int ...
PypiClean
/Moar-3.0.0.tar.gz/Moar-3.0.0/moar/engines/base.py
from abc import ABCMeta, abstractmethod import inspect from math import ceil from moar import filters as available_filters class BaseEngine(object): __metaclass__ = ABCMeta @abstractmethod def open_image(self, path_or_stream): pass def close_image(self, im): pass @abstractmeth...
PypiClean
/Allegra-0.63.zip/Allegra-0.63/lib/async_client.py
"http://laurentszyster.be/blog/async_client/" import time, socket, collections try: SOCKET_FAMILIES = (socket.AF_INET, socket.AF_UNIX) except: SOCKET_FAMILIES = (socket.AF_INET, ) from allegra import loginfo, async_loop, async_limits def connect (dispatcher, addr, timeout=3.0, fami...
PypiClean
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/rl/environments/twoplayergames/tasks/relativetask.py
__author__ = 'Tom Schaul, tom@idsia.ch' from capturetask import CaptureGameTask from pybrain.rl.environments.twoplayergames.capturegameplayers import ModuleDecidingPlayer from pybrain.rl.environments.twoplayergames import CaptureGame from pybrain.rl.environments.twoplayergames.capturegameplayers.captureplayer import C...
PypiClean
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot/view/controls/delegates/delegatemanager.py
import logging logger = logging.getLogger('camelot.view.controls.delegates.delegatemanager') from PyQt4 import QtGui, QtCore from PyQt4.QtCore import Qt class DelegateManager(QtGui.QItemDelegate): """Manages custom delegates, should not be used by the application developer """ def __init__(self, parent=...
PypiClean
/EuroPython2006_PyQt4_Examples-1.0.zip/EuroPython2006_PyQt4_Examples-1.0/Main Window Classes/mdi/mdi_rc.py
from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x03\x54\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x20\x00\x00\x00\x20\x08\x06\x00\x00\x00\x73\x7a\x7a\xf4\ \x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xd6\xd8\xd4\x4f\x58\x32\ \x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\...
PypiClean
/Hooke-1.0.0.alpha%20(Ninken).tar.gz/Hooke-1.0.0.alpha (Ninken)/hooke/util/igorbinarywave.py
# Based on WaveMetric's Technical Note 003, "Igor Binary Format" # ftp://ftp.wavemetrics.net/IgorPro/Technical_Notes/TN003.zip # From ftp://ftp.wavemetrics.net/IgorPro/Technical_Notes/TN000.txt # We place no restrictions on copying Technical Notes, with the # exception that you cannot resell them. So read, enjoy,...
PypiClean
/IDKlol-0.1.1-py3-none-any.whl/IDKLOL/__init__.py
try: # System imports. from typing import Tuple, Any, Union, Optional import asyncio import sys import datetime import json import functools import os import random as py_random import logging import uuid import json import subprocess # Third party imports. ...
PypiClean
/Fanery-0.2.5.tar.gz/Fanery-0.2.5/fanery/jfanery/json2.js
// Create a JSON object only if one does not already exist. We create the // methods in a closure to avoid creating global variables. if (typeof JSON !== 'object') { JSON = {}; } (function () { 'use strict'; function f(n) { // Format integers to have at least two digits. return n < 10 ? '...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/scripts/util.py
import select, time, electrum_vtc as electrum, Queue from electrum_vtc import Connection, Interface, SimpleConfig from electrum_vtc.network import filter_protocol, parse_servers from collections import defaultdict # electrum.util.set_verbosity(1) def get_interfaces(servers, timeout=10): '''Returns a map of servers...
PypiClean
/Flask-Velox-2014.04.25.tar.gz/Flask-Velox-2014.04.25/flask_velox/admin/views/sqla/forms.py
from flask_velox.admin.mixins.forms import AdminFormMixin, AdminMultiFormMixin from flask_velox.mixins.sqla.forms import ( CreateModelFormMixin, UpdateModelFormMixin, UpdateModelMultiFormMixin) class AdminCreateModelView(CreateModelFormMixin, AdminFormMixin): """ Implements ``CreateModelFormMixin`` fo...
PypiClean
/FanFicFare-4.27.0.tar.gz/FanFicFare-4.27.0/fanficfare/adapters/adapter_wwwsunnydaleafterdarkcom.py
# Copyright 2011 Fanficdownloader team, 2018 FanFicFare team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
PypiClean
/DNBC4-test-2.2.1.tar.gz/DNBC4-test-2.2.1/README.md
[![Github Release](https://img.shields.io/github/v/release/lishuangshuang0616/DNBC4tools)](https://github.com/lishuangshuang0616/DNBC4tools/releases) [![PyPI](https://img.shields.io/pypi/v/dnbc4tools)](https://pypi.org/project/DNBC4tools) [![Docker Pulls](https://img.shields.io/docker/pulls/lishuangshuang3/dnbc4tools)]...
PypiClean
/CADET-Process-0.7.3.tar.gz/CADET-Process-0.7.3/examples/recycling/clr_process.py
# %% [markdown] # (clr_process)= # # Closed Loop Recycling Process # In closed-loop recycling (CLR), the stock mixture is pumped over the column several times until the desired purity is achieved. # The general structure of a CLR is shown below. # # ```{figure} ./figures/clr_flow_sheet.svg # :name: clr_flow_sheet # # ...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/form/PasswordValidator.js
if(!dojo._hasResource["dojox.form.PasswordValidator"]){ dojo._hasResource["dojox.form.PasswordValidator"]=true; dojo.provide("dojox.form.PasswordValidator"); dojo.require("dijit.form._FormWidget"); dojo.require("dijit.form.ValidationTextBox"); dojo.requireLocalization("dojox.form","PasswordValidator",null,"ROOT,ar,ca,c...
PypiClean
/AircraftDR-0.1-py3-none-any.whl/ADR/Analysis/Performance/Power.py
import numpy as np from ADR.Core.data_manipulation import dict_to_dataframe from ADR.Core.data_manipulation import find_df_roots from ADR.Methods.FundamentalEquations import drag class Power: def __init__(self, plane, performance_parameters): self.plane = plane self.wing1 = plane.wing1 s...
PypiClean
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/__init__.py
__project__ = "Draugr" __author__ = "Christian Heider Nielsen" __version__ = "1.0.9" __doc__ = r""" Created on 27/04/2019 @author: cnheider """ import datetime import os from logging import warning from pathlib import Path from typing import Any from importlib import resources from importlib.metadata import Packag...
PypiClean
/Flask-MDBootstrap-3.0.5.tar.gz/Flask-MDBootstrap-3.0.5/flask_mdbootstrap/static/MDB/src/js/vendor/addons/rating.js
(function ($) { $.fn.mdbRate = function () { var $stars; // Custom whitelist to allow for using HTML tags in popover content var myDefaultWhiteList = $.fn.tooltip.Constructor.Default.whiteList myDefaultWhiteList.textarea = []; myDefaultWhiteList.button = []; var $container = $(this); var...
PypiClean
/CloudReg-1.0.1-py3-none-any.whl/cloudreg/scripts/quantify_fluorescence_by_region.py
from ARA_stuff.parse_ara import * import os import argparse from joblib import Parallel, delayed import numpy as np from cloudvolume import CloudVolume from collections import defaultdict, Counter from skimage import transform from tqdm import tqdm, trange import pandas as pd def get_region_stats(atlas_s3_path, data...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/rimraf/CHANGELOG.md
# v3.0 - Add `--preserve-root` option to executable (default true) - Drop support for Node.js below version 6 # v2.7 - Make `glob` an optional dependency # 2.6 - Retry on EBUSY on non-windows platforms as well - Make `rimraf.sync` 10000% more reliable on Windows # 2.5 - Handle Windows EPERM when lstat-ing read-o...
PypiClean
/KaTrain-1.14.0-py3-none-any.whl/katrain/core/contribute_engine.py
import json import os import random import shlex import shutil import signal import subprocess import threading import time import traceback from collections import defaultdict from katrain.core.constants import OUTPUT_DEBUG, OUTPUT_ERROR, OUTPUT_INFO, OUTPUT_KATAGO_STDERR, DATA_FOLDER from katrain.core.engine import ...
PypiClean
/Awespykit-2.1.0-py3-none-any.whl/awespykit/runpykit.py
__license__ = "GNU General Public License v3 (GPLv3)" import sys from functools import partial from os import path from fastpip import VERNUM from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * sys.path.append(path.dirname(__file__)) # rpk.exe 入口点所需 from __info__ import * from com i...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/types/bots_and_keyboards/inline_keyboard_button.py
from typing import Union import fipper from fipper import raw from fipper import types from ..object import Object class InlineKeyboardButton(Object): """One button of an inline keyboard. You must use exactly one of the optional fields. Parameters: text (``str``): Label text on the...
PypiClean
/Flask-JWT-Extended-4.5.2.tar.gz/Flask-JWT-Extended-4.5.2/flask_jwt_extended/default_callbacks.py
from http import HTTPStatus from typing import Any from flask import jsonify from flask.typing import ResponseReturnValue from flask_jwt_extended.config import config def default_additional_claims_callback(userdata: Any) -> dict: """ By default, we add no additional claims to the access tokens. :param ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/gfx.js.uncompressed.js
This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{ 'dojox/gfx/_base':function(){ define("dojox/gfx/_base", ["dojo/_base/lang", "dojo/_base/html", "dojo/_base/Color", "dojo/_base/sn...
PypiClean
/BinTools-0.2.0.zip/BinTools-0.2.0/bintools/dwarf/viewer.py
from bintools.dwarf import DWARF from bintools.dwarf.info import CU, DIE import wx class Info_Frame(wx.Frame): def __init__(self, dwarf): wx.Frame.__init__(self, None, title="DWARF Viewer", size=(520,1000)) self.dwarf = dwarf self.node_names = {} # Search self.sear...
PypiClean
/KiwiCoder-0.3.tar.gz/KiwiCoder-0.3/kiwi/util/graph.py
from collections import deque class DAG: def __init__(self): self.graph = dict() self.key2node = dict() def add_node(self, target_node) -> None: if target_node in self.graph: return self.graph[target_node] = set() self.key2node[target_node.key] = target_nod...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/gfootball/entry/gfootball_bc_rule_main.py
from copy import deepcopy import os import torch import logging import test_accuracy from ding.entry import serial_pipeline_bc, collect_demo_data from ding.config import read_config, compile_config from ding.policy import create_policy from dizoo.gfootball.entry.gfootball_bc_config import gfootball_bc_config, gfootball...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/SConsign.py
from __future__ import print_function __revision__ = "src/engine/SCons/SConsign.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" import SCons.compat import os import pickle import SCons.dblite import SCons.Warnings from SCons.compat import PICKLE_PROTOCOL def corrupt_dblite_warning(filen...
PypiClean
/BenchExec-3.17.tar.gz/BenchExec-3.17/benchexec/runexecutor.py
import argparse import collections import datetime import errno import logging import multiprocessing import os import signal import subprocess import sys import threading import time import tempfile from typing import cast, Optional from benchexec import __version__ from benchexec import baseexecutor from benchexec ...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/tailwindcss/lib/util/normalizeScreens.js
* @typedef {object} Screen * @property {string} name * @property {boolean} not * @property {ScreenValue[]} values */ /** * A function that normalizes the various forms that the screens object can be * provided in. * * Input(s): * - ['100px', '200px'] // Raw strings * - { sm: '100px', md: '200px' } // Obj...
PypiClean
/NEMO_CE-1.6.12-py3-none-any.whl/NEMO/model_tree.py
from typing import List, Dict from django.db.models import QuerySet class TreeItem: """ Helper class for tree items """ item_type = None id: int = None item = None name: str = None tree_category: str = None category: str = None ancestors: List = [] descendants: List = [] children: List = [] child_items: ...
PypiClean
/LrnXPAnaToolbox-0.4.1.tar.gz/LrnXPAnaToolbox-0.4.1/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/Inventicode-1.0.2.tar.gz/Inventicode-1.0.2/inventicode/migrations/0007_auto_20170223_1948.py
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('inventicode', '0006_auto_20170223_1946'), ] operations = [ migrations.AlterField( model_name='printpaper', name='column_numb...
PypiClean
/Catactor-0.1.2.tar.gz/Catactor-0.1.2/script/visualization/compare_down_sampled_auc.py
import pandas as pd import datetime from scipy import sparse import scipy.io from scipy.stats import zscore, wilcoxon, spearmanr from sklearn.preprocessing import binarize, normalize from sklearn import metrics from itertools import cycle from sklearn.metrics import roc_auc_score import os import pickle import seaborn ...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/mirc/mirc.js
//mIRC mode by Ford_Lawnmower :: Based on Velocity mode by Steve O'Hara (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 /...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/upload/LayerInfo.js
'use strict'; define(function (require, exports) { var _ = require('underscore'), fileTypes = require('./FileTypes'), path = require('./path'), common = require('./common'), LayerInfo; /** Creates an instance of a LayerInfo * @constructor * @auth...
PypiClean
/ATACFragQC-0.4.7.tar.gz/ATACFragQC-0.4.7/README.md
# ATACFragQC The Python toolkits designed to control the fragment quality of Bulk/SingCell ATAC-seq. ## Installation ~~~ python3 -m pip install --upgrade ATACFragQC ~~~ ## Usage ~~~ # Basic usage ATACFragQC [options] -i <input.bam> -r <reference.gtf> # For more information ATACFragQC -h ~~~ ## Features * The distr...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/djaloha/align/lib/align-plugin.js
define( ['aloha', 'aloha/plugin', 'aloha/floatingmenu', 'i18n!align/nls/i18n', 'i18n!aloha/nls/i18n', 'aloha/jquery', 'css!align/css/align.css'], function(Aloha, Plugin, FloatingMenu, i18n, i18nCore, jQuery) { var GENTICS = window.GENTICS; /** * register the plugin with unique name */ return Plugin.creat...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/enhanced/nls/ca/Filter.js
define( "dojox/grid/enhanced/nls/ca/Filter", //begin v1.x content ({ "clearFilterDialogTitle": "Netejar el filtre", "filterDefDialogTitle": "Filtre", "ruleTitleTemplate": "Regla ${0}", "conditionEqual": "igual que", "conditionNotEqual": "no és igual que", "conditionLess": "és menys que", "conditionLessEqual": ...
PypiClean
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/compression/torch/pruning/agp.py
# Modified work Copyright (c) 2018 LG Electronics Inc. # SPDX-License-Identifier: GPL-3.0-or-later """ An automated gradual pruning algorithm that prunes the smallest magnitude weights to achieve a preset level of network sparsity. Michael Zhu and Suyog Gupta, "To prune, or not to prune: exploring the efficacy of pru...
PypiClean
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/jax/output/SVG/jax.js
(function(h,c,e,a){var g;var b="http://www.w3.org/2000/svg";var j="http://www.w3.org/1999/xlink";a.Augment({config:{styles:{".MathJax_SVG":{display:"inline","font-style":"normal","font-weight":"normal","line-height":"normal","font-size":"100%","font-size-adjust":"none","text-indent":0,"text-align":"left","text-transfor...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_internal/utils/hashes.py
from __future__ import absolute_import import hashlib from pip._vendor.six import iteritems, iterkeys, itervalues from pip._internal.exceptions import ( HashMismatch, HashMissing, InstallationError, ) from pip._internal.utils.misc import read_chunks from pip._internal.utils.typing import MYPY_CHECK_RUNNING if M...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/charting/Element.js
define("dojox/charting/Element",["dojo/_base/lang","dojo/_base/array","dojo/dom-construct","dojo/_base/declare","dojox/gfx","dojox/gfx/utils","dojox/gfx/shape"],function(_1,_2,_3,_4,_5,_6,_7){ return _4("dojox.charting.Element",null,{chart:null,group:null,htmlElements:null,dirty:true,constructor:function(_8){ this.char...
PypiClean
/Gecco-0.3.0.tar.gz/Gecco-0.3.0/gecco/gecco.py
#pylint: disable=too-many-nested-blocks import sys import os import socket import socketserver import datetime import time import subprocess import json import traceback import random import importlib import inspect from collections import OrderedDict, defaultdict #from threading import Thread, Lock from queue import...
PypiClean
/CherryPy-18.8.0.tar.gz/CherryPy-18.8.0/cherrypy/_helper.py
import urllib.parse from cherrypy._cpcompat import text_or_bytes import cherrypy def expose(func=None, alias=None): """Expose the function or class. Optionally provide an alias or set of aliases. """ def expose_(func): func.exposed = True if alias is not None: if isinst...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/utils/slidergraph.py
import numpy as np from pyqtgraph import PlotWidget, mkPen, InfiniteLine, PlotCurveItem, \ TextItem, Point from AnyQt.QtGui import QColor from AnyQt.QtCore import Qt class SliderGraph(PlotWidget): """ An widget graph element that shows a line plot with more sequences. It also plot a vertical line that...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/codesample/plugin.min.js
!function(e){"use strict";var n,t,a,r=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(e){return function(){return e}},s=i(!1),o=i(!0),l=function(){return u},u=(n=function(e){return e.isNone()},{fold:function(e,n){return e()},is:s,isSome:s,isNone:o,getOr:a=function(e){return e},getOrThunk:t=function(e){re...
PypiClean
/Mesa_Adapted-0.8.7.3-py3-none-any.whl/mesa/visualization/modules/HexGridVisualization.py
from collections import defaultdict from mesa.visualization.ModularVisualization import VisualizationElement class CanvasHexGrid(VisualizationElement): """ A CanvasHexGrid object functions similarly to a CanvasGrid object. It takes a portrayal dictionary and talks to HexDraw.js to draw that shape. A portraya...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/place_group_digest_benchmark_ranking_response_py3.py
from msrest.serialization import Model class PlaceGroupDigestBenchmarkRankingResponse(Model): """PlaceGroupDigestBenchmarkRankingResponse. :param high_cost: The highest cost for this group :type high_cost: float :param low_cost: The lowest cost for this group :type low_cost: float :param ave...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/widget/DynamicTooltip.js.uncompressed.js
define("dojox/widget/DynamicTooltip", ["dijit","dojo","dojox","dojo/i18n!dijit/nls/loading","dojo/require!dijit/Tooltip"], function(dijit,dojo,dojox){ dojo.provide("dojox.widget.DynamicTooltip"); dojo.experimental("dojox.widget.DynamicTooltip"); dojo.require("dijit.Tooltip"); dojo.requireLocalization("dijit", "loading...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/aiohttp/__init__.py
__version__ = '3.5.4' from typing import Tuple # noqa from . import hdrs from .client import ( BaseConnector, ClientConnectionError, ClientConnectorCertificateError, ClientConnectorError, ClientConnectorSSLError, ClientError, ClientHttpProxyError, ClientOSError, ClientPayloadError...
PypiClean
/Layback-0.0.7.tar.gz/Layback-0.0.7/layback/archive.py
import re, os from selenium import webdriver from selenium.webdriver.chrome.options import Options import imageio try: import urllib.request as rq from urllib.parse import urlparse except ImportError: import urllib2 as rq from urlparse import urlparse class Archive(object): def __init__(self, url...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/job/sk_SK/__init__.py
from .. import Provider as JobProvider class Provider(JobProvider): """Translated from Super class""" jobs = ( "Administrátor, umenie", "Administrátor, štátna služba", "Advokát", "Advokát pre ochranné známky", "Akademický knihovník", "Akupunkturista", "...
PypiClean
/AutoDiff_jnrw-0.0.2-py3-none-any.whl/autodiff/vector/sym.py
from typing import List, Union, Callable import numpy as np import itertools from ..forward.sym import Symbol, symbol NumberTypes = Union[int, float, complex] def symbolic_vec(op: Callable[[Symbol, Union[None, NumberTypes, Symbol]], Symbol]) -> Callable[[Union['SymVec', Symbol], Union[Symbol, None]], Union['SymVec', ...
PypiClean
/NNBuilder-0.3.7.tar.gz/NNBuilder-0.3.7/nnbuilder/kernel/basic.py
def defaultreturn(): raise AssertionError('Not Implemented') class operator(object): class Utils: def cast(self, t, dtype): defaultreturn() class Matrix: def dot(self, l, r): defaultreturn() def transpose(self, t): defaultreturn() def ...
PypiClean
/Astropysics-1.0.tar.gz/Astropysics-1.0/distribute_setup.py
import os import sys import time import fnmatch import tempfile import tarfile from distutils import log try: from site import USER_SITE except ImportError: USER_SITE = None try: import subprocess def _python_cmd(*args): args = (sys.executable,) + args return subprocess.call(args) == ...
PypiClean
/Flask-RESTy-4.0.2.tar.gz/Flask-RESTy-4.0.2/flask_resty/authentication.py
import flask from . import context from .exceptions import ApiError # ----------------------------------------------------------------------------- def get_request_credentials(): return context.get("request_credentials") def set_request_credentials(credentials): context.set("request_credentials", credenti...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/syntax/_javascript.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: _javascript.py 70228 2011-12-31 20:39:16Z CJP $" __revision__ = "$Revision: 70228 $" #-----------------------------------------------------------------------------# # Imports import wx.stc as stc # Local Imports import synglob import syndata import _...
PypiClean
/Graphine-0.0.tar.gz/Graphine-0.0/graph/base.py
# Copyright (C) 2009 Geremy Condra # # This file is part of Graphine. # # Graphine 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 3 of the License, or # (at your option) any later version. # #...
PypiClean
/MetaCSV-0.1.1.tar.gz/MetaCSV-0.1.1/CONTRIBUTING.rst
============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com/delgadom/metacsv/iss...
PypiClean
/FEADRE_AI-1.0.7.tar.gz/FEADRE_AI-1.0.7/FEADRE_AI/ai/match_loss/fmatch.py
import torch from FEADRE_AI.GLOBAL_LOG import flog from FEADRE_AI.ai.fits.olf.floss import f_bce_loss from FEADRE_AI.ai.object_detection.boxes.f_boxes import bbox_iou_v3, ltrb2xywh, xywh2ltrb from FEADRE_AI.ai.calc.f_calc_adv import f_cre_grid_cells from FEADRE_AI.ai.picture.f_show import f_show_od_ts4plt_v3 import n...
PypiClean
/HMOBSTER-0.0.44.tar.gz/HMOBSTER-0.0.44/mobster/plotting_mobster.py
import torch from scipy.stats import beta, pareto, moyal import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import matplotlib.patches as mpatches import numpy as np import mobster.utils_mobster as mut def plot_results(data, inf_res, bins=50, output = "results.png",fig_height = 4, fig_width = 3,...
PypiClean
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/gui/module_view/_module_sizer.py
import logging import wx class ModuleSizer(wx.Sizer): """The module sizer uses the maximum best width of the setting edit controls to compute the column widths, then it sets the text controls to wrap within the remaining space, then it uses the best height of each text control to lay out the rows. ...
PypiClean
/FastTextRank-1.4.zip/FastTextRank-1.4/README.rst
# FastTextRank Extract abstracts and keywords from Chinese text, use *optimized iterative algorithms* to improve running **speed**, and *selectively use word vectors* to improve **accuracy**. ## PageRank PageRank is a website page ranking algorithm from Google.<br/> PageRank was originally used to calculate the importa...
PypiClean
/CADET-Process-0.7.3.tar.gz/CADET-Process-0.7.3/examples/load_wash_elute/lwe_concentration.py
# %% [markdown] # (lwe_example_concentration)= # # Concentration Gradients # # ```{figure} ./figures/flow_sheet_concentration.svg # Flow sheet for load-wash-elute process using a single inlet. # ``` # %% import numpy as np from CADETProcess.processModel import ComponentSystem from CADETProcess.processModel import St...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/task.js
"use strict"; function init_task_page(evaluate) { evaluatedSubmission = evaluate; //Init the task form, if we are on the task submission page var task_form = $('form#task'); task_form.on('submit', function() { submitTask(false); return false; }); //Init the button that start a...
PypiClean
/DisPass-0.4.0.tar.gz/DisPass-0.4.0/dispass/commands/generate.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
/DataTig-0.5.0.tar.gz/DataTig-0.5.0/datatig/sqliteversioned.py
import hashlib import json import sqlite3 from contextlib import closing from datatig.models.siteconfig import SiteConfigModel # from .exceptions import DuplicateRecordIdException from .models.error import ErrorModel from .models.git_commit import GitCommitModel from .models.record import RecordModel from .models.rec...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/validate/check.js.uncompressed.js
define("dojox/validate/check", ["dojo/_base/kernel", "dojo/_base/lang", "./_base"], function(kernel, lang, validate){ kernel.experimental("dojox.validate.check"); /*===== validate = dojox.validate; =====*/ /** FIXME: How much does this overlap with dojox.form.Manager and friends? Procedural API Description ...
PypiClean
/Fchierhelloworld-1.2.0.tar.gz/Fchierhelloworld-1.2.0/README.md
# M1-2022-git ## Introduction This repository is a fork from the previous repository. The bugs in the converter have been fixed and now we want to publish our work as a publicly available python package. ## Getting started You should be working from **your own repository** that is a fork of M1-2022-git-workflow. In o...
PypiClean