uid
stringlengths
24
24
split
stringclasses
1 value
category
stringclasses
2 values
content
stringlengths
5
482k
signature
stringlengths
1
14k
suffix
stringlengths
1
482k
prefix
stringlengths
9
14k
prefix_token_count
int64
3
5.01k
prefix_token_budget
int64
64
256
element_token_count
int64
1
292k
signature_token_count
int64
1
5.01k
prefix_context_token_count
int64
0
255
repo
stringlengths
7
112
path
stringlengths
4
208
language
stringclasses
1 value
name
stringlengths
1
218
qualname
stringlengths
1
218
start_line
int64
1
26.7k
end_line
int64
1
26.7k
signature_start_line
int64
1
26.7k
signature_end_line
int64
1
26.7k
source_hash
stringlengths
40
40
source_dataset
stringclasses
1 value
source_split
stringclasses
1 value
7bfc92f14b18f3f264e7b50c
train
function
def sendUnsubstribeConfirmation(etherbase,email): fromaddr = username toaddrs = email msg = 'You have sucesssfully unsubscribed from the EasyWaltonMiner email alert system. \n \n' \ 'We are sorry to see you go! You will no longer recieve email alerts for your wallet: ' + etherbase + '.\n \n' + \ 'If you had ...
def sendUnsubstribeConfirmation(etherbase,email):
fromaddr = username toaddrs = email msg = 'You have sucesssfully unsubscribed from the EasyWaltonMiner email alert system. \n \n' \ 'We are sorry to see you go! You will no longer recieve email alerts for your wallet: ' + etherbase + '.\n \n' + \ 'If you had an issue with this service, please respond to this...
]+\.[^@]+", email): return True return False #checks that etherbase is the right length def goodEtherbase(etherbase): if len(etherbase) == 42: return True return False def sendUnsubstribeConfirmation(etherbase,email):
64
64
159
11
52
scavicchio/easyWaltonTracker
app/emailService.py
Python
sendUnsubstribeConfirmation
sendUnsubstribeConfirmation
36
48
36
36
a97512ebe5d2a1f57cf281ec621feab96ad6bf5e
bigcode/the-stack
train
862c8b4c0a46af31d6c13ecf
train
function
@emailService.route('/emailRemove',methods=['GET','POST']) def emailRemove(): conn = db.connect() etherbase = request.form.get('etherbaseRemove') email = request.form.get('emailRemove') extra = request.form.get('extraRemove') message = db.removeEmailAlert(conn,etherbase,email,ext...
@emailService.route('/emailRemove',methods=['GET','POST']) def emailRemove():
conn = db.connect() etherbase = request.form.get('etherbaseRemove') email = request.form.get('emailRemove') extra = request.form.get('extraRemove') message = db.removeEmailAlert(conn,etherbase,email,extra) latestBlock = db.getLatestBlockFromDB(conn) conn.close() ...
SignupConfirmation(etherbase,email,extra) return render_template('alerts.html',latestBlock=latestBlock,message=message) else: return render_template('alerts.html',latestBlock=latestBlock,error=error) @emailService.route('/emailRemove',methods=['GET','POST']) def emailRemove():
63
64
143
17
46
scavicchio/easyWaltonTracker
app/emailService.py
Python
emailRemove
emailRemove
86
100
86
87
e8436016751b05bae488a1296910b100fdb61ecc
bigcode/the-stack
train
c620c1fbbe3ad8ae910fb879
train
function
def goodEtherbase(etherbase): if len(etherbase) == 42: return True return False
def goodEtherbase(etherbase):
if len(etherbase) == 42: return True return False
()) # checks that email is in correct format (not done) def goodEmail(email): if re.match(r"[^@]+@[^@]+\.[^@]+", email): return True return False #checks that etherbase is the right length def goodEtherbase(etherbase):
64
64
27
8
55
scavicchio/easyWaltonTracker
app/emailService.py
Python
goodEtherbase
goodEtherbase
30
34
30
30
24b4afca01df65f46d40a71f00023e586a67beb4
bigcode/the-stack
train
ebe8b12fafd435379c8674a8
train
function
def goodEmail(email): if re.match(r"[^@]+@[^@]+\.[^@]+", email): return True return False
def goodEmail(email):
if re.match(r"[^@]+@[^@]+\.[^@]+", email): return True return False
Password = data[3].strip() database = data[4].strip() username = data[5].strip() password = data[6].strip() difficultyHashMagnitude = float(data[7].strip()) # checks that email is in correct format (not done) def goodEmail(email):
64
64
33
5
59
scavicchio/easyWaltonTracker
app/emailService.py
Python
goodEmail
goodEmail
23
27
23
23
3e67b543101d9021ecb878aa155731026066c162
bigcode/the-stack
train
866ff97a9475c571d2ae0f26
train
function
@emailService.route('/emailSubmit',methods=['GET','POST']) def emailSubmit(): conn = db.connect() etherbase = request.form.get('etherbase') email = request.form.get('email') extra = request.form.get('extra') message = db.addEmailAlert(conn,etherbase,email,extra) latestBlo...
@emailService.route('/emailSubmit',methods=['GET','POST']) def emailSubmit():
conn = db.connect() etherbase = request.form.get('etherbase') email = request.form.get('email') extra = request.form.get('extra') message = db.addEmailAlert(conn,etherbase,email,extra) latestBlock = db.getLatestBlockFromDB(conn) conn.close() if message ==...
' server = smtplib.SMTP('smtp.gmail.com:587') server.starttls() server.login(username,password) server.sendmail(fromaddr, toaddrs, msg) server.quit() return @emailService.route('/emailSubmit',methods=['GET','POST']) def emailSubmit():
64
64
140
17
46
scavicchio/easyWaltonTracker
app/emailService.py
Python
emailSubmit
emailSubmit
69
83
69
70
e632f612f581612fd6b8967e01558290586eabe2
bigcode/the-stack
train
a4192aa48d9166efc5f256a0
train
function
@_invoke.task(default=True) def compile(ctx): # pylint: disable = redefined-builtin """ Compile the package """ with ctx.shell.root_dir(): ctx.run('pip install -e .')
@_invoke.task(default=True) def compile(ctx): # pylint: disable = redefined-builtin
""" Compile the package """ with ctx.shell.root_dir(): ctx.run('pip install -e .')
# -*- encoding: ascii -*- """ Compile tasks ~~~~~~~~~~~~~ """ import invoke as _invoke @_invoke.task(default=True) def compile(ctx): # pylint: disable = redefined-builtin
42
64
45
22
19
ndparker/tdi3
tasks/compile.py
Python
compile
compile
11
15
11
12
b3e193400559b2a0feae91f6d972ab05939788f8
bigcode/the-stack
train
0e291f6c6d13db60b71af7c3
train
class
class IndexableChoices(Choices): def index_of(self, item): for i in range(len(self._doubles)): if item == self._doubles[i][0]: return i raise ValueError(f"{item} is not a valid choice.")
class IndexableChoices(Choices):
def index_of(self, item): for i in range(len(self._doubles)): if item == self._doubles[i][0]: return i raise ValueError(f"{item} is not a valid choice.")
from model_utils import Choices class IndexableChoices(Choices):
13
64
56
7
5
bhomnick/taiwanpeaks
taiwanpeaks/common/constants.py
Python
IndexableChoices
IndexableChoices
4
10
4
5
7a90f057241503be09a00932aacc27f8785f74d0
bigcode/the-stack
train
0028d8f44f032e226efe3c27
train
function
def check_one_cardinality(dataframe): """ Alert user if features with one cardinality are found. This function calculates cardinality, and prints a warning to the console to warn and educate user. This includes the features found, the unique value counts, and the unique ratio. It is im...
def check_one_cardinality(dataframe):
""" Alert user if features with one cardinality are found. This function calculates cardinality, and prints a warning to the console to warn and educate user. This includes the features found, the unique value counts, and the unique ratio. It is important to note that we do not want to ...
dataframe containing one cardinal features. """ try: warnings = dataframe[dataframe.unique_value_count == 1] results = warnings.drop(labels=['index'], axis=1) return results except AttributeError: raise HealthcareAIError( 'Expected a dataframe ...
91
92
309
8
83
vijayphugat/Practice
healthcareai/common/cardinality_checks.py
Python
check_one_cardinality
check_one_cardinality
140
178
140
140
5d37cc4cc67866c9720224d6d40c4a601fcc1e31
bigcode/the-stack
train
b6c9ef6493d27e825e583f66
train
function
def cardinality_low_filter(dataframe): """ Filter a cardinality dataframe to rows that have one cardinality. Args: dataframe (pandas.core.frame.DataFrame): The cardinality dataframe. Returns: pandas.core.frame.DataFrame: A dataframe containing one cardinal features. ...
def cardinality_low_filter(dataframe):
""" Filter a cardinality dataframe to rows that have one cardinality. Args: dataframe (pandas.core.frame.DataFrame): The cardinality dataframe. Returns: pandas.core.frame.DataFrame: A dataframe containing one cardinal features. """ try: warnings = dat...
name_and_counts = warnings[['Feature Name', 'unique_value_count']] table = tabulate( name_and_counts, tablefmt='fancy_grid', headers=warnings.columns, showindex=False) print(table) print('\n') def cardinality_low_filter(dataframe):
63
64
137
8
55
vijayphugat/Practice
healthcareai/common/cardinality_checks.py
Python
cardinality_low_filter
cardinality_low_filter
118
137
118
118
0552ca17df75b24ad69691fecc2290827501cecf
bigcode/the-stack
train
aca7377faaf921b670b1c927
train
function
def cardinality_threshold_filter(dataframe, ratio_name, warning_threshold=0.3): """ Filter a cardinality dataframe to rows that exceed a warning threshold. Useful for warning on highly cardinal features. Args: dataframe (pandas.core.frame.DataFrame): The cardinality dataframe. ...
def cardinality_threshold_filter(dataframe, ratio_name, warning_threshold=0.3):
""" Filter a cardinality dataframe to rows that exceed a warning threshold. Useful for warning on highly cardinal features. Args: dataframe (pandas.core.frame.DataFrame): The cardinality dataframe. ratio_name (str): The name of the cardinality ratio column warning_thres...
Frame(result_list) results.columns = ['Feature Name', 'unique_value_count', 'unique_ratio'] results.sort_values('unique_ratio', ascending=False, inplace=True) results.reset_index(inplace=True) return results def cardinality_threshold_filter(dataframe, ratio_name, warning_threshold=0.3):
64
64
185
18
45
vijayphugat/Practice
healthcareai/common/cardinality_checks.py
Python
cardinality_threshold_filter
cardinality_threshold_filter
43
65
43
43
1ec9d193c729334a7971e2bd2f546e2b6fe27fab
bigcode/the-stack
train
eda733ed256ccbecac54848a
train
function
def check_high_cardinality(dataframe, exclusions, warning_threshold=0.3): """ Alert user if highly cardinal features are found. This function calculates cardinality, and prints a warning to the console to warn and educate user. This includes the features found, the unique value counts, and th...
def check_high_cardinality(dataframe, exclusions, warning_threshold=0.3):
""" Alert user if highly cardinal features are found. This function calculates cardinality, and prints a warning to the console to warn and educate user. This includes the features found, the unique value counts, and the unique ratio. It is important to note that we do not want to preve...
. Returns: pandas.core.frame.DataFrame: A dataframe containing rows that meet or exceed the threshold """ if warning_threshold > 1.0: raise HealthcareAIError('The warning_threshold maximum is 1.0 and you ' 'set it to {}'.format(warning_thresho...
113
113
377
17
95
vijayphugat/Practice
healthcareai/common/cardinality_checks.py
Python
check_high_cardinality
check_high_cardinality
68
115
68
68
f4057ee0cc4fcd4d0f52a5d7d34157891c044885
bigcode/the-stack
train
12b2d8159761794ebb37889c
train
function
def calculate_cardinality(dataframe): """ Find cardinality of columns in a dataframe. This function counts the number of rows in the dataframe, counts the unique values in each column and sorts by the ratio of unique values relative to the number of rows. This is useful for profiling t...
def calculate_cardinality(dataframe):
""" Find cardinality of columns in a dataframe. This function counts the number of rows in the dataframe, counts the unique values in each column and sorts by the ratio of unique values relative to the number of rows. This is useful for profiling training data. Args: dat...
"""Cardinality Checks.""" from tabulate import tabulate import pandas as pd from healthcareai.common.healthcareai_error import HealthcareAIError def calculate_cardinality(dataframe):
38
64
205
7
30
vijayphugat/Practice
healthcareai/common/cardinality_checks.py
Python
calculate_cardinality
calculate_cardinality
9
40
9
9
102e960af331badb0735a2ae968c0f78b6e14489
bigcode/the-stack
train
cf0e19357b698adb915878b0
train
function
@pytest.mark.xfail def test_failing(): # This is a real comment. assert False
@pytest.mark.xfail def test_failing(): # This is a real comment.
assert False
import pytest def test_passing(): assert True @pytest.mark.xfail def test_failing(): # This is a real comment.
30
64
22
18
11
mikbhub/pre-commit-pipeline
src/sample_test.py
Python
test_failing
test_failing
8
12
8
11
db59ffbace1813b78cd474fa26d45bebd84ace7e
bigcode/the-stack
train
06b4c5f1b79f24025c83316d
train
function
def test_passing(): assert True
def test_passing():
assert True
import pytest def test_passing():
8
64
9
5
2
mikbhub/pre-commit-pipeline
src/sample_test.py
Python
test_passing
test_passing
4
5
4
4
060bc9a29b2c77f227eef1c57d108f69d61a918a
bigcode/the-stack
train
87a1ffd2f926ac0917af616f
train
class
class AcadosSimOpts: """ class containing the solver options """ def __init__(self): self.__integrator_type = 'ERK' self.__Tsim = None # ints self.__sim_method_num_stages = 1 self.__sim_method_num_steps = 1 self.__sim_method_newton_iter = 3 # bools...
class AcadosSimOpts:
""" class containing the solver options """ def __init__(self): self.__integrator_type = 'ERK' self.__Tsim = None # ints self.__sim_method_num_stages = 1 self.__sim_method_num_steps = 1 self.__sim_method_newton_iter = 3 # bools self.__sens_...
(self): """:math:`n_p` - number of parameters. Type: int >= 0""" return self.__np @nx.setter def nx(self, nx): if type(nx) == int and nx > 0: self.__nx = nx else: raise Exception('Invalid nx value, expected positive integer. Exiting.') @nz.setter ...
256
256
1,225
6
250
garg-akash/acados
interfaces/acados_template/acados_template/acados_sim.py
Python
AcadosSimOpts
AcadosSimOpts
103
251
103
103
49cbff3e2f57191825e061c7e95f2ee2e500082b
bigcode/the-stack
train
0c41218ae2ee6baf5a36976e
train
class
class AcadosSimDims: """ Class containing the dimensions of the model to be simulated. """ def __init__(self): self.__nx = None self.__nu = None self.__nz = 0 self.__np = 0 @property def nx(self): """:math:`n_x` - number of states. Type: int > 0""" ...
class AcadosSimDims:
""" Class containing the dimensions of the model to be simulated. """ def __init__(self): self.__nx = None self.__nu = None self.__nz = 0 self.__np = 0 @property def nx(self): """:math:`n_x` - number of states. Type: int > 0""" return self.__nx ...
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT O...
126
126
423
6
119
garg-akash/acados
interfaces/acados_template/acados_template/acados_sim.py
Python
AcadosSimDims
AcadosSimDims
41
100
41
41
d8fdc59612fb2d4f83aeb39fe3ea17b2ebbb203e
bigcode/the-stack
train
461a35cd06ad540fab592da0
train
class
class AcadosSim: """ The class has the following properties that can be modified to formulate a specific simulation problem, see below: :param acados_path: string with the path to acados. It is used to generate the include and lib paths. - :py:attr:`dims` of type :py:class:`acados_template.acados_ocp....
class AcadosSim:
""" The class has the following properties that can be modified to formulate a specific simulation problem, see below: :param acados_path: string with the path to acados. It is used to generate the include and lib paths. - :py:attr:`dims` of type :py:class:`acados_template.acados_ocp.AcadosSimDims` - ...
self.__sens_algebraic = sens_algebraic else: raise Exception('Invalid sens_algebraic value. sens_algebraic must be a Boolean.') @output_z.setter def output_z(self, output_z): if output_z in (True, False): self.__output_z = output_z else: r...
183
183
613
5
178
garg-akash/acados
interfaces/acados_template/acados_template/acados_sim.py
Python
AcadosSim
AcadosSim
253
311
253
253
70157942a60a563a867faed6fffd1a43dc949b57
bigcode/the-stack
train
358ae239064229195dd3922c
train
class
class Migration(migrations.Migration): dependencies = [ ('base', '0014_responses_photograph'), ('base', '0015_responses_liked_likes'), ] operations = [ ]
class Migration(migrations.Migration):
dependencies = [ ('base', '0014_responses_photograph'), ('base', '0015_responses_liked_likes'), ] operations = [ ]
# Generated by Django 4.0.1 on 2022-02-28 14:56 from django.db import migrations class Migration(migrations.Migration):
36
64
46
7
28
MichaelHills01/group-software-project-1
UniExplore/base/migrations/0016_merge_20220228_1456.py
Python
Migration
Migration
6
14
6
7
82e74be840e32d35cad7b3919e2cdd9123f7f392
bigcode/the-stack
train
8e737f9ab34c645ee7faea0a
train
function
def bulk_chunks(actions, docs_per_chunk=300, bytes_per_chunk=None): """ Return groups of bulk-indexing operations to send to :meth:`~pyelasticsearch.ElasticSearch.bulk()`. Return an iterable of chunks, each of which is a JSON-encoded line or pair of lines in the format understood by ES's bulk API. ...
def bulk_chunks(actions, docs_per_chunk=300, bytes_per_chunk=None):
""" Return groups of bulk-indexing operations to send to :meth:`~pyelasticsearch.ElasticSearch.bulk()`. Return an iterable of chunks, each of which is a JSON-encoded line or pair of lines in the format understood by ES's bulk API. :arg actions: An iterable of bulk actions, JSON-encoded. The best...
# *_*coding:utf-8 *_* def bulk_chunks(actions, docs_per_chunk=300, bytes_per_chunk=None):
25
152
507
16
9
szj2ys/pyelastices
pyelastices/utils.py
Python
bulk_chunks
bulk_chunks
4
46
4
4
83b569c73d49d648fa206b00bf9d7f7fb75e2592
bigcode/the-stack
train
bfee5a9e9cdb5494d4888a50
train
class
class TestBasicFunctions(unittest.TestCase): """Checks all functions and methods.""" ######################################################################### # General object setup ######################################################################### def test_idx_exists(self): """Test...
class TestBasicFunctions(unittest.TestCase):
"""Checks all functions and methods.""" ######################################################################### # General object setup ######################################################################### def test_idx_exists(self): """Testing method / function idx_exists.""" ...
.abspath(os.path.join( EXEC_DIR, os.pardir)), os.pardir)), os.pardir)), os.pardir)) _EXPECTED = '{0}pattoo{0}tests{0}pattoo_{0}db{0}table'.format(os.sep) if EXEC_DIR.endswith(_EXPECTED) is True: # We need to prepend the path in case the repo has been installed # elsewhere on the ...
200
200
669
8
191
palisadoes/pattoo
tests/pattoo_/db/table/test_pair_xlate_group.py
Python
TestBasicFunctions
TestBasicFunctions
34
132
34
34
2db68ebf6788ed6633e26ef154172ec3e03bd730
bigcode/the-stack
train
03260e855c7da71c86071fa6
train
function
def main(argv=None): """Main function.""" tf.test.main(argv)
def main(argv=None):
"""Main function.""" tf.test.main(argv)
test_output in enumerate(test_outputs): index = output_details[o]["index"] self.assertAllClose(test_output, interpreter.get_tensor(index)) except Exception as e: # pylint: disable=broad-except self.fail("Exception raised: %s" % str(e)) def main(argv=None):
64
64
16
5
59
drebain/graphics
tensorflow_graphics/util/test_case.py
Python
main
main
400
402
400
400
61a66fb40004d4cb10dbecb0f57e3246bab5573d
bigcode/the-stack
train
4df87e1b42b13166f00b61ec
train
class
class TestCase(parameterized.TestCase, tf.test.TestCase): """Test case class implementing extra test functionalities.""" def setUp(self): """Sets the seed for tensorflow and numpy.""" super(TestCase, self).setUp() try: seed = flags.FLAGS.test_random_seed except flags.UnparsedFlagAccessError: ...
class TestCase(parameterized.TestCase, tf.test.TestCase):
"""Test case class implementing extra test functionalities.""" def setUp(self): """Sets the seed for tensorflow and numpy.""" super(TestCase, self).setUp() try: seed = flags.FLAGS.test_random_seed except flags.UnparsedFlagAccessError: seed = 301 # Default seed in case test_random_seed ...
used to simplify the code and check for various kinds of failure. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import warnings from absl import flags from absl.testing import parameterized import numpy as np import tensorflow as tf from tensorflow...
256
256
3,061
13
242
drebain/graphics
tensorflow_graphics/util/test_case.py
Python
TestCase
TestCase
57
397
57
57
3d418eddbfdc10cb04431d54e0754c58edcde75d
bigcode/the-stack
train
d1b4ac6af73307b9b8646977
train
function
def _max_error(arrays1, arrays2): """Computes maximum elementwise gap between two lists of ndarrays. Computes the maximum elementwise gap between two lists with the same length, of arrays with the same shape. Args: arrays1: a lists of np.ndarrays. arrays2: a lists of np.ndarrays of the same shape as a...
def _max_error(arrays1, arrays2):
"""Computes maximum elementwise gap between two lists of ndarrays. Computes the maximum elementwise gap between two lists with the same length, of arrays with the same shape. Args: arrays1: a lists of np.ndarrays. arrays2: a lists of np.ndarrays of the same shape as arrays1. Returns: The maximu...
division from __future__ import print_function import warnings from absl import flags from absl.testing import parameterized import numpy as np import tensorflow as tf from tensorflow_graphics.util import tfg_flags FLAGS = flags.FLAGS def _max_error(arrays1, arrays2):
64
64
163
11
52
drebain/graphics
tensorflow_graphics/util/test_case.py
Python
_max_error
_max_error
37
54
37
37
3c0c1b11cc9036255987818854070db227bf6866
bigcode/the-stack
train
e982091eefd94cd67edc8d2a
train
class
@implementer(IRequest) class TestRequest: """ A very simple request that does nothing but always succeeds. """ def run_setup(self): return succeed(None) def make_request(self): return succeed(None) def run_cleanup(self): return succeed(None)
@implementer(IRequest) class TestRequest:
""" A very simple request that does nothing but always succeeds. """ def run_setup(self): return succeed(None) def make_request(self): return succeed(None) def run_cleanup(self): return succeed(None)
file for details. from zope.interface import implementer from twisted.internet.defer import succeed from twisted.internet.task import Clock from flocker.testtools import TestCase from benchmark._interfaces import IRequest from benchmark.scenarios._request_load import RequestLoadScenario @implementer(IRequest) clas...
64
64
59
10
53
stackriot/flocker
benchmark/scenarios/test/test_request_load.py
Python
TestRequest
TestRequest
14
27
14
15
c446fd58534eccf659518c5c9e3f6aec1ebfb554
bigcode/the-stack
train
e05e54b6ddac5615134d19dc
train
class
class RequestMeasureTests(TestCase): """ Tests for ``_request_and_measure``. """ def test_single_count(self): """ Adds ``request_rate`` samples per call. """ calls_per_second = 10 clock = Clock() request = TestRequest() scenario = RequestLoadScena...
class RequestMeasureTests(TestCase):
""" Tests for ``_request_and_measure``. """ def test_single_count(self): """ Adds ``request_rate`` samples per call. """ calls_per_second = 10 clock = Clock() request = TestRequest() scenario = RequestLoadScenario( clock, request, requ...
er(IRequest) class TestRequest: """ A very simple request that does nothing but always succeeds. """ def run_setup(self): return succeed(None) def make_request(self): return succeed(None) def run_cleanup(self): return succeed(None) class RequestMeasureTests(TestCase):
64
64
213
7
57
stackriot/flocker
benchmark/scenarios/test/test_request_load.py
Python
RequestMeasureTests
RequestMeasureTests
30
65
30
30
e108e19355e2a9cf74af445f853e27b572f7cb74
bigcode/the-stack
train
de49c591b4c78c928e328d0c
train
class
class OutliersDataCheck(DataCheck): """Checks if there are any outliers in input data by using IQR to determine score anomalies. Columns with score anomalies are considered to contain outliers.""" def validate(self, X, y=None): """Checks if there are any outliers in a dataframe by using IQR to determin...
class OutliersDataCheck(DataCheck):
"""Checks if there are any outliers in input data by using IQR to determine score anomalies. Columns with score anomalies are considered to contain outliers.""" def validate(self, X, y=None): """Checks if there are any outliers in a dataframe by using IQR to determine column anomalies. Column with anom...
import numpy as np from scipy.stats import gamma from evalml.data_checks import ( DataCheck, DataCheckMessageCode, DataCheckWarning, ) from evalml.utils import infer_feature_types class OutliersDataCheck(DataCheck):
51
256
1,722
8
42
ObinnaObeleagu/evalml
evalml/data_checks/outliers_data_check.py
Python
OutliersDataCheck
OutliersDataCheck
12
188
12
12
8d09931d44febd502989312fcf05d3307e833594
bigcode/the-stack
train
93f933149fe28908d1313357
train
class
class ConfigureDialog(QtWidgets.QDialog): """ Configure dialog to present the user with the options to configure this step. """ def __init__(self, parent=None): QtWidgets.QDialog.__init__(self, parent) self._ui = Ui_ConfigureDialog() self._ui.setupUi(self) # Keep track...
class ConfigureDialog(QtWidgets.QDialog):
""" Configure dialog to present the user with the options to configure this step. """ def __init__(self, parent=None): QtWidgets.QDialog.__init__(self, parent) self._ui = Ui_ConfigureDialog() self._ui.setupUi(self) # Keep track of the previous identifier so that we can...
import os from PySide2 import QtWidgets from mapclientplugins.filelocationsinkstep.ui_configuredialog import Ui_ConfigureDialog INVALID_STYLE_SHEET = 'background-color: rgba(239, 0, 0, 50)' DEFAULT_STYLE_SHEET = '' class ConfigureDialog(QtWidgets.QDialog):
66
256
984
8
58
HiiKevin/mapclientplugins.filelocationsourcestep
mapclientplugins/filelocationsourcestep/configuredialog.py
Python
ConfigureDialog
ConfigureDialog
11
125
11
11
39f187cafcb1c1e9f63891ce1f146756a0b44f19
bigcode/the-stack
train
97410bfdd19f073f5120514d
train
class
class CustomFeatureExtractor(Wav2Vec2FeatureExtractor): pass
class CustomFeatureExtractor(Wav2Vec2FeatureExtractor):
pass
from transformers import Wav2Vec2FeatureExtractor class CustomFeatureExtractor(Wav2Vec2FeatureExtractor):
23
64
15
12
10
dctelus/transformers
utils/test_module/custom_feature_extraction.py
Python
CustomFeatureExtractor
CustomFeatureExtractor
4
5
4
4
9898d7c115ce833929fb7cddf8c0baee9f130f20
bigcode/the-stack
train
ab352bfcb49880e4d4893b58
train
class
class TransactionHistoryMixin: @staticmethod def __encode_address_transaction_key(recipient, height, index, cross_shard): cross_shard_byte = b"\x00" if cross_shard else b"\x01" return ( b"index_addr_" + recipient + height.to_bytes(4, "big") + cross...
class TransactionHistoryMixin: @staticmethod
def __encode_address_transaction_key(recipient, height, index, cross_shard): cross_shard_byte = b"\x00" if cross_shard else b"\x01" return ( b"index_addr_" + recipient + height.to_bytes(4, "big") + cross_shard_byte + index.to_bytes(4, "big"...
from typing import Tuple, Optional, List from quarkchain.cluster.rpc import TransactionDetail from quarkchain.core import ( RootBlock, MinorBlock, MinorBlockHeader, CrossShardTransactionList, Branch, Address, CrossShardTransactionDeposit, TypedTransaction, HashList, ) from quarkchai...
105
256
2,031
9
95
QuarkChain/pyquarkchain
quarkchain/cluster/shard_db_operator.py
Python
TransactionHistoryMixin
TransactionHistoryMixin
20
258
20
21
537f6ca97d52e7f96bec3cbe7976b0f4ac275147
bigcode/the-stack
train
ac79adbad6ff0ec50d2416c8
train
class
class ShardDbOperator(TransactionHistoryMixin): def __init__(self, db, env, branch: Branch): self.env = env self.db = db self.branch = branch # height -> set(minor block hash) for counting wasted blocks self.height_to_minor_block_hashes = dict() self.rblock_cache = L...
class ShardDbOperator(TransactionHistoryMixin):
def __init__(self, db, env, branch: Branch): self.env = env self.db = db self.branch = branch # height -> set(minor block hash) for counting wasted blocks self.height_to_minor_block_hashes = dict() self.rblock_cache = LRUCache(maxsize=4096) # enough for 4096 * 60 / ...
= m_block.get_receipt( self.db, index, x_shard_receive_tx_list=None ) tx = m_block.tx_list[index] # type: TypedTransaction evm_tx = tx.tx.to_evm_tx() tx_hash = tx.get_hash() if tx_hash not in tx_hashes and not skip_tx(...
256
256
2,314
9
246
QuarkChain/pyquarkchain
quarkchain/cluster/shard_db_operator.py
Python
ShardDbOperator
ShardDbOperator
261
509
261
261
3c77c39f6a4d7ec13b266c89a827f9b271199681
bigcode/the-stack
train
d4b8d359ea6d9053031190b2
train
function
def hideDockIcon(): bundle = NSBundle.mainBundle() info = bundle.localizedInfoDictionary() or bundle.infoDictionary() info['LSUIElement'] = '1'
def hideDockIcon():
bundle = NSBundle.mainBundle() info = bundle.localizedInfoDictionary() or bundle.infoDictionary() info['LSUIElement'] = '1'
self.opts['saturation'], self.opts['temperature'], len(lights), '\n'.join(lights) if lights else 'No lights found')) window = rumps.Window('', 'Status', default_text=status, dimensions=(700, 600)) window.run() def hideDockIcon():
64
64
37
5
59
emiraga/project_screen_to_lifx
screenshot_lifx.py
Python
hideDockIcon
hideDockIcon
191
194
191
191
2f907485c2397f0f5edfbe9e29f05221b3f26416
bigcode/the-stack
train
0995de0ce509898b61ba2e56
train
function
@click.command() @click.option('--saturation', type=float, default=1.0, help='Scale saturation by a constant') @click.option('--brightness', type=float, default=1.0, help='Scale brightness by a constant') @click.option('--temperature', type=int, default=5500, help='Temperature in Kelvins') def main(**kwargs...
@click.command() @click.option('--saturation', type=float, default=1.0, help='Scale saturation by a constant') @click.option('--brightness', type=float, default=1.0, help='Scale brightness by a constant') @click.option('--temperature', type=int, default=5500, help='Temperature in Kelvins') def main(**kwargs...
hideDockIcon() LifxProjectionStatusBarApp(**kwargs).run()
@click.command() @click.option('--saturation', type=float, default=1.0, help='Scale saturation by a constant') @click.option('--brightness', type=float, default=1.0, help='Scale brightness by a constant') @click.option('--temperature', type=int, default=5500, help='Temperature in Kelvins') def main(**kwargs...
77
64
94
77
0
emiraga/project_screen_to_lifx
screenshot_lifx.py
Python
main
main
197
206
197
204
6298389f2178c8f1d096140646d61f2df5bcdf76
bigcode/the-stack
train
f210cda6040f583979587486
train
class
class LifxProjectionStatusBarApp(rumps.App): ICON = 'eye.png' def __init__(self, **kwargs): menu = [ 'Enable/disable LIFX color projection', 'Status', ] # click provides us with ability to set command line options, # here we convert those options into UI ...
class LifxProjectionStatusBarApp(rumps.App):
ICON = 'eye.png' def __init__(self, **kwargs): menu = [ 'Enable/disable LIFX color projection', 'Status', ] # click provides us with ability to set command line options, # here we convert those options into UI elements in the menu. self.opts = kwa...
, 8, width2 * 4, CG.CGColorSpaceCreateDeviceRGB(), 1) CG.CGContextScaleCTM(context, float(width2)/width, float(height2)/height) CG.CGContextSetInterpolationQuality(context, CG.kCGInterpolationHigh) CG.CGContextDrawImage(context, NSMakeRect(0,0,width,height), image) image2 = CG.CGBitmapContextC...
256
256
856
11
244
emiraga/project_screen_to_lifx
screenshot_lifx.py
Python
LifxProjectionStatusBarApp
LifxProjectionStatusBarApp
90
188
90
90
ef97790901c14a16e2cafb00fedf3084b6f864fe
bigcode/the-stack
train
62ba36065d36a7d1eab7430b
train
function
def average_color_from_screenshot(path = None, path2 = None, region = None): if region is None: region = CG.CGRectInfinite # Create screenshot as CGImage image = CG.CGDisplayCreateImage(get_widest_display()) height = CG.CGImageGetHeight(image) width = CG.CGImageGetWidth(image) if pat...
def average_color_from_screenshot(path = None, path2 = None, region = None):
if region is None: region = CG.CGRectInfinite # Create screenshot as CGImage image = CG.CGDisplayCreateImage(get_widest_display()) height = CG.CGImageGetHeight(image) width = CG.CGImageGetWidth(image) if path: drawImageToFile(image, path) # Create smaller image2 from capt...
path) dest = Quartz.CGImageDestinationCreateWithURL(url, LaunchServices.kUTTypePNG, 1, None) properties = { Quartz.kCGImagePropertyDPIWidth: dpi, Quartz.kCGImagePropertyDPIHeight: dpi, } Q...
113
113
378
20
93
emiraga/project_screen_to_lifx
screenshot_lifx.py
Python
average_color_from_screenshot
average_color_from_screenshot
47
87
47
47
10852c3cc174c15009a725917b3af1411e3985e8
bigcode/the-stack
train
6d9df0452823abeea1a2ccba
train
function
def get_widest_display(): total = 10 (_, active_displays, _) = CG.CGGetActiveDisplayList(total, None, None) return max( active_displays, key=lambda display: CG.CGDisplayScreenSize(display).width)
def get_widest_display():
total = 10 (_, active_displays, _) = CG.CGGetActiveDisplayList(total, None, None) return max( active_displays, key=lambda display: CG.CGDisplayScreenSize(display).width)
umps import click import Quartz import LaunchServices import Cocoa import Quartz.CoreGraphics as CG from AppKit import NSMakeRect, NSColor, NSBundle from lifxlan import LifxLAN import rumps TRANSITION_DURATION = 0.1 def get_widest_display():
64
64
57
6
57
emiraga/project_screen_to_lifx
screenshot_lifx.py
Python
get_widest_display
get_widest_display
23
29
23
23
6b6d80075d9c53d21761bb591d2688161e27aa06
bigcode/the-stack
train
a70142707512489705f46700
train
function
def drawImageToFile(image, path): dpi = 72 # FIXME: Should query this from somewhere, e.g for retina displays url = Cocoa.NSURL.fileURLWithPath_(path) dest = Quartz.CGImageDestinationCreateWithURL(url, LaunchServices.kUTTypePNG, 1, ...
def drawImageToFile(image, path):
dpi = 72 # FIXME: Should query this from somewhere, e.g for retina displays url = Cocoa.NSURL.fileURLWithPath_(path) dest = Quartz.CGImageDestinationCreateWithURL(url, LaunchServices.kUTTypePNG, 1, None) ...
_widest_display(): total = 10 (_, active_displays, _) = CG.CGGetActiveDisplayList(total, None, None) return max( active_displays, key=lambda display: CG.CGDisplayScreenSize(display).width) def drawImageToFile(image, path):
64
64
134
9
55
emiraga/project_screen_to_lifx
screenshot_lifx.py
Python
drawImageToFile
drawImageToFile
32
44
32
32
94c16ca11250f4bd60b5e33af28aced24870df35
bigcode/the-stack
train
73f78d34341a1b4dcd0a804a
train
class
class CreateRecipeJobResponse(DeleteJobResponse): pass
class CreateRecipeJobResponse(DeleteJobResponse):
pass
List] = None class ColumnSelectorList(BaseModel): __root__: Annotated[List[ColumnSelector], Field(min_items=1)] class CreateProjectResponse(BaseModel): Name: ProjectName class CreateRecipeResponse(PublishRecipeResponse): pass class CreateRecipeJobResponse(DeleteJobResponse):
64
64
12
9
54
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
CreateRecipeJobResponse
CreateRecipeJobResponse
860
861
860
860
1b2c025273f770e095063a06da7d994e77f0af66
bigcode/the-stack
train
2d4b9d1a528774edb14214d1
train
class
class InternalServerException(ConflictException): pass
class InternalServerException(ConflictException):
pass
Size(BaseModel): __root__: Annotated[int, Field(ge=1.0, le=5000.0)] class SampleType(Enum): FIRST_N = 'FIRST_N' LAST_N = 'LAST_N' RANDOM = 'RANDOM' class InternalServerException(ConflictException):
64
64
11
8
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
InternalServerException
InternalServerException
80
81
80
80
e8eaa8bdb1832d735d7897e29c8bd9ab9a6f827f
bigcode/the-stack
train
85221504b4135292fdbb44a2
train
class
class DatasetName(RecipeName): pass
class DatasetName(RecipeName):
pass
Each condition is applied to the rows in a dataset first, before the recipe action is performed.</p> """ Condition: Condition Value: Optional[ConditionValue] = None TargetColumn: TargetColumn class CreateColumn(AssumeControl): pass class DatasetName(RecipeName):
64
64
10
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
DatasetName
DatasetName
230
231
230
230
071cd9ba1ac626f3c4991649c11264890c0aa8cb
bigcode/the-stack
train
746f151d080ef1aea183b09b
train
class
class RecipeVersionList(BaseModel): __root__: Annotated[List[RecipeVersion], Field(max_items=50, min_items=1)]
class RecipeVersionList(BaseModel):
__root__: Annotated[List[RecipeVersion], Field(max_items=50, min_items=1)]
)] class ActionId(JobSize): pass class Arn(BaseModel): __root__: Annotated[str, Field(max_length=2048, min_length=20)] class AssumeControl(BaseModel): __root__: bool class Attempt(JobSize): pass class RecipeVersionList(BaseModel):
64
64
29
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
RecipeVersionList
RecipeVersionList
157
158
157
157
1e4d0f3fe7e5c83e2a2a949edb261749cf45fd9a
bigcode/the-stack
train
393fc2dc75840089babeec4e
train
class
class RecipeVersionErrorDetail(BaseModel): """ Represents any errors encountered when attempting to delete multiple recipe versions. """ ErrorCode: Optional[ErrorCode] = None ErrorMessage: Optional[RecipeErrorMessage] = None RecipeVersion: Optional[RecipeVersion] = None
class RecipeVersionErrorDetail(BaseModel):
""" Represents any errors encountered when attempting to delete multiple recipe versions. """ ErrorCode: Optional[ErrorCode] = None ErrorMessage: Optional[RecipeErrorMessage] = None RecipeVersion: Optional[RecipeVersion] = None
IndexList(BaseModel): __root__: Annotated[List[SheetIndex], Field(max_items=1, min_items=1)] class ProjectList(BaseModel): __root__: List[Project] class ScheduleList(BaseModel): __root__: List[Schedule] class RecipeVersionErrorDetail(BaseModel):
64
64
62
8
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
RecipeVersionErrorDetail
RecipeVersionErrorDetail
1,063
1,070
1,063
1,063
354ebdbe4484d4a0e6eca80c8dcd50ed6e374b53
bigcode/the-stack
train
0d9a09214e8aa563c0184b1e
train
class
class RecipeReference(BaseModel): """ Represents the name and version of a DataBrew recipe. """ Name: RecipeName RecipeVersion: Optional[RecipeVersion] = None
class RecipeReference(BaseModel):
""" Represents the name and version of a DataBrew recipe. """ Name: RecipeName RecipeVersion: Optional[RecipeVersion] = None
: SampleType class CreateProjectRequest(BaseModel): DatasetName: DatasetName Name: ProjectName RecipeName: RecipeName Sample: Optional[Sample] = None RoleArn: Arn Tags: Optional[TagMap] = None class RecipeReference(BaseModel):
64
64
41
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
RecipeReference
RecipeReference
305
311
305
305
131a946b0da6527351b751c7b515c8b461877275
bigcode/the-stack
train
3feff3cd2320520af2d78e06
train
class
class StopJobRunResponse(StartJobRunResponse): pass
class StopJobRunResponse(StartJobRunResponse):
pass
): __root__: List[ColumnName] class StartJobRunResponse(BaseModel): RunId: JobRunId class StartProjectSessionResponse(BaseModel): Name: ProjectName ClientSessionId: Optional[ClientSessionId] = None class StopJobRunResponse(StartJobRunResponse):
64
64
13
10
53
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
StopJobRunResponse
StopJobRunResponse
958
959
958
958
a06db8c49f28136f2fa317d6289f2899837472b6
bigcode/the-stack
train
ef6963b7e7b740ae41eb045e
train
class
class TableName(RecipeName): pass
class TableName(RecipeName):
pass
pass class CsvOutputOptions(BaseModel): """ Represents a set of options that define how DataBrew will write a comma-separated value (CSV) file. """ Delimiter: Optional[Delimiter] = None class DatabaseName(RecipeName): pass class TableName(RecipeName):
64
64
10
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
TableName
TableName
361
362
361
361
49cefdffd869fdd05b9d937815d1e71d4b1a0e28
bigcode/the-stack
train
f7e01a6571596a31adae883c
train
class
class DescribeJobResponse(BaseModel): CreateDate: Optional[Date] = None CreatedBy: Optional[CreatedBy] = None DatasetName: Optional[DatasetName] = None EncryptionKeyArn: Optional[EncryptionKeyArn] = None EncryptionMode: Optional[EncryptionMode] = None Name: JobName Type: Optional[JobType] = ...
class DescribeJobResponse(BaseModel):
CreateDate: Optional[Date] = None CreatedBy: Optional[CreatedBy] = None DatasetName: Optional[DatasetName] = None EncryptionKeyArn: Optional[EncryptionKeyArn] = None EncryptionMode: Optional[EncryptionMode] = None Name: JobName Type: Optional[JobType] = None LastModifiedBy: Optional[Last...
Input: Input LastModifiedDate: Optional[Date] = None LastModifiedBy: Optional[LastModifiedBy] = None Source: Optional[Source] = None PathOptions: Optional[PathOptions] = None Tags: Optional[TagMap] = None ResourceArn: Optional[Arn] = None class DescribeJobResponse(BaseModel):
83
83
277
7
75
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
DescribeJobResponse
DescribeJobResponse
1,397
1,420
1,397
1,397
dd3736dbe057fc551b68fc7cc4a90bdc6d62f193
bigcode/the-stack
train
5d4ea65adff32dcfd11936af
train
class
class MaxResults100(BaseModel): __root__: Annotated[int, Field(ge=1.0, le=100.0)]
class MaxResults100(BaseModel):
__root__: Annotated[int, Field(ge=1.0, le=100.0)]
= 'LAST_MODIFIED_DATE' class Order(Enum): DESCENDING = 'DESCENDING' ASCENDING = 'ASCENDING' class ValuesMap(BaseModel): pass class Config: extra = Extra.allow class MultiLine(AssumeControl): pass class MaxResults100(BaseModel):
64
64
29
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
MaxResults100
MaxResults100
558
559
558
558
3170eb89da08c42f851f5c2822d884b43b417680
bigcode/the-stack
train
c5345c4e884f9942f90cdece
train
class
class MaxRetries(StartColumnIndex): pass
class MaxRetries(StartColumnIndex):
pass
pass class EncryptionMode(Enum): SSE_KMS = 'SSE-KMS' SSE_S3 = 'SSE-S3' class LogSubscription(Enum): ENABLE = 'ENABLE' DISABLE = 'DISABLE' class MaxCapacity(JobSize): pass class MaxRetries(StartColumnIndex):
64
64
10
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
MaxRetries
MaxRetries
266
267
266
266
defa7e1dcae3b456e492047b0a6d0df19c092027
bigcode/the-stack
train
a4190cf5bf9769c7c07ba2fc
train
class
class InputFormat(Enum): CSV = 'CSV' JSON = 'JSON' PARQUET = 'PARQUET' EXCEL = 'EXCEL'
class InputFormat(Enum):
CSV = 'CSV' JSON = 'JSON' PARQUET = 'PARQUET' EXCEL = 'EXCEL'
a dataset first, before the recipe action is performed.</p> """ Condition: Condition Value: Optional[ConditionValue] = None TargetColumn: TargetColumn class CreateColumn(AssumeControl): pass class DatasetName(RecipeName): pass class InputFormat(Enum):
64
64
35
5
58
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
InputFormat
InputFormat
234
238
234
234
c1161b966bcfaf4059ccc2034290f22e905a1906
bigcode/the-stack
train
2e26b0a73c69f4dc4fd231fb
train
class
class OutputList(BaseModel): __root__: Annotated[List[Output], Field(min_items=1)]
class OutputList(BaseModel):
__root__: Annotated[List[Output], Field(min_items=1)]
define how DataBrew selects files for a given Amazon S3 path in a dataset. """ LastModifiedDateCondition: Optional[FilterExpression] = None FilesLimit: Optional[FilesLimit] = None Parameters: Optional[PathParametersMap] = None class OutputList(BaseModel):
64
64
22
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
OutputList
OutputList
1,004
1,005
1,004
1,004
4f834068c5b7de49751fb17112ecbc720767863a
bigcode/the-stack
train
df68b7e671b90fa05121d855
train
class
class UpdateRecipeJobRequest(BaseModel): EncryptionKeyArn: Optional[EncryptionKeyArn] = None EncryptionMode: Optional[EncryptionMode] = None LogSubscription: Optional[LogSubscription] = None MaxCapacity: Optional[MaxCapacity] = None MaxRetries: Optional[MaxRetries] = None Outputs: Optional[Outpu...
class UpdateRecipeJobRequest(BaseModel):
EncryptionKeyArn: Optional[EncryptionKeyArn] = None EncryptionMode: Optional[EncryptionMode] = None LogSubscription: Optional[LogSubscription] = None MaxCapacity: Optional[MaxCapacity] = None MaxRetries: Optional[MaxRetries] = None Outputs: Optional[OutputList] = None DataCatalogOutputs: Opt...
Optional[MaxCapacity] = None MaxRetries: Optional[MaxRetries] = None OutputLocation: S3Location RoleArn: Arn Timeout: Optional[Timeout] = None JobSample: Optional[JobSample] = None class UpdateRecipeJobRequest(BaseModel):
64
64
125
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
UpdateRecipeJobRequest
UpdateRecipeJobRequest
1,359
1,369
1,359
1,359
5d45032d62b7e1ea7f8e67c6830f0f003f49495e
bigcode/the-stack
train
41a28fc3e4fc675c198f5e7f
train
class
class UpdateProfileJobRequest(BaseModel): Configuration: Optional[ProfileConfiguration] = None EncryptionKeyArn: Optional[EncryptionKeyArn] = None EncryptionMode: Optional[EncryptionMode] = None LogSubscription: Optional[LogSubscription] = None MaxCapacity: Optional[MaxCapacity] = None MaxRetrie...
class UpdateProfileJobRequest(BaseModel):
Configuration: Optional[ProfileConfiguration] = None EncryptionKeyArn: Optional[EncryptionKeyArn] = None EncryptionMode: Optional[EncryptionMode] = None LogSubscription: Optional[LogSubscription] = None MaxCapacity: Optional[MaxCapacity] = None MaxRetries: Optional[MaxRetries] = None OutputL...
: Optional[ViewFrame] = None class UpdateDatasetRequest(BaseModel): Format: Optional[InputFormat] = None FormatOptions: Optional[FormatOptions] = None Input: Input PathOptions: Optional[PathOptions] = None class UpdateProfileJobRequest(BaseModel):
64
64
117
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
UpdateProfileJobRequest
UpdateProfileJobRequest
1,346
1,356
1,346
1,346
8522bab3a8edc0a312badaabb33788c15a5d3ff3
bigcode/the-stack
train
1b7f3f4d23c6c1523d18f598
train
class
class ListJobRunsResponse(BaseModel): JobRuns: JobRunList NextToken: Optional[NextToken] = None
class ListJobRunsResponse(BaseModel):
JobRuns: JobRunList NextToken: Optional[NextToken] = None
TagMap] = None ResourceArn: Optional[Arn] = None RecipeVersion: Optional[RecipeVersion] = None class ListDatasetsResponse(BaseModel): Datasets: DatasetList NextToken: Optional[NextToken] = None class ListJobRunsResponse(BaseModel):
64
64
28
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
ListJobRunsResponse
ListJobRunsResponse
1,465
1,467
1,465
1,465
ece8c1e2c830c09ad24f7f9bbc2d6998a17f85ff
bigcode/the-stack
train
b63accddf247599bc1720632
train
class
class ParameterMap(BaseModel): pass class Config: extra = Extra.allow
class ParameterMap(BaseModel):
pass class Config: extra = Extra.allow
a set of options that define the structure of comma-separated (CSV) job output. """ Csv: Optional[CsvOutputOptions] = None class ParameterValue(BaseModel): __root__: Annotated[str, Field(max_length=32768, min_length=1)] class ParameterMap(BaseModel):
63
64
19
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
ParameterMap
ParameterMap
625
629
625
625
d2c605631e2b21f9778aa6a2e1b3312872deaf7c
bigcode/the-stack
train
4e1c7c5b68183a500f474fc1
train
class
class Preview(AssumeControl): pass
class Preview(AssumeControl):
pass
Model): pass class Config: extra = Extra.allow class ParameterName(BaseModel): __root__: Annotated[ str, Field(max_length=128, min_length=1, regex='^[A-Za-z0-9]+$') ] class Preview(AssumeControl):
63
64
10
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
Preview
Preview
638
639
638
638
484c73f9f9ba3d112e2ca03c556ff86b8e1f78ed
bigcode/the-stack
train
ff330b1c07db082d6599ff21
train
class
class SheetName(BaseModel): __root__: Annotated[str, Field(max_length=31, min_length=1)]
class SheetName(BaseModel):
__root__: Annotated[str, Field(max_length=31, min_length=1)]
None Tags: Optional[TagMap] = None Name: ScheduleName class StepIndex(StartColumnIndex): pass class SheetIndex(BaseModel): __root__: Annotated[int, Field(ge=0.0, le=200.0)] class SheetName(BaseModel):
63
64
25
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
SheetName
SheetName
700
701
700
700
ff23307960630e13861876d0af3fff87fd9be2be
bigcode/the-stack
train
289930d2b9733505d027e355
train
class
class Date(BaseModel): __root__: datetime
class Date(BaseModel):
__root__: datetime
class TableName(RecipeName): pass class OverwriteOutput(AssumeControl): pass class GlueConnectionName(RecipeName): pass class DatabaseTableName(RecipeName): pass class DatabaseOutputMode(Enum): NEW_TABLE = 'NEW_TABLE' class Date(BaseModel):
64
64
11
5
59
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
Date
Date
381
382
381
381
b1505d5826ba14fd6b910513c6cce10f5447ac67
bigcode/the-stack
train
74f7ac1b4cca511cf7d82306
train
class
class ParameterName(BaseModel): __root__: Annotated[ str, Field(max_length=128, min_length=1, regex='^[A-Za-z0-9]+$') ]
class ParameterName(BaseModel):
__root__: Annotated[ str, Field(max_length=128, min_length=1, regex='^[A-Za-z0-9]+$') ]
Csv: Optional[CsvOutputOptions] = None class ParameterValue(BaseModel): __root__: Annotated[str, Field(max_length=32768, min_length=1)] class ParameterMap(BaseModel): pass class Config: extra = Extra.allow class ParameterName(BaseModel):
64
64
41
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
ParameterName
ParameterName
632
635
632
632
9c94c50dabfce314b350b7a030a6dd2435d10fae
bigcode/the-stack
train
4871892d1f2523048839ce8a
train
class
class ListRecipesResponse(BaseModel): Recipes: RecipeList NextToken: Optional[NextToken] = None
class ListRecipesResponse(BaseModel):
Recipes: RecipeList NextToken: Optional[NextToken] = None
Jobs: JobList NextToken: Optional[NextToken] = None class RecipeList(BaseModel): __root__: List[Recipe] class ListRecipeVersionsResponse(BaseModel): NextToken: Optional[NextToken] = None Recipes: RecipeList class ListRecipesResponse(BaseModel):
64
64
25
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
ListRecipesResponse
ListRecipesResponse
1,484
1,486
1,484
1,484
93a8a6d38a2dae14d9636ac507dd3c1bb16dce85
bigcode/the-stack
train
84ea5b9f85bfd450a01cf4a2
train
class
class DescribeJobRequest(BaseModel): pass
class DescribeJobRequest(BaseModel):
pass
(BaseModel): pass class DeleteJobRequest(BaseModel): pass class DeleteProjectRequest(BaseModel): pass class DeleteRecipeVersionRequest(BaseModel): pass class DeleteScheduleRequest(BaseModel): pass class DescribeDatasetRequest(BaseModel): pass class DescribeJobRequest(BaseModel):
64
64
10
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
DescribeJobRequest
DescribeJobRequest
448
449
448
448
cd8e40149930f4dcc5e5a5a6b027f63f49ffc1cb
bigcode/the-stack
train
446558eb1cb2b24a5d8a8e67
train
class
class StartProjectSessionResponse(BaseModel): Name: ProjectName ClientSessionId: Optional[ClientSessionId] = None
class StartProjectSessionResponse(BaseModel):
Name: ProjectName ClientSessionId: Optional[ClientSessionId] = None
Optional[ParameterMap] = None class ConditionExpressionList(BaseModel): __root__: List[ConditionExpression] class HiddenColumnList(BaseModel): __root__: List[ColumnName] class StartJobRunResponse(BaseModel): RunId: JobRunId class StartProjectSessionResponse(BaseModel):
64
64
28
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
StartProjectSessionResponse
StartProjectSessionResponse
953
955
953
953
a566728d9467a7375eb9bee26dae78e916cdb90e
bigcode/the-stack
train
f698fd2761906d19a9335b43
train
class
class DatetimeFormat(BaseModel): __root__: Annotated[str, Field(max_length=100, min_length=2)]
class DatetimeFormat(BaseModel):
__root__: Annotated[str, Field(max_length=100, min_length=2)]
3 = 'S3' DATA_CATALOG = 'DATA-CATALOG' DATABASE = 'DATABASE' class PathParameterName(RecipeName): pass class ParameterType(Enum): Datetime = 'Datetime' Number = 'Number' String = 'String' class DatetimeFormat(BaseModel):
64
64
26
7
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
DatetimeFormat
DatetimeFormat
405
406
405
405
e0854b9564f468edc3c7b015451269a3c87dfa80
bigcode/the-stack
train
24b614e6ea54c3cb41602a1d
train
class
class JobSample(BaseModel): """ A sample configuration for profile jobs only, which determines the number of rows on which the profile job is run. If a <code>JobSample</code> value isn't provided, the default is used. The default value is CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter. ...
class JobSample(BaseModel):
""" A sample configuration for profile jobs only, which determines the number of rows on which the profile job is run. If a <code>JobSample</code> value isn't provided, the default is used. The default value is CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter. """ Mode: Optional[Sam...
SSE_S3 = 'SSE-S3' class LogSubscription(Enum): ENABLE = 'ENABLE' DISABLE = 'DISABLE' class MaxCapacity(JobSize): pass class MaxRetries(StartColumnIndex): pass class Timeout(StartColumnIndex): pass class JobSample(BaseModel):
64
64
94
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
JobSample
JobSample
274
280
274
274
9d1a477be9f41ab428572f111a470fcfe76ad02c
bigcode/the-stack
train
09bd72232414aa6cc7416eee
train
class
class ErrorCode(BaseModel): __root__: Annotated[str, Field(regex='^[1-5][0-9][0-9]$')]
class ErrorCode(BaseModel):
__root__: Annotated[str, Field(regex='^[1-5][0-9][0-9]$')]
ATING = 'TERMINATING' UPDATING = 'UPDATING' class OpenedBy(CreatedBy): pass class DescribeRecipeRequest(BaseModel): pass class PublishedBy(CreatedBy): pass class DescribeScheduleRequest(BaseModel): pass class ErrorCode(BaseModel):
64
64
32
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
ErrorCode
ErrorCode
524
525
524
524
1d3763ce43aef851634a2411d87cd85c1a95f578
bigcode/the-stack
train
dcea368c350e368e8e5c21a3
train
class
class RecipeErrorMessage(CreatedBy): pass
class RecipeErrorMessage(CreatedBy):
pass
= None RoleArn: Optional[Arn] = None OpenedBy: Optional[OpenedBy] = None OpenDate: Optional[Date] = None class PublishRecipeRequest(BaseModel): Description: Optional[RecipeDescription] = None class RecipeErrorMessage(CreatedBy):
64
64
11
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
RecipeErrorMessage
RecipeErrorMessage
667
668
667
667
9e135affdbc9c7800e21f4a1fb73db305e79581d
bigcode/the-stack
train
8555c5e63ec1bb044d69b561
train
class
class CreateProjectResponse(BaseModel): Name: ProjectName
class CreateProjectResponse(BaseModel):
Name: ProjectName
the parameters of selected evaluations. """ IncludedStatistics: Optional[StatisticList] = None Overrides: Optional[StatisticOverrideList] = None class ColumnSelectorList(BaseModel): __root__: Annotated[List[ColumnSelector], Field(min_items=1)] class CreateProjectResponse(BaseModel):
63
64
13
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
CreateProjectResponse
CreateProjectResponse
852
853
852
852
ead2dca526b2bee749dae72bb5d8e4a17f9d38ac
bigcode/the-stack
train
580e38c6f0049b8f25e94c5e
train
class
class DeleteProjectResponse(CreateProjectResponse): pass
class DeleteProjectResponse(CreateProjectResponse):
pass
Location: S3Location Overwrite: Optional[OverwriteOutput] = None FormatOptions: Optional[OutputFormatOptions] = None class CreateScheduleResponse(BaseModel): Name: ScheduleName class DeleteDatasetResponse(CreateDatasetResponse): pass class DeleteProjectResponse(CreateProjectResponse):
64
64
11
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
DeleteProjectResponse
DeleteProjectResponse
885
886
885
885
c61cd2a1f870ffb1fa0a3402634a638d08d3e0e9
bigcode/the-stack
train
ad0878479f16deb3bd13c580
train
class
class StatisticOverrideList(BaseModel): __root__: Annotated[List[StatisticOverride], Field(min_items=1)]
class StatisticOverrideList(BaseModel):
__root__: Annotated[List[StatisticOverride], Field(min_items=1)]
pass class StatisticList(BaseModel): __root__: Annotated[List[Statistic], Field(min_items=1)] class StatisticOverride(BaseModel): """ Override of a particular evaluation for a profile job. """ Statistic: Statistic Parameters: ParameterMap class StatisticOverrideList(BaseModel):
64
64
24
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
StatisticOverrideList
StatisticOverrideList
729
730
729
729
cb462df15da4425e82a97af2f62ef1bfd5d14972
bigcode/the-stack
train
b5db45b555190435e994da8a
train
class
class ColumnRange(BaseModel): __root__: Annotated[int, Field(ge=0.0, le=20.0)]
class ColumnRange(BaseModel):
__root__: Annotated[int, Field(ge=0.0, le=20.0)]
class DeleteRecipeVersionResponse(BaseModel): Name: RecipeName RecipeVersion: RecipeVersion class PublishRecipeResponse(BaseModel): Name: RecipeName class StartColumnIndex(BaseModel): __root__: Annotated[int, Field(ge=0.0)] class ColumnRange(BaseModel):
63
64
28
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
ColumnRange
ColumnRange
109
110
109
109
20f05f17c0b227aeeba4f59aa89044bde4c7c9f1
bigcode/the-stack
train
13361f51526978a8909da152
train
class
class Operation(Condition): pass
class Operation(Condition):
pass
(BaseModel): pass class ListProjectsRequest(BaseModel): pass class ListRecipeVersionsRequest(BaseModel): pass class ListRecipesRequest(BaseModel): pass class ListSchedulesRequest(BaseModel): pass class ListTagsForResourceRequest(BaseModel): pass class Operation(Condition):
64
64
8
5
58
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
Operation
Operation
598
599
598
598
e5886f319a74bab1147703befb0157307fb78c1d
bigcode/the-stack
train
22dcf78ac6d9b456e5c27c5e
train
class
class NextToken(BaseModel): __root__: Annotated[str, Field(max_length=2000, min_length=1)]
class NextToken(BaseModel):
__root__: Annotated[str, Field(max_length=2000, min_length=1)]
Map(BaseModel): pass class Config: extra = Extra.allow class MultiLine(AssumeControl): pass class MaxResults100(BaseModel): __root__: Annotated[int, Field(ge=1.0, le=100.0)] class NextToken(BaseModel):
63
64
26
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
NextToken
NextToken
562
563
562
562
421430e29005bbb8c9f89ef24b4264a73d0032bd
bigcode/the-stack
train
c7f43212012e0e4287efc249
train
class
class CreateRecipeJobRequest(BaseModel): DatasetName: Optional[DatasetName] = None EncryptionKeyArn: Optional[EncryptionKeyArn] = None EncryptionMode: Optional[EncryptionMode] = None Name: JobName LogSubscription: Optional[LogSubscription] = None MaxCapacity: Optional[MaxCapacity] = None Max...
class CreateRecipeJobRequest(BaseModel):
DatasetName: Optional[DatasetName] = None EncryptionKeyArn: Optional[EncryptionKeyArn] = None EncryptionMode: Optional[EncryptionMode] = None Name: JobName LogSubscription: Optional[LogSubscription] = None MaxCapacity: Optional[MaxCapacity] = None MaxRetries: Optional[MaxRetries] = None ...
] = None class DataCatalogOutputList(BaseModel): __root__: Annotated[List[DataCatalogOutput], Field(min_items=1)] class DatabaseOutputList(BaseModel): __root__: Annotated[List[DatabaseOutput], Field(min_items=1)] class CreateRecipeJobRequest(BaseModel):
63
64
178
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
CreateRecipeJobRequest
CreateRecipeJobRequest
1,196
1,211
1,196
1,196
0330749cb45884aa631a8a0e43e03009a2b7bffa
bigcode/the-stack
train
2e3e3bcd37c2afcf79190589
train
class
class Attempt(JobSize): pass
class Attempt(JobSize):
pass
__: Annotated[str, Field(max_length=255)] class ActionId(JobSize): pass class Arn(BaseModel): __root__: Annotated[str, Field(max_length=2048, min_length=20)] class AssumeControl(BaseModel): __root__: bool class Attempt(JobSize):
64
64
8
5
58
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
Attempt
Attempt
153
154
153
153
12ec311575d36b9d2106384b93e8cec1dee084dc
bigcode/the-stack
train
082a4e0dde8677f752a7ac79
train
class
class DescribeScheduleResponse(BaseModel): CreateDate: Optional[Date] = None CreatedBy: Optional[CreatedBy] = None JobNames: Optional[JobNameList] = None LastModifiedBy: Optional[LastModifiedBy] = None LastModifiedDate: Optional[Date] = None ResourceArn: Optional[Arn] = None CronExpression: ...
class DescribeScheduleResponse(BaseModel):
CreateDate: Optional[Date] = None CreatedBy: Optional[CreatedBy] = None JobNames: Optional[JobNameList] = None LastModifiedBy: Optional[LastModifiedBy] = None LastModifiedDate: Optional[Date] = None ResourceArn: Optional[Arn] = None CronExpression: Optional[CronExpression] = None Tags: O...
RoleArn: Optional[Arn] = None Tags: Optional[TagMap] = None SessionStatus: Optional[SessionStatus] = None OpenedBy: Optional[OpenedBy] = None OpenDate: Optional[Date] = None class DescribeScheduleResponse(BaseModel):
64
64
109
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
DescribeScheduleResponse
DescribeScheduleResponse
910
919
910
910
25fe2ec798573ff4ad13b3a96f6c7a3c0c2e1e90
bigcode/the-stack
train
1449d724c8c14cc1dc6e3dbe
train
class
class AccountId(BaseModel): __root__: Annotated[str, Field(max_length=255)]
class AccountId(BaseModel):
__root__: Annotated[str, Field(max_length=255)]
Model): __root__: Annotated[str, Field(max_length=128, min_length=1)] class UpdateProfileJobResponse(DeleteJobResponse): pass class UpdateRecipeResponse(PublishRecipeResponse): pass class UpdateRecipeJobResponse(DeleteJobResponse): pass class AccountId(BaseModel):
64
64
20
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
AccountId
AccountId
137
138
137
137
6bad4f86495b101c8807f461ce904242a288ccc4
bigcode/the-stack
train
529f6c3bf33f5fb6fe1242fa
train
class
class PathParameterName(RecipeName): pass
class PathParameterName(RecipeName):
pass
_TABLE = 'NEW_TABLE' class Date(BaseModel): __root__: datetime class LastModifiedBy(CreatedBy): pass class Source(Enum): S3 = 'S3' DATA_CATALOG = 'DATA-CATALOG' DATABASE = 'DATABASE' class PathParameterName(RecipeName):
64
64
11
8
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
PathParameterName
PathParameterName
395
396
395
395
1261b040fd9514f497da4ef42dc1a3635fbf3d48
bigcode/the-stack
train
25e22b2ff3dab72d659d3f26
train
class
class UpdateScheduleResponse(CreateScheduleResponse): pass
class UpdateScheduleResponse(CreateScheduleResponse):
pass
ClientSessionId] = None class StopJobRunResponse(StartJobRunResponse): pass class UpdateDatasetResponse(CreateDatasetResponse): pass class UpdateProjectResponse(BaseModel): LastModifiedDate: Optional[Date] = None Name: ProjectName class UpdateScheduleResponse(CreateScheduleResponse):
64
64
11
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
UpdateScheduleResponse
UpdateScheduleResponse
971
972
971
971
a1407f8792874f0f3f914ed7941890add00d5a96
bigcode/the-stack
train
9c69725f1c679634feb26145
train
class
class UpdateDatasetResponse(CreateDatasetResponse): pass
class UpdateDatasetResponse(CreateDatasetResponse):
pass
StartJobRunResponse(BaseModel): RunId: JobRunId class StartProjectSessionResponse(BaseModel): Name: ProjectName ClientSessionId: Optional[ClientSessionId] = None class StopJobRunResponse(StartJobRunResponse): pass class UpdateDatasetResponse(CreateDatasetResponse):
64
64
11
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
UpdateDatasetResponse
UpdateDatasetResponse
962
963
962
962
706521600be94290967324f54c2d54d05cdbd0ec
bigcode/the-stack
train
c3b66508f10a985b4b1213ae
train
class
class UpdateProfileJobResponse(DeleteJobResponse): pass
class UpdateProfileJobResponse(DeleteJobResponse):
pass
le=20.0)] class TagResourceResponse(BaseModel): pass class UntagResourceResponse(TagResourceResponse): pass class TagKey(BaseModel): __root__: Annotated[str, Field(max_length=128, min_length=1)] class UpdateProfileJobResponse(DeleteJobResponse):
63
64
12
9
54
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
UpdateProfileJobResponse
UpdateProfileJobResponse
125
126
125
125
e639fc4472d6570964a5ba91d276d0350e36844f
bigcode/the-stack
train
c10bb4deaaeb3a0a0e3d2676
train
class
class ActionId(JobSize): pass
class ActionId(JobSize):
pass
class UpdateProfileJobResponse(DeleteJobResponse): pass class UpdateRecipeResponse(PublishRecipeResponse): pass class UpdateRecipeJobResponse(DeleteJobResponse): pass class AccountId(BaseModel): __root__: Annotated[str, Field(max_length=255)] class ActionId(JobSize):
63
64
9
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
ActionId
ActionId
141
142
141
141
7027156e8a59eb01ed1b7baf55a6f2e3defd3b17
bigcode/the-stack
train
fbc2d6a0de037d01475fa54f
train
class
class Expression(BaseModel): __root__: Annotated[ str, Field(max_length=1024, min_length=4, regex='^[<>0-9A-Za-z_:)(!= ]+$') ]
class Expression(BaseModel):
__root__: Annotated[ str, Field(max_length=1024, min_length=4, regex='^[<>0-9A-Za-z_:)(!= ]+$') ]
(BaseModel): pass class PublishedBy(CreatedBy): pass class DescribeScheduleRequest(BaseModel): pass class ErrorCode(BaseModel): __root__: Annotated[str, Field(regex='^[1-5][0-9][0-9]$')] class Expression(BaseModel):
63
64
45
5
58
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
Expression
Expression
528
531
528
528
de5561c408a95916026dce552ecd1fcb24014496
bigcode/the-stack
train
73999c12daa5f9c7474fb146
train
class
class DatabaseTableName(RecipeName): pass
class DatabaseTableName(RecipeName):
pass
""" Delimiter: Optional[Delimiter] = None class DatabaseName(RecipeName): pass class TableName(RecipeName): pass class OverwriteOutput(AssumeControl): pass class GlueConnectionName(RecipeName): pass class DatabaseTableName(RecipeName):
64
64
11
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
DatabaseTableName
DatabaseTableName
373
374
373
373
7647eba5b151a721538323eee7809caa55f32dc4
bigcode/the-stack
train
54abab4b105d2a6909a76272
train
class
class JobRunList(BaseModel): __root__: List[JobRun]
class JobRunList(BaseModel):
__root__: List[JobRun]
: Optional[DatabaseOutputList] = None RecipeReference: Optional[RecipeReference] = None StartedBy: Optional[StartedBy] = None StartedOn: Optional[Date] = None JobSample: Optional[JobSample] = None class JobRunList(BaseModel):
64
64
16
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
JobRunList
JobRunList
1,307
1,308
1,307
1,307
0b44eaf7cac5f9fff8105ebf0cc3525c33982e10
bigcode/the-stack
train
a812335e0530c31c802fd8a7
train
class
class DeleteScheduleRequest(BaseModel): pass
class DeleteScheduleRequest(BaseModel):
pass
-z0-9_\\.#@\\-]+$') ] class DeleteDatasetRequest(BaseModel): pass class DeleteJobRequest(BaseModel): pass class DeleteProjectRequest(BaseModel): pass class DeleteRecipeVersionRequest(BaseModel): pass class DeleteScheduleRequest(BaseModel):
64
64
10
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
DeleteScheduleRequest
DeleteScheduleRequest
440
441
440
440
b39f70096e42d5b3234768d62c4345ced589810c
bigcode/the-stack
train
cf884c7f65d1587e727c5f59
train
class
class Recipe(BaseModel): """ Represents one or more actions to be performed on a DataBrew dataset. """ CreatedBy: Optional[CreatedBy] = None CreateDate: Optional[Date] = None LastModifiedBy: Optional[LastModifiedBy] = None LastModifiedDate: Optional[Date] = None ProjectName: Optional[Pr...
class Recipe(BaseModel):
""" Represents one or more actions to be performed on a DataBrew dataset. """ CreatedBy: Optional[CreatedBy] = None CreateDate: Optional[Date] = None LastModifiedBy: Optional[LastModifiedBy] = None LastModifiedDate: Optional[Date] = None ProjectName: Optional[ProjectName] = None Pub...
Optional[RecipeReference] = None StartedBy: Optional[StartedBy] = None StartedOn: Optional[Date] = None JobSample: Optional[JobSample] = None class JobRunList(BaseModel): __root__: List[JobRun] class Recipe(BaseModel):
64
64
172
5
59
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
Recipe
Recipe
1,311
1,328
1,311
1,311
fff0fda48310799ce96ec14c420df4e360e1359f
bigcode/the-stack
train
ce2df712ecb9cfe946fc96fc
train
class
class ListJobRunsRequest(BaseModel): pass
class ListJobRunsRequest(BaseModel):
pass
ated[int, Field(ge=1.0, le=100.0)] class NextToken(BaseModel): __root__: Annotated[str, Field(max_length=2000, min_length=1)] class ListDatasetsRequest(BaseModel): pass class ListJobRunsRequest(BaseModel):
64
64
11
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
ListJobRunsRequest
ListJobRunsRequest
570
571
570
570
b55dca37f3dc92d8aac51a94d8017a56fd21fbe3
bigcode/the-stack
train
067a3f85a76069a1c80acd68
train
class
class DataCatalogOutputList(BaseModel): __root__: Annotated[List[DataCatalogOutput], Field(min_items=1)]
class DataCatalogOutputList(BaseModel):
__root__: Annotated[List[DataCatalogOutput], Field(min_items=1)]
Location: S3Location Configuration: Optional[ProfileConfiguration] = None RoleArn: Arn Tags: Optional[TagMap] = None Timeout: Optional[Timeout] = None JobSample: Optional[JobSample] = None class DataCatalogOutputList(BaseModel):
64
64
26
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
DataCatalogOutputList
DataCatalogOutputList
1,188
1,189
1,188
1,188
41098e76e2ad25a3a1d26d4f3252fefe55c074fc
bigcode/the-stack
train
95b4f664074259e1cc4ad19f
train
class
class LogSubscription(Enum): ENABLE = 'ENABLE' DISABLE = 'DISABLE'
class LogSubscription(Enum):
ENABLE = 'ENABLE' DISABLE = 'DISABLE'
EXCEL' class TagMap(BaseModel): pass class Config: extra = Extra.allow class EncryptionKeyArn(Arn): pass class EncryptionMode(Enum): SSE_KMS = 'SSE-KMS' SSE_S3 = 'SSE-S3' class LogSubscription(Enum):
64
64
19
5
59
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
LogSubscription
LogSubscription
257
259
257
257
11ed587b2febeba2c034db96f93c34457a8e2b26
bigcode/the-stack
train
a29f6577942b8ce497e78667
train
class
class Result(CreatedBy): pass
class Result(CreatedBy):
pass
Arn] = None OpenedBy: Optional[OpenedBy] = None OpenDate: Optional[Date] = None class PublishRecipeRequest(BaseModel): Description: Optional[RecipeDescription] = None class RecipeErrorMessage(CreatedBy): pass class Result(CreatedBy):
64
64
9
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
Result
Result
671
672
671
671
6efb5da7c6a2a2bc8b5f2ea0a22a82f2d77d1e4d
bigcode/the-stack
train
5cee9396db4454e3b2da02bc
train
class
class Delimiter(BaseModel): __root__: Annotated[str, Field(max_length=1, min_length=1)]
class Delimiter(BaseModel):
__root__: Annotated[str, Field(max_length=1, min_length=1)]
pass class CreateScheduleRequest(BaseModel): JobNames: Optional[JobNameList] = None CronExpression: CronExpression Tags: Optional[TagMap] = None Name: ScheduleName class CreatedBy(BaseModel): __root__: str class Delimiter(BaseModel):
64
64
25
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
Delimiter
Delimiter
341
342
341
341
215cfc76d52c52c61eb96898a0977fcdafe35f1f
bigcode/the-stack
train
f3c2f8bc20d2a6b213f794d6
train
class
class RecipeVersion(BaseModel): __root__: Annotated[str, Field(max_length=16, min_length=1)]
class RecipeVersion(BaseModel):
__root__: Annotated[str, Field(max_length=16, min_length=1)]
2021-12-31T02:47:13+00:00 from __future__ import annotations from datetime import datetime from enum import Enum from typing import Annotated, Any, List, Optional from pydantic import BaseModel, Extra, Field class RecipeVersion(BaseModel):
64
64
25
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
RecipeVersion
RecipeVersion
14
15
14
14
efe8c89eb52a0e5e34c853486dacd56d29896216
bigcode/the-stack
train
e5b63ea1932853110e592eba
train
class
class DatasetList(BaseModel): __root__: List[Dataset]
class DatasetList(BaseModel):
__root__: List[Dataset]
LastModifiedBy: Optional[LastModifiedBy] = None Source: Optional[Source] = None PathOptions: Optional[PathOptions] = None Tags: Optional[TagMap] = None ResourceArn: Optional[Arn] = None class DatasetList(BaseModel):
64
64
14
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
DatasetList
DatasetList
1,245
1,246
1,245
1,245
571b46650d431ed65b2f5bab065564fcb4133676
bigcode/the-stack
train
3152c46c0399be356dc1d946
train
class
class CompressionFormat(Enum): GZIP = 'GZIP' LZ4 = 'LZ4' SNAPPY = 'SNAPPY' BZIP2 = 'BZIP2' DEFLATE = 'DEFLATE' LZO = 'LZO' BROTLI = 'BROTLI' ZSTD = 'ZSTD' ZLIB = 'ZLIB'
class CompressionFormat(Enum):
GZIP = 'GZIP' LZ4 = 'LZ4' SNAPPY = 'SNAPPY' BZIP2 = 'BZIP2' DEFLATE = 'DEFLATE' LZO = 'LZO' BROTLI = 'BROTLI' ZSTD = 'ZSTD' ZLIB = 'ZLIB'
)] class ColumnSelector(BaseModel): """ Selector of a column from a dataset for profile job configuration. One selector includes either a column name or a regular expression. """ Regex: Optional[ColumnName] = None Name: Optional[ColumnName] = None class CompressionFormat(Enum):
64
64
85
5
58
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
CompressionFormat
CompressionFormat
192
201
192
192
e14d5ac1ec3668e8d72dc595b636908dba545dde
bigcode/the-stack
train
0fb69dacf74ab562cc6c9fbe
train
class
class ColumnStatisticsConfiguration(BaseModel): """ Configuration for column evaluations for a profile job. ColumnStatisticsConfiguration can be used to select evaluations and override parameters of evaluations for particular columns. """ Selectors: Optional[ColumnSelectorList] = None Statistics: S...
class ColumnStatisticsConfiguration(BaseModel):
""" Configuration for column evaluations for a profile job. ColumnStatisticsConfiguration can be used to select evaluations and override parameters of evaluations for particular columns. """ Selectors: Optional[ColumnSelectorList] = None Statistics: StatisticsConfiguration
RunResponse(StartJobRunResponse): pass class UpdateDatasetResponse(CreateDatasetResponse): pass class UpdateProjectResponse(BaseModel): LastModifiedDate: Optional[Date] = None Name: ProjectName class UpdateScheduleResponse(CreateScheduleResponse): pass class ColumnStatisticsConfiguration(BaseM...
64
64
58
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
ColumnStatisticsConfiguration
ColumnStatisticsConfiguration
975
981
975
975
64ee5190b8e3e9f379173a26cb845be02601896b
bigcode/the-stack
train
e7d71ec951300e68a4fc9910
train
class
class Key(BaseModel): __root__: Annotated[str, Field(max_length=1280, min_length=1)]
class Key(BaseModel):
__root__: Annotated[str, Field(max_length=1280, min_length=1)]
Annotated[str, Field(max_length=256)] class AccessDeniedException(ConflictException): pass class ServiceQuotaExceededException(ConflictException): pass class Bucket(BaseModel): __root__: Annotated[str, Field(max_length=63, min_length=3)] class Key(BaseModel):
63
64
25
5
58
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
Key
Key
57
58
57
57
2118ddf7cb29311f537795f649bb7e816fcda536
bigcode/the-stack
train
e76197a877560115bccce642
train
class
class SheetIndex(BaseModel): __root__: Annotated[int, Field(ge=0.0, le=200.0)]
class SheetIndex(BaseModel):
__root__: Annotated[int, Field(ge=0.0, le=200.0)]
: Optional[Date] = None ResourceArn: Optional[Arn] = None CronExpression: Optional[CronExpression] = None Tags: Optional[TagMap] = None Name: ScheduleName class StepIndex(StartColumnIndex): pass class SheetIndex(BaseModel):
64
64
28
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
SheetIndex
SheetIndex
696
697
696
696
3539cab6358a8f5cb6c20f102b561c9b374136c6
bigcode/the-stack
train
b7d9a575c8d3a715452e8068
train
class
class TagMap(BaseModel): pass class Config: extra = Extra.allow
class TagMap(BaseModel):
pass class Config: extra = Extra.allow
Column class CreateColumn(AssumeControl): pass class DatasetName(RecipeName): pass class InputFormat(Enum): CSV = 'CSV' JSON = 'JSON' PARQUET = 'PARQUET' EXCEL = 'EXCEL' class TagMap(BaseModel):
64
64
19
6
58
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
TagMap
TagMap
241
245
241
241
dd45b0f1de743c5cfd58f96a622fe3b435fea624
bigcode/the-stack
train
586504036dad8cc334e9ed59
train
class
class LastModifiedBy(CreatedBy): pass
class LastModifiedBy(CreatedBy):
pass
Output(AssumeControl): pass class GlueConnectionName(RecipeName): pass class DatabaseTableName(RecipeName): pass class DatabaseOutputMode(Enum): NEW_TABLE = 'NEW_TABLE' class Date(BaseModel): __root__: datetime class LastModifiedBy(CreatedBy):
64
64
11
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
LastModifiedBy
LastModifiedBy
385
386
385
385
54d7c4665ed842ad647be84efb2c0cc8414451f0
bigcode/the-stack
train
a4243ce567f47b07e49b82dd
train
class
class ConditionValue(BaseModel): __root__: Annotated[str, Field(max_length=1024)]
class ConditionValue(BaseModel):
__root__: Annotated[str, Field(max_length=1024)]
LI = 'BROTLI' ZSTD = 'ZSTD' ZLIB = 'ZLIB' class Condition(BaseModel): __root__: Annotated[str, Field(max_length=128, min_length=1, regex='^[A-Z\\_]+$')] class ConditionValue(BaseModel):
63
64
21
6
57
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
ConditionValue
ConditionValue
208
209
208
208
43f2c6be206b9b1f8969d1c494a28a76bcce6b41
bigcode/the-stack
train
ec3ab42c62d34b08de2f522e
train
class
class StopJobRunRequest(BaseModel): pass
class StopJobRunRequest(BaseModel):
pass
StatisticOverride(BaseModel): """ Override of a particular evaluation for a profile job. """ Statistic: Statistic Parameters: ParameterMap class StatisticOverrideList(BaseModel): __root__: Annotated[List[StatisticOverride], Field(min_items=1)] class StopJobRunRequest(BaseModel):
63
64
11
8
55
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
StopJobRunRequest
StopJobRunRequest
733
734
733
733
1757b73533492d319d33391a3290d65ba497efd0
bigcode/the-stack
train
825e7419bda6a11502baeaec
train
class
class DescribeDatasetResponse(BaseModel): CreatedBy: Optional[CreatedBy] = None CreateDate: Optional[Date] = None Name: DatasetName Format: Optional[InputFormat] = None FormatOptions: Optional[FormatOptions] = None Input: Input LastModifiedDate: Optional[Date] = None LastModifiedBy: Opti...
class DescribeDatasetResponse(BaseModel):
CreatedBy: Optional[CreatedBy] = None CreateDate: Optional[Date] = None Name: DatasetName Format: Optional[InputFormat] = None FormatOptions: Optional[FormatOptions] = None Input: Input LastModifiedDate: Optional[Date] = None LastModifiedBy: Optional[LastModifiedBy] = None Source: Op...
class UpdateRecipeRequest(BaseModel): Description: Optional[RecipeDescription] = None Steps: Optional[RecipeStepList] = None class BatchDeleteRecipeVersionResponse(BaseModel): Name: RecipeName Errors: Optional[RecipeErrorList] = None class DescribeDatasetResponse(BaseModel):
64
64
134
7
56
RyanJarv/Pacu2
pacu/models/awsapi/databrew.py
Python
DescribeDatasetResponse
DescribeDatasetResponse
1,382
1,394
1,382
1,382
16ffd98aeb01313ad15dacac3bdf6307dac51b18
bigcode/the-stack
train