id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/oommftools-2.0.2.tar.gz/oommftools-2.0.2/oommftools/odtchomp.py | import os
from wx import adv
import wx
import numpy as np
from fnameutil import filterOnExtensions
import _about as about
#########
# About #
#########
VERSION = about.__version__
NAME = "ODTChomp"
LICENSE = about.__license__
COPYRIGHT = about.__copyright__
WEBSITE = about.__uri__
DESCRIPTION = """ODTChomp is an OOM... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/autoassess/_plot_mo_metrics.py | import csv
import errno
import os
import matplotlib.pyplot as plt
import numpy as np
from esmvaltool.diag_scripts.shared import save_figure
# Define some colours
BLACK = '#000000'
RED = '#FF0000'
AMBER = '#FF8C00'
GREEN = '#7CFC00'
OBS_GREY = '#000000'
ACC_GREY = '#00FFFF'
STD_GREY = '#EEEEEE'
NOOBS_GREY = '#A9A9A9'... | PypiClean |
/LiMiC-0.3.20.tar.gz/LiMiC-0.3.20/limic/serve_web.py | COUNTRIES = (("countries",),{'type':str,'nargs':'+','help':"countries to route on",'metavar':'COUNTRY'})
GRAPH = (("graph_file",),{'type':str,'help':"use graph file GRAPH",'metavar':'GRAPH'})
HTML = (("html_file",),{'type':str,'help':"use rendered HTML file",'metavar':'HTML'})
RHOST = (("--render-host",),{'type':str,'d... | PypiClean |
/DataGridBWC-0.2.2.tar.gz/DataGridBWC-0.2.2/datagridbwc_ta/static/js/jquery.multiselect.min.js | (function(d){var j=0;d.widget("ech.multiselect",{options:{header:!0,height:175,minWidth:225,classes:"",checkAllText:"Check all",uncheckAllText:"Uncheck all",noneSelectedText:"Select options",selectedText:"# selected",selectedList:0,show:"",hide:"",autoOpen:!1,multiple:!0,position:{}},_create:function(){var a=this.eleme... | PypiClean |
/ChatExchange-0.0.4-py3-none-any.whl/chatexchange/client.py | import sys
if sys.version_info[0] == 2:
import Queue as queue
else:
import queue
import logging
if sys.version_info[:2] <= (2, 6):
logging.Logger.getChild = lambda self, suffix:\
self.manager.getLogger('.'.join((self.name, suffix)) if self.root is not self else suffix)
import collections
import re
i... | PypiClean |
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/blog/templatetags/blog_tags.py | from datetime import datetime
from django.contrib.auth import get_user_model
from django.db.models import Count, Q
from django.utils import timezone
from mezzanine import template
from mezzanine.blog.forms import BlogPostForm
from mezzanine.blog.models import BlogCategory, BlogPost
from mezzanine.generic.models impor... | PypiClean |
/Jinja2-3.1.2-py3-none-any.whl/jinja2/utils.py | import enum
import json
import os
import re
import typing as t
from collections import abc
from collections import deque
from random import choice
from random import randrange
from threading import Lock
from types import CodeType
from urllib.parse import quote_from_bytes
import markupsafe
if t.TYPE_CHECKING:
impo... | PypiClean |
/GeoBases3K-5.0.16.zip/GeoBases3K-5.0.16/GeoBases/DataSources/CheckDataUpdates.sh |
# Moving to the script directory
# We could move to the installation directory if we knew it
cd `dirname $0`
TMP_DIR='/tmp'
TMP_VIEW_1='/tmp/fsdlkghiueevlr_02.csv'
TMP_VIEW_2='/tmp/fsdlkghiueevlr_03.csv'
# By default, we will ask the user permission to replace
# the old file, unless -f option is triggered
FORCE=0
... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/ishop/views.py | from __future__ import unicode_literals
from django.conf import settings
from django.http import Http404, HttpResponse, HttpResponseRedirect, HttpResponsePermanentRedirect
from django.db.models import Q, Max, Min, Prefetch, Case, When
from django.core.urlresolvers import reverse
from django.contrib import messages
from... | PypiClean |
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/html/_build/doctrees/nbsphinx/hn_module_tutorial.ipynb | # Tutorial for the HN module of HavNegpy package
```
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
import HavNegpy as dd
%matplotlib qt
os.chdir(r'M:\Marshall_Data\mohamed_data\mohamed_data\n44')
def create_dataframe(f):
col_names = ['Freq', 'T', 'Eps1', 'Eps2']
#f ... | PypiClean |
/Flask-Cache2-0.13.1.tar.gz/Flask-Cache2-0.13.1/flask_cache/__init__.py | __version__ = '0.13'
__versionfull__ = __version__
import base64
import functools
import hashlib
import inspect
import logging
import string
import uuid
import warnings
from werkzeug import import_string
from flask import request, current_app
from ._compat import PY2
logger = logging.getLogger(__name__)
TEMPLATE_F... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK.ticketing-2.2.2.dist-info/LICENSE.md | _Last updated: April 21, 2022_
**Merge SDK & Code Snippets License**
Merge makes available to Customers various software development kits ("**SDKs**") and code snippets ("**Snippets**") (together, the "**Merge Assets**") to assist with Merge Integrations and making connections to the... | PypiClean |
/HDDM-0.9.9.tar.gz/HDDM-0.9.9/hddm/models/hddm_transformed.py | from collections import OrderedDict
import inspect
import pymc as pm
import kabuki.step_methods as steps
from hddm.models import HDDMBase
class HDDMTransformed(HDDMBase):
# AF-comment: Don't understand the purpose of this class !
def __init__(self, *args, **kwargs):
self.use_gibbs_for_mean = kwargs.... | PypiClean |
/Kook-0.7.2.tar.gz/Kook-0.7.2/lib/kook/books/concatenate.py |
###
### $Release: 0.7.2 $
### $Copyright: copyright(c) 2008-2012 kuwata-lab.com all rights reserved. $
### $License: MIT License $
###
###
### 'concatenate' recipe which concatenates cookbook and pyKook libraries into a file.
###
### Using 'concatenate' recipe, your cookbook can be a stand-alone script
### and user ... | PypiClean |
/a_fmm-0.1.0.tar.gz/a_fmm-0.1.0/README.md | [](https://a-fmm.readthedocs.io/en/latest/?badge=latest)
[](https://github.com/psf/black)
[:
"""
A demonstration script for the classes within the GPR1D module.
Due to the iterative nature of the optimization met... | PypiClean |
/Gaussian_Binomial_Distribution-1.1.tar.gz/Gaussian_Binomial_Distribution-1.1/Gaussian_Binomial_Distribution/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/jinja2/jinja2/ext.py | import re
from jinja2 import nodes
from jinja2.defaults import BLOCK_START_STRING, \
BLOCK_END_STRING, VARIABLE_START_STRING, VARIABLE_END_STRING, \
COMMENT_START_STRING, COMMENT_END_STRING, LINE_STATEMENT_PREFIX, \
LINE_COMMENT_PREFIX, TRIM_BLOCKS, NEWLINE_SEQUENCE, \
KEEP_TRAILING_NEWLINE, LSTRIP... | PypiClean |
/2b2t.py-1.7.6.tar.gz/2b2t.py-1.7.6/py2b/listCheck.py | import requests
from colorama import Fore, init
import threading
class listCheck():
def __init__(self, usernames, printOut=False):
self.usernames = usernames
self.printOut = printOut
init(convert=True)
def listBased(self, usernameList):
for username i... | PypiClean |
/MTPPy-1.1.1-py3-none-any.whl/mtppy/procedure.py | import logging
from mtppy.suc_data_assembly import *
class Procedure(SUCServiceProcedure):
def __init__(self, procedure_id: int, tag_name: str, tag_description: str = '', is_self_completing: bool = False,
is_default: bool = False):
"""
Represents a procedure of a service.
... | PypiClean |
/AstroAugmentations-0.1.0.tar.gz/AstroAugmentations-0.1.0/astroaugmentations/datasets/galaxy_mnist.py | import os
from typing import Tuple, Any
import torch
import h5py
import numpy as np
from PIL import Image
from sklearn import model_selection
from torchvision.datasets.mnist import MNIST
class GalaxyMNIST(MNIST):
"""`GalaxyMNIST <https://github.com/mwalmsley/galaxy_mnist>`_ Dataset.
Based on MNIST/FashionM... | PypiClean |
/AreaCode-1.0.0.tar.gz/AreaCode-1.0.0/ChinaArea/AreaCode.py |
__CHINA_AREA__ = [
{"parent_id": "N1", "children": [
{"parent_id": "P34", "children": [
{"parent_id": "C2", "children": [
{"parent_id": "D14", "children": [], "type": "A", "id": "A2712", "name": "南京东路"},
... | PypiClean |
/Flask-PluginEngine-0.4.1.tar.gz/Flask-PluginEngine-0.4.1/flask_pluginengine/util.py |
import sys
from contextlib import contextmanager
from functools import wraps
from types import FunctionType
from flask import current_app
from jinja2.utils import internalcode
from .globals import _plugin_ctx_stack
def get_state(app):
"""Get the application-specific plugine engine data."""
assert 'pluginen... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/hr.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/NEURON_gpu-8.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/geometry.py | import warnings
import numpy
from neuron import h, nrn
from .rxdException import RxDException
try:
from neuron.rxd import geometry3d
has_geometry3d = True
except ImportError:
has_geometry3d = False
class RxDGeometry:
def volumes1d(self, sec):
raise RxDException("volume1d unimplemented")
... | PypiClean |
/Beat_ML1-0.13.1.tar.gz/Beat_ML1-0.13.1/econml/_cate_estimator.py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""Base classes for all CATE estimators."""
import abc
import numpy as np
from functools import wraps
from copy import deepcopy
from warnings import warn
from .inference import BootstrapInference
from .utilities import (ten... | PypiClean |
/15five-snowplow-tracker-0.8.156.tar.gz/15five-snowplow-tracker-0.8.156/snowplow_tracker/tracker.py | import time
import uuid
import six
from contracts import contract, new_contract
from snowplow_tracker import payload, _version, SelfDescribingJson
from snowplow_tracker import subject as _subject
from snowplow_tracker.timestamp import Timestamp, TrueTimestamp, DeviceTimestamp
"""
Constants & config
"""
VERSION = "... | PypiClean |
/FP-SMC-ALS-test1-0.0.1.tar.gz/FP-SMC-ALS-test1-0.0.1/smc/api/session.py | import copy
import json
import logging
import ssl
import requests
import collections
import smc
# import smc.api.web
from smc.api.web import send_request, counters
from smc.api.entry_point import Resource
from smc.api.configloader import load_from_file, load_from_environ
from smc.api.common import SMCRequest
from smc... | PypiClean |
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/baselib/lrucache/LRUCache.py |
# Copyright 2004 Evan Prodromou <evan@bad.dynu.ca>
# Licensed under the Academic Free License 2.1
# arch-tag: LRU cache main module
"""a simple LRU (Least-Recently-Used) cache module
This module provides very simple LRU (Least-Recently-Used) cache
functionality.
An *in-memory cache* is useful for storing the resul... | PypiClean |
/Guerilla-1.0.2.tar.gz/Guerilla-1.0.2/guerilla/players.py | import chess
import random
import chess.uci
from abc import ABCMeta, abstractmethod
import guerilla.data_handler as dh
from guerilla.play.neural_net import NeuralNet
from guerilla.play.search import Minimax, IterativeDeepening
class Player:
__metaclass__ = ABCMeta
def __init__(self, name):
"""
... | PypiClean |
/GsuiteToMd-1.3.0.tar.gz/GsuiteToMd-1.3.0/docs/build/html/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/ClickSQL-0.1.9.4.tar.gz/ClickSQL-0.1.9.4/README.md | # ClickSQL: ClickHouse client for Humans
[](https://github.com/sn0wfree/ClickSQL/actions/workflows/codeql-analysis.yml)
[ 2017, Eike Jesinghaus
# 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 distributed in the hope ... | PypiClean |
/Django_CryptographicFields-2.1.0-py3-none-any.whl/CryptographicFields/fields.py | from typing import Any
from django.db import models
from django.core import exceptions, validators
from django.db.models.fields import PositiveIntegerRelDbTypeMixin
from .cryptography import encrypt, decrypt
from ast import literal_eval
import datetime
from django import forms
from django.utils import timezone
from uui... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/lib/ucsv.py | from __future__ import unicode_literals
from cubane.lib.utf8 import get_file_encoding, write_file_encoding
import csv ; from csv import *
import codecs
import cStringIO
__version__ = '1.0 Unicode'
__dropins__ = ['reader', 'writer']
class UTF8Recoder:
"""
Iterator that reads a stream encoded in the given enc... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Platform/win32.py |
__revision__ = "src/engine/SCons/Platform/win32.py 2014/07/05 09:42:21 garyo"
import os
import os.path
import sys
import tempfile
from SCons.Platform.posix import exitvalmap
from SCons.Platform import TempFileMunge
import SCons.Util
try:
import msvcrt
import win32api
import win32con
msvcrt.get_osf... | PypiClean |
/EVE_Gnosis-2017.6.27.tar.gz/EVE_Gnosis-2017.6.27/EVE_Gnosis/formulas/formulas.py | from math import sqrt, exp
class Formulas(object):
def __init__(self):
pass
@staticmethod
def capacitor_shield_tick(maximum_amount, current_amount, recharge_rate, end_time=1000, start_time=0):
"""
:param maximum_amount: The size of the capacitor/shield in gigajoules (GJ)
... | PypiClean |
/Crowd-3.1.0-py3-none-any.whl/crowd.py |
import json
import requests
from lxml import etree
class CrowdServer(object):
"""Crowd server authentication object.
This is a Crowd authentication class to be configured for a
particular application (app_name) to authenticate users
against a Crowd server (crowd_url).
This module uses the Crowd... | PypiClean |
/HelioSat-0.6.2-py3-none-any.whl/heliosat/spacecraft.py | import concurrent.futures
import datetime
import heliosat
import logging
import multiprocessing
import numpy as np
import spiceypy
from .caching import cache_add_entry, cache_entry_exists, cache_generate_key, cache_get_entry
from .datafile import DataFile
from .smoothing import smooth_data
from .util import dt_utc, dt... | PypiClean |
/Kloudio-1.0.0.tar.gz/Kloudio-1.0.0/kloudio/models/report_del_response.py | import pprint
import re # noqa: F401
import six
from kloudio.configuration import Configuration
class ReportDelResponse(object):
"""
"""
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): Th... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Environment.py | import copy
import os
import sys
import re
import shlex
from collections import UserDict
import SCons.Action
import SCons.Builder
import SCons.Debug
from SCons.Debug import logInstanceCreation
import SCons.Defaults
from SCons.Errors import UserError, BuildError
import SCons.Memoize
import SCons.Node
import SCons.Node.... | PypiClean |
/Cartridge-1.3.4-py3-none-any.whl/cartridge/shop/defaults.py | from socket import gethostname
from django.utils.translation import gettext_lazy as _
from mezzanine.conf import register_setting
####################################################################
# This first set of settings already exists in Mezzanine but can #
# be overridden or appended to here with Cartridg... | PypiClean |
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/modules/maskobjects.py | import matplotlib.cm
import numpy
import scipy.ndimage
from cellprofiler_core.constants.measurement import (
COLTYPE_INTEGER,
FF_PARENT,
FF_CHILDREN_COUNT,
)
from cellprofiler_core.module import Identify
from cellprofiler_core.object import Objects
from cellprofiler_core.preferences import get_primary_outli... | PypiClean |
/FEV_KEGG-1.1.4.tar.gz/FEV_KEGG-1.1.4/FEV_KEGG/Drawing/Export.py | from FEV_KEGG.Graph import Models
import networkx.classes
import os
from enum import Enum
from FEV_KEGG.Graph.SubstanceGraphs import SubstanceEcGraph
import math
from FEV_KEGG import settings
LABEL_NAME = 'custom_label'
"""
Name of the attribute of the graph to be used for storing the label.
"""
COLOUR_NAME = 'colour'... | PypiClean |
/FITS_tools-0.2.tar.gz/FITS_tools-0.2/astropy_helpers/astropy_helpers/utils.py | from __future__ import absolute_import, unicode_literals
import contextlib
import functools
import imp
import inspect
import os
import sys
import glob
import textwrap
import types
import warnings
try:
from importlib import machinery as import_machinery
# Python 3.2 does not have SourceLoader
if not hasatt... | PypiClean |
/GDAL-3.7.1.1.tar.gz/GDAL-3.7.1.1/gdal-utils/osgeo_utils/gdal_merge.py |
import math
import sys
import time
from osgeo import gdal
from osgeo_utils.auxiliary.util import GetOutputDriverFor
progress = gdal.TermProgress_nocb
__version__ = "$id$"[5:-1]
# =============================================================================
def raster_copy(
s_fh,
s_xoff,
s_yoff,
s_... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/__past__.py | import pkgutil
import sys
from abc import ABCMeta
# pylint: disable=invalid-name,self-assigning-variable
if str is bytes:
import __builtin__ as builtins # Python2 code, pylint: disable=import-error
else:
import builtins
# Work around for CPython 3.x renaming "long" to "int".
if str is bytes:
long = long... | PypiClean |
/Flashflood-0.13.0.tar.gz/Flashflood-0.13.0/flashflood/static.py | import collections
from tornado import process
from chorus import molutil, wclogp
from chorus.draw.svg import mol_to_svg
from flashflood.lod import ListOfDict
JOB_RESULT_SCHEMA = "https://mojaie.github.io/flashflood/_static/specs/job_result_v1.0.json"
""" Option module availability """
try:
from chorus import ... | PypiClean |
/GxDoxybook-1.1.0.tar.gz/GxDoxybook-1.1.0/doxybook/node.py | import os
import re
import traceback
from xml.etree import ElementTree
from xml.etree.ElementTree import Element as Element
from doxybook.constants import Kind, Visibility, OVERLOAD_OPERATORS
from doxybook.cache import Cache
from doxybook.xml_parser import XmlParser
from doxybook.markdown import escape
from doxybook.ut... | PypiClean |
/Better-Than-You-Found-It-0.9.1.tar.gz/Better-Than-You-Found-It-0.9.1/pep8radius/main.py | from __future__ import print_function
import os
import sys
try:
from configparser import ConfigParser as SafeConfigParser, NoSectionError
except ImportError: # py2, pragma: no cover
from ConfigParser import SafeConfigParser, NoSectionError
from pep8radius.radius import Radius, RadiusFromDiff
from pep8radius... | PypiClean |
/AutoTransform-1.1.1a8-py3-none-any.whl/autotransform/step/action/reviewers.py |
# @black_format
"""All Actions associated with a Change's reviewers."""
from typing import Any, ClassVar, Dict, List
from pydantic import Field, root_validator, validator
from autotransform.change.base import Change
from autotransform.step.action.base import Action, ActionName
class AddReviewersAction(Action):
... | PypiClean |
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/gui/module_view/_filter_panel_controller.py | import logging
import wx
from cellprofiler_core.setting.filter import Filter, FilterPredicate
from cellprofiler_core.setting.filter._filter import (
AND_PREDICATE,
OR_PREDICATE,
LITERAL_PREDICATE,
)
from ._module_view import ModuleView
from ..utilities.module_view import edit_control_name
class FilterPa... | PypiClean |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/ows/wcs/interfaces.py |
class WCSCapabilitiesRendererInterface(object):
""" Interface for WCS Capabilities renderers.
"""
def render(self, params):
""" Render the capabilities including information about the given
coverages.
"""
def supports(self, params):
""" Returns a boolean value to... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/entry/cli.py | from typing import List, Union
import os
import copy
import click
from click.core import Context, Option
import numpy as np
from ding import __TITLE__, __VERSION__, __AUTHOR__, __AUTHOR_EMAIL__
from ding.config import read_config
from .predefined_config import get_predefined_config
def print_version(ctx: Context, pa... | PypiClean |
/Kr0nOs_Bot-3.3.11-py3-none-any.whl/redbot/core/utils/common_filters.py | import re
__all__ = [
"URL_RE",
"INVITE_URL_RE",
"MASS_MENTION_RE",
"filter_urls",
"filter_invites",
"filter_mass_mentions",
"filter_various_mentions",
"normalize_smartquotes",
"escape_spoilers",
"escape_spoilers_and_mass_mentions",
]
# regexes
URL_RE = re.compile(r"(https?|s?f... | PypiClean |
/BobBuildTool-0.23.1.tar.gz/BobBuildTool-0.23.1/pym/bob/cmds/misc.py |
# Bob build tool
# Copyright (C) 2016 TechniSat Digital GmbH
#
# SPDX-License-Identifier: GPL-3.0-or-later
from ..input import RecipeSet
from ..errors import ParseError, BuildError
from ..utils import processDefines
import argparse
import codecs
import sys
import os, os.path
try:
# test if stdout can handle box... | PypiClean |
/ContactMechanics-1.1.1.tar.gz/ContactMechanics-1.1.1/LICENSE.md | ### MIT license
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or se... | PypiClean |
/DecisionTree-3.4.3.tar.gz/DecisionTree-3.4.3/Examples/construct_dt_and_classify_one_sample_case3.py |
## construct_dt_and_classify_one_sample_case3.py
## This script does the same thing as the script
##
## construct_dt_and_classify_one_sample_case2.py
##
## except that it uses just two of the columns of the csv file for DT construction
## and classification. The two features used are in columns indexed 3 an... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/12391.8a087770c620986d769d.min.js | "use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[12391],{64505:function(n,e,t){var o=t(87537),r=t.n(o),s=t(23645),a=t.n(s)()(r());a.push([n.id,".hljs-comment,.hljs-quote{color:#6c6b5a}.hljs-variable,.hljs-template-variable,.hljs-attribute,.hljs-tag,.hljs-name... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/semver/ranges/subset.js | const Range = require('../classes/range.js')
const Comparator = require('../classes/comparator.js')
const { ANY } = Comparator
const satisfies = require('../functions/satisfies.js')
const compare = require('../functions/compare.js')
// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
// - Every si... | PypiClean |
/MetaCSV-0.1.1.tar.gz/MetaCSV-0.1.1/metacsv/io/to_xarray.py | import pandas as pd
import numpy as np
from collections import OrderedDict
from .._compat import string_types
from .yaml_tools import ordered_dump
xr = None
def _import_xarray():
global xr
if xr is None:
import xarray as xr
def _check_series_unique(series):
def check_unique(group):
try:... | PypiClean |
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/tl/functions/upload.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 TypeInputFileLocation, TypeInputWebFileLocation
class GetCdnFileRequest(TLRequest):
... | PypiClean |
/FFGo-1.12.7-py3-none-any.whl/ffgo/gui/gps_tool.py |
import locale
import tkinter as tk
from tkinter import ttk
from tkinter.messagebox import showwarning
from ..constants import PROGNAME
from .. import common_transl
from . import widgets
from ..geo import geodesy
from ..misc import normalizeHeading
from .tooltip import ToolTip, TreeviewToolTip
def setupTranslationHe... | PypiClean |
/1000pip%20Climber%20System%20download-2022.tar.gz/1000pip Climber System download-2022/README.md | <h1></h1>
<p>
<div class="separator" style="clear: both;"><a href="https://156544mlxov28levev7grc9v9g.hop.clickbank.net/?tid=py" rel="nofollow" style="display: block; padding: 1em 0px; text-align: center;" target="_blank"></a><a href="https://156544mlxov28levev7grc9v9g.hop.clickbank.net/?tid=py" rel="nofollow" style="d... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/code_generation/ListCodes.py | from .CodeHelpers import (
assignConstantNoneResult,
decideConversionCheckNeeded,
generateChildExpressionsCode,
generateExpressionCode,
withCleanupFinally,
withObjectCodeTemporaryAssignment,
)
from .ErrorCodes import getErrorExitBoolCode, getErrorExitCode
from .PythonAPICodes import generateCAPI... | PypiClean |
/Flask_AppBuilder-4.3.6-py3-none-any.whl/flask_appbuilder/security/sqla/apis/user/api.py | from datetime import datetime
from flask import g, request
from flask_appbuilder import ModelRestApi
from flask_appbuilder.api import expose, safe
from flask_appbuilder.const import API_RESULT_RES_KEY
from flask_appbuilder.models.sqla.interface import SQLAInterface
from flask_appbuilder.security.decorators import perm... | PypiClean |
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/important/important.rst | Important Notes
===============
Gridding
--------
As a user, you are responsible for ensuring that the grid on which the
radiative transfer is carried out is adequate to resolve density and
temperature gradients. In the case of the
:class:`~hyperion.model.AnalyticalYSOModel` class, Hyperion tries to optimize
the grid... | PypiClean |
/DecoratorTools-1.8.zip/DecoratorTools-1.8/README.txt | Class, Function, and Assignment Decorators, Metaclasses, and Related Tools
==========================================================================
Want to use decorators, but still need to support Python 2.3? Wish you could
have class decorators, decorate arbitrary assignments, or match decorated
function signatur... | PypiClean |
/Fregger-0.10.7.tar.gz/Fregger-0.10.7/fregger/static/lang/tr.js | 'use strict';
/* jshint quotmark: double */
window.SwaggerTranslator.learn({
"Warning: Deprecated":"Uyarı: Deprecated",
"Implementation Notes":"Gerçekleştirim Notları",
"Response Class":"Dönen Sınıf",
"Status":"Statü",
"Parameters":"Parametreler",
"Parameter":"Parametre",
"Value":"Değer",
... | PypiClean |
/MetPyQC-0.1.1-py3-none-any.whl/metpyqc/temporal.py |
import pandas as pd
import numpy as np
def step_all(x, step_val_susp, step_val_wrong, flag_val_susp, flag_val_wrong):
r"""
Check the difference between consecutive observations.
Parameters
----------
x : pd.DataFrame
Dataframe to be tested (time, stations)
... | PypiClean |
/OASYS1-SHADOWFOUR-0.0.4.tar.gz/OASYS1-SHADOWFOUR-0.0.4/orangecontrib/shadow4/widgets/sources/ow_wiggler.py | import sys
import time
# from syned.storage_ring.magnetic_structures.wiggler import Wiggler
#
# from orangecontrib.shadow4.widgets.gui.ow_light_source import OWLightSource
# # from orangecontrib.syned.widgets.gui.ow_light_source import OWLightSource
# # from orangecontrib.shadow4.widgets.gui.ow_generic_element import G... | PypiClean |
/ConSSL-0.0.1-py3-none-any.whl/CSSL/datamodules/vocdetection_datamodule.py | from typing import Any, Callable, Dict, List, Optional, Tuple, Union
import torch
from pytorch_lightning import LightningDataModule
from torch.utils.data import DataLoader
from CSSL.utils import _TORCHVISION_AVAILABLE
from CSSL.utils.warnings import warn_missing_pkg
if _TORCHVISION_AVAILABLE:
from torchvision im... | PypiClean |
/Eskapade_Spark-1.0.0-py3-none-any.whl/eskapadespark/links/sparkhister.py | import numpy as np
from eskapade import process_manager, StatusCode, DataStore, Link
class SparkHister(Link):
"""Defines the content of link SparkHister."""
# TODO: Fix class docstring.
def __init__(self, name='HiveHister'):
"""Initialize link instance.
Store the configuration of link ... | PypiClean |
/Canto-0.9.8.tar.gz/Canto-0.9.8/canto_next/config.py |
#Canto - RSS reader backend
# Copyright (C) 2016 Jack Miller <jack@codezen.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .locks import feed_lock, config_lock, ... | PypiClean |
/Chula-0.13.3.tar.gz/Chula-0.13.3/chula/pager.py | class Pager(list):
def __init__(self, offset, recordcount, limit=8, visiblepages=19):
"""
Create a new pager
@param offset: 0 based representation of what to offset/skip by
@type offset: Integer
@param recordcount: 1 based representation of records available
@type re... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/Variables.py | from abc import abstractmethod
from nuitka.__past__ import getMetaClassBase, iterItems
from nuitka.nodes.shapes.BuiltinTypeShapes import tshape_dict
from nuitka.nodes.shapes.StandardShapes import tshape_unknown
from nuitka.utils import Utils
from nuitka.utils.InstanceCounters import (
counted_del,
counted_init... | PypiClean |
/AWAKE_ANALYSIS_TOOLS-0.0.2-py3-none-any.whl/analyses/frame_analysis.py | import numpy as np
import scipy.signal as sig
from scipy.optimize import curve_fit
from numpy.fft import fft
''' Class for analyzing images '''
class FrameAna(object):
def __init__(self,frame=[],x_ax=[],y_ax=[],roi=[]):
self.init_frame = frame
self.init_xax = x_ax
self.init_yax = y_ax
... | PypiClean |
/Choco-1.0.5.tar.gz/Choco-1.0.5/choco/runtime.py | from choco import errors, util, compat
from choco.compat import compat_builtins
import sys
class Context(object):
"""Provides runtime namespace, output buffer, and various
callstacks for templates.
See :ref:`runtime_toplevel` for detail on the usage of
:class:`.Context`.
"""
def __init__(... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/wide-align/README.md | wide-align
----------
A wide-character aware text alignment function for use in terminals / on the
console.
### Usage
```
var align = require('wide-align')
// Note that if you view this on a unicode console, all of the slashes are
// aligned. This is because on a console, all narrow characters are
// an en wide and... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/place_group_digest_area_ranking_child.py |
from msrest.serialization import Model
class PlaceGroupDigestAreaRankingChild(Model):
"""PlaceGroupDigestAreaRankingChild.
:param cost: The cost for this place
:type cost: float
:param use: The use for this place
:type use: float
:param value: The benchmark value for this place
:type val... | PypiClean |
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/RevitSharedParameterData.py |
from IFamilyData import IFamilyData
import IFamilyData as IFamData
import Utility as util
import RevitSharedParameters as rSharedPara
# import Autodesk
import Autodesk.Revit.DB as rdb
PARAMETER_GUID = 'parameterGUID'
PARAMETER_NAME = 'parameterName'
PARAMETER_ID = 'parameterId'
class SharedParameterData(IFamily... | PypiClean |
/Cad_usd_forecast_model-0.0.1.tar.gz/Cad_usd_forecast_model-0.0.1/README.md | This package contains the pipeline of the ML model - forecast_model, the requirements, tests as well as other set up files.
You can install this package and use the forecast_model to predict the future price of CAD-USD exchange.
Find below the description of the different components & their respective uses:
A. forec... | PypiClean |
/2vyper-0.3.0.tar.gz/2vyper-0.3.0/src/twovyper/ast/arithmetic.py | from twovyper.utils import Subscriptable
def sign(a: int) -> int:
if a > 0:
return 1
elif a < 0:
return -1
else:
return 0
def div(a: int, b: int) -> int:
"""
Truncating division of two integers.
"""
return sign(a) * sign(b) * (abs(a) // abs(b))
def mod(a: int, b... | PypiClean |
/MutagenTagWrapper-0.2.0.tar.gz/MutagenTagWrapper-0.2.0/src/tagwrapper/monkeysaudio.py | from __future__ import annotations
from copy import deepcopy as dp
from typing import Type
from mutagen import apev2, flac
from mutagen import monkeysaudio
from .common import TagWrapper
from .util import get_extension_from_data, mkpicture
__all__ = ['MonkeysAudio']
class MonkeysAudio(TagWrapper):
@property
... | PypiClean |
/NNGT-2.7.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl/nngt/analysis/clustering.py | import numpy as np
import nngt
from nngt.lib import nonstring_container
from nngt.lib.graph_helpers import _get_matrices
__all__ = [
"global_clustering",
"global_clustering_binary_undirected",
"local_closure",
"local_clustering",
"local_clustering_binary_undirected",
"triplet_count",
"tri... | PypiClean |
/AutoDiffX-0.2.tar.gz/AutoDiffX-0.2/ad/ad.py | import numpy as np
__all__ = ['Expression', 'Variable', 'Constant']
class Expression(object):
'''Base expression class that represents anything in our computational
graph. Everything should be one of these.'''
def __init__(self, grad=False):
self.grad = grad
self.children = []
sel... | PypiClean |
/DamPy-0.12.9.tar.gz/DamPy-0.12.9/dampy/lib/Assets.py |
import requests, json
from requests.auth import HTTPBasicAuth
import logging
import csv, ast
import hashlib
from dampy.lib.Config import *
from dampy.lib.Util import *
from dampy.lib.Env import Env
class Assets:
'''Class abstracting the DAM operations '''
def __init__(self, conn):
'''
Initi... | PypiClean |
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/sal/Container.py | import json
from io import BytesIO
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class Containers:
def __init__(self, node):
self.node = node
def list(self):
containers = []
for container in self.node.client.container.list().values():
... | PypiClean |
/Feature_Format-0.1.tar.gz/Feature_Format-0.1/Feature_Format/Feature_Format.py | if __name__ == "__main__":
# !/usr/bin/python
"""
A general tool for converting data from the
dictionary format to an (n x k) python list that's
ready for training an sklearn algorithm
n--no. of key-value pairs in dictonary
k--no. of features being extracted
di... | PypiClean |
/OERPLib-0.8.4.tar.gz/OERPLib-0.8.4/oerplib/rpc/xmlrpclib_custom.py |
import xmlrpclib
import httplib
import socket
import sys
from urlparse import urlparse
# Defined later following the version of Python used
TimeoutTransport = None
TimeoutSafeTransport = None
class TimeoutServerProxy(xmlrpclib.ServerProxy):
"""xmlrpclib.ServerProxy overload to manage the timeout of the socket... | PypiClean |
/IneryPy-0.1.tar.gz/IneryPy-0.1/api/types.py | import datetime as dt
import pytz
from api.utils import *
import json
import binascii
import struct
import six
import colander
from colander import Invalid
from collections import OrderedDict
from api.utils import *
from api.types import *
from api.keys import *
class BaseSchema(colander.SchemaNode):
required =... | PypiClean |
/HoleCardHandicapper-1.2.1.tar.gz/HoleCardHandicapper-1.2.1/holecardhandicapper/model/utils.py | import os
import csv
from holecardhandicapper.model.const import PREFLOP, FLOP, TURN, RIVER
class Utils:
@classmethod
def build_preflop_winrate_table(self):
fpath = self.get_preflop_winrate_data_path()
table = [[0 for j in range(53)] for i in range(53)]
with open(fpath, "rb") as f:
reader = csv.... | PypiClean |
/HiveNAS-0.1.5-py3-none-any.whl/config/params.py | import sys
sys.path.append('..')
import os
import yaml
from utils import FileHandler
from functools import partial
from tensorflow.keras.optimizers import RMSprop, Adam
from tensorflow.keras.layers import Conv2D, Flatten, MaxPooling2D
from tensorflow.keras.layers import SeparableConv2D, Dense, Dropout
from tensorflow.... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/halley_life_table.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 halley_life_table(path):
"""Halley's Life Table
In 1693 the famous English astronomer Edmo... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/utils/lorem_ipsum.py | import random
COMMON_P = (
'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod '
'tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim '
'veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea '
'commodo consequat. Duis aute irure dolor in reprehen... | PypiClean |
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/reporting/mongodb.py |
import gridfs
import os
from cuckoo.common.abstracts import Report
from cuckoo.common.exceptions import CuckooReportError
from cuckoo.common.mongo import mongo
from cuckoo.common.objects import File
class MongoDB(Report):
"""Stores report in MongoDB."""
order = 2
# Mongo schema version, used for data mi... | PypiClean |
/Audit-Alembic-0.1.0.tar.gz/Audit-Alembic-0.1.0/README.rst | ========
Overview
========
.. start-badges
.. list-table::
:stub-columns: 1
* - docs
- |docs|
* - tests
- | |travis| |appveyor| |requires|
| |codecov|
* - package
- | |version| |wheel| |supported-versions| |supported-implementations|
| |commits-since|
.. |docs| imag... | PypiClean |
/CTFDump-0.3.0.tar.gz/CTFDump-0.3.0/CTFDump.py | import json
import re
import os
import sys
import codecs
import logging
from os import path
from getpass import getpass
from requests import Session
from bs4 import BeautifulSoup
from requests.utils import CaseInsensitiveDict
from urllib.parse import urlparse, urljoin
from argparse import ArgumentParser, ArgumentDefaul... | PypiClean |
/HalRing-2.0.4-py3-none-any.whl/halring/crypto/halring_crypt.py | import base64
# from crypto.Cipher import AES
from crypto.Cipher import AES
'''
Crypt Util
Author: rzzhou
'''
class CryptUtil(object):
"""
AES加解密
"""
# 密钥(key), 偏移量(vi)
def __init__(self, args=None):
self.BLOCK_SIZE = 16
self.pad = lambda s: s + (self.BLOCK_SIZE - len(s)... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.