id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/crm/model/lead_endpoint_request.py | import re # noqa: F401
import sys # noqa: F401
from typing import (
Optional,
Union,
List,
Dict,
)
from MergePythonSDK.shared.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
OpenApiModel,
change_keys_js_to_python,... | PypiClean |
/DendroPy_calver-2023.330.2-py3-none-any.whl/dendropy/model/protractedspeciation.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 |
/MindYourNeighbors-1.0.0.tar.gz/MindYourNeighbors-1.0.0/README.md | # MindYourNeighbors
Launching scripts depending on you direct neighbors
[](https://travis-ci.org/jaesivsm/MindYourNeighbors) [](htt... | PypiClean |
/CaMo-0.0.5-py3-none-any.whl/camo/structure/linear_scm.py | from typing import Any, Dict, Iterable, Optional, Tuple
import numpy as np
import pandas as pd
from .causal_model import CausalModel
class LinearSCM(CausalModel):
_Beta: pd.DataFrame
_Gamma: pd.DataFrame
_Do: pd.Series
def __init__(
self,
V: Optional[Iterable[str]] = None,
... | PypiClean |
/Blend-0.1.5.tar.gz/Blend-0.1.5/README.rst | =====
Blend
=====
Merge, analyze, and optimize client-side assets for web applications and static web sites.
Example
=======
Given the following directory structure::
project
lib
jquery-1.7.2.min.js
src
app.js
components
menu.js
common
helpers.js
... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_cy-gb.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DAY": [
"Dydd Sul",
"Dy... | PypiClean |
/HEBO-0.3.2-py3-none-any.whl/hebo/models/nn/eac/eac_ensemble.py |
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the MIT License ... | PypiClean |
/morelia-0.9.2-py3-none-any.whl/morelia/grammar.py | import copy
import itertools
import re
from abc import ABC, abstractmethod
from typing import Iterable, Type
from morelia.exceptions import MissingStepError
from morelia.i18n import TRANSLATIONS
PLACEHOLDER_RE = re.compile(r"\<(\w+)\>")
class Visitor(ABC): # pragma: nocover
@abstractmethod
def visit_featur... | PypiClean |
/CallFlow-1.3.0.tar.gz/CallFlow-1.3.0/callflow/utils/logger.py |
import logging
import colorlog
from logging import getLogger as get_logger # noqa
# ------------------------------------------------------------------------------
LOG_FMT = (
"%(asctime)s - %(name)s:%(funcName)s:%(lineno)s - %(levelname)s - %(message)s"
)
LOG_COLORS = {
"DEBUG": "cyan",
"INFO": "green",... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/web-animations-js/docs/examples.md | #Examples of using Web Animations
Property indexed keyframes syntax
---------------------------------
- Each CSS property specifies its keyframe values as a list, different properties may have differently sized lists.
- The `easing` property applies its timing function to all keyframes.
[**Live demo**](http://jsbin.c... | PypiClean |
/Hcl.py-0.8.2.tar.gz/Hcl.py-0.8.2/hcl/src/exceptions.py | class UnsupportedService(Exception):
"""
- **API Code** : 100
- **API Message** : Unsupported service. Your client may be out of date. Please update it to the latest version.
- **API String** : ``Unknown String``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
cla... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/data/GoogleSearchStore.js | if(!dojo._hasResource["dojox.data.GoogleSearchStore"]){
dojo._hasResource["dojox.data.GoogleSearchStore"]=true;
dojo.provide("dojox.data.GoogleSearchStore");
dojo.provide("dojox.data.GoogleWebSearchStore");
dojo.provide("dojox.data.GoogleBlogSearchStore");
dojo.provide("dojox.data.GoogleLocalSearchStore");
dojo.provide... | PypiClean |
/NanoSV-1.2.4.tar.gz/NanoSV-1.2.4/nanosv/utils/phasing.py | from utils import parse_breakpoints as breakpoint
from utils import parse_reads as read
from utils import parse_bam as bam
from utils import create_vcf as c_vcf
import NanoSV
import random
matrix = []
def make_matrix(sv_id, windows):
"""
Create matrix of positions and reads with their ref/alt/- as variable. Pa... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/examples/benchmark_problems/scripts/synth_sas.py | import os
import time
import re
import argparse
import numpy as np
from numpy.random import default_rng
from scipy.optimize import curve_fit
import h5py
import matplotlib.pyplot as plt
parser = argparse.ArgumentParser()
parser.add_argument(
"-f",
"--folder",
help="The folder containing the sasmodels"
... | PypiClean |
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/apex/apex/contrib/multihead_attn/self_multihead_attn.py | import math
import torch
from torch import nn
from torch.nn import Parameter
import torch.nn.functional as F
from .self_multihead_attn_func import self_attn_func
from .fast_self_multihead_attn_func import fast_self_attn_func
from .fast_self_multihead_attn_norm_add_func import fast_self_attn_nor... | PypiClean |
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/methods/utilities/run.py |
import asyncio
import inspect
import pyrogram
from pyrogram.methods.utilities.idle import idle
class Run:
def run(
self: "pyrogram.Client",
coroutine=None
):
"""Start the client, idle the main script and finally stop the client.
When calling this method without any argument ... | PypiClean |
/Flask-B3-0.0.7.tar.gz/Flask-B3-0.0.7/README.md | [](https://travis-ci.org/davidcarboni/Flask-B3)
# Flask B3
Implements B3 propagation for Python/Flask.
Does not implement communication with a Zipkin server.
## B3
B3 is used by [Zipkin](http://zipkin.io/) for building distributed trace ... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/tailwindcss/lib/lib/content.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
parseCandidateFiles: ()=>parseCandidateFiles,
resolvedChang... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/lang/vi.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['vi']={"editor":"Bộ soạn thảo văn bản có định dạng","editorPanel":"Bảng điều khiển Rich Text Editor","common":{"editorHelp":"Nhấn ALT + 0 để được giúp đỡ","brows... | PypiClean |
/dipex-4.54.5.tar.gz/dipex-4.54.5/integrations/SD_Lon/sdlon/main.py | import asyncio
import enum
from typing import Iterable
from contextlib import contextmanager
from functools import partial
from fastapi import FastAPI
from prometheus_fastapi_instrumentator import Instrumentator
from prometheus_client import Enum
from prometheus_client import Gauge
from integrations.rundb.db_overview ... | PypiClean |
/Electrum-Zcash-Random-Fork-3.1.3b5.tar.gz/Electrum-Zcash-Random-Fork-3.1.3b5/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 |
/KeralaPyApiV2-2.0.2020.tar.gz/KeralaPyApiV2-2.0.2020/pyrogram/client/methods/chats/kick_chat_member.py |
from typing import Union
import pyrogram
from pyrogram.api import functions, types
from ...ext import BaseClient
class KickChatMember(BaseClient):
async def kick_chat_member(
self,
chat_id: Union[int, str],
user_id: Union[int, str],
until_date: int = 0
) -> Union["pyrogram.Me... | PypiClean |
/GTW-1.2.6.tar.gz/GTW-1.2.6/_RST/_TOP/_elFinder/Tag_Cloud_Driver.py |
from __future__ import absolute_import, division, print_function, unicode_literals
from _GTW import GTW
from _MOM import MOM
from _TFL import TFL
from _GTW._RST._TOP._elFinder import elFinder
from _MOM.import_MOM import Q
fr... | PypiClean |
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/doc/quickstart/find_data.rst | .. _findingdata:
**********
Input data
**********
Overview
========
Data discovery and retrieval is the first step in any evaluation process;
ESMValTool uses a `semi-automated` data finding mechanism with inputs from both
the user configuration file and the recipe file: this means that the user will
have to provide t... | PypiClean |
/ISY994v5-0.9.7.tar.gz/ISY994v5-0.9.7/isy994/items/devices/insteon/device_insteon_dimmer.py |
from ..common.device_dimmer import Device_Dimmer
from .device_insteon_base import Device_Insteon_Base
paddle_events = {"DON", "DON3", "DON4", "DON5", "DOF", "DOF3", "DOF4", "DOF5", "DIM", "BRT", "DFON", "DFOF", "FDUP", "FDDOWN", "FDSTOP"}
class Device_Insteon_Dimmer(Device_Dimmer, Device_Insteon_Base):
def __i... | PypiClean |
/Exam2excel_converter-0.0.2-py3-none-any.whl/exam2excel_converter.py | import re
import sys
import pandas as pd
from openpyxl import Workbook
# Class object question
class Question:
def __init__(self, statement, level, option_a, option_b, option_c, option_d,instruction , answer):
self.statement = statement
self.level = level
self.option_a = option_a
se... | PypiClean |
/ISAMBARD-2.3.1.tar.gz/ISAMBARD-2.3.1/src/isambard/optimisation/mmc_optimizer.py |
import copy
import enum
import math
import random
import sys
import numpy
def float_f(f):
"""Formats a float for printing to std out."""
return '{:.0f}'.format(f)
class MMCParameterType(enum.Enum):
"""Defines the types of parameters that can be used for Monte Carlo."""
STATIC_VALUE = 1
DISCRET... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Format/GML.js | * @requires OpenLayers/Format/XML.js
* @requires OpenLayers/Feature/Vector.js
* @requires OpenLayers/Geometry/Point.js
* @requires OpenLayers/Geometry/MultiPoint.js
* @requires OpenLayers/Geometry/LineString.js
* @requires OpenLayers/Geometry/MultiLineString.js
* @requires OpenLayers/Geometry/Polygon.js
* @requ... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/enhanced/nls/ro/Filter.js | define(
"dojox/grid/enhanced/nls/ro/Filter", //begin v1.x content
({
"clearFilterDialogTitle": "Ştergere filtru",
"filterDefDialogTitle": "Filtru",
"ruleTitleTemplate": "Regulă ${0}",
"conditionEqual": "egal",
"conditionNotEqual": "nu este egal",
"conditionLess": "este mai mic decât",
"conditionLessEqual": "ma... | PypiClean |
/Deeplodocus-0.3.0-py3-none-any.whl/deeplodocus/utils/generic_utils.py | import os
from deeplodocus.utils import get_main_path
import re
import pkgutil
import random
import string
from typing import List
from typing import Union
from typing import Optional
# Import deeplodocus flags
from deeplodocus.flags.load_as import *
from deeplodocus.flags.ext import *
from deeplodocus.flags.notif im... | PypiClean |
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/View/Controls/DriverPathDialog.py | import json
import os
import logging
from pathlib import Path
from tkinter import Toplevel, Label, Button, Entry, messagebox
from LabExT.Utils import get_configuration_file_path
from LabExT.View.Controls.CustomFrame import CustomFrame
class DriverPathDialog(Toplevel):
"""
Dialog to change a driver path to b... | PypiClean |
/Climind-0.1-py3-none-any.whl/climind/readers/reader_grace.py |
from pathlib import Path
import copy
import numpy as np
import pandas as pd
from typing import List
import climind.data_types.timeseries as ts
from climind.readers.generic_reader import get_last_modified_time
from climind.data_manager.metadata import CombinedMetadata
def find_latest(out_dir: Path, filename_with_wild... | PypiClean |
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/core/__init__.py | from JumpScale import j
import os
def _setup_stacktrace_hook():
'''Set up SIGUSR2 signal handler which dumps stack traces of all threads'''
try:
import signal
except ImportError:
# No signal support on current platform, ignore
return
sig = signal.SIGUSR2
def stderr():
... | PypiClean |
/EmbyPy-0.6.6.4.tar.gz/EmbyPy-0.6.6.4/embypy/objects/videos.py | from embypy.objects.object import EmbyObject
from embypy.utils.asyncio import async_func
# Generic class
class Video(EmbyObject):
'''Class representing generic emby video objects
Parameters
----------
object_dict : dict
same as for `EmbyObject`
connector : embypy.utils.connector.Conne... | PypiClean |
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/metrics/metric_collection.py |
__author__ = "Christian Heider Nielsen"
from typing import Sequence, MutableMapping, Any
from draugr.metrics.metric_aggregator import MetricAggregator, MEASURES
__all__ = ["MetricCollection"]
class MetricCollection(dict):
"""description"""
def __init__(
self,
metrics=("signal", "length"),... | PypiClean |
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/input/spikegeneratorgroup.py | import numpy as np
from brian2.core.functions import timestep
from brian2.core.spikesource import SpikeSource
from brian2.core.variables import Variables
from brian2.groups.group import CodeRunner, Group
from brian2.units.allunits import second
from brian2.units.fundamentalunits import Quantity, check_units
from brian... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/controllers/bumps_controller.py | from bumps.fitters import fit as bumpsFit
from bumps.names import Curve, FitProblem, PoissonCurve
import numpy as np
from fitbenchmarking.controllers.base_controller import Controller
from fitbenchmarking.cost_func.cost_func_factory import create_cost_func
from fitbenchmarking.utils.exceptions import MaxRuntimeError
... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/jquery/src/traversing/findFilter.js | define( [
"../core",
"../var/indexOf",
"../var/isFunction",
"./var/rneedsContext",
"../selector"
], function( jQuery, indexOf, isFunction, rneedsContext ) {
"use strict";
// Implement the identical functionality for filter and not
function winnow( elements, qualifier, not ) {
if ( isFunction( qualifier ) ) {
... | PypiClean |
/DTMC/spatialModel/StrongInfectious/StrongInfSEIRV.py | import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from Eir.utility import dist, Person, randEvent
from ..Hub.HubSEIRV import HubSEIRV
class StrongInfSEIRV(HubSEIRV):
def __init__(self, S0: int, E0: int, I0: int, R0: int, V0:int, pss: float, rho: float,
gamma: float, eta: float, ... | PypiClean |
/DeepCell-0.12.9.tar.gz/DeepCell-0.12.9/deepcell/running.py | import numpy as np
from tensorflow.keras import backend as K
from tensorflow.keras.models import Model
from deepcell.utils.data_utils import trim_padding
def get_cropped_input_shape(images,
num_crops=4,
receptive_field=61,
data_forma... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/eclib/_filetree.py | __author__ = "Cody Precord <cprecord@editra.org>"
__svnid__ = "$Id: _filetree.py 73347 2013-01-05 19:58:31Z CJP $"
__revision__ = "$Revision: 73347 $"
__all__ = ['FileTree',]
#-----------------------------------------------------------------------------#
# Imports
import sys
import os
import types
import wx
#-------... | PypiClean |
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Chronics/fromNPY.py |
from typing import Optional, Union
import numpy as np
import hashlib
from datetime import datetime, timedelta
import grid2op
from grid2op.dtypes import dt_int
from grid2op.Chronics.gridValue import GridValue
from grid2op.Exceptions import ChronicsError
class FromNPY(GridValue):
"""
This class allows to gene... | PypiClean |
/NehorayRapid1-0.0.1-py3-none-any.whl/mmedit/models/losses/feature_loss.py | import torch
import torch.nn as nn
from mmcv.runner import load_checkpoint
from mmedit.models.components.discriminators import LightCNN
from mmedit.utils import get_root_logger
from ..registry import LOSSES
class LightCNNFeature(nn.Module):
"""Feature of LightCNN.
It is used to train DICGAN.
"""
de... | PypiClean |
/AssertionLib-3.2.2-py3-none-any.whl/assertionlib/dataclass.py |
import textwrap
import copy
from abc import ABCMeta
from functools import wraps
from threading import get_ident
from typing import (
Any, Dict, Set, Iterable, Tuple, ClassVar, NoReturn, cast, Iterator, Union,
Callable, Optional, Mapping, TypeVar, Type
)
__all__ = ['AbstractDataClass']
T = TypeVar('T')
TT = T... | PypiClean |
/32blit-0.7.3-py3-none-any.whl/ttblit/core/struct.py | import binascii
from construct import (Adapter, Bytes, Checksum, Const, GreedyBytes, Int8ul,
Int16ul, Int32ub, Int32ul, Optional, PaddedString,
Prefixed, PrefixedArray, RawCopy, Rebuild, Struct, len_,
this)
from .compression import ImageCompressor
... | PypiClean |
/DrQueueIPython-0.0.1.tar.gz/DrQueueIPython-0.0.1/DrQueue/__init__.py | import platform
import os
import sys
import smtplib
import json
from email.mime.text import MIMEText
from .client import Client
from .job import Job
from .computer import Computer
from .computer_pool import ComputerPool
supported_renderers = ['3delight', '3dsmax', 'aftereffects', 'aqsis', 'blender', 'cinema4d', 'gene... | PypiClean |
/DB13-898998998.tar.gz/DB13-898998998/src/DIRACbenchmark/dirac_benchmark.py | from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import os
import sys
import random
import multiprocessing
VERSION = "1.0.0 DB12"
if sys.version_info[0] >= 3:
#pylint: disable = E, W, R, C
long = int
xrange = range
import urllib.request
... | PypiClean |
/Mopidy-Grooveshark-1.0.4.tar.gz/Mopidy-Grooveshark-1.0.4/mopidy_grooveshark/backend.py | from __future__ import unicode_literals
import pykka
from urlparse import urlparse
from multiprocessing.pool import ThreadPool
from mopidy import backend
from mopidy.models import Track
from mopidy.models import Album
from mopidy.models import SearchResult
from grooveshark import Client
from mopidy_grooveshark impo... | PypiClean |
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/management/commands/createdb.py | from socket import gethostname
from django.contrib.auth import get_user_model
from django.contrib.sites.models import Site
from django.core.management import call_command
from django.core.management.base import BaseCommand, CommandError
from django.db import connection
from mezzanine.conf import settings
from mezzani... | PypiClean |
/Flask-Monitoring-1.1.2.tar.gz/Flask-Monitoring-1.1.2/flask_monitoringdashboard/core/reporting/questions/average_latency.py | from flask_monitoringdashboard.core.reporting.mean_permutation_test import mean_permutation_test
import numpy as np
from flask_monitoringdashboard.core.reporting.questions.report_question import Answer, ReportQuestion
from flask_monitoringdashboard.database import session_scope
from flask_monitoringdashboard.database... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/detectors/kd_one_stage.py | from pathlib import Path
import mmcv
import torch
from mmcv.runner import load_checkpoint
from .. import build_detector
from ..builder import DETECTORS
from .single_stage import SingleStageDetector
@DETECTORS.register_module()
class KnowledgeDistillationSingleStageDetector(SingleStageDetector):
r"""Implementati... | PypiClean |
/Airfoil_Optimizer-0.9.0-py3-none-any.whl/af_opt/problem.py | import numpy as np
import openmdao.api as om
import sys
import time
from datetime import timedelta
from differential_evolution import DifferentialEvolutionDriver
from . import rank, run_parallel
from .components.airfoil import cst2coords
from .model import AfOptModel
from .recorders import PopulationReporter
def ge... | PypiClean |
/ExifReader-0.1.1-py3-none-any.whl/exifreader/__init__.py | from .exif_log import get_logger
from .classes import *
from .tags import *
from .utils import ord_
from .heic import HEICExifFinder
__version__ = '0.1.1'
logger = get_logger()
def increment_base(data, base):
return ord_(data[base + 2]) * 256 + ord_(data[base + 3]) + 2
def process_file(f, stop_tag=DEFAULT_STO... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/nonbreaking/plugin.js | (function () {
'use strict';
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
var getKeyboardSpaces = function (editor) {
var spaces = editor.getParam('nonbreaking_force_tab', 0);
if (typeof spaces === 'boolean') {
return spaces === true ? 3 : 0;
} else {
... | PypiClean |
/ENCODEQueryTools-0.1.1.tar.gz/ENCODEQueryTools-0.1.1/docs/html/_static/sidebar.js | $(function() {
// global elements used by the functions.
// the 'sidebarbutton' element is defined as global after its
// creation, in the add_sidebar_button function
var bodywrapper = $('.bodywrapper');
var sidebar = $('.sphinxsidebar');
var sidebarwrapper = $('.sphinxsidebarwrapper')... | PypiClean |
/AWS-Manager-0.4.tar.gz/AWS-Manager-0.4/aws_manager/functions/functions.py | import subprocess
import aws_manager.settings as settings
import distutils.spawn
def read_file_to_array(path_to_file):
"""
read a file into an array
:param str path_to_file: full path to array
:return:
"""
try:
file_content = open(path_to_file);
except IOError:
return Fals... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/markdown/__init__.py | import io
import re
import sys
from html.entities import name2codepoint
from xml.dom.minidom import parseString
from markdown import markdownFromFile
MARKDOWN_ALL_ESCAPED_CHARS = (
'\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#',
'+', '-', '.', '!',
)
MARKDOWN_SPECIAL_CHARS = re.escape(r''.join(... | PypiClean |
/LeadsRx_Python_Client-0.0.9.tar.gz/LeadsRx_Python_Client-0.0.9/README.md | # LeadsRX Python Client
A python client for querying the LeadsRX API. Created in my spare time to help out our analytics team.
https://developers.leadsrx.com/reference#conversions
#### Written by Josh Hatfield @Semetrical
#### About Semetrical
Semetrical are a global top 40 digital agency offering a full suite o... | PypiClean |
/ElectroMagneticPython-2.1.4-py3-none-any.whl/EMpy/modesolvers/FD.py | import numpy
import scipy
import scipy.optimize
import EMpy.utils
from EMpy.modesolvers.interface import Mode, ModeSolver
class SVFDModeSolver(ModeSolver):
"""
This function calculates the modes of a dielectric waveguide
using the semivectorial finite difference method.
It is slightly faster than th... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/plugins/find/dialogs/find.js | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function(){var a;function b(i){return i.type==CKEDITOR.NODE_TEXT&&i.getLength()>0&&(!a||!i.isReadOnly());};function c(i){return!(i.type==CKEDITOR.NODE_ELEMENT&&i.isBlockBou... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/lang/pl.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['pl']={"editor":"Edytor tekstu sformatowanego","editorPanel":"Panel edytora tekstu sformatowanego","common":{"editorHelp":"W celu uzyskania pomocy naciśnij ALT ... | PypiClean |
/EvtPlugins-0.99.34.tar.gz/EvtPlugins-0.99.34/opensesame_plugins/VAS2/VAS2.py | from libopensesame.py3compat import *
from libopensesame.item import item
from libqtopensesame.items.qtautoplugin import qtautoplugin
from openexp.canvas import Canvas, canvas
from libopensesame.oslogging import oslogger
from openexp.canvas_elements import (
Line,
Rect,
Polygon,
Ellipse,
Image,
Gabor,
NoisePatch... | PypiClean |
/MarkdownTools-1.0.1.tar.gz/MarkdownTools-1.0.1/ez_setup.py | import os
import shutil
import sys
import tempfile
import zipfile
import optparse
import subprocess
import platform
import textwrap
import contextlib
from distutils import log
try:
from site import USER_SITE
except ImportError:
USER_SITE = None
DEFAULT_VERSION = "3.1"
DEFAULT_URL = "https://pypi.python.org/p... | PypiClean |
/BEATAALU-0.13.1.tar.gz/BEATAALU-0.13.1/econml/grf/_base_grftree.py |
import numpy as np
from ._criterion import LinearMomentGRFCriterionMSE, LinearMomentGRFCriterion,LinearMomentGRFCriterionBEAT
from ..tree import BaseTree
from sklearn.model_selection import train_test_split
from sklearn.utils import check_array
from sklearn.utils import check_random_state
from sklearn.utils.validation... | PypiClean |
/GSAS-II-WONDER_win-1.0.1.tar.gz/GSAS-II-WONDER_win-1.0.1/GSAS-II-WONDER/GSASIIstrMath.py | ########### SVN repository information ###################
# $Date: 2019-09-24 09:32:12 -0500 (Tue, 24 Sep 2019) $
# $Author: vondreele $
# $Revision: 4158 $
# $URL: https://subversion.xray.aps.anl.gov/pyGSAS/trunk/GSASIIstrMath.py $
# $Id: GSASIIstrMath.py 4158 2019-09-24 14:32:12Z vondreele $
########### SVN reposito... | PypiClean |
/OBP_reliability_pillar_u1-0.2.1-py3-none-any.whl/OBP_reliability_pillar_u1/dynamodb/dynamodb_pitr_enabled.py | import logging
from botocore.exceptions import ClientError
from OBP_reliability_pillar_u1.dynamodb.utils import list_dynamodb_tables
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger()
# Checks compliance for dynamodb-pitr-enabled
def dynamodb_pitr_enabled(self, regions) -> dict:
"""
:para... | PypiClean |
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/dReportWriter.py | import dabo
from dabo.dLocalize import _
from dabo.lib.reportWriter import ReportWriter
from dabo.dObject import dObject
import dabo.dEvents as dEvents
# dReportWriter is simply a raw ReportWriter/dObject mixin:
class dReportWriter(dObject, ReportWriter):
"""The Dabo Report Writer Engine, which mixes a data cursor an... | PypiClean |
/ConStrain-0.3.0.tar.gz/ConStrain-0.3.0/versioneer.py | # pylint:disable=invalid-name,import-outside-toplevel,missing-function-docstring
# pylint:disable=missing-class-docstring,too-many-branches,too-many-statements
# pylint:disable=raise-missing-from,too-many-lines,too-many-locals,import-error
# pylint:disable=too-few-public-methods,redefined-outer-name,consider-using-with... | PypiClean |
/ABR-0.0.10.tar.gz/ABR-0.0.10/abr/app.py | import logging
logging.basicConfig(level=logging.INFO)
import argparse
from collections import Counter
from pathlib import Path
from matplotlib import pylab as pl
from numpy import random
import pandas as pd
from scipy import stats
from atom.api import Bool, Typed, Str
import enaml
from enaml.application import defe... | PypiClean |
/GenomeTreeTk-0.1.6.tar.gz/GenomeTreeTk-0.1.6/genometreetk/infer_workflow.py |
import os
import logging
from biolib.common import make_sure_path_exists
from biolib.misc.time_keeper import TimeKeeper
from biolib.external.hmmer import HmmModelParser
from biolib.external.fasttree import FastTree
from genometreetk.common import (read_genome_id_file,
read_genome_... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_wal.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/livescript/livescript.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 |
/Electrum-Zcash-Random-Fork-3.1.3b5.tar.gz/Electrum-Zcash-Random-Fork-3.1.3b5/lib/contacts.py | import re
import dns
from dns.exception import DNSException
import json
import traceback
import sys
from . import bitcoin
from . import dnssec
from .util import export_meta, import_meta, print_error, to_string
class Contacts(dict):
def __init__(self, storage):
self.storage = storage
d = self.sto... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/geometry/shapes/torus.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from math import cos
from math import pi
from math import sin
from compas.geometry import matrix_from_frame
from compas.geometry import transform_points
from compas.geometry import Frame
from compas.geometry i... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_blender/uninstall.py | import os
import sys
import compas
from compas._os import remove
from compas._os import remove_symlink
from compas._os import rename
import compas_blender
__all__ = ["uninstall"]
def uninstall(blender_path, version=None):
"""Uninstall COMPAS from Blender.
Parameters
----------
blender_path : str
... | PypiClean |
/Flask-PicoCMS-0.0.6.tar.gz/Flask-PicoCMS-0.0.6/README.md | Flask-PicoCMS
=============
Lightweight CMS backend for Flask apps.
Installation
------------
The easiest way to install this is through pip.
```
pip install Flask-PicoCMS
```
Basic example
-------------
Flask code `app.py`
```python
import os
from flask import Flask
from flask_picocms import CMS
basedir = os.pat... | PypiClean |
/Fanery-0.2.5.tar.gz/Fanery-0.2.5/fanery/_service.py | __all__ = ['service', 'static']
from _term import (
Hict, is_str, to_str,
parse_term, parse_json,
to_simple, to_json,
)
from _crypto import (
nacl_box, nacl_sign, nacl_verify,
nacl_nonce, nacl_random, nacl_sha256,
PrivateKey, PublicKey, Box, SigningKey
)
from _autoreload import observe_module
f... | PypiClean |
/Manager-2.0.5.tar.gz/Manager-2.0.5/manager/globals/constants.py | #**********************************************************************************************************************
#*** Future imports.
#**********************************************************************************************************************
from __future__ import unicode_literals
#*****************... | PypiClean |
/kiramibot-0.2.0.tar.gz/kiramibot-0.2.0/kirami/utils/jsondata.py |
import json
from pathlib import Path
from typing import Any, ClassVar
from pydantic import BaseModel, PrivateAttr, root_validator
from typing_extensions import Self
from kirami.config import DATA_DIR
from kirami.exception import FileNotExistError, ReadFileError
class JsonDict(dict[str, Any]):
_file_path: Path
... | PypiClean |
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/loader.py | __all__ = ('Loader', 'LoaderBase', 'ProxyImage')
from kivy import kivy_data_dir
from kivy.logger import Logger
from kivy.clock import Clock
from kivy.cache import Cache
from kivy.core.image import ImageLoader, Image
from kivy.config import Config
from kivy.utils import platform
from collections import deque
from time... | PypiClean |
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/sre/mathmaps/fr/symbols/greek-mathfonts-sans-serif-bold-italic.js | [{"locale":"fr"},{"key":"1D790","mappings":{"default":{"default":"Alpha majuscule en sans empattement italique gras"}},"category":"Lu"},{"key":"1D791","mappings":{"default":{"default":"Bêta majuscule en sans empattement italique gras"}},"category":"Lu"},{"key":"1D792","mappings":{"default":{"default":"Gamma majuscule e... | PypiClean |
/CondConfigParser-1.0.5.tar.gz/CondConfigParser-1.0.5/condconfigparser/parser.py |
# parser.py --- Parser module of CondConfigParser
#
# Copyright (c) 2014, Florent Rougon
# 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 abov... | PypiClean |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/resources/coverages/management/commands/grid.py |
from django.core.management.base import CommandError, BaseCommand
from django.db import transaction
from eoxserver.resources.coverages import models
from eoxserver.resources.coverages.management.commands import (
CommandOutputMixIn, SubParserMixIn
)
class Command(CommandOutputMixIn, SubParserMixIn, BaseCommand)... | PypiClean |
/NewsLookout-2.1.0-py3-none-any.whl/newslookout/plugins/mod_in_gdelt.py |
##########################################################################################################
# File name: mod_in_gdelt.py #
# Application: The NewsLookout Web Scraping Application ... | PypiClean |
/DeepSpectrumLite-1.0.2.tar.gz/DeepSpectrumLite-1.0.2/README.md | 

[](https://badge.fury.io/py/DeepSpectrumLite)
 {
'use strict';
$.fn.fileinput.defaults.theme = 'explorer-fas';
$.fn.fileinputThemes['explorer-fas'] = {
layoutTemplates: {
footer: '<div class="file-details-cell">' +
'<div class="explorer-caption" title="{caption}">{caption}</div> ' + '{size}{progress}' +
... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-fileinput/js/locales/ja.js | (function ($) {
"use strict";
$.fn.fileinputLocales['ja'] = {
fileSingle: 'ファイル',
filePlural: 'ファイル',
browseLabel: 'ファイルを選択 …',
removeLabel: '削除',
removeTitle: '選択したファイルを削除',
cancelLabel: 'キャンセル',
cancelTitle: 'アップロードをキャンセル',
pauseLabel: 'P... | PypiClean |
/Graph_RL-0.1.2.tar.gz/Graph_RL-0.1.2/graph_rl/subtasks/return_maxim_subtask.py | from copy import copy
import numpy as np
from . import Subtask
class ReturnMaximSubtask(Subtask):
"""Subtask is to maximize expected return."""
def __init__(self, name, subtask_spec):
"""Args:
subtask_spec (ReturnMaximSubtaskSpec): Specification of the return maximization subtask.
... | PypiClean |
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/airtest/utils/apkparser/apk.py |
from .axmlprinter import AXMLPrinter
import zipfile
from xml.dom import minidom
class APK:
"""APK manages apk file format"""
def __init__(self, filename):
"""
@param filename: specify the path of the file, or raw data
@param raw: specify (boolean) if the filename is a path or... | PypiClean |
/Hanalytics_python_package-0.3.1.tar.gz/Hanalytics_python_package-0.3.1/hanalytics/hanalytics_keywords_generator/googleAds_keywords.py | import openai
import pandas as pd
"""" use this to test
#Your context and prompt must be as precise as possible. Give every details possible.
# To get "wow" result you can tell GPT to consider itself as a 20 or 30 years experienced person in the field you want.
import googleAds_keywords
context = 'YOUR CONTEXT H... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/migrations/versions/2022-10-14_43c52d23845a_projects.py | from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import text
import mindsdb.interfaces.storage.db as db
# revision identifiers, used by Alembic.
revision = '43c52d23845a'
down_revision = 'cada7d2be947'
branch_labels = None
depends_on = None
def upgrade():
op.create_table(
'project',
... | PypiClean |
/BYOSED-0.0.3-py3-none-any.whl/byosed/perturber_io.py | import numpy as np
import pandas,glob,sncosmo,os,sys,scipy
from scipy.interpolate import interpn,interp1d
from scipy.signal import savgol_filter
from sncosmo.constants import HC_ERG_AA, MODEL_BANDFLUX_SPACING
from sncosmo.utils import integration_grid
from astropy.io import ascii
from astropy.table import Table
import ... | PypiClean |
/ML_APIs-0.0.3.tar.gz/ML_APIs-0.0.3/ML_APIs/local/vision_local.py | from ML_APIs.utils import *
class vision_classifier_local:
def __init__(self, path, model, credentials):
self.path = path
self.model = model
self.credentials = credentials
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = f"{self.credentials}"
client = vision.ImageAnnotator... | PypiClean |
/Flask_Unchained-0.9.0-py3-none-any.whl/flask_unchained/bundles/__init__.py | import importlib
import os
from types import FunctionType
from typing import *
from ..flask_unchained import FlaskUnchained
from ..string_utils import right_replace, slugify, snake_case
from ..unchained import unchained
def _normalize_module_name(module_name):
if module_name.endswith('.bundle'):
return ... | PypiClean |
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/core/clocks.py | __docformat__ = "restructuredtext en"
import numpy as np
from brian2.core.names import Nameable
from brian2.core.variables import Variables
from brian2.groups.group import VariableOwner
from brian2.units.allunits import second
from brian2.units.fundamentalunits import Quantity, check_units
from brian2.utils.logger im... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/backend/static/cubane/backend/tinymce/js/tinymce/plugins/toc/plugin.min.js | !function(){"use strict";var t,e,n=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),r=tinymce.util.Tools.resolve("tinymce.util.I18n"),i=tinymce.util.Tools.resolve("tinymce.util.Tools"),c=function(t){return t.getParam("toc_class","mce-toc")},l=function(t){var e=t.g... | PypiClean |
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/redirect.py | import re # noqa: F401
import sys # noqa: F401
from freeclimb.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,
vali... | PypiClean |
/HEBO-0.3.2-py3-none-any.whl/hebo/models/boosting/catboost.py |
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the MIT License ... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/core/definitions.py |
from __future__ import unicode_literals
from __future__ import absolute_import
import six
import six.moves.cPickle as pickle
import os
import base64
import re
import bisect
from collections import defaultdict
from mathics.core.expression import Expression, Symbol, String, fully_qualified_symbol_name, strip_context... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.