id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/KubeGrade-0.0.5.tar.gz/KubeGrade-0.0.5/validator/base.py | import datetime
from typing import Dict, List
from validator.kube.resource import NamespaceKubernetesResource
import json
__all__ = ["ResultSummary", "ClusterResult", "ClusterResultJsonEncoder", "ContainerResult"]
class ResultMessage:
def __init__(self, id, message, type, category):
self.id = id
... | PypiClean |
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Script/Main.py | unsupported_python_version = (2, 6, 0)
deprecated_python_version = (2, 7, 0)
# Copyright (c) 2001 - 2016 The SCons Foundation
#
# 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 restri... | PypiClean |
/ChemDataExtractor-IDE-1.3.2.tar.gz/ChemDataExtractor-IDE-1.3.2/chemdataextractor/parse/cem.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import re
from lxml import etree
from ..model import Compound
from .actions import join, fix_whitespace
from .common import roman_numeral, cc, nnp, hyph, n... | PypiClean |
/GhettoRecorder-3.0-py3-none-any.whl/GhettoRecorder-3.0.dist-info/LICENSE.rst | MIT License
===========
Copyright (c) [2022] [René Horn]
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, ... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Layer/PointGrid.js | * @requires OpenLayers/Layer/Vector.js
* @requires OpenLayers/Geometry/Polygon.js
*/
/**
* Class: OpenLayers.Layer.PointGrid
* A point grid layer dynamically generates a regularly spaced grid of point
* features. This is a specialty layer for cases where an application needs
* a regular grid of points.... | PypiClean |
/Injectulate-0.1.1.tar.gz/Injectulate-0.1.1/injectulate/container.py | from inspect import signature, Signature, Parameter, isclass, isfunction
from typing import Sequence, Dict, Type, TypeVar, Callable, Any
from abc import ABC, abstractmethod
from .errors import TypeAnnotationError
T = TypeVar("T")
class BindingDefinition(ABC):
"""Contains the definition of a binding."""
@ab... | PypiClean |
/Marketplace-0.9.2.tar.gz/Marketplace-0.9.2/marketplace/client.py | import json
import logging
import mimetypes
from base64 import b64encode
from urlparse import urlunparse
from .connection import Connection
log = logging.getLogger('marketplace.%s' % __name__)
MARKETPLACE_PORT = 443
MARKETPLACE_DOMAIN = 'marketplace.mozilla.org'
MARKETPLACE_PROTOCOL = 'https'
URLS = {'validate': ... | PypiClean |
/DLRN-0.26.1.tar.gz/DLRN-0.26.1/dlrn/api/graphql.py |
# NOTE(jpena): the graphene project is about to release version 3.0, but not
# all dependant projects support it, like graphene-sqlalchemy
# (see https://github.com/graphql-python/graphene-sqlalchemy/issues/248).
# In addition to this, Fedora includes a beta release of graphene 3.0.
# So for now we are making the grap... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/db/models/deletion.py | from functools import wraps
from operator import attrgetter
from django.db import connections, transaction, IntegrityError
from django.db.models import signals, sql
from django.utils.datastructures import SortedDict
from django.utils import six
class ProtectedError(IntegrityError):
def __init__(self, msg, protec... | PypiClean |
/LibcSearcher3-1.4.0.tar.gz/LibcSearcher3-1.4.0/README.md | [](https://github.com/Ro0tk1t/LibcSearcher3/actions)
[](https://pypi.org/project/LibcSearcher3/)
[](https... | PypiClean |
/Flask-Blogging-2.0.0.post2.tar.gz/Flask-Blogging-2.0.0.post2/example/blog_gcdatastore.py | from flask import Flask, render_template_string, redirect
from flask_login import UserMixin, LoginManager, login_user, logout_user
from flask_blogging import SQLAStorage, BloggingEngine
from flask_blogging.gcdatastore import GoogleCloudDatastore
from flask_fileupload.storage.gcstorage import GoogleCloudStorage
from fla... | PypiClean |
/HTTPolice-0.9.0.tar.gz/HTTPolice-0.9.0/httpolice/header.py | import copy
import operator
import sys
from httpolice import known
from httpolice.known import HeaderRule, h
from httpolice.parse import parse
from httpolice.structure import MultiDict, Parametrized, Unavailable, okay
from httpolice.syntax.rfc7230 import quoted_string, token
from httpolice.util.data import duplicates
... | PypiClean |
/Datat-1.1.0.zip/Datat-1.1.0/datat/_base.py | need to manually use anything in here."""
from __future__ import absolute_import
import csv
try: # For DatatNamedRows. If OrderedDict is absent, order will be lost.
from collections import OrderedDict
except:
try:
from ordereddict import OrderedDict
except:
OrderedDict = dict # Fallback
... | PypiClean |
/NeuroTools-0.3.1.tar.gz/NeuroTools-0.3.1/doc/hdf5.rst | HDF Tools
=========
HDF5 Overview
-------------
- A `quick start <http://hdfgroup.com/whatishdf5.html>`_ / `more complete <http://hdfgroup.com/HDF5/RD100-2002/All_About_HDF5.pdf>`_
- Hierarchical Data Format version 5, known as HDF5, is a general purpose file format that can store every kind of data in a hierarc... | PypiClean |
/GoogleAppEngineCloudStorageClient-1.9.22.1.tar.gz/GoogleAppEngineCloudStorageClient-1.9.22.1/cloudstorage/cloudstorage_api.py | from __future__ import with_statement
__all__ = ['copy2',
'delete',
'listbucket',
'open',
'stat',
'compose',
]
import logging
import StringIO
import urllib
import os
import itertools
import types
import xml.etree.cElementTree as ET
from . import api_u... | PypiClean |
/JitViewer-0.2.1.tar.gz/JitViewer-0.2.1/_jitviewer/static/canjs/1.1.4/amd/can/view/render.js | define(['can/view', 'can/util/string'], function (can) {
// text node expando test
var canExpando = true;
try {
document.createTextNode('')._ = 0;
} catch (ex) {
canExpando = false;
}
var attrMap = {
"class": "className",
"value": "value",
"innerText": "innerText",
"textContent": "textContent"
},
... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/neo.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 neo(path):
"""NEO correlation matrix from the NEO\_PI\_R manual
The NEO.PI.R is a widely u... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_plotters/artists/vectorartist.py | from typing import Tuple
from typing import List
from typing import Any
from typing import Optional
from matplotlib.patches import FancyArrowPatch
from matplotlib.patches import ArrowStyle
from compas.geometry import Point, Vector
from compas.artists import PrimitiveArtist
from .artist import PlotterArtist
Color = T... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/forms/fields.py | from __future__ import absolute_import, unicode_literals
import copy
import datetime
import os
import re
try:
from urllib.parse import urlsplit, urlunsplit
except ImportError: # Python 2
from urlparse import urlsplit, urlunsplit
from decimal import Decimal, DecimalException
from io import BytesIO
from dja... | PypiClean |
/NlpToolkit-DataStructure-1.0.14.tar.gz/NlpToolkit-DataStructure-1.0.14/DataStructure/Tree/BTreeNode.py | from __future__ import annotations
from typing import Callable
class BTreeNode:
K: list
m: int
d: int
leaf: bool
children: [BTreeNode]
def __init__(self, d: int, firstChild: BTreeNode = None, secondChild: BTreeNode = None, newK: object = None):
self.d = d
self.K = []
... | PypiClean |
/EsiPysi-0.10.2.tar.gz/EsiPysi-0.10.2/esipysi/esisession.py | import aiohttp
import logging
import asyncio
from .op import EsiOp
logger = logging.getLogger("EsiPysi")
class EsiSession(object):
def __init__(self, base_url, operations, **kwargs):
self.__loop = kwargs.get("loop")
self.__session = kwargs.get("session")
self.__args = kwargs
self.... | PypiClean |
/BlueWhale3-Timeseries-0.3.13.tar.gz/BlueWhale3-Timeseries-0.3.13/doc/widgets/yahoo_finance.md | Yahoo Finance
=============
Generate time series from Yahoo Finance stock market data.
**Outputs**
- Time series: Time series table of open, high, low, close (OHLC) prices, volume and adjusted close price.
This widget fetches historical stock market data from Yahoo Finance and outputs it as a time series data table... | PypiClean |
/Kotti-2.0.9.tar.gz/Kotti-2.0.9/docs/developing/basic/configuration.rst | .. _configuration:
Configuration
=============
.. contents::
INI File
--------
Kotti is configured using an INI configuration file.
The :ref:`installation` section explains how to get hold of a sample configuration file.
The ``[app:kotti]`` section in it might look like this:
.. code-block:: ini
[app:kotti]
u... | PypiClean |
/NeuroTS-3.4.0-py3-none-any.whl/neurots/generate/algorithms/abstractgrower.py |
# Copyright (C) 2021 Blue Brain Project, EPFL
#
# 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 3 of the License, or
# (at your option) any later version.
#
# This program is di... | PypiClean |
/CNN4IE-0.1.9-py3-none-any.whl/cnn4ie/lcnn/lightweight_conv.py | import torch
import torch.nn as nn
import torch.nn.functional as F
def unfold1d(x, kernel_size, padding_l, pad_value=0):
'''
unfold T x B x C to T x B x C x K
:param x: [src_len, batch_size, hid_dim]
:param kernel_size:
:param padding_l:
:param pad_value:
:return:
'''
if kernel_size... | PypiClean |
/Foundations-2.1.0.tar.gz/Foundations-2.1.0/docs/sphinx/source/resources/pages/api/foundations.verbose.rst | _`foundations.verbose`
======================
.. automodule:: foundations.verbose
Module Attributes
-----------------
.. attribute:: foundations.verbose.THREADS_IDENTIFIERS
.. attribute:: foundations.verbose.INDENT_LEVEL
.. attribute:: foundations.verbose.LOGGER
.. attribute:: foundations.verbose.LOGGING_DEFAULT_... | PypiClean |
/ORG.asm-1.0.3.tar.gz/ORG.asm-1.0.3/python/orgasm/commands/unfold.py | import sys
from orgasm import getOutput,getIndex, getSeeds
from orgasm.tango import restoreGraph, estimateFragmentLength, genesincontig,\
pathConstraints, scaffold, selectGoodComponent, unfoldAssembling, path2fasta, \
parseFocedScaffold
from orgasm.format.sam import path2sam,buildReadSequence
from orgasm.v... | PypiClean |
/Garcon-1.0.2-py3-none-any.whl/garcon/task.py | import copy
from functools import update_wrapper
from garcon import param
def decorate(timeout=None, heartbeat=None, enable_contextify=True):
"""Generic task decorator for tasks.
Args:
timeout (int): The timeout of the task (see timeout).
heartbeat (int): The heartbeat timeout.
conte... | PypiClean |
/FALCONN-1.3.1.tar.gz/FALCONN-1.3.1/external/pybind11/docs/reference.rst | .. _reference:
.. warning::
Please be advised that the reference documentation discussing pybind11
internals is currently incomplete. Please refer to the previous sections
and the pybind11 header files for the nitty gritty details.
Reference
#########
.. _macros:
Macros
======
.. doxygendefine:: PYBIN... | PypiClean |
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/drawers/mpl_drawers/series_scroll_plot.py |
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 22/11/2019
"""
from typing import Sequence, Union, MutableMapping
import numpy
from draugr.drawers.mpl_drawers.mpldrawer import MplDrawer
from draugr.numpy_utilities import recursive_flatten_numpy
from matplotlib import pyplot... | PypiClean |
/MESA2HYDRO-1.1.3.tar.gz/MESA2HYDRO-1.1.3/lib/io_lib.py |
#************************************************************************
#
# Copyright (C) 2019 M. Joyce, L. Lairmore, D. J. Price
#
# See MESA2HYDRO/LICENSE
#
#************************************************************************
'''
Contains: input/output (read/write) routines converting
N,R a... | PypiClean |
/ApiTestEz-1.0.30.tar.gz/ApiTestEz-1.0.30/api_test_ez/ez/case_builder/schema.py | import itertools
from collections import namedtuple
from typing import Dict, List, Iterable, Callable
import tablib
from allpairspy import AllPairs
from api_test_ez.ez.case_builder.fields import UniqueField, IterableField, BaseField, FixedField
def to_pairs(name, field): # In order to be consistent with the `a... | PypiClean |
/CsuSort-1.0.15.tar.gz/CsuSort-1.0.15/Sort/model.py | from __future__ import division, print_function, absolute_import
import os
from timeit import time
import warnings
import cv2
import numpy as np
from PIL import Image
from Sort.yolo import YOLO
from Sort.deep_sort import preprocessing, nn_matching
from Sort.deep_sort.detection import Detection
from Sort.deep_sort.trac... | PypiClean |
/MUSE_OS-1.0.2.tar.gz/MUSE_OS-1.0.2/src/muse/readers/toml.py | __all__ = ["read_settings"]
import importlib.util as implib
from collections import namedtuple
from copy import deepcopy
from logging import getLogger
from pathlib import Path
from typing import (
IO,
Any,
Dict,
List,
Mapping,
MutableMapping,
Optional,
Sequence,
Text,
Tuple,
... | PypiClean |
/Js2Py-0.74.tar.gz/Js2Py-0.74/js2py/internals/constructors/time_helpers.py | from __future__ import unicode_literals
# NOTE: t must be INT!!!
import time
import datetime
import warnings
try:
from tzlocal import get_localzone
LOCAL_ZONE = get_localzone()
except: # except all problems...
warnings.warn(
'Please install or fix tzlocal library (pip install tzlocal) in order to... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/binary/io.py | import math
import struct
from itertools import chain
import mpmath
import sympy
from mathics.builtin.base import Builtin
from mathics.core.atoms import Complex, Integer, MachineReal, Real, String
from mathics.core.convert.expression import to_expression, to_mathics_list
from mathics.core.convert.mpmath import from_m... | PypiClean |
/OWSLib-0.29.2.tar.gz/OWSLib-0.29.2/owslib/swe/common.py | from owslib.util import nspath_eval
from owslib.namespaces import Namespaces
from owslib.util import testXMLAttribute, testXMLValue, InfiniteDateTime, NegativeInfiniteDateTime
from dateutil import parser
from datetime import timedelta
from owslib.etree import etree
import inspect
from sys import modules
def get_na... | PypiClean |
/Nereid-2.8.0.3.tar.gz/Nereid-2.8.0.3/docs/quickstart.rst | .. _quickstart:
Quickstart
==========
Eager to get started? This page gives a good introduction to Nereid. It
assumes you already have Nereid installed. If you do not, head over to the
:ref:`installation` section.
A minimal application
=====================
A minimal Nereid application first requries a Tryton da... | PypiClean |
/Geo2D-0.1.22.tar.gz/Geo2D-0.1.22/geo2d/utils.py | import math
from functools import wraps
# convenience notation
inf = float('inf')
def find_first_missing(seq):
"""
Given an ascending sequence `seq`, the first missing number is returned
if any, else None.
Parameters
----------
seq : list of ints
A sequence of numbers in ascending ord... | PypiClean |
/Bugs%20Everywhere%20(BEurtle%20fork)-1.5.0.1.-2012-07-16-.zip/Bugs Everywhere (BEurtle fork)-1.5.0.1.-2012-07-16-/libbe/ui/command_line.py | import optparse
import os
import sys
import libbe
import libbe.bugdir
import libbe.command
import libbe.command.util
import libbe.version
import libbe.ui.util.pager
import libbe.util.encoding
if libbe.TESTING == True:
import doctest
class CallbackExit (Exception):
pass
class CmdOptionParser(optparse.Option... | PypiClean |
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/pool/error.py |
from ..core.client import get_client
from ..utils import to_hash
from ..task import Task
class CrawlErrorPool(object):
@classmethod
def add(cls, task):
assert task.crawl_error_traceback
client = get_client()
key = '{}:crawl_error_pool'.format(task.instance_id)
if client.lle... | PypiClean |
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/doc/source/features.rst | ========
Features
========
Dragonflow offers the following virtual network services:
* Layer-2 (switching)
Native implementation. Replaces the conventional Open vSwitch (OVS)
agent.
* Layer-3 (routing)
Native implementation or conventional layer-3 agent. The native
implementation supports distributed routi... | PypiClean |
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/dragonflow/db/db_api.py |
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class DbApi(object):
@abc.abstractmethod
def initialize(self, db_ip, db_port, **args):
"""Initialize the DB client
:param db_ip: DB server IP address
:type db_ip: string
:param db_port: DB server port numbe... | PypiClean |
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/core/keypoint_ops.py | import numpy as np
import tensorflow.compat.v1 as tf
def scale(keypoints, y_scale, x_scale, scope=None):
"""Scales keypoint coordinates in x and y dimensions.
Args:
keypoints: a tensor of shape [num_instances, num_keypoints, 2]
y_scale: (float) scalar tensor
x_scale: (float) scalar tensor
scope: ... | PypiClean |
/Kotti-2.0.9.tar.gz/Kotti-2.0.9/kotti/views/view.py | import warnings
from pyramid.httpexceptions import HTTPNotFound
from pyramid.view import notfound_view_config
from pyramid.view import render_view_to_response
from pyramid.view import view_config
from kotti.interfaces import IContent
from kotti.views.util import search_content
from kotti.views.util import search_cont... | PypiClean |
/FirebaseData-0.6.3.tar.gz/FirebaseData-0.6.3/firebasedata/data.py | import collections
import datetime
import os.path
import logging
logger = logging.getLogger(__name__)
Node = collections.namedtuple('Node', 'value parent key')
def get_path_list(path):
path = path.strip('/')
if path == '':
return []
return path.split('/')
def normalize_path(path):
return ... | PypiClean |
/HTSQL-2.3.3.tar.gz/HTSQL-2.3.3/src/htsql/tweak/shell/vendor/codemirror-2.13/mode/smalltalk/smalltalk.js | CodeMirror.defineMode("smalltalk", function(config, parserConfig) {
var keywords = {"true": 1, "false": 1, nil: 1, self: 1, "super": 1, thisContext: 1};
var indentUnit = config.indentUnit;
function chain(stream, state, f) {
state.tokenize = f;
return f(stream, state);
}
var type;
function ret(tp, ... | PypiClean |
/EasyPAI-0.0.2-py3-none-any.whl/easypai/torch/launch.py | r"""
`torch.distributed.launch` is a module that spawns up multiple distributed
training processes on each of the training nodes.
The utility can be used for single-node distributed training, in which one or
more processes per node will be spawned. The utility can be used for either
CPU training or GPU training. If th... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/web-animations-js/web-animations-next-lite.min.js |
!function(a,b){var c={},d={},e={};!function(a,b){function c(a){if("number"==typeof a)return a;var b={};for(var c in a)b[c]=a[c];return b}function d(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="l... | PypiClean |
/ObjectListView-1.3.1.zip/ObjectListView-1.3.1/Examples/ExampleModel.py |
# Simple minded model objects for our examples
import datetime
import time
class Track(object):
"""
Simple minded object that represents a song in a music library
"""
def __init__(self, title, artist, album, sizeInBytes, lastPlayed, rating):
self.title = title
self.artist = artist
... | PypiClean |
/NAG-PyPOP-0.3.5.tar.gz/NAG-PyPOP-0.3.5/LICENSE.md | # BSD 3-Clause Clear License
SPDX-License-Identifier: BSD-3-Clause-Clear
Copyright (c) 2019, The Numerical Algorithms Group, Ltd.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted
(subject to the limitations in the disclaimer below) provided that the ... | PypiClean |
/Mesa_Adapted-0.8.7.3-py3-none-any.whl/mesa_adapted/visualization/templates/js/HexDraw.js | var HexVisualization = function(width, height, gridWidth, gridHeight, context, interactionHandler) {
// Find cell size:
var cellWidth = Math.floor(width / gridWidth);
var cellHeight = Math.floor(height / gridHeight);
// Find max radius of the circle that can be inscribed (fit) into the
// cell of t... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/factor/factor.js |
// Factor syntax highlight - simple mode
//
// by Dimage Sapelkin (https://github.com/kerabromsmu)
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../../addon/mode/simple"));
else if (typeof define == "function" && define.... | PypiClean |
/DaMa_ML-1.0a0-py3-none-any.whl/dama/clf/wrappers.py | import numpy as np
from sklearn.externals import joblib
from dama.models import MLModel, SupervicedModel
from dama.data.it import Iterator
from dama import measures as metrics
from dama.utils.logger import log_config
from dama.measures import ListMeasure
log = log_config(__name__)
class ClassifModel(SupervicedModel... | PypiClean |
/Gato-1.2.7.tar.gz/Gato-1.2.7/createHTMLAnimations.py |
import sys
import os
import re
import fnmatch
import logging
from Gato import *
import GatoGlobals
g = GatoGlobals.AnimationParameters
import argparse
# The following defines the Algorithm-Graph combinations to create HTML animations for
#
#
# List of algorithms and instances actually used in the CATBox book
# and ... | PypiClean |
/HybridUI-0.0.1.tar.gz/HybridUI-0.0.1/hybrid/elements/collapse.py | from typing import List, Callable, Union
from ..element import Element
# Annahme: `Element` und andere Abhängigkeiten sind bereits definiert
class Collapse(Element):
"""
accordion
activeKey
number
bordered
collapsible
defaultActiveKey
number
destroyInactivePanel
ex... | PypiClean |
/ENSF-1.2-py3-none-any.whl/myPackage/Trees/BST.py | from pathlib import Path
import sys
parent_dir = Path(__file__).resolve().parent.parent
sys.path.append(str(parent_dir))
from Nodes.TNode import TNode
class BST:
def __init__(self, arg = None):
if arg == None:
self.root = None
elif isinstance(arg, int):
self.root = TNode(arg... | PypiClean |
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/glances/exports/glances_influxdb.py | import sys
from platform import node
from glances.logger import logger
from glances.exports.glances_export import GlancesExport
from influxdb import InfluxDBClient
from influxdb.client import InfluxDBClientError
class Export(GlancesExport):
"""This class manages the InfluxDB export module."""
def __init__(... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/intl-messageformat/dist/locale-data/es.js | IntlMessageFormat.__addLocaleData({"locale":"es","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
IntlMessageFormat.__addLocaleData({"locale":"es-419","parentLocale":"es"});
IntlMessageFormat.__addLocaleData({"locale":"es-AR","parentLocale":"es-419"});
IntlMessageFormat.__addLoca... | PypiClean |
/django-chuck-0.2.3.tar.gz/django-chuck/modules/feincms/project/static/scripts/libs/tiny_mce/plugins/paste/editor_plugin.js | (function(){var c=tinymce.each,a={paste_auto_cleanup_on_paste:true,paste_enable_default_filters:true,paste_block_drop:false,paste_retain_style_properties:"none",paste_strip_class_attributes:"mso",paste_remove_spans:false,paste_remove_styles:false,paste_remove_styles_if_webkit:true,paste_convert_middot_lists:true,paste_... | PypiClean |
/Lifetimes-0.11.3-py3-none-any.whl/lifetimes/fitters/beta_geo_beta_binom_fitter.py | """Beta Geo Beta BinomFitter."""
from __future__ import division
from __future__ import print_function
import warnings
warnings.simplefilter(action="ignore", category=FutureWarning)
import numpy as np
import pandas as pd
from autograd.numpy import log, exp, logaddexp
from pandas import DataFrame
from autograd.scipy.s... | PypiClean |
/FX-Manager-1.0.16.tar.gz/FX-Manager-1.0.16/scripts/run_fx_live_sim.py | doc = __doc__
import argparse
import sys
from os import getcwd
sys.path.append(getcwd())
import json
from fxmanager.basic.account import Account
from fxmanager.basic.util import get_portfolios
from fxmanager.strategies.template import strategy_template
from fxmanager.strategies.naieve_momentum import get_orders
import... | PypiClean |
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/esmvalcore/dataset.py | from __future__ import annotations
import logging
import pprint
import re
import textwrap
import uuid
from copy import deepcopy
from fnmatch import fnmatchcase
from itertools import groupby
from pathlib import Path
from typing import Any, Iterator, Sequence, Union
from iris.cube import Cube
from esmvalcore import es... | PypiClean |
/FlyBrainLab-1.1.10-py3-none-any.whl/flybrainlab/GFXComponent.py | import sys
from twisted.internet.defer import inlineCallbacks
from twisted.logger import Logger
import json
import ast
from autobahn.twisted.util import sleep
from autobahn.twisted.wamp import ApplicationSession
from autobahn.wamp.exception import ApplicationError
import networkx as nx
import numpy as np
import h5py
im... | PypiClean |
/NEURON_gpu_nightly-8.2a7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/node.py | import neuron
from neuron import h, nrn, hoc, nrn_dll_sym
from . import region, constants
from . import rxdsection
import numpy
import weakref
from .rxdException import RxDException
import warnings
import ctypes
from collections.abc import Callable
# function to change extracellular diffusion
set_diffusion = nrn_dll... | PypiClean |
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/plugins/softwareupdate/static/clientjs/softwareupdate.js | (function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["OctoPrintClient"], factory);
} else {
factory(global.OctoPrintClient);
}
})(this, function (OctoPrintClient) {
var OctoPrintSoftwareUpdateClient = function (base) {
this.base = base;
... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/detectors/single_stage_instance_seg.py | import copy
import warnings
import mmcv
import numpy as np
import torch
from mmdet.core.visualization.image import imshow_det_bboxes
from ..builder import DETECTORS, build_backbone, build_head, build_neck
from .base import BaseDetector
INF = 1e8
@DETECTORS.register_module()
class SingleStageInstanceSegmentor(BaseD... | PypiClean |
/DataTig-0.5.0.tar.gz/DataTig-0.5.0/datatig-TMP/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 |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/landcover/albedolandcover.py | import copy
import glob
import itertools as it
import logging
import os
from cartopy import crs # This line causes a segmentation fault in prospector
import cartopy.feature as cfeature
import iris
import matplotlib.pyplot as plt
import numpy as np
# specific imports for this diagnostic
from sklearn import linear_mode... | PypiClean |
/Babel-2.12.1.tar.gz/Babel-2.12.1/babel/messages/mofile.py | from __future__ import annotations
import array
import struct
from typing import TYPE_CHECKING
from babel.messages.catalog import Catalog, Message
if TYPE_CHECKING:
from _typeshed import SupportsRead, SupportsWrite
LE_MAGIC: int = 0x950412de
BE_MAGIC: int = 0xde120495
def read_mo(fileobj: SupportsRead[bytes])... | PypiClean |
/Munin-0.2.4.tar.gz/Munin-0.2.4/docs/guide/guide_object_detection.md | # Introduktion
Denne guide beskrive hvordan du lettest kan komme igang med Object Detection i Tensorflow. Det forudsættes at du er nogenlunde fortrolig med Bash og Python, og har en egnet computer (se afsnittet nedenfor). Man kan argumentere for at Google's Tensorflow og Object Detection API udgør det mest modne frame... | PypiClean |
/Flask_JSONRPC-2.2.2-py3-none-any.whl/flask_jsonrpc/contrib/browse/static/js/libs/bootstrap/bootstrap.min.js | if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(vo... | PypiClean |
/Moliere-0.0.8.tar.gz/Moliere-0.0.8/moliere/__init__.py | import os
import re
import dotenv
import psycopg2
import psycopg2.extras
dotenv.load_dotenv()
class Pgdb:
""" Wrapper class. """
def __init__(self):
self.__connection = None
# Selection of environment variables with a special ending
# (DB_NAME, DB_HOST, DB_PORT, DB_USER, DB_PWD)
... | PypiClean |
/ETLT-0.9.6.tar.gz/ETLT-0.9.6/test/helper/Type2HelperTest.py | import unittest
from etlt.helper.Type2Helper import Type2Helper
class Type2JoinTest(unittest.TestCase):
"""
Test cases for Type2Join
"""
# ------------------------------------------------------------------------------------------------------------------
def test_enumerate(self):
"""
... | PypiClean |
/ElectronCounting-1.0.0.tar.gz/ElectronCounting-1.0.0/CountingNN/blocks.py | from typing import Union, Tuple
import torch
import torch.nn as nn
import torch.nn.functional as F
class ConvBlock(nn.Module):
"""
Creates block of layers each consisting of convolution operation,
leaky relu and (optionally) dropout and batch normalization
Args:
ndim:
Data dimensi... | PypiClean |
/Cowpox-6-py3-none-any.whl/cowpox/arch.py |
# This file is part of Cowpox.
#
# Cowpox 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.
#
# Cowpox is distributed in the hope that i... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/contacts/models.py | import logging
import random
import string
from uuid import uuid4
from django.conf import settings
from django.contrib.postgres.fields import JSONField
from django.contrib.sites.models import Site
from django.core.exceptions import ValidationError
from django.core.validators import validate_email
from django.db import... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/paper-behaviors/.github/ISSUE_TEMPLATE.md | <!-- Instructions: https://github.com/PolymerElements/paper-behaviors/CONTRIBUTING.md#filing-issues -->
### Description
<!-- Example: The `paper-foo` element causes the page to turn pink when clicked. -->
### Expected outcome
<!-- Example: The page stays the same color. -->
### Actual outcome
<!-- Example: The page... | PypiClean |
/Finicky-0.1.7.tar.gz/Finicky-0.1.7/finicky/validators.py | from datetime import datetime
import re
class ValidationException(Exception):
def __init__(self, errors=None):
self.__errors = errors
super(ValidationException, self).__init__(errors if type(errors) is str else str(errors))
@property
def errors(self):
return self.__errors
# noin... | PypiClean |
/Flask-Ink-3.1.10.tar.gz/Flask-Ink-3.1.10/flask_ink/static/js/ink.datepicker.js | Ink.createModule('Ink.UI.DatePicker', '1', ['Ink.UI.Aux_1','Ink.Dom.Event_1','Ink.Dom.Css_1','Ink.Dom.Element_1','Ink.Dom.Selector_1','Ink.Util.Array_1','Ink.Util.Date_1', 'Ink.Dom.Browser_1'], function(Aux, Event, Css, Element, Selector, InkArray, InkDate ) {
'use strict';
/**
* @class Ink.UI.DatePic... | 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/deduplication.py | from graphlab.toolkits._model import CustomModel as _CustomModel
from graphlab.toolkits._model import ProxyBasedModel as _ProxyBasedModel
from graphlab.toolkits._model import PythonProxy as _PythonProxy
import graphlab as _gl
import graphlab.connect as _mt
from graphlab.toolkits._internal_utils import _toolkit_repr_pr... | PypiClean |
/Fabric-with-working-dependencies-1.0.1.tar.gz/Fabric-with-working-dependencies-1.0.1/docs/changes/0.9.2.rst | ========================
Changes in version 0.9.2
========================
The following changes were implemented in Fabric 0.9.2:
Feature additions
=================
* The `~fabric.operations.reboot` operation has been added, providing a way for
Fabric to issue a reboot command and then reconnect after the system... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/forms/dialogs/textarea.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.dialog.add("textarea",function(b){return{title:b.lang.forms.textarea.title,minWidth:350,minHeight:220,getModel:function(a){return(a=a.getSelectio... | PypiClean |
/Actflow-0.2.3.1-py3-none-any.whl/tools/max_r.py |
# Code to perform permutation testing to control for family-wise error (FWE)
# Using max-T approach as described in Nichols & Holmes (2002)
# Nichols TE, Holmes AP. (2002). Nonparametric permutation tests for functional neuroimaging: A primer with Examples. Hum. Brain Mapp., 15: 1-25. doi:10.1002/hbm.1058
import nump... | PypiClean |
/HydroTrace-0.2.post1.tar.gz/HydroTrace-0.2.post1/README.MD | [](http://www.gnu.org/licenses/gpl-3.0)
<span></span>
# Background
In order to address several shortcomings with ensuring similitude in examining the output from commercial hydrogen analysers... | PypiClean |
/LibRPG-0.4.zip/LibRPG-0.4/librpg/dialog.py | import pygame
from librpg.locals import *
from librpg.config import dialog_config as cfg
from librpg.config import graphics_config as g_cfg
from librpg.config import game_config as m_cfg
from librpg.virtualscreen import get_screen
from librpg.context import Context
def build_lines(text, box_width, font):
lines =... | PypiClean |
/ClipCap-1.0.0-py3-none-any.whl/ClipCap-1.0.0.data/data/README.md | # ClipCap
Using pretrained encoder and language models to generate captions from multimedia inputs, allowing high fidelity text generation using the rich textual detail already learned by pretrained LMs on tasks such as image captioning, VQA, audio captioning and more.
More details and results to come soon.
## Instal... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/intl-messageformat/dist/intl-messageformat.min.js | (function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)h.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d,e){this.id=a,this.useOrdinal=b,this.o... | PypiClean |
/FragPELE-2.1.1.tar.gz/FragPELE-2.1.1/frag_pele/Analysis/backtrackConnectivity.py | import argparse
import os
import sys
import itertools
import lib_prep.pdb_modifier as pm
from AdaptivePELE.utilities import utilities
def parse_arguments():
"""
Parse the command-line options
:returns: str, str, str -- path to file to backtrack,
output path where to write the files, ... | PypiClean |
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/drawers/mpl_drawers/spectral/fast_fourier_transform_spectrogram.py |
__author__ = "Christian Heider Nielsen"
__doc__ = """
Created on 27/04/2019
@author: cnheider
"""
__all__ = ["FastFourierTransformSpectrogramPlot"]
import math
import numpy
from draugr.drawers.mpl_drawers.mpldrawer import MplDrawer
from draugr.visualisation.progress import progress_bar
from matplotlib import pypl... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/grid/TreeGrid.js | if(!dojo._hasResource["dojox.grid.TreeGrid"]){
dojo._hasResource["dojox.grid.TreeGrid"]=true;
dojo.experimental("dojox.grid.TreeGrid");
dojo.provide("dojox.grid.TreeGrid");
dojo.require("dojox.grid.DataGrid");
dojo.require("dojox.grid._TreeView");
dojo.require("dojox.grid.cells.tree");
dojo.require("dojox.grid.TreeSele... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/syntax/synxml.py | xml_spec = """
<editra version="1">
<syntax language="Python" lexer="STC_LEX_PYTHON" id="ID_LANG_PYTHON">
<associations value="py pyw"/>
<keywordlist>
<keywords value="0">
if else elif for while in
</keywords>
<keywords value="1">
str len setattr get... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ats/api/interviews_api.py | import re # noqa: F401
import sys # noqa: F401
from MergePythonSDK.shared.api_client import ApiClient, Endpoint as _Endpoint
from MergePythonSDK.shared.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_ty... | PypiClean |
/NREL-jade-0.9.9.tar.gz/NREL-jade-0.9.9/jade/cli/common.py |
from jade.models.submitter_params import ResourceMonitorStats
import logging.config
import os
import sys
import click
from jade.common import HPC_CONFIG_FILE
from jade.enums import Mode, ResourceMonitorType
from jade.exceptions import UserAbort
from jade.models import (
HpcConfig,
LocalHpcConfig,
Singula... | PypiClean |
/NNBuilder-0.3.7.tar.gz/NNBuilder-0.3.7/nnbuilder/layers/utils.py | from collections import OrderedDict
from nnbuilder.kernel import *
gated_activations = [T.glu, T.gtu, T.maxout]
class LayerDict(object):
def __init__(self, layer, layers=None):
'''
:param layer:
:param layers:
'''
self.layer = layer
self.layers = OrderedDict()
... | PypiClean |
/Astropysics-1.0.tar.gz/Astropysics-1.0/astropysics/objcat.py | #TODO: Figure out if there's a derived value problem from fcurve/MAKE TESTS
#TODO: make it so adding a derived func to a StructuredFieldNode adds in the new fields if they aren't present
#TODO: more stable persistence options (with atomic edits and histories?)
#TODO: a gui catalog viewer w/ plotting options as implemen... | PypiClean |
/CASPy3-2.2.0.tar.gz/CASPy3-2.2.0/caspy3/qt_assets/tabs/summation.py |
from PyQt5.QtCore import pyqtSlot, Qt
from PyQt5.QtWidgets import QShortcut, QWidget
from PyQt5.QtGui import QCursor, QKeySequence
from PyQt5.uic import loadUi
import typing as ty
from sympy import *
from sympy.parsing.sympy_parser import parse_expr
import traceback
from .worker import BaseWorker
class Summation... | PypiClean |
/django-chuck-0.2.3.tar.gz/django-chuck/modules/django-cms/project/apps/cmsplugin_filer_teaser/migrations/0002_add_teaser_style_choice.py | from south.db import db
from django.db import models
from cmsplugin_filer_teaser.models import *
class Migration:
def forwards(self, orm):
# Adding field 'FilerTeaser.style'
db.add_column('cmsplugin_filerteaser', 'style', orm['cmsplugin_filer_teaser.filerteaser:style'])
... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Inference/Vocabulary/Format.py |
#+---------------------------------------------------------------------------+
#| 01001110 01100101 01110100 01111010 01101111 01100010 |
#| |
#| Netzob : Inferring communication protocols |
#+-... | PypiClean |
/Aesthete-0.4.2.tar.gz/Aesthete-0.4.2/aesthete/glypher/__init__.py | __all__ = ['Glypher', 'GlyphEntry', 'GlyphMaker']
import os
import shutil
import lxml.etree as ET
from xml.parsers.expat import ExpatError
from aobject.paths import *
from aobject.utils import debug_print
import glypher as g
from Parser import add_phrasegroup_tree, add_formula_tree, load_shortcuts
from Function import... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.