repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
gaybro8777/klio | devtools/src/klio_devtools/commands/develop.py | <gh_stars>100-1000
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... |
gaybro8777/klio | exec/tests/unit/commands/utils/test_profile_utils.py | <filename>exec/tests/unit/commands/utils/test_profile_utils.py
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... |
gaybro8777/klio | lib/tests/unit/metrics/test_dispatcher.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | core/tests/test_dataflow.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | integration/audio-spectrograms/run.py | <reponame>gaybro8777/klio<gh_stars>0
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
gaybro8777/klio | core/src/klio_core/config/_converters.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | lib/src/klio/metrics/client.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | lib/tests/unit/utils/test_thread_limiter.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | exec/tests/unit/commands/utils/test_plugin_utils.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | exec/tests/unit/commands/audit_steps/test_numpy_broken_blas.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | exec/tests/unit/commands/utils/test_cpu_utils.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | cli/src/klio_cli/options.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | exec/tests/unit/commands/audit_steps/conftest.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | cli/src/klio_cli/commands/job/run.py | <reponame>gaybro8777/klio
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |
gaybro8777/klio | core/tests/config/test_preprocessing.py | <gh_stars>100-1000
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... |
gaybro8777/klio | cli/tests/commands/job/test_verify.py | <reponame>gaybro8777/klio<filename>cli/tests/commands/job/test_verify.py
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... |
gaybro8777/klio | cli/src/klio_cli/utils/docker_utils.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | docs/src/_ext/collapsible_admon.py | <reponame>gaybro8777/klio
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... |
gaybro8777/klio | examples/snippets/custom_ext_checks.py | <reponame>gaybro8777/klio
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... |
gaybro8777/klio | cli/src/klio_cli/commands/job/audit.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | examples/audio_spectrograms/transforms.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | cli/tests/commands/job/test_delete.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | integration/read-bq-write-bq/it/common.py | <filename>integration/read-bq-write-bq/it/common.py
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... |
gaybro8777/klio | exec/tests/unit/commands/utils/test_memory_utils.py | <reponame>gaybro8777/klio<filename>exec/tests/unit/commands/utils/test_memory_utils.py
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org... |
gaybro8777/klio | exec/tests/unit/commands/utils/test_wrappers.py | <filename>exec/tests/unit/commands/utils/test_wrappers.py
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... |
gaybro8777/klio | cli/tests/commands/job/utils/fixtures/expected/__init__.py | <filename>cli/tests/commands/job/utils/fixtures/expected/__init__.py
"""
Notice: Do not delete this file! Klio will not be able to run your job!
"""
|
gaybro8777/klio | integration/audio-spectrograms/transforms.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | cli/tests/commands/job/utils/fixtures/expected/test_transforms.py | <reponame>gaybro8777/klio<filename>cli/tests/commands/job/utils/fixtures/expected/test_transforms.py
"""
Notice: the code below is just a simple example of how to write unit
tests for a transform.
Feel free to import what's needed, rewrite tests, etc.
"""
import pytest
from klio_core.proto import klio_pb2
import tra... |
gaybro8777/klio | docs/src/conf.py | <filename>docs/src/conf.py
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... |
gaybro8777/klio | cli/src/klio_cli/commands/image/build.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | lib/src/klio/metrics/base.py | <reponame>gaybro8777/klio
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |
gaybro8777/klio | integration/read-bq-write-bq/it/after.py | <reponame>gaybro8777/klio<gh_stars>100-1000
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... |
gaybro8777/klio | cli/src/klio_cli/utils/cli_utils.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | cli/tests/utils/test_multi_line_terminal_writer.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | cli/tests/utils/test_cli_utils.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | exec/src/klio_exec/commands/audit_steps/base.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | audio/src/klio_audio/transforms/audio.py | <reponame>gaybro8777/klio
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... |
gaybro8777/klio | exec/src/klio_exec/commands/audit.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | exec/tests/unit/commands/test_stop.py | <reponame>gaybro8777/klio
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |
gaybro8777/klio | cli/tests/commands/message/test_publish.py | <gh_stars>100-1000
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... |
gaybro8777/klio | lib/src/klio/transforms/io.py | <reponame>gaybro8777/klio<filename>lib/src/klio/transforms/io.py
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... |
gaybro8777/klio | cli/src/klio_cli/utils/multi_line_terminal_writer.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | exec/tests/unit/commands/test_profile.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | lib/tests/unit/metrics/test_stackdriver.py | <filename>lib/tests/unit/metrics/test_stackdriver.py
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... |
gaybro8777/klio | audio/src/klio_audio/transforms/io.py | <gh_stars>100-1000
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... |
gaybro8777/klio | exec/src/klio_exec/commands/audit_steps/numpy_broken_blas.py | <reponame>gaybro8777/klio
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... |
gaybro8777/klio | cli/tests/commands/job/utils/fixtures/expected/transforms.py | <filename>cli/tests/commands/job/utils/fixtures/expected/transforms.py
"""
Notice: the code below is just an example of what can be done.
Feel free to import what's needed, including third-party libraries or
other self-written modules.
"""
import apache_beam as beam
from klio.transforms import decorators
class Hell... |
gaybro8777/klio | core/src/klio_core/config/_io.py | <reponame>gaybro8777/klio<gh_stars>1-10
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... |
gaybro8777/klio | lib/tests/unit/transforms/test_decorators.py | <filename>lib/tests/unit/transforms/test_decorators.py
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... |
gaybro8777/klio | lib/src/klio/transforms/core.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | cli/tests/commands/job/test_test.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | core/src/klio_core/dataflow.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | cli/tests/commands/job/utils/fixtures/expected/run.py | <gh_stars>100-1000
"""
Notice: the code within `run` is just an example of what can be done.
Feel free to import what's needed, including third-party libraries or
other self-written modules.
"""
import apache_beam as beam
import transforms
def run(input_pcol, config):
"""REQUIRED: Main entrypoint in running a ... |
gaybro8777/klio | cli/tests/utils/test_docker_utils.py | <reponame>gaybro8777/klio
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |
gaybro8777/klio | exec/src/klio_exec/commands/utils/cpu_utils.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | exec/src/klio_exec/options.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | cli/tests/commands/image/test_build.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | cli/tests/utils/test_stackdriver_utils.py | <filename>cli/tests/utils/test_stackdriver_utils.py
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... |
gaybro8777/klio | lib/src/klio/metrics/logger.py | <reponame>gaybro8777/klio<filename>lib/src/klio/metrics/logger.py<gh_stars>100-1000
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... |
gaybro8777/klio | integration/audio-spectrograms/integration_test.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | lib/tests/unit/transforms/test_utils.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | examples/catvdog/test_transform.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | examples/catvdog/run.py | <gh_stars>100-1000
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... |
gaybro8777/klio | cli/tests/commands/job/test_stop.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | cli/src/klio_cli/commands/message/publish.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | integration/read-bq-write-bq/it/before.py | <gh_stars>100-1000
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... |
gaybro8777/klio | audio/src/klio_audio/transforms/_base.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | cli/tests/commands/job/test_create.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | core/tests/test_utils.py | <gh_stars>100-1000
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... |
gaybro8777/klio | exec/src/klio_exec/commands/audit_steps/multithreaded_tf.py | <gh_stars>100-1000
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... |
gaybro8777/klio | exec/tests/unit/commands/test_audit.py | <reponame>gaybro8777/klio<filename>exec/tests/unit/commands/test_audit.py<gh_stars>100-1000
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apach... |
gaybro8777/klio | lib/src/klio/metrics/stackdriver.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | cli/src/klio_cli/commands/job/delete.py | <gh_stars>100-1000
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... |
gaybro8777/klio | exec/tests/unit/commands/audit_steps/test_tempfile_usage.py | <filename>exec/tests/unit/commands/audit_steps/test_tempfile_usage.py
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... |
gaybro8777/klio | exec/src/klio_exec/commands/utils/profile_utils.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | lib/tests/unit/metrics/test_logger.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
gaybro8777/klio | exec/src/klio_exec/commands/utils/memory_utils.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | audio/src/klio_audio/decorators.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | lib/tests/unit/conftest.py | <filename>lib/tests/unit/conftest.py
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... |
gaybro8777/klio | cli/src/klio_cli/utils/stackdriver_utils.py | <reponame>gaybro8777/klio<filename>cli/src/klio_cli/utils/stackdriver_utils.py
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/li... |
gaybro8777/klio | lib/tests/unit/metrics/test_base.py | <filename>lib/tests/unit/metrics/test_base.py
# Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... |
gaybro8777/klio | integration/multi-event-input-batch/tests/test_run.py | <reponame>gaybro8777/klio
# Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... |
gaybro8777/klio | devtools/src/klio_devtools/cli.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | lib/src/klio/transforms/_timeout.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | integration/read-file/tests/test_transforms.py | # Copyright 2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
gaybro8777/klio | cli/src/klio_cli/commands/job/stop.py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
harwiltz/mltools | mltools/functional.py | <filename>mltools/functional.py
Id = lambda x: x
def cmp(f, g):
return lambda x: f(g(x))
def mul(f, g):
return lambda x: f(x) * g(x)
def mulk(f, k):
return mul(f, const(k))
def add(f, g):
return lambda x: f(x) + g(x)
def addk(f, k):
return add(f, const(k))
def negate(f):
return lambda x: -... |
harwiltz/mltools | examples/memtest.py | <filename>examples/memtest.py
import jax
import jax.numpy as jnp
from haiku import PRNGSequence
from mltools.logging.html import HTMLExperimentLogger
@profile
def main():
monitor = HTMLExperimentLogger("memtest",
template_path="/home/harwiltz/lab/mltools/examples/",
... |
harwiltz/mltools | mltools/logging/__init__.py | from .experiment_logger import ExperimentLogger
from .experiment_logger import CLIExperimentLogger
|
harwiltz/mltools | mltools/logging/experiment_logger.py | import logging
class ExperimentLogger(object):
def __init__(self, exp_name, tags=[], **kwargs):
self.exp_name = exp_name
self.epoch = 0
self.tags = tags
def instantiate(logger_type, exp_name, **kwargs):
logger_type = logger_type.lower()
if (logger_type == 'default') or ... |
harwiltz/mltools | mltools/logging/comet.py | from comet_ml import Experiment, OfflineExperiment
from mltools.logging import ExperimentLogger
class CometExperimentLogger(ExperimentLogger):
def __init__(self, project_name, online=True, offline_directory=None, tags=[], **kwargs):
super(CometExperimentLogger, self).__init__(project_name, tags=tags, **kw... |
harwiltz/mltools | test/mltools/test_ops.py | import jax
import jax.numpy as jnp
import unittest
import mltools.ops as ops
from functools import partial
class TestOps(unittest.TestCase):
def setUp(self):
self.bound = 10.
self.small_vector = jnp.array([3.,4.])
self.big_vector = jnp.array([12, 16.])
def test_confine_vector(self):
... |
harwiltz/mltools | mltools/ops.py | <filename>mltools/ops.py
import jax
import jax.numpy as jnp
@jax.custom_vjp
def clip_gradient(lo, hi, x):
r"""
Differentiable gradient clipping function.
Taken from https://jax.readthedocs.io/en/latest/notebooks/Custom_derivative_rules_for_Python_code.html
"""
return x
def clip_gradient_fwd(lo, hi... |
harwiltz/mltools | mltools/distribution/normal.py | <reponame>harwiltz/mltools
import jax
import jax.numpy as jnp
import jax.scipy.stats.norm as norm
from mltools.distribution import Distribution, Probability
from typing import Any, List, Optional, Union
class Normal(Distribution):
""" Univariate normal distribution """
def __init__(self, loc: float, scale: fl... |
harwiltz/mltools | mltools/util.py | import functools
from typing import Mapping
def flatten_hparams(hparams: dict, base_key: str='') -> dict:
"""
Flattens nested dicts for easier viewing
Some tools (like comet.ml) require hyperparameters to be in this format for logging
Parameters
----------
hparams: dict
A dictionary
... |
harwiltz/mltools | mltools/distribution/__init__.py | from .base import Distribution, Probability
from .normal import (
Normal,
MixedNormal
)
def parse_distribution(dist_type, dist_params):
dist_type = dist_type.lower()
if dist_type == "normal":
return Normal.instantiate(dist_params)
if dist_type == "mixed_normal":
return MixedNormal.i... |
harwiltz/mltools | mltools/distribution/base.py | <reponame>harwiltz/mltools
import jax
import jax.numpy as jnp
from typing import Any
Probability = float
class Distribution:
"""
Distribution base class
"""
def sample(self, rng : jax.random.PRNGKey) -> Any:
raise NotImplementedError
def pdf(self, x: Any) -> Probability:
raise N... |
harwiltz/mltools | mltools/logging/html.py | import hashlib
import jinja2
import logging
import matplotlib.pyplot as plt
import numpy as np
import os
from jinja2 import Environment, FileSystemLoader, select_autoescape
from mltools.logging import ExperimentLogger
class HTMLExperimentLogger(ExperimentLogger):
FILENAME = "index.html"
def __init__(self,
... |
schreven/OMPEval | hand_evaluators.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 22 14:37:11 2019
@author: cyril
"""
""" This file compares the speed of three different methods that compute the equity of a hand:
OMPEval, Deuces, and PyPokerEngine"""
import sys
sys.path.append("..")
import time
##### OMPEVAL #####
print(... |
retroxsky06/Final_Project | webpage/app.py | <filename>webpage/app.py
from flask import Flask, render_template, request
from run_ml import predictions
app = Flask (__name__)
@app.route("/")
def index():
return render_template("index.html")
@app.route('/predict',methods=['POST'])
def predict():
# Get the data from the POST request.
if request.method... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.