hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf1c5d7af21265d26444113979db55007a7cfb64 | 29 | py | Python | examples/__init__.py | DannyGoodall/codefurther | b6b1dc21e39f2ede9b9ac2a6c06d5816c87a610a | [
"Apache-2.0"
] | 1 | 2015-07-01T16:21:59.000Z | 2015-07-01T16:21:59.000Z | examples/__init__.py | DannyGoodall/codefurther | b6b1dc21e39f2ede9b9ac2a6c06d5816c87a610a | [
"Apache-2.0"
] | null | null | null | examples/__init__.py | DannyGoodall/codefurther | b6b1dc21e39f2ede9b9ac2a6c06d5816c87a610a | [
"Apache-2.0"
] | null | null | null | __author__ = 'Danny Goodall'
| 14.5 | 28 | 0.758621 | 3 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bf1d0a2600c1e32dca7dd7713967984af9f10c7e | 7,731 | py | Python | emma/utils/visualizations.py | rpp0/emma | fab81e1c66b8a88d14e68b8878ddbb5ee6528de2 | [
"MIT"
] | 36 | 2019-01-08T12:49:36.000Z | 2022-03-31T08:11:48.000Z | emma/utils/visualizations.py | rpp0/emma | fab81e1c66b8a88d14e68b8878ddbb5ee6528de2 | [
"MIT"
] | 6 | 2020-01-28T22:59:05.000Z | 2022-02-10T00:14:43.000Z | emma/utils/visualizations.py | rpp0/emma | fab81e1c66b8a88d14e68b8878ddbb5ee6528de2 | [
"MIT"
] | 3 | 2019-02-12T11:55:42.000Z | 2020-08-12T23:30:05.000Z | import matplotlib.pyplot as plt
import os
import numpy as np
from datetime import datetime
from matplotlib.backends.backend_pdf import PdfPages
from emma.io.traceset import TraceSet
from emma.utils.utils import MaxPlotsReached, EMMAException
#plt.rcParams['axes.prop_cycle'] = plt.cycler(color=plt.get_cmap('flag').col... | 31.555102 | 112 | 0.567844 | 926 | 7,731 | 4.600432 | 0.2473 | 0.039906 | 0.00939 | 0.013146 | 0.24061 | 0.165728 | 0.1277 | 0.10939 | 0.093427 | 0.056808 | 0 | 0.02 | 0.320916 | 7,731 | 244 | 113 | 31.684426 | 0.791429 | 0.10542 | 0 | 0.231214 | 0 | 0 | 0.059391 | 0.00407 | 0 | 0 | 0 | 0.004098 | 0 | 1 | 0.040462 | false | 0.00578 | 0.046243 | 0 | 0.098266 | 0.00578 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf1d5622ccaea0f46f7bcbdd2505f0b5aa55642a | 48 | py | Python | background-function/main.py | pengelbrecht2627/functions-framework-python-vscode | 3f8203856f6f2ad49c3b7ba8153c427ccfcb0a4f | [
"MIT"
] | 5 | 2020-06-22T03:05:07.000Z | 2021-03-31T15:28:35.000Z | background-function/main.py | chesedo/functions-framework-python-vscode | 3f8203856f6f2ad49c3b7ba8153c427ccfcb0a4f | [
"MIT"
] | 1 | 2020-09-07T19:38:32.000Z | 2020-09-08T08:41:19.000Z | background-function/main.py | chesedo/functions-framework-python-vscode | 3f8203856f6f2ad49c3b7ba8153c427ccfcb0a4f | [
"MIT"
] | 3 | 2020-06-22T21:26:24.000Z | 2020-09-30T05:11:26.000Z | def background_function(data, context):
pass | 24 | 39 | 0.770833 | 6 | 48 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 48 | 2 | 40 | 24 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
bf1eec4185206fab6a61df1d56c8c21212cdfa42 | 2,031 | py | Python | list-manual-packages.py | qidydl/debian-package-scripts | a68f2d4c493e00761cc7d6cdc11ca1e661684741 | [
"MIT"
] | null | null | null | list-manual-packages.py | qidydl/debian-package-scripts | a68f2d4c493e00761cc7d6cdc11ca1e661684741 | [
"MIT"
] | null | null | null | list-manual-packages.py | qidydl/debian-package-scripts | a68f2d4c493e00761cc7d6cdc11ca1e661684741 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""List manually-installed Debian packages
This script can be used to see which packages are flagged as having been installed manually. Manually-installed
packages are not eligible for autoremove. Managing this flag will ensure that libraries are cleaned up when no longer
needed.
This script o... | 28.605634 | 118 | 0.746923 | 296 | 2,031 | 5.013514 | 0.39527 | 0.04717 | 0.032345 | 0.057278 | 0.275606 | 0.23248 | 0.21159 | 0.21159 | 0.21159 | 0.21159 | 0 | 0.004808 | 0.180699 | 2,031 | 70 | 119 | 29.014286 | 0.887019 | 0.432792 | 0 | 0.243902 | 0 | 0 | 0.1331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.02439 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf1f8eb5906edde2845a41d14ef448bd75014ce7 | 1,040 | py | Python | tests/extensions/pdf/test_renderer.py | alexschiller/modular-file-renderer | 43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d | [
"Apache-2.0"
] | null | null | null | tests/extensions/pdf/test_renderer.py | alexschiller/modular-file-renderer | 43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d | [
"Apache-2.0"
] | null | null | null | tests/extensions/pdf/test_renderer.py | alexschiller/modular-file-renderer | 43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d | [
"Apache-2.0"
] | null | null | null | import pytest
from mfr.core.provider import ProviderMetadata
from mfr.extensions.pdf import PdfRenderer
@pytest.fixture
def metadata():
return ProviderMetadata('test', '.pdf', 'text/plain', '1234', 'http://wb.osf.io/file/test.pdf?token=1234')
@pytest.fixture
def file_path():
return '/tmp/test.pdf'
@pyte... | 23.111111 | 110 | 0.689423 | 142 | 1,040 | 4.943662 | 0.330986 | 0.111111 | 0.136752 | 0.037037 | 0.266382 | 0.165242 | 0.105413 | 0.105413 | 0 | 0 | 0 | 0.009081 | 0.152885 | 1,040 | 44 | 111 | 23.636364 | 0.787741 | 0 | 0 | 0.222222 | 0 | 0 | 0.229808 | 0.023077 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.259259 | false | 0 | 0.111111 | 0.222222 | 0.62963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bf2071740b73e90331bef4394f5adc4ea46bf3e5 | 1,847 | py | Python | machine_learning/boston.py | zmaas/scratch | ee996bb6a15e3eb322a07b8637f8eb0046ec9d89 | [
"MIT"
] | null | null | null | machine_learning/boston.py | zmaas/scratch | ee996bb6a15e3eb322a07b8637f8eb0046ec9d89 | [
"MIT"
] | null | null | null | machine_learning/boston.py | zmaas/scratch | ee996bb6a15e3eb322a07b8637f8eb0046ec9d89 | [
"MIT"
] | null | null | null | '''Boston Housing Classification'''
import numpy as np
from keras.datasets import boston_housing
from keras import models
from keras import layers
(train_data, train_targets), (test_data,
test_targets) = boston_housing.load_data()
mean = train_data.mean(axis=0)
train_data -= mean
std = t... | 28.859375 | 78 | 0.655658 | 258 | 1,847 | 4.414729 | 0.290698 | 0.102722 | 0.102722 | 0.049166 | 0.258121 | 0.208955 | 0.147498 | 0.050922 | 0.050922 | 0 | 0 | 0.018961 | 0.22902 | 1,847 | 63 | 79 | 29.31746 | 0.780899 | 0.040606 | 0 | 0.113208 | 0 | 0 | 0.021518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.075472 | 0 | 0.113208 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf21626265f7f69b0e23a108e5e6c9e0e48662a4 | 3,094 | py | Python | web/prowlbackend/users/forms.py | stensjoberg/pton-prowl | 2151acbe68896495c407867e241fb459b2f626a5 | [
"MIT"
] | null | null | null | web/prowlbackend/users/forms.py | stensjoberg/pton-prowl | 2151acbe68896495c407867e241fb459b2f626a5 | [
"MIT"
] | 13 | 2018-06-20T15:50:12.000Z | 2022-03-22T20:25:39.000Z | web/prowlbackend/users/forms.py | stensjoberg/pton-prowl | 2151acbe68896495c407867e241fb459b2f626a5 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from users.models import User
from core.models import Course, Group
class AdminUserCreateForm(forms.ModelForm):
""""A form for creating new users. Includes all th... | 35.159091 | 115 | 0.653846 | 356 | 3,094 | 5.606742 | 0.339888 | 0.06012 | 0.085671 | 0.108216 | 0.182866 | 0.13978 | 0.13978 | 0.13978 | 0.077655 | 0.077655 | 0 | 0.023952 | 0.244344 | 3,094 | 87 | 116 | 35.563218 | 0.829769 | 0.156755 | 0 | 0.225806 | 0 | 0.016129 | 0.110594 | 0.032596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080645 | false | 0.225806 | 0.080645 | 0.016129 | 0.370968 | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bf224bebc92e546b416ae65acd8df31c6d610e22 | 2,355 | py | Python | Deploy.py | Pr0gramist/PowerBuilderDeployment | b067ca55557b88ccc39266a270dbab2f88b4e094 | [
"MIT"
] | null | null | null | Deploy.py | Pr0gramist/PowerBuilderDeployment | b067ca55557b88ccc39266a270dbab2f88b4e094 | [
"MIT"
] | null | null | null | Deploy.py | Pr0gramist/PowerBuilderDeployment | b067ca55557b88ccc39266a270dbab2f88b4e094 | [
"MIT"
] | null | null | null | """
DEPLOY POWERBUILDER PACKAGES
Author: Stivan Kitchoukov
To run created file from command line: OrcaScr126 Deploy.dat
"""
import os
import subprocess
import time
PackageList = (
"cf_common",
"cf_account_ip",
"cf_ap",
"cf_ar",
"cf_cga",
"cf_common_trans",
"cf_crt",
... | 30.986842 | 108 | 0.601699 | 279 | 2,355 | 4.960573 | 0.383513 | 0.052023 | 0.070809 | 0.043353 | 0.198699 | 0.155347 | 0.138006 | 0.118497 | 0.070809 | 0.070809 | 0 | 0.004303 | 0.210616 | 2,355 | 76 | 109 | 30.986842 | 0.740183 | 0 | 0 | 0.032787 | 0 | 0 | 0.281518 | 0.031631 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04918 | null | null | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf231f29d738cf1a12e825364e3815688ca78557 | 4,456 | py | Python | zorg/buildbot/builders/LibCXXBuilder.py | antiagainst/llvm-zorg | a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918 | [
"Apache-2.0"
] | 1 | 2019-02-10T03:05:05.000Z | 2019-02-10T03:05:05.000Z | zorg/buildbot/builders/LibCXXBuilder.py | antiagainst/llvm-zorg | a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918 | [
"Apache-2.0"
] | null | null | null | zorg/buildbot/builders/LibCXXBuilder.py | antiagainst/llvm-zorg | a5b58cdd800d0d45b1bdd1f7fe058db6acbfd918 | [
"Apache-2.0"
] | null | null | null |
import os
import buildbot
import buildbot.process.factory
import buildbot.steps.shell
import buildbot.steps.source as source
import buildbot.steps.source.svn as svn
import buildbot.process.properties as properties
import zorg.buildbot.commands.LitTestCommand as lit_test_command
import zorg.buildbot.util.artifacts as... | 41.259259 | 79 | 0.5864 | 491 | 4,456 | 5.217923 | 0.281059 | 0.093677 | 0.035129 | 0.051522 | 0.346214 | 0.332162 | 0.295472 | 0.25644 | 0.236924 | 0.217799 | 0 | 0.001262 | 0.288824 | 4,456 | 107 | 80 | 41.64486 | 0.807195 | 0.079219 | 0 | 0.270588 | 0 | 0 | 0.18304 | 0.065005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011765 | false | 0 | 0.117647 | 0 | 0.141176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf23269a20352bd1e5bf1a525b6d3e5fd76ba4f9 | 1,760 | py | Python | pydeps/rules/ruleResultChecker.py | enableiot/iotanalytics-rule-engine | 8f7c0e00f3f534944af21255cf7d98fc632b08b2 | [
"Apache-2.0"
] | 3 | 2015-12-15T10:17:10.000Z | 2016-01-19T15:24:51.000Z | pydeps/rules/ruleResultChecker.py | enableiot/iotanalytics-rule-engine | 8f7c0e00f3f534944af21255cf7d98fc632b08b2 | [
"Apache-2.0"
] | null | null | null | pydeps/rules/ruleResultChecker.py | enableiot/iotanalytics-rule-engine | 8f7c0e00f3f534944af21255cf7d98fc632b08b2 | [
"Apache-2.0"
] | 2 | 2015-12-15T10:17:11.000Z | 2018-11-01T12:40:49.000Z | # Copyright (c) 2015 Intel Corporation
#
# 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 ... | 39.111111 | 85 | 0.718182 | 240 | 1,760 | 4.995833 | 0.425 | 0.053378 | 0.075897 | 0.056714 | 0.173478 | 0.075063 | 0 | 0 | 0 | 0 | 0 | 0.008571 | 0.204545 | 1,760 | 44 | 86 | 40 | 0.847857 | 0.316477 | 0 | 0 | 0 | 0 | 0.049622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.045455 | 0.045455 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf236a0773de3a927230fe201180262fee783588 | 6,372 | py | Python | extviews/viewset.py | BilalAlpaslan/fastapi-extviews | e3ce1c4916d86009705a09e165e5ee21a197962f | [
"MIT"
] | 16 | 2022-01-01T16:00:58.000Z | 2022-03-21T09:42:35.000Z | extviews/viewset.py | BilalAlpaslan/fastapi-extviews | e3ce1c4916d86009705a09e165e5ee21a197962f | [
"MIT"
] | null | null | null | extviews/viewset.py | BilalAlpaslan/fastapi-extviews | e3ce1c4916d86009705a09e165e5ee21a197962f | [
"MIT"
] | null | null | null | from typing import Callable, List, Sequence, Union
from fastapi import APIRouter, Header
from fastapi.params import Depends
from pydantic import BaseModel
from .crudset import BaseCrudSet
__all__ = ['ViewSet', 'CrudViewSet']
supported_methods_names: List[str] = [
'list', 'retrieve', 'create', 'update', 'partial_... | 37.704142 | 101 | 0.608443 | 772 | 6,372 | 4.762953 | 0.141192 | 0.032635 | 0.029372 | 0.03046 | 0.451455 | 0.409029 | 0.37585 | 0.367419 | 0.345118 | 0.325809 | 0 | 0.005453 | 0.280446 | 6,372 | 168 | 102 | 37.928571 | 0.79651 | 0.07941 | 0 | 0.181818 | 0 | 0 | 0.082917 | 0.034132 | 0 | 0 | 0 | 0.005952 | 0.016529 | 1 | 0.082645 | false | 0 | 0.041322 | 0 | 0.380165 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf24664ff4f061ae7a934264b0579dd203c773d6 | 6,456 | py | Python | wouldyouci_database/recommendation/contents_based_filtering.py | jhee514/wouldYouCi | 54793401fb51356587e5a4460eb606ed9943b30c | [
"MIT"
] | 1 | 2020-06-18T08:40:47.000Z | 2020-06-18T08:40:47.000Z | wouldyouci_database/recommendation/contents_based_filtering.py | jhee514/wouldYouCi | 54793401fb51356587e5a4460eb606ed9943b30c | [
"MIT"
] | 14 | 2021-03-19T08:55:06.000Z | 2022-03-12T00:37:51.000Z | wouldyouci_database/recommendation/contents_based_filtering.py | jhee514/wouldYouCi | 54793401fb51356587e5a4460eb606ed9943b30c | [
"MIT"
] | 1 | 2021-05-27T08:52:01.000Z | 2021-05-27T08:52:01.000Z | import os
import time
import pymysql
import pandas as pd
from decouple import config
from datetime import datetime
from sklearn.linear_model import Lasso
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn.model_selection import RandomizedSearchCV
from sci... | 34.340426 | 105 | 0.614777 | 806 | 6,456 | 4.748139 | 0.167494 | 0.023517 | 0.031356 | 0.037627 | 0.688268 | 0.640449 | 0.635746 | 0.594722 | 0.561014 | 0.55213 | 0 | 0.026656 | 0.244579 | 6,456 | 187 | 106 | 34.524064 | 0.758048 | 0 | 0 | 0.539568 | 0 | 0 | 0.149628 | 0.022924 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028777 | false | 0.028777 | 0.079137 | 0 | 0.136691 | 0.194245 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf2469ca87fa101c85b17a0020e6ab7671ae18ca | 237,639 | py | Python | api/spotprices/scripts/config.py | gfortil/hpcc-internship | 8061771bcb4791fca54e6b1d74f0c019ad69bca4 | [
"MIT"
] | null | null | null | api/spotprices/scripts/config.py | gfortil/hpcc-internship | 8061771bcb4791fca54e6b1d74f0c019ad69bca4 | [
"MIT"
] | null | null | null | api/spotprices/scripts/config.py | gfortil/hpcc-internship | 8061771bcb4791fca54e6b1d74f0c019ad69bca4 | [
"MIT"
] | 1 | 2021-06-10T22:07:15.000Z | 2021-06-10T22:07:15.000Z | subscription = 'us-hpccplatform-dev'
subscription_id = 'ec0ba952-4ae9-4f69-b61c-4b96ff470038'
resource_prefix = 'roshan-test-'
n_threads = 5
image = "UbuntuLTS"
priority = "Spot"
max_price = "0.00001"
eviction_policy = "Deallocate"
spot_region_map = {
'centralus': ['Standard_A3', 'Standard_E80ids_v4', 'Standard_... | 2,424.887755 | 8,832 | 0.783642 | 36,119 | 237,639 | 4.554057 | 0.011102 | 0.224029 | 0.010986 | 0.005107 | 0.849241 | 0.380575 | 0.154868 | 0.068497 | 0.013095 | 0.00259 | 0 | 0.148763 | 0.053968 | 237,639 | 98 | 8,833 | 2,424.887755 | 0.5829 | 0.001953 | 0 | 0 | 0 | 0 | 0.792533 | 0.022732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
bf25dc21b097b4039654bff5dabf2d9a9ccf1daa | 830 | py | Python | netrd/utilities/__init__.py | sdmccabe/netrd | f703c19b02f42c9f54bcab57014381da11dd58da | [
"MIT"
] | 116 | 2019-01-17T18:31:43.000Z | 2022-03-31T13:37:21.000Z | netrd/utilities/__init__.py | sdmccabe/netrd | f703c19b02f42c9f54bcab57014381da11dd58da | [
"MIT"
] | 175 | 2019-01-15T01:19:13.000Z | 2021-05-25T16:51:26.000Z | netrd/utilities/__init__.py | sdmccabe/netrd | f703c19b02f42c9f54bcab57014381da11dd58da | [
"MIT"
] | 36 | 2019-01-14T20:38:32.000Z | 2022-01-21T20:58:38.000Z | """
utilities
----------
Common utilities for use within ``netrd``.
"""
from .threshold import threshold
from .graph import (
create_graph,
ensure_undirected,
undirected,
ensure_unweighted,
unweighted,
)
from .read import read_time_series
from .cluster import clusterGraph
from .standardize import ... | 18.444444 | 42 | 0.683133 | 84 | 830 | 6.369048 | 0.404762 | 0.041122 | 0.052336 | 0.085981 | 0.302804 | 0.302804 | 0.302804 | 0.302804 | 0.302804 | 0.302804 | 0 | 0 | 0.208434 | 830 | 44 | 43 | 18.863636 | 0.814307 | 0.077108 | 0 | 0 | 0 | 0 | 0.274769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf292f506793261af16ff7db52fd7fc8b2dbbe15 | 697 | py | Python | python/leetcode/1706-Where_Will_the_Ball_Fall-M.py | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | 1 | 2020-03-02T10:56:22.000Z | 2020-03-02T10:56:22.000Z | python/leetcode/1706-Where_Will_the_Ball_Fall-M.py | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | python/leetcode/1706-Where_Will_the_Ball_Fall-M.py | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | class Solution:
def findBall(self, grid: List[List[int]]) -> List[int]:
m, n = len(grid), len(grid[0])
fall = list(range(n))
for i in range(m):
next_fall = [-1 for _ in range(n)]
for j in range(n):
if grid[i][j] == 1:
if j > 0 and g... | 34.85 | 59 | 0.400287 | 99 | 697 | 2.757576 | 0.272727 | 0.043956 | 0.098901 | 0.076923 | 0.307692 | 0.307692 | 0.307692 | 0.190476 | 0.190476 | 0.190476 | 0 | 0.034483 | 0.45911 | 697 | 19 | 60 | 36.684211 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf295ca777715f6aa9e9a9220331a760cad03d41 | 980 | py | Python | clickhouse_driver/columns/tuplecolumn.py | xzkostyan/clickhouse-driver | 9a8b4a0706d78ee9952737a9b277f448acf3eaf0 | [
"MIT"
] | null | null | null | clickhouse_driver/columns/tuplecolumn.py | xzkostyan/clickhouse-driver | 9a8b4a0706d78ee9952737a9b277f448acf3eaf0 | [
"MIT"
] | null | null | null | clickhouse_driver/columns/tuplecolumn.py | xzkostyan/clickhouse-driver | 9a8b4a0706d78ee9952737a9b277f448acf3eaf0 | [
"MIT"
] | null | null | null |
from .base import Column
from .util import get_inner_spec, get_inner_columns
class TupleColumn(Column):
py_types = (list, tuple)
def __init__(self, nested_columns, **kwargs):
self.nested_columns = nested_columns
super(TupleColumn, self).__init__(**kwargs)
def write_data(self, items, buf... | 28 | 69 | 0.681633 | 144 | 980 | 4.333333 | 0.263889 | 0.089744 | 0.108974 | 0.054487 | 0.054487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210204 | 980 | 34 | 70 | 28.823529 | 0.806202 | 0 | 0 | 0 | 0 | 0 | 0.005107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
bf29b24d082fbb7129c2bab18736d49934635b11 | 5,518 | py | Python | vae/train_vae.py | mazrk7/tf_playground | 81ad741f2bfe439bab85783ccf82d4715a3adef6 | [
"MIT"
] | null | null | null | vae/train_vae.py | mazrk7/tf_playground | 81ad741f2bfe439bab85783ccf82d4715a3adef6 | [
"MIT"
] | null | null | null | vae/train_vae.py | mazrk7/tf_playground | 81ad741f2bfe439bab85783ccf82d4715a3adef6 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import sys
import tensorflow as tf
from dataset import load_data
from vae import VAE
from conv_vae import ConvVAE
IMAGE_SIZE = 28
IMAGE_PIXELS = IMAGE_SIZE * IMAGE_SIZE
# Define the VAE netw... | 45.229508 | 153 | 0.677419 | 753 | 5,518 | 4.743692 | 0.273572 | 0.032755 | 0.06187 | 0.017917 | 0.217245 | 0.165733 | 0.150616 | 0.150616 | 0.083427 | 0.06159 | 0 | 0.015972 | 0.217108 | 5,518 | 121 | 154 | 45.603306 | 0.81088 | 0.151685 | 0 | 0.084337 | 0 | 0.012048 | 0.197592 | 0.00473 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0 | 0.108434 | 0 | 0.144578 | 0.036145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf2a1be151e93e4a43b932a359e5f6bd5186b1b3 | 8,810 | py | Python | nodeconductor/quotas/models.py | p-p-m/nodeconductor | bc702302ef65c89793452f0fd6ca9a6bec79782f | [
"Apache-2.0"
] | null | null | null | nodeconductor/quotas/models.py | p-p-m/nodeconductor | bc702302ef65c89793452f0fd6ca9a6bec79782f | [
"Apache-2.0"
] | null | null | null | nodeconductor/quotas/models.py | p-p-m/nodeconductor | bc702302ef65c89793452f0fd6ca9a6bec79782f | [
"Apache-2.0"
] | null | null | null | from django.contrib.contenttypes import fields as ct_fields
from django.contrib.contenttypes import models as ct_models
from django.db import models, transaction
from django.db.models import Sum
from django.utils.encoding import python_2_unicode_compatible
from nodeconductor.logging.log import LoggableMixin
from nodec... | 38.810573 | 123 | 0.624404 | 1,061 | 8,810 | 5.029218 | 0.217719 | 0.023613 | 0.011244 | 0.013493 | 0.264243 | 0.180847 | 0.143741 | 0.116192 | 0.083583 | 0.083583 | 0 | 0.00498 | 0.293417 | 8,810 | 226 | 124 | 38.982301 | 0.852209 | 0.02588 | 0 | 0.192 | 0 | 0 | 0.056086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008 | 0.064 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf2bb0444957a564a4fef3e32be0670e3dc59829 | 15,049 | py | Python | DPPO/dppo_cont_gae_dist_gpu.py | ChuaCheowHuan/reinforcement_learning | 037c292e5d81cd6d302566969c0391aba47d0343 | [
"MIT"
] | 32 | 2019-06-01T18:10:12.000Z | 2021-12-17T08:12:48.000Z | DPPO/dppo_cont_gae_dist_gpu.py | ChuaCheowHuan/reinforcement_learning | 037c292e5d81cd6d302566969c0391aba47d0343 | [
"MIT"
] | 9 | 2020-03-24T18:21:20.000Z | 2022-02-10T01:41:29.000Z | DPPO/dppo_cont_gae_dist_gpu.py | ChuaCheowHuan/reinforcement_learning | 037c292e5d81cd6d302566969c0391aba47d0343 | [
"MIT"
] | 9 | 2019-05-05T12:04:30.000Z | 2021-11-13T12:14:56.000Z | """
Distributed Proximal Policy Optimization (Distributed PPO or DPPO) continuous
version implementation with distributed Tensorflow and Python’s multiprocessing
package. This implementation uses normalized running rewards with GAE. The code
is tested with Gym’s continuous action space environment, Pendulum-v0 on Colab... | 41.802778 | 171 | 0.618779 | 2,091 | 15,049 | 4.254902 | 0.184601 | 0.029223 | 0.031471 | 0.021356 | 0.337305 | 0.231876 | 0.18377 | 0.147128 | 0.13409 | 0.122963 | 0 | 0.01677 | 0.259021 | 15,049 | 359 | 172 | 41.91922 | 0.781096 | 0.156024 | 0 | 0.086614 | 0 | 0 | 0.06597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051181 | false | 0 | 0.027559 | 0 | 0.106299 | 0.059055 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf2c7de182d5aadb7a0bb2f77fcf4bcb98312fdc | 910 | py | Python | common/middleware.py | Ins-V/wc_crm | 5d75907bb48e892328712ed0b2cf96b9083239aa | [
"MIT"
] | null | null | null | common/middleware.py | Ins-V/wc_crm | 5d75907bb48e892328712ed0b2cf96b9083239aa | [
"MIT"
] | null | null | null | common/middleware.py | Ins-V/wc_crm | 5d75907bb48e892328712ed0b2cf96b9083239aa | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.urls import reverse_lazy
class LoginRequiredMiddleware:
"""Middleware for all views requires a login.
To exclude a view from checking, the login_exempt decorator is used.
"""
def __init__(self, get_response):
self.get_respo... | 32.5 | 102 | 0.696703 | 117 | 910 | 5.145299 | 0.444444 | 0.07309 | 0.074751 | 0.059801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217582 | 910 | 27 | 103 | 33.703704 | 0.845506 | 0.123077 | 0 | 0.1875 | 0 | 0 | 0.060026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0.0625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bf2ca4850e1601c96655725a34150bcc61effb04 | 7,417 | py | Python | main_entry.py | LuxxxLucy/text_generation_SeqRNN | 27676f8c0844a69dd9c68ef6ff519b7ff03e50b9 | [
"MIT"
] | null | null | null | main_entry.py | LuxxxLucy/text_generation_SeqRNN | 27676f8c0844a69dd9c68ef6ff519b7ff03e50b9 | [
"MIT"
] | 1 | 2017-08-28T18:45:04.000Z | 2017-08-30T09:27:37.000Z | main_entry.py | LuxxxLucy/text_generation_SeqRNN | 27676f8c0844a69dd9c68ef6ff519b7ff03e50b9 | [
"MIT"
] | null | null | null | # utility modules
import os
from os import path
import shutil
import sys
import time
import json
import argparse
import numpy as np
from pprint import pprint as pr
ITEM_DIM=100
dir_path = path.dirname(path.dirname(path.dirname(path.realpath(__file__))))
sys.path.append(dir_path)
import settings
# -------------------... | 41.903955 | 96 | 0.637994 | 936 | 7,417 | 4.855769 | 0.25641 | 0.037624 | 0.071067 | 0.014962 | 0.259846 | 0.19846 | 0.175798 | 0.163916 | 0.163916 | 0.163916 | 0 | 0.008996 | 0.235675 | 7,417 | 176 | 97 | 42.142045 | 0.792732 | 0.065121 | 0 | 0.198473 | 0 | 0 | 0.238018 | 0.006156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022901 | false | 0 | 0.122137 | 0 | 0.145038 | 0.160305 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf2e31dad78bdc69eb2a8bd13549245a36b50b40 | 4,741 | py | Python | data_process/face_rectify.py | ZephyrDu/Face-Sketch-Wild | 4e967e58b8cb95af74d5fb26a4f9761a966c04bd | [
"MIT"
] | 73 | 2018-11-13T09:32:31.000Z | 2022-02-25T13:28:29.000Z | data_process/face_rectify.py | ZephyrDu/Face-Sketch-Wild | 4e967e58b8cb95af74d5fb26a4f9761a966c04bd | [
"MIT"
] | 4 | 2019-10-22T09:15:21.000Z | 2021-12-02T08:21:54.000Z | data_process/face_rectify.py | ZephyrDu/Face-Sketch-Wild | 4e967e58b8cb95af74d5fb26a4f9761a966c04bd | [
"MIT"
] | 22 | 2018-11-04T00:08:30.000Z | 2022-03-07T00:50:13.000Z | """
Rectify the face photo according to the paper: Real-Time Exemplar-Based Face Sketch Synthesis.
shape: h=250, w=200
position: left eye (x=75,y=125), right eye (x=125, y=125)
This module use similarity transformation to roughly align the two eyes.
Specifically, the transformation matrix can be writte... | 37.928 | 109 | 0.669479 | 720 | 4,741 | 4.230556 | 0.295833 | 0.022981 | 0.03283 | 0.031517 | 0.299081 | 0.255745 | 0.159882 | 0.159882 | 0.131648 | 0.131648 | 0 | 0.044514 | 0.194474 | 4,741 | 124 | 110 | 38.233871 | 0.753077 | 0.322506 | 0 | 0.028986 | 0 | 0 | 0.054638 | 0.051144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.115942 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf2ea22b630b974814db2da578466418ae00ae5f | 643 | py | Python | old_app.py | stimura/interactive_visualizations_and_dashboards_plotly.js | 980ee5078b2fc93fc2f906769b97b013885d5580 | [
"ADSL"
] | null | null | null | old_app.py | stimura/interactive_visualizations_and_dashboards_plotly.js | 980ee5078b2fc93fc2f906769b97b013885d5580 | [
"ADSL"
] | null | null | null | old_app.py | stimura/interactive_visualizations_and_dashboards_plotly.js | 980ee5078b2fc93fc2f906769b97b013885d5580 | [
"ADSL"
] | null | null | null | from data_wrangling import *
from flask import Flask, jsonify, render_template
app = Flask(__name__)
@app.route("/")
def index():
return render_template('index.html')
@app.route("/names")
def names():
# Store results into a dictionary
forecast = get_samples()
return jsonify(forecast)
# Re... | 18.371429 | 57 | 0.642302 | 81 | 643 | 4.802469 | 0.567901 | 0.061697 | 0.046272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013834 | 0.213064 | 643 | 34 | 58 | 18.911765 | 0.754941 | 0.171073 | 0 | 0 | 0 | 0 | 0.090737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0.052632 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf2ee5f4b8066d4690c806b8c907df5c94fb9ee9 | 8,813 | py | Python | pysnmp-with-texts/BW-BroadworksEMSFault.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/BW-BroadworksEMSFault.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/BW-BroadworksEMSFault.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module BW-BroadworksEMSFault (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BW-BroadworksEMSFault
# Produced by pysmi-0.3.4 at Wed May 1 11:42:07 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 179.857143 | 715 | 0.794849 | 727 | 8,813 | 9.632737 | 0.224209 | 0.035985 | 0.062973 | 0.005141 | 0.609025 | 0.538484 | 0.538484 | 0.538484 | 0.538484 | 0.538484 | 0 | 0.032278 | 0.068422 | 8,813 | 48 | 716 | 183.604167 | 0.820706 | 0.038126 | 0 | 0 | 0 | 0 | 0.412848 | 0.031058 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.175 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf3400e9e5516570d2ee907dd1eae2f4cc26b378 | 9,145 | py | Python | tests/test_wildcard_matching.py | stachenov/PyLeetCode | cb13700d428854eff46a762542a63d691578d5b6 | [
"Unlicense"
] | null | null | null | tests/test_wildcard_matching.py | stachenov/PyLeetCode | cb13700d428854eff46a762542a63d691578d5b6 | [
"Unlicense"
] | null | null | null | tests/test_wildcard_matching.py | stachenov/PyLeetCode | cb13700d428854eff46a762542a63d691578d5b6 | [
"Unlicense"
] | null | null | null | import pytest
from problems.wildcard_matching import Solution
@pytest.mark.parametrize("s, p, expected", [
("", "", True),
("", "*", True),
("", "**", True),
("a", "*", True),
("ab", "*", True),
("ab", "a*", True),
("ab", "*b", True),
("ab", "a*b", True),
("ab", "a*bc", False),
... | 295 | 4,114 | 0.951121 | 94 | 9,145 | 92.510638 | 0.414894 | 0.00345 | 0.00345 | 0.00184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023182 | 9,145 | 30 | 4,115 | 304.833333 | 0.973469 | 0 | 0 | 0 | 0 | 0.035714 | 0.936577 | 0.92936 | 0 | 1 | 0 | 0 | 0.035714 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.107143 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
bf34bb0f6cb77d847d353e75322326b1e613f85e | 1,484 | py | Python | word2vec/data_test.py | luozhouyang/machine-learning-notes | 332bea905398891fed4a98aa139eac02c88cb5ae | [
"Apache-2.0"
] | 73 | 2018-09-07T06:47:18.000Z | 2022-01-25T06:14:41.000Z | word2vec/data_test.py | luozhouyang/machine-learning-notes | 332bea905398891fed4a98aa139eac02c88cb5ae | [
"Apache-2.0"
] | 2 | 2018-10-18T06:40:19.000Z | 2019-11-16T01:48:39.000Z | word2vec/data_test.py | luozhouyang/machine-learning-notes | 332bea905398891fed4a98aa139eac02c88cb5ae | [
"Apache-2.0"
] | 47 | 2018-09-27T10:50:21.000Z | 2022-01-25T06:20:23.000Z | # Copyright 2018 luozhouyang
#
# 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, ... | 31.574468 | 80 | 0.679919 | 210 | 1,484 | 4.638095 | 0.485714 | 0.061602 | 0.030801 | 0.043121 | 0.26078 | 0.26078 | 0.211499 | 0.211499 | 0.211499 | 0.211499 | 0 | 0.0144 | 0.157682 | 1,484 | 46 | 81 | 32.26087 | 0.7648 | 0.422507 | 0 | 0.3 | 0 | 0 | 0.061758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf355dafca1416e7627639d652c8fed0b68000f6 | 11,140 | py | Python | scripts/elasticArchive.py | softandbyte/elasticArchive | 90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4 | [
"MIT"
] | 16 | 2020-06-09T03:29:03.000Z | 2022-03-12T05:05:54.000Z | scripts/elasticArchive.py | softandbyte/elasticArchive | 90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4 | [
"MIT"
] | 2 | 2021-11-09T20:50:58.000Z | 2022-03-23T05:17:50.000Z | scripts/elasticArchive.py | softandbyte/elasticArchive | 90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4 | [
"MIT"
] | 5 | 2021-02-25T08:43:18.000Z | 2022-03-12T05:05:54.000Z | """
This script serializes the entire traffic dump, including websocket traffic,
as JSON, and either sends it to an elasticsearch endpoint for permenant storage.
Unlike some plugins, this one sends all requests and responses to elasticsearch
in real-time.
This script is based on the original mitmproxy scripts jsondum... | 34.382716 | 135 | 0.560503 | 1,136 | 11,140 | 5.417254 | 0.260563 | 0.0117 | 0.00975 | 0.00975 | 0.153234 | 0.131297 | 0.098148 | 0.040949 | 0.029249 | 0.029249 | 0 | 0.008232 | 0.323878 | 11,140 | 323 | 136 | 34.489164 | 0.808816 | 0.203591 | 0 | 0.156098 | 0 | 0.004878 | 0.190737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068293 | false | 0.019512 | 0.034146 | 0 | 0.165854 | 0.053659 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf35df664a6f006ae32195314f2da6cc632d3aa5 | 1,425 | py | Python | app_covid19data/tests/test_forms.py | falken20/covid19web | 3826e5cc51dc24d373a1f614ccdb7c30993312ce | [
"MIT"
] | null | null | null | app_covid19data/tests/test_forms.py | falken20/covid19web | 3826e5cc51dc24d373a1f614ccdb7c30993312ce | [
"MIT"
] | null | null | null | app_covid19data/tests/test_forms.py | falken20/covid19web | 3826e5cc51dc24d373a1f614ccdb7c30993312ce | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.utils import timezone
from model_bakery import baker
from app_covid19data.models import DataCovid19Item
class Covid19dataTest(TestCase):
def create_DataCovid19Item(self, country='countryTest', state='stateTest', latitude=1, longitude=1):
return DataCovid19Ite... | 39.583333 | 104 | 0.648421 | 159 | 1,425 | 5.666667 | 0.396226 | 0.09323 | 0.059933 | 0.033296 | 0.122087 | 0.122087 | 0.122087 | 0.122087 | 0.122087 | 0 | 0 | 0.029304 | 0.233684 | 1,425 | 36 | 105 | 39.583333 | 0.795788 | 0.047018 | 0 | 0.076923 | 0 | 0 | 0.216077 | 0.051622 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.153846 | 0.038462 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf365d62fde31326141c9b2b13f45dee2f7dc651 | 823 | py | Python | python/2015/Day 1 Not Quite Lisp/main.py | FirinKinuo/advent-of-code | 97059fc2832b224c24e80bdb658c668bcbb1cb12 | [
"MIT"
] | null | null | null | python/2015/Day 1 Not Quite Lisp/main.py | FirinKinuo/advent-of-code | 97059fc2832b224c24e80bdb658c668bcbb1cb12 | [
"MIT"
] | null | null | null | python/2015/Day 1 Not Quite Lisp/main.py | FirinKinuo/advent-of-code | 97059fc2832b224c24e80bdb658c668bcbb1cb12 | [
"MIT"
] | null | null | null | from python import SolvingBase
class Solving(SolvingBase):
def first_problem(self):
floor = 0
with open(self.test_case, 'r', encoding='utf-8') as file:
instructions = file.read()
for command in instructions:
floor += 1 if command == '(' else -1
return flo... | 24.939394 | 94 | 0.589307 | 99 | 823 | 4.727273 | 0.414141 | 0.025641 | 0.068376 | 0.07265 | 0.504274 | 0.504274 | 0.504274 | 0.367521 | 0.367521 | 0.367521 | 0 | 0.017241 | 0.295261 | 823 | 32 | 95 | 25.71875 | 0.789655 | 0 | 0 | 0.4 | 0 | 0 | 0.123937 | 0.066829 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.3 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf366ea4faa9d83ef47009d3ecfc52584f3dc9bd | 10,032 | py | Python | downscale_/downscale/utils/utils_func.py | louisletoumelin/wind_downscaling_cnn | 9d08711620db1ee1f472847f0e822c5f4eb1d300 | [
"W3C"
] | null | null | null | downscale_/downscale/utils/utils_func.py | louisletoumelin/wind_downscaling_cnn | 9d08711620db1ee1f472847f0e822c5f4eb1d300 | [
"W3C"
] | 12 | 2021-11-30T16:56:05.000Z | 2021-12-13T16:26:31.000Z | downscale_/downscale/utils/utils_func.py | louisletoumelin/wind_downscaling_cnn | 9d08711620db1ee1f472847f0e822c5f4eb1d300 | [
"W3C"
] | null | null | null | import numpy as np
import pandas as pd
import datetime
from downscale.utils.decorators import timer_decorator
def select_range(month_begin, month_end, year_begin, year_end, date_begin, date_end):
import pandas as pd
if (month_end != month_begin) or (year_begin != year_end):
dates = pd.date_range(date... | 33.66443 | 112 | 0.572269 | 1,250 | 10,032 | 4.1976 | 0.1816 | 0.054889 | 0.025157 | 0.018296 | 0.509053 | 0.493044 | 0.444444 | 0.420431 | 0.393749 | 0.38117 | 0 | 0.039533 | 0.309111 | 10,032 | 297 | 113 | 33.777778 | 0.717501 | 0.086324 | 0 | 0.412935 | 0 | 0 | 0.229532 | 0.039229 | 0 | 0 | 0 | 0 | 0.00995 | 1 | 0.099502 | false | 0 | 0.024876 | 0.004975 | 0.20398 | 0.159204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf3812d6d4f4e3479497b05d3cbefb4d7e0abe08 | 11,979 | py | Python | assetfactory/images/2021/08/30/base.py | reinhrst/reinhrst.github.io | 3e9dce26c923fca54589ffd1d19d56af0dd27910 | [
"CC0-1.0"
] | null | null | null | assetfactory/images/2021/08/30/base.py | reinhrst/reinhrst.github.io | 3e9dce26c923fca54589ffd1d19d56af0dd27910 | [
"CC0-1.0"
] | 6 | 2021-07-01T19:35:47.000Z | 2022-02-06T10:30:35.000Z | assetfactory/images/2021/08/30/base.py | reinhrst/reinhrst.github.io | 3e9dce26c923fca54589ffd1d19d56af0dd27910 | [
"CC0-1.0"
] | 1 | 2021-08-11T22:46:47.000Z | 2021-08-11T22:46:47.000Z | from __future__ import annotations
import pathlib
import typing as t
import numpy as np
import math
def rgb_to_hsv(r, g, b):
r = float(r)
g = float(g)
b = float(b)
high = max(r, g, b)
low = min(r, g, b)
h, s, v = high, high, high
d = high - low
s = 0 if high == 0 else d/high
if ... | 32.201613 | 115 | 0.515986 | 1,569 | 11,979 | 3.810707 | 0.173996 | 0.007025 | 0.007526 | 0.015053 | 0.227128 | 0.145844 | 0.075598 | 0.041813 | 0.037464 | 0.037464 | 0 | 0.029073 | 0.333834 | 11,979 | 371 | 116 | 32.28841 | 0.720175 | 0.001503 | 0 | 0.187117 | 0 | 0.003067 | 0.108119 | 0.020988 | 0 | 0 | 0 | 0 | 0.030675 | 1 | 0.04908 | false | 0.003067 | 0.015337 | 0 | 0.138037 | 0.003067 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf3866ddc85e7f86c0fd67e88f22e67c934b181e | 46,444 | py | Python | cifar_net_search/syclop_cifar_lstm_no_upsample.py | sashkarivkind/imagewalker | 999e1ae78cfe1512e1be894d9e7891a7d0c41233 | [
"Apache-2.0"
] | 2 | 2021-04-28T13:33:45.000Z | 2021-11-09T14:31:09.000Z | cifar_net_search/syclop_cifar_lstm_no_upsample.py | sashkarivkind/imagewalker | 999e1ae78cfe1512e1be894d9e7891a7d0c41233 | [
"Apache-2.0"
] | null | null | null | cifar_net_search/syclop_cifar_lstm_no_upsample.py | sashkarivkind/imagewalker | 999e1ae78cfe1512e1be894d9e7891a7d0c41233 | [
"Apache-2.0"
] | 1 | 2021-03-07T13:25:59.000Z | 2021-03-07T13:25:59.000Z | '''
The follwing code runs a test lstm network on the CIFAR dataset
I will explicitly write the networks here for ease of understanding
with cnn_sropout = 0.4 and rnn dropout = 0.2 and lr = 1e-3 res = 8
################# cnn_lstm_True Validation Accuracy = [0.363, 0.4258, 0.4332, 0.4142, 0.4802, 0.4838, 0.4988, ... | 143.789474 | 5,586 | 0.682284 | 8,882 | 46,444 | 3.537942 | 0.231029 | 0.011202 | 0.003628 | 0.011584 | 0.469418 | 0.437245 | 0.417356 | 0.401127 | 0.394889 | 0.394889 | 0 | 0.607618 | 0.120489 | 46,444 | 323 | 5,587 | 143.789474 | 0.161673 | 0.853932 | 0 | 0.18705 | 0 | 0 | 0.139312 | 0.057856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028777 | false | 0 | 0.100719 | 0 | 0.158273 | 0.064748 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
bf3a501755b78c7fc3712365a7125b728750c56d | 497 | py | Python | smbf/lib/session_ok.py | Alpha-Demon404/RE-14 | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 39 | 2020-02-26T09:44:36.000Z | 2022-03-23T00:18:25.000Z | smbf/lib/session_ok.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 15 | 2020-05-14T10:07:26.000Z | 2022-01-06T02:55:32.000Z | smbf/lib/session_ok.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 41 | 2020-03-16T22:36:38.000Z | 2022-03-17T14:47:19.000Z | # Filenames :
# Python bytecode : 3.8
# Time succses decompiled Sat Sep 26 13:17:38 2020
# Selector <module> in line 1 file
# Timestamp in code : 2020-06-27 04:07:18
import requests
ses = requests.Session()
from bs4 import BeautifulSoup as parser
class browser:
def __init__(self, kuki):
self._browser__... | 24.85 | 124 | 0.690141 | 72 | 497 | 4.625 | 0.75 | 0.066066 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.185111 | 497 | 19 | 125 | 26.157895 | 0.748148 | 0.315895 | 0 | 0 | 0 | 0 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bf3a5e972de95e03358433c9a82b2ed12f784caf | 1,025 | py | Python | Hackerrank_problems/counting_valleys/solution1_CountingValleys.py | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 165 | 2020-10-03T08:01:11.000Z | 2022-03-31T02:42:08.000Z | Hackerrank_problems/counting_valleys/solution1_CountingValleys.py | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 383 | 2020-10-03T07:39:11.000Z | 2021-11-20T07:06:35.000Z | Hackerrank_problems/counting_valleys/solution1_CountingValleys.py | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 380 | 2020-10-03T08:05:04.000Z | 2022-03-19T06:56:59.000Z | #
# working
# this function takes steps and detail of steps as input
# we declare a zero level above which any up step will be considered as a valley that is climbed
# we run from 0 to length of steps
# if we detect a "U" we increase the zero level
# similary if we detect "D" we decrease the zero... | 26.282051 | 100 | 0.616585 | 154 | 1,025 | 4.051948 | 0.474026 | 0.033654 | 0.028846 | 0.044872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00979 | 0.302439 | 1,025 | 38 | 101 | 26.973684 | 0.862937 | 0.498537 | 0 | 0 | 0 | 0 | 0.01996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bf3a8b4843ac801538ccc5ef189a2684601a4cd6 | 10,419 | py | Python | SemanticCopyandPaste.py | WeiChihChern/Copy-Paste-Semantic-Segmentation | f7725bb385b6decc4e139262fc1c6e3ba30255a3 | [
"MIT"
] | 3 | 2021-08-19T20:08:27.000Z | 2021-09-25T04:12:59.000Z | SemanticCopyandPaste.py | WeiChihChern/Copy-Paste-Semantic-Segmentation | f7725bb385b6decc4e139262fc1c6e3ba30255a3 | [
"MIT"
] | null | null | null | SemanticCopyandPaste.py | WeiChihChern/Copy-Paste-Semantic-Segmentation | f7725bb385b6decc4e139262fc1c6e3ba30255a3 | [
"MIT"
] | 1 | 2022-01-03T07:53:34.000Z | 2022-01-03T07:53:34.000Z | import albumentations as A
import random
import cv2
import os
import numpy as np
import matplotlib.pyplot as plt
class SemanticCopyandPaste(A.DualTransform):
def __init__(self,
nClass,
path2rgb,
path2mask,
shift_x_limit = [0,0],
... | 38.164835 | 335 | 0.585181 | 1,330 | 10,419 | 4.443609 | 0.21203 | 0.025888 | 0.020305 | 0.011506 | 0.21489 | 0.141794 | 0.113875 | 0.067005 | 0.038917 | 0.038917 | 0 | 0.022118 | 0.323064 | 10,419 | 272 | 336 | 38.305147 | 0.815823 | 0.167099 | 0 | 0.106667 | 0 | 0.006667 | 0.063923 | 0 | 0 | 0 | 0 | 0 | 0.086667 | 1 | 0.066667 | false | 0 | 0.04 | 0.02 | 0.18 | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bf3af0a9b7fb2f7462965878fb057df5c1373af3 | 435 | py | Python | jobs/migrations/0005_job_github_url.py | TobiAdeniyi/django-portfolio-website | 6feda92179ea0d95af75a9f98d1857dafa5350df | [
"MIT"
] | 1 | 2021-03-05T19:07:18.000Z | 2021-03-05T19:07:18.000Z | jobs/migrations/0005_job_github_url.py | TobiAdeniyi/portfolio | 6feda92179ea0d95af75a9f98d1857dafa5350df | [
"MIT"
] | null | null | null | jobs/migrations/0005_job_github_url.py | TobiAdeniyi/portfolio | 6feda92179ea0d95af75a9f98d1857dafa5350df | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-04 14:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobs', '0004_job_title'),
]
operations = [
migrations.AddField(
model_name='job',
name='github_url',
fie... | 21.75 | 76 | 0.593103 | 47 | 435 | 5.382979 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061093 | 0.285057 | 435 | 19 | 77 | 22.894737 | 0.752412 | 0.103448 | 0 | 0 | 1 | 0 | 0.157216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf3c0cb0df6b706d99fdac9f82ea5ed8b6f1d695 | 454 | py | Python | accounts/models.py | Chetnasahay/FireFox | f79b2ea5b03a5e591d9e0837881f4f1811e40ea1 | [
"MIT"
] | null | null | null | accounts/models.py | Chetnasahay/FireFox | f79b2ea5b03a5e591d9e0837881f4f1811e40ea1 | [
"MIT"
] | null | null | null | accounts/models.py | Chetnasahay/FireFox | f79b2ea5b03a5e591d9e0837881f4f1811e40ea1 | [
"MIT"
] | 1 | 2021-05-11T12:05:24.000Z | 2021-05-11T12:05:24.000Z | from django.db import models
# Create your models here.
class organization(models.Model):
username = models.CharField(max_length=1000)
email= models.URLField()
img= models.ImageField( upload_to='pics',null=True,blank=True)
# number = models.IntegerField()
password= models.CharField(max_length=200)... | 32.428571 | 66 | 0.737885 | 58 | 454 | 5.724138 | 0.586207 | 0.072289 | 0.11747 | 0.153614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017949 | 0.140969 | 454 | 13 | 67 | 34.923077 | 0.833333 | 0.121145 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
170d1b573c4d139f35fc15ee0ec4fee9fb15a40f | 2,693 | py | Python | indexation.py | zaurelzo/Cerbere | 06232d1328585159c652f91a3d7748a8bb5023cf | [
"WTFPL"
] | null | null | null | indexation.py | zaurelzo/Cerbere | 06232d1328585159c652f91a3d7748a8bb5023cf | [
"WTFPL"
] | null | null | null | indexation.py | zaurelzo/Cerbere | 06232d1328585159c652f91a3d7748a8bb5023cf | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time,sys
from parser.parser import *
from database_Manager.databaseManager import *
from collections import Counter
if __name__ == '__main__':
#global Variables, chnages for a specific action (1 : do the action , 0 : don't do the action)
action=0
if len(sys.ar... | 32.841463 | 95 | 0.711103 | 350 | 2,693 | 5.394286 | 0.434286 | 0.018538 | 0.016949 | 0.042903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016452 | 0.164872 | 2,693 | 82 | 96 | 32.841463 | 0.823032 | 0.244709 | 0 | 0.08 | 0 | 0.02 | 0.183441 | 0.014874 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
170d3e0c7bb509155665bc1b0e23573bfaf15d45 | 1,214 | py | Python | _vcs/git.py | devsetup/devsetup_framework | 6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca | [
"BSD-3-Clause"
] | null | null | null | _vcs/git.py | devsetup/devsetup_framework | 6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca | [
"BSD-3-Clause"
] | null | null | null | _vcs/git.py | devsetup/devsetup_framework | 6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca | [
"BSD-3-Clause"
] | null | null | null | # -*- coding:utf8 -*-
import os
import re
import dsf
def change_branch(branch, cwd=None):
# checkout the branch
dsf.core.shell.run(['git', 'checkout', branch], cwd=cwd)
def get_current_branch(cwd=None):
output = dsf.core.shell.get_output_from_command(['git', 'branch'], cwd=cwd)
for line in output:
if line[0:2... | 26.977778 | 98 | 0.696046 | 202 | 1,214 | 4.10396 | 0.386139 | 0.04222 | 0.057901 | 0.065139 | 0.165259 | 0.165259 | 0.165259 | 0.165259 | 0.165259 | 0.115802 | 0 | 0.004936 | 0.165568 | 1,214 | 45 | 99 | 26.977778 | 0.813425 | 0.247117 | 0 | 0.115385 | 0 | 0 | 0.109272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.115385 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
170d6548b3dc09065e688e302239c6b72d24faa5 | 243 | py | Python | 7KYU/is_prime.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 7KYU/is_prime.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 7KYU/is_prime.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | def is_prime(n: int) -> bool:
'''
This function returns True if n is a prime number otherwise return False.
'''
if n <= 1:
return False
d = 2
while d * d <= n and n % d != 0:
d += 1
return d * d > n
| 22.090909 | 77 | 0.497942 | 40 | 243 | 3 | 0.55 | 0.05 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0.386831 | 243 | 10 | 78 | 24.3 | 0.778523 | 0.300412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1710ee96f11f5467c52c0c184c4411c5e7e24339 | 1,628 | py | Python | HSM/load_data.py | 18F/10x-MLaaS | 3e1df3bbd88037c20e916fab2c07117a63e3c639 | [
"CC0-1.0"
] | 13 | 2019-03-15T20:30:35.000Z | 2022-02-19T08:05:10.000Z | HSM/load_data.py | 18F/10x-MLaaS | 3e1df3bbd88037c20e916fab2c07117a63e3c639 | [
"CC0-1.0"
] | 106 | 2018-11-28T21:17:55.000Z | 2022-03-25T09:18:27.000Z | HSM/load_data.py | 18F/10x-MLaaS | 3e1df3bbd88037c20e916fab2c07117a63e3c639 | [
"CC0-1.0"
] | 8 | 2019-01-05T16:31:02.000Z | 2022-03-20T15:35:06.000Z | import json
from argparse import ArgumentParser
import pandas as pd
from utils import db, db_utils
from utils.db import Data, SupportData
filter_feature = 'Comments Concatenated'
validation = 'Validation'
def main(file):
db_utils.create_postgres_db()
db.dal.connect()
session = db.dal.Session()
df = ... | 30.716981 | 107 | 0.699017 | 226 | 1,628 | 4.792035 | 0.376106 | 0.142198 | 0.077562 | 0.049862 | 0.066482 | 0.046168 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210074 | 1,628 | 52 | 108 | 31.307692 | 0.842146 | 0 | 0 | 0 | 0 | 0 | 0.237715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.138889 | 0 | 0.166667 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
17111432226dd73d653390de29656f4d3d8a9a11 | 2,882 | py | Python | tools/optimization/driver/ask_tell_parallel_driver.py | MRossol/HOPP | c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8 | [
"BSD-3-Clause"
] | 3 | 2021-03-10T20:03:42.000Z | 2022-03-18T17:10:04.000Z | tools/optimization/driver/ask_tell_parallel_driver.py | MRossol/HOPP | c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8 | [
"BSD-3-Clause"
] | 14 | 2020-12-28T22:32:07.000Z | 2022-03-17T15:33:04.000Z | tools/optimization/driver/ask_tell_parallel_driver.py | MRossol/HOPP | c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8 | [
"BSD-3-Clause"
] | 8 | 2021-01-19T02:39:01.000Z | 2022-01-31T18:04:39.000Z | import multiprocessing
from typing import (
Callable,
Tuple,
)
from ..data_logging.data_recorder import DataRecorder
from ..driver.ask_tell_driver import AskTellDriver
from ..optimizer.ask_tell_optimizer import AskTellOptimizer
from .ask_tell_parallel_driver_fns import *
class AskTellParallelDriver(AskTe... | 32.022222 | 116 | 0.611381 | 304 | 2,882 | 5.569079 | 0.351974 | 0.024808 | 0.031896 | 0.033668 | 0.128175 | 0.104548 | 0.104548 | 0.104548 | 0.104548 | 0.104548 | 0 | 0.001496 | 0.304303 | 2,882 | 89 | 117 | 32.382022 | 0.842893 | 0.26891 | 0 | 0 | 0 | 0 | 0.006214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.122449 | 0.040816 | 0.387755 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
17111a7abf53a035de98baa91e71385ab4317ae0 | 7,123 | py | Python | pygcn/models.py | coquid/pygcn | a11788468514cce47bd4262849456895def13714 | [
"MIT"
] | null | null | null | pygcn/models.py | coquid/pygcn | a11788468514cce47bd4262849456895def13714 | [
"MIT"
] | null | null | null | pygcn/models.py | coquid/pygcn | a11788468514cce47bd4262849456895def13714 | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch.nn.functional as F
from pygcn.layers import GraphConvolution, MyGraphConvolution
class GCN(nn.Module):
def __init__(self, nfeat, nhid, nclass, dropout):
super(GCN, self).__init__()
self.gc1 = GraphConvolution(nfeat, nhid)
self.gc2 = GraphConvolution(nhid... | 38.090909 | 62 | 0.600168 | 978 | 7,123 | 4.300614 | 0.063395 | 0.068949 | 0.049929 | 0.054208 | 0.843795 | 0.843795 | 0.83476 | 0.828103 | 0.828103 | 0.828103 | 0 | 0.034365 | 0.260564 | 7,123 | 186 | 63 | 38.295699 | 0.764192 | 0 | 0 | 0.713415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085366 | false | 0 | 0.018293 | 0 | 0.189024 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1711d50df16cf6bbbc6b89a5b298a52cab9c6c7f | 4,255 | py | Python | main.py | BenAsaf/moodle-attendance-bot | bd27263fbb57badbe0ec622b8f72f507795591a2 | [
"MIT"
] | null | null | null | main.py | BenAsaf/moodle-attendance-bot | bd27263fbb57badbe0ec622b8f72f507795591a2 | [
"MIT"
] | null | null | null | main.py | BenAsaf/moodle-attendance-bot | bd27263fbb57badbe0ec622b8f72f507795591a2 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.common import exceptions
import time
import sched
MOODLE_USER_NAME = ""
MOODLE_PASSWORD = ""
MOODLE_HOME_PAGE = "Moodle Address" # THe moodle main homepage
COURSE_TITLE = "Name of the course as it shows up on the left" # What course to search for in the list
START_HOUR, ... | 32.984496 | 127 | 0.683901 | 578 | 4,255 | 4.775087 | 0.307958 | 0.031884 | 0.03442 | 0.038043 | 0.211957 | 0.167391 | 0.125725 | 0.102536 | 0.067391 | 0.067391 | 0 | 0.006876 | 0.213866 | 4,255 | 128 | 128 | 33.242188 | 0.818236 | 0.140541 | 0 | 0.168421 | 0 | 0 | 0.131449 | 0.01921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094737 | false | 0.031579 | 0.042105 | 0 | 0.210526 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1712f4a188130478cc3e6228d716f80f0d9dd93a | 445 | py | Python | iec104/types.py | seregichevks/iec104 | fa7905247869c7a8934dd6a003cb5091b5b1211c | [
"Apache-2.0"
] | 73 | 2015-03-19T03:29:29.000Z | 2022-02-28T05:57:23.000Z | iec104/types.py | seregichevks/iec104 | fa7905247869c7a8934dd6a003cb5091b5b1211c | [
"Apache-2.0"
] | 1 | 2015-06-19T06:01:08.000Z | 2017-10-10T11:09:06.000Z | iec104/types.py | seregichevks/iec104 | fa7905247869c7a8934dd6a003cb5091b5b1211c | [
"Apache-2.0"
] | 52 | 2015-03-04T08:32:31.000Z | 2022-02-05T15:45:13.000Z | # -*- coding: utf-8 -*-
from datetime import datetime
def cp56timebcd(buf):
pass
def cp56time2a_to_time(buf):
microsecond = (buf[1] & 0xFF) << 8 | (buf[0] & 0xFF)
microsecond %= 1000
second = int(microsecond)
minute = buf[2] & 0x3F
hour = buf[3] & 0x1F
day = buf[4] & 0x1F
month = (bu... | 22.25 | 72 | 0.593258 | 60 | 445 | 4.366667 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105422 | 0.253933 | 445 | 19 | 73 | 23.421053 | 0.683735 | 0.047191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066351 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
17134739b8596a864d6e6e37035825d72ffbe045 | 3,119 | py | Python | securetea/lib/antivirus/scanner/yara_scanner.py | neerajv18/SecureTea-Project | e999cbe7c8e497c69b76b4c886de0d063169ea03 | [
"MIT"
] | 257 | 2018-03-28T12:43:20.000Z | 2022-03-29T07:07:23.000Z | securetea/lib/antivirus/scanner/yara_scanner.py | neerajv18/SecureTea-Project | e999cbe7c8e497c69b76b4c886de0d063169ea03 | [
"MIT"
] | 155 | 2018-03-31T14:57:46.000Z | 2022-03-17T18:12:41.000Z | securetea/lib/antivirus/scanner/yara_scanner.py | neerajv18/SecureTea-Project | e999cbe7c8e497c69b76b4c886de0d063169ea03 | [
"MIT"
] | 132 | 2018-03-27T06:25:20.000Z | 2022-03-28T11:32:45.000Z | # -*- coding: utf-8 -*-
u"""Yara Scanner module for SecureTea AntiVirus.
Project:
╔═╗┌─┐┌─┐┬ ┬┬─┐┌─┐╔╦╗┌─┐┌─┐
╚═╗├┤ │ │ │├┬┘├┤ ║ ├┤ ├─┤
╚═╝└─┘└─┘└─┘┴└─└─┘ ╩ └─┘┴ ┴
Author: Abhishek Sharma <abhishek_official@hotmail.com> , Jul 4 2019
Version: 1.4
Module: SecureTea
"""
from securetea.lib.antiv... | 30.281553 | 96 | 0.520359 | 342 | 3,119 | 4.748538 | 0.377193 | 0.049261 | 0.024631 | 0.036946 | 0.146552 | 0.096059 | 0 | 0 | 0 | 0 | 0 | 0.005624 | 0.372876 | 3,119 | 102 | 97 | 30.578431 | 0.789366 | 0.235011 | 0 | 0.264151 | 0 | 0 | 0.102995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.09434 | 0 | 0.169811 | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
171703df70423764cdb150d7746703a8105fdfbc | 5,823 | py | Python | stable_baselines3/common/buffer_multi_level.py | atishdixit16/stable-baselines3 | 0188d6a7b0c905693f41a68484d71b02faee6146 | [
"MIT"
] | null | null | null | stable_baselines3/common/buffer_multi_level.py | atishdixit16/stable-baselines3 | 0188d6a7b0c905693f41a68484d71b02faee6146 | [
"MIT"
] | null | null | null | stable_baselines3/common/buffer_multi_level.py | atishdixit16/stable-baselines3 | 0188d6a7b0c905693f41a68484d71b02faee6146 | [
"MIT"
] | null | null | null | from os import times
from typing import Generator, Optional, Union, NamedTuple
import numpy as np
import torch as th
from gym import spaces
from stable_baselines3.common.type_aliases import RolloutBufferSamples
from stable_baselines3.common.buffers import RolloutBuffer
from stable_baselines3.common.vec_env import Vec... | 37.567742 | 141 | 0.644341 | 714 | 5,823 | 5.02381 | 0.285714 | 0.018121 | 0.027321 | 0.030109 | 0.318093 | 0.293003 | 0.237803 | 0.237803 | 0.237803 | 0.191246 | 0 | 0.005187 | 0.271681 | 5,823 | 154 | 142 | 37.811688 | 0.840604 | 0.230981 | 0 | 0.309278 | 0 | 0 | 0.043419 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 1 | 0.072165 | false | 0 | 0.082474 | 0 | 0.268041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
171b77518c7cb37c9e4c98fa3f24461a2dd6e589 | 3,032 | py | Python | Scripts/plot_ArcticSystemsWorkshop_Fig2.py | zmlabe/ThicknessSensitivity | 6defdd897a61d7d1a02f34a9f4ec92b2b17b3075 | [
"MIT"
] | 1 | 2017-10-22T02:22:14.000Z | 2017-10-22T02:22:14.000Z | Scripts/plot_ArcticSystemsWorkshop_Fig2.py | zmlabe/ThicknessSensitivity | 6defdd897a61d7d1a02f34a9f4ec92b2b17b3075 | [
"MIT"
] | null | null | null | Scripts/plot_ArcticSystemsWorkshop_Fig2.py | zmlabe/ThicknessSensitivity | 6defdd897a61d7d1a02f34a9f4ec92b2b17b3075 | [
"MIT"
] | 4 | 2018-04-05T17:55:36.000Z | 2022-03-31T07:05:01.000Z | """
Plot for NCAR Arctic Systems workshop poster. Graph is DJF sea ice volume
from PIOMAS over the satellite era.
Notes
-----
Author : Zachary Labe
Date : 4 April 2018
"""
### Import modules
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
from mpl_toolkits.basemap i... | 30.626263 | 92 | 0.663918 | 443 | 3,032 | 4.480813 | 0.44921 | 0.032242 | 0.018136 | 0.022166 | 0.189421 | 0.079597 | 0.079597 | 0.079597 | 0 | 0 | 0 | 0.045904 | 0.166557 | 3,032 | 99 | 93 | 30.626263 | 0.739612 | 0.083773 | 0 | 0.132353 | 0 | 0 | 0.151977 | 0.019587 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.147059 | 0 | 0.161765 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
171ba407be1f7b1a08a60731bdef6857373c9c26 | 97 | py | Python | binary/setup.py | namsral/piku | 3159127df0d82a49b4efc319344f42e42cbe7867 | [
"MIT"
] | 1,424 | 2019-08-23T22:20:26.000Z | 2022-03-30T16:16:50.000Z | binary/setup.py | namsral/piku | 3159127df0d82a49b4efc319344f42e42cbe7867 | [
"MIT"
] | 125 | 2019-08-22T21:52:33.000Z | 2022-03-22T03:03:51.000Z | binary/setup.py | namsral/piku | 3159127df0d82a49b4efc319344f42e42cbe7867 | [
"MIT"
] | 45 | 2019-08-24T08:13:02.000Z | 2022-03-31T20:34:30.000Z | from distutils.core import setup
setup(name='piku-binary', version='0.0.1', scripts=['piku.py'])
| 32.333333 | 63 | 0.721649 | 16 | 97 | 4.375 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.072165 | 97 | 2 | 64 | 48.5 | 0.744444 | 0 | 0 | 0 | 0 | 0 | 0.237113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
171f19a1c9e621f8b1151c6b7c0684a1d90d12d0 | 552 | py | Python | src/ch6/heap_sort.py | tchitchikov/algorithms_practice | 6a1ab226b4eb664a8a46853c94148a1ad0e0a558 | [
"MIT"
] | null | null | null | src/ch6/heap_sort.py | tchitchikov/algorithms_practice | 6a1ab226b4eb664a8a46853c94148a1ad0e0a558 | [
"MIT"
] | null | null | null | src/ch6/heap_sort.py | tchitchikov/algorithms_practice | 6a1ab226b4eb664a8a46853c94148a1ad0e0a558 | [
"MIT"
] | null | null | null | import random
from heaps import max_heaps, min_heaps
def heap_sort(array):
array = max_heaps.build_max_heap(array)
i = len(array) - 1
output = []
while i >= 0:
output.insert(0, array[0])
array = array[1:]
array = max_heaps.max_heap(array, 0)
i = i - 1
return output
... | 21.230769 | 55 | 0.615942 | 85 | 552 | 3.729412 | 0.4 | 0.100946 | 0.113565 | 0.100946 | 0.157729 | 0.157729 | 0 | 0 | 0 | 0 | 0 | 0.041363 | 0.255435 | 552 | 25 | 56 | 22.08 | 0.729927 | 0.041667 | 0 | 0 | 0 | 0 | 0.01518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
171f9e469a7e47e8361d3c06fc99723269112474 | 5,321 | py | Python | test_plmn_codec.py | TwilioDevEd/super-sim-uplmn-coder | a098f18a573364e946f44d0fb14ab4005dc46a6d | [
"MIT"
] | null | null | null | test_plmn_codec.py | TwilioDevEd/super-sim-uplmn-coder | a098f18a573364e946f44d0fb14ab4005dc46a6d | [
"MIT"
] | null | null | null | test_plmn_codec.py | TwilioDevEd/super-sim-uplmn-coder | a098f18a573364e946f44d0fb14ab4005dc46a6d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
'''
Super SIM UPLMN Codec
@version 1.0.0
@author Tony Smith (@smittytone)
@copyright Twilio, Inc.
@licence MIT
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"),
to deal in the Software w... | 39.125 | 245 | 0.671866 | 754 | 5,321 | 4.649867 | 0.277188 | 0.128351 | 0.095836 | 0.02567 | 0.456361 | 0.402738 | 0.383913 | 0.383913 | 0.270679 | 0.209641 | 0 | 0.104446 | 0.20109 | 5,321 | 136 | 246 | 39.125 | 0.720301 | 0.243563 | 0 | 0.189655 | 0 | 0.103448 | 0.326169 | 0.023767 | 0 | 0 | 0.011125 | 0 | 0.62069 | 1 | 0.189655 | false | 0 | 0.034483 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17211f08965cfcc8becd31fe9182b1682d452336 | 2,110 | py | Python | setup.py | nickhand/jupyter-panel-proxy | 55f405b7292df281dfd0306f1154fb31992eef19 | [
"BSD-3-Clause"
] | 3 | 2020-04-17T19:54:48.000Z | 2021-03-07T17:08:06.000Z | setup.py | nickhand/jupyter-panel-proxy | 55f405b7292df281dfd0306f1154fb31992eef19 | [
"BSD-3-Clause"
] | 12 | 2020-03-04T13:45:26.000Z | 2022-01-14T04:01:53.000Z | setup.py | nickhand/jupyter-panel-proxy | 55f405b7292df281dfd0306f1154fb31992eef19 | [
"BSD-3-Clause"
] | 3 | 2021-03-08T13:26:50.000Z | 2021-12-20T01:02:00.000Z | import param
from setuptools import find_packages, setup
extras_require = {
'build': ['param >=1.7.0', 'setuptools'],
'tests': [
'flake8',
'twine',
'rfc3986',
'keyring'
],
}
setup_args = dict(
name="jupyter-panel-proxy",
description='Jupyter Server Proxy for Panel... | 31.969697 | 96 | 0.619905 | 216 | 2,110 | 5.87963 | 0.527778 | 0.047244 | 0.066929 | 0.072441 | 0.115748 | 0.115748 | 0.089764 | 0 | 0 | 0 | 0 | 0.013522 | 0.22891 | 2,110 | 65 | 97 | 32.461538 | 0.767056 | 0 | 0 | 0.033333 | 0 | 0.016667 | 0.511848 | 0.048341 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
172229cdfd779697e208462fd6b7eaf4fd180fa2 | 4,579 | py | Python | cli/api.py | chacreton190/covid-data-model | 10e86dee0aa17e9a4261787203d30c4631b5afb1 | [
"MIT"
] | null | null | null | cli/api.py | chacreton190/covid-data-model | 10e86dee0aa17e9a4261787203d30c4631b5afb1 | [
"MIT"
] | null | null | null | cli/api.py | chacreton190/covid-data-model | 10e86dee0aa17e9a4261787203d30c4631b5afb1 | [
"MIT"
] | null | null | null | import api
import logging
import pathlib
import click
import itertools
import us
from api.can_api_definition import CovidActNowAreaTimeseries
from api.can_api_definition import CovidActNowBulkTimeseries
from libs.pipelines import api_pipeline
from libs.datasets.dataset_utils import AggregationLevel
from libs.datasets i... | 33.181159 | 100 | 0.72767 | 551 | 4,579 | 5.791289 | 0.22686 | 0.041366 | 0.023504 | 0.025071 | 0.505798 | 0.492949 | 0.429646 | 0.374491 | 0.351614 | 0.351614 | 0 | 0.002623 | 0.167504 | 4,579 | 137 | 101 | 33.423358 | 0.83447 | 0.051103 | 0 | 0.336207 | 0 | 0 | 0.147643 | 0.01964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043103 | false | 0.008621 | 0.112069 | 0.008621 | 0.163793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
17227cf30b721c2e199e41d4753d20961284c5a7 | 2,335 | py | Python | WilliamWallace/choose_db_dialog.py | gilliM/wallace | 59202aefb6375f23fa6be72c13969bfe36614433 | [
"Apache-2.0"
] | null | null | null | WilliamWallace/choose_db_dialog.py | gilliM/wallace | 59202aefb6375f23fa6be72c13969bfe36614433 | [
"Apache-2.0"
] | null | null | null | WilliamWallace/choose_db_dialog.py | gilliM/wallace | 59202aefb6375f23fa6be72c13969bfe36614433 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
/***************************************************************************
WilliamWallaceDialog
A QGIS plugin
This plugin do a supervised classification
-------------------
begin : 2016-05-17
git... | 40.258621 | 77 | 0.468951 | 191 | 2,335 | 5.638743 | 0.623037 | 0.044568 | 0.029712 | 0.042711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010038 | 0.317345 | 2,335 | 57 | 78 | 40.964912 | 0.665621 | 0.498073 | 0 | 0 | 0 | 0 | 0.072476 | 0.064711 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.074074 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1722e1bc2522475bf1abe2be156b72964c609133 | 573 | py | Python | set3/p3_8.py | matheuspercario/python-mit | fc4ae1e546f33e9a77fd4c51a4ddc0854ab06617 | [
"MIT"
] | null | null | null | set3/p3_8.py | matheuspercario/python-mit | fc4ae1e546f33e9a77fd4c51a4ddc0854ab06617 | [
"MIT"
] | null | null | null | set3/p3_8.py | matheuspercario/python-mit | fc4ae1e546f33e9a77fd4c51a4ddc0854ab06617 | [
"MIT"
] | null | null | null | # PYTHON - MIT - UNICAMP
# =============================================================================
# Created By : Matheus Percário Bruder
# Created Date : February 7th, 2021
# ============================================================================
def f_1(a):
return 2 * a
def f_2(b):
return 3 * ... | 19.758621 | 79 | 0.458988 | 73 | 573 | 3.410959 | 0.39726 | 0.032129 | 0.036145 | 0.072289 | 0.080321 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04034 | 0.17801 | 573 | 28 | 80 | 20.464286 | 0.488323 | 0.609075 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.4 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
172496d4e1a8fa80c8e14527010611354beb9faf | 20,039 | py | Python | PyYDLidar/PyX.py | SweiLz/PyYDLidar | ce2d916904af6cad3f64c6a48f7e6534b952d9a9 | [
"MIT"
] | 6 | 2020-09-02T15:32:22.000Z | 2021-12-12T08:27:10.000Z | PyYDLidar/PyX.py | SweiLz/PyYDLidar | ce2d916904af6cad3f64c6a48f7e6534b952d9a9 | [
"MIT"
] | 1 | 2020-03-21T15:24:30.000Z | 2020-03-22T16:50:33.000Z | PyYDLidar/PyX.py | SweiLz/PyYDLidar | ce2d916904af6cad3f64c6a48f7e6534b952d9a9 | [
"MIT"
] | null | null | null | import threading
import time
from math import atan, pi
import numpy as np
from serial import Serial
class Lidar:
RESULT_OK = 0
RESULT_TIMEOUT = -1
RESULT_FAIL = -2
DEFAULT_TIMEOUT = 2000
cmd_stop = 0x65
cmd_scan = 0x60
cmd_force_scan = 0x61
cmd_reset = 0x80
cmd_force_stop = 0x00... | 33.849662 | 111 | 0.532062 | 2,071 | 20,039 | 4.928054 | 0.134718 | 0.036253 | 0.034294 | 0.010778 | 0.471977 | 0.417402 | 0.389379 | 0.333235 | 0.32138 | 0.28885 | 0 | 0.035867 | 0.380857 | 20,039 | 591 | 112 | 33.906937 | 0.786733 | 0.08199 | 0 | 0.433036 | 0 | 0 | 0.009166 | 0 | 0 | 0 | 0.007802 | 0 | 0 | 1 | 0.040179 | false | 0.006696 | 0.011161 | 0 | 0.171875 | 0.011161 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1724b372c51eac0a72bead9ebc774a9fc7671773 | 1,868 | py | Python | acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py | wangji1/test-framework-and-suites-for-android | 59564f826f205fe7fab64f45b88b1a6dde6900af | [
"Apache-2.0"
] | 8 | 2018-09-14T01:34:01.000Z | 2021-07-01T02:00:23.000Z | acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py | wangji1/test-framework-and-suites-for-android | 59564f826f205fe7fab64f45b88b1a6dde6900af | [
"Apache-2.0"
] | 3 | 2019-09-10T11:39:50.000Z | 2019-10-10T08:26:22.000Z | acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py | wangji1/test-framework-and-suites-for-android | 59564f826f205fe7fab64f45b88b1a6dde6900af | [
"Apache-2.0"
] | 9 | 2018-10-11T15:14:03.000Z | 2021-02-17T11:37:20.000Z | '''
Copyright (C) 2018 Intel Corporation
?
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... | 25.243243 | 91 | 0.633833 | 280 | 1,868 | 4.132143 | 0.439286 | 0.051858 | 0.060501 | 0.027658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012802 | 0.247323 | 1,868 | 73 | 92 | 25.589041 | 0.8101 | 0.320664 | 0 | 0 | 0 | 0 | 0.071372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219512 | false | 0 | 0.02439 | 0.146341 | 0.439024 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
1725e9716ced32c4e508d22f5f3d4b1ba272e429 | 44,983 | py | Python | Icarus/Photometry/Photometry_legacy.py | mhvk/Icarus | bd07ba440cc82d4374e90d6d95dc8844fd82ff19 | [
"BSD-3-Clause"
] | 10 | 2016-03-01T10:12:30.000Z | 2021-08-02T02:36:53.000Z | Icarus/Photometry/Photometry_legacy.py | mhvk/Icarus | bd07ba440cc82d4374e90d6d95dc8844fd82ff19 | [
"BSD-3-Clause"
] | 2 | 2016-03-30T07:13:09.000Z | 2016-04-15T08:54:09.000Z | Icarus/Photometry/Photometry_legacy.py | mhvk/Icarus | bd07ba440cc82d4374e90d6d95dc8844fd82ff19 | [
"BSD-3-Clause"
] | 13 | 2016-02-29T19:20:01.000Z | 2017-05-21T15:25:32.000Z | # Licensed under a 3-clause BSD style license - see LICENSE
from __future__ import print_function, division
__all__ = ["Photometry_legacy"]
from ..Utils.import_modules import *
from .. import Utils
from .. import Core
from .. import Atmosphere
######################## class Photometry ########################
class... | 52.003468 | 262 | 0.569415 | 5,983 | 44,983 | 4.217617 | 0.106301 | 0.026948 | 0.009154 | 0.010779 | 0.626575 | 0.584687 | 0.561306 | 0.543037 | 0.536181 | 0.526234 | 0 | 0.023577 | 0.319232 | 44,983 | 864 | 263 | 52.063657 | 0.800444 | 0.505013 | 0 | 0.407186 | 0 | 0.005988 | 0.087424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038922 | false | 0 | 0.01497 | 0 | 0.107784 | 0.08982 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
172603d967e38fd3517415d28c601fcda847ad6a | 827 | py | Python | library/co2.py | juby-gif/air-quality-lib | dee707a7cf1479bf7a8d9f4661a87a0c523c895f | [
"BSD-3-Clause"
] | 1 | 2019-09-22T22:20:35.000Z | 2019-09-22T22:20:35.000Z | library/co2.py | juby-gif/air-quality-lib | dee707a7cf1479bf7a8d9f4661a87a0c523c895f | [
"BSD-3-Clause"
] | null | null | null | library/co2.py | juby-gif/air-quality-lib | dee707a7cf1479bf7a8d9f4661a87a0c523c895f | [
"BSD-3-Clause"
] | null | null | null | #a2.t4 #This program is to create a function to check carbondioxide content in air
#taking advantage of python statistics library
import statistics
def check_air_quality(carbondioxide_data):
if statistics.median(carbondioxide_data) >= 400 and statistics.median(carbondioxide_data) < 700:
return "EXCELLENT"
... | 55.133333 | 104 | 0.756953 | 99 | 827 | 6.191919 | 0.40404 | 0.305057 | 0.473083 | 0.538336 | 0.58075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053314 | 0.160822 | 827 | 14 | 105 | 59.071429 | 0.829971 | 0.151149 | 0 | 0 | 0 | 0 | 0.040057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
17271fe6063a50ed2061ed3af93c658a70080d06 | 3,952 | py | Python | stayhome/business/forms/add_form.py | mageo/stayhomech | 5afe922b13f0350a79eaff0401709f99c5a31e8b | [
"MIT"
] | 3 | 2020-03-20T11:01:57.000Z | 2020-03-20T16:29:12.000Z | stayhome/business/forms/add_form.py | stayhomech/stayhomech | 5afe922b13f0350a79eaff0401709f99c5a31e8b | [
"MIT"
] | 74 | 2020-03-23T21:35:07.000Z | 2020-04-27T12:55:50.000Z | stayhome/business/forms/add_form.py | mageo/stayhomech | 5afe922b13f0350a79eaff0401709f99c5a31e8b | [
"MIT"
] | 3 | 2020-03-20T11:02:35.000Z | 2020-03-20T16:29:23.000Z | import json
import os
import uuid
from django import forms
from captcha.fields import ReCaptchaField
from phonenumber_field.formfields import PhoneNumberField
from django.utils.translation import gettext_lazy as _
from django.utils.translation import get_language
from geodata.models import NPA
from business.models im... | 29.274074 | 139 | 0.585779 | 420 | 3,952 | 5.380952 | 0.307143 | 0.087611 | 0.066372 | 0.083628 | 0.35177 | 0.290265 | 0.221239 | 0.19115 | 0.19115 | 0.19115 | 0 | 0.008909 | 0.28998 | 3,952 | 134 | 140 | 29.492537 | 0.796507 | 0.006326 | 0 | 0.292035 | 0 | 0.00885 | 0.245413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017699 | false | 0 | 0.088496 | 0.00885 | 0.20354 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
172871b0e7ec867be29846f855105f3c9e31abaf | 144 | py | Python | cherry/nn/__init__.py | acse-yl27218/cherry | 5b349cae64b282facf5a874164690c06808b1c61 | [
"Apache-2.0"
] | 160 | 2019-09-14T05:33:29.000Z | 2022-03-12T18:58:51.000Z | cherry/nn/__init__.py | acse-yl27218/cherry | 5b349cae64b282facf5a874164690c06808b1c61 | [
"Apache-2.0"
] | 14 | 2019-12-05T12:14:05.000Z | 2022-02-28T14:52:52.000Z | cherry/nn/__init__.py | acse-yl27218/cherry | 5b349cae64b282facf5a874164690c06808b1c61 | [
"Apache-2.0"
] | 28 | 2019-09-17T02:25:46.000Z | 2022-03-12T19:53:58.000Z | #!/usr/bin/env python3
from .init import robotics_init_
from .robotics_layers import RoboticsLinear
from .epsilon_greedy import EpsilonGreedy
| 20.571429 | 43 | 0.833333 | 19 | 144 | 6.105263 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.111111 | 144 | 6 | 44 | 24 | 0.898438 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
172924a6a260577eee406ab8308643a692027ef4 | 1,897 | py | Python | src/management_tools.py | EOEPCA/um-pep-engine | efdf87027b54efc5686b3abd3882095441994978 | [
"Apache-2.0"
] | null | null | null | src/management_tools.py | EOEPCA/um-pep-engine | efdf87027b54efc5686b3abd3882095441994978 | [
"Apache-2.0"
] | 3 | 2021-04-12T11:40:39.000Z | 2022-03-08T17:04:03.000Z | src/management_tools.py | EOEPCA/um-pep-engine | efdf87027b54efc5686b3abd3882095441994978 | [
"Apache-2.0"
] | 1 | 2020-07-22T10:35:58.000Z | 2020-07-22T10:35:58.000Z | #!/usr/local/bin/python3
import argparse
import sys
from handlers.mongo_handler import Mongo_Handler
from bson.json_util import dumps
custom_mongo = Mongo_Handler("resource_db", "resources")
def list_resources(user,resource):
if resource is not None:
return custom_mongo.get_from_mongo("resource_id", resou... | 33.875 | 84 | 0.641539 | 237 | 1,897 | 4.983122 | 0.333333 | 0.065199 | 0.038103 | 0.043184 | 0.286198 | 0.193057 | 0.193057 | 0.193057 | 0.064352 | 0 | 0 | 0.00138 | 0.236162 | 1,897 | 55 | 85 | 34.490909 | 0.813665 | 0.012124 | 0 | 0.045455 | 0 | 0 | 0.214095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.295455 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1729bc1792141e43d686d08430a38150299f5fe9 | 56 | py | Python | Web/venv/lib/python3.5/os.py | Pancras-Zheng/Graduation-Project | 5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0 | [
"MIT"
] | 37 | 2018-01-25T03:14:24.000Z | 2021-12-15T10:02:37.000Z | Web/venv/lib/python3.5/os.py | Pancras-Zheng/Graduation-Project | 5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0 | [
"MIT"
] | null | null | null | Web/venv/lib/python3.5/os.py | Pancras-Zheng/Graduation-Project | 5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0 | [
"MIT"
] | 10 | 2019-04-11T07:27:10.000Z | 2021-11-24T11:16:14.000Z | IntxLNK/ u s r / l i b / p y t h o n 3 . 5 / o s . p y | 56 | 56 | 0.446429 | 7 | 56 | 3.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 56 | 1 | 56 | 56 | 0.410714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
172a85f182f53fccf2d57615f7dc161c29331240 | 2,310 | py | Python | python/speaker_2_sound.py | now-start/20_HI001L_- | 494607c21a17c093e0d6bad102416c1afa348982 | [
"MIT"
] | null | null | null | python/speaker_2_sound.py | now-start/20_HI001L_- | 494607c21a17c093e0d6bad102416c1afa348982 | [
"MIT"
] | null | null | null | python/speaker_2_sound.py | now-start/20_HI001L_- | 494607c21a17c093e0d6bad102416c1afa348982 | [
"MIT"
] | null | null | null | # speaker_2_sound.py
# 한 스피커로 녹음해서 정위상, 역위상 wav를 생성한 다음 정위상은 왼쪽, 역위상은 오른쪽 스피커에서 재생시키는 소스코드
# (정위상, 역위상 파일을 하나의 스테레오 wav로 만듦)
# 음성(소음) 녹음, 재생 하는 패키지(wav파일)
import pyaudio
import wave
# 위상 반전, 파장 결합(Merge), 소리 재생 하는 패키지
from pydub import AudioSegment
from pydub.playback import play
from scipy.io import wavfile
import... | 23.814433 | 74 | 0.713853 | 352 | 2,310 | 4.596591 | 0.508523 | 0.033993 | 0.033375 | 0.012361 | 0.024722 | 0.024722 | 0.024722 | 0 | 0 | 0 | 0 | 0.016719 | 0.171429 | 2,310 | 96 | 75 | 24.0625 | 0.828631 | 0.311688 | 0 | 0 | 0 | 0 | 0.144779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
172ae13c89d09756ca732a1e61abb2c47a124303 | 263 | py | Python | exercicios/ex008.py | thiago5171/python. | 92010818bb18ac906a79da762cd7cf219b308a6d | [
"MIT"
] | 1 | 2021-01-04T05:33:32.000Z | 2021-01-04T05:33:32.000Z | exercicios/ex008.py | thiago5171/python. | 92010818bb18ac906a79da762cd7cf219b308a6d | [
"MIT"
] | null | null | null | exercicios/ex008.py | thiago5171/python. | 92010818bb18ac906a79da762cd7cf219b308a6d | [
"MIT"
] | null | null | null | #Crie um programa que leia quanto dinheiro uma pessoa tem na carteira e mostre quantos dólares ela pode comprar.
real = float(input("quantos reais voce tem na carteira: R$"))
dolar = real/5.31
print("com R${:.2f} voce pode comprar U${:.2f}.".format(real,dolar)) | 65.75 | 112 | 0.730038 | 45 | 263 | 4.266667 | 0.733333 | 0.052083 | 0.135417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.144487 | 263 | 4 | 113 | 65.75 | 0.831111 | 0.422053 | 0 | 0 | 0 | 0 | 0.519737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
172d04249db22c0e936f3d55daaddef381d26533 | 1,230 | py | Python | demo_wait_negative.py | rdagger/micropython-ads1220 | c90f939517c8163b234210b8cf91b3ce948b5b1c | [
"MIT"
] | 2 | 2021-08-25T11:40:23.000Z | 2022-02-28T05:31:18.000Z | demo_wait_negative.py | rdagger/micropython-ads1220 | c90f939517c8163b234210b8cf91b3ce948b5b1c | [
"MIT"
] | null | null | null | demo_wait_negative.py | rdagger/micropython-ads1220 | c90f939517c8163b234210b8cf91b3ce948b5b1c | [
"MIT"
] | 1 | 2021-08-08T11:39:47.000Z | 2021-08-08T11:39:47.000Z | """ADS1220 example (monitor for negative voltage)."""
from time import sleep
from machine import Pin, SPI # type: ignore
from ads1220 import ADC
cs = 15 # Chip select pin
drdy = 27 # Data ready pin
spi = SPI(1,
baudrate=10000000, # 10 MHz (try lower speed to troubleshoot)
sck=Pin(14),
... | 26.73913 | 72 | 0.598374 | 161 | 1,230 | 4.509317 | 0.590062 | 0.041322 | 0.038567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063657 | 0.297561 | 1,230 | 45 | 73 | 27.333333 | 0.77662 | 0.279675 | 0 | 0 | 0 | 0 | 0.068366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.085714 | 0 | 0.114286 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
172ec1ffd20a09752459f22ce0256f74dd0dd346 | 10,026 | py | Python | models/unet.py | c22n/unet-pytorch | fc0db7ca69d4149c736b8d0923272f14fb5693fe | [
"MIT"
] | 3 | 2018-03-10T05:48:42.000Z | 2018-07-25T01:18:30.000Z | models/unet.py | c22n/unet-pytorch | fc0db7ca69d4149c736b8d0923272f14fb5693fe | [
"MIT"
] | null | null | null | models/unet.py | c22n/unet-pytorch | fc0db7ca69d4149c736b8d0923272f14fb5693fe | [
"MIT"
] | null | null | null | ### Class to define 3D U-Net.
from typing import List, Tuple
import numpy as np
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
from models.custom_layers import Softmax3d
class AnalysisLayer(nn.Module):
"""Module for analysis layer of U-Net architecture."""... | 35.679715 | 80 | 0.555855 | 1,228 | 10,026 | 4.381922 | 0.142508 | 0.046831 | 0.026017 | 0.022487 | 0.328749 | 0.259245 | 0.218361 | 0.183795 | 0.116335 | 0.107229 | 0 | 0.015579 | 0.353381 | 10,026 | 280 | 81 | 35.807143 | 0.814438 | 0.264014 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003571 | 0 | 1 | 0.070513 | false | 0 | 0.044872 | 0 | 0.185897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
172edcbd3b6c7bbc0d143811122621972d076286 | 27 | py | Python | July21/EssentialPython/helloworld/helloworld.py | pythonbykhaja/intesivepython | d3074f35bf36a04d4d1d9b4ff4631733d40b5817 | [
"Apache-2.0"
] | 2 | 2021-05-29T18:21:50.000Z | 2021-07-24T13:03:30.000Z | July21/EssentialPython/helloworld/helloworld.py | pythonbykhaja/intesivepython | d3074f35bf36a04d4d1d9b4ff4631733d40b5817 | [
"Apache-2.0"
] | null | null | null | July21/EssentialPython/helloworld/helloworld.py | pythonbykhaja/intesivepython | d3074f35bf36a04d4d1d9b4ff4631733d40b5817 | [
"Apache-2.0"
] | 2 | 2021-05-25T10:19:54.000Z | 2021-09-21T12:20:48.000Z | print('Hello World Python') | 27 | 27 | 0.777778 | 4 | 27 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 27 | 1 | 27 | 27 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
172ef675f698c4e9cb851c5bc1b93239e2fc79c9 | 29,343 | py | Python | EBC/python/antchain_sdk_ebc/client.py | alipay/antchain-openapi-prod-sdk | f78549e5135d91756093bd88d191ca260b28e083 | [
"MIT"
] | 6 | 2020-06-28T06:40:50.000Z | 2022-02-25T11:02:18.000Z | EBC/python/antchain_sdk_ebc/client.py | alipay/antchain-openapi-prod-sdk | f78549e5135d91756093bd88d191ca260b28e083 | [
"MIT"
] | null | null | null | EBC/python/antchain_sdk_ebc/client.py | alipay/antchain-openapi-prod-sdk | f78549e5135d91756093bd88d191ca260b28e083 | [
"MIT"
] | 6 | 2020-06-30T09:29:03.000Z | 2022-01-07T10:42:22.000Z | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
import time
from alibabacloud_tea_util.client import Client as UtilClient
from Tea.exceptions import TeaException
from Tea.request import TeaRequest
from Tea.core import TeaCore
from antchain_alipay_util.client import Client as AlipayUtilCli... | 36.496269 | 198 | 0.638619 | 3,149 | 29,343 | 5.641791 | 0.094633 | 0.055162 | 0.042778 | 0.061072 | 0.658505 | 0.61871 | 0.588878 | 0.441686 | 0.380164 | 0.272881 | 0 | 0.004673 | 0.256143 | 29,343 | 803 | 199 | 36.541719 | 0.809273 | 0.113383 | 0 | 0.198391 | 1 | 0 | 0.093839 | 0.039636 | 0 | 0 | 0 | 0 | 0.005362 | 1 | 0.19571 | false | 0 | 0.02681 | 0 | 0.418231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
172f8a9f9d9a0517d21ee1677c5f4b5838bfbc9b | 2,560 | py | Python | scripts/hcmetanode/utils.py | HolisticCoders/metanode | 5e63fadc74eeb634722e12c2bcdc45ca0688087e | [
"MIT"
] | null | null | null | scripts/hcmetanode/utils.py | HolisticCoders/metanode | 5e63fadc74eeb634722e12c2bcdc45ca0688087e | [
"MIT"
] | null | null | null | scripts/hcmetanode/utils.py | HolisticCoders/metanode | 5e63fadc74eeb634722e12c2bcdc45ca0688087e | [
"MIT"
] | null | null | null | import maya.api.OpenMaya as om2
import maya.cmds as cmds
def get_uuid(mobject):
"""Return a `maya.api.OpenMaya.MObject` UUID.
Args:
mobject (maya.api.OpenMaya.MObject): MObject to get the UUID of.
Returns:
str: The MObject UUID.
"""
return om2.MFnDependencyNode(mobject).uuid().as... | 26.666667 | 81 | 0.621484 | 349 | 2,560 | 4.487106 | 0.255014 | 0.04917 | 0.105364 | 0.084291 | 0.34355 | 0.302682 | 0.254789 | 0.211367 | 0.211367 | 0.211367 | 0 | 0.013284 | 0.264844 | 2,560 | 95 | 82 | 26.947368 | 0.81881 | 0.494141 | 0 | 0.121212 | 0 | 0.030303 | 0.117021 | 0.053191 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.151515 | false | 0 | 0.060606 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1731602b3f7eea63308baa2e86c34fe547fe10ff | 812 | py | Python | matrix/matrix.py | GlibGozer/Matrix | 5bc978a47a63ccf51b0be01ab28f5eca5819bcba | [
"Apache-2.0"
] | null | null | null | matrix/matrix.py | GlibGozer/Matrix | 5bc978a47a63ccf51b0be01ab28f5eca5819bcba | [
"Apache-2.0"
] | null | null | null | matrix/matrix.py | GlibGozer/Matrix | 5bc978a47a63ccf51b0be01ab28f5eca5819bcba | [
"Apache-2.0"
] | null | null | null | import os
import random
from discord.ext import commands
from dotenv import load_dotenv
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
bot = commands.Bot(command_prefix='m!')
@bot.command(name='compliment', help='Makes you feel better')
async def nine_nine(ctx):
compliments = [
'Everyone... | 27.066667 | 92 | 0.652709 | 111 | 812 | 4.711712 | 0.657658 | 0.038241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006504 | 0.242611 | 812 | 30 | 93 | 27.066667 | 0.843902 | 0 | 0 | 0 | 0 | 0 | 0.271684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173913 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
173361be9e30006fffba077574f0e94fd3d9ef74 | 1,602 | py | Python | utils/plotting.py | marcelo-santos-12/lbp_paper | 56d2457dce2c97a16de9e034b1a87ef0ceb9446a | [
"MIT"
] | null | null | null | utils/plotting.py | marcelo-santos-12/lbp_paper | 56d2457dce2c97a16de9e034b1a87ef0ceb9446a | [
"MIT"
] | null | null | null | utils/plotting.py | marcelo-santos-12/lbp_paper | 56d2457dce2c97a16de9e034b1a87ef0ceb9446a | [
"MIT"
] | null | null | null | '''
Modulo que implementa as funcoes de plot da curva roc
'''
import matplotlib.pyplot as plt
import numpy as np
import os
from sklearn.metrics import plot_roc_curve
plt.style.use('ggplot')
def plot_results(_id, best_clf, x_test, y_test, method, variant, P, R, output):
if not os.path.exists(output + '/ARR_ROC/... | 36.409091 | 125 | 0.632959 | 238 | 1,602 | 3.987395 | 0.340336 | 0.063224 | 0.075869 | 0.080084 | 0.399368 | 0.38883 | 0.328767 | 0.273973 | 0.202318 | 0.202318 | 0 | 0.004535 | 0.174157 | 1,602 | 44 | 126 | 36.409091 | 0.712774 | 0.078652 | 0 | 0 | 0 | 0 | 0.157357 | 0.066757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.2 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
17352702a9e2965909b6092dc8c8e7e3c676d60c | 552 | py | Python | tests/algorithms/test_rice_siff.py | rvyjidacek/fcapsy | 6d531a337b0e65cac10e41b84d232498f3a05b76 | [
"MIT"
] | null | null | null | tests/algorithms/test_rice_siff.py | rvyjidacek/fcapsy | 6d531a337b0e65cac10e41b84d232498f3a05b76 | [
"MIT"
] | null | null | null | tests/algorithms/test_rice_siff.py | rvyjidacek/fcapsy | 6d531a337b0e65cac10e41b84d232498f3a05b76 | [
"MIT"
] | null | null | null | from fcapsy import Lattice, Context, Concept
from fcapsy.similarity import jaccard
from fcapsy.algorithms.rice_siff import concept_subset
object_labels = tuple(range(5))
attribute_labels = tuple(range(4))
bools = [
[1, 0, 0, 0],
[1, 1, 1, 0],
[0, 1, 0, 1],
[1, 1, 0, 0],
[0, 0, 1, 0],
]
context = Co... | 24 | 57 | 0.682971 | 79 | 552 | 4.64557 | 0.367089 | 0.032698 | 0.024523 | 0.021798 | 0.032698 | 0.032698 | 0 | 0 | 0 | 0 | 0 | 0.049774 | 0.199275 | 552 | 22 | 58 | 25.090909 | 0.780543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
17363b957c4247dd1d67870327e5ffafa8e428ab | 17,766 | py | Python | examples/direct_fidelity_estimation.py | Apratim7py/Cirq | 90bbd14f352980cc222b1b3c05a40d09734b9070 | [
"Apache-2.0"
] | null | null | null | examples/direct_fidelity_estimation.py | Apratim7py/Cirq | 90bbd14f352980cc222b1b3c05a40d09734b9070 | [
"Apache-2.0"
] | null | null | null | examples/direct_fidelity_estimation.py | Apratim7py/Cirq | 90bbd14f352980cc222b1b3c05a40d09734b9070 | [
"Apache-2.0"
] | null | null | null | """Implements direct fidelity estimation.
Fidelity between the desired pure state rho and the actual state sigma is
defined as:
F(rho, sigma) = Tr (rho sigma)
It is a unit-less measurement between 0.0 and 1.0. The following two papers
independently described a faster way to estimate its value:
Direct Fidelity Estima... | 38.960526 | 80 | 0.647923 | 2,327 | 17,766 | 4.792866 | 0.179201 | 0.029588 | 0.016318 | 0.020084 | 0.354703 | 0.300188 | 0.25473 | 0.203622 | 0.194298 | 0.154667 | 0 | 0.015267 | 0.281042 | 17,766 | 455 | 81 | 39.046154 | 0.857903 | 0.373185 | 0 | 0.194444 | 0 | 0 | 0.061417 | 0.002628 | 0 | 0 | 0 | 0.002198 | 0.027778 | 1 | 0.041667 | false | 0 | 0.050926 | 0 | 0.185185 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1738bf0d16768883469e7f50b35ee82154920665 | 3,364 | py | Python | large_data_analysis/treePlotter.py | Codefans-fan/p2pSpider | 2f76fb43f3527cea8ed208089153ec12660907f4 | [
"MIT"
] | null | null | null | large_data_analysis/treePlotter.py | Codefans-fan/p2pSpider | 2f76fb43f3527cea8ed208089153ec12660907f4 | [
"MIT"
] | null | null | null | large_data_analysis/treePlotter.py | Codefans-fan/p2pSpider | 2f76fb43f3527cea8ed208089153ec12660907f4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on Mar 21, 2016
@author: fky
'''
import matplotlib.pyplot as plt
decisionNode = dict(boxstyle='sawtooth',fc='0.8')
leafNode = dict(boxstyle='round4',fc='0.8')
arrow_args = dict(arrowstyle='<-')
def plotNode(nodeTxt,centerPt,parentPt,nodeType):
createPlot.ax1.annot... | 32.660194 | 117 | 0.612663 | 401 | 3,364 | 5.079801 | 0.274314 | 0.008837 | 0.007855 | 0.032401 | 0.303387 | 0.251841 | 0.228277 | 0.167403 | 0.095729 | 0.095729 | 0 | 0.034443 | 0.231867 | 3,364 | 103 | 118 | 32.660194 | 0.75387 | 0.017836 | 0 | 0.298701 | 0 | 0 | 0.055086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103896 | false | 0 | 0.012987 | 0 | 0.155844 | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1738c203fb24e9f67f6c94adff022615f21af1f8 | 1,197 | py | Python | test/regexp/python2.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 1,482 | 2015-10-16T21:59:32.000Z | 2022-03-30T11:44:40.000Z | test/regexp/python2.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 226 | 2015-10-15T15:53:44.000Z | 2022-03-25T03:08:27.000Z | test/regexp/python2.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 129 | 2015-10-20T02:41:49.000Z | 2022-03-22T01:44:36.000Z | a = r'
(?x)
foo
'
# comment
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
r : source.python, storage.type.string.python, string.regexp.quoted.single.python
' : punctuation... | 44.333333 | 112 | 0.636591 | 123 | 1,197 | 6.195122 | 0.227642 | 0.283465 | 0.330709 | 0.125984 | 0.603675 | 0.454068 | 0.414698 | 0.414698 | 0.312336 | 0 | 0 | 0 | 0.25731 | 1,197 | 26 | 113 | 46.038462 | 0.857143 | 0 | 0 | 0.190476 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
173aba7575e11f2aa772e0bbb6d68ec87ccc6080 | 162,093 | py | Python | envanter.py | yhasansenyurt/InventoryManagementSoftware-DepoTakipYazilimi | 87633f3764b3e25d4050904ee7eeb9f410f562e3 | [
"MIT"
] | null | null | null | envanter.py | yhasansenyurt/InventoryManagementSoftware-DepoTakipYazilimi | 87633f3764b3e25d4050904ee7eeb9f410f562e3 | [
"MIT"
] | null | null | null | envanter.py | yhasansenyurt/InventoryManagementSoftware-DepoTakipYazilimi | 87633f3764b3e25d4050904ee7eeb9f410f562e3 | [
"MIT"
] | null | null | null | # This program is made by Hasan Senyurt for ISTAC A.S. - Inventory Management Software
from tkinter import *
import pandas as pd
from tkinter import ttk
from tkinter import messagebox
from datetime import datetime
import getpass
############################################################
# Arranging row co... | 46.391815 | 246 | 0.518036 | 18,278 | 162,093 | 4.508371 | 0.043276 | 0.081477 | 0.031843 | 0.055725 | 0.766031 | 0.718788 | 0.673135 | 0.624824 | 0.582363 | 0.546345 | 0 | 0.040148 | 0.273787 | 162,093 | 3,493 | 247 | 46.405096 | 0.658087 | 0.024455 | 0 | 0.547893 | 0 | 0 | 0.10679 | 0.002879 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033631 | false | 0.000851 | 0.005109 | 0 | 0.040017 | 0.001703 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
173b7808d08e95948766b0c4a6adf14d2495a6e0 | 2,164 | py | Python | frog/management/commands/add_release_notes.py | dreamhaven/Frog | 66e50610d5059aa371e0a50b65ceddd4813b2bc1 | [
"MIT"
] | 3 | 2021-10-03T23:11:24.000Z | 2021-10-04T12:14:56.000Z | frog/management/commands/add_release_notes.py | dreamhaven/Frog | 66e50610d5059aa371e0a50b65ceddd4813b2bc1 | [
"MIT"
] | 7 | 2021-03-18T20:43:09.000Z | 2022-02-10T10:06:24.000Z | frog/management/commands/add_release_notes.py | dreamhaven/Frog | 66e50610d5059aa371e0a50b65ceddd4813b2bc1 | [
"MIT"
] | 1 | 2020-09-30T11:23:55.000Z | 2020-09-30T11:23:55.000Z | ##################################################################################################
# Copyright (c) 2012 Brett Dixon
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without r... | 42.431373 | 123 | 0.65342 | 280 | 2,164 | 5.035714 | 0.539286 | 0.062411 | 0.01844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010056 | 0.172828 | 2,164 | 50 | 124 | 43.28 | 0.777654 | 0.485675 | 0 | 0.090909 | 0 | 0 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
173d06acf3cf5bd7493cf25b0c6f41cbc47cf052 | 977 | py | Python | corpus/exceptions.py | looselycoupled/partisan-discourse | 8579924094c92e25e21ce59a26232269cf6b34bc | [
"Apache-2.0"
] | 25 | 2017-02-27T19:44:23.000Z | 2021-04-11T00:11:49.000Z | corpus/exceptions.py | looselycoupled/partisan-discourse | 8579924094c92e25e21ce59a26232269cf6b34bc | [
"Apache-2.0"
] | 26 | 2016-07-16T15:41:07.000Z | 2016-10-11T16:44:04.000Z | corpus/exceptions.py | looselycoupled/partisan-discourse | 8579924094c92e25e21ce59a26232269cf6b34bc | [
"Apache-2.0"
] | 9 | 2016-08-08T17:19:34.000Z | 2020-03-04T00:31:26.000Z | # corpus.exceptions
# Custom exceptions for corpus handling.
#
# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>
# Created: Mon Jul 18 09:57:26 2016 -0400
#
# Copyright (C) 2016 District Data Labs
# For license information, see LICENSE.txt
#
# ID: exceptions.py [63935bc] benjamin@bengfort.com $
"""
Custo... | 21.23913 | 74 | 0.579324 | 95 | 977 | 5.957895 | 0.578947 | 0.091873 | 0.127208 | 0.174912 | 0.261484 | 0.144876 | 0 | 0 | 0 | 0 | 0 | 0.031447 | 0.186285 | 977 | 45 | 75 | 21.711111 | 0.680503 | 0.542477 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
173d794fa36219432d2bd1e7a2317117f2a2f269 | 2,617 | py | Python | protogen/core.py | connermarzen/proto_gen_compiler | 38c045dcf90dcf3122dcc389c9ff0e200f9ba21d | [
"MIT"
] | null | null | null | protogen/core.py | connermarzen/proto_gen_compiler | 38c045dcf90dcf3122dcc389c9ff0e200f9ba21d | [
"MIT"
] | null | null | null | protogen/core.py | connermarzen/proto_gen_compiler | 38c045dcf90dcf3122dcc389c9ff0e200f9ba21d | [
"MIT"
] | null | null | null | import glob
import os
import sys
from pprint import pprint
from typing import List
from lark import Lark
from protogen.grammar.transformer import PGTransformer
from protogen.util import PGFile
class PGParser(object):
def __init__(self, inputs: List[str],
syntaxPath: str = 'grammar/proto_gen.lar... | 34.434211 | 79 | 0.549866 | 301 | 2,617 | 4.671096 | 0.365449 | 0.076814 | 0.025605 | 0.027738 | 0.154339 | 0.154339 | 0.105263 | 0.105263 | 0.105263 | 0.105263 | 0 | 0.001713 | 0.330913 | 2,617 | 75 | 80 | 34.893333 | 0.801256 | 0.071074 | 0 | 0.12069 | 0 | 0 | 0.184742 | 0.009072 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.137931 | 0 | 0.275862 | 0.258621 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
173e0d807440fb436cd40c600fbbb74b5622d72c | 6,145 | py | Python | shell/packaging/setup.py | garyli1019/impala | ea0e1def6160d596082b01365fcbbb6e24afb21d | [
"Apache-2.0"
] | null | null | null | shell/packaging/setup.py | garyli1019/impala | ea0e1def6160d596082b01365fcbbb6e24afb21d | [
"Apache-2.0"
] | 1 | 2022-03-29T21:58:11.000Z | 2022-03-29T21:58:11.000Z | shell/packaging/setup.py | garyli1019/impala | ea0e1def6160d596082b01365fcbbb6e24afb21d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache Licen... | 36.147059 | 84 | 0.706591 | 873 | 6,145 | 4.879725 | 0.34937 | 0.039437 | 0.016432 | 0.009859 | 0.092019 | 0.077934 | 0.052582 | 0.052582 | 0.052582 | 0.052582 | 0 | 0.012779 | 0.197722 | 6,145 | 169 | 85 | 36.360947 | 0.851318 | 0.479414 | 0 | 0.024096 | 0 | 0 | 0.347051 | 0.020739 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0 | 0.096386 | 0 | 0.144578 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
173fffe9dd2206a27daccda030af3e72d01cef25 | 26 | py | Python | behavior/scripts/main.py | SettingDust/more-chicken | 3816b4f37ed3b6c115dfa9001ec6554b1d69af81 | [
"Apache-2.0"
] | null | null | null | behavior/scripts/main.py | SettingDust/more-chicken | 3816b4f37ed3b6c115dfa9001ec6554b1d69af81 | [
"Apache-2.0"
] | null | null | null | behavior/scripts/main.py | SettingDust/more-chicken | 3816b4f37ed3b6c115dfa9001ec6554b1d69af81 | [
"Apache-2.0"
] | 1 | 2020-10-19T15:32:23.000Z | 2020-10-19T15:32:23.000Z | from common.mod import Mod | 26 | 26 | 0.846154 | 5 | 26 | 4.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
17413f1105780124aeb9ff0b2dc920d49197a4fb | 1,453 | py | Python | tripled/stack/node.py | yeasy/tripled | 2cb1ed9a0455353d39662e5d2043ff76a75b092f | [
"Apache-2.0"
] | 1 | 2018-06-09T03:45:49.000Z | 2018-06-09T03:45:49.000Z | tripled/stack/node.py | yeasy/tripled | 2cb1ed9a0455353d39662e5d2043ff76a75b092f | [
"Apache-2.0"
] | null | null | null | tripled/stack/node.py | yeasy/tripled | 2cb1ed9a0455353d39662e5d2043ff76a75b092f | [
"Apache-2.0"
] | null | null | null | __author__ = 'baohua'
from subprocess import PIPE, Popen
from tripled.common.constants import NODE_ROLES
class Node(object):
"""
An instance of the server in the stack.
"""
def __init__(self, ip, role):
self.ip = ip
self.role = NODE_ROLES.get(role, NODE_ROLES['compute'])
def is... | 22.703125 | 86 | 0.589814 | 198 | 1,453 | 4.09596 | 0.333333 | 0.036991 | 0.059186 | 0.073983 | 0.265105 | 0.265105 | 0.265105 | 0.236745 | 0.236745 | 0.236745 | 0 | 0.036967 | 0.273916 | 1,453 | 63 | 87 | 23.063492 | 0.731754 | 0.227805 | 0 | 0.115385 | 0 | 0 | 0.099404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.115385 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
17423e053f3c9b2038d99ecf3e00f75df52099d6 | 1,814 | py | Python | opencv-2.4.11/samples/python/convexhull.py | durai-chellamuthu/node-opencv | a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3 | [
"MIT"
] | 55 | 2015-06-20T20:15:33.000Z | 2022-02-10T02:45:14.000Z | opencv-2.4.11/samples/python/convexhull.py | durai-chellamuthu/node-opencv | a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3 | [
"MIT"
] | 8 | 2015-06-20T18:46:52.000Z | 2015-10-31T11:08:04.000Z | opencv-2.4.11/samples/python/convexhull.py | durai-chellamuthu/node-opencv | a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3 | [
"MIT"
] | 73 | 2015-06-20T15:59:27.000Z | 2020-03-15T22:43:36.000Z | #! /usr/bin/env python
print "OpenCV Python version of convexhull"
# import the necessary things for OpenCV
import cv2.cv as cv
# to generate random values
import random
# how many points we want at max
_MAX_POINTS = 100
if __name__ == '__main__':
# main object to get random values from
my_random = random... | 27.484848 | 75 | 0.574972 | 246 | 1,814 | 4.150407 | 0.455285 | 0.019589 | 0.049951 | 0.052889 | 0.109696 | 0.078355 | 0.078355 | 0.078355 | 0.078355 | 0.078355 | 0 | 0.037438 | 0.337376 | 1,814 | 65 | 76 | 27.907692 | 0.81198 | 0.309261 | 0 | 0.068966 | 1 | 0 | 0.041296 | 0 | 0 | 0 | 0.004049 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
17435a67c44ac869cb192970c53155e65fc347af | 8,912 | py | Python | WN.py | neyudin/wavenetglow | 3261dd8163709b2204b1c9ba90bc544755439fa5 | [
"BSD-3-Clause"
] | null | null | null | WN.py | neyudin/wavenetglow | 3261dd8163709b2204b1c9ba90bc544755439fa5 | [
"BSD-3-Clause"
] | 2 | 2020-01-28T22:48:08.000Z | 2020-03-03T16:25:33.000Z | WN.py | neyudin/wavenetglow | 3261dd8163709b2204b1c9ba90bc544755439fa5 | [
"BSD-3-Clause"
] | null | null | null | import torch
import torch.nn as nn
class WN(torch.nn.Module):
"""
WN block for affine coupling layer. Actual version
"""
def __init__(self, num_channels, mel_channels, n_layers=8, residual_channels=512,
gate_channels=256, skip_channels=256):
"""
Parameters
... | 36.080972 | 108 | 0.546118 | 1,057 | 8,912 | 4.332072 | 0.109745 | 0.055907 | 0.059402 | 0.058965 | 0.92553 | 0.92553 | 0.89561 | 0.89561 | 0.877703 | 0.841887 | 0 | 0.020448 | 0.363443 | 8,912 | 246 | 109 | 36.227642 | 0.786709 | 0.182338 | 0 | 0.85034 | 0 | 0 | 0.004416 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 1 | 0.027211 | false | 0 | 0.013605 | 0 | 0.068027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
174437ebe7a3e726cb780435f71ba8286739cd0d | 27,514 | py | Python | mavsdk/mission_raw_server_pb2.py | PML-UCF/MAVSDK-Python | a328834518621842f530804572ecb3baeec31805 | [
"BSD-3-Clause"
] | null | null | null | mavsdk/mission_raw_server_pb2.py | PML-UCF/MAVSDK-Python | a328834518621842f530804572ecb3baeec31805 | [
"BSD-3-Clause"
] | null | null | null | mavsdk/mission_raw_server_pb2.py | PML-UCF/MAVSDK-Python | a328834518621842f530804572ecb3baeec31805 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mission_raw_server/mission_raw_server.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _me... | 39.702742 | 2,987 | 0.775096 | 3,159 | 27,514 | 6.428933 | 0.095283 | 0.048747 | 0.076419 | 0.062682 | 0.61293 | 0.572849 | 0.51972 | 0.503964 | 0.429169 | 0.396967 | 0 | 0.03423 | 0.112343 | 27,514 | 692 | 2,988 | 39.760116 | 0.797322 | 0.047031 | 0 | 0.626603 | 1 | 0.001603 | 0.276735 | 0.251279 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009615 | 0 | 0.009615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
17447407c571b28418fb7fbb866da851ca2f25a2 | 1,420 | py | Python | tests/surf_curl_methods.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 17 | 2017-06-29T16:48:56.000Z | 2021-10-03T18:31:41.000Z | tests/surf_curl_methods.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 4 | 2018-05-29T08:21:13.000Z | 2021-04-01T01:28:50.000Z | tests/surf_curl_methods.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 8 | 2019-06-10T22:19:40.000Z | 2022-01-12T20:55:37.000Z | import numpy as np
basis_gradient = [[-1.0, -1.0], [1.0, 0.0], [0.0, 1.0]]
e = [[[int((i - j) * (j - k) * (k - i) / 2) for k in range(3)]
for j in range(3)] for i in range(3)]
tri = np.random.rand(3,3)
# tri = np.array([[0,0,0],[1.1,0,0],[0,1.1,0]])
# tri = np.array([[0,0,0],[1,1,0],[0,1,0]])
surf_curl = np.empt... | 28.4 | 102 | 0.607042 | 260 | 1,420 | 3.157692 | 0.192308 | 0.102314 | 0.107186 | 0.093788 | 0.320341 | 0.205847 | 0.200974 | 0.200974 | 0.165652 | 0.165652 | 0 | 0.063167 | 0.208451 | 1,420 | 49 | 103 | 28.979592 | 0.66726 | 0.061268 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.026316 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1745411ed8dd4e2c057611bffced47e22e3caab1 | 1,119 | py | Python | ga4gh/testbed/submit/report_submitter.py | ga4gh/ga4gh-testbed-lib | 599bb28e58c82e30058239e04525fba313a4bae4 | [
"Apache-2.0"
] | null | null | null | ga4gh/testbed/submit/report_submitter.py | ga4gh/ga4gh-testbed-lib | 599bb28e58c82e30058239e04525fba313a4bae4 | [
"Apache-2.0"
] | 3 | 2022-03-21T18:30:27.000Z | 2022-03-30T18:04:05.000Z | ga4gh/testbed/submit/report_submitter.py | ga4gh/ga4gh-testbed-lib | 599bb28e58c82e30058239e04525fba313a4bae4 | [
"Apache-2.0"
] | null | null | null | from re import sub
import requests
class ReportSubmitter():
def submit_report(series_id, series_token, report, url="http://localhost:4500/reports"):
'''
Submits a report to the GA4GH testbed api.
Required arguments:
series_id - A series ID is needed by server to group... | 33.909091 | 107 | 0.613941 | 126 | 1,119 | 5.293651 | 0.436508 | 0.116942 | 0.076462 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013942 | 0.294906 | 1,119 | 32 | 108 | 34.96875 | 0.831432 | 0.2395 | 0 | 0 | 0 | 0 | 0.20154 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
17458c0950b3d6fa10192f5ac3b3e23c730302f2 | 1,611 | py | Python | phovea_server/_utils.py | phovea/phovea_server | f83879f58669ff4d554efcb727b1c6fd0185041a | [
"BSD-3-Clause"
] | 3 | 2018-06-08T01:28:56.000Z | 2020-01-10T14:17:34.000Z | phovea_server/_utils.py | phovea/phovea_server | f83879f58669ff4d554efcb727b1c6fd0185041a | [
"BSD-3-Clause"
] | 88 | 2016-11-06T08:28:21.000Z | 2022-03-22T07:18:59.000Z | phovea_server/_utils.py | phovea/phovea_server | f83879f58669ff4d554efcb727b1c6fd0185041a | [
"BSD-3-Clause"
] | 6 | 2017-06-06T20:43:00.000Z | 2020-02-13T18:23:46.000Z | ###############################################################################
# Caleydo - Visualization for Molecular Biology - http://caleydo.org
# Copyright (c) The Caleydo Team. All rights reserved.
# Licensed under the new BSD license, available at http://caleydo.org/license
######################################... | 26.85 | 79 | 0.577902 | 216 | 1,611 | 4.217593 | 0.356481 | 0.008782 | 0.055982 | 0.015368 | 0.061471 | 0.061471 | 0.061471 | 0.061471 | 0 | 0 | 0 | 0.003101 | 0.199255 | 1,611 | 59 | 80 | 27.305085 | 0.703101 | 0.156425 | 0 | 0.15 | 0 | 0 | 0.065272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.075 | 0.025 | 0.475 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
17479b6aa39e88b50ca6246c79ded1da0b011cc9 | 1,785 | py | Python | ait/core/server/plugins/PacketAccumulator.py | kmarwah/AIT-Core | c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245 | [
"MIT"
] | 1 | 2022-01-22T13:55:49.000Z | 2022-01-22T13:55:49.000Z | ait/core/server/plugins/PacketAccumulator.py | kmarwah/AIT-Core | c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245 | [
"MIT"
] | 2 | 2021-09-16T19:14:52.000Z | 2021-09-16T19:16:03.000Z | ait/core/server/plugins/PacketAccumulator.py | kmarwah/AIT-Core | c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245 | [
"MIT"
] | null | null | null | from ait.core.server.plugins import Plugin
from gevent import Greenlet, sleep
class PacketAccumulator(Plugin):
def __init__(self, inputs=None, outputs=None, zmq_args=None, timer_seconds=1, max_size_octets=1024):
super().__init__(inputs, outputs, zmq_args)
self.packet_queue = []
self.size_... | 34.326923 | 104 | 0.615126 | 228 | 1,785 | 4.578947 | 0.342105 | 0.105364 | 0.087165 | 0.072797 | 0.118774 | 0.118774 | 0.118774 | 0 | 0 | 0 | 0 | 0.017657 | 0.301961 | 1,785 | 51 | 105 | 35 | 0.820225 | 0.032493 | 0 | 0.2 | 0 | 0 | 0.133411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
17481e10b622b0efff0974078b54a915260f2fb9 | 294 | py | Python | tests/test_crv/test_crv.py | cmarqu/cocotb-coverage | 8e8e769e3df01798f88ab633bfe464f5b3884d55 | [
"BSD-2-Clause"
] | null | null | null | tests/test_crv/test_crv.py | cmarqu/cocotb-coverage | 8e8e769e3df01798f88ab633bfe464f5b3884d55 | [
"BSD-2-Clause"
] | null | null | null | tests/test_crv/test_crv.py | cmarqu/cocotb-coverage | 8e8e769e3df01798f88ab633bfe464f5b3884d55 | [
"BSD-2-Clause"
] | null | null | null |
import cocotb
import unittest
import crv_unittest
from cocotb.triggers import Timer
@cocotb.test()
def test_crv(dut):
suite = unittest.TestSuite()
suite.addTests(unittest.TestLoader().loadTestsFromModule(crv_unittest))
unittest.TextTestRunner().run(suite)
yield Timer(1000)
| 22.615385 | 76 | 0.765306 | 35 | 294 | 6.342857 | 0.542857 | 0.099099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.136054 | 294 | 12 | 77 | 24.5 | 0.858268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
174851ae78f447b7133dd774eabe7edf75caa7c7 | 3,679 | py | Python | services/ui_backend_service/data/cache/generate_dag_action.py | runsascoded/metaflow-service | ac7770dfeae17fd060129d408fa3bb472fc00b86 | [
"Apache-2.0"
] | null | null | null | services/ui_backend_service/data/cache/generate_dag_action.py | runsascoded/metaflow-service | ac7770dfeae17fd060129d408fa3bb472fc00b86 | [
"Apache-2.0"
] | null | null | null | services/ui_backend_service/data/cache/generate_dag_action.py | runsascoded/metaflow-service | ac7770dfeae17fd060129d408fa3bb472fc00b86 | [
"Apache-2.0"
] | null | null | null | import hashlib
import json
from .client import CacheAction
from .utils import streamed_errors, DAGParsingFailed, DAGUnsupportedFlowLanguage
from .custom_flowgraph import FlowGraph
from metaflow import Run, Step, DataArtifact, namespace
from metaflow.exception import MetaflowNotFound
namespace(None) # Always use glo... | 29.669355 | 101 | 0.583582 | 404 | 3,679 | 5.153465 | 0.381188 | 0.025937 | 0.021614 | 0.036023 | 0.113353 | 0.066282 | 0.042267 | 0.042267 | 0.042267 | 0 | 0 | 0.002392 | 0.318293 | 3,679 | 123 | 102 | 29.910569 | 0.827751 | 0.220712 | 0 | 0.088235 | 0 | 0 | 0.094818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0 | 0.102941 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1749ab03881bd2e5bd99504afb6c2d2a4c5881b2 | 3,803 | py | Python | examples/nontrivial/main.py | splnkit/splunk-tracer-python | 4be681cbb4156284daaaa35dcca8c8992f1aa191 | [
"MIT"
] | null | null | null | examples/nontrivial/main.py | splnkit/splunk-tracer-python | 4be681cbb4156284daaaa35dcca8c8992f1aa191 | [
"MIT"
] | null | null | null | examples/nontrivial/main.py | splnkit/splunk-tracer-python | 4be681cbb4156284daaaa35dcca8c8992f1aa191 | [
"MIT"
] | null | null | null | """
Synthetic example with high concurrency. Used primarily to stress test the
library.
"""
import argparse
import sys
import time
import threading
import random
# Comment out to test against the published copy
import os
sys.path.insert(1, os.path.dirname(os.path.realpath(__file__)) + '/../..')
import opentracing
imp... | 34.572727 | 110 | 0.608467 | 451 | 3,803 | 4.944568 | 0.399113 | 0.036323 | 0.026906 | 0.026906 | 0.1713 | 0.142152 | 0.038565 | 0 | 0 | 0 | 0 | 0.010549 | 0.27715 | 3,803 | 109 | 111 | 34.889908 | 0.800655 | 0.131475 | 0 | 0.054054 | 0 | 0 | 0.132784 | 0.020147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0 | 0.108108 | 0 | 0.162162 | 0.040541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
174c839ee6b2c3dcc46328886c1e0ff5e1298c8c | 2,773 | py | Python | pyoti/plugins/datasources/generic.py | cellular-nanoscience/pyotic | 4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff | [
"Apache-2.0"
] | 1 | 2018-06-12T11:46:54.000Z | 2018-06-12T11:46:54.000Z | pyoti/plugins/datasources/generic.py | cellular-nanoscience/pyotic | 4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff | [
"Apache-2.0"
] | 6 | 2017-09-08T09:02:20.000Z | 2018-11-14T10:22:01.000Z | pyoti/plugins/datasources/generic.py | cellular-nanoscience/pyotic | 4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff | [
"Apache-2.0"
] | 3 | 2017-09-08T11:08:28.000Z | 2019-07-17T21:40:13.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 18 13:41:17 2016
@author: Tobias Jachowski
"""
import inspect
import numbers
from pyoti.data.datasource import DataSource
from pyoti.picklable import unboundfunction
class GenericDataFile(DataSource):
def __init__(self, load_data, filename, directory=None, sampling... | 33.011905 | 77 | 0.573026 | 286 | 2,773 | 5.402098 | 0.258741 | 0.082848 | 0.069903 | 0.031068 | 0.579935 | 0.533333 | 0.339159 | 0.292557 | 0.292557 | 0.292557 | 0 | 0.011357 | 0.333213 | 2,773 | 83 | 78 | 33.409639 | 0.824229 | 0.112153 | 0 | 0.470588 | 0 | 0 | 0.055814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.078431 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
174dc1f508c7bead5580d0a22374724068ce4f6c | 4,721 | py | Python | src/matlab2cpp/rules/parallel.py | neilferg/matlab2cpp | aa26671fc73dad297c977511053b076e05bdd2df | [
"BSD-3-Clause"
] | null | null | null | src/matlab2cpp/rules/parallel.py | neilferg/matlab2cpp | aa26671fc73dad297c977511053b076e05bdd2df | [
"BSD-3-Clause"
] | null | null | null | src/matlab2cpp/rules/parallel.py | neilferg/matlab2cpp | aa26671fc73dad297c977511053b076e05bdd2df | [
"BSD-3-Clause"
] | null | null | null |
def variable_lists(node):
nodes = node.flatten(ordered=False, reverse=False, inverse=False)
#store some variable names, in private or shared
assigned_var = []
type_info = []
#get iterator name
iterator_name = node[0].name
for n in nodes:
if n.cls == "Assign":
#index = ... | 33.964029 | 100 | 0.528278 | 610 | 4,721 | 3.913115 | 0.180328 | 0.087558 | 0.069124 | 0.087558 | 0.440721 | 0.344365 | 0.322581 | 0.254294 | 0.221617 | 0.173858 | 0 | 0.008359 | 0.315823 | 4,721 | 138 | 101 | 34.210145 | 0.73065 | 0.222622 | 0 | 0.2 | 0 | 0.015385 | 0.182708 | 0.030669 | 0.076923 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0 | 0 | 0.092308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
174dd47506793e6d8f38f7f917f3d5a1459219eb | 1,154 | py | Python | test/test_clock.py | Ham22/python-as1130-clock | a97fbdf3d0fe5a9cafa7392458c44782f688daa7 | [
"Apache-2.0"
] | null | null | null | test/test_clock.py | Ham22/python-as1130-clock | a97fbdf3d0fe5a9cafa7392458c44782f688daa7 | [
"Apache-2.0"
] | null | null | null | test/test_clock.py | Ham22/python-as1130-clock | a97fbdf3d0fe5a9cafa7392458c44782f688daa7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import unittest
from unittest.mock import MagicMock, call
from clock import clock
class TestClock(unittest.TestCase):
def setUp(self):
self.grid = MagicMock()
self.clock = clock.Clock(self.grid)
def test_grid_is_cleared_before_setting_new_led(self):
self.clock.up... | 26.227273 | 67 | 0.681109 | 171 | 1,154 | 4.280702 | 0.327485 | 0.087432 | 0.071038 | 0.103825 | 0.513661 | 0.513661 | 0.409836 | 0.409836 | 0.409836 | 0.362022 | 0 | 0.020585 | 0.200173 | 1,154 | 43 | 68 | 26.837209 | 0.772481 | 0.014731 | 0 | 0.269231 | 0 | 0 | 0.007042 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.192308 | false | 0 | 0.115385 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
174f039433c2e09bc4b24b82001c92bcb71f38f0 | 2,580 | py | Python | opencv/crop_youtube_video_screenshots.py | kinow/dork-scripts | a4fa7980a8cdff41df806bb4d4b70f7b4ac89349 | [
"CC-BY-4.0"
] | 1 | 2016-08-07T07:45:24.000Z | 2016-08-07T07:45:24.000Z | opencv/crop_youtube_video_screenshots.py | kinow/dork-scripts | a4fa7980a8cdff41df806bb4d4b70f7b4ac89349 | [
"CC-BY-4.0"
] | null | null | null | opencv/crop_youtube_video_screenshots.py | kinow/dork-scripts | a4fa7980a8cdff41df806bb4d4b70f7b4ac89349 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
"""A script to iterate through directories and produce cropped images.
The images contain the video screen area of YouTube videos. The screenshots
were taken from my computer, with 900/1600 resolution, and the location is
always the same for the ROI.
Ideally a future version will automatically... | 32.25 | 103 | 0.660465 | 330 | 2,580 | 4.981818 | 0.460606 | 0.060219 | 0.024331 | 0.021898 | 0.082725 | 0.082725 | 0.082725 | 0 | 0 | 0 | 0 | 0.016129 | 0.231008 | 2,580 | 79 | 104 | 32.658228 | 0.8125 | 0.174031 | 0 | 0.046512 | 0 | 0 | 0.08494 | 0.013549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.116279 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1754169b8d71a433dcd5e77169d9d86236b1dbc6 | 336 | py | Python | cartography/intel/jamf/__init__.py | Relys/cartography | 0f71b3f0246665d5fa065afa2e3dc46c22d6c689 | [
"Apache-2.0"
] | 1 | 2021-03-26T12:00:26.000Z | 2021-03-26T12:00:26.000Z | cartography/intel/jamf/__init__.py | srics/cartography | 19a06766e304d657d956246179a2bb01a6d9aef6 | [
"Apache-2.0"
] | 1 | 2021-02-23T18:08:04.000Z | 2021-03-31T08:17:23.000Z | cartography/intel/jamf/__init__.py | srics/cartography | 19a06766e304d657d956246179a2bb01a6d9aef6 | [
"Apache-2.0"
] | 1 | 2021-03-31T17:55:31.000Z | 2021-03-31T17:55:31.000Z | from cartography.intel.jamf import computers
from cartography.util import timeit
@timeit
def start_jamf_ingestion(neo4j_session, config):
common_job_parameters = {
"UPDATE_TAG": config.update_tag,
}
computers.sync(neo4j_session, config.jamf_base_uri, config.jamf_user, config.jamf_password, common_... | 30.545455 | 118 | 0.78869 | 44 | 336 | 5.704545 | 0.545455 | 0.119522 | 0.143426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006873 | 0.133929 | 336 | 10 | 119 | 33.6 | 0.85567 | 0 | 0 | 0 | 0 | 0 | 0.029762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1754c01d73f56bdac624a68f9dd5e0ed03393ed4 | 1,297 | py | Python | setup.py | carlosdamazio/python-aisweb | bc54e26b5ea758bcc69351d268a44e0b520d0956 | [
"MIT"
] | 8 | 2018-04-03T15:07:09.000Z | 2022-03-13T13:12:45.000Z | setup.py | carlosdamazio/python-aisweb | bc54e26b5ea758bcc69351d268a44e0b520d0956 | [
"MIT"
] | 5 | 2018-04-03T20:09:24.000Z | 2019-09-10T01:17:42.000Z | setup.py | carlosdamazio/python-aisweb | bc54e26b5ea758bcc69351d268a44e0b520d0956 | [
"MIT"
] | 1 | 2018-04-03T04:09:58.000Z | 2018-04-03T04:09:58.000Z | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import os
import re
package = 'python_aisweb'
init_py = open(os.path.join(package, '__init__.py')).read()
version = re.search(
"^__version__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1)
author = re.search(
"^__author__ = ['\"]([^'... | 27.595745 | 75 | 0.619121 | 140 | 1,297 | 5.55 | 0.535714 | 0.03861 | 0.030888 | 0.065637 | 0.088803 | 0.088803 | 0 | 0 | 0 | 0 | 0 | 0.005709 | 0.189668 | 1,297 | 46 | 76 | 28.195652 | 0.733587 | 0.016191 | 0 | 0 | 0 | 0 | 0.324961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.131579 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
175519be4a7561f84e8552643f76c512dbaaf58b | 1,254 | py | Python | external_api_tests/test_weather.py | AbhinavTalari/SOAD-Project | aa89f481da2b6f29c8750d9c144f82368be81a7b | [
"MIT"
] | null | null | null | external_api_tests/test_weather.py | AbhinavTalari/SOAD-Project | aa89f481da2b6f29c8750d9c144f82368be81a7b | [
"MIT"
] | null | null | null | external_api_tests/test_weather.py | AbhinavTalari/SOAD-Project | aa89f481da2b6f29c8750d9c144f82368be81a7b | [
"MIT"
] | 2 | 2020-12-21T07:05:41.000Z | 2021-02-17T17:33:48.000Z | import pytest
import requests
MY_KEY = '02db6ca787d18d34175d3c7996cf193b'
@pytest.mark.parametrize("key , q , extras" , [
(MY_KEY , "London" , "okay") ,
('' , "London" , "Wrong key"),
('abc' , "London" , "Wrong key"),
(MY_KEY , "abc" , "Wrong city"),
(MY_KEY , " " , "blank city"),
('' ... | 20.225806 | 116 | 0.596491 | 150 | 1,254 | 4.946667 | 0.353333 | 0.188679 | 0.114555 | 0.056604 | 0.474394 | 0.474394 | 0.474394 | 0.474394 | 0.474394 | 0.474394 | 0 | 0.044761 | 0.216108 | 1,254 | 61 | 117 | 20.557377 | 0.710071 | 0 | 0 | 0.266667 | 0 | 0 | 0.39645 | 0.02705 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |