code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
import dash_bootstrap_components as dbc from dash import html, dash_table import pandas as pd from merlion.dashboard.settings import * from merlion.dashboard.utils.plot import plot_timeseries styles = { "json-output": {"overflow-y": "scroll", "height": "calc(90% - 25px)", "border": "thin lightgrey solid"}, "ta...
/salesforce-merlion-2.0.2.tar.gz/salesforce-merlion-2.0.2/merlion/dashboard/pages/utils.py
0.42179
0.174692
utils.py
pypi
import re import datetime import requests from salesforce_reporting.login import Connection BASE_URL = "https://{instance}/services/data/{api_version}/analytics" class Chunky(Connection): """ Uses salesforce_reporting module to extract chunked data by use of a "Time Frame" column in sales force. Requires a S...
/salesforce-reporting-chunked-0.1.7.tar.gz/salesforce-reporting-chunked-0.1.7/salesforce_reporting_chunked/chunky.py
0.690455
0.217088
chunky.py
pypi
class ReportParser: """ Parser with generic functionality for all Report Types (Tabular, Summary, Matrix) Parameters ---------- report: dict, return value of Connection.get_report() """ def __init__(self, report): self.data = report self.type = self.data["reportMetadata"]["r...
/salesforce-reporting-0.1.1.tar.gz/salesforce-reporting-0.1.1/salesforce_reporting/parsers.py
0.928684
0.297993
parsers.py
pypi
import urllib.parse from salesforce_tools.salesforce import SalesforceAPI from enum import Enum from salesforce_tools.bulk_models import JobInfo, JobInfoList, BatchInfo, BatchInfoList, \ OperationEnum, ContentTypeEnum, ContentTypeHeaderEnum, JobTypeEnum, JobStateEnum, BulkAPIError, APIError,\ BulkException from...
/salesforce_tools-0.2.1-py3-none-any.whl/salesforce_tools/bulk.py
0.554109
0.152568
bulk.py
pypi
# salesforce A python connector for Salesforce ## connect ``` from salesforce import Connector conn = Connector(username, password, security_token) ``` ### connect to sandbox ``` from salesforce import Connector conn = Connector(username, password, security_token, subdomain='test') ``` ### optional parameters ```...
/salesforce-0.0.1.tar.gz/salesforce-0.0.1/README.md
0.44553
0.866923
README.md
pypi
from __future__ import unicode_literals, with_statement import csv from datetime import datetime, timedelta try: from cStringIO import StringIO except ImportError: try: from StringIO import StringIO except ImportError: from io import StringIO from itertools import chain import logging impo...
/salesforce_bulk_api-1.2.0.tar.gz/salesforce_bulk_api-1.2.0/salesforce_bulk_api.py
0.715424
0.200714
salesforce_bulk_api.py
pypi
from cmd import Cmd from functools import lru_cache from typing import List from simple_salesforce import Salesforce from tabulate import tabulate import pprint from sfcli.util import bulk_change, bulk_delete, write_results, start_session, strtime, print_error import sys class Cli(Cmd): intro = 'Welcome to the Sa...
/salesforcecli-0.0.12.tar.gz/salesforcecli-0.0.12/sfcli/cli.py
0.51879
0.17971
cli.py
pypi
from dateutil.tz import tzlocal, tzutc from datetime import datetime import logging import numbers import six log = logging.getLogger('salesmachine') def is_naive(dt): """Determines if a given datetime.datetime is naive.""" return dt.tzinfo is None or dt.tzinfo.utcoffset(dt) is None def total_seconds(delta...
/salesmachine-python-1.0.1.tar.gz/salesmachine-python-1.0.1/salesmachine/utils.py
0.743634
0.26182
utils.py
pypi
import re import datetime from typing import Optional from dataclasses import dataclass, field @dataclass class SalesManagoEventData: ''' Class for interfacing with event instances of SalesManago platform. Structure is valid for following API actions: /api/v2/contact/addContactExtEvent ''' ...
/salesmanago_python_api-0.4.tar.gz/salesmanago_python_api-0.4/salesmanago_python_api/data/event.py
0.802981
0.183045
event.py
pypi
import re import datetime from typing import Optional from dataclasses import dataclass, field @dataclass class SalesManagoClientData: ''' Class for interfacing with client instances of SalesManago platform. Structure was valid for following API actions: insert / upsert / update / batchupsert ...
/salesmanago_python_api-0.4.tar.gz/salesmanago_python_api-0.4/salesmanago_python_api/data/client.py
0.793266
0.154249
client.py
pypi
# salespyforce A Python toolset for performing Salesforce API calls <table> <tr> <td>Latest Stable Release</td> <td> <a href='https://pypi.org/project/salespyforce/'> <img alt="PyPI" src="https://img.shields.io/pypi/v/salespyforce"> </a> </td> </t...
/salespyforce-1.2.1.tar.gz/salespyforce-1.2.1/README.md
0.50952
0.944791
README.md
pypi
# Salesvision API Salesvision API provides accurate, reliable and scalable fashion image analysis by endpoints. It includes free public methods and python API client # Fashion analysis Fashion analysis includes recognition of items: - Category - Tags/attributes - Mask - Color ## Category detection The follo...
/salesvision-0.0.3.tar.gz/salesvision-0.0.3/README.md
0.519765
0.925297
README.md
pypi
import torch from collections import OrderedDict from torch.nn import utils, functional as F from torch.optim import Adam from torch.autograd import Variable from torch.backends import cudnn from networks.poolnet import build_model, weights_init import scipy.misc as sm import numpy as np import os import torchvision.ut...
/saliency_detector-0.2.5.tar.gz/saliency_detector-0.2.5/saliency_detector/solver.py
0.675978
0.323086
solver.py
pypi
import os from PIL import Image import cv2 import torch from torch.utils import data from torchvision import transforms from torchvision.transforms import functional as F import numbers import numpy as np import random class ImageDataTrain(data.Dataset): def __init__(self, data_root, data_list): self.sal_r...
/saliency_detector-0.2.5.tar.gz/saliency_detector-0.2.5/saliency_detector/dataset/dataset.py
0.455441
0.354601
dataset.py
pypi
import os from PIL import Image import cv2 import torch from torch.utils import data from torchvision import transforms from torchvision.transforms import functional as F import numbers import numpy as np import random class ImageDataTrain(data.Dataset): def __init__(self, sal_data_root, sal_data_list, edge_data_r...
/saliency_detector-0.2.5.tar.gz/saliency_detector-0.2.5/saliency_detector/dataset/joint_dataset.py
0.466846
0.342242
joint_dataset.py
pypi
import torch.nn as nn import math import torch import numpy as np import torch.nn.functional as F affine_par = True def conv3x3(in_planes, out_planes, stride=1): "3x3 convolution with padding" return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False) cla...
/saliency_detector-0.2.5.tar.gz/saliency_detector-0.2.5/saliency_detector/networks/deeplab_resnet.py
0.942573
0.528959
deeplab_resnet.py
pypi
import torch from torch import nn from torch.nn import init import torch.nn.functional as F import math from torch.autograd import Variable import numpy as np from .deeplab_resnet import resnet50_locate from .vgg import vgg16_locate config_vgg = {'convert': [[128,256,512,512,512],[64,128,256,512,512]], 'deep_pool': ...
/saliency_detector-0.2.5.tar.gz/saliency_detector-0.2.5/saliency_detector/networks/poolnet.py
0.854839
0.364127
poolnet.py
pypi
import torch from torch import nn from torch.nn import init import torch.nn.functional as F import math from torch.autograd import Variable import numpy as np from .deeplab_resnet import resnet50_locate from .vgg import vgg16_locate config_vgg = {'convert': [[128,256,512,512,512],[64,128,256,512,512]], 'deep_pool': ...
/saliency_detector-0.2.5.tar.gz/saliency_detector-0.2.5/saliency_detector/networks/joint_poolnet.py
0.824674
0.388618
joint_poolnet.py
pypi
import torch.nn as nn import math import torch import numpy as np import torch.nn.functional as F # vgg16 def vgg(cfg, i, batch_norm=False): layers = [] in_channels = i stage = 1 for v in cfg: if v == 'M': stage += 1 if stage == 6: layers += [nn.MaxPool2d...
/saliency_detector-0.2.5.tar.gz/saliency_detector-0.2.5/saliency_detector/networks/vgg.py
0.850903
0.40028
vgg.py
pypi
# Saliency Library ## Updates &#x1F534;&nbsp;&nbsp; Now framework-agnostic! [(Example core notebook)](Examples_core.ipynb) &nbsp;&#x1F534; &#x1F517;&nbsp;&nbsp; For further explanation of the methods and more examples of the resulting maps, see our [Github Pages website](https://pair-code.github.io/saliency) &nbsp;&...
/saliency-0.2.0.tar.gz/saliency-0.2.0/README.md
0.815416
0.968856
README.md
pypi
class CastBase: """ Identical to regular dict/list except on instantiation it performs a one-off recursive recasting of all contained items that have a type listed in cast_map to the mapped target type. Also automatically recasts any list or dict instances to CastList and CastDict respectively ...
/salix_containers-0.5.0.tar.gz/salix_containers-0.5.0/salix_containers/casttypes.py
0.763572
0.553083
casttypes.py
pypi
import re from jmespath import functions, search class CustomFunctions(functions.Functions): @functions.signature({'types': ['string']}, {'types': ['string']}) def _func_re_search(self, s, pattern): return re.search(pattern, s) is not None @functions.signature({'types': ['object']}) def _fu...
/salix_jmespath_tools-0.2.0-py3-none-any.whl/salix_jmespath_tools/customfunctions.py
0.611846
0.331972
customfunctions.py
pypi
import numpy as np class TestRunData: def __init__(self): self.test_passed = 0 self.test_failed = 0 self.test_not_run = 0 self.total_steps = 0 self.passed_steps = 0 self.failed_steps = 0 self.data_test = [] def get_test_passed(self): return sel...
/sallust-0.15.13.tar.gz/sallust-0.15.13/Sallust/Tools/TestData.py
0.467818
0.645232
TestData.py
pypi
from fpdf import FPDF class ResultsPDF(FPDF): def set_data(self, data): self.data = data def header(self): title = "Results of Test Run" # Arial bold 15 self.set_font('Arial', size=15) # Calculate width of title and position w = 170 self.set_x((210 - w...
/sallust-0.15.13.tar.gz/sallust-0.15.13/Sallust/Tools/ResultsPDF.py
0.535827
0.280376
ResultsPDF.py
pypi
import tkinter as tk from sallust import Constants class DataTable(tk.Frame): def __init__(self, parent, controller, data=None): tk.Frame.__init__(self, parent) self.controller = controller self.data = data self.configure(bg=Constants.dark_color) self.index_row = 1 ...
/sallust-0.15.13.tar.gz/sallust-0.15.13/Sallust/GUI/DataTable.py
0.448668
0.224725
DataTable.py
pypi
import tkinter as tk import numpy as np import os import matplotlib from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg from matplotlib.figure import Figure from matplotlib.widgets import Slider from sallust.GUI.GraphicsWidgets import TestCaseTable, StepsTable from sallust import Constants class Graphics...
/sallust-0.15.13.tar.gz/sallust-0.15.13/Sallust/GUI/Graphics.py
0.635675
0.284992
Graphics.py
pypi
import tkinter as tk from sallust import Constants as Constants import numpy as np class TestCaseTable(tk.Frame): def __init__(self, parent, controller, graphics, **kw): """ This class creates a table that represents the passed and failed steps :type parent: (tk.Frame) :type cont...
/sallust-0.15.13.tar.gz/sallust-0.15.13/Sallust/GUI/GraphicsWidgets/TestCaseTable.py
0.754553
0.219819
TestCaseTable.py
pypi
import tkinter as tk import numpy as np from sallust import Constants as Constants class StepsTable(tk.Frame): """This class creates a table that represents the passed and failed steps""" def __init__(self, parent, controller, graphics, **kw): """ This class creates a table that represe...
/sallust-0.15.13.tar.gz/sallust-0.15.13/Sallust/GUI/GraphicsWidgets/StepsTable.py
0.687735
0.325253
StepsTable.py
pypi
import argparse import struct if __name__ == "__main__": parser = argparse.ArgumentParser( description="Patch CRiSP map coordinate bounds.", epilog="Note: due to silly compiler optimizations, the longitude might be off by +/- 0.00005, " "but that's probably fine :)", formatter_class...
/salmon_lib-0.3.4.tar.gz/salmon_lib-0.3.4/salmon_lib/bound_patcher.py
0.516839
0.208461
bound_patcher.py
pypi
from abc import ABC, abstractmethod from dataclasses import dataclass, replace, field from typing import List, Tuple import struct def u32(b): return struct.unpack("<I", b)[0] def p32(x): return struct.pack("<I", x) def prefix_length(b): return p32(len(b)) + b class Buffer: def __init__(self, b...
/salmon_lib-0.3.4.tar.gz/salmon_lib-0.3.4/salmon_lib/zhp.py
0.71103
0.298312
zhp.py
pypi
import numpy as np import math from abc import ABC, abstractmethod from .model import LinearModel from .comparison import _extract_dfs from .expression import Constant class Score(ABC): def __init__(self, model, higher_is_better): self.higher_is_better = higher_is_better self.model = model ...
/salmon_linear_modeling-1.0.0-py3-none-any.whl/salmon/building.py
0.875268
0.481698
building.py
pypi
from .model import * from scipy.stats import f import numpy as np import pandas as pd def anova(model1, model2 = None): ''' User-facing function to execute an Analysis of Variance for one or two models. Should only model be given, then a general F-test will be executed on all of the coefficients. Should ...
/salmon_linear_modeling-1.0.0-py3-none-any.whl/salmon/comparison.py
0.893548
0.723273
comparison.py
pypi
import pandas as pd from pandas.plotting import scatter_matrix import numpy as np import scipy.stats as stats import matplotlib.pyplot as plt from itertools import product import math from .expression import Expression, Var, Quantitative, Categorical, Interaction, Combination, Identity, Constant plt.style.use('ggplot...
/salmon_linear_modeling-1.0.0-py3-none-any.whl/salmon/model.py
0.809238
0.590956
model.py
pypi
import numpy as np import math """Contains the logic for automatic model building (i.e. stepwise regression).""" from abc import ABC, abstractmethod from ordered_set import OrderedSet from .model import LinearModel from .comparison import _extract_dfs from .expression import Constant class Score(ABC): """Generi...
/salmon_lm-1.2-py3-none-any.whl/salmon/building.py
0.915005
0.528412
building.py
pypi
from .model import * from scipy.stats import f from ordered_set import OrderedSet import numpy as np import pandas as pd def anova(model1, model2 = None): """Perform inference by comparing two models. User-facing function to execute an Analysis of Variance for one or two models. Should only model be ...
/salmon_lm-1.2-py3-none-any.whl/salmon/comparison.py
0.917275
0.654495
comparison.py
pypi
import numpy as np import scipy.stats as stats from scipy.linalg import solve_triangular, cho_solve import pandas as pd from pandas.plotting import scatter_matrix import matplotlib.pyplot as plt import warnings from itertools import product from collections import OrderedDict from ordered_set import OrderedSet fr...
/salmon_lm-1.2-py3-none-any.whl/salmon/model.py
0.821474
0.556339
model.py
pypi
from __future__ import print_function, unicode_literals from salmon import mail LOADER = None def load(template): """ Uses the registered loader to load the template you ask for. It assumes that your loader works like Jinja2 or Mako in that it has a LOADER.get_template() method that returns the temp...
/salmon-mail-3.2.0.tar.gz/salmon-mail-3.2.0/salmon/view.py
0.679179
0.45538
view.py
pypi
from __future__ import print_function, unicode_literals from email.utils import parseaddr import uuid from salmon import queue, view class ConfirmationStorage(object): """ This is the basic confirmation storage. For simple testing purposes you can just use the default hash db parameter. If you do a de...
/salmon-mail-3.2.0.tar.gz/salmon-mail-3.2.0/salmon/confirm.py
0.76973
0.405331
confirm.py
pypi
from __future__ import print_function, unicode_literals from email.utils import parseaddr import mimetypes import os import warnings import six from salmon import bounce, encoding # You can change this to 'Delivered-To' on servers that support it like Postfix ROUTABLE_TO_HEADER = 'to' def _decode_header_randomnes...
/salmon-mail-3.2.0.tar.gz/salmon-mail-3.2.0/salmon/mail.py
0.654564
0.167951
mail.py
pypi
from __future__ import print_function, unicode_literals from functools import wraps import re BOUNCE_MATCHERS = { 'Action': re.compile(r'(failed|delayed|delivered|relayed|expanded)', re.IGNORECASE | re.DOTALL), 'Content-Description': re.compile(r'(Notification|Undelivered Message|Delivery Report)', re.IGNOREC...
/salmon-mail-3.2.0.tar.gz/salmon-mail-3.2.0/salmon/bounce.py
0.563138
0.165965
bounce.py
pypi
import logging import random import numpy as np from salmon.triplets.samplers._round_robin import ( RoundRobin, _get_query, _score_query ) from salmon.triplets.samplers.utils import Answer, Query logger = logging.getLogger(__name__) def _random_query(n: int): return np.random.choice(n, size=3, replace=Fals...
/salmon-triplets-1.0.3.tar.gz/salmon-triplets-1.0.3/salmon/triplets/samplers/_validation.py
0.860413
0.298491
_validation.py
pypi
import logging import random from copy import deepcopy from typing import List, Tuple import numpy as np from salmon.backend.sampler import Sampler from salmon.triplets.samplers.utils import Answer, Query logger = logging.getLogger(__name__) def _get_query(n, head) -> Tuple[int, int, int]: a = head while T...
/salmon-triplets-1.0.3.tar.gz/salmon-triplets-1.0.3/salmon/triplets/samplers/_round_robin.py
0.89214
0.32985
_round_robin.py
pypi
import logging from time import sleep from typing import List, Optional, Tuple import numpy as np from salmon.backend.sampler import Sampler from salmon.triplets.samplers.utils import Answer, Query logger = logging.getLogger(__name__) def _get_query(targets: List[int]) -> Tuple[int, int, int]: a, b, c = np.ran...
/salmon-triplets-1.0.3.tar.gz/salmon-triplets-1.0.3/salmon/triplets/samplers/_random_sampling.py
0.914986
0.28723
_random_sampling.py
pypi
from typing import Union import numpy as np import torch import torch.nn as nn ArrayLike = Union[np.ndarray, torch.Tensor] class TripletDist(nn.Module): """ A base class to find losses for the triplet embedding problem. Parameters ---------- n : int d : int Attributes ---------- ...
/salmon-triplets-1.0.3.tar.gz/salmon-triplets-1.0.3/salmon/triplets/samplers/adaptive/_noise_models.py
0.962312
0.612426
_noise_models.py
pypi
import numpy as np from sklearn.base import BaseEstimator import salmon.utils as utils from salmon.triplets.samplers.adaptive.search import gram_utils, score logger = utils.get_logger(__name__) class QueryScorer: """ A class to score queries for adaptive searches. Parameters ---------- embeddin...
/salmon-triplets-1.0.3.tar.gz/salmon-triplets-1.0.3/salmon/triplets/samplers/adaptive/_score.py
0.936088
0.576423
_score.py
pypi
from typing import Union import numpy as np import numpy.linalg as LA import scipy import torch from scipy.linalg import eigh from scipy.spatial import procrustes Array = Union[np.ndarray, torch.Tensor] def decompose(G, d): """ Arguments --------- G : ndarray Gram matrix; X @ X.T d : int...
/salmon-triplets-1.0.3.tar.gz/salmon-triplets-1.0.3/salmon/triplets/samplers/adaptive/search/gram_utils.py
0.895182
0.714466
gram_utils.py
pypi
import itertools import math from time import time from typing import Tuple, Union import numpy as np import numpy.linalg as LA import torch try: from salmon.triplets.samplers.adaptive.search import gram_utils except: import gram_utils Array = Union[np.ndarray, torch.Tensor] def random_query(n): rng = ...
/salmon-triplets-1.0.3.tar.gz/salmon-triplets-1.0.3/salmon/triplets/samplers/adaptive/search/_search.py
0.826572
0.642573
_search.py
pypi
import pathlib import random from copy import copy from datetime import datetime, timedelta from textwrap import dedent from time import time from typing import Dict, Union import numpy as np import requests as httpx import ujson from fastapi import FastAPI from redis.exceptions import ResponseError from rejson import...
/salmon-triplets-1.0.3.tar.gz/salmon-triplets-1.0.3/salmon/frontend/public.py
0.665302
0.166981
public.py
pypi
import json from datetime import datetime, timedelta from math import pi from typing import List import matplotlib.dates as mdates import matplotlib.pyplot as plt import numpy as np import pandas as pd import requests from bokeh.embed import json_item from bokeh.models import (ColumnDataSource, Grid, ImageURL, Legend,...
/salmon-triplets-1.0.3.tar.gz/salmon-triplets-1.0.3/salmon/frontend/plotting.py
0.792223
0.549218
plotting.py
pypi
import itertools import random from gc import collect as garbage_collect from pprint import pprint from time import sleep, time from typing import Any, Dict, List, Optional, Tuple, TypeVar import numpy as np from salmon.utils import flush_logger, get_logger logger = get_logger(__name__) Query = TypeVar("Query") Ans...
/salmon-triplets-1.0.3.tar.gz/salmon-triplets-1.0.3/salmon/backend/sampler.py
0.639398
0.180883
sampler.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/Coupler.py
0.761361
0.158207
Coupler.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/LocalDataManager.py
0.835349
0.334644
LocalDataManager.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/PhysicsDriver.py
0.872293
0.260442
PhysicsDriver.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/CollaborativeDataManager.py
0.867864
0.270342
CollaborativeDataManager.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/TimeAccumulator.py
0.807916
0.170543
TimeAccumulator.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/DataManager.py
0.882851
0.270708
DataManager.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/DataAccessor.py
0.898966
0.272382
DataAccessor.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/exchangeMethods/SharedRemappingMulti1D3D.py
0.846641
0.22093
SharedRemappingMulti1D3D.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/exchangeMethods/SharedRemapping.py
0.872279
0.220531
SharedRemapping.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/couplers/FixedPointCoupler.py
0.883154
0.26956
FixedPointCoupler.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/couplers/AndersonCoupler.py
0.872048
0.356923
AndersonCoupler.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/couplers/DynamicResidualBalanceCoupler.py
0.775137
0.268039
DynamicResidualBalanceCoupler.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/couplers/JFNKCoupler.py
0.898053
0.277363
JFNKCoupler.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/couplers/AdaptiveResidualBalanceCoupler.py
0.789477
0.235218
AdaptiveResidualBalanceCoupler.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/couplers/CrossedSecantCoupler.py
0.860779
0.311728
CrossedSecantCoupler.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/mpi/MPICollaborativeDataManager.py
0.78037
0.207395
MPICollaborativeDataManager.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/mpi/MPIDomainDecompositionDataManager.py
0.863507
0.218148
MPIDomainDecompositionDataManager.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/mpi/mpiExchangeMethods/MPISharedRemappingMulti1D3D.py
0.810141
0.174235
MPISharedRemappingMulti1D3D.py
pypi
# Copyright (c) 2020, CEA # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/salome_c3po-2.2-py3-none-any.whl/c3po/services/TransientLogger.py
0.93086
0.152821
TransientLogger.py
pypi
from rich.panel import Panel from rich.progress import BarColumn, Progress, TextColumn class Puller: """Pull classes will output progress and need to share the console as well as the Docker client""" def __init__(self, console, docker_client, image): self.console = console self.client = docke...
/saloon-0.1.2.tar.gz/saloon-0.1.2/cli/container/pull.py
0.473657
0.280287
pull.py
pypi
import re from collections import deque from rich import box from rich.live import Live from rich.panel import Panel from rich.progress import Progress, SpinnerColumn, TextColumn from rich.table import Table class Builder: """ Builds the image from source (requires full source repository) You can find th...
/saloon-0.1.2.tar.gz/saloon-0.1.2/cli/container/build.py
0.516839
0.20466
build.py
pypi
# Contributor Covenant Code of Conduct ## Our Pledge We as members, contributors, and leaders pledge to make participation in pytest-shell-utilities project and our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gende...
/salt-analytics-framework-0.5.0.tar.gz/salt-analytics-framework-0.5.0/CODE_OF_CONDUCT.md
0.572962
0.712157
CODE_OF_CONDUCT.md
pypi
from __future__ import annotations import asyncio import logging from asyncio import Task from typing import TYPE_CHECKING from typing import TypeVar import aiorun from saf.pipeline import Pipeline if TYPE_CHECKING: from saf.models import AnalyticsConfig log = logging.getLogger(__name__) MN = TypeVar("MN", bo...
/salt-analytics-framework-0.5.0.tar.gz/salt-analytics-framework-0.5.0/src/saf/manager.py
0.792705
0.151028
manager.py
pypi
from __future__ import annotations import logging from datetime import datetime from datetime import timezone from typing import TYPE_CHECKING from typing import Any from typing import Dict from typing import Generic from typing import List from typing import Mapping from typing import Optional from typing import Type...
/salt-analytics-framework-0.5.0.tar.gz/salt-analytics-framework-0.5.0/src/saf/models.py
0.892445
0.18374
models.py
pypi
from __future__ import annotations import functools import logging import re from typing import Any from typing import AsyncIterator from typing import Dict from typing import Match from typing import Optional from typing import Type from typing import TypeVar from pydantic import Field from saf.models import Collec...
/salt-analytics-framework-0.5.0.tar.gz/salt-analytics-framework-0.5.0/src/saf/process/regex_mask.py
0.778691
0.175079
regex_mask.py
pypi
from __future__ import annotations import logging import math import string from typing import Any from typing import AsyncIterator from typing import Optional from typing import Type from pydantic import Field from saf.models import CollectedEvent from saf.models import PipelineRunContext from saf.models import Pro...
/salt-analytics-framework-0.5.0.tar.gz/salt-analytics-framework-0.5.0/src/saf/process/shannon_mask.py
0.83772
0.229632
shannon_mask.py
pypi
from __future__ import annotations import logging import pathlib # noqa: TCH003 from typing import Any from typing import AsyncIterator from typing import Dict from typing import List from typing import Optional from typing import Type import papermill from saf.models import CollectedEvent from saf.models import Pi...
/salt-analytics-framework-0.5.0.tar.gz/salt-analytics-framework-0.5.0/src/saf/process/jupyter_notebook.py
0.877332
0.218753
jupyter_notebook.py
pypi
# Import Python Libs from __future__ import absolute_import, print_function, unicode_literals import datetime import logging import pprint import time # Import Salt Libs import salt.config as config from salt.exceptions import SaltCloudException, SaltCloudSystemExit # Get logging started log = logging.getLogger(__na...
/salt_cloud_module_kamatera-0.0.3-py3-none-any.whl/salt_cloud_module_kamatera/clouds/kamatera.py
0.673084
0.155944
kamatera.py
pypi
============== Feature Matrix ============== A number of features are available in most cloud providers, but not all are available everywhere. This may be because the feature isn't supported by the cloud provider itself, or it may only be that the feature has not yet been added to Salt Cloud. In a handful of cases, it...
/salt-cloud-0.8.11.tar.gz/salt-cloud-0.8.11/doc/topics/features.rst
0.723212
0.801198
features.rst
pypi
from __future__ import unicode_literals from salt.utils import clean_kwargs def set_up(name, containers=None, volumes=None, host=None, host_root=None, repository=None, default_domain=None, check_integrity=True, ignore_existing=False): ''' Sets up a container map. name Name of the cont...
/salt-container-map-0.2.2.tar.gz/salt-container-map-0.2.2/saltcontainermap/states/container_map.py
0.869798
0.267953
container_map.py
pypi
# salt-eventsd A project based on but not related to saltstack ## The current stable release is tagged as: 0.9.3 If you are already using salt-eventsd, check the changelog for the latest changes and fixes. Due to public request, i pushed the develop-branch to github for everyone to try out. From today on, the late...
/salt-eventsd-0.9.3.tar.gz/salt-eventsd-0.9.3/README.md
0.452052
0.688108
README.md
pypi
PACKAGE_INIT = """\ # pylint: disable=missing-module-docstring import pathlib PACKAGE_ROOT = pathlib.Path(__file__).resolve().parent try: from .version import __version__ except ImportError: # pragma: no cover __version__ = "0.0.0.not-installed" try: from importlib.metadata import version, Packag...
/salt-extension-0.23.0.tar.gz/salt-extension-0.23.0/src/saltext/cli/templates.py
0.479016
0.162115
templates.py
pypi
import enum import json from io import BytesIO from typing import BinaryIO import PyPDF2 from salt_finder_charts.finder_chart import FinderChart from salt_finder_charts.util import Metadata class OutputFormat(enum.Enum): """ Available output formats. """ PDF = "PDF" PNG = "PNG" SVG = "SVG" ...
/salt_finder_charts-0.3.7-py3-none-any.whl/salt_finder_charts/output.py
0.906691
0.448728
output.py
pypi
from abc import ABC import bisect from datetime import datetime, timedelta from typing import List, NamedTuple, Optional, Tuple from astropy.units import Quantity from astropy import units as u from astroquery.jplhorizons import Horizons from dateutil.parser import parse from dateutil.tz import tzutc from salt_finder...
/salt_finder_charts-0.3.7-py3-none-any.whl/salt_finder_charts/ephemerides.py
0.962761
0.641886
ephemerides.py
pypi
import enum from abc import ABC from typing import Any, Optional import astropy.units as u from astropy.units import Quantity from salt_finder_charts.position_angle import estimated_position_angle from salt_finder_charts.util import MOSMask, Metadata class Mode(enum.Enum): """ Instrument mode. """ ...
/salt_finder_charts-0.3.7-py3-none-any.whl/salt_finder_charts/mode.py
0.944919
0.416144
mode.py
pypi
import bisect from datetime import datetime, timedelta from typing import cast, List, Optional, Tuple from astropy.units import Quantity from astropy import units as u from dateutil.tz import tzutc import ephem import numpy as np from salt_finder_charts.ephemerides import EphemerisService SUTH_LONGITUDE = 20.8108 *...
/salt_finder_charts-0.3.7-py3-none-any.whl/salt_finder_charts/visibility.py
0.932607
0.405302
visibility.py
pypi
from datetime import datetime, timedelta from typing import BinaryIO, Generator, Optional, Tuple import astropy.units as u import pytz from astropy.units import Quantity from salt_finder_charts.image import Survey, SurveyImageService from salt_finder_charts.mode import ( Mode, ModeDetails, ImagingModeDeta...
/salt_finder_charts-0.3.7-py3-none-any.whl/salt_finder_charts/standard_finder_charts.py
0.950995
0.432243
standard_finder_charts.py
pypi
from abc import ABC import enum import io from typing import TextIO import urllib.parse import urllib.request from astropy.coordinates.angles import Angle import astropy.io.fits as pyfits from astropy.units import Quantity from astropy import units as u class Survey(enum.Enum): """ Image survey. """ ...
/salt_finder_charts-0.3.7-py3-none-any.whl/salt_finder_charts/image.py
0.882769
0.547887
image.py
pypi
from typing import Optional, Tuple from gilmenel import gilmenel from gilmenel.instruments import BaseInstrument, Star import astropy.units as u from astropy.coordinates import SkyCoord from astropy.units import Quantity MIN_RADIUS = 1 * u.arcmin MAX_RADIUS = 3 * u.arcmin MIN_MAG = 15 MAX_MAG = 18 MIN_STAR_SEPARATI...
/salt_finder_charts-0.3.7-py3-none-any.whl/salt_finder_charts/position_angle.py
0.977143
0.58062
position_angle.py
pypi
from typing import Optional, BinaryIO import astropy.units as u import click from datetime import datetime import os import pytz from salt_finder_charts import standard_finder_charts, __version__ from salt_finder_charts.image import Survey from salt_finder_charts.mode import Mode from salt_finder_charts.output import ...
/salt_finder_charts-0.3.7-py3-none-any.whl/salt_finder_charts/cli.py
0.845049
0.274944
cli.py
pypi
from typing import List, Optional import re from saltlint.utils import get_rule_skips_from_line, get_file_type from saltlint.linter.match import Match from saltlint.utils import LANGUAGE_SLS, LANGUAGE_JINJA class Rule(object): id: Optional[str] = None shortdesc: Optional[str] = None description: Option...
/salt_lint-0.9.2-py3-none-any.whl/saltlint/linter/rule.py
0.862192
0.183447
rule.py
pypi
from dataclasses import dataclass, field import itertools from typing import Callable, Dict, List, Sequence, TypedDict, cast from pygls.lsp import types from salt_lsp.parser import ( AstNode, Tree, Optional, IncludeNode, IncludesNode, StateParameterNode, StateCallNode, StateNode, R...
/salt_lsp-0.0.1.tar.gz/salt_lsp-0.0.1/salt_lsp/document_symbols.py
0.859546
0.526891
document_symbols.py
pypi
from logging import getLogger, Logger, DEBUG from pathlib import Path from platform import python_version_tuple from typing import List, Optional, Union from pygls.lsp import types, InitializeResult from pygls.protocol import LanguageServerProtocol from pygls.workspace import Workspace from salt_lsp.base_types import...
/salt_lsp-0.0.1.tar.gz/salt_lsp-0.0.1/salt_lsp/workspace.py
0.790773
0.329931
workspace.py
pypi
from __future__ import annotations from collections.abc import MutableMapping import os import os.path import shlex import subprocess from typing import ( Dict, Generic, Iterator, List, NewType, Optional, TypeVar, Union, ) from urllib.parse import urlparse, ParseResult from pygls.lsp.t...
/salt_lsp-0.0.1.tar.gz/salt_lsp-0.0.1/salt_lsp/utils.py
0.81571
0.261732
utils.py
pypi
from __future__ import annotations import logging from abc import ABC, abstractmethod from dataclasses import dataclass, field from os.path import abspath, dirname, exists, isdir, join from typing import Any, Callable, List, Optional, Sequence, Tuple, Union, cast from pygls.lsp import types import yaml from yaml.toke...
/salt_lsp-0.0.1.tar.gz/salt_lsp-0.0.1/salt_lsp/parser.py
0.917187
0.431165
parser.py
pypi
import logging import re from os.path import basename from typing import Dict, List, Optional, Sequence, Tuple, Union, cast from pygls.capabilities import COMPLETION from pygls.lsp import types from pygls.lsp.methods import ( TEXT_DOCUMENT_DID_CHANGE, TEXT_DOCUMENT_DID_CLOSE, TEXT_DOCUMENT_DID_OPEN, DE...
/salt_lsp-0.0.1.tar.gz/salt_lsp-0.0.1/salt_lsp/server.py
0.762336
0.340677
server.py
pypi
import datetime # pragma: nocover import os # pragma: nocover import sys # pragma: nocover import subprocess # pragma: nocover import platform # pragma: nocover VERSION = (0, 2, 7, "beta", 1) def get_git_changeset(): # pragma: nocover """Returns a numeric identifier of the latest git changeset. The res...
/salt-packets-0.2.7b1.tar.gz/salt-packets-0.2.7b1/salt_packets/core/version.py
0.424651
0.23467
version.py
pypi
class PepperRetcode(object): ''' Validation container ''' def validate(self, options, result): ''' Validate result dictionary retcode values. :param options: optparse options :param result: dictionary from Saltstack master :return: exit code ''' ...
/salt-pepper-0.7.6.tar.gz/salt-pepper-0.7.6/pepper/retcode.py
0.726426
0.343342
retcode.py
pypi
from bowler import Query from bowler import SYMBOL from bowler import TOKEN from fissix.fixer_util import find_indentation from fissix.fixer_util import Name from fissix.pytree import Leaf from fissix.pytree import Node def rewrite(paths, interactive=False, silent=False): """ Rewrite the passed in paths "...
/salt-rewrite-2.4.4.tar.gz/salt-rewrite-2.4.4/src/saltrewrite/imports/fix_tornado_imports.py
0.637369
0.205376
fix_tornado_imports.py
pypi
import logging import os import sys import warnings from shaker.libs import logger from shaker.libs import metadata from shaker.libs import pygit2_utils from shaker_metadata import ShakerMetadata from shaker_remote import ShakerRemote from shaker.libs.errors import ShakerRequirementsUpdateException class Shaker(obje...
/salt-shaker-1.0.4.tar.gz/salt-shaker-1.0.4/shaker/salt_shaker.py
0.550366
0.314998
salt_shaker.py
pypi