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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57eaabbef1699ece97d4465e809ca0313d81c045 | 83 | py | Python | content/example/chunk_np.py | qianglise/HPDA-Python | 93eefae38569bce35e82586c17ed4a164c3db1c4 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | content/example/chunk_np.py | qianglise/HPDA-Python | 93eefae38569bce35e82586c17ed4a164c3db1c4 | [
"CC-BY-4.0",
"MIT"
] | 17 | 2022-03-01T13:12:11.000Z | 2022-03-31T09:55:45.000Z | content/example/chunk_np.py | qianglise/HPDA-Python | 93eefae38569bce35e82586c17ed4a164c3db1c4 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2022-03-01T16:33:10.000Z | 2022-03-07T07:48:03.000Z | import numpy as np
%%time
x = np.random.random((20000, 20000))
y = x.mean(axis=0)
| 13.833333 | 36 | 0.662651 | 16 | 83 | 3.4375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 0.156627 | 83 | 5 | 37 | 16.6 | 0.628571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
17aae651bd9f8c246fed1d942930d259181faddf | 171 | py | Python | config/config.py | shadowfiles/lyrefly | 7c035662f64aa02327419a3ebedce9ece2011902 | [
"Apache-2.0"
] | null | null | null | config/config.py | shadowfiles/lyrefly | 7c035662f64aa02327419a3ebedce9ece2011902 | [
"Apache-2.0"
] | null | null | null | config/config.py | shadowfiles/lyrefly | 7c035662f64aa02327419a3ebedce9ece2011902 | [
"Apache-2.0"
] | null | null | null | DEBUG = True
DB_HOST = "host"
DB_USER = "user"
DB_PASSWORD = "password1"
DB_DATABASE = "database"
SESSION_LIMIT = 5
UPLOAD_FOLDER = "static/uploads/"
SECRET_KEY = "FSDFF"
| 19 | 33 | 0.730994 | 24 | 171 | 4.916667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.140351 | 171 | 8 | 34 | 21.375 | 0.789116 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0 | 0 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
17ae839a57852027befb684c9588e42bb99340a2 | 776 | py | Python | setup.py | robo-bootcamp/pyBot | f29fb8df3897ee4c2b641d3eb29b331f66d7d8bf | [
"MIT"
] | 1 | 2020-07-30T00:51:40.000Z | 2020-07-30T00:51:40.000Z | setup.py | robo-bootcamp/pyBot | f29fb8df3897ee4c2b641d3eb29b331f66d7d8bf | [
"MIT"
] | 14 | 2020-06-13T01:52:42.000Z | 2020-06-18T11:15:50.000Z | setup.py | robo-bootcamp/pyBotic | f29fb8df3897ee4c2b641d3eb29b331f66d7d8bf | [
"MIT"
] | null | null | null | # coding=utf-8
from setuptools import find_packages
from setuptools import setup
setup(
name="pybotic",
version="0.0.1",
description="pyBot",
packages=find_packages(),
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Science/Research",
"License :: O... | 29.846154 | 51 | 0.619845 | 82 | 776 | 5.829268 | 0.670732 | 0.158996 | 0.209205 | 0.217573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020305 | 0.238402 | 776 | 25 | 52 | 31.04 | 0.788494 | 0.015464 | 0 | 0 | 0 | 0 | 0.55643 | 0.031496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
17c1a2afbc676016a02470404ad169bb64060dc3 | 110 | py | Python | kgtk/__init__.py | bhatiadivij/kgtk | 10890fa2c3460e199d327a0b66e0f71501738fe2 | [
"MIT"
] | null | null | null | kgtk/__init__.py | bhatiadivij/kgtk | 10890fa2c3460e199d327a0b66e0f71501738fe2 | [
"MIT"
] | null | null | null | kgtk/__init__.py | bhatiadivij/kgtk | 10890fa2c3460e199d327a0b66e0f71501738fe2 | [
"MIT"
] | null | null | null | __version__ = '0.1.0'
from kgtk.node_matcher import NodeMatcher
from kgtk.graph_manager import GraphManager
| 18.333333 | 43 | 0.818182 | 16 | 110 | 5.25 | 0.75 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.118182 | 110 | 5 | 44 | 22 | 0.835052 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
17db483639d314f93a4b415710301b97bfebe69d | 97 | py | Python | Clarinet/constants.py | rohans0509/Clarinet | 0a7a6a5e6a91f93956b6b5739cab1f030655cac8 | [
"MIT"
] | 1 | 2022-01-28T20:30:07.000Z | 2022-01-28T20:30:07.000Z | Clarinet/constants.py | rohans0509/Clarinet | 0a7a6a5e6a91f93956b6b5739cab1f030655cac8 | [
"MIT"
] | null | null | null | Clarinet/constants.py | rohans0509/Clarinet | 0a7a6a5e6a91f93956b6b5739cab1f030655cac8 | [
"MIT"
] | 2 | 2021-11-23T13:55:10.000Z | 2021-11-23T13:56:57.000Z | num_processes_evaluate=4
midi_folder="Data/Midi"
text_folder="Data/Text"
random_seed_noisyuser=42 | 24.25 | 24 | 0.865979 | 16 | 97 | 4.875 | 0.75 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0.030928 | 97 | 4 | 25 | 24.25 | 0.797872 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 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 |
17e4ad8f5a5dd6abd7eb9955818a58f203718b2b | 1,158 | py | Python | queryset_client/tests/base/tests/foreignkey.py | pulina/tastypie-queryset-client | 1d65ee387e256b78c44fd8be57fa64ca798ae2da | [
"MIT"
] | null | null | null | queryset_client/tests/base/tests/foreignkey.py | pulina/tastypie-queryset-client | 1d65ee387e256b78c44fd8be57fa64ca798ae2da | [
"MIT"
] | 1 | 2016-12-22T10:55:44.000Z | 2016-12-22T10:55:44.000Z | queryset_client/tests/base/tests/foreignkey.py | pulina/tastypie-queryset-client | 1d65ee387e256b78c44fd8be57fa64ca798ae2da | [
"MIT"
] | 5 | 2015-04-27T11:50:28.000Z | 2019-01-10T06:39:57.000Z | #from django.conf import settings
#settings.DEBUG = True
from testcases import (
TestServerTestCase,
get_client
)
from django.core.management import call_command
class ForeignkeyTestCase(TestServerTestCase):
def setUp(self):
self.start_test_server()
self.client = get_client()
call... | 29.692308 | 86 | 0.623489 | 132 | 1,158 | 5.348485 | 0.416667 | 0.09915 | 0.127479 | 0.186969 | 0.368272 | 0.327195 | 0.28187 | 0.233711 | 0.233711 | 0.233711 | 0 | 0.013049 | 0.272021 | 1,158 | 38 | 87 | 30.473684 | 0.824437 | 0.067358 | 0 | 0.071429 | 0 | 0 | 0.021356 | 0 | 0 | 0 | 0 | 0.026316 | 0.178571 | 0 | null | null | 0 | 0.071429 | null | null | 0.035714 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aa1e5b90a49bb4350397ad2d6d131d84804deeb1 | 108 | py | Python | esp32-internal-sensors-real-time-monitor-in-Dash/main.py | uteyechea/playing-with-the-ESP32-microcontroller | d1f741617340e2917f113b6fe47f9435d23b2329 | [
"MIT"
] | null | null | null | esp32-internal-sensors-real-time-monitor-in-Dash/main.py | uteyechea/playing-with-the-ESP32-microcontroller | d1f741617340e2917f113b6fe47f9435d23b2329 | [
"MIT"
] | null | null | null | esp32-internal-sensors-real-time-monitor-in-Dash/main.py | uteyechea/playing-with-the-ESP32-microcontroller | d1f741617340e2917f113b6fe47f9435d23b2329 | [
"MIT"
] | null | null | null |
number_of_measurements=600
frequency=0.10
measureLocalMagnetism(number_of_measurements,frequency,led=led)
| 18 | 63 | 0.87963 | 14 | 108 | 6.5 | 0.642857 | 0.175824 | 0.43956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.046296 | 108 | 5 | 64 | 21.6 | 0.825243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 |
aa27758ee13e57a04c42f24cfc7c3f4291f58d13 | 1,400 | py | Python | python/r042d5.py | vandermeerlab/hc_hyperalign | f140aca8c9b1c4196ea2c63326fbbbded22bbcc1 | [
"MIT"
] | null | null | null | python/r042d5.py | vandermeerlab/hc_hyperalign | f140aca8c9b1c4196ea2c63326fbbbded22bbcc1 | [
"MIT"
] | null | null | null | python/r042d5.py | vandermeerlab/hc_hyperalign | f140aca8c9b1c4196ea2c63326fbbbded22bbcc1 | [
"MIT"
] | null | null | null | import numpy as np
import nept
task_times = dict()
task_times['on_track'] = nept.Epoch(np.array([2421.1, 4816.9]))
experiment_times = dict()
experiment_times['left_trials'] = nept.Epoch(np.array([[2436.3, 2487.4],
[3398.8, 3423.7],
... | 53.846154 | 75 | 0.257143 | 108 | 1,400 | 3.259259 | 0.574074 | 0.076705 | 0.09375 | 0.136364 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.354331 | 0.637143 | 1,400 | 25 | 76 | 56 | 0.338583 | 0 | 0 | 0 | 0 | 0 | 0.022143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aa2ccbe2001759d2bf0c3224e67976a37d6813f8 | 776 | py | Python | RTRBM/rtrbm/fns/ff_net.py | liuzc188/Convolutional-LSTM-in-Tensorflow-master | 541eebf6a40d4e8f53d9789360a9ef794da2e35a | [
"Apache-2.0"
] | 1 | 2019-04-04T09:25:03.000Z | 2019-04-04T09:25:03.000Z | RTRBM/rtrbm/fns/ff_net.py | liuzc188/Convolutional-LSTM-in-Tensorflow-master | 541eebf6a40d4e8f53d9789360a9ef794da2e35a | [
"Apache-2.0"
] | null | null | null | RTRBM/rtrbm/fns/ff_net.py | liuzc188/Convolutional-LSTM-in-Tensorflow-master | 541eebf6a40d4e8f53d9789360a9ef794da2e35a | [
"Apache-2.0"
] | null | null | null |
from std import *
from mats.base_mat import base_mat
# constructed from a sequence of feedforward networks.
class ff_net(base_mat):
def __init__(self, w):
self.w = w
def soft_copy(self):
s = ff_net(self.w)
s.w = [x for x in self.w]
return s
def __call__(self, V):
... | 19.897436 | 54 | 0.520619 | 122 | 776 | 3.114754 | 0.352459 | 0.092105 | 0.052632 | 0.073684 | 0.326316 | 0.326316 | 0.326316 | 0.326316 | 0.326316 | 0.326316 | 0 | 0.002053 | 0.372423 | 776 | 38 | 55 | 20.421053 | 0.778234 | 0.101804 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
aa308f732251701e29de7b54a0715f4d88ee1d53 | 173 | py | Python | carrots/common/functions.py | croccam/carrots | 7910c77579817741912d8521357a8760b8d19650 | [
"Apache-2.0"
] | 3 | 2017-03-16T07:47:40.000Z | 2017-09-28T12:17:07.000Z | carrots/common/functions.py | croccam/carrots | 7910c77579817741912d8521357a8760b8d19650 | [
"Apache-2.0"
] | null | null | null | carrots/common/functions.py | croccam/carrots | 7910c77579817741912d8521357a8760b8d19650 | [
"Apache-2.0"
] | null | null | null | import json
def apply(process, channel, method, properties, data):
channel.basic_ack(delivery_tag=method.delivery_tag)
response = process(data)
return response
| 24.714286 | 55 | 0.757225 | 22 | 173 | 5.818182 | 0.681818 | 0.171875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156069 | 173 | 6 | 56 | 28.833333 | 0.876712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
aa375d92bcc43360e52775b624f032c78c25d6c1 | 459 | py | Python | examples/docs_snippets/docs_snippets/concepts/io_management/io_manager_per_output.py | withshubh/dagster | ff4a0db53e126f44097a337eecef54988cc718ef | [
"Apache-2.0"
] | null | null | null | examples/docs_snippets/docs_snippets/concepts/io_management/io_manager_per_output.py | withshubh/dagster | ff4a0db53e126f44097a337eecef54988cc718ef | [
"Apache-2.0"
] | null | null | null | examples/docs_snippets/docs_snippets/concepts/io_management/io_manager_per_output.py | withshubh/dagster | ff4a0db53e126f44097a337eecef54988cc718ef | [
"Apache-2.0"
] | null | null | null | # start_marker
from dagster import ModeDefinition, OutputDefinition, fs_io_manager, mem_io_manager, pipeline, solid
@solid(output_defs=[OutputDefinition(io_manager_key="fs")])
def solid1(_):
return 1
@solid(output_defs=[OutputDefinition(io_manager_key="mem")])
def solid2(_, a):
return a + 1
@pipeline(mode... | 21.857143 | 100 | 0.749455 | 62 | 459 | 5.209677 | 0.419355 | 0.167183 | 0.068111 | 0.086687 | 0.266254 | 0.266254 | 0.266254 | 0 | 0 | 0 | 0 | 0.014778 | 0.115468 | 459 | 20 | 101 | 22.95 | 0.780788 | 0.050109 | 0 | 0 | 0 | 0 | 0.023095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.2 | 0.6 | 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 |
aa419e3df416af66e93476272c5a9675fc46e16b | 1,752 | py | Python | MagniPy/Workflow/mock_lenses/lens1115_analog.py | dangilman/MagniPy | 820b82ea0f6559c895f11c92d93de475a92d38b0 | [
"MIT"
] | 2 | 2020-02-20T02:27:16.000Z | 2020-02-20T08:38:23.000Z | MagniPy/Workflow/mock_lenses/lens1115_analog.py | dangilman/MagniPy | 820b82ea0f6559c895f11c92d93de475a92d38b0 | [
"MIT"
] | 1 | 2021-11-15T17:50:20.000Z | 2021-11-15T17:50:20.000Z | MagniPy/Workflow/mock_lenses/lens1115_analog.py | dangilman/MagniPy | 820b82ea0f6559c895f11c92d93de475a92d38b0 | [
"MIT"
] | null | null | null | from MagniPy.Workflow.radio_lenses.lens1115 import Lens1115
from MagniPy.util import approx_theta_E
from MagniPy.Workflow.mock_lenses.analog_base import MockLensBase
class Lens1115AnalogFold(MockLensBase):
reference_lens = Lens1115()
def __init__(self):
theta_E = approx_theta_E(self.reference_lens.x... | 38.933333 | 117 | 0.641553 | 240 | 1,752 | 4.345833 | 0.204167 | 0.074784 | 0.097795 | 0.080537 | 0.706616 | 0.706616 | 0.706616 | 0.686481 | 0.611697 | 0.611697 | 0 | 0.079422 | 0.209475 | 1,752 | 44 | 118 | 39.818182 | 0.673646 | 0.058219 | 0 | 0.333333 | 0 | 0 | 0.080097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 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 | 3 |
aa4238e5b9ef226a281c4245848b6b7e3ad97019 | 235 | py | Python | flore/normalize/required.py | marcuxyz/flore | 1be3967db1c51e24aec3acd440b59eb71ffd1bae | [
"MIT"
] | 6 | 2020-10-20T15:01:12.000Z | 2020-10-22T11:30:01.000Z | flore/normalize/required.py | marcuxyz/flore | 1be3967db1c51e24aec3acd440b59eb71ffd1bae | [
"MIT"
] | 4 | 2020-10-20T13:44:25.000Z | 2020-10-21T13:40:43.000Z | flore/normalize/required.py | marcuxyz/flore | 1be3967db1c51e24aec3acd440b59eb71ffd1bae | [
"MIT"
] | 2 | 2020-10-22T01:27:06.000Z | 2020-10-23T13:40:34.000Z | def normalize_required_field(fields):
"""when the field comes required, it be converted to not null"""
if "required" in fields:
return map(lambda field: field.replace("required", "not null"), fields)
return fields
| 33.571429 | 79 | 0.693617 | 32 | 235 | 5.03125 | 0.625 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 235 | 6 | 80 | 39.166667 | 0.856383 | 0.246809 | 0 | 0 | 0 | 0 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
aa47c9d589038f81158f8a579afb1a969deb024c | 1,617 | py | Python | ztag/annotations/FtpBulletproofFtpd.py | justinbastress/ztag | 137b754dfe22b7d6e0945ae33def372ec67d092b | [
"Apache-2.0"
] | 107 | 2015-10-13T16:03:21.000Z | 2021-11-08T10:53:07.000Z | ztag/annotations/FtpBulletproofFtpd.py | justinbastress/ztag | 137b754dfe22b7d6e0945ae33def372ec67d092b | [
"Apache-2.0"
] | 73 | 2015-10-14T17:27:10.000Z | 2018-10-01T14:32:44.000Z | ztag/annotations/FtpBulletproofFtpd.py | justinbastress/ztag | 137b754dfe22b7d6e0945ae33def372ec67d092b | [
"Apache-2.0"
] | 36 | 2015-10-14T17:13:20.000Z | 2021-10-05T19:41:10.000Z | import re
from ztag.annotation import Annotation
from ztag.annotation import OperatingSystem
from ztag import protocols
import ztag.test
class FtpBulletproofFtpd(Annotation):
protocol = protocols.FTP
subprotocol = protocols.FTP.BANNER
port = None
impl_re = re.compile("^220[- ]BulletProof FTP Server r... | 30.509434 | 79 | 0.619048 | 196 | 1,617 | 5.071429 | 0.209184 | 0.267606 | 0.290744 | 0.39336 | 0.655936 | 0.482897 | 0.482897 | 0.482897 | 0.482897 | 0.482897 | 0 | 0.043515 | 0.260977 | 1,617 | 52 | 80 | 31.096154 | 0.788285 | 0 | 0 | 0 | 0 | 0 | 0.153302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.192308 | 0 | 0.5 | 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 | 0 | 0 | 0 | 3 |
a4b374e9a2ef18c938800ec071ce30701224d901 | 18,798 | py | Python | armageddon/test_funcs.py | gilbert-yy/AsteroidsPrediction | 16c8a45c1d9545543171bd4b81c67d2139524b35 | [
"MIT"
] | null | null | null | armageddon/test_funcs.py | gilbert-yy/AsteroidsPrediction | 16c8a45c1d9545543171bd4b81c67d2139524b35 | [
"MIT"
] | null | null | null | armageddon/test_funcs.py | gilbert-yy/AsteroidsPrediction | 16c8a45c1d9545543171bd4b81c67d2139524b35 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from scipy.integrate import solve_ivp
import math
plt.style.use('ggplot')
def plot_analytical(numerical=False,num_result=None):
if numerical:
z_position= num_result.altitude #altitude
else:
z_position=np.linspace(0,100000,10... | 38.758763 | 159 | 0.607937 | 2,729 | 18,798 | 4.06266 | 0.094174 | 0.078741 | 0.023451 | 0.03247 | 0.785334 | 0.724632 | 0.70037 | 0.683864 | 0.662217 | 0.632903 | 0 | 0.039779 | 0.228375 | 18,798 | 485 | 160 | 38.758763 | 0.724578 | 0.052825 | 0 | 0.683735 | 0 | 0.003012 | 0.092911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072289 | false | 0 | 0.01506 | 0 | 0.159639 | 0.006024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 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 | 3 |
a4e792f060e332da389a10942fb1a5c3f16715bf | 862 | py | Python | contenttype/tree/TestVenderTreeFactory_BlackBox.py | ytyaru/GitHub.Uploader.ContentType.201705020847__old | d20574ea8ed62672c1a89e9feef24da7f720f2de | [
"CC0-1.0"
] | null | null | null | contenttype/tree/TestVenderTreeFactory_BlackBox.py | ytyaru/GitHub.Uploader.ContentType.201705020847__old | d20574ea8ed62672c1a89e9feef24da7f720f2de | [
"CC0-1.0"
] | null | null | null | contenttype/tree/TestVenderTreeFactory_BlackBox.py | ytyaru/GitHub.Uploader.ContentType.201705020847__old | d20574ea8ed62672c1a89e9feef24da7f720f2de | [
"CC0-1.0"
] | null | null | null | import unittest
from SubTypeTree import SubTypeTreeFactory
from SubTypeTree import VenderTreeFactory
from SubTypeTree import SubTypeTree
from SubTypeTree import VenderTree
from SubTypeTree import GitHubVenderTree
from SubTypeTree import StandardTree
from SubTypeTree import ParsonalTree
from SubTypeTree import Unregiste... | 37.478261 | 67 | 0.759861 | 80 | 862 | 8.125 | 0.35 | 0.184615 | 0.258462 | 0.049231 | 0.233846 | 0.233846 | 0.233846 | 0.233846 | 0.233846 | 0.233846 | 0 | 0 | 0.167053 | 862 | 22 | 68 | 39.181818 | 0.905292 | 0.032483 | 0 | 0.2 | 0 | 0 | 0.022864 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.45 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a4f1a18bce006d81d848dfd98d881901e3af5bda | 66 | py | Python | qimage2ndarray/dynqt.py | smidm/qimage2ndarray | 61300f76f2dcae8a9368de9ed10fa27de5203485 | [
"BSD-3-Clause"
] | 67 | 2015-09-09T16:29:48.000Z | 2022-03-02T12:59:07.000Z | qimage2ndarray/dynqt.py | GenevieveBuckley/qimage2ndarray | 023f3c67f90e646ce2fd80418fed85b9c7660bfc | [
"BSD-3-Clause"
] | 22 | 2015-02-18T17:01:45.000Z | 2022-03-01T12:13:50.000Z | qimage2ndarray/dynqt.py | GenevieveBuckley/qimage2ndarray | 023f3c67f90e646ce2fd80418fed85b9c7660bfc | [
"BSD-3-Clause"
] | 31 | 2015-02-02T16:10:51.000Z | 2022-02-23T10:47:10.000Z | from .qt_driver import QtDriver
qt = QtDriver()
QtGui = qt.QtGui
| 13.2 | 31 | 0.742424 | 10 | 66 | 4.8 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 66 | 4 | 32 | 16.5 | 0.872727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
350707e283277cc79823b1b816f916d717025f42 | 943 | py | Python | rank/migrations/0001_initial.py | mmzepedab/tomathonWebDjango | c766a86ecfea0aa407d290aa35937bae787667b5 | [
"BSD-3-Clause"
] | null | null | null | rank/migrations/0001_initial.py | mmzepedab/tomathonWebDjango | c766a86ecfea0aa407d290aa35937bae787667b5 | [
"BSD-3-Clause"
] | null | null | null | rank/migrations/0001_initial.py | mmzepedab/tomathonWebDjango | c766a86ecfea0aa407d290aa35937bae787667b5 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-09 23:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Rank',... | 31.433333 | 114 | 0.583245 | 99 | 943 | 5.363636 | 0.545455 | 0.19774 | 0.237288 | 0.316384 | 0.370998 | 0.116761 | 0 | 0 | 0 | 0 | 0 | 0.056047 | 0.281018 | 943 | 29 | 115 | 32.517241 | 0.727139 | 0.07211 | 0 | 0 | 1 | 0 | 0.080275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
352cb786ec086a6c618fb44c7ec20f14f7ba1fc8 | 318 | py | Python | environments/admin.py | rh-cssre/glitchtip-backend | ae12fbd54532cff5fd3d7a72631ba18625bbf1de | [
"MIT"
] | null | null | null | environments/admin.py | rh-cssre/glitchtip-backend | ae12fbd54532cff5fd3d7a72631ba18625bbf1de | [
"MIT"
] | null | null | null | environments/admin.py | rh-cssre/glitchtip-backend | ae12fbd54532cff5fd3d7a72631ba18625bbf1de | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Environment, EnvironmentProject
class EnvironmentAdmin(admin.ModelAdmin):
pass
admin.site.register(Environment, EnvironmentAdmin)
class EnvironmentProjectAdmin(admin.ModelAdmin):
pass
admin.site.register(EnvironmentProject, EnvironmentProjectAdmin)
| 18.705882 | 64 | 0.823899 | 30 | 318 | 8.733333 | 0.5 | 0.114504 | 0.145038 | 0.183206 | 0.274809 | 0.274809 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110063 | 318 | 16 | 65 | 19.875 | 0.925795 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 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 |
10278e615a736ad9e195c8a6f85ffec5339d466b | 2,792 | py | Python | src/mrp/traffic-controller-interface/StandardMib.py | fredsongyu/mmitss-az | 62fb59a9e5a19f62a1096971f3cc0ecc04599106 | [
"Apache-2.0"
] | 10 | 2018-12-05T14:48:59.000Z | 2022-02-17T02:10:51.000Z | src/mrp/traffic-controller-interface/StandardMib.py | fredsongyu/mmitss-az | 62fb59a9e5a19f62a1096971f3cc0ecc04599106 | [
"Apache-2.0"
] | null | null | null | src/mrp/traffic-controller-interface/StandardMib.py | fredsongyu/mmitss-az | 62fb59a9e5a19f62a1096971f3cc0ecc04599106 | [
"Apache-2.0"
] | 8 | 2018-11-16T06:38:25.000Z | 2022-03-09T18:22:59.000Z | """
***************************************************************************************
© 2019 Arizona Board of Regents on behalf of the University of Arizona with rights
granted for USDOT OSADP distribution with the Apache 2.0 open source license.
*********************************************************... | 44.31746 | 109 | 0.556232 | 524 | 2,792 | 2.874046 | 0.248092 | 0.043825 | 0.051793 | 0.058433 | 0.24834 | 0.24834 | 0.24834 | 0.24834 | 0.24834 | 0.24834 | 0 | 0.172578 | 0.17192 | 2,792 | 63 | 110 | 44.31746 | 0.478374 | 0.457736 | 0 | 0 | 0 | 1 | 0.438 | 0.438 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.047619 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
102c94248b8d0b8c44fb2a0bfa4b21a00b331838 | 331 | py | Python | webui/management/commands/get_pkg_version.py | daniel-yavorovich/cpan2repo | 14468d5c9df353508bee87af223f7d723e669d8b | [
"Apache-2.0"
] | 1 | 2015-03-04T14:46:42.000Z | 2015-03-04T14:46:42.000Z | webui/management/commands/get_pkg_version.py | daniel-yavorovich/cpan2repo | 14468d5c9df353508bee87af223f7d723e669d8b | [
"Apache-2.0"
] | null | null | null | webui/management/commands/get_pkg_version.py | daniel-yavorovich/cpan2repo | 14468d5c9df353508bee87af223f7d723e669d8b | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import BaseCommand, CommandError
from webui.models import BuildConfiguration
class Command(BaseCommand):
help = 'Get debian package version by build_conf id'
def handle(self, *args, **options):
self.stdout.write("{0}\n".format(BuildConfiguration.objects.get(pk=args[0]... | 36.777778 | 93 | 0.752266 | 43 | 331 | 5.767442 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.129909 | 331 | 9 | 93 | 36.777778 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
102e7c88ab9c2cb087310fc7b64b86bbc31b2c3f | 1,295 | py | Python | twitchbot/__init__.py | cvangheem/Twitchbot | 48bb065951e88e4d2e9ef8d0c1a3afb0150a5eb5 | [
"MIT"
] | null | null | null | twitchbot/__init__.py | cvangheem/Twitchbot | 48bb065951e88e4d2e9ef8d0c1a3afb0150a5eb5 | [
"MIT"
] | null | null | null | twitchbot/__init__.py | cvangheem/Twitchbot | 48bb065951e88e4d2e9ef8d0c1a3afb0150a5eb5 | [
"MIT"
] | null | null | null | from .arena import *
from .channel import *
from twitchbot.api.chatters import *
from .colors import *
from .command import *
from .config import *
from .enums import *
from .irc import *
from .message import *
from .permission import *
from .ratelimit import *
from .regex import *
from .util import *
from .database im... | 25.9 | 75 | 0.781467 | 185 | 1,295 | 5.232432 | 0.340541 | 0.320248 | 0.061983 | 0.078512 | 0.173554 | 0.173554 | 0.072314 | 0.072314 | 0 | 0 | 0 | 0.007092 | 0.128958 | 1,295 | 49 | 76 | 26.428571 | 0.851064 | 0.030888 | 0 | 0 | 0 | 0 | 0.022346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.813953 | 0 | 0.813953 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 3 |
103afa8a4aecf0e7b0941787f6d0f2739583bba0 | 20 | py | Python | lib/__init__.py | svolle/Yet-Another-PyChip8-Emulator | 71e9dcba5988bb6d37df11e39e8f01c6fc257cf4 | [
"BSD-3-Clause"
] | null | null | null | lib/__init__.py | svolle/Yet-Another-PyChip8-Emulator | 71e9dcba5988bb6d37df11e39e8f01c6fc257cf4 | [
"BSD-3-Clause"
] | null | null | null | lib/__init__.py | svolle/Yet-Another-PyChip8-Emulator | 71e9dcba5988bb6d37df11e39e8f01c6fc257cf4 | [
"BSD-3-Clause"
] | null | null | null | __author__ = 'seb'
| 10 | 19 | 0.65 | 2 | 20 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 20 | 1 | 20 | 20 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 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 |
1088983776c20ed2821bb8678400d3d7a5cbd935 | 1,343 | py | Python | Labs/Lab08/integrands.py | ethank5149/PurduePHYS580 | 54d5d75737aa0d31ed723dd0e79c98dc01e71ca7 | [
"MIT"
] | null | null | null | Labs/Lab08/integrands.py | ethank5149/PurduePHYS580 | 54d5d75737aa0d31ed723dd0e79c98dc01e71ca7 | [
"MIT"
] | null | null | null | Labs/Lab08/integrands.py | ethank5149/PurduePHYS580 | 54d5d75737aa0d31ed723dd0e79c98dc01e71ca7 | [
"MIT"
] | null | null | null | from numpy import asarray, sin, cos, pi, cross, sqrt
from numpy.linalg import norm
from scipy.integrate import quad
from functools import partial
def biot_savart(pos, path, dpath, I):
x = quad(partial(lambda s, pos, path, dpath, I : I * ((pos[2] - path(s)[2]) * dpath(s)[1] - (pos[1] - path(s)[1]) * dpath(s)[2]) / ... | 83.9375 | 274 | 0.525689 | 259 | 1,343 | 2.702703 | 0.150579 | 0.1 | 0.06 | 0.074286 | 0.588571 | 0.505714 | 0.505714 | 0.381429 | 0.381429 | 0.381429 | 0 | 0.056513 | 0.222636 | 1,343 | 16 | 275 | 83.9375 | 0.613985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0.153846 | 0.769231 | 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 | 1 | 1 | 0 | 0 | 0 | 3 |
1090aed6bb49295da4eb4f9b1d65fd4a05c85125 | 3,042 | py | Python | nobos_commons/data_structures/skeletons/skeleton_openpose_joints.py | noboevbo/nobos_commons | 471e52e10fd2228c106777c72d8439e58b047003 | [
"MIT"
] | 2 | 2020-06-03T16:28:44.000Z | 2020-10-10T03:07:23.000Z | nobos_commons/data_structures/skeletons/skeleton_openpose_joints.py | noboevbo/nobos_commons | 471e52e10fd2228c106777c72d8439e58b047003 | [
"MIT"
] | null | null | null | nobos_commons/data_structures/skeletons/skeleton_openpose_joints.py | noboevbo/nobos_commons | 471e52e10fd2228c106777c72d8439e58b047003 | [
"MIT"
] | 4 | 2020-10-10T03:07:25.000Z | 2021-09-30T01:11:02.000Z | from nobos_commons.data_structures.skeletons.joint_2d import Joint2D
from nobos_commons.data_structures.skeletons.skeleton_joints_base import SkeletonJointsBase
class SkeletonOpenPoseJoints(SkeletonJointsBase):
def __init__(self):
"""
Implementation only works on Python 3.6+
"""
se... | 30.42 | 91 | 0.657462 | 386 | 3,042 | 4.893782 | 0.150259 | 0.133404 | 0.16199 | 0.200106 | 0.295394 | 0.041292 | 0 | 0 | 0 | 0 | 0 | 0.036114 | 0.235371 | 3,042 | 99 | 92 | 30.727273 | 0.77601 | 0.013149 | 0 | 0.236842 | 0 | 0 | 0.056414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.026316 | 0.236842 | 0.526316 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
109f129670b38af3339ee7b181e06319838c8678 | 14,745 | py | Python | dae/dae/backends/attributes_query.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | null | null | null | dae/dae/backends/attributes_query.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | 82 | 2019-07-22T11:44:23.000Z | 2022-01-13T15:27:33.000Z | dae/dae/backends/attributes_query.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | null | null | null | import enum
from lark import Lark, InlineTransformer
from lark.visitors import Interpreter
from lark.reconstruct import Reconstructor
from functools import reduce
from dae.variants.attributes import Role, Inheritance, VariantType, Sex
QUERY_GRAMMAR = """
?start: expression
?expression: logical_or
?log... | 26.005291 | 79 | 0.63452 | 1,630 | 14,745 | 5.552147 | 0.094479 | 0.031713 | 0.02674 | 0.021878 | 0.562762 | 0.521436 | 0.408508 | 0.365083 | 0.326298 | 0.319669 | 0 | 0.002819 | 0.254256 | 14,745 | 566 | 80 | 26.051237 | 0.820207 | 0.03235 | 0 | 0.459677 | 0 | 0 | 0.101762 | 0.002456 | 0 | 0 | 0 | 0 | 0.026882 | 1 | 0.293011 | false | 0.002688 | 0.026882 | 0.139785 | 0.607527 | 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 |
529d865b4b54397bcc22a38d1668181872ccf194 | 92 | py | Python | app_name/urls.py | hotbaby/django-app-skeleton | db965ee14dd377681e14a02a70c258b8c1cb73d8 | [
"MIT"
] | null | null | null | app_name/urls.py | hotbaby/django-app-skeleton | db965ee14dd377681e14a02a70c258b8c1cb73d8 | [
"MIT"
] | 1 | 2019-02-12T09:21:19.000Z | 2019-02-12T09:21:19.000Z | app_name/urls.py | hotbaby/django-app-skeleton | db965ee14dd377681e14a02a70c258b8c1cb73d8 | [
"MIT"
] | null | null | null | # encoding: utf-8
from django.conf.urls import url
from . import views
urlpatterns = [
] | 10.222222 | 32 | 0.706522 | 13 | 92 | 5 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.195652 | 92 | 9 | 33 | 10.222222 | 0.864865 | 0.163043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
52dd0601598f9e2bdfb85d965de0c7010db00892 | 1,441 | py | Python | python_modules/libraries/dagster-aws/dagster_aws_tests/s3_tests/test_s3_file_cache.py | JPeer264/dagster-fork | 32cc87a36134be7c442fa85d6867eb1d3301aea0 | [
"Apache-2.0"
] | 1 | 2020-08-10T23:03:37.000Z | 2020-08-10T23:03:37.000Z | python_modules/libraries/dagster-aws/dagster_aws_tests/s3_tests/test_s3_file_cache.py | JPeer264/dagster-fork | 32cc87a36134be7c442fa85d6867eb1d3301aea0 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-aws/dagster_aws_tests/s3_tests/test_s3_file_cache.py | JPeer264/dagster-fork | 32cc87a36134be7c442fa85d6867eb1d3301aea0 | [
"Apache-2.0"
] | 1 | 2020-08-20T14:20:31.000Z | 2020-08-20T14:20:31.000Z | import io
import boto3
from dagster_aws.s3 import S3FileCache, S3FileHandle
from moto import mock_s3
@mock_s3
def test_s3_file_cache_file_not_present():
s3 = boto3.client('s3')
s3.create_bucket(Bucket='some-bucket')
file_store = S3FileCache(
s3_bucket='some-bucket', s3_key='some-key', s3_session=... | 26.2 | 82 | 0.713393 | 210 | 1,441 | 4.580952 | 0.2 | 0.093555 | 0.133056 | 0.054054 | 0.724532 | 0.724532 | 0.724532 | 0.699584 | 0.66632 | 0.66632 | 0 | 0.041288 | 0.159611 | 1,441 | 54 | 83 | 26.685185 | 0.753097 | 0 | 0 | 0.564103 | 0 | 0 | 0.108258 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.102564 | false | 0 | 0.102564 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 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 | 3 |
52f0748d3696c5a8adf26261252be239b26be6f4 | 98 | py | Python | function1.py | yofine/Learn-Python | 29be3ca332a43a57a54bd2b2f2396ead773a7183 | [
"MIT"
] | 2 | 2015-11-06T02:52:58.000Z | 2016-08-25T13:53:50.000Z | function1.py | yofine/Learn-Python | 29be3ca332a43a57a54bd2b2f2396ead773a7183 | [
"MIT"
] | null | null | null | function1.py | yofine/Learn-Python | 29be3ca332a43a57a54bd2b2f2396ead773a7183 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def sayHello():
print 'Hello world'
sayHello() | 14 | 23 | 0.602041 | 13 | 98 | 4.538462 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.183673 | 98 | 7 | 24 | 14 | 0.725 | 0.428571 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5e05e25b1ba9fc38d106eb20a0c73b9083ee1eab | 18 | py | Python | modules/services/service/sys/collection.py | signeus/WebSockets | a3013ed684404a95c3608e6016b28ce08b16eeb8 | [
"MIT"
] | null | null | null | modules/services/service/sys/collection.py | signeus/WebSockets | a3013ed684404a95c3608e6016b28ce08b16eeb8 | [
"MIT"
] | null | null | null | modules/services/service/sys/collection.py | signeus/WebSockets | a3013ed684404a95c3608e6016b28ce08b16eeb8 | [
"MIT"
] | null | null | null | collection = "sys" | 18 | 18 | 0.722222 | 2 | 18 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 18 | 1 | 18 | 18 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 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 |
5e0adc39330dbc71ced53045bcc460fdf0b64ab8 | 2,084 | py | Python | exercises/en/test_06_21.py | hfboyce/MCL-DSCI-571-machine-learning | 25757369491ac547daa94ff1143ca7389d433a6e | [
"MIT"
] | 1 | 2020-11-23T03:19:18.000Z | 2020-11-23T03:19:18.000Z | exercises/en/test_06_21.py | hfboyce/MCL-DSCI-571-machine-learning | 25757369491ac547daa94ff1143ca7389d433a6e | [
"MIT"
] | 13 | 2020-10-02T16:48:24.000Z | 2020-12-09T18:58:21.000Z | exercises/en/test_06_21.py | hfboyce/MCL-DSCI-571-machine-learning | 25757369491ac547daa94ff1143ca7389d433a6e | [
"MIT"
] | 2 | 2020-10-28T19:43:42.000Z | 2021-03-30T22:57:47.000Z | def test():
# Here we can either check objects created in the solution code, or the
# string value of the solution, available as __solution__. A helper for
# printing formatted messages is available as __msg__. See the testTemplate
# in the meta.json for details.
import pandas as pd
# If an asse... | 109.684211 | 206 | 0.731286 | 298 | 2,084 | 4.996644 | 0.412752 | 0.070517 | 0.084621 | 0.108126 | 0.51914 | 0.503022 | 0.347884 | 0.291471 | 0.198791 | 0.198791 | 0 | 0.009703 | 0.159309 | 2,084 | 19 | 207 | 109.684211 | 0.840183 | 0.142035 | 0 | 0 | 0 | 0 | 0.591699 | 0.023556 | 0 | 0 | 0 | 0 | 0.785714 | 1 | 0.071429 | true | 0 | 0.071429 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5e0f73b614c6810f9010703f35f19f71f4a2f16a | 388 | py | Python | flops_counter/_six.py | fengyuentau/PyTorch-FLOPs | 98e8c765aaa3526656b1799d5bb2ef94fca8d97a | [
"Apache-2.0"
] | null | null | null | flops_counter/_six.py | fengyuentau/PyTorch-FLOPs | 98e8c765aaa3526656b1799d5bb2ef94fca8d97a | [
"Apache-2.0"
] | null | null | null | flops_counter/_six.py | fengyuentau/PyTorch-FLOPs | 98e8c765aaa3526656b1799d5bb2ef94fca8d97a | [
"Apache-2.0"
] | null | null | null | import itertools
import sys
import builtins
PY2 = sys.version_info[0] == 2
PY3 = sys.version_info[0] == 3
PY37 = sys.version_info[0] == 3 and sys.version_info[1] == 7
if PY2:
string_classes = basestring
else:
string_classes = (str, bytes)
if PY2:
import collections
container_abcs = collections
elif ... | 19.4 | 60 | 0.71134 | 56 | 388 | 4.785714 | 0.482143 | 0.149254 | 0.208955 | 0.16791 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048077 | 0.195876 | 388 | 20 | 61 | 19.4 | 0.810897 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5e1e9fb83a6c380995e98123863550104dbb3168 | 764 | py | Python | terminal/start.py | Windowsobserver/SetoolLinux | 7e719aeec3b2fd48524cecdfe9773ebb9d3e8789 | [
"Apache-2.0"
] | null | null | null | terminal/start.py | Windowsobserver/SetoolLinux | 7e719aeec3b2fd48524cecdfe9773ebb9d3e8789 | [
"Apache-2.0"
] | null | null | null | terminal/start.py | Windowsobserver/SetoolLinux | 7e719aeec3b2fd48524cecdfe9773ebb9d3e8789 | [
"Apache-2.0"
] | null | null | null | def start():
print("finish the file : terminal.py")
import time
time.sleep(0.1)
print("finish the file : setoollin.py")
time.sleep(0.1)
print("finish the file : set.py")
time.sleep(0.1)
print("finish the optioning : start the optioning files ")
time.sleep(0.1)
print("finish the o... | 33.217391 | 62 | 0.519634 | 88 | 764 | 4.511364 | 0.318182 | 0.166247 | 0.211587 | 0.138539 | 0.327456 | 0.327456 | 0.327456 | 0.327456 | 0 | 0 | 0 | 0.018581 | 0.225131 | 764 | 23 | 63 | 33.217391 | 0.652027 | 0.027487 | 0 | 0.434783 | 0 | 0 | 0.520861 | 0.156124 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | true | 0 | 0.086957 | 0 | 0.130435 | 0.521739 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
5e2c62f70a586844a6967dcb964e35740d06a6d0 | 942 | py | Python | tests/cli/test_cli.py | krayzpipes/txt-ferret | 144f6dc184a13b025c26ed65ec94d2fcfbfb5d0a | [
"Apache-2.0"
] | 1 | 2021-11-03T12:46:38.000Z | 2021-11-03T12:46:38.000Z | tests/cli/test_cli.py | krayzpipes/txt-ferret | 144f6dc184a13b025c26ed65ec94d2fcfbfb5d0a | [
"Apache-2.0"
] | 17 | 2019-05-15T18:20:42.000Z | 2021-06-01T23:51:37.000Z | tests/cli/test_cli.py | krayzpipes/txt-ferret | 144f6dc184a13b025c26ed65ec94d2fcfbfb5d0a | [
"Apache-2.0"
] | null | null | null | from txtferret.cli import prep_config, bootstrap, get_totals
def test_prep_config():
def stub_loader(yaml_file=None):
return {"yaml_file": yaml_file}
fake_cli_kwargs = {"config_file": "my_test_file"}
final_config = {"cli_kwargs": {**fake_cli_kwargs}, "yaml_file": "my_test_file"}
assert prep... | 25.459459 | 85 | 0.630573 | 121 | 942 | 4.603306 | 0.355372 | 0.057451 | 0.070018 | 0.050269 | 0.136445 | 0.136445 | 0.136445 | 0.136445 | 0.136445 | 0.136445 | 0 | 0.021798 | 0.220807 | 942 | 36 | 86 | 26.166667 | 0.737057 | 0 | 0 | 0.095238 | 0 | 0 | 0.173036 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.333333 | false | 0.238095 | 0.047619 | 0.095238 | 0.52381 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
eabd471d18128dbc52420708d78840a54a535f44 | 1,737 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/lib/time_zone_utils.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/lib/time_zone_utils.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/lib/time_zone_utils.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
Utilities related to timezones
"""
from datetime import datetime
from pytz import common_timezones, timezone, utc
def _format_time_zone_string(time_zone, date_time, format_string):
"""
Returns a string, specified by format string, of the current date/time of the time zone.
:param time_zone: Pytz ti... | 31.581818 | 92 | 0.721934 | 272 | 1,737 | 4.338235 | 0.294118 | 0.216949 | 0.050847 | 0.067797 | 0.377119 | 0.377119 | 0.311864 | 0.311864 | 0.281356 | 0.216949 | 0 | 0.007027 | 0.180771 | 1,737 | 54 | 93 | 32.166667 | 0.822207 | 0.373633 | 0 | 0.105263 | 0 | 0 | 0.045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
d817f4e194f7257462adc9ed8a9ad8a1127ace49 | 60 | py | Python | engine/src/juliabox/plugins/vol_defcfg/__init__.py | karthiganesh/juliabox | 761d39c7f8f481bdb5bf1dc4011d4e267158e551 | [
"MIT"
] | 50 | 2016-09-09T02:17:09.000Z | 2022-03-15T17:16:20.000Z | engine/src/juliabox/plugins/vol_defcfg/__init__.py | wsshin/JuliaBox | 395df7654834f9671ab132cd29c02fb05ce42c27 | [
"MIT"
] | 58 | 2016-08-29T19:19:28.000Z | 2018-11-14T01:49:16.000Z | engine/src/juliabox/plugins/vol_defcfg/__init__.py | wsshin/JuliaBox | 395df7654834f9671ab132cd29c02fb05ce42c27 | [
"MIT"
] | 24 | 2016-09-27T18:20:54.000Z | 2022-01-02T09:37:44.000Z | from defcfg import JBoxDefaultConfigVol
__author__ = 'tan'
| 15 | 39 | 0.816667 | 6 | 60 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 60 | 3 | 40 | 20 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d82d3407fdc85ef0306b0e52e3dfa65b955b4342 | 542 | py | Python | prototype/ukwa/tasks/report/crawl_summary.py | GilHoggarth/ukwa-manage | 5893e9ea16c02e76eb81b2ccf7e161eeb183db9a | [
"Apache-2.0"
] | 1 | 2021-05-18T21:47:29.000Z | 2021-05-18T21:47:29.000Z | prototype/ukwa/tasks/report/crawl_summary.py | GilHoggarth/ukwa-manage | 5893e9ea16c02e76eb81b2ccf7e161eeb183db9a | [
"Apache-2.0"
] | 67 | 2017-11-22T11:13:18.000Z | 2022-03-25T09:48:49.000Z | prototype/ukwa/tasks/report/crawl_summary.py | GilHoggarth/ukwa-manage | 5893e9ea16c02e76eb81b2ccf7e161eeb183db9a | [
"Apache-2.0"
] | 4 | 2020-01-17T17:23:54.000Z | 2021-04-11T09:46:09.000Z | import luigi
from tasks.process.log_analysis import GenerateCrawlLogReports
from tasks.common import logger
class GenerateCrawlReport(luigi.Task):
"""
"""
task_namespace = 'scan'
job = luigi.Parameter()
launch = luigi.Parameter()
#def requires(self):
# return GenerateCrawlLogReports(se... | 27.1 | 104 | 0.697417 | 58 | 542 | 6.344828 | 0.603448 | 0.048913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034858 | 0.153137 | 542 | 19 | 105 | 28.526316 | 0.766885 | 0.322878 | 0 | 0 | 1 | 0 | 0.155807 | 0.073654 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.777778 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
dc3274af601dcdcf8c48de0a62e271a131e7dbe1 | 543 | py | Python | tests/conftest.py | atcswap/atc_chain | b5df207605578f1009afb439a5c76ce80800155f | [
"MIT"
] | null | null | null | tests/conftest.py | atcswap/atc_chain | b5df207605578f1009afb439a5c76ce80800155f | [
"MIT"
] | null | null | null | tests/conftest.py | atcswap/atc_chain | b5df207605578f1009afb439a5c76ce80800155f | [
"MIT"
] | null | null | null | import pytest
import atc_chain.utils.bls as bls
from atc_chain.utils.blake import blake
@pytest.fixture(scope="session")
def privkeys():
return [int.from_bytes(blake(str(i).encode('utf-8'))[:4], 'big') for i in range(1000)]
@pytest.fixture(scope="session")
def keymap(privkeys):
keymap = {}
for i, k in ... | 21.72 | 90 | 0.651934 | 79 | 543 | 4.443038 | 0.518987 | 0.111111 | 0.153846 | 0.213675 | 0.239316 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020642 | 0.197053 | 543 | 24 | 91 | 22.625 | 0.784404 | 0 | 0 | 0.176471 | 0 | 0 | 0.084715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.117647 | 0.529412 | 0.058824 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dc3a432759667907fa17103dbc8605dd6e99f4e9 | 96 | py | Python | buy_student/apps.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | null | null | null | buy_student/apps.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | null | null | null | buy_student/apps.py | Ishikashah2510/nirvaas_main | 5eaf92756d06261a7f555b10aad864a34c9e761b | [
"MIT"
] | 3 | 2020-12-30T11:35:22.000Z | 2021-01-07T13:10:26.000Z | from django.apps import AppConfig
class BuyStudentConfig(AppConfig):
name = 'buy_student'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dc673a8f281bc41c79def28ec3dade4754876107 | 169 | py | Python | pyplan/pyplan/modelmanager/classes/eFormNodeType.py | jorgedouglas71/pyplan-ide | 5ad0e4a2592b5f2716ff680018f717c65de140f5 | [
"MIT"
] | 17 | 2019-12-04T19:22:19.000Z | 2021-07-28T11:17:05.000Z | pyplan/pyplan/modelmanager/classes/eFormNodeType.py | jorgedouglas71/pyplan-ide | 5ad0e4a2592b5f2716ff680018f717c65de140f5 | [
"MIT"
] | 9 | 2019-12-13T15:34:43.000Z | 2022-02-10T11:43:00.000Z | pyplan/pyplan/modelmanager/classes/eFormNodeType.py | jorgedouglas71/pyplan-ide | 5ad0e4a2592b5f2716ff680018f717c65de140f5 | [
"MIT"
] | 5 | 2019-12-04T15:57:06.000Z | 2021-08-20T19:59:26.000Z | from enum import Enum
class eFormNodeType(Enum):
CHECKBOX = 0
COMBOBOX = 1
SCALARINPUT = 2
BUTTON = 3
def __str__(self):
return self.value
| 15.363636 | 26 | 0.627219 | 21 | 169 | 4.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.307692 | 169 | 10 | 27 | 16.9 | 0.837607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 1 | 0 | 1 | 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 | 1 | 1 | 0 | 0 | 3 |
dc9f75d52b68886d2802dec3194e1ed83a7e12e0 | 560 | py | Python | lib/babelfont/lib.py | daltonmaag/babelfont | e30aba5326ba23344a386b5b1b736e6e65b22748 | [
"BSD-3-Clause"
] | 38 | 2020-03-27T21:13:07.000Z | 2021-07-18T14:01:17.000Z | lib/babelfont/lib.py | daltonmaag/babelfont | e30aba5326ba23344a386b5b1b736e6e65b22748 | [
"BSD-3-Clause"
] | 17 | 2020-06-23T07:16:32.000Z | 2022-03-26T08:42:05.000Z | lib/babelfont/lib.py | daltonmaag/babelfont | e30aba5326ba23344a386b5b1b736e6e65b22748 | [
"BSD-3-Clause"
] | 7 | 2020-03-27T22:47:19.000Z | 2021-03-24T10:01:20.000Z | from fontParts.base.lib import BaseLib
class Lib(BaseLib):
def __init__(self, **kwargs):
self._dict = {}
super(BaseLib, self).__init__(self, **kwargs)
def _set_glyph(self, glyph):
self._dict["glyph"] = glyph
def _getItem(self, attr):
if not attr in self._dict:
... | 21.538462 | 53 | 0.601786 | 71 | 560 | 4.450704 | 0.366197 | 0.177215 | 0.088608 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283929 | 560 | 25 | 54 | 22.4 | 0.78803 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.058824 | 0.117647 | 0.705882 | 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 |
f493838da1e94ec093d4e17f5bd6400a67f985a6 | 527 | py | Python | iris_sdk/models/data/completed_numbers.py | NumberAI/python-bandwidth-iris | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | [
"MIT"
] | 2 | 2020-04-13T13:47:59.000Z | 2022-02-23T20:32:41.000Z | iris_sdk/models/data/completed_numbers.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2020-09-18T20:59:24.000Z | 2021-08-25T16:51:42.000Z | iris_sdk/models/data/completed_numbers.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2018-12-12T14:39:50.000Z | 2020-11-17T21:42:29.000Z | #!/usr/bin/env python
from iris_sdk.models.base_resource import BaseData, BaseResourceSimpleList
from iris_sdk.models.data.full_numbers import FullNumbers
from iris_sdk.models.maps.completed_numbers import CompletedNumbersMap
class CompletedNumbers(CompletedNumbersMap, BaseData):
@property
def items(self):
... | 29.277778 | 74 | 0.776091 | 64 | 527 | 6.15625 | 0.515625 | 0.060914 | 0.083756 | 0.129442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148008 | 527 | 17 | 75 | 31 | 0.877506 | 0.037951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0.181818 | 0.818182 | 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 |
f496f9167cacfd49c7d5070400ef05ed41492d9a | 921 | py | Python | conductor/lib/exceptions.py | krbjila/labrad_tools | 5c510cb35090807807bfe6bd910b9c35edce6fce | [
"MIT"
] | 1 | 2020-11-30T01:45:08.000Z | 2020-11-30T01:45:08.000Z | conductor/lib/exceptions.py | krbjila/labrad_tools | 5c510cb35090807807bfe6bd910b9c35edce6fce | [
"MIT"
] | 8 | 2021-02-23T00:18:12.000Z | 2022-03-12T00:54:50.000Z | conductor/lib/exceptions.py | krbjila/labrad_tools | 5c510cb35090807807bfe6bd910b9c35edce6fce | [
"MIT"
] | 1 | 2020-11-08T14:54:21.000Z | 2020-11-08T14:54:21.000Z | class ParameterError(Exception):
def __init__(self, device_name, parameter_name):
self.device_name = device_name
self.parameter_name = parameter_name
class ParameterAlreadyRegistered(ParameterError):
def __str__(self):
return "parameter ({} {}) is already registered".format(
... | 36.84 | 64 | 0.685125 | 90 | 921 | 6.633333 | 0.255556 | 0.117253 | 0.140704 | 0.19263 | 0.639866 | 0.59464 | 0.463987 | 0.326633 | 0.174204 | 0 | 0 | 0 | 0.214984 | 921 | 25 | 65 | 36.84 | 0.825726 | 0 | 0 | 0.4 | 0 | 0 | 0.156182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0.2 | 0.8 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
f4abe9a52eb0623c7cd4ddf2f858e1112c4b0dd6 | 14,119 | py | Python | idaes/generic_models/unit_models/tests/test_skeleton_unit_model.py | eslickj/idaes-pse | 328ed07ffb0b4d98c03e972675ea32c41dd2531a | [
"RSA-MD"
] | 112 | 2019-02-11T23:16:36.000Z | 2022-03-23T20:59:57.000Z | idaes/generic_models/unit_models/tests/test_skeleton_unit_model.py | eslickj/idaes-pse | 328ed07ffb0b4d98c03e972675ea32c41dd2531a | [
"RSA-MD"
] | 621 | 2019-03-01T14:44:12.000Z | 2022-03-31T19:49:25.000Z | idaes/generic_models/unit_models/tests/test_skeleton_unit_model.py | eslickj/idaes-pse | 328ed07ffb0b4d98c03e972675ea32c41dd2531a | [
"RSA-MD"
] | 154 | 2019-02-01T23:46:33.000Z | 2022-03-23T15:07:10.000Z | #################################################################################
# The Institute for the Design of Advanced Energy Systems Integrated Platform
# Framework (IDAES IP) was produced under the DOE Institute for the
# Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021
# by the softwar... | 42.146269 | 81 | 0.657837 | 1,708 | 14,119 | 5.281616 | 0.120609 | 0.119721 | 0.065625 | 0.098437 | 0.835938 | 0.831061 | 0.784392 | 0.694601 | 0.632968 | 0.586853 | 0 | 0.013528 | 0.219916 | 14,119 | 334 | 82 | 42.272455 | 0.80552 | 0.122459 | 0 | 0.563063 | 0 | 0 | 0.084334 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 1 | 0.076577 | false | 0 | 0.031532 | 0.009009 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 3 |
f4d7ccb3a3b8607f3532cd5998be748e6f50c7fb | 567 | py | Python | example/blog/views.py | njncalub/apistar-mongoengine | c6bff844449ebc910bf3a85c075d760204606047 | [
"MIT"
] | null | null | null | example/blog/views.py | njncalub/apistar-mongoengine | c6bff844449ebc910bf3a85c075d760204606047 | [
"MIT"
] | 6 | 2018-05-17T15:52:38.000Z | 2018-05-27T04:31:32.000Z | example/blog/views.py | njncalub/apistar-mongoengine | c6bff844449ebc910bf3a85c075d760204606047 | [
"MIT"
] | null | null | null | from typing import List
from apistar import http
from models import PostModel
from types_ import PostType # because types is part of the standard library
def create_post(post: PostType) -> http.JSONResponse:
instance = PostModel(**post)
instance.save()
return http.JSONResponse(PostType(instance), stat... | 23.625 | 76 | 0.742504 | 77 | 567 | 5.350649 | 0.506494 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012632 | 0.162258 | 567 | 23 | 77 | 24.652174 | 0.854737 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0.076923 | 0.769231 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
f4e8835e38de1e8ae17a2eae771b62c3a9de21e1 | 1,434 | py | Python | Encapsulation/03_profile.py | milenpenev/SoftUni-OOP | 90f730cb37713f7ca93b1c0ecd0d12aa351247d2 | [
"MIT"
] | null | null | null | Encapsulation/03_profile.py | milenpenev/SoftUni-OOP | 90f730cb37713f7ca93b1c0ecd0d12aa351247d2 | [
"MIT"
] | null | null | null | Encapsulation/03_profile.py | milenpenev/SoftUni-OOP | 90f730cb37713f7ca93b1c0ecd0d12aa351247d2 | [
"MIT"
] | null | null | null | class Profile:
def __init__(self, username, password):
self.username = username
self.password = password
@property
def username(self):
return self.__username
@username.setter
def username(self, value):
if 5 > len(value) or len(value) > 15:
raise ValueErr... | 33.348837 | 138 | 0.661088 | 185 | 1,434 | 4.972973 | 0.324324 | 0.091304 | 0.043478 | 0.043478 | 0.058696 | 0.058696 | 0.058696 | 0 | 0 | 0 | 0 | 0.011101 | 0.246165 | 1,434 | 43 | 139 | 33.348837 | 0.839963 | 0 | 0 | 0.058824 | 0 | 0.029412 | 0.189547 | 0.020906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0.470588 | 0 | 0.117647 | 0.5 | 0.058824 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
f4eeca409a67107b92c92ff2188ce3d42ad90632 | 117 | py | Python | Python Programs/iris_task1.py | LAKSHMI-PANNEER/Project-works | 229b92c89fe5ef133759e4bd5140b23d823fd317 | [
"bzip2-1.0.6"
] | null | null | null | Python Programs/iris_task1.py | LAKSHMI-PANNEER/Project-works | 229b92c89fe5ef133759e4bd5140b23d823fd317 | [
"bzip2-1.0.6"
] | null | null | null | Python Programs/iris_task1.py | LAKSHMI-PANNEER/Project-works | 229b92c89fe5ef133759e4bd5140b23d823fd317 | [
"bzip2-1.0.6"
] | null | null | null | import pandas as pd
data = pd.read_csv("D:\iris.csv")
print("Number of rows in each column:")
print(data.count())
| 19.5 | 39 | 0.692308 | 21 | 117 | 3.809524 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145299 | 117 | 5 | 40 | 23.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.353448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f4f52bbf243d07b91bb7a6646163f4d8e8f2e67c | 631 | py | Python | rest/cv/migrations/0016_auto_20200612_1108.py | cmu-lib/campi | c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2 | [
"MIT"
] | 12 | 2020-10-09T18:12:30.000Z | 2021-03-23T16:17:40.000Z | rest/cv/migrations/0016_auto_20200612_1108.py | cmu-lib/campi | c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2 | [
"MIT"
] | 1 | 2020-08-11T17:11:43.000Z | 2020-08-11T17:29:58.000Z | rest/cv/migrations/0016_auto_20200612_1108.py | cmu-lib/campi | c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-12 15:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cv', '0015_closematchsetmembership_core'),
]
operations = [
migrations.RemoveField(
model_name='closematchsetmembership',
... | 27.434783 | 153 | 0.630745 | 66 | 631 | 5.939394 | 0.742424 | 0.045918 | 0.163265 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041215 | 0.269414 | 631 | 22 | 154 | 28.681818 | 0.809111 | 0.071315 | 0 | 0.25 | 1 | 0 | 0.282534 | 0.135274 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.0625 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f4f827cf7bf3ea5b12065d5c98ea77929f4ae12e | 1,396 | py | Python | venv/Controller/PLSR_SSS_Controller.py | florianbeyer/maptor | 8fd899dd3123484fd83b7aa74a007edc8879dba6 | [
"MIT"
] | 1 | 2022-03-15T13:35:26.000Z | 2022-03-15T13:35:26.000Z | venv/Controller/PLSR_SSS_Controller.py | florianbeyer/maptor | 8fd899dd3123484fd83b7aa74a007edc8879dba6 | [
"MIT"
] | 9 | 2021-01-30T16:55:50.000Z | 2022-03-12T00:54:37.000Z | venv/Controller/PLSR_SSS_Controller.py | florianbeyer/maptor | 8fd899dd3123484fd83b7aa74a007edc8879dba6 | [
"MIT"
] | 1 | 2020-12-21T02:24:46.000Z | 2020-12-21T02:24:46.000Z | # try:
import sys,logging,traceback
# sys.path.append(r"F:\Work\Maptor\venv\Model")
from PLSR_SSS_Model import PLSR_SSS_Model
# except Exception as e:
# logging.error("Exception occurred", exc_info=True)
# print('Can not import files:' + str(e))
# input("Press Enter to exit!")
# sys.exit(0)
class PLSR_SSS_Controller()... | 36.736842 | 99 | 0.683381 | 202 | 1,396 | 4.524752 | 0.386139 | 0.052516 | 0.076586 | 0.098468 | 0.273523 | 0.157549 | 0.089716 | 0.089716 | 0.089716 | 0.089716 | 0 | 0.001745 | 0.179083 | 1,396 | 38 | 100 | 36.736842 | 0.795812 | 0.147564 | 0 | 0 | 0 | 0 | 0.086221 | 0.063398 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.181818 | 0.181818 | 0.772727 | 0.090909 | 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 |
76073a44a740d57fef3345dc1b09675896984c04 | 1,397 | py | Python | zolo/orders/base.py | firefirer1983/zolo | 889409b491363eb54c2997e01333b77bc81e0c89 | [
"MIT"
] | 2 | 2021-05-06T12:10:02.000Z | 2021-08-15T09:25:31.000Z | zolo/orders/base.py | firefirer1983/zolo | 889409b491363eb54c2997e01333b77bc81e0c89 | [
"MIT"
] | null | null | null | zolo/orders/base.py | firefirer1983/zolo | 889409b491363eb54c2997e01333b77bc81e0c89 | [
"MIT"
] | null | null | null | import abc
from datetime import datetime
from typing import Dict, Type
from ..adapters import Adapter
from ..posts import OrderPost
_executor_registry = {}
class ExecutorRegistry:
registry: Dict[str, Type["OrderExecutor"]] = dict()
@classmethod
def register(cls, mode: str, exec_class: Type["OrderExecut... | 22.532258 | 85 | 0.654975 | 157 | 1,397 | 5.656051 | 0.273885 | 0.04955 | 0.033784 | 0.060811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000947 | 0.244094 | 1,397 | 61 | 86 | 22.901639 | 0.839962 | 0 | 0 | 0.255814 | 0 | 0 | 0.018611 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.232558 | false | 0.046512 | 0.116279 | 0.116279 | 0.534884 | 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 |
761d8ce4873e4785dde9fb6e4f136acbc9ff3ea4 | 685 | py | Python | setup.py | jeongukjae/tf-bert | fcb6db5ad71a3e440208ef62a7addabb651dc3da | [
"MIT"
] | 1 | 2020-01-20T01:07:12.000Z | 2020-01-20T01:07:12.000Z | setup.py | jeongukjae/tf-bert | fcb6db5ad71a3e440208ef62a7addabb651dc3da | [
"MIT"
] | null | null | null | setup.py | jeongukjae/tf-bert | fcb6db5ad71a3e440208ef62a7addabb651dc3da | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name="tf-bert",
version="1.0.0a0",
install_requires=["tensorflow>=2"],
packages=find_packages(exclude=["tests"]),
python_requires=">=3.6, <3.8",
#
description="bert implementation",
author="Jeong Ukjae",
author_email="jeongukjae@gma... | 29.782609 | 49 | 0.616058 | 73 | 685 | 5.712329 | 0.630137 | 0.182254 | 0.239808 | 0.18705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026217 | 0.220438 | 685 | 22 | 50 | 31.136364 | 0.754682 | 0 | 0 | 0 | 0 | 0 | 0.494152 | 0.032164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
762efadf3820677f77fa8681dc621d7bf0982274 | 370 | py | Python | helpers/utils.py | sk-sahu/multi-omics-state-of-the-field | 06d511ba678c83bb5839229d13982a50f3f95eb4 | [
"MIT"
] | 10 | 2020-12-13T13:25:02.000Z | 2021-11-19T07:10:58.000Z | helpers/utils.py | sk-sahu/multi-omics-state-of-the-field | 06d511ba678c83bb5839229d13982a50f3f95eb4 | [
"MIT"
] | 2 | 2020-09-27T21:42:33.000Z | 2020-12-10T10:40:10.000Z | helpers/utils.py | sk-sahu/multi-omics-state-of-the-field | 06d511ba678c83bb5839229d13982a50f3f95eb4 | [
"MIT"
] | 7 | 2020-09-28T06:09:03.000Z | 2022-03-14T13:04:40.000Z | import xmltodict
import json
from xml.etree import ElementTree
from display_xml import XML
def xml_element_to_json(element: ElementTree.Element):
return json.loads(json.dumps(
xmltodict.parse(
ElementTree.tostring(
element
)
)
))
def display_xml(elemen... | 19.473684 | 54 | 0.662162 | 41 | 370 | 5.853659 | 0.390244 | 0.083333 | 0.216667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267568 | 370 | 18 | 55 | 20.555556 | 0.885609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
76302bb6b5d9c7bbb5e3f9e67acbc6925c38e516 | 1,089 | py | Python | package/tests/test_models_v2.py | dmoney/djangopackages | 746cd47f8171229da3276b81d3c8454bdd887928 | [
"MIT"
] | null | null | null | package/tests/test_models_v2.py | dmoney/djangopackages | 746cd47f8171229da3276b81d3c8454bdd887928 | [
"MIT"
] | null | null | null | package/tests/test_models_v2.py | dmoney/djangopackages | 746cd47f8171229da3276b81d3c8454bdd887928 | [
"MIT"
] | null | null | null | def test_category(category):
assert str(category) == f"{category.title}"
def test_commit(commit):
assert str(commit) == f"Commit for '{commit.package.title}' on {commit.commit_date}"
def test_package(package):
assert str(package) == f"{package.title}"
assert package.is_deprecated is False
assert... | 34.03125 | 88 | 0.747475 | 152 | 1,089 | 5.157895 | 0.276316 | 0.281888 | 0.168367 | 0.266582 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00442 | 0.168962 | 1,089 | 31 | 89 | 35.129032 | 0.861878 | 0 | 0 | 0 | 0 | 0 | 0.110193 | 0.043159 | 0 | 0 | 0 | 0 | 0.84 | 1 | 0.16 | false | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
520ea74705e521f3a196e75e10fe255bb386e933 | 601 | py | Python | node/node_single.py | muddyfish/PYKE | f1bb0f5d7af5663129bd37ca58a0246e5a3699c7 | [
"MIT"
] | 24 | 2016-02-21T07:41:45.000Z | 2021-08-12T04:34:00.000Z | node/node_single.py | muddyfish/PYKE | f1bb0f5d7af5663129bd37ca58a0246e5a3699c7 | [
"MIT"
] | 1 | 2017-08-18T08:14:57.000Z | 2017-08-19T14:59:08.000Z | node/node_single.py | muddyfish/PYKE | f1bb0f5d7af5663129bd37ca58a0246e5a3699c7 | [
"MIT"
] | 4 | 2016-08-06T18:07:13.000Z | 2017-08-12T13:51:52.000Z | #!/usr/bin/env python
from nodes import Node
import lang_ast
class NodeSingle(Node):
args = 0
results = 1
ignore = True
def __init__(self, value):
self.value = value
def func(self):
return self.value
def __repr__(self):
return "%s: %s"%(self.__class__.__name_... | 23.115385 | 62 | 0.589018 | 79 | 601 | 4.227848 | 0.493671 | 0.080838 | 0.083832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 0.304493 | 601 | 26 | 63 | 23.115385 | 0.794258 | 0.033278 | 0 | 0 | 0 | 0 | 0.010327 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.210526 | false | 0 | 0.105263 | 0.105263 | 0.684211 | 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 |
522500e73bb4c0bf915c9b1a6531c0684ccad1af | 452 | py | Python | valentina/app/tests/test_logout_view.py | g4brielvs/valentina | d34ff934c88f465385be924bbe24cec7f1c395c8 | [
"MIT"
] | null | null | null | valentina/app/tests/test_logout_view.py | g4brielvs/valentina | d34ff934c88f465385be924bbe24cec7f1c395c8 | [
"MIT"
] | 1 | 2021-06-10T23:37:05.000Z | 2021-06-10T23:37:05.000Z | valentina/app/tests/test_logout_view.py | g4brielvs/valentina | d34ff934c88f465385be924bbe24cec7f1c395c8 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.shortcuts import resolve_url
from django.test import TestCase
class TestGetLogout(TestCase):
def setUp(self):
User.objects.create_user('olivia', password='password')
self.client.login(username='olivia', password='password')
self.resp... | 30.133333 | 65 | 0.721239 | 58 | 452 | 5.534483 | 0.517241 | 0.093458 | 0.137072 | 0.161994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15708 | 452 | 14 | 66 | 32.285714 | 0.84252 | 0 | 0 | 0 | 0 | 0 | 0.09292 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0.2 | 0.3 | 0 | 0.6 | 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 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
52545548fbd4134a636bff54b3a9ea9622135836 | 1,052 | py | Python | nephelae_paparazzi/missions/rules/TypeCheck.py | pnarvor/nephelae_paparazzi | 1c000444c39b342e90f39f432737ef06be762f56 | [
"BSD-3-Clause"
] | null | null | null | nephelae_paparazzi/missions/rules/TypeCheck.py | pnarvor/nephelae_paparazzi | 1c000444c39b342e90f39f432737ef06be762f56 | [
"BSD-3-Clause"
] | null | null | null | nephelae_paparazzi/missions/rules/TypeCheck.py | pnarvor/nephelae_paparazzi | 1c000444c39b342e90f39f432737ef06be762f56 | [
"BSD-3-Clause"
] | null | null | null | from .ParameterRules import ParameterRules
class TypeCheck(ParameterRules):
"""
TypeCheck
Implements a type checking.
Attribute
---------
allowedTypes : tuple(any type, ...)
A tuple of types to check. Check will be done by
isinstance(params, self.types)
Methods
-----... | 26.974359 | 73 | 0.63403 | 105 | 1,052 | 6.266667 | 0.438095 | 0.145897 | 0.086626 | 0.066869 | 0.12462 | 0.12462 | 0.12462 | 0 | 0 | 0 | 0 | 0 | 0.262357 | 1,052 | 38 | 74 | 27.684211 | 0.847938 | 0.296578 | 0 | 0 | 0 | 0 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.142857 | 0.642857 | 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 |
525e43b28c0fe645c6eebac99fd47308c695545c | 1,302 | py | Python | sympy/core/tests/test_eval_power.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T17:54:57.000Z | 2016-05-08T17:54:57.000Z | sympy/core/tests/test_eval_power.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | null | null | null | sympy/core/tests/test_eval_power.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | null | null | null | from sympy.core import *
def test_rational():
a = Rational(1, 5)
assert a**Rational(1, 2) == a**Rational(1, 2)
assert 2 * a**Rational(1, 2) == 2 * a**Rational(1, 2)
assert a**Rational(3, 2) == a * a**Rational(1, 2)
assert 2 * a**Rational(3, 2) == 2*a * a**Rational(1, 2)
assert a**Rational(17... | 28.304348 | 70 | 0.577573 | 219 | 1,302 | 3.392694 | 0.228311 | 0.230148 | 0.107672 | 0.088829 | 0.364738 | 0.339166 | 0.247645 | 0.172275 | 0.099596 | 0.099596 | 0 | 0.114723 | 0.196621 | 1,302 | 45 | 71 | 28.933333 | 0.595602 | 0.088326 | 0 | 0 | 0 | 0 | 0.002534 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.25 | false | 0 | 0.035714 | 0.035714 | 0.321429 | 0 | 0 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5270f95fc15a34ae2ebb339e6856b0b184a5ad0a | 171 | py | Python | examples/echo_services.py | vascohenriques/python-zeep | bf56414816b4c75f489d8185b9b71423a631b13a | [
"MIT"
] | 1,763 | 2016-02-28T19:28:54.000Z | 2022-03-31T14:51:19.000Z | examples/echo_services.py | vascohenriques/python-zeep | bf56414816b4c75f489d8185b9b71423a631b13a | [
"MIT"
] | 1,239 | 2016-04-07T06:22:31.000Z | 2022-03-31T13:12:49.000Z | examples/echo_services.py | vascohenriques/python-zeep | bf56414816b4c75f489d8185b9b71423a631b13a | [
"MIT"
] | 671 | 2016-04-04T16:54:51.000Z | 2022-03-30T09:12:27.000Z | from zeep.client import Client
# RPC style soap service
client = Client('http://www.soapclient.com/xml/soapresponder.wsdl')
print(client.service.Method1('zeep', 'soap'))
| 28.5 | 67 | 0.760234 | 24 | 171 | 5.416667 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.087719 | 171 | 5 | 68 | 34.2 | 0.826923 | 0.128655 | 0 | 0 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
52729120cc31353b9cd43dabc2982c3375da1390 | 480 | py | Python | scimitar/util/vt100/__init__.py | STEllAR-GROUP/scimitar | 8158f93a2b6114c174d7e590e118b0b5346243fa | [
"BSL-1.0"
] | 1 | 2017-12-03T12:20:41.000Z | 2017-12-03T12:20:41.000Z | scimitar/util/vt100/__init__.py | STEllAR-GROUP/scimitar | 8158f93a2b6114c174d7e590e118b0b5346243fa | [
"BSL-1.0"
] | 2 | 2017-07-03T11:35:14.000Z | 2017-07-03T11:40:13.000Z | scimitar/util/vt100/__init__.py | STEllAR-GROUP/scimitar | 8158f93a2b6114c174d7e590e118b0b5346243fa | [
"BSL-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Scimitar: Ye Distributed Debugger
#
# Copyright (c) 2016 Parsa Amini
# Copyright (c) 2016 Hartmut Kaiser
# Copyright (c) 2016 Thomas Heller
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)... | 25.263158 | 78 | 0.727083 | 70 | 480 | 4.928571 | 0.614286 | 0.173913 | 0.121739 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047264 | 0.1625 | 480 | 18 | 79 | 26.666667 | 0.810945 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
527a72f316aae4ba1040e1ee992b302d4c626c0c | 7,132 | py | Python | nilmtk/disaggregate/autoencoder.py | BaluJr/energytk | e9b06bcb43a40010ccc40a534a7067ee520fb3a7 | [
"Apache-2.0"
] | 3 | 2018-11-09T16:13:32.000Z | 2019-11-10T20:10:10.000Z | nilmtk/disaggregate/autoencoder.py | BaluJr/energytk | e9b06bcb43a40010ccc40a534a7067ee520fb3a7 | [
"Apache-2.0"
] | null | null | null | nilmtk/disaggregate/autoencoder.py | BaluJr/energytk | e9b06bcb43a40010ccc40a534a7067ee520fb3a7 | [
"Apache-2.0"
] | 1 | 2018-10-24T10:28:52.000Z | 2018-10-24T10:28:52.000Z | # This module tries to achieve disaggregation by using an autoencoder to
# find the main influences in the powerflow.
# Based on CNTK
#
# Realization on the basis of the
# - Autoencoder example: For the model
# - The financial example: How to load from pandas
# - The CNN example: Because the financial example create... | 34.288462 | 152 | 0.636427 | 808 | 7,132 | 5.532178 | 0.383663 | 0.017226 | 0.020134 | 0.020805 | 0.120805 | 0.110515 | 0.095749 | 0.095749 | 0.095749 | 0.095749 | 0 | 0.005375 | 0.26963 | 7,132 | 207 | 153 | 34.454106 | 0.852755 | 0.810712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.68 | 0 | 0.76 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
528138a2ac0e048b8eb4451a2207bf41135ca0a7 | 10,436 | py | Python | src/psd_tools/user_api/adjustments.py | nkato/psd-tools2 | 58838cc0a0274ca11507906f0b39d5faf42f445b | [
"MIT"
] | 2 | 2019-05-15T12:43:23.000Z | 2020-06-09T15:12:52.000Z | src/psd_tools/user_api/adjustments.py | nkato/psd-tools2 | 58838cc0a0274ca11507906f0b39d5faf42f445b | [
"MIT"
] | null | null | null | src/psd_tools/user_api/adjustments.py | nkato/psd-tools2 | 58838cc0a0274ca11507906f0b39d5faf42f445b | [
"MIT"
] | 1 | 2019-03-14T02:24:50.000Z | 2019-03-14T02:24:50.000Z | # -*- coding: utf-8 -*-
"""Adjustment API.
Adjustment classes are attached to ``data`` attribute of
:py:class:`~psd_tools.user_api.layers.AdjustmentLayer`.
Example::
if layer.kind == 'adjustment':
adjustment = layer.data
"""
from __future__ import absolute_import
import inspect
import logging
from psd_t... | 20.788845 | 77 | 0.589498 | 1,142 | 10,436 | 5.190018 | 0.169877 | 0.10798 | 0.103931 | 0.078961 | 0.295596 | 0.141893 | 0.101569 | 0.090602 | 0.07778 | 0.07778 | 0 | 0.003512 | 0.290629 | 10,436 | 501 | 78 | 20.830339 | 0.797109 | 0.163856 | 0 | 0.362963 | 0 | 0.003704 | 0.063341 | 0.003334 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0.007407 | 0.022222 | 0.214815 | 0.674074 | 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 |
bfe28571ad75076043f636bee373ce20aab6e76c | 292 | py | Python | python/ray/util/dask/__init__.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 3 | 2020-12-03T17:48:45.000Z | 2022-01-22T08:09:46.000Z | python/ray/util/dask/__init__.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 72 | 2021-02-06T08:07:16.000Z | 2022-03-26T07:17:49.000Z | python/ray/util/dask/__init__.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 2 | 2021-05-05T21:05:16.000Z | 2021-06-22T21:16:03.000Z | from .scheduler import ray_dask_get, ray_dask_get_sync
from .callbacks import (
RayDaskCallback,
local_ray_callbacks,
unpack_ray_callbacks,
)
__all__ = [
"ray_dask_get",
"ray_dask_get_sync",
"RayDaskCallback",
"local_ray_callbacks",
"unpack_ray_callbacks",
]
| 19.466667 | 54 | 0.722603 | 35 | 292 | 5.4 | 0.342857 | 0.148148 | 0.21164 | 0.137566 | 0.783069 | 0.783069 | 0.783069 | 0 | 0 | 0 | 0 | 0 | 0.188356 | 292 | 14 | 55 | 20.857143 | 0.797468 | 0 | 0 | 0 | 0 | 0 | 0.284247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 1 | 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 | 3 |
bfe580b141d6517d1d3e011576dde4c9bd0aec94 | 1,284 | py | Python | tests/mock_datetime.py | Soluto/shisell-python | a6bb7e06b3b025b7e0de21f5b970c9d59d3c56c3 | [
"MIT"
] | 2 | 2018-09-27T06:57:33.000Z | 2021-12-16T13:08:31.000Z | tests/mock_datetime.py | Soluto/shisell-python | a6bb7e06b3b025b7e0de21f5b970c9d59d3c56c3 | [
"MIT"
] | null | null | null | tests/mock_datetime.py | Soluto/shisell-python | a6bb7e06b3b025b7e0de21f5b970c9d59d3c56c3 | [
"MIT"
] | null | null | null | import datetime
import unittest.mock as mock
real_datetime_class = datetime.datetime
def mock_datetime_now(target: real_datetime_class, datetime_module):
"""
Override ``datetime.datetime.now()`` with a custom target value.
This creates a new datetime.datetime class, and alters its now()/utcnow()
meth... | 32.1 | 98 | 0.687695 | 147 | 1,284 | 5.870748 | 0.530612 | 0.075319 | 0.078795 | 0.057937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007 | 0.221184 | 1,284 | 39 | 99 | 32.923077 | 0.856 | 0.392523 | 0 | 0.176471 | 0 | 0 | 0.02213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.176471 | 0.705882 | 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 |
bff071e6ecc21603f27abd74f65e1b9249804d5e | 620 | py | Python | tests/test_core.py | mpailab/pylext | ea23ae31ec7a428a69b9f9a3af2af98a0b888014 | [
"MIT"
] | 1 | 2020-11-07T19:21:58.000Z | 2020-11-07T19:21:58.000Z | tests/test_core.py | mpailab/CFG-parser | ea23ae31ec7a428a69b9f9a3af2af98a0b888014 | [
"MIT"
] | 20 | 2020-01-31T20:36:06.000Z | 2021-04-24T21:48:16.000Z | tests/test_core.py | mpailab/pylext | ea23ae31ec7a428a69b9f9a3af2af98a0b888014 | [
"MIT"
] | null | null | null | import pylext
from pylext import exec_macros
def test_exception():
res = 0
try:
exec_macros("""
def f(x)):
return
""", {})
except SyntaxError as err:
res = 1
assert res == 1
def test_simple_import():
import macros.romb_import as m
res = m.run_test(len(m.validation)-1)
... | 16.315789 | 41 | 0.643548 | 96 | 620 | 3.927083 | 0.333333 | 0.092838 | 0.127321 | 0.175066 | 0.262599 | 0.262599 | 0.196286 | 0.196286 | 0.196286 | 0 | 0 | 0.015054 | 0.25 | 620 | 37 | 42 | 16.756757 | 0.795699 | 0 | 0 | 0.111111 | 0 | 0 | 0.037097 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.185185 | false | 0 | 0.333333 | 0 | 0.555556 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
871f8b543501c77dc6f16d8855372f414758db4d | 176 | py | Python | Assignment 1 - Neural networks/debugInializeWeights.py | marioyc/Hand-written-Digit-Recognition | b86e097e00d1799b8d799cb702177a2bf64ab5ee | [
"MIT"
] | null | null | null | Assignment 1 - Neural networks/debugInializeWeights.py | marioyc/Hand-written-Digit-Recognition | b86e097e00d1799b8d799cb702177a2bf64ab5ee | [
"MIT"
] | null | null | null | Assignment 1 - Neural networks/debugInializeWeights.py | marioyc/Hand-written-Digit-Recognition | b86e097e00d1799b8d799cb702177a2bf64ab5ee | [
"MIT"
] | null | null | null | from numpy import *
def debugInitializeWeights(fan_out, fan_in):
W = zeros((fan_out, 1 + fan_in))
W = reshape(sin(arange(size(W))+1.0), W.shape ) / 10.
return W
| 22 | 58 | 0.636364 | 29 | 176 | 3.724138 | 0.655172 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035971 | 0.210227 | 176 | 7 | 59 | 25.142857 | 0.741007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
872f3d0b33c0a9ffb9bff3a56620092d065e1e01 | 157 | py | Python | backend/gitwrapper/urls.py | kevenleone/github-commits | ed0297a9de916b2bc0589489fab9649e9b921ced | [
"MIT"
] | 2 | 2019-12-04T02:55:45.000Z | 2020-01-23T18:12:28.000Z | backend/gitwrapper/urls.py | kevenleone/github-commits | ed0297a9de916b2bc0589489fab9649e9b921ced | [
"MIT"
] | 8 | 2020-02-12T03:02:23.000Z | 2022-02-26T20:34:16.000Z | backend/gitwrapper/urls.py | kevenleone/github-commits | ed0297a9de916b2bc0589489fab9649e9b921ced | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.WebHookViewSet.as_view({'post': 'receiveHook'}), name='receiveHook'),
]
| 22.428571 | 88 | 0.700637 | 18 | 157 | 6.055556 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133758 | 157 | 6 | 89 | 26.166667 | 0.801471 | 0 | 0 | 0 | 0 | 0 | 0.165605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8740a52f8aa78c859e8fa2b0a5e3bcbf09976324 | 317 | py | Python | jesse/models/__init__.py | laughingwithu/jesse | c21adf59074ad62e4aa775261b4ad86c542ec4d5 | [
"MIT"
] | 10 | 2020-05-24T17:31:11.000Z | 2022-03-18T00:31:14.000Z | jesse/models/__init__.py | laughingwithu/jesse | c21adf59074ad62e4aa775261b4ad86c542ec4d5 | [
"MIT"
] | null | null | null | jesse/models/__init__.py | laughingwithu/jesse | c21adf59074ad62e4aa775261b4ad86c542ec4d5 | [
"MIT"
] | 4 | 2020-07-08T19:24:45.000Z | 2022-01-26T12:53:04.000Z | from .Candle import Candle
from .Ticker import Ticker
from .Exchange import Exchange
from .Order import Order
from .Position import Position
from .Route import Route
from .CompletedTrade import CompletedTrade
from .utils import store_candle_into_db, store_ticker_into_db, store_trade_into_db, store_orderbook_into_db
| 35.222222 | 107 | 0.85489 | 47 | 317 | 5.510638 | 0.319149 | 0.092664 | 0.127413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11041 | 317 | 8 | 108 | 39.625 | 0.91844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5e4a6418a6bf118b670bf309d8264bba952e6d4e | 1,177 | py | Python | src/kube_test/articles/article_collection.py | lcs-grtsch/kube_test | e5b386cec3c99c545724e358dc3116522931b1d1 | [
"MIT"
] | null | null | null | src/kube_test/articles/article_collection.py | lcs-grtsch/kube_test | e5b386cec3c99c545724e358dc3116522931b1d1 | [
"MIT"
] | null | null | null | src/kube_test/articles/article_collection.py | lcs-grtsch/kube_test | e5b386cec3c99c545724e358dc3116522931b1d1 | [
"MIT"
] | null | null | null | class ArticleCollection:
def __init__(self):
self._articles = []
def add(self, article):
self._articles.append(article)
def __len__(self):
return len(self._articles)
def __iter__(self):
return ArticleCollectionIterator(self)
def get_all_articles_tups(... | 31.810811 | 123 | 0.623619 | 124 | 1,177 | 5.540323 | 0.370968 | 0.087336 | 0.122271 | 0.046579 | 0.069869 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002413 | 0.295667 | 1,177 | 36 | 124 | 32.694444 | 0.826297 | 0.057774 | 0 | 0.071429 | 0 | 0 | 0.026168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.107143 | 0.535714 | 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 |
5e63f1afa6090892fce85d420df2bc00fa63443f | 198 | py | Python | src/jk_logging/impl/__init__.py | jkpubsrc/python-module-jk-logging | 2f1bce33defc0bb1fbb6040cbb02a27c6c4847ba | [
"Apache-1.1"
] | null | null | null | src/jk_logging/impl/__init__.py | jkpubsrc/python-module-jk-logging | 2f1bce33defc0bb1fbb6040cbb02a27c6c4847ba | [
"Apache-1.1"
] | null | null | null | src/jk_logging/impl/__init__.py | jkpubsrc/python-module-jk-logging | 2f1bce33defc0bb1fbb6040cbb02a27c6c4847ba | [
"Apache-1.1"
] | null | null | null |
__version__ = "0.2021.12.14"
from .IDCounter import IDCounter
from .createLogMsgTypeStrMap import createLogMsgTypeStrMap
from .JSONDict import JSONDict
from .ReadOnlyDict import ReadOnlyDict
| 16.5 | 58 | 0.818182 | 22 | 198 | 7.227273 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052023 | 0.126263 | 198 | 11 | 59 | 18 | 0.861272 | 0 | 0 | 0 | 0 | 0 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.8 | null | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5e6811e0ae01e77d5e994ad23edafcd126d59033 | 1,362 | py | Python | valhalla/filters/web.py | movermeyer/valhalla | b08d7a4a94fd8d85a6f5ea86200ec60ef4525e3d | [
"MIT"
] | null | null | null | valhalla/filters/web.py | movermeyer/valhalla | b08d7a4a94fd8d85a6f5ea86200ec60ef4525e3d | [
"MIT"
] | null | null | null | valhalla/filters/web.py | movermeyer/valhalla | b08d7a4a94fd8d85a6f5ea86200ec60ef4525e3d | [
"MIT"
] | 2 | 2016-09-01T09:20:01.000Z | 2018-03-05T17:22:37.000Z | # -*- coding: utf-8 -*-
import re
from . import strings
from .. import ValidationError
_regexes = {
'email_address': re.compile(r'^[a-z0-9\._\+%-]+@[a-z0-9\.-]+(\.[A-Z]{2,4})+$', re.IGNORECASE),
'ipv4': re.compile(r'^([0-9]{1,3}\.){3}[0-9]{1,3}$'),
'url': re.compile(r'')
}
# debating breaking ALL inter-module de... | 32.428571 | 95 | 0.68649 | 203 | 1,362 | 4.497537 | 0.448276 | 0.087623 | 0.099671 | 0.145674 | 0.312158 | 0.236583 | 0.179628 | 0.11172 | 0.11172 | 0.11172 | 0 | 0.023589 | 0.128488 | 1,362 | 41 | 96 | 33.219512 | 0.745577 | 0.197504 | 0 | 0.08 | 0 | 0.04 | 0.207912 | 0.068997 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0.2 | 0.12 | 0.04 | 0.56 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5e6dcc438f10484d3e58b8ee2d027defeb296a0a | 343 | py | Python | yepes/contrib/datamigrations/__init__.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | yepes/contrib/datamigrations/__init__.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | yepes/contrib/datamigrations/__init__.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding:utf-8 -*-
from __future__ import unicode_literals
from yepes.contrib.datamigrations.fields import *
from yepes.contrib.datamigrations.data_migrations import (
DataMigration,
BaseModelMigration,
ModelMigration,
QuerySetExportation,
)
default_app_config = 'yepes.contrib.datamigrations.apps... | 24.5 | 77 | 0.790087 | 33 | 343 | 7.969697 | 0.69697 | 0.136882 | 0.296578 | 0.228137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003333 | 0.125364 | 343 | 13 | 78 | 26.384615 | 0.873333 | 0.058309 | 0 | 0 | 0 | 0 | 0.168224 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
5e7c1a48e417c87501307d68a76faac7180ba194 | 5,973 | py | Python | tests/test_linalg.py | jakelishman/floq | d0c83b239d0c9631182cea5d69c901793d7c67c6 | [
"MIT"
] | 2 | 2021-02-01T10:43:05.000Z | 2021-08-10T14:51:45.000Z | tests/test_linalg.py | jakelishman/floq | d0c83b239d0c9631182cea5d69c901793d7c67c6 | [
"MIT"
] | 9 | 2018-09-10T10:46:04.000Z | 2018-10-10T16:48:26.000Z | tests/test_linalg.py | jakelishman/floq | d0c83b239d0c9631182cea5d69c901793d7c67c6 | [
"MIT"
] | null | null | null | from unittest import TestCase
from tests.assertions import CustomAssertions
import numpy as np
import floq
class TestIsUnitary(TestCase):
def test_true_if_unitary(self):
u = np.array([[-0.288822 - 0.154483j, 0.20768 - 0.22441j, 0.0949032 - 0.0560178j, -0.385994 + 0.210021j, 0.423002 - 0.605778j, 0.135684 ... | 47.404762 | 860 | 0.637536 | 913 | 5,973 | 4.105148 | 0.276013 | 0.03175 | 0.021345 | 0.036019 | 0.480523 | 0.389808 | 0.351387 | 0.31857 | 0.297225 | 0.297225 | 0 | 0.339438 | 0.195547 | 5,973 | 125 | 861 | 47.784 | 0.440583 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302326 | 1 | 0.209302 | false | 0 | 0.046512 | 0 | 0.360465 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5e80ecd4f53411059fd066cc8750756f043c0b89 | 511 | py | Python | marketing/migrations/0016_auto_20201112_1614.py | sauravpanda/Django-CRM | c6b8cde02c9cf3d3f30f4e05b825f77d00734e87 | [
"MIT"
] | null | null | null | marketing/migrations/0016_auto_20201112_1614.py | sauravpanda/Django-CRM | c6b8cde02c9cf3d3f30f4e05b825f77d00734e87 | [
"MIT"
] | null | null | null | marketing/migrations/0016_auto_20201112_1614.py | sauravpanda/Django-CRM | c6b8cde02c9cf3d3f30f4e05b825f77d00734e87 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-11-12 10:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('marketing', '0015_auto_20200912_0301'),
]
operations = [
migrations.RenameField(
model_name='contact',
old_name='contry',
... | 21.291667 | 49 | 0.563601 | 49 | 511 | 5.693878 | 0.673469 | 0.150538 | 0.18638 | 0.215054 | 0.193548 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0.087209 | 0.32681 | 511 | 23 | 50 | 22.217391 | 0.723837 | 0.084149 | 0 | 0.470588 | 1 | 0 | 0.167382 | 0.049356 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
5ea45dff1c1b5a7b9a7139fec69340289fa5afd9 | 89 | py | Python | problem_1_min.py | kaubu/project-euler | 8d4a1f1a6abf24a0c5491731cbdb074d89145061 | [
"MIT"
] | null | null | null | problem_1_min.py | kaubu/project-euler | 8d4a1f1a6abf24a0c5491731cbdb074d89145061 | [
"MIT"
] | null | null | null | problem_1_min.py | kaubu/project-euler | 8d4a1f1a6abf24a0c5491731cbdb074d89145061 | [
"MIT"
] | null | null | null | n_sum = 0
for n in range(1000): n_sum += n if not n % 3 or not n % 5 else 0
print(n_sum)
| 22.25 | 65 | 0.629213 | 24 | 89 | 2.208333 | 0.583333 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0.258427 | 89 | 3 | 66 | 29.666667 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 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 |
5ebc0ca49c97237dbab2d1b22dcc83509de9b98d | 1,394 | py | Python | src/client.py | sbarbett/ssp-sdk-python | 03677bcd32f268f84b1e490a7d6c687ee33762e9 | [
"Apache-2.0"
] | null | null | null | src/client.py | sbarbett/ssp-sdk-python | 03677bcd32f268f84b1e490a7d6c687ee33762e9 | [
"Apache-2.0"
] | null | null | null | src/client.py | sbarbett/ssp-sdk-python | 03677bcd32f268f84b1e490a7d6c687ee33762e9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 NeuStar, Inc.All rights reserved.
#
# 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 a... | 34 | 75 | 0.761119 | 189 | 1,394 | 5.582011 | 0.529101 | 0.056872 | 0.024645 | 0.030332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00682 | 0.158537 | 1,394 | 41 | 76 | 34 | 0.892583 | 0.645624 | 0 | 0 | 0 | 0 | 0.035556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.181818 | 0.272727 | 0 | 0.818182 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5ebfafba8e3e89bfdb938a860d40d86b69ddf3cf | 4,267 | py | Python | stable_nalu/functional/regualizer.py | bmistry4/nalm-benchmark | 273c95cc75241f56e48bcd0b18b043969ef82004 | [
"MIT"
] | null | null | null | stable_nalu/functional/regualizer.py | bmistry4/nalm-benchmark | 273c95cc75241f56e48bcd0b18b043969ef82004 | [
"MIT"
] | null | null | null | stable_nalu/functional/regualizer.py | bmistry4/nalm-benchmark | 273c95cc75241f56e48bcd0b18b043969ef82004 | [
"MIT"
] | null | null | null | import math
import torch
def l1(params):
# calc L1 error over all params in the network
l1 = 0
for param in params:
l1 += torch.norm(param, 1)
return l1
def lp_norm(params, p):
# calc Lp error over all params in the network
loss = 0
for param in params:
loss += torch.nor... | 31.843284 | 120 | 0.586595 | 644 | 4,267 | 3.725155 | 0.253106 | 0.037516 | 0.055023 | 0.053356 | 0.290121 | 0.22301 | 0.211755 | 0.173822 | 0.147145 | 0.108378 | 0 | 0.0286 | 0.287087 | 4,267 | 133 | 121 | 32.082707 | 0.760026 | 0.203422 | 0 | 0.204301 | 0 | 0 | 0.004441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.247312 | false | 0 | 0.021505 | 0.150538 | 0.526882 | 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 |
5ed107e056877071199b1d13982f8ef865125b31 | 376 | py | Python | banzai/utils/array_utils.py | gmbrandt/banzai | af6ddb529e8c35eaa87abf67372160f2dd99050b | [
"BSD-3-Clause"
] | null | null | null | banzai/utils/array_utils.py | gmbrandt/banzai | af6ddb529e8c35eaa87abf67372160f2dd99050b | [
"BSD-3-Clause"
] | null | null | null | banzai/utils/array_utils.py | gmbrandt/banzai | af6ddb529e8c35eaa87abf67372160f2dd99050b | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
def array_indices_to_slices(a):
return tuple(slice(0, x, 1) for x in a.shape)
def prune_nans_from_table(table):
nan_in_row = np.zeros(len(table), dtype=bool)
for col in table.colnames:
nan_in_ro... | 26.857143 | 82 | 0.734043 | 63 | 376 | 4.079365 | 0.619048 | 0.058366 | 0.093385 | 0.101167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.170213 | 376 | 13 | 83 | 28.923077 | 0.817308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0.111111 | 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 |
0d799e5e74e58842353f606554f65d80dd705533 | 19,817 | py | Python | template_container_human/labels/slice_16.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_16.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_human/labels/slice_16.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | coordinates_E0E1E1 = ((127, 144),
(127, 146), (128, 108), (128, 110), (128, 111), (128, 112), (128, 113), (128, 114), (128, 115), (128, 116), (128, 118), (129, 102), (129, 103), (129, 106), (129, 107), (129, 108), (129, 109), (129, 110), (129, 111), (129, 112), (129, 113), (129, 114), (129, 115), (129, 118), (129, 12... | 396.34 | 865 | 0.492759 | 3,324 | 19,817 | 2.93231 | 0.030084 | 0.001847 | 0.001847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.578896 | 0.17268 | 19,817 | 49 | 866 | 404.428571 | 0.015615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0d7c091967c9affc83a4f4c6f7107024f844a0d2 | 229 | py | Python | tests/files/autotest/tests_module/mixed.py | ishikawa/modipyd | 30bd7df9e9babb29b848dac6a46b1c909ab1e180 | [
"MIT"
] | 1 | 2016-05-08T13:21:04.000Z | 2016-05-08T13:21:04.000Z | tests/files/autotest/tests_module/mixed.py | ishikawa/modipyd | 30bd7df9e9babb29b848dac6a46b1c909ab1e180 | [
"MIT"
] | null | null | null | tests/files/autotest/tests_module/mixed.py | ishikawa/modipyd | 30bd7df9e9babb29b848dac6a46b1c909ab1e180 | [
"MIT"
] | null | null | null | import tests_module
import other_module
class RegularObject(object):
pass
class RegularObject2(other_module.RegularObjectInOtherModule):
pass
class TestMixed(tests_module.TestCase):
def test_it(self):
pass
| 17.615385 | 62 | 0.772926 | 26 | 229 | 6.615385 | 0.615385 | 0.127907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.165939 | 229 | 12 | 63 | 19.083333 | 0.895288 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.333333 | 0.222222 | 0 | 0.666667 | 0 | 1 | 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 | 3 |
0d954434c6a7a3f58c9b0faf0d8512807c7b2362 | 1,082 | py | Python | taillight/__init__.py | Elizafox/taillight | 52df2b1043bbbbc559e5676e9c9ec838aa38a808 | [
"WTFPL"
] | 4 | 2015-06-21T13:00:44.000Z | 2020-09-14T18:09:28.000Z | taillight/__init__.py | Elizafox/taillight | 52df2b1043bbbbc559e5676e9c9ec838aa38a808 | [
"WTFPL"
] | null | null | null | taillight/__init__.py | Elizafox/taillight | 52df2b1043bbbbc559e5676e9c9ec838aa38a808 | [
"WTFPL"
] | null | null | null | # Copyright © 2017-2019 Elizabeth Myers. All rights reserved.
# This file is part of the taillight project. See LICENSE in the root
# directory for licensing information.
"""The top level module contains a few constants needed throughout taillight,
the base exception for all taillight errors (for easier catching by h... | 23.521739 | 78 | 0.707024 | 141 | 1,082 | 5.234043 | 0.58156 | 0.04065 | 0.04065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009195 | 0.195933 | 1,082 | 45 | 79 | 24.044444 | 0.837931 | 0.561922 | 0 | 0 | 0 | 0 | 0.036232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.266667 | 0.866667 | 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 |
0dc3b4808b6cd53b143bd55fb5ab0282f1755cf6 | 292 | py | Python | web/django/users/views.py | codpro880/heartspeed | 8027216fe3c3bb0bd702c823b876dfa42c91ce7a | [
"MIT"
] | 3 | 2019-04-28T16:01:38.000Z | 2020-12-06T02:39:03.000Z | web/django/users/views.py | codpro880/heartspeed | 8027216fe3c3bb0bd702c823b876dfa42c91ce7a | [
"MIT"
] | 12 | 2020-12-06T05:30:02.000Z | 2021-04-27T00:18:13.000Z | web/django/users/views.py | codpro880/heartspeed | 8027216fe3c3bb0bd702c823b876dfa42c91ce7a | [
"MIT"
] | null | null | null | from django.http import HttpRequest, HttpResponse
from django.shortcuts import render
def home(request: HttpRequest) -> HttpResponse:
if request.user.is_authenticated:
return render(request, 'home.html', {'user': request.user})
return HttpResponse("Login to see this page")
| 32.444444 | 67 | 0.746575 | 36 | 292 | 6.027778 | 0.611111 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15411 | 292 | 8 | 68 | 36.5 | 0.878543 | 0 | 0 | 0 | 0 | 0 | 0.119863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
0df48fd0e8c11edab2963cf38a4e2ecdaddb235d | 115 | py | Python | EdX/Python/PSET_1_2.py | mayankjobanputra/Programing | eed62661ee9a745c7ea81dde317d83a40ea489f4 | [
"MIT"
] | null | null | null | EdX/Python/PSET_1_2.py | mayankjobanputra/Programing | eed62661ee9a745c7ea81dde317d83a40ea489f4 | [
"MIT"
] | null | null | null | EdX/Python/PSET_1_2.py | mayankjobanputra/Programing | eed62661ee9a745c7ea81dde317d83a40ea489f4 | [
"MIT"
] | null | null | null | num=0
for i in range(len(s)-2):
if(s[i:i+3]=='bob'):
num+=1
print "Number of times bob occurs is:",num
| 19.166667 | 42 | 0.565217 | 25 | 115 | 2.6 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0.226087 | 115 | 5 | 43 | 23 | 0.685393 | 0 | 0 | 0 | 0 | 0 | 0.286957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2175b95524f253410e49446b559a80dfe1d3dbb8 | 124 | py | Python | Basic syntax Lab/word reverse.py | DiyanKalaydzhiev23/fundamentals---python | 7fa032d9a3270648ffa383bb00dad8e51613189d | [
"MIT"
] | null | null | null | Basic syntax Lab/word reverse.py | DiyanKalaydzhiev23/fundamentals---python | 7fa032d9a3270648ffa383bb00dad8e51613189d | [
"MIT"
] | null | null | null | Basic syntax Lab/word reverse.py | DiyanKalaydzhiev23/fundamentals---python | 7fa032d9a3270648ffa383bb00dad8e51613189d | [
"MIT"
] | null | null | null | word = input()
reversed_word = ""
for i in range(len(word) - 1, - 1, -1):
reversed_word += word[i]
print(reversed_word)
| 20.666667 | 39 | 0.637097 | 20 | 124 | 3.8 | 0.5 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.185484 | 124 | 5 | 40 | 24.8 | 0.722772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 1 | 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 |
217fefc42f63031da392ae65ebe492187d82f599 | 423 | py | Python | item.py | nyalldawson/dwarf_mine | edf4fec2ffe56208d182c1d7ef3bd77a039b4d80 | [
"MIT"
] | 2 | 2017-10-05T05:13:02.000Z | 2017-10-05T05:16:58.000Z | item.py | nyalldawson/dwarf_mine | edf4fec2ffe56208d182c1d7ef3bd77a039b4d80 | [
"MIT"
] | null | null | null | item.py | nyalldawson/dwarf_mine | edf4fec2ffe56208d182c1d7ef3bd77a039b4d80 | [
"MIT"
] | null | null | null |
class Item:
def __init__(self, x, y):
self.x = x
self.y = y
self.char = 'X'
self.color = 1
self.mine = None
self.type = 'thing'
def add_to_mine(self, mine):
self.mine = mine
def is_attractive_to(self, creature: 'Creature'):
return False
... | 20.142857 | 53 | 0.541371 | 56 | 423 | 3.910714 | 0.446429 | 0.109589 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0.352246 | 423 | 21 | 54 | 20.142857 | 0.79562 | 0 | 0 | 0 | 0 | 0 | 0.052009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.0625 | 0 | 0.125 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
2188e2216c065e48a9a5262d01250046d5a64985 | 219 | py | Python | fc_view/setup.py | takanori-fujiwara/ccpca | e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110 | [
"BSD-3-Clause"
] | 14 | 2019-07-16T03:29:29.000Z | 2022-02-19T14:59:11.000Z | fc_view/setup.py | takanori-fujiwara/ccpca | e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110 | [
"BSD-3-Clause"
] | null | null | null | fc_view/setup.py | takanori-fujiwara/ccpca | e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110 | [
"BSD-3-Clause"
] | 7 | 2019-07-16T03:35:58.000Z | 2022-01-30T05:41:07.000Z | from distutils.core import setup
setup(name='fc-view',
version=0.1,
packages=[''],
package_dir={'': '.'},
install_requires=['numpy', 'scipy'],
py_modules=['opt_sign_flip', 'mat_reorder'])
| 24.333333 | 50 | 0.598174 | 26 | 219 | 4.807692 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.200913 | 219 | 8 | 51 | 27.375 | 0.702857 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
21a8c687710b1e9cf2b84dde1150046d7da9a02d | 1,078 | py | Python | tests/custom/test_map_priority.py | arkhn/cleaning-scripts | ffe88598b476b2e6b53fd06e8ce6092ef0351b19 | [
"Apache-2.0"
] | 9 | 2019-03-31T03:46:51.000Z | 2020-05-20T13:05:06.000Z | tests/custom/test_map_priority.py | arkhn/cleaning-scripts | ffe88598b476b2e6b53fd06e8ce6092ef0351b19 | [
"Apache-2.0"
] | 18 | 2019-09-11T09:19:45.000Z | 2021-07-13T09:16:23.000Z | tests/custom/test_map_priority.py | arkhn/cleaning-scripts | ffe88598b476b2e6b53fd06e8ce6092ef0351b19 | [
"Apache-2.0"
] | 2 | 2019-09-18T15:20:10.000Z | 2021-07-25T06:46:57.000Z | from scripts import custom
def test_map_priority():
raw_input_1 = "0"
output_1 = custom.map_priority(raw_input_1)
assert output_1 == "stat"
raw_input_2 = 0
output_2 = custom.map_priority(raw_input_2)
assert output_2 == "stat"
raw_input_3 = "1"
output_3 = custom.map_priority(raw_inpu... | 23.955556 | 49 | 0.681818 | 168 | 1,078 | 3.946429 | 0.166667 | 0.241327 | 0.232278 | 0.315234 | 0.408748 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.220779 | 1,078 | 44 | 50 | 24.5 | 0.722619 | 0 | 0 | 0 | 0 | 0 | 0.058442 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.03125 | false | 0 | 0.03125 | 0 | 0.0625 | 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 | 0 | 0 | 0 | 3 |
21dbf18ded51471b26713067cee205902e797c4d | 139 | py | Python | output/models/ms_data/particles/particles_b010_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/particles/particles_b010_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/particles/particles_b010_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.particles.particles_b010_xsd.particles_b010 import (
Doc,
Elem,
)
__all__ = [
"Doc",
"Elem",
]
| 13.9 | 79 | 0.654676 | 17 | 139 | 4.882353 | 0.705882 | 0.313253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055046 | 0.215827 | 139 | 9 | 80 | 15.444444 | 0.706422 | 0 | 0 | 0 | 0 | 0 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 1 | 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 |
21dee0f109bef7ebd1561c75c737422f8c744405 | 6,144 | py | Python | tests/benchmark/runners/test_constant.py | kambiz-aghaiepour/rally | be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2 | [
"Apache-2.0"
] | 1 | 2020-09-09T19:01:41.000Z | 2020-09-09T19:01:41.000Z | tests/benchmark/runners/test_constant.py | kambiz-aghaiepour/rally | be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2 | [
"Apache-2.0"
] | null | null | null | tests/benchmark/runners/test_constant.py | kambiz-aghaiepour/rally | be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2 | [
"Apache-2.0"
] | 1 | 2020-09-09T19:01:43.000Z | 2020-09-09T19:01:43.000Z | # Copyright 2014: Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 43.574468 | 79 | 0.65332 | 634 | 6,144 | 6.195584 | 0.214511 | 0.043279 | 0.069246 | 0.048116 | 0.795825 | 0.759165 | 0.744399 | 0.694756 | 0.670316 | 0.645367 | 0 | 0.006315 | 0.252604 | 6,144 | 140 | 80 | 43.885714 | 0.849085 | 0.130859 | 0 | 0.666667 | 0 | 0 | 0.052612 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.121212 | false | 0 | 0.060606 | 0 | 0.20202 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 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 | 3 |
21eb9b89af0ad48429a382f4d21858a52a5325a0 | 324 | py | Python | serve/utils.py | bvshyam/facegeneration_gan_sagemaker | d6bdb174bf1918d3e0823777c9f61437c8418b7a | [
"MIT"
] | 9 | 2020-06-08T15:28:17.000Z | 2021-12-27T12:47:37.000Z | serve/utils.py | bvshyam/facegeneration_gan_sagemaker | d6bdb174bf1918d3e0823777c9f61437c8418b7a | [
"MIT"
] | 1 | 2021-08-28T02:50:04.000Z | 2021-08-28T02:50:04.000Z | serve/utils.py | bvshyam/facegeneration_gan_sagemaker | d6bdb174bf1918d3e0823777c9f61437c8418b7a | [
"MIT"
] | 4 | 2021-02-22T03:41:37.000Z | 2021-12-27T12:52:56.000Z | import numpy as np
import pickle
import os
import glob
import torch
def string_to_num(z_size_data):
z_size_data = str(z_size_data)
z_size_data = [float(i) for i in z_size_data.split(',')]
z_size_data = torch.tensor(z_size_data)
print("Inside Util")
return z_size_data.deta... | 17.052632 | 60 | 0.67284 | 54 | 324 | 3.703704 | 0.5 | 0.2 | 0.36 | 0.1 | 0.18 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240741 | 324 | 19 | 61 | 17.052632 | 0.813008 | 0 | 0 | 0 | 0 | 0 | 0.036923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 0.090909 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
21f5073b90d55e21b0f44ad29ee9acc3780ac97b | 799 | py | Python | Chapter25/listing25-2.py | TYRMars/PythonLearn | 573c8d0b94b890924942e6ba7882eaf73597fb63 | [
"MIT"
] | null | null | null | Chapter25/listing25-2.py | TYRMars/PythonLearn | 573c8d0b94b890924942e6ba7882eaf73597fb63 | [
"MIT"
] | null | null | null | Chapter25/listing25-2.py | TYRMars/PythonLearn | 573c8d0b94b890924942e6ba7882eaf73597fb63 | [
"MIT"
] | 1 | 2018-08-23T14:41:32.000Z | 2018-08-23T14:41:32.000Z | #!/usr/bin/env python
print 'Content-type: text/html\n'
from os.path import join, abspath
import cgi, sys
BASE_DIR = abspath('data')
form = cgi.FieldStorage()
filename = form.getvalue('filename')
if not filename:
print 'Please enter a file name'
sys.exit()
text = open(join(BASE_DIR, filename)).read()
print... | 23.5 | 67 | 0.594493 | 109 | 799 | 4.33945 | 0.513761 | 0.044397 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006202 | 0.192741 | 799 | 34 | 68 | 23.5 | 0.727132 | 0.025031 | 0 | 0 | 0 | 0 | 0.646983 | 0.065469 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.071429 | 0.071429 | null | null | 0.107143 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1d065428061f612cebb09870cc3474d78abeda68 | 303 | py | Python | ari/track.py | gieseladev/ari-player | 64a030956f6d35ea48275448df42228c38b2fa88 | [
"MIT"
] | 1 | 2019-08-04T00:48:52.000Z | 2019-08-04T00:48:52.000Z | ari/track.py | gieseladev/ari-player | 64a030956f6d35ea48275448df42228c38b2fa88 | [
"MIT"
] | 1 | 2021-06-02T00:24:45.000Z | 2021-06-02T00:24:45.000Z | ari/track.py | gieseladev/ari-player | 64a030956f6d35ea48275448df42228c38b2fa88 | [
"MIT"
] | null | null | null | import dataclasses
__all__ = ["ElakshiTrack", "AudioSource"]
@dataclasses.dataclass(frozen=True)
class ElakshiTrack:
eid: str
@dataclasses.dataclass(frozen=True)
class AudioSource:
source: str
identifier: str
uri: str
start_offset: float
end_offset: float
is_live: bool
| 15.947368 | 41 | 0.716172 | 34 | 303 | 6.176471 | 0.617647 | 0.190476 | 0.247619 | 0.285714 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194719 | 303 | 18 | 42 | 16.833333 | 0.860656 | 0 | 0 | 0.153846 | 0 | 0 | 0.075908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 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 | 3 |
0dfc18de94d1500e566885fab28962fb3a619a87 | 759 | py | Python | fastNLP/modules/encoder/__init__.py | brxx122/fastNLP | 8affc4a3ff75061ccbdecca6247493f346634155 | [
"Apache-2.0"
] | null | null | null | fastNLP/modules/encoder/__init__.py | brxx122/fastNLP | 8affc4a3ff75061ccbdecca6247493f346634155 | [
"Apache-2.0"
] | null | null | null | fastNLP/modules/encoder/__init__.py | brxx122/fastNLP | 8affc4a3ff75061ccbdecca6247493f346634155 | [
"Apache-2.0"
] | 2 | 2020-04-21T06:17:59.000Z | 2020-05-05T11:22:11.000Z | """
.. todo::
doc
"""
__all__ = [
# "BertModel",
"ConvolutionCharEncoder",
"LSTMCharEncoder",
"ConvMaxpool",
"LSTM",
"StarTransformer",
"TransformerEncoder",
"VarRNN",
"VarLSTM",
"VarGRU",
"MaxPool",
"MaxPoolWithMask",
"AvgPool",
"AvgPoolWithMask",
... | 18.512195 | 71 | 0.716733 | 64 | 759 | 8.375 | 0.46875 | 0.13806 | 0.070896 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185771 | 759 | 40 | 72 | 18.975 | 0.867314 | 0.040843 | 0 | 0 | 0 | 0 | 0.230556 | 0.030556 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0 | false | 0 | 0.36 | 0 | 0.36 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
df0b3db4d2f4deff4fc60828a64995c019b55ddd | 11,403 | py | Python | tests/integration/test_file_storage.py | geoadmin/mf-chsdi3 | fa5705e345af11467644564f8e469e76403f66b8 | [
"BSD-3-Clause"
] | 29 | 2015-02-12T07:45:57.000Z | 2020-12-20T08:49:26.000Z | tests/integration/test_file_storage.py | geoadmin/mf-chsdi3 | fa5705e345af11467644564f8e469e76403f66b8 | [
"BSD-3-Clause"
] | 1,753 | 2015-01-05T07:11:27.000Z | 2022-03-28T15:17:07.000Z | tests/integration/test_file_storage.py | geoadmin/mf-chsdi3 | fa5705e345af11467644564f8e469e76403f66b8 | [
"BSD-3-Clause"
] | 15 | 2015-04-23T08:38:58.000Z | 2020-09-28T14:17:40.000Z | # -*- coding: utf-8 -*-
import os
import six
import time
from tests.integration import TestsBase, s3_tests, dynamodb_tests
WRONG_CONTENT_TYPE = 'nasty type'
VALID_KML = '''<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
<name>Simple placemark</name>
<descrip... | 43.030189 | 1,628 | 0.659037 | 1,609 | 11,403 | 4.579242 | 0.172778 | 0.038817 | 0.056189 | 0.074919 | 0.750271 | 0.708062 | 0.68051 | 0.663952 | 0.653773 | 0.612921 | 0 | 0.068615 | 0.189687 | 11,403 | 264 | 1,629 | 43.193182 | 0.728788 | 0.080768 | 0 | 0.613402 | 0 | 0.020619 | 0.449976 | 0.206798 | 0 | 0 | 0 | 0 | 0.087629 | 1 | 0.061856 | false | 0 | 0.020619 | 0 | 0.087629 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df1171000a17fdaa53b3d9affdc2a2b9401282f7 | 92,549 | py | Python | src/plivo/rest/freeswitch/api.py | mknecht/plivoframework | 29fc41fb3c887d5d9022a941e87bbeb2269112ff | [
"Condor-1.1"
] | 151 | 2015-01-14T13:35:47.000Z | 2022-01-25T02:47:14.000Z | src/plivo/rest/freeswitch/api.py | altanai/plivoframework | d8d182c7af17c3fbe514d7dfd68d0608ce798f47 | [
"Condor-1.1"
] | 14 | 2015-01-02T05:12:04.000Z | 2021-02-03T04:25:39.000Z | src/plivo/rest/freeswitch/api.py | altanai/plivoframework | d8d182c7af17c3fbe514d7dfd68d0608ce798f47 | [
"Condor-1.1"
] | 107 | 2015-01-02T04:15:28.000Z | 2022-02-07T18:14:18.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2011 Plivo Team. See LICENSE for details
import base64
import re
import uuid
import os
import os.path
from datetime import datetime
try:
import xml.etree.cElementTree as etree
except ImportError:
from xml.etree.elementtree import ElementTree as etree
import ujson as jso... | 41.483191 | 156 | 0.580881 | 10,616 | 92,549 | 4.88668 | 0.062076 | 0.017272 | 0.029609 | 0.046514 | 0.747094 | 0.705708 | 0.6766 | 0.654143 | 0.631185 | 0.608343 | 0 | 0.003395 | 0.334914 | 92,549 | 2,230 | 157 | 41.501794 | 0.839407 | 0.010459 | 0 | 0.549383 | 0 | 0.000686 | 0.147463 | 0.008346 | 0 | 0 | 0 | 0.000448 | 0 | 0 | null | null | 0.000686 | 0.010974 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 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 |
df3131e54cecde3ec2464b9bff8f0efb877b6437 | 50 | py | Python | gaft/operators/selection/__init__.py | lizhaofu/gaft | 883ce7d5b7b48e9cb3d1d4819570c42b69f3f679 | [
"MIT"
] | null | null | null | gaft/operators/selection/__init__.py | lizhaofu/gaft | 883ce7d5b7b48e9cb3d1d4819570c42b69f3f679 | [
"MIT"
] | null | null | null | gaft/operators/selection/__init__.py | lizhaofu/gaft | 883ce7d5b7b48e9cb3d1d4819570c42b69f3f679 | [
"MIT"
] | null | null | null | ''' Package for built-in selection operators '''
| 16.666667 | 48 | 0.7 | 6 | 50 | 5.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 50 | 2 | 49 | 25 | 0.833333 | 0.8 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
df3432d6e2a094c4246fd08ba4fe7e3f3b600158 | 369 | py | Python | Day 25 - CSVs, Pandas and US States Game/CSV & Pandas Intro/testing_stuff.py | ArielMAJ/100-days-of-code | 995f5ca092c2cf345a500cbd70fdb25f4361f183 | [
"MIT"
] | null | null | null | Day 25 - CSVs, Pandas and US States Game/CSV & Pandas Intro/testing_stuff.py | ArielMAJ/100-days-of-code | 995f5ca092c2cf345a500cbd70fdb25f4361f183 | [
"MIT"
] | null | null | null | Day 25 - CSVs, Pandas and US States Game/CSV & Pandas Intro/testing_stuff.py | ArielMAJ/100-days-of-code | 995f5ca092c2cf345a500cbd70fdb25f4361f183 | [
"MIT"
] | null | null | null | # with open('./weather_data.csv') as f:
# data = [line.split(',') for line in f.read().split('\n')]
# print(data)
#
# import csv
#
# with open('weather_data.csv') as f:
# data = csv.reader(f)
# temperature = []
# for row in data:
# try:
# temperature.append(int(row[1]))
# exc... | 23.0625 | 63 | 0.533875 | 47 | 369 | 4.148936 | 0.510638 | 0.107692 | 0.153846 | 0.194872 | 0.297436 | 0.297436 | 0.297436 | 0.297436 | 0 | 0 | 0 | 0.003774 | 0.281843 | 369 | 15 | 64 | 24.6 | 0.732075 | 0.915989 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df3eca2afb67a03da3e9f98bd54037bb4d43d7a7 | 123 | py | Python | trading/apps.py | DarkoR12/dafi-system | f923ea4273b04f7acc7016b2f7d03e51eb00b85b | [
"MIT"
] | 7 | 2019-08-03T12:25:18.000Z | 2021-11-02T12:51:33.000Z | trading/apps.py | DarkoR12/dafi-system | f923ea4273b04f7acc7016b2f7d03e51eb00b85b | [
"MIT"
] | 11 | 2019-08-20T17:07:37.000Z | 2021-11-23T14:26:07.000Z | trading/apps.py | DarkoR12/dafi-system | f923ea4273b04f7acc7016b2f7d03e51eb00b85b | [
"MIT"
] | 4 | 2020-04-06T11:33:02.000Z | 2021-10-31T09:10:53.000Z | from django.apps import AppConfig
class TradingConfig(AppConfig):
name = 'trading'
verbose_name = 'Intercambios'
| 17.571429 | 33 | 0.739837 | 13 | 123 | 6.923077 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178862 | 123 | 6 | 34 | 20.5 | 0.891089 | 0 | 0 | 0 | 0 | 0 | 0.154472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
df42c1291223df4ac6ea851f4e2bb09a53f3fd63 | 430 | py | Python | server/python-asgi/app/models/foo.py | shortcut/cloud-native-templates | 023b0a09137bcc763d7c0f0e48c325320fdc93af | [
"MIT"
] | null | null | null | server/python-asgi/app/models/foo.py | shortcut/cloud-native-templates | 023b0a09137bcc763d7c0f0e48c325320fdc93af | [
"MIT"
] | null | null | null | server/python-asgi/app/models/foo.py | shortcut/cloud-native-templates | 023b0a09137bcc763d7c0f0e48c325320fdc93af | [
"MIT"
] | null | null | null | from pydantic import BaseModel, Field
from typing import Optional
class FooRequest(BaseModel):
foo: Optional[str] = Field(
None,
description='foo',
example='foo',
min_length=1,
regex='^[a-zA-Z0-9]+$',
)
class FooResponse(BaseModel):
foo: str = Field(
...,
... | 18.695652 | 37 | 0.537209 | 47 | 430 | 4.87234 | 0.489362 | 0.104803 | 0.183406 | 0.209607 | 0.393013 | 0.393013 | 0.393013 | 0.393013 | 0.393013 | 0.393013 | 0 | 0.020202 | 0.309302 | 430 | 22 | 38 | 19.545455 | 0.750842 | 0 | 0 | 0.444444 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
df51fe0f9d20bf758783a9a4f440b2cf9b340b01 | 114 | py | Python | app/model.py | Fenghaze/ImageSegmentation | 3f7e78fc8129241fd8090c9a67190c85e06fb5a1 | [
"MIT"
] | null | null | null | app/model.py | Fenghaze/ImageSegmentation | 3f7e78fc8129241fd8090c9a67190c85e06fb5a1 | [
"MIT"
] | null | null | null | app/model.py | Fenghaze/ImageSegmentation | 3f7e78fc8129241fd8090c9a67190c85e06fb5a1 | [
"MIT"
] | null | null | null | import torch
model = torch.hub.load('pytorch/vision:v0.10.0', 'deeplabv3_resnet101', pretrained=True)
model.eval() | 38 | 88 | 0.77193 | 17 | 114 | 5.117647 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0.061404 | 114 | 3 | 89 | 38 | 0.738318 | 0 | 0 | 0 | 0 | 0 | 0.356522 | 0.191304 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
df59942cf5238e3df7d6dc436a218c907b8213f5 | 249 | py | Python | polls_cms_integration/models.py | sandilukez/news-project | fcd91edd6b7d6941b77a6390aa86efe3e2b0c3a1 | [
"MIT"
] | null | null | null | polls_cms_integration/models.py | sandilukez/news-project | fcd91edd6b7d6941b77a6390aa86efe3e2b0c3a1 | [
"MIT"
] | null | null | null | polls_cms_integration/models.py | sandilukez/news-project | fcd91edd6b7d6941b77a6390aa86efe3e2b0c3a1 | [
"MIT"
] | null | null | null | from django.db import models
from cms.models import CMSPlugin
from polls.models import Poll
class PollPluginModel(CMSPlugin):
poll = models.ForeignKey(Poll, on_delete="models.CASCADE")
def __str__(self):
return self.poll.question
| 22.636364 | 62 | 0.75502 | 33 | 249 | 5.545455 | 0.606061 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164659 | 249 | 10 | 63 | 24.9 | 0.879808 | 0 | 0 | 0 | 0 | 0 | 0.056225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 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 | 1 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.