id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/MDSuite-0.2.0-py3-none-any.whl/mdsuite/project/project.py | from __future__ import annotations
import logging
import pathlib
from datetime import datetime
from pathlib import Path
from typing import Dict, Union
from dot4dict import dotdict
import mdsuite.database.scheme as db
import mdsuite.file_io.file_read
from mdsuite.database.project_database import ProjectDatabase
from ... | PypiClean |
/ATAX-1.1.3.tar.gz/ATAX-1.1.3/anlagenverzeichnis.py |
from __future__ import division, print_function
from __future__ import absolute_import, unicode_literals
from _ATAX.accounting import *
from _ATAX.accounting import _Base_, _Entry_
from _TFL.pyk import pyk
from _TFL.Regexp import *
import _TFL.CAO
import _TFL.r_eval
class _Mixi... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/geo/__init__.py | from decimal import Decimal
from typing import Optional, Tuple, Union
from .. import BaseProvider
localized = True
PlaceType = Tuple[str, str, str, str, str]
class Provider(BaseProvider):
"""
land_coords data extracted from geonames.org, under the Creative Commons Attribution 3.0 License.
Coordinates a... | PypiClean |
/flask-2.3.3-py3-none-any.whl/flask/json/provider.py | from __future__ import annotations
import dataclasses
import decimal
import json
import typing as t
import uuid
import weakref
from datetime import date
from werkzeug.http import http_date
if t.TYPE_CHECKING: # pragma: no cover
from ..app import Flask
from ..wrappers import Response
class JSONProvider:
... | PypiClean |
/DiggersToolbox-0.1.0.tar.gz/DiggersToolbox-0.1.0/README.md | # The digger toolbox [](https://travis-ci.org/ClemDoum/DiggersToolbox)
## Installation
### Prerequisite
- Install [`ffmpeg`](https://www.ffmpeg.org/download.html)
- Python >= 2.7
### Install the toolbox via pip
Find out how to install ... | PypiClean |
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/web/static/dist/plugins/template/plugin.min.js | !(function () { var a = {}, b = function (b) { for (var c = a[b], e = c.deps, f = c.defn, g = e.length, h = new Array(g), i = 0; i < g; ++i)h[i] = d(e[i]); var j = f.apply(null, h); if (void 0 === j) throw 'module [' + b + '] returned undefined'; c.instance = j; }, c = function (b, c, d) { if (typeof b !== 'string') th... | PypiClean |
/CT3-3.3.2-cp310-cp310-macosx_10_9_x86_64.whl/Cheetah/CacheRegion.py | try:
from hashlib import md5
except ImportError:
from md5 import md5
import time
from . import CacheStore
class CacheItem(object):
'''
A CacheItem is a container storing:
- cacheID (string)
- refreshTime (timestamp or None) : last time the cache was refreshed
- data (string) ... | PypiClean |
/OctoBot-Evaluators-1.9.1.tar.gz/OctoBot-Evaluators-1.9.1/octobot_evaluators/matrix/matrix_manager.py | import time
import octobot_commons.constants as common_constants
import octobot_commons.enums as common_enums
import octobot_commons.evaluators_util as evaluators_util
import octobot_commons.logging as logging
import octobot_evaluators.enums as enums
import octobot_evaluators.errors as errors
import octobot_evaluator... | PypiClean |
/Chandler-debugPlugin-1.0.tar.gz/Chandler-debugPlugin-1.0/debug/repositoryviewer/Repository.py | import wx
import osaf.framework.blocks.ControlBlocks as ControlBlocks
from chandlerdb.item.RefCollections import RefList
class RepositoryDelegate (ControlBlocks.ListDelegate):
""" Used by the tree in the repository view
"""
def GetElementParent(self, element):
return element.itsParent
de... | PypiClean |
/AbSort-0.0.1.tar.gz/AbSort-0.0.1/README.txt | AbSort
=======
Absort is Powerful Python package that performs 8 different types of stable and unstable Sorting algorithms on List Data Structure with full of documentation.
This package will be more beneficial(Usefull) for competitive programmers and developers. So based on your requirement choose your sorting algor... | PypiClean |
/DVDev-0.1.3.tar.gz/DVDev-0.1.3/dvdev/public/js/development-bundle/ui/ui.draggable.js | (function($) {
$.widget("ui.draggable", $.extend({}, $.ui.mouse, {
_init: function() {
if (this.options.helper == 'original' && !(/^(?:r|a|f)/).test(this.element.css("position")))
this.element[0].style.position = 'relative';
(this.options.addClasses && this.element.addClass("ui-draggable"));
(this.options... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/TextColor.js.uncompressed.js | define("dojox/editor/plugins/TextColor", [
"dojo",
"dijit",
"dojox",
"dijit/_base/popup",
"dijit/_Widget",
"dijit/_TemplatedMixin",
"dijit/_WidgetsInTemplateMixin",
"dijit/TooltipDialog",
"dijit/form/Button",
"dijit/form/DropDownButton",
"dijit/_editor/_Plugin",
"dojox/widget/ColorPicker",
"dojo/_base/conn... | PypiClean |
/Lasagne-0.1.tar.gz/Lasagne-0.1/lasagne/regularization.py | import theano.tensor as T
from .layers import Layer, get_all_params
def l1(x):
"""Computes the L1 norm of a tensor
Parameters
----------
x : Theano tensor
Returns
-------
Theano scalar
l1 norm (sum of absolute values of elements)
"""
return T.sum(abs(x))
def l2(x):
... | PypiClean |
/GraphQL_core_next-1.1.1-py3-none-any.whl/graphql/validation/__init__.py | from .validate import validate
from .validation_context import (
ASTValidationContext,
SDLValidationContext,
ValidationContext,
)
from .rules import ValidationRule, ASTValidationRule, SDLValidationRule
# All validation rules in the GraphQL Specification.
from .specified_rules import specified_rules
# Sp... | 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/autotagger.py | from graphlab.toolkits._model import CustomModel as _CustomModel
import graphlab as _gl
import graphlab.toolkits._internal_utils as _tkutl
import graphlab.connect as _mt
def _preprocess(column):
"""
Extract basic string features: unigrams (with stopwords removed),
bigrams, and character ngrams of length 4.... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/uk.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['uk']={"editor":"Текстовий редактор","editorPanel":"Панель розширеного текстового редактора","common":{"editorHelp":"натисніть ALT 0 для довідки","browseServer":... | PypiClean |
/NREL_shift-0.1.0a0-py3-none-any.whl/shift/exporter/opendss.py |
# 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 notice, this
# list of conditions and the following disclaimer.
# 2. Redist... | PypiClean |
/MLplayground-1.0.1.tar.gz/MLplayground-1.0.1/miniml/minisvm/AlgebraicSVC.py | from .Plot import *
class AlgebraicSVC(Plot):
def __init__(self, z=[], u=[], b=1):
self.z = np.array(z) # classes, only for two: 1 or -1
self.u = np.array(u) # data
self.N = len(z) # number of points
# parameters for calc lambda
self.A = [] # A in ... | PypiClean |
/Dulcinea-0.11.tar.gz/Dulcinea-0.11/lib/permission.py | from dulcinea.spec import instance, sequence, anything, spec
from dulcinea.base import DulcineaPersistent
from sets import Set
def new_permissions(connection):
from durus.connection import gen_every_instance
from dulcinea.user import DulcineaUser, Permissions
from dulcinea.contact import ContactAdmin
f... | PypiClean |
/ORCID-Hub-4.16.6.tar.gz/ORCID-Hub-4.16.6/docs/installation.rst | .. _installation:
ORCID Hub Installation
======================
Python Version
--------------
We recommend using the latest version of Python 3: Python3.6.
Dependencies
------------
In order to enable authentication via ORCID you need to acquire ORCID API creadential:
- Create or login with an existing account... | PypiClean |
/Furious-GUI-0.2.4.tar.gz/Furious-GUI-0.2.4/Furious/Utility/Theme.py | from PySide6 import QtCore
from PySide6.QtGui import QColor, QFont, QSyntaxHighlighter, QTextCharFormat
class HighlightRules:
def __init__(self, regex, color, isBold=False, isJSONKey=False):
self.regex = QtCore.QRegularExpression(regex)
self.color = QColor(color)
self.rules = QTextCharFor... | PypiClean |
/Blue-DiscordBot-3.2.0.tar.gz/Blue-DiscordBot-3.2.0/bluebot/core/drivers/red_mongo.py | import re
from getpass import getpass
from typing import Match, Pattern, Tuple
from urllib.parse import quote_plus
import motor.core
import motor.motor_asyncio
from motor.motor_asyncio import AsyncIOMotorCursor
from .red_base import BaseDriver, IdentifierData
__all__ = ["Mongo"]
_conn = None
def _initialize(**kw... | PypiClean |
/FinvoiceLib-0.1.13.tar.gz/FinvoiceLib-0.1.13/finvoicelib/elements/epi.py |
from finvoicelib.elements import AccountElement
from finvoicelib.elements import Element
from finvoicelib.elements import ReferenceNumberElement
class EpiAccountID(AccountElement):
"""
EpiAccountID
"""
tag = 'EpiAccountID'
class EpiBei(Element):
"""
EpiBei
"""
tag = 'EpiBei'
clas... | PypiClean |
/DicksonUI-Micro-2.0.0.tar.gz/DicksonUI-Micro-2.0.0/README.md | # DicksonUI - The Best GUI Library For Python

With DicksonUI, you can make Graphical User Interfaces with python with just few lines of code. DicksonUI is super easy to use and handles everything for you. Just ... | PypiClean |
/MUGAlyser-1.0.6a0.tar.gz/MUGAlyser-1.0.6a0/mugalyser/gdrive.py | from __future__ import print_function
import httplib2
import os
from apiclient import discovery
from apiclient.http import MediaFileUpload
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
# If modifying these scopes, delete your previously saved credentials
# at ~/... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/tools/testing/Valgrind.py | import sys
from nuitka.Tracing import my_print
from nuitka.utils.Execution import check_output, executeProcess
from nuitka.utils.FileOperations import (
copyFile,
getFileContentByLine,
withTemporaryFile,
)
from nuitka.utils.Utils import isWin32Windows
def runValgrind(descr, tool, args, include_startup, s... | PypiClean |
/FishTaco-1.1.6-py3-none-any.whl/fishtaco/learn_non_neg_elastic_net_with_prior.py | from __future__ import absolute_import, division, print_function
import warnings
import numpy as np
from sklearn.model_selection import KFold
from sklearn.linear_model import enet_path, ElasticNet
__author__ = 'Ohad Manor'
__email__ = 'omanor@gmail.com'
__status__ = "Development"
def learn(cov_train, res_train, param... | PypiClean |
/FanFicFare-4.27.0.tar.gz/FanFicFare-4.27.0/fanficfare/adapters/adapter_adultfanfictionorg.py | from __future__ import absolute_import
from __future__ import unicode_literals
import logging
logger = logging.getLogger(__name__)
import re
from ..htmlcleanup import stripHTML
from .. import exceptions as exceptions
# py2 vs py3 transition
from ..six import text_type as unicode
from .base_adapter import BaseSiteAda... | PypiClean |
/Flask-Pretty-0.2.0.tar.gz/Flask-Pretty-0.2.0/docs/index.rst | Flask-Pretty
============
.. toctree::
:maxdepth: 2
:caption: Contents:
.. module:: flask_pretty
Flask-Pretty is a Flask extension to output prettified HTML pages to ease the
development process of HTML templates.
However, HTML prettifying should only be used for development purposes only.
For production pur... | PypiClean |
/EditorConfig-0.12.3-py3-none-any.whl/editorconfig/__main__.py | import getopt
import sys
from editorconfig import VERSION, __version__
from editorconfig.compat import force_unicode
from editorconfig.exceptions import ParsingError, PathError, VersionError
from editorconfig.handler import EditorConfigHandler
from editorconfig.versiontools import split_version
def version():
pr... | PypiClean |
/Amino.py-3.0.10-py3-none-any.whl/amino/async_client.py | import json
import base64
import aiohttp
import asyncio
import threading
from uuid import uuid4
from time import timezone, sleep
from typing import BinaryIO, Union
from time import time as timestamp
from locale import getdefaultlocale as locale
from .lib.util import exceptions, headers, device, objects, helpers
from ... | PypiClean |
/NREL_cloud_fs-0.0.8-py3-none-any.whl/cloud_fs/cloud_fs.py | import inspect
from .filesystems import Local, S3
class FileSystem:
"""
Class to abstract file location and allow file-system commands that are
"""
def __init__(self, path, anon=False, profile=None, **kwargs):
"""
Parameters
----------
path : str
S3 object p... | PypiClean |
/Flask-Dance-7.0.0.tar.gz/Flask-Dance-7.0.0/flask_dance/contrib/slack.py | from flask import g
from requests_oauthlib.compliance_fixes.slack import slack_compliance_fix
from werkzeug.local import LocalProxy
from flask_dance.consumer import OAuth2ConsumerBlueprint
__maintainer__ = "David Baumgold <david@davidbaumgold.com>"
class SlackBlueprint(OAuth2ConsumerBlueprint):
def session_crea... | PypiClean |
/AWS_IFG_distributions-1.0.tar.gz/AWS_IFG_distributions-1.0/AWS_IFG_distributions/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
import numpy as np
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 (f... | PypiClean |
/Mopidy-WaitForInternet-0.2.1.tar.gz/Mopidy-WaitForInternet-0.2.1/README.rst | ****************************
Mopidy-WaitForInternet
****************************
.. image:: https://img.shields.io/pypi/v/Mopidy-WaitForInternet.svg?style=flat
:target: https://pypi.org/project/Mopidy-WaitForInternet/
:alt: Latest PyPI version
.. image:: https://img.shields.io/pypi/dm/Mopidy-WaitForInternet.s... | PypiClean |
/NlpToolkit-Util-Cy-1.0.9.tar.gz/NlpToolkit-Util-Cy-1.0.9/README.md | For Developers
============
You can also see [Python](https://github.com/starlangsoftware/Util-Py), [Java](https://github.com/starlangsoftware/Util), [C++](https://github.com/starlangsoftware/Util-CPP), [Swift](https://github.com/starlangsoftware/Util-Swift), [Js](https://github.com/starlangsoftware/Util-Js), or [C#](h... | PypiClean |
/KitchenSink-0.1.0.tar.gz/KitchenSink-0.1.0/README.rst | ==================
Kitchen Sink Pager
==================
The Kitchen Sink Pager is a pager that does more, but its primary feature is
adding per file syntax highlighting to git diffs.
Installation
============
pip install KitchenSink
Examples
=========
::
# use it for paging. sometimes, it can even figure out... | PypiClean |
/flask_kits-0.0.24.tar.gz/flask_kits-0.0.24/flask_kits/common/code.py |
ENCODINGS = ['utf8', 'gbk']
def decode_statement(statement, encodings):
if isinstance(statement, unicode):
return statement
for encoding in encodings:
try:
return statement.decode(encoding)
except UnicodeDecodeError:
pass
def get_initial_letters(statement):
... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-snippets.js | ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) {
"use strict";
var oop = require("../../lib/oop");
var BaseFoldMode = require("./fold_mode").FoldMode;
var Range = require("../../range").Range;
var FoldMode ... | PypiClean |
/Menus-0.2.0.tar.gz/Menus-0.2.0/menus/utils.py |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHE... | PypiClean |
/Mopidy-Spotmop-2.10.1.tar.gz/Mopidy-Spotmop-2.10.1/mopidy_spotmop/static/vendor/angular-touch.min.js | (function(y,u,z){'use strict';function s(f,k,p){n.directive(f,["$parse","$swipe",function(d,e){return function(l,m,g){function h(a){if(!b)return!1;var c=Math.abs(a.y-b.y);a=(a.x-b.x)*k;return q&&75>c&&0<a&&30<a&&.3>c/a}var c=d(g[f]),b,q,a=["touch"];u.isDefined(g.ngSwipeDisableMouse)||a.push("mouse");e.bind(m,{start:fun... | PypiClean |
/Moose-0.9.9b3.tar.gz/Moose-0.9.9b3/moose/utils/treelib/node.py | import uuid
from .exceptions import NodePropertyError
class Node(object):
"""
Nodes are elementary objects which are stored a `_nodes` dictionary of a Tree.
Use `data` attribute to store node-specific data.
"""
#: ADD, DELETE, INSERT constants :
(ADD, DELETE, INSERT, REPLACE) = list(range(4)... | PypiClean |
/Gbtestapi0.2-0.1a10.tar.gz/Gbtestapi0.2-0.1a10/src/gailbot/services/organizer/settings/interface/whisperInterface.py | from pydantic import BaseModel, ValidationError
from typing import Dict, List, Union
from .engineSettingInterface import EngineSettingInterface
from gailbot.core.utils.logger import makelogger
logger = makelogger("whisperInterface")
class ValidateWhisper(BaseModel):
engine: str
language: str = None
detec... | PypiClean |
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/job/ar_AA/__init__.py | from .. import Provider as BaseProvider
class Provider(BaseProvider):
# Source: https://learnenglish100.com/grammar/career-job/
jobs = (
"أحيائي",
"احصائي",
"اطفائي",
"بائع",
"بائع خضار وفاكهة",
"بائع زهور",
"بائعة",
"بواب",
"تاجر",
... | PypiClean |
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Algorithm/Classification/S4L.py | from LAMDA_SSL.Base.InductiveEstimator import InductiveEstimator
from LAMDA_SSL.Base.DeepModelMixin import DeepModelMixin
from sklearn.base import ClassifierMixin
import torch
import numpy as np
from LAMDA_SSL.utils import class_status
from LAMDA_SSL.Augmentation.Vision.Rotate import Rotate
from LAMDA_SSL.utils import ... | PypiClean |
/JES12132018_AssetInspectionApps-1.0.tar.gz/JES12132018_AssetInspectionApps-1.0/JES12132018_AssetInspectionApps/main_Script_stormdrain.py | import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QFileDialog, QMessageBox
from PyQt5.QtCore import QCoreApplication
import gui_Project_stormdrain, core_function_stormdrain
# =======================================
# GUI event handler and related functions OpenManholeShapefileLE
# ====================... | PypiClean |
/DCA-0.3.4.tar.gz/DCA-0.3.4/dca/__main__.py |
import os, sys, argparse
def parse_args():
parser = argparse.ArgumentParser(description='Autoencoder')
parser.add_argument('input', type=str, help='Input is raw count data in TSV/CSV '
'or H5AD (anndata) format. '
'Row/col names are mandatory. Note that TSV/CSV... | PypiClean |
/NeuroTorch-0.0.1b2.tar.gz/NeuroTorch-0.0.1b2/src/neurotorch/metrics/losses.py | import torch
import torch.nn as nn
from ..transforms.base import to_tensor
class RMSELoss(torch.nn.Module):
"""
Class used to compute the RMSE loss.
:math:`\\text{RMSE}(x, y) = \\sqrt{\\frac{1}{n}\\sum_{i=1}^n (x_i - y_i)^2}`
:Attributes:
- **criterion** (nn.MSELoss): The MSE loss.
"""
def __init__(sel... | PypiClean |
/AK_SSL-0.0.1-py3-none-any.whl/AK_SSL/models/byol.py | import torch
import copy
import torch.nn as nn
from AK_SSL.models.modules.heads import BYOLPredictionHead, BYOLProjectionHead
class BYOL(nn.Module):
"""
BYOL: Bootstrap your own latent: A new approach to self-supervised Learning
Link: https://arxiv.org/abs/2006.07733
Implementation: https://github.co... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/htdocs/static/djblets/js/forms/views/listEditView.es6.c9a2205bcb73.js | (function() {
const entryTemplate = _.template(dedent`
<li class="djblets-c-list-edit-widget__entry"
data-list-index="<%- index %>">
<%= renderedDefaultRow %>
<a href="#" class="djblets-c-list-edit-widget__remove-item"
role="button" title="<%- removeText %>">
<span class="fa fa-t... | PypiClean |
/LinkChecker-10.2.1-py3-none-any.whl/linkcheck/logger/gxml.py | from .xmllog import _XMLLogger
from .graph import _GraphLogger
class GraphXMLLogger(_XMLLogger, _GraphLogger):
"""XML output mirroring the GML structure. Easy to parse with any XML
tool."""
LoggerName = 'gxml'
LoggerArgs = {
"filename": "linkchecker-out.gxml",
}
def __init__(self, *... | PypiClean |
/JT_Techfield-0.0.11-py3-none-any.whl/JT/Layers.py | from collections import defaultdict
from copy import copy
import numpy as np
from scipy.signal import correlate
import JT.Initializers
import JT.Gradients
class Layer:
def InitWeights(self):
pass
def Forward(self, z_in):
pass
def Backward(self, core_in, learn_rate):
pass
def P... | PypiClean |
/FileBackedArray-0.0.4.tar.gz/FileBackedArray-0.0.4/CONTRIBUTING.md | ```{todo} THIS IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS!
The document assumes you are using a source repository service that promotes a
contribution model similar to [GitHub's fork and pull request workflow].
While this is true for the majority of services (like GitHub, GitLab,
BitBu... | PypiClean |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/resources/coverages/registration/base.py |
import re
from django.db.models import ForeignKey
from django.contrib.gis.geos import Polygon
from django.contrib.gis.gdal import SpatialReference, CoordTransform
from django.utils.six import string_types
from eoxserver.backends.access import vsi_open
from eoxserver.backends.util import resolve_storage
from eoxserve... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/locale/lang/pt.js | 'use strict';
exports.__esModule = true;
exports.default = {
el: {
colorpicker: {
confirm: 'Confirmar',
clear: 'Limpar'
},
datepicker: {
now: 'Agora',
today: 'Hoje',
cancel: 'Cancelar',
clear: 'Limpar',
conf... | PypiClean |
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/addon/comment/comment.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use... | PypiClean |
/ANNOgesic-1.1.14.linux-x86_64.tar.gz/usr/local/lib/python3.10/dist-packages/annogesiclib/coverage_detection.py | import copy
def coverage_comparison(cover, cover_sets, poss, first, strand, cover_pos):
'''Seaching the lowest and highest coverage'''
if first:
first = False
cover_sets["high"] = cover
cover_sets["low"] = cover
poss["high"] = cover_pos
poss["low"] = cover_pos
else:... | PypiClean |
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/Heterogeneous_Highway_Env/envs/parking_env.py | from abc import abstractmethod
from gym import Env
from gym.envs.registration import register
import numpy as np
from highway_env.envs.common.abstract import AbstractEnv
from highway_env.envs.common.observation import MultiAgentObservation, observation_factory
from highway_env.road.lane import StraightLane, LineType
f... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/core/handlers/exception.py | import logging
import sys
from functools import wraps
from django.conf import settings
from django.core import signals
from django.core.exceptions import (
PermissionDenied, RequestDataTooBig, SuspiciousOperation,
TooManyFieldsSent,
)
from django.http import Http404
from django.http.multipartparser import Mult... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/core/streams.py | import os
import os.path as osp
import sys
import tempfile
from io import open as io_open
from typing import Optional, Tuple
import requests
from mathics.settings import ROOT_DIR
HOME_DIR = osp.expanduser("~")
PATH_VAR = [".", HOME_DIR, osp.join(ROOT_DIR, "data"), osp.join(ROOT_DIR, "packages")]
def create_tempora... | PypiClean |
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/c1te.py | from logging import getLogger
import numpy as np
def usage():
logger = getLogger()
logger.info(__doc__)
desc={"ref": {"C1": "Page 12 of the Supplemenrary Material of P. Teeratchanan and A. Hermann, Computational phase diagrams of noble gas hydrates under pressure, J. Chem. Phys. 143, 154507 (2015); https://do... | PypiClean |
/ColabGitlabSetup-0.0.5.tar.gz/ColabGitlabSetup-0.0.5/colab_gitlab_setup/colab_gitlab_setup.py | import os
import subprocess
import re
from google.colab import drive, files
class ColabGitlabSetup:
def __init__(self,auto=False, mount_folder="/content/drive", git_folder="gitlabs",ssh_host="gitlab.com",
ssh_tar_file="ssh.tar.gz",ssh_tar_folder="ssh-colab",ssh_install_folder="/root/.ssh",
repo_account="dt... | PypiClean |
/Cactus-3.3.3.tar.gz/Cactus-3.3.3/cactus/skeleton/locale/README.md | Internationalization
====================
Using internationalization with Cactus
--------------------------------------
To enable internationalization for your project:
1. Add a `locale` key to (one of your) configuration file(s)
2. Mark strings for translation in your site (using `{% trans %}`)
3. Run `cactus... | PypiClean |
/Effulge-0.0.1.tar.gz/Effulge-0.0.1/src/effulge/scatter_tree_nodes.py | from enum import Enum
class NodeType(Enum):
"""
Enumeration Class for Type of Node in a Scatter Tree
"""
PRIMITIVE = 1
LIST_OR_TUPLE = 2
DICTIONARY = 3
KEY_VALUE = 4
class Marker(Enum):
"""
Enumeration Class to Flag a Scatter Tree Node
- GREEN, when a node is not matched yet
... | PypiClean |
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/account_type_property.py | import re # noqa: F401
import sys # noqa: F401
from firefly_iii_client.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,... | PypiClean |
/Fivana%20CloudTrails%20SDK-3.2.0.tar.gz/Fivana CloudTrails SDK-3.2.0/fivana/cloudtrailsdk/decorators/api_gateway_tracker.py | import logging
from functools import wraps
from fivana.cloudtrailsdk.utils.functions import send_custom_logger, send_exception_logger
import json
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def build_apigateway_response(response):
"""
:param response:
:return:
"""
return {
... | PypiClean |
/Fittness-1.2.tar.gz/Fittness-1.2/README.md | # data533Lab4
**Build Stamp**
[](https://travis-ci.com/RaineShen/data533Lab4)
**PyPi Link**
https://pypi.org/project/Fittness/
**Screenshot of code coverage for Intake Package**

parser.add_argument("-i", "--input_file", action="store", dest="input", required=True,
help="Input file with sequences")
parser.add_argument... | PypiClean |
/qe/qe.py |
#-------import------------
import subprocess
import numpy as np
import copy
from xml.etree.ElementTree import parse
#from pathlib import Path
from ase.io.cube import read_cube_data
from ase.atoms import Atoms
from ase.io import read
from ase.units import Bohr
#------uniform wavefunction----------
def uniform(at... | PypiClean |
/GraphLearner_mits92-0.0.1-py3-none-any.whl/GraphLearner/Grid.py | import math
import networkx
from matplotlib import pyplot as plt
from itertools import count
class Grid:
def __init__(
self,
dimensions=None,
with_diagonals=False,
assignment=None,
graph=None
):
if dimensions:
self.dimensions = di... | PypiClean |
/Mopidy-Spotmop-2.10.1.tar.gz/Mopidy-Spotmop-2.10.1/mopidy_spotmop/static/app/discover/controller.js | 'use strict';
angular.module('spotmop.discover', [])
/**
* Routing
**/
.config(function($stateProvider){
$stateProvider
.state('discover', {
url: "/discover",
templateUrl: "app/discover/template.html"
})
.state('discover.recommendations', {
url: "/recommendations",
templateUrl: "app/discover/r... | PypiClean |
/EXOSIMS-3.1.6.tar.gz/EXOSIMS-3.1.6/CONTRIBUTING.md | # Contributing to EXOSIMS
The EXOSIMS community welcomes any and all contributions of code, documentation, and tests. Please see below for guidlines on how to contribute, and please be sure to follow our [code of conduct](https://github.com/dsavransky/EXOSIMS/blob/master/CODE_OF_CONDUCT.md)
in all your interactions w... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/CacheDir.py | import atexit
import json
import os
import stat
import sys
import uuid
import SCons.Action
import SCons.Errors
import SCons.Warnings
import SCons
cache_enabled = True
cache_debug = False
cache_force = False
cache_show = False
cache_readonly = False
cache_tmp_uuid = uuid.uuid4().hex
def CacheRetrieveFunc(target, sour... | PypiClean |
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/domains/javascript.py | from typing import Any, Dict, Iterator, List, Tuple
from typing import cast
from docutils import nodes
from docutils.nodes import Element, Node
from docutils.parsers.rst import directives
from sphinx import addnodes
from sphinx.addnodes import desc_signature, pending_xref
from sphinx.application import Sphinx
from sp... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/editor/plugins/nls/it/latinEntities.js | ({"le":"minore di o uguale a","prod":"prodotto n-ario\nsegno di prodotto","zwj":"congiuntore di larghezza zero","mdash":"trattino em","frasl":"barra obliqua di frazione","upsih":"simbolo della upsilon greca con uncino","prop":"proporzionale a","middot":"punto in mezzo\nvirgola georgiana\npunto centrale greco","hellip":... | PypiClean |
/GBT_parser-1.0.3-py3-none-any.whl/cantools/database/can/formats/arxml/message_specifics.py | from typing import List, Optional
from .end_to_end_properties import AutosarEnd2EndProperties
from .secoc_properties import AutosarSecOCProperties
class AutosarMessageSpecifics:
"""This class collects all AUTOSAR specific information of a CAN message
This means useful information about CAN messages which is... | PypiClean |
/FastFlask-1.2.32-py3-none-any.whl/click/formatting.py | import typing as t
from contextlib import contextmanager
from gettext import gettext as _
from ._compat import term_len
from .parser import split_opt
# Can force a width. This is used by the test system
FORCED_WIDTH: t.Optional[int] = None
def measure_table(rows: t.Iterable[t.Tuple[str, str]]) -> t.Tuple[int, ...]... | PypiClean |
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/mode/q/q.js | CodeMirror.defineMode("q",function(config){
var indentUnit=config.indentUnit,
curPunc,
keywords=buildRE(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ... | PypiClean |
/MDCatch-2.5-py3-none-any.whl/mdcatch/parser.py |
import os
import math
import time
from glob import iglob
from .config import *
from .utils import parseXml, parseMrc, parseTif, parseMdoc
class Parser:
""" Main parser class. """
def __init__(self):
# set default values
self.mdPath = METADATA_PATH
self.prjPath = PROJECT_PATH
... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/summernote/lang/summernote-fr-FR.min.js | !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var a=r();for(var i in a)("object"==typeof exports?exports:e)[i]=a[i]}}(self,(function(){return(e=jQuery).extend(e.summernote.lang,{"fr-FR":{font:{bold:"Gras",italic:"It... | PypiClean |
/chatglm6bpkg-0.0.1.tar.gz/chatglm6bpkg-0.0.1/ptuning/main.py | # You can also adapt this script on your own sequence to sequence task. Pointers for this are left as comments.
import logging
import os
import sys
import json
import numpy as np
from datasets import load_dataset
import jieba
from rouge_chinese import Rouge
from nltk.translate.bleu_score import sentence_bleu, Smooth... | PypiClean |
/1secMail-1.1.0.tar.gz/1secMail-1.1.0/README.md | <p align="center">
<br>
<img src="https://github.com/qvco/1secMail-Python/assets/77382767/fde69c1a-b95f-4d78-af1a-2dca315204bc" alt="1secMail" width="700">
<!-- <br>
1secMail for Python
<br> -->
</p>
<h4 align="center">An API wrapper for <a href="https://www.1secmail.com/" target="_blank">www.1secmail.com</a... | PypiClean |
/CatKit-0.5.4-py3-none-any.whl/catkit/hub/ase_tools/__init__.py | import sys
from ase import Atoms
from ase.io import read
# from ase.io.trajectory import convert
import numpy as np
import ase
import copy
from catkit.hub.tools import get_atoms, get_state, clear_prefactor
# A lot of functions from os.path
# in python 2 moved to os. and changed
# their signature. Pathlib can be
# inst... | PypiClean |
/DeepManufacturing-0.0.7.tar.gz/DeepManufacturing-0.0.7/README.md | # ManufacturingNet
[Website](http://manufacturingnet.io/) | [Documentation](https://manufacturingnet.readthedocs.io/en/latest/)
ManufacturingNet provides a sustainable, open-source ecosystem of modern artificial intelligence (AI) tools for tackling diverse engineering challenges.
Written in Python3 and designed for ... | PypiClean |
/DeepManufacturing-0.0.7.tar.gz/DeepManufacturing-0.0.7/ManufacturingNet/models/resnet.py | import datetime
import os
import sys
import time
import matplotlib.pyplot as plt
import numpy as np
from PIL import Image
from sklearn.metrics import confusion_matrix
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torch.optim.lr_scheduler as scheduler
import torc... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/task_dispensers/toc.py |
import json
from collections import OrderedDict
from inginious.frontend.task_dispensers.util import check_toc, SectionsList, SectionConfigItem
from inginious.frontend.task_dispensers import TaskDispenser
class TableOfContents(TaskDispenser):
def __init__(self, task_list_func, dispenser_data, database, course_i... | PypiClean |
/Acquisition-4.4.4-cp33-cp33m-win_amd64.whl/Acquisition-4.4.4.dist-info/DESCRIPTION.rst | Environmental Acquisiton
========================
This package implements "environmental acquisiton" for Python, as
proposed in the OOPSLA96_ paper by Joseph Gil and David H. Lorenz:
We propose a new programming paradigm, environmental acquisition in
the context of object aggregation, in which objects acquire... | PypiClean |
/Circos-1.3.5-py3-none-any.whl/circos/circos.py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from matplotlib.path import Path
class CircosPlot(object):
def __init__(self, nodes, edges, radius,
nodecolor=None, edgecolor=None,
nodeprops=None, edgeprops=None,
figsize=(8... | PypiClean |
/CryptoWallets-0.0.1.tar.gz/CryptoWallets-0.0.1/bitcoin/gen_addr.py |
from ecdsa import SigningKey, SECP256k1
from binascii import hexlify
import bitcoin.constants as BCONST
from bitcoin.constants import NETWORK_TYPES
from bitcoin.hashes import hash160, hash256
from bitcoin.base58 import base58_to_base256, base58check
def get_compressed_pub_key(pub_key_raw):
'''Represent public ke... | PypiClean |
/ClearWrap-0.2.tar.gz/ClearWrap-0.2/src/clearwrap/clearparser.py | from os import path
import glob
import subprocess
import tempfile
from datetime import datetime
from codecs import open
from collections import namedtuple
import shutil
import os
import warnings
import sys
import networkx as nx
CLEAR_JAVA_EXTRA_ARGS = ['-XX:+UseConcMarkSweepGC', '-Xmx6g']
ENCODING = 'UTF-8'
POS_SUFF... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/gui/kivy/uix/gridview.py | from kivy.uix.boxlayout import BoxLayout
from kivy.adapters.dictadapter import DictAdapter
from kivy.adapters.listadapter import ListAdapter
from kivy.properties import ObjectProperty, ListProperty, AliasProperty
from kivy.uix.listview import (ListItemButton, ListItemLabel, CompositeListItem,
... | PypiClean |
/Helmholtz-0.2.0.tar.gz/Helmholtz-0.2.0/helmholtz/editor/shortcuts.py | from datetime import datetime
from django.db.models import Model
from helmholtz.editor.models import Entity
def get_schema(schema, child, record=None, key=None):
if not schema :
return None
_cls = schema.content_type.model_class()
new_schema = schema.get_child_entity(child, key)
if new_schema :... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/chardet/mbcssm.py |
from .enums import MachineState
# BIG5
BIG5_CLS = (
1,1,1,1,1,1,1,1, # 00 - 07 #allow 0x00 as legal value
1,1,1,1,1,1,0,0, # 08 - 0f
1,1,1,1,1,1,1,1, # 10 - 17
1,1,1,0,1,1,1,1, # 18 - 1f
1,1,1,1,1,1,1,1, # 20 - 27
1,1,1,1,1,1,1,1, # 28 - 2f
1,1,1,1,1,1,1,1, # 30 - 37
1,1,1,1... | PypiClean |
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/db/dbMsSQL.py | import datetime
from dabo.dLocalize import _
from dBackend import dBackend
from dabo.lib.utils import ustr
class MSSQL(dBackend):
"""Class providing Microsoft SQL Server connectivity. Uses pymssql."""
def __init__(self):
dBackend.__init__(self)
#- jfcs 11/06/06 first try getting Microsoft SQL 2000 server worki... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/users/profilefields/__init__.py | import copy
import logging
from django.core.exceptions import ValidationError
from django.urls import reverse
from django.utils.module_loading import import_string
from django.utils.translation import gettext as _
from ...conf import settings
from .basefields import *
from .serializers import serialize_profilefields... | PypiClean |
/HTConsole-0.2.tar.gz/HTConsole-0.2/htconsole/htmlrepr.py | import dispatch
import types
import inspect
import os
import textwrap
import itertools
from cStringIO import StringIO
import traceback
from webhelpers.util import html_escape
import simplejson
py_doc_base = 'http://python.org/doc/current/lib/module-%s.html'
stdlib_dir = os.path.dirname(inspect.__file__)
@dispatch.gen... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/jsonrpclib/utils.py | import sys
# ------------------------------------------------------------------------------
# Module version
__version_info__ = (0, 4, 0)
__version__ = ".".join(str(x) for x in __version_info__)
# Documentation strings format
__docformat__ = "restructuredtext en"
# --------------------------------------------------... | PypiClean |
/Colorful_Distributions-0.1.tar.gz/Colorful_Distributions-0.1/Colorful_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 |
/Avalara.SDK-2.4.29.tar.gz/Avalara.SDK-2.4.29/README.md | # Avalara.SDK
API for evaluating transactions against direct-to-consumer Beverage Alcohol shipping regulations.
This API is currently in beta.
- Package version: 2.4.29
## Requirements.
Python >= 3.6
## Installation & Usage
### pip install
If the python package is hosted on a repository, you can install directly... | PypiClean |
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/src/dendropy/dataio/newickyielder.py |
##############################################################################
## DendroPy Phylogenetic Computing Library.
##
## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder.
## All rights reserved.
##
## See "LICENSE.rst" for terms and conditions of usage.
##
## If you use this work or any portion there... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.