id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/EggLib-3.3.0.tar.gz/EggLib-3.3.0/src/egglib/coalesce/_param_helpers.py | from .. import eggwrapper as _eggwrapper
from .. import stats, _interface
class ParamDict(object):
"""
:class:`dict`-like class managing parameters. Do most of what a
dictionary does except for adding and removing keys. The order of
parameters is fixed and consistent.
In addition to the methods do... | PypiClean |
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/config.py | import collections
import itertools
import logging
import re
import marshmallow
from marshmallow import fields
import netaddr
from oslo_utils import importutils
from cloudferry.lib.utils import bases
from cloudferry.lib.utils import override
from cloudferry.lib.utils import query
from cloudferry import model
LOG = l... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_rhino/utilities/misc.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
try:
basestring
except NameError:
basestring = str
import os
import sys
import ast
from compas_rhino.forms import TextForm
from compas_rhino.forms import ImageForm
import System
import rhinoscriptsy... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/utils/six.py |
# Copyright (c) 2010-2013 Benjamin Peterson
#
# 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, publ... | PypiClean |
/AutoYOLObile-0.0.10.tar.gz/AutoYOLObile-0.0.10/ModelOpt/AutoYOLO/autorun.py | import os
from ModelOpt.AutoYOLO.train import main_autorun
from ModelOpt.AutoYOLO.test import test_autorun
class YOLO_Autorun:
def print_info(self, info):
print('---------------------------------------------------')
print(info)
print('---------------------------------------------------')
... | PypiClean |
/GENDIS-1.0.14.tar.gz/GENDIS-1.0.14/README.md | # GENDIS [](https://travis-ci.org/IBCNServices/GENDIS) [](https://badge.fury.io/py/GENDIS) [](https://gendis.read... | PypiClean |
/ChiantiPy-0.15.1.tar.gz/ChiantiPy-0.15.1/docs/build/_static/language_data.js | var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
/* Non-minified version JS is _stemmer.js if file is provided */
/**
* Porter Stemmer
*/
var Stemm... | PypiClean |
/Fangorn-0.3.2.tar.gz/Fangorn-0.3.2/README.txt | .. image:: https://bitbucket-badges.atlassian.io/badge/saaj/fangorn.svg?ref=default
:target: https://bitbucket.org/saaj/fangorn/addon/pipelines/home
.. image:: https://codecov.io/bitbucket/saaj/fangorn/branch/default/graph/badge.svg
:target: https://codecov.io/bitbucket/saaj/fangorn/branch/default
.. image:: https:... | PypiClean |
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/Heteogeneous_Highway_Env/vehicle/uncertainty/prediction.py | import copy
from typing import List, Tuple, Callable, Union, TYPE_CHECKING
import numpy as np
from highway_env import utils
from highway_env.interval import polytope, vector_interval_section, integrator_interval, \
interval_negative_part, intervals_diff, intervals_product, LPV, interval_absolute_to_local, \
in... | PypiClean |
/Bilals_pypkg-0.1.tar.gz/Bilals_pypkg-0.1/distributions/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Gaussian(Distribution):
""" Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
Attributes:
mean (float) representing the mean value of the distribution
stdev (float) representing ... | PypiClean |
/3DCORE-1.1.4.tar.gz/3DCORE-1.1.4/py3dcore/fitting/methods/abcsmc_psd.py | import logging
import multiprocessing
import numba
import numpy as np
import os
import pickle
import py3dcore
import time
from py3dcore._extmath import cholesky
from py3dcore._extnumba import set_random_seed
from py3dcore.params import _numba_calculate_weights_reduce
class ABCSMC_PSD(object):
t_data = []
b_d... | PypiClean |
/Cessa-1.2.5rc1.tar.gz/Cessa-1.2.5rc1/pyke/pattern.py |
import types
import itertools
class pattern(object):
def __ne__(self, b): return not (self == b)
def simple_match_pattern(self, bindings, my_context, pattern_b, b_context):
return self.match_pattern(bindings, my_context, pattern_b, b_context)
def lookup(self, context, allow_variable_in_ans = Fal... | PypiClean |
/Gbtestapi-0.1a10-py3-none-any.whl/gailbot/plugins/loader/urlloader.py | import os
import re
import boto3
from botocore.exceptions import ParamValidationError
from cryptography.fernet import Fernet
from typing import Dict, List, Union, TypedDict, Tuple
from abc import ABC
from .directoryloader import PluginDirectoryLoader
from .pluginLoader import PluginLoader
from ..suite import PluginSuit... | PypiClean |
/Abe-0.7.2.tar.gz/Abe-0.7.2/README-MYSQL.txt | Abe setup for MySQL.
Run the Bitcoin client to ensure that your copy of the block chain is
up to date.
Install Python 2.7 and pycrypto. The Debian/Ubuntu packages are
python2.7 and python-crypto.
Install MySQL 5.x server and MySQL-Python. On Debian/Ubuntu:
mysql-server-5.1 and python-mysqldb.
Configure the MySQL ... | PypiClean |
/Flask-AppBuilder-hack-1.12.5.tar.gz/Flask-AppBuilder-hack-1.12.5/flask_appbuilder/baseviews.py | from inspect import isclass
import json
import logging
from datetime import datetime, date
from flask import Blueprint, session, flash, render_template, url_for, abort
from ._compat import as_unicode
from .forms import GeneralModelConverter
from .widgets import FormWidget, ShowWidget, ListWidget, SearchWidget
from .act... | PypiClean |
/KeyboardPaster-0.1.6-py3-none-any.whl/keyboardpaster/keyboard_layout_detector.py | import platform
import subprocess
import ctypes
from ctypes import wintypes
from kivy.logger import Logger
def get_operating_system():
os_name = platform.system()
if os_name == "Linux":
return "Linux"
elif os_name == "Windows":
return "Windows"
elif os_name == "Darwin":
return ... | PypiClean |
/DFHypercode-0.0.1-py3-none-any.whl/Hypercode/enums/targets.py | from .enum_util import AutoSnakeToPascalCaseNameEnum
from ..utils import remove_u200b_from_doc
from enum import auto, unique
class Target:
"""Represents any target of any action."""
pass
class SelectionTarget(Target):
"""Represents the current selection.
Attributes
----------\u200b
valu... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/webhook_create_request_py3.py |
from msrest.serialization import Model
class WebhookCreateRequest(Model):
"""WebhookCreateRequest.
All required parameters must be populated in order to send to Azure.
:param webhook_name: Required. The name of the webhook <span
class='property-internal'>Required</span> <span
class='property-... | PypiClean |
/Carpenter-1.0.2.zip/Carpenter-1.0.2/carpenter/carpenter.py | import sys
import itertools
from blocks.cellanalyzer import is_empty_cell
def append_column(table, col_name, default_value=None):
'''
Appends a column to the raw data without any integrity checks.
Args:
default_value: The value which will assigned, not copied into each row
'''
table[0].app... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/core/checks/registry.py | from itertools import chain
from django.utils.inspect import func_accepts_kwargs
from django.utils.itercompat import is_iterable
class Tags:
"""
Built-in tags for internal checks.
"""
admin = "admin"
async_support = "async_support"
caches = "caches"
compatibility = "compatibility"
da... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/dizoo/mujoco/config/walker2d_onppo_config.py | from easydict import EasyDict
collector_env_num = 1
evaluator_env_num = 1
walker2d_onppo_config = dict(
exp_name='walker2d_onppo_seed0',
env=dict(
env_id='Walker2d-v3',
norm_obs=dict(use_norm=False, ),
norm_reward=dict(use_norm=False, ),
collector_env_num=collector_env_num,
... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/us_tax_words.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def us_tax_words(path):
"""Number of Words in US Tax Law
Thousands of words in US tax law for ... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/readable-stream/errors.js | 'use strict';
const codes = {};
function createErrorType(code, message, Base) {
if (!Base) {
Base = Error
}
function getMessage (arg1, arg2, arg3) {
if (typeof message === 'string') {
return message
} else {
return message(arg1, arg2, arg3)
}
}
class NodeError extends Base {
... | PypiClean |
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/server/util/tornado.py | __author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import mimetypes
import os
import re
import sys
from urllib.parse im... | PypiClean |
/Asciin.py-0.1.7.tar.gz/Asciin.py-0.1.7/Asciinpy/amath.py | from __future__ import division
GRADIENT = (
lambda P1, P2: None if P2[0] - P1[0] == 0 else (P2[1] - P1[1]) / (P2[0] - P1[0])
)
class Matrix:
"""
A matrix class that supports up to 10x10 matrixes.
Supports scalar multiplication, pretty printing, equality checks,
matrix multiplication and alias r... | PypiClean |
/Helmholtz-0.2.0.tar.gz/Helmholtz-0.2.0/helmholtz/analysis/tools/core/pins.py | class Pin(object) :
"""Describe an Input or Output of a Component :
- name : name (alias) of the pin
- type : type constraint
- usecase : description of the pin,
- potential : an object of type Connection,
- component : the component that use this pin,
- connected_to : list of other pin... | PypiClean |
/Editobj3-0.2.tar.gz/Editobj3-0.2/undoredo.py |
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be usefu... | PypiClean |
/FastCNN2-1.23.425.1716.tar.gz/FastCNN2-1.23.425.1716/FastCNN/prx/YoloV5TrainProxy.py | import argparse
import math
import os
import random
import sys
import time
from copy import deepcopy
from datetime import datetime
from pathlib import Path
import numpy as np
import torch
import torch.distributed as dist
import torch.nn as nn
import yaml
from torch.nn.parallel import DistributedDataParallel as DDP
fro... | PypiClean |
/BulkWhois-0.2.1.tar.gz/BulkWhois-0.2.1/README.txt | ===========
BulkWhois
===========
BulkWhois provides a simple interface to several bulk whois servers. This
allows you to look up the ASNs, AS names, country codes, and other assorted
information very efficiently for a large number of IP addresses.
Currently implemented bulk whois servers are:
Cymru: BulkWhoisCy... | PypiClean |
/DZDutils-1.7.4.tar.gz/DZDutils-1.7.4/LICENSE.md | Copyright 2019 German Center for Diabetes Research (DZD)
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, p... | PypiClean |
/AWS_pypi_exercise-0.1.tar.gz/AWS_pypi_exercise-0.1/AWS_pypi_exercise/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Gaussian(Distribution):
""" Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
Attributes:
mean (float) representing the mean value of the distribution
stdev (float) representing ... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/adapters/jquery.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
(function(a){if("undefined"==typeof a)throw Error("jQuery should be loaded before CKEditor jQuery adapter.");if("undefined"==typeof CKEDITOR)throw Error("... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_pt-pt.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": [
"da manh\u00e3",
"da tarde"
],
"DAY": [
"dom... | PypiClean |
/DeepPhysX.Sofa-22.12.1.tar.gz/DeepPhysX.Sofa-22.12.1/examples/demos/Beam/FC/prediction.py | import os
import sys
# Sofa related imports
import Sofa.Gui
# DeepPhysX related imports
from DeepPhysX.Core.Database.BaseDatabaseConfig import BaseDatabaseConfig
from DeepPhysX.Core.Pipelines.BasePrediction import BasePrediction
from DeepPhysX.Sofa.Environment.SofaEnvironmentConfig import SofaEnvironmentConfig
from D... | PypiClean |
/DjangoComponents-0.0.0.33.tar.gz/DjangoComponents-0.0.0.33/django_components/static/js/src/search.js | var SearchOption = React.createClass({
update: function(e) {
this.props.click(this.props.children);
},
render: function() {
return <div className='search-suggestion' onMouseDown={this.update}>{this.props.children}</div>;
}
});
var DropdownSearch = React.createClass({
getInitialState: function() {
... | PypiClean |
/Blogofile-0.8.3.tar.gz/Blogofile-0.8.3/blogofile/config.py | __author__ = "Ryan McGuire (ryan@enigmacurry.com)"
import os
import logging
import sys
import re
from . import cache
from . import controller
from . import plugin
from . import filter as _filter
from .cache import HierarchicalCache as HC
# TODO: This import MUST come after cache is imported; that's too brittle!
import... | PypiClean |
/Hebel-0.02.1.tar.gz/Hebel-0.02.1/hebel/layers/input_dropout.py |
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# bu... | PypiClean |
/Djam-0.9.8.tar.gz/Djam-0.9.8/djam/utils.py | from __future__ import unicode_literals, division
import os, re, hashlib, threading, string
from binascii import hexlify
from django.conf import settings
from django.utils import six
class SharedStateBase(object):
"Allow all instances to 'reliably' share variables"
# Use the 'Borg pattern' to share state be... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/methods/stream/resume_stream.py | import asyncio
from typing import Union
from ...exceptions import NodeJSNotRunning
from ...exceptions import NoMtProtoClientSet
from ...exceptions import NotInGroupCallError
from ...mtproto import BridgedClient
from ...scaffold import Scaffold
from ...types import NotInGroupCall
from ...types.session import Session
... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/zh.py |
languages={'gv': u'\u9a6c\u6069\u5c9b\u6587', 'gu': u'\u53e4\u52a0\u62c9\u63d0\u6587', 'gd': u'\u82cf\u683c\u5170- \u76d6\u5c14\u6587', 'ga': u'\u7231\u5c14\u5170\u6587', 'gn': u'\u74dc\u62c9\u5c3c\u6587', 'gl': u'\u52a0\u5229\u897f\u4e9a\u6587', 'la': u'\u62c9\u4e01\u6587', 'ln': u'\u6797\u52a0\u62c9\u6587', 'lo': u'... | PypiClean |
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/toolkits/data_matching/similarity_search.py | from graphlab.data_structures.sframe import SFrame as _SFrame
from graphlab.data_structures.image import Image as _Image
from graphlab.toolkits._model import CustomModel as _CustomModel
from graphlab.toolkits._main import ToolkitError as _ToolkitError
import graphlab as _gl
import graphlab.toolkits._internal_utils as _... | PypiClean |
/Ibidas-0.1.26.tar.gz/Ibidas-0.1.26/docs/tutorial_example2.rst | Chromosome distribution
=======================
In this example, we will analyze the genomic locations of transcription factor targets, to determine if transription
factors favor specific chromosomes. Also, we will compare transcription factors on the chromosomes they target, to see if there are transcription
factors... | PypiClean |
/NeodroidAgent-0.4.8-py36-none-any.whl/neodroidagent/common/memory/exclude/wtf/data_structures/Replay_Buffer.py | import random
from collections import deque, namedtuple
import numpy as np
import torch
class Replay_Buffer(object):
"""Replay buffer to store past experiences that the agent can then use for training data"""
def __init__(self, buffer_size, batch_size, seed):
self.memory = deque(maxlen=buffer_size)
sel... | PypiClean |
/DataProcessing_Package-tewariutkarsh-0.0.1.tar.gz/DataProcessing_Package-tewariutkarsh-0.0.1/src/DataProcessing_Package/DataProcessing.py | from sklearn.preprocessing import StandardScaler
import pandas as pd
import numpy as np
from pandas_profiling import ProfileReport
class PreProcess:
def __init__(self, data):
self.data = data
self.check()
def check(self):
if(self.checkDF()==True or self.checkNumArr()==True):
... | PypiClean |
/HamlPy3-0.84.0.tar.gz/HamlPy3-0.84.0/hamlpy/template/loaders.py | import os
try:
from django.template import TemplateDoesNotExist
from django.template.loaders import filesystem, app_directories
_django_available = True
except ImportError as e:
class TemplateDoesNotExist(Exception):
pass
_django_available = False
from hamlpy import hamlpy
from hamlpy.tem... | PypiClean |
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/canvas/registry/qt.py | import bisect
from xml.sax.saxutils import escape
from urllib.parse import urlencode
from AnyQt.QtWidgets import QAction
from AnyQt.QtGui import QStandardItemModel, QStandardItem, QColor, QBrush
from AnyQt.QtCore import QObject, Qt
from AnyQt.QtCore import pyqtSignal as Signal
from .discovery import WidgetDiscovery
... | PypiClean |
/ExifRead-nocycle-3.0.1.tar.gz/ExifRead-nocycle-3.0.1/exifread/heic.py |
# As of 2019, the latest standard seems to be "ISO/IEC 14496-12:2015"
# There are many different related standards. (quicktime, mov, mp4, etc...)
# See https://en.wikipedia.org/wiki/ISO_base_media_file_format for more details.
# We parse just enough of the ISO format to locate the Exif data in the file.
# Inside the ... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/printing/codeprinter.py | from __future__ import annotations
import typing
from ..core import Add, Basic, Integer, Lambda, Mul, Pow, Symbol
from ..core.mul import _keep_coeff
from ..core.relational import Relational
from ..core.sympify import sympify
from ..utilities import default_sort_key
from .precedence import precedence
from .str import ... | PypiClean |
/DataExtractionTiket-0.0.1.tar.gz/DataExtractionTiket-0.0.1/__init__.py | import requests
import pandas as pd
import json
from datetime import datetime
from google.cloud.sql.connector import connector
from threading import Timer
import mysql.connector
def data_extraction():
end_date = datetime.today().strftime('%Y-%m-%d')
print("test")
print(end_date)
print("test")
#URL... | PypiClean |
/GailBot_Testing_Suite-0.1a8-py3-none-any.whl/gailbot/services/converter/payload/transcribedDirPayload.py | from typing import Union
import os
from .payloadObject import PayLoadObject, PayLoadStatus
from ...organizer.source import SourceObject
from gailbot.core.utils.general import is_directory, is_file, copy
from gailbot.core.utils.logger import makelogger
from gailbot.workspace.manager import WorkspaceManager
from gailbo... | PypiClean |
/Caboodle-1.0.2.tar.gz/Caboodle-1.0.2/docs/libraries/d3cryp7.md | d3cryp7
=======
d3cryp7 Library
The d3cryp7 library defines functions to interact with d3cryp7's web API.
See the unit tests for this library for more information.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**Functions:**
--------------
#### recognize_image(url, image)
Posts a... | PypiClean |
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/custom_scalar.py | from __future__ import annotations
import sys
from dataclasses import dataclass
from typing import (
TYPE_CHECKING,
Any,
Callable,
Iterable,
Mapping,
NewType,
Optional,
Type,
TypeVar,
Union,
overload,
)
from strawberry.exceptions import InvalidUnionTypeError
from strawberry... | PypiClean |
/MeneTools-3.3.0-py3-none-any.whl/menetools/meneseed.py |
# Copyright (C) 2017-2023 Clémence Frioux & Arnaud Belcour - Inria Dyliss - Pleiade
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option)... | PypiClean |
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/data/tokenizers/bert_tokenizer_utils.py | import collections
from typing import Dict, List, Optional, Tuple
import unicodedata
__all__ = [
"load_vocab",
"BasicTokenizer",
"WordpieceTokenizer",
]
def load_vocab(vocab_file: str) -> Dict[str, int]:
r"""Loads a vocabulary file into a dictionary."""
vocab: Dict[str, int] = collections.Ordere... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/lang/sk.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['sk']={"dir":"ltr","editor":"Editor formátovaného textu","common":{"editorHelp":"Stlačte ALT 0 pre nápovedu","browseServer":"Prechádzať server","url":"URL","pro... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/code_generation/ConditionalCodes.py | from .CodeHelpers import decideConversionCheckNeeded, generateExpressionCode
from .Emission import SourceCodeCollector
from .ErrorCodes import (
getErrorExitBoolCode,
getReleaseCode,
getTakeReferenceCode,
)
from .LabelCodes import getBranchingCode, getGotoCode, getLabelCode
def generateConditionCode(condi... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/glob/common.js | exports.setopts = setopts
exports.ownProp = ownProp
exports.makeAbs = makeAbs
exports.finish = finish
exports.mark = mark
exports.isIgnored = isIgnored
exports.childrenIgnored = childrenIgnored
function ownProp (obj, field) {
return Object.prototype.hasOwnProperty.call(obj, field)
}
var fs = require("fs")
var path ... | PypiClean |
/20220429_pdfminer_jameslp310-0.0.2-py3-none-any.whl/pdfminer/cmapdb.py | import gzip
import logging
import os
import os.path
import pickle as pickle
import struct
import sys
from typing import (
Any,
BinaryIO,
Dict,
Iterable,
Iterator,
List,
MutableMapping,
Optional,
TextIO,
Tuple,
Union,
cast,
Set,
)
from .encodingdb import name2unicode
... | PypiClean |
/4cdl-0.1.tar.gz/4cdl-0.1/4cdl.py | from urlparse import urlparse
import argparse
import httplib
import urllib2
import re
import time
import json
import os
import threading
sleep_time = 10
wait_thread_sleep_time = 2
cache_string = "Run out of free thread. Retry after" + \
str(wait_thread_sleep_time) + "second"
number_of_thread = 10
cla... | PypiClean |
/Nodes-1.2.tar.gz/Nodes-1.2/ez_setup.py | import sys
DEFAULT_VERSION = "0.6c9"
DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
md5_data = {
'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca',
'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb',
'setuptools-0.6b2-py2.3.egg': '5657759... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/users/views/profile.py | from django.contrib.auth import get_user_model
from django.http import Http404
from django.shortcuts import get_object_or_404, redirect, render
from django.views import View
from ...acl.objectacl import add_acl_to_obj
from ...core.shortcuts import paginate, pagination_dict, validate_slug
from ..bans import get_user_ba... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mobile/TabBarButton.js | define("dojox/mobile/TabBarButton",["dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dijit/registry","./common","./_ItemBase"],function(_1,_2,_3,_4,_5,_6,_7,_8){
return _1("dojox.mobile.TabBarButton",_8,{icon1:"",icon2:"",iconPos1:"",iconPos2:"",selected:false,transition... | PypiClean |
/LAM-0.4.7.tar.gz/LAM-0.4.7/src/process.py | # Standard libraries
from decimal import Decimal
import inspect
import math
import re
import warnings
# Other packages
import numpy as np
import pandas as pd
import pathlib as pl
import shapely.geometry as gm
from shapely.ops import polygonize
from scipy.ndimage import morphology as mp
from skimage.morphology import m... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/js/addon/dialog/dialog.js |
// Open simple dialogs on top of an editor. Relies on dialog.css.
(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 // Plai... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/clipboard/dialogs/paste.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("paste",function(c){function h(a){var b=new CKEDITOR.dom.document(a.document),f=b.getBody(),d=b.getById("cke_actscrpt");d&&d.remove();f.setAttribute("cont... | PypiClean |
/BNIAJFI_VitalSigns-0.0.13.tar.gz/BNIAJFI_VitalSigns-0.0.13/VitalSigns/rbintel.py |
__all__ = ['vsDom', 'cashsa', 'reosa']
# Cell
import numpy as np
import pandas as pd
# import geopandas
import geopandas as gpd
# from geopandas import GeoDataFrame
# Cell
def vsDom(df, yr):
id = '30'
shortname = 'dom'
fincol = id+'-'+shortname+year
# Create the Numerator and Denominator
numer = df[['Days... | PypiClean |
/GReNaDIne-0.0.21.tar.gz/GReNaDIne-0.0.21/grenadine/Preprocessing/rnaseq_normalization.py | import pandas as pd
import numpy as np
try:
from rpy2.robjects.packages import importr
import rpy2.robjects as ro
from rpy2.robjects import Formula
from rpy2.robjects import pandas2ri
deseq2 = importr('DESeq2')
base = importr('base')
biogeneric = importr('BiocGenerics')
sum_exp = importr... | PypiClean |
/BIP-0.6.16.tar.gz/BIP-0.6.16/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) == 0... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/address/en_IN/__init__.py | from .. import Provider as AddressProvider
class Provider(AddressProvider):
# City and States names taken from wikipedia
# Street format taken from some common famous places in India
# Link for cities: https://en.wikipedia.org/wiki/List_of_cities_in_India_by_population
# Link for States: https://en.wi... | PypiClean |
/DMS_APP-0.2.1-py3-none-any.whl/dms_app/resources/truckMaster/check_list_master.py | from flask import request
from flask_restx import Resource, fields, reqparse
from ...db.db_connection import database_access
from ...namespace import api
from ...response_helper import get_response
import logging
import json
from bson import json_util
from bson.objectid import ObjectId
from ..login_register.login impor... | PypiClean |
/Oasis_Optimization-1.0.2-py3-none-any.whl/Oasis/__init__.py | __author__ = 'Mostafa Farrag'
__version__ = '1.0.2'
__docformat__ = 'restructuredtext'
# import os,sys
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
# def configuration(parent_package, top_path):
# config = Configuration('Oasis', parent_package, top_path)
# # ... | PypiClean |
/HyFetch-1.4.10.tar.gz/HyFetch-1.4.10/README.md | # HyFetch
neofetch with pride flags <3
<img alt="screenshot" src="https://user-images.githubusercontent.com/22280294/197708447-ddee6db2-1017-48f2-b507-8ddf85acef0d.png">
### Running Updated Original Neofetch
This repo also serves as an updated version of the original `neofetch` since the upstream [dylanaraps/neofet... | PypiClean |
/CommandLineApp-3.0.7.tar.gz/CommandLineApp-3.0.7/docs/source/history.rst | #######
History
#######
3.0.7
- Repackage the documentation
3.0.6
- Bug fix from Cezary Statkiewicz for handling default arguments.
3.0.5
- Fixed packaging problems that prevented installation with easy_install and pip.
3.0.4
- Switched to sphinx for documentation.
3.0.3
- Updated the build t... | PypiClean |
/Hikka_TL_New-2.0.4-py3-none-any.whl/hikkatl/tl/functions/channels.py | from ...tl.tlobject import TLObject
from ...tl.tlobject import TLRequest
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
from datetime import datetime
if TYPE_CHECKING:
from ...tl.types import TypeChannelAdminLogEventsFilter, TypeChannelParticipantsFilter, TypeChatAdminRights, TypeCh... | PypiClean |
/EtherollApp-2020.322-py3-none-any.whl/etherollapp/etheroll/controller.py | from dotenv import load_dotenv
from eth_utils import to_checksum_address
from kivy.app import App
from kivy.clock import Clock, mainthread
from kivy.logger import Logger
from kivy.properties import ObjectProperty, StringProperty
from kivy.uix.floatlayout import FloatLayout
from kivy.utils import platform
from kivymd.bo... | PypiClean |
/LDtoolsets-0.0.14.tar.gz/LDtoolsets-0.0.14/LDtools/sumstat.py |
__all__ = ['p2z', 'Sumstat', 'read_sumstat']
# Cell
import yaml
import numpy as np
import pandas as pd
from scipy.stats import norm
from .utils import *
# Cell
def p2z(pval,beta,twoside=True):
if twoside:
pval = pval/2
z=np.abs(norm.ppf(pval))
ind=beta<0
z[ind]=-z[ind]
return z
class Sum... | PypiClean |
/Nerd-Color-0.1.0.tar.gz/Nerd-Color-0.1.0/src/nerdcolor/__main__.py | import argparse
import sys
from nerdcolor.nerdcolor import SCHEMES, VERSION, Colorscheme
def print_colorschemes():
for key in SCHEMES.keys():
scheme = Colorscheme([key], "true", delimiter="char", bold=True)
print(scheme.colorize(key))
def print_examples():
string = (
"Full versions:... | PypiClean |
/Da_Ponz-4.0.4-py3-none-any.whl/da_ponz/strategies/ltsm.py | import da_ponz.strategies.common_functions as common_functions
import keras
import math
import sklearn.metrics as skl_met
def calculate_rmse(batch_size, data, epochs, neuron, scaler, test_scaled, train_scaled):
model = create_model(batch_size, epochs, neuron, train_scaled)
train_reshaped = train_scaled[:, :-1... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/gqcms/PlottingTools/LegendPlotter.py | import matplotlib.pyplot as plt
import seaborn as sns
from PIL import Image
def sitesDrawer(postitions, color_dict={}, edge_color_dict={}, axis="NotGiven"):
"""
draws sites on the canvas on the required position
positions, list of tuples: the positions of the sites
color_dict, dict: contains the color... | PypiClean |
/Cookies_colorama-0.4.6.tar.gz/Cookies_colorama-0.4.6/Cookies_colorama/winterm.py | from . import win32
# from wincon.h
class WinColor(object):
BLACK = 0
BLUE = 1
GREEN = 2
CYAN = 3
RED = 4
MAGENTA = 5
YELLOW = 6
GREY = 7
# from wincon.h
class WinStyle(object):
NORMAL = 0x00 # dim text, dim background
BRIGHT = 0x08 ... | PypiClean |
/DracoPy-0.0.10.tar.gz/DracoPy-0.0.10/draco/docs/spec/index.md | ---
layout: spec-page
title: Draco Bitstream Specification
version: Version 2,2
version_date: Released 2017-10-25
---
<ol class="breadcrumb">
<li class=""><a href="..">Home</a></li>
<li class="">Draft Specification</li>
</ol>
{% include_relative 00.00.00.title.md %}
{% include_relative 00.00.01.version.md %}
{% i... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Subst.py |
__revision__ = "src/engine/SCons/Subst.py 2014/07/05 09:42:21 garyo"
import collections
import re
import SCons.Errors
from SCons.Util import is_String, is_Sequence
# Indexed by the SUBST_* constants below.
_strconv = [SCons.Util.to_String_for_subst,
SCons.Util.to_String_for_subst,
SCons.Ut... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/colors/named_colors.py | from mathics.builtin.base import Builtin
from mathics.core.symbols import strip_context
class _ColorObject(Builtin):
text_name = None
def __init__(self, *args, **kwargs):
super(_ColorObject, self).__init__(*args, **kwargs)
if self.text_name is None:
text_name = strip_context(self.... | PypiClean |
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/widgets/utils/messagewidget.py | import sys
import enum
import base64
from itertools import chain
from operator import attrgetter
from xml.sax.saxutils import escape
from collections import OrderedDict
# pylint: disable=unused-import
from typing import (
NamedTuple, Tuple, List, Dict, Iterable, Union, Optional, Hashable
)
from AnyQt.QtCore import... | PypiClean |
/MNN-0.0.7-cp27-cp27mu-manylinux2010_x86_64.whl/MNNTools/MNN_FB/InnerProduct.py |
# namespace: MNN
import flatbuffers
class InnerProduct(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsInnerProduct(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = InnerProduct()
x.Init(buf, n + offset)
return x
# In... | PypiClean |
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Tools/DocGen/TestSuiteRun.py | import re
import os
import sys
def writeOut(filename,data):
"""Write data to the named file"""
F=open(filename,"w")
F.write(data)
F.close()
def processDirectory(suiteDir, outFilePath, filePattern):
"""\
Recurse through test suite directory running any python files matching the
specified fi... | PypiClean |
/DisplaceNet-0.1.tar.gz/DisplaceNet-0.1/preprocessing/emotic/x_train_csv_to_numpy.py | import numpy as np
import pandas
from utils.generic_utils import progress, imagenet_preprocess_input, places_preprocess_input
from keras.preprocessing import image
from keras.applications.vgg16 import preprocess_input
from keras.applications.resnet50 import preprocess_input
# reference https://stackoverflow.com/quest... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/debug/README.md | # debug
[](https://travis-ci.org/debug-js/debug) [](https://coveralls.io/github/debug-js/debug?branch=master) [:
"""
Implements a simple Observer from the Observer pattern
"""
def __init__(self, name="bob"):
"""
"""
self.name = name
def update(self, message):
"""
"""
... | PypiClean |
/aleksis_core-3.1.5-py3-none-any.whl/aleksis/core/frontend/mixins/offline.js | import gqlPing from "../components/app/ping.graphql";
/**
* Mixin for handling of offline state / background queries.
*
* This handles three scenarios:
* - The navigator reports that it is in offline mode
* - The global offline flag was set due to network errors from queries
* - The navigator reports the p... | PypiClean |
/HierCC-1.24.tar.gz/HierCC-1.24/HCCeval_fastANI.py |
import os, sys, pandas as pd, numpy as np, logging, gzip
import click
from sklearn.metrics import silhouette_score, normalized_mutual_info_score
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.colors as colors
from multiprocessing import Pool
import SharedArray as sa
from temp... | PypiClean |
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/blog/migrations/south/0013_auto__chg_field_blogpost_featured_image.py |
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
try:
from django.contrib.auth import get_user_model
except ImportError: # django < 1.5
from django.contrib.auth.models import User
else:
User = get_user_model()
user_orm_label = '%s.%s' % (User._meta... | PypiClean |
/EdaSpiffWorkflow-0.0.2.tar.gz/EdaSpiffWorkflow-0.0.2/EdaSpiffWorkflow_Aadesh_G/bpmn/serializer/workflow.py | import json
import gzip
from copy import deepcopy
from uuid import UUID
from .bpmn_converters import BpmnDataConverter
from ..workflow import BpmnWorkflow
from ..specs.SubWorkflowTask import SubWorkflowTask
from ...task import Task
from .workflow_spec_converter import BpmnProcessSpecConverter
from .task_spec_conver... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/charting/plot2d/Bubble.js | define("dojox/charting/plot2d/Bubble",["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","./Base","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils","dojox/gfx/fx"],function(_1,_2,_3,_4,dc,df,_5,du,fx){
var _6=_5.lambda("item.purgeGroup()");
return _2("dojox.charting.plot2d.B... | PypiClean |
/Flaskel-3.1.0rc2-py3-none-any.whl/flaskel/utils/logger.py | REQUEST_FORMATTER = "flask_logify.formatters.RequestFormatter"
def handler(formatter, **kwargs):
return {
"class": "logging.StreamHandler",
"stream": "ext://sys.stderr",
"formatter": formatter,
**kwargs,
}
LOGGING = dict(
version=1,
disable_existing_loggers=False,
... | PypiClean |
/AnyRobot-1.5.4.tar.gz/AnyRobot-1.5.4/aishu/datafaker/profession/entity/RetrievesAssociated.py | import random,json
from aishu.datafaker.profession.entity import date
from aishu.datafaker.profession.entity.AssociationMapping import sql
from aishu.public.db_select import select
class ParaDateAnyRobotServer(object):
def __init__(self,key):
self.key = key
self.sql = sql(self.key)
def getSave... | PypiClean |
/ISAMBARD-2.3.1.tar.gz/ISAMBARD-2.3.1/src/isambard/specifications/coiledcoil.py |
from ampal import Assembly
import numpy
from .helix import HelicalHelix, _helix_parameters
basis_set_parameters = {
2: {'name': 'CC-Di', 'pitch': 225.8, 'radius': 5.07, 'interface_angle': 283.56,
'sequence': 'EIAALKQEIAALKKENAALKWEIAALKQ'},
3: {'name': 'CC-Tri', 'pitch': 194.0, 'radius': 6.34, 'inter... | PypiClean |
/FAaDO-0.0.4.tar.gz/FAaDO-0.0.4/fado/cli/arguments/arguments.py | import importlib
import logging
import os
import random
import sys
from pathlib import Path
import yaml
from fado.constants import IMPORT_OUT
logger = logging.getLogger('fado')
logger = logging.LoggerAdapter(logger, {'node_id': 'arguments'})
class FADOArguments:
""" A class for reading arguments from a yaml fil... | PypiClean |
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/static/mezzanine/tinymce/langs/zh_CN.js | tinymce.addI18n('zh_CN',{
"Cut": "\u526a\u5207",
"Heading 5": "\u6807\u98985",
"Header 2": "\u6807\u98982",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5bf9\u526a\u8d34\u677f\u7684\u8bbf\u95ee\... | PypiClean |
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/input/providers/probesysfs.py | __all__ = ('ProbeSysfsHardwareProbe', )
import os
from os.path import sep
if 'KIVY_DOC' in os.environ:
ProbeSysfsHardwareProbe = None
else:
import ctypes
from re import match, IGNORECASE
from glob import glob
from subprocess import Popen, PIPE
from kivy.logger import Logger
from kivy.inp... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.