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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79d9e73ddf25d305b08db2eebdfb0061bfcb275a | 17,230 | py | Python | bookwyrm/migrations/0020_auto_20201208_0213.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 270 | 2020-01-27T06:06:07.000Z | 2020-06-21T00:28:18.000Z | bookwyrm/migrations/0020_auto_20201208_0213.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 158 | 2020-02-10T20:36:54.000Z | 2020-06-26T17:12:54.000Z | bookwyrm/migrations/0020_auto_20201208_0213.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 15 | 2020-02-13T21:53:33.000Z | 2020-06-17T16:52:46.000Z | # Generated by Django 3.0.7 on 2020-12-08 02:13
import bookwyrm.models.fields
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
("bo... | 33.917323 | 88 | 0.52188 | 1,482 | 17,230 | 5.930499 | 0.099865 | 0.108317 | 0.154739 | 0.221072 | 0.889976 | 0.877119 | 0.80669 | 0.772784 | 0.746388 | 0.733644 | 0 | 0.010609 | 0.370865 | 17,230 | 507 | 89 | 33.984221 | 0.800185 | 0.002612 | 0 | 0.806387 | 1 | 0 | 0.087528 | 0.010126 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011976 | 0 | 0.017964 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
8de9009ea37818bbde85735940295b4b4847bd74 | 44 | py | Python | sentenai/view/__init__.py | sentenai/py-sentenai | fec672ae1ac195523067d8f882cfe3419ab4c042 | [
"BSD-3-Clause"
] | 1 | 2018-01-09T18:49:06.000Z | 2018-01-09T18:49:06.000Z | sentenai/view/__init__.py | sentenai/py-sentenai | fec672ae1ac195523067d8f882cfe3419ab4c042 | [
"BSD-3-Clause"
] | 168 | 2017-03-15T20:24:52.000Z | 2022-03-15T14:41:26.000Z | sentenai/view/__init__.py | sentenai/py-sentenai | fec672ae1ac195523067d8f882cfe3419ab4c042 | [
"BSD-3-Clause"
] | 4 | 2017-07-22T04:03:08.000Z | 2017-12-22T00:21:21.000Z | from sentenai.view.views import View, Views
| 22 | 43 | 0.818182 | 7 | 44 | 5.142857 | 0.714286 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 44 | 1 | 44 | 44 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
8df277ae5c151e40e06491452b0099df9d2eba6d | 81 | py | Python | foxcross/constants.py | laactech/foxcross | a55fb791461c97177a977c64d781b98859124bac | [
"BSD-3-Clause"
] | 19 | 2019-05-31T14:34:10.000Z | 2021-02-12T18:10:50.000Z | foxcross/constants.py | laactechnology/foxcross | a55fb791461c97177a977c64d781b98859124bac | [
"BSD-3-Clause"
] | null | null | null | foxcross/constants.py | laactechnology/foxcross | a55fb791461c97177a977c64d781b98859124bac | [
"BSD-3-Clause"
] | null | null | null | SLUGIFY_REGEX = r"([a-z](?=[A-Z])|[A-Z](?=[A-Z][a-z]))"
SLUGIFY_REPLACE = r"\1-"
| 27 | 55 | 0.506173 | 17 | 81 | 2.294118 | 0.411765 | 0.25641 | 0.307692 | 0.410256 | 0.25641 | 0.25641 | 0.25641 | 0.25641 | 0 | 0 | 0 | 0.013333 | 0.074074 | 81 | 2 | 56 | 40.5 | 0.506667 | 0 | 0 | 0 | 0 | 0.5 | 0.481481 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5c266728e2b966366b2568442d2e29dbd45fc1c7 | 12,108 | py | Python | tests/api/test-msg.py | arienchen/pytibrv | 9c198805bc9ac217e9a7f730d3c2dba32bf77336 | [
"BSD-3-Clause"
] | 12 | 2017-03-17T15:02:02.000Z | 2021-11-05T08:48:20.000Z | tests/api/test-msg.py | arienchen/pytibrv | 9c198805bc9ac217e9a7f730d3c2dba32bf77336 | [
"BSD-3-Clause"
] | null | null | null | tests/api/test-msg.py | arienchen/pytibrv | 9c198805bc9ac217e9a7f730d3c2dba32bf77336 | [
"BSD-3-Clause"
] | 6 | 2019-10-04T23:12:25.000Z | 2021-08-02T21:39:41.000Z |
import ctypes
from pytibrv.api import *
from pytibrv.status import *
from pytibrv.msg import *
import unittest
class MsgTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
status = tibrv_Open()
assert TIBRV_OK == status, tibrvStatus_GetText(status)
@classmethod
def tearDownCl... | 37.141104 | 80 | 0.670383 | 1,356 | 12,108 | 5.79646 | 0.117994 | 0.179389 | 0.241221 | 0.301527 | 0.806616 | 0.800636 | 0.795929 | 0.795929 | 0.759288 | 0.733842 | 0 | 0.029215 | 0.22258 | 12,108 | 325 | 81 | 37.255385 | 0.8058 | 0.01594 | 0 | 0.547511 | 0 | 0 | 0.015214 | 0 | 0 | 0 | 0.012608 | 0 | 0.488688 | 1 | 0.040724 | false | 0 | 0.022624 | 0 | 0.067873 | 0.004525 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
6905b55b6a2b883e0f2959cce6f56f198963f7f6 | 75 | py | Python | models/__init__.py | mengjian0502/StructuredCG_RRAM | 75a7d3541e8d392bbbcafdf20af72ab75fe4de78 | [
"MIT"
] | null | null | null | models/__init__.py | mengjian0502/StructuredCG_RRAM | 75a7d3541e8d392bbbcafdf20af72ab75fe4de78 | [
"MIT"
] | null | null | null | models/__init__.py | mengjian0502/StructuredCG_RRAM | 75a7d3541e8d392bbbcafdf20af72ab75fe4de78 | [
"MIT"
] | null | null | null | from .resnet_cifar import *
from .resnet18_cifar import *
from .cg import * | 25 | 29 | 0.773333 | 11 | 75 | 5.090909 | 0.545455 | 0.392857 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.146667 | 75 | 3 | 30 | 25 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
15f93403c6f0763dfabdb790769c6f2d173e4062 | 217 | py | Python | travis-ci/tests/test_travis.py | taniamprince/ci-workshops | d9a137704fb3b905acccae6d12a76bdfc152dc1d | [
"MIT"
] | null | null | null | travis-ci/tests/test_travis.py | taniamprince/ci-workshops | d9a137704fb3b905acccae6d12a76bdfc152dc1d | [
"MIT"
] | null | null | null | travis-ci/tests/test_travis.py | taniamprince/ci-workshops | d9a137704fb3b905acccae6d12a76bdfc152dc1d | [
"MIT"
] | null | null | null | import TravisCIWorkshop
def test_hello_world_works():
assert TravisCIWorkshop.say_hello() == "Hello world!"
def test_goodbye_world_works():
assert TravisCIWorkshop.say_goodbye() == "Goodbye, cruel world!"
| 21.7 | 68 | 0.760369 | 25 | 217 | 6.28 | 0.44 | 0.089172 | 0.203822 | 0.407643 | 0.44586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133641 | 217 | 9 | 69 | 24.111111 | 0.835106 | 0 | 0 | 0 | 0 | 0 | 0.152074 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.4 | true | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
c616bb9ae89cf7a1f4c09924e4f77cf37dd9dc99 | 50,372 | py | Python | pkgs/ops-pkg/src/genie/libs/ops/mcast/iosxr/tests/mcast_output.py | kecorbin/genielibs | 5d3951b8911013691822e73e9c3d0f557ca10f43 | [
"Apache-2.0"
] | null | null | null | pkgs/ops-pkg/src/genie/libs/ops/mcast/iosxr/tests/mcast_output.py | kecorbin/genielibs | 5d3951b8911013691822e73e9c3d0f557ca10f43 | [
"Apache-2.0"
] | null | null | null | pkgs/ops-pkg/src/genie/libs/ops/mcast/iosxr/tests/mcast_output.py | kecorbin/genielibs | 5d3951b8911013691822e73e9c3d0f557ca10f43 | [
"Apache-2.0"
] | null | null | null | '''
Mcast Genie Ops Object Outputs for IOSXR.
'''
class McastOutput(object):
ShowVrfAllDetail = {
"default": {
"description": "not set",
"vrf_mode": "regular",
"address_family": {
"ipv6 unicast": {
"route_target": {
... | 47.745972 | 101 | 0.370523 | 4,684 | 50,372 | 3.943638 | 0.075576 | 0.017432 | 0.054569 | 0.014725 | 0.937419 | 0.901635 | 0.883445 | 0.829418 | 0.811932 | 0.742583 | 0 | 0.166139 | 0.523108 | 50,372 | 1,054 | 102 | 47.791271 | 0.602822 | 0.003137 | 0 | 0.747872 | 0 | 0.038298 | 0.582728 | 0.061705 | 0 | 0 | 0.002949 | 0 | 0.002128 | 1 | 0 | false | 0 | 0.012766 | 0 | 0.034043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c61bb4ae01854263b5b6efbcb2167a9a1e869d17 | 18,042 | py | Python | ChessPieces.py | crockct/Colleens_Chess | 8d5002816ee09b8e485e48b0249c86ea8758c894 | [
"MIT"
] | 1 | 2019-02-07T19:16:39.000Z | 2019-02-07T19:16:39.000Z | ChessPieces.py | crockct/Colleens_Chess | 8d5002816ee09b8e485e48b0249c86ea8758c894 | [
"MIT"
] | null | null | null | ChessPieces.py | crockct/Colleens_Chess | 8d5002816ee09b8e485e48b0249c86ea8758c894 | [
"MIT"
] | null | null | null | from pygame import sprite, image
colNumber = {"a": 0, "b": 1, "c": 2, "d": 3, "e": 4, "f": 5, "g": 6, "h": 7}
#gives the character, as a string, corresponding to the column num
def colStr(num):
num = int(num)
num = num%8 #deals with negative numbers
if num == 0:
return 'a'
elif num == 1:
... | 44.112469 | 115 | 0.533533 | 2,073 | 18,042 | 4.616015 | 0.10275 | 0.052879 | 0.035531 | 0.035113 | 0.84293 | 0.833734 | 0.803428 | 0.797785 | 0.765597 | 0.744487 | 0 | 0.009959 | 0.371079 | 18,042 | 408 | 116 | 44.220588 | 0.833348 | 0.121162 | 0 | 0.711048 | 0 | 0 | 0.149816 | 0.042443 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.002833 | null | null | 0.01983 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c6235607674458d5fd995385f40c5c0e5591fb78 | 13,173 | py | Python | src/test/parser/pattern/test_nodes.py | ajit2688/program-y-chatbot | f0a7eb33be2ec8de630644a6393296ddd2576eee | [
"MIT"
] | null | null | null | src/test/parser/pattern/test_nodes.py | ajit2688/program-y-chatbot | f0a7eb33be2ec8de630644a6393296ddd2576eee | [
"MIT"
] | null | null | null | src/test/parser/pattern/test_nodes.py | ajit2688/program-y-chatbot | f0a7eb33be2ec8de630644a6393296ddd2576eee | [
"MIT"
] | null | null | null | from programy.dialog import Sentence
from programy.parser.pattern.nodes import *
from programy.parser.template.nodes import TemplateNode
from test.parser.pattern.base import PatternTestBaseClass
class PatternNodeTests(PatternTestBaseClass):
def test_init(self):
node = PatternNode()
self.a... | 37.529915 | 111 | 0.665528 | 1,557 | 13,173 | 5.485549 | 0.073218 | 0.124693 | 0.157944 | 0.140148 | 0.805643 | 0.791711 | 0.726964 | 0.709636 | 0.705538 | 0.69102 | 0 | 0.021612 | 0.192135 | 13,173 | 350 | 112 | 37.637143 | 0.780962 | 0 | 0 | 0.601563 | 0 | 0.066406 | 0.104768 | 0.052915 | 0 | 0 | 0 | 0 | 0.644531 | 1 | 0.085938 | false | 0 | 0.015625 | 0 | 0.144531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
c623a7268204473e3f41ed709c00838a54eceace | 5,079 | py | Python | model/main/traditional_rnn.py | chasebk/flnn_code | a561d4c697d1aa545a677f9e7d126ace7bb40068 | [
"Apache-2.0"
] | 36 | 2019-07-28T02:26:28.000Z | 2022-03-29T03:00:56.000Z | model/main/traditional_rnn.py | chasebk/flnn_code | a561d4c697d1aa545a677f9e7d126ace7bb40068 | [
"Apache-2.0"
] | 1 | 2021-09-14T13:21:54.000Z | 2021-09-14T13:21:54.000Z | model/main/traditional_rnn.py | chasebk/flnn_code | a561d4c697d1aa545a677f9e7d126ace7bb40068 | [
"Apache-2.0"
] | 16 | 2020-02-28T06:55:42.000Z | 2022-03-31T01:58:51.000Z | from keras import backend
from keras.models import Sequential
from keras.layers import Dense, LSTM, Dropout
from model.root.traditional.root_rnn import RootRnn
class Rnn1HL(RootRnn):
"""
Recurrent Neural Network (1 Hidden Layer)
"""
def __init__(self, root_base_paras=None, root_rnn_paras=None):
... | 56.433333 | 151 | 0.707816 | 697 | 5,079 | 4.906743 | 0.123386 | 0.065789 | 0.045614 | 0.068421 | 0.931287 | 0.931287 | 0.931287 | 0.910526 | 0.890058 | 0.890058 | 0 | 0.011516 | 0.162237 | 5,079 | 89 | 152 | 57.067416 | 0.792244 | 0.055917 | 0 | 0.704918 | 0 | 0 | 0.035177 | 0.025853 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131148 | false | 0 | 0.065574 | 0 | 0.262295 | 0.065574 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d6b1df426e88dd3ea698a9496e98c1ae3873498f | 123 | py | Python | python/testData/typesFromAttributes/resultsOrdering/module.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/typesFromAttributes/resultsOrdering/module.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/typesFromAttributes/resultsOrdering/module.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class OtherClassA(object):
def sort(self):
pass
class OtherClassB(object):
def sort(self):
pass | 15.375 | 26 | 0.601626 | 14 | 123 | 5.285714 | 0.571429 | 0.243243 | 0.351351 | 0.459459 | 0.567568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.300813 | 123 | 8 | 27 | 15.375 | 0.860465 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 8 |
d6d47184d73867e409b4d3918be53824517c943d | 27 | py | Python | source/const.py | xoar/zuma-fpga | 76552d44dd97cfa213e642bea81142a9bdeaef20 | [
"BSD-2-Clause"
] | 20 | 2015-07-04T23:31:25.000Z | 2022-01-13T06:36:56.000Z | source/const.py | xoar/zuma-fpga | 76552d44dd97cfa213e642bea81142a9bdeaef20 | [
"BSD-2-Clause"
] | 2 | 2016-10-04T19:15:25.000Z | 2018-09-24T13:45:58.000Z | source/const.py | adbrant/zuma-fpga | 7205895cf875a242b0d04dea763bca3d800c8844 | [
"BSD-2-Clause"
] | 9 | 2015-06-16T19:32:07.000Z | 2020-05-03T20:24:22.000Z | N = 0
S = 1
E = 2
W = 3 | 6.75 | 7 | 0.296296 | 8 | 27 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0.555556 | 27 | 4 | 8 | 6.75 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
d6e6cc5b8561460c84e16cbfe8e62a94e209760f | 403 | py | Python | Symbol Patterns/symbolpattern114.py | Daksh777/Python-PatternHouse | ab801631c2e1f5ed3cc12a26c959d41a5e51273d | [
"MIT"
] | 8 | 2021-03-20T11:26:35.000Z | 2022-01-05T02:39:15.000Z | Symbol Patterns/symbolpattern114.py | Daksh777/Python-PatternHouse | ab801631c2e1f5ed3cc12a26c959d41a5e51273d | [
"MIT"
] | 851 | 2021-04-02T09:08:15.000Z | 2022-01-12T11:26:57.000Z | Symbol Patterns/symbolpattern114.py | Daksh777/Python-PatternHouse | ab801631c2e1f5ed3cc12a26c959d41a5e51273d | [
"MIT"
] | 15 | 2021-04-13T06:10:17.000Z | 2022-01-08T05:07:21.000Z | n = 5
for i in range (n):
for j in range (2*n,i,-1):
print(' ', end='')
for k in range (i+1):
print('* ', end='')
print()
for i in range (n):
for j in range (n,i,-1):
print(' ', end='')
for k in range (i+1):
print('* ', end='')
for l in range (i+1, n):
pri... | 22.388889 | 30 | 0.411911 | 66 | 403 | 2.515152 | 0.212121 | 0.337349 | 0.210843 | 0.301205 | 0.843373 | 0.825301 | 0.825301 | 0.662651 | 0.662651 | 0.385542 | 0 | 0.031008 | 0.359801 | 403 | 17 | 31 | 23.705882 | 0.612403 | 0 | 0 | 0.705882 | 0 | 0 | 0.024814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.470588 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
d6f12088cfe81912e6075142349965752bc15f0f | 10,651 | py | Python | misc/tables6.py | alreich/abstract_algebra | 9aca57cbc002677aeb117f542a961b7cbdfd4c29 | [
"MIT"
] | 1 | 2021-12-04T11:23:21.000Z | 2021-12-04T11:23:21.000Z | misc/tables6.py | alreich/abstract_algebra | 9aca57cbc002677aeb117f542a961b7cbdfd4c29 | [
"MIT"
] | null | null | null | misc/tables6.py | alreich/abstract_algebra | 9aca57cbc002677aeb117f542a961b7cbdfd4c29 | [
"MIT"
] | null | null | null | tables6 = \
[([0, 1, 2, 3, 4, 5],
(1, 0, 3, 2, 5, 4),
(2, 3, 4, 5, 0, 1),
(3, 2, 5, 4, 1, 0),
(4, 5, 0, 1, 2, 3),
(5, 4, 1, 0, 3, 2)),
([0, 1, 2, 3, 4, 5],
(1, 0, 3, 2, 5, 4),
(2, 3, 4, 5, 1, 0),
(3, 2, 5, 4, 0, 1),
(4, 5, 1, 0, 3, 2),
(5, 4, 0, 1, 2, 3)),
([0, 1, 2, 3, 4, 5],
(1, 0, 3, 2, 5, 4)... | 22.143451 | 22 | 0.271054 | 2,881 | 10,651 | 1.002083 | 0.00243 | 0.110842 | 0.103914 | 0.119155 | 0.963976 | 0.906824 | 0.892622 | 0.882923 | 0.751992 | 0.654312 | 0 | 0.418142 | 0.353112 | 10,651 | 481 | 23 | 22.143451 | 0.000871 | 0 | 0 | 0.744283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
ba42e8af4dfd2e7e71e4159ad4ae88d49cdc1f19 | 4,667 | py | Python | survae/transforms/bijections/actnorm.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 262 | 2020-07-05T20:57:44.000Z | 2022-03-28T02:24:43.000Z | survae/transforms/bijections/actnorm.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 17 | 2020-08-15T05:43:34.000Z | 2022-01-31T12:24:21.000Z | survae/transforms/bijections/actnorm.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 35 | 2020-08-24T06:55:37.000Z | 2022-02-11T05:17:58.000Z | import torch
import torch.nn as nn
from survae.transforms.bijections import Bijection
class _ActNormBijection(Bijection):
'''
Base class for activation normalization [1].
References:
[1] Glow: Generative Flow with Invertible 1×1 Convolutions,
Kingma & Dhariwal, 2018, https://arxiv.org... | 35.356061 | 99 | 0.650739 | 647 | 4,667 | 4.561051 | 0.170015 | 0.048797 | 0.040664 | 0.042697 | 0.728905 | 0.715351 | 0.715351 | 0.714673 | 0.702135 | 0.692647 | 0 | 0.029067 | 0.23334 | 4,667 | 131 | 100 | 35.625954 | 0.794578 | 0.336405 | 0 | 0.3 | 0 | 0 | 0.018251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.05 | 0.016667 | 0.516667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
79ef4928fc936591bcfb30eaf80360990a0196fb | 2,472 | py | Python | disputatio/routines/vanes/eval_slope.py | nicholasmalaya/paleologos | 11959056caa80d3c910759b714a0f8e42f986f0f | [
"MIT"
] | 1 | 2021-11-04T17:49:42.000Z | 2021-11-04T17:49:42.000Z | disputatio/routines/vanes/eval_slope.py | nicholasmalaya/paleologos | 11959056caa80d3c910759b714a0f8e42f986f0f | [
"MIT"
] | null | null | null | disputatio/routines/vanes/eval_slope.py | nicholasmalaya/paleologos | 11959056caa80d3c910759b714a0f8e42f986f0f | [
"MIT"
] | 2 | 2019-01-04T16:08:18.000Z | 2019-12-16T19:34:24.000Z | import numpy as np
def slope_func(x,y):
tmp = 0.0
#
# code block
#
tmp += 25.726409509885706 * x**0 * y**0
print tmp
tmp += -7.959002774480191 * x**0 * y**1
print tmp
tmp += -15.508167202030295 * x**0 * y**2
print tmp
tmp += 2.965402639113657 * x**0 * y**3
print tmp
tmp += 2.9... | 22.888889 | 44 | 0.533981 | 393 | 2,472 | 3.35369 | 0.19084 | 0.218513 | 0.292109 | 0.191199 | 0.362671 | 0.24431 | 0 | 0 | 0 | 0 | 0 | 0.382794 | 0.299353 | 2,472 | 107 | 45 | 23.102804 | 0.378176 | 0.01335 | 0 | 0.404494 | 0 | 0 | 0.011116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011236 | null | null | 0.460674 | 0 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
0300f144fa364f106cb253231f92cba44477f2d7 | 89 | py | Python | Task2/my_packages/Transformers/StringTransformer.py | AbdelrahmanKandil/assignment_6 | a2f6311c136da6e1a53ab30c3a2aa9f3d3e83436 | [
"MIT"
] | null | null | null | Task2/my_packages/Transformers/StringTransformer.py | AbdelrahmanKandil/assignment_6 | a2f6311c136da6e1a53ab30c3a2aa9f3d3e83436 | [
"MIT"
] | null | null | null | Task2/my_packages/Transformers/StringTransformer.py | AbdelrahmanKandil/assignment_6 | a2f6311c136da6e1a53ab30c3a2aa9f3d3e83436 | [
"MIT"
] | null | null | null | def reverse(txt):
return txt[::-1]
def capitalize(txt):
return txt.capitalize() | 14.833333 | 27 | 0.651685 | 12 | 89 | 4.833333 | 0.5 | 0.310345 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.191011 | 89 | 6 | 27 | 14.833333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
cefb97024d5ba37345e06f64fb7538b1dc50dc6a | 1,702 | py | Python | tests/test_string.py | CastixGitHub/i3-workspace-names-daemon | 4a7d2d68629c37b86f6c2adcc1c35a54dc0c60d8 | [
"MIT"
] | null | null | null | tests/test_string.py | CastixGitHub/i3-workspace-names-daemon | 4a7d2d68629c37b86f6c2adcc1c35a54dc0c60d8 | [
"MIT"
] | 1 | 2020-02-23T11:15:17.000Z | 2020-02-23T11:15:17.000Z | tests/test_string.py | CastixGitHub/i3-workspace-names-daemon | 4a7d2d68629c37b86f6c2adcc1c35a54dc0c60d8 | [
"MIT"
] | null | null | null | import unittest
from i3_workspace_names_daemon import truncate, compress
class TestString(unittest.TestCase):
def test_compress_dash(self):
original = "i3-workspace-names-daemon"
expected = "i3-wor-nam-dae"
actual = compress(original)
self.assertEqual(expected, actual)
def te... | 31.518519 | 56 | 0.657462 | 192 | 1,702 | 5.640625 | 0.171875 | 0.081256 | 0.11819 | 0.162512 | 0.842105 | 0.842105 | 0.842105 | 0.842105 | 0.842105 | 0.842105 | 0 | 0.011619 | 0.241481 | 1,702 | 53 | 57 | 32.113208 | 0.827266 | 0 | 0 | 0.465116 | 0 | 0 | 0.17215 | 0.105758 | 0 | 0 | 0 | 0 | 0.186047 | 1 | 0.186047 | false | 0 | 0.046512 | 0 | 0.255814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
cefe76a7442130e715f26388cb7f6d6efc6402df | 57 | py | Python | karlovic/forms/__init__.py | Aiwizo/karlovic | 94f8f2a5adc436fb662bfe9b8ad5211be0833baa | [
"Apache-2.0"
] | null | null | null | karlovic/forms/__init__.py | Aiwizo/karlovic | 94f8f2a5adc436fb662bfe9b8ad5211be0833baa | [
"Apache-2.0"
] | 3 | 2020-10-28T12:43:18.000Z | 2020-12-15T15:38:16.000Z | karlovic/forms/__init__.py | Aiwizo/karlovic | 94f8f2a5adc436fb662bfe9b8ad5211be0833baa | [
"Apache-2.0"
] | null | null | null | from karlovic.forms.use_image_form import use_image_form
| 28.5 | 56 | 0.894737 | 10 | 57 | 4.7 | 0.7 | 0.340426 | 0.510638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 57 | 1 | 57 | 57 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
06359ebcf7c6fe0e1db0cedcbabcaa8ec0f47912 | 189 | py | Python | tests/test_imp.py | assasinitachi123/extra-boolean | 632bf238bd44df0a31be8fb970ed65f812dad166 | [
"MIT"
] | null | null | null | tests/test_imp.py | assasinitachi123/extra-boolean | 632bf238bd44df0a31be8fb970ed65f812dad166 | [
"MIT"
] | 2 | 2021-04-01T12:07:06.000Z | 2021-04-01T12:30:17.000Z | tests/test_imp.py | assasinitachi123/extra-boolean | 632bf238bd44df0a31be8fb970ed65f812dad166 | [
"MIT"
] | 3 | 2021-04-01T11:29:06.000Z | 2021-04-01T12:07:55.000Z | from extra_boolean import imp
def test_imp():
assert imp(True, True) == True
assert imp(False, True) == True
assert imp(False, False) == True
assert imp(True, False) == False
| 21 | 35 | 0.666667 | 28 | 189 | 4.428571 | 0.357143 | 0.290323 | 0.314516 | 0.274194 | 0.354839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21164 | 189 | 8 | 36 | 23.625 | 0.832215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
069267166d8f8b1bd2db17d2c743a1f0c06580bf | 7,308 | py | Python | cifar10_models/Tiled_layers.py | rayjyh/PyTorch_CIFAR10_rram_compenstion | 61a53c85a74abc965a5bea3e4b102e9a7ad8f03a | [
"MIT"
] | null | null | null | cifar10_models/Tiled_layers.py | rayjyh/PyTorch_CIFAR10_rram_compenstion | 61a53c85a74abc965a5bea3e4b102e9a7ad8f03a | [
"MIT"
] | null | null | null | cifar10_models/Tiled_layers.py | rayjyh/PyTorch_CIFAR10_rram_compenstion | 61a53c85a74abc965a5bea3e4b102e9a7ad8f03a | [
"MIT"
] | null | null | null | import torch
from torch import Tensor
import torch.nn as nn
from torch.nn.parameter import Parameter
import torch.nn.init as init
import torch.nn.functional as F
import math
__all__ = [
"TiledConv2D",
"TiledLinear"
]
class TiledConv2D(nn.Module):
"""
2D convolution layer with weight tiling for ... | 37.670103 | 110 | 0.6211 | 991 | 7,308 | 4.355197 | 0.152371 | 0.035681 | 0.037071 | 0.048193 | 0.8443 | 0.797961 | 0.779194 | 0.745829 | 0.7076 | 0.7076 | 0 | 0.011407 | 0.280241 | 7,308 | 194 | 111 | 37.670103 | 0.809125 | 0.156678 | 0 | 0.657534 | 0 | 0 | 0.009217 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.068493 | false | 0 | 0.047945 | 0 | 0.184932 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2345ec698176688d7d131a43349b4e0bcd2a7834 | 2,282 | py | Python | scripts/res.py | KonstantinosChatziantoniou/GraphTrianglesCounting | 1a35f8ac8756a72dc7919def6069a687743d25d7 | [
"MIT"
] | 1 | 2020-09-19T20:06:52.000Z | 2020-09-19T20:06:52.000Z | scripts/res.py | KonstantinosChatziantoniou/GraphTrianglesCounting | 1a35f8ac8756a72dc7919def6069a687743d25d7 | [
"MIT"
] | null | null | null | scripts/res.py | KonstantinosChatziantoniou/GraphTrianglesCounting | 1a35f8ac8756a72dc7919def6069a687743d25d7 | [
"MIT"
] | null | null | null |
import pandas
import matplotlib.pyplot as plt
datasets = ['auto.mtx', 'delaunay_n22.mtx', 'great-britain_osm.mtx']
paths = ['cuda', 'serial_cilk']
stats = {}
stats['cuda'] = []
stats['serial'] = []
stats['cilk'] = []
stats['matlab'] = [3.3, 4.43 ,1.6]
stats['cuda960'] = [0.07 + 0.08, 0.1 + 0.39 ,0.1 + 0.47]
# rea... | 24.276596 | 164 | 0.54908 | 351 | 2,282 | 3.492877 | 0.182336 | 0.078303 | 0.009788 | 0.045677 | 0.903752 | 0.903752 | 0.903752 | 0.903752 | 0.903752 | 0.903752 | 0 | 0.054951 | 0.234443 | 2,282 | 93 | 165 | 24.537634 | 0.646823 | 0.022787 | 0 | 0.911765 | 0 | 0 | 0.147929 | 0.009558 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2357036edd24e8c52240af2594dd868a214a3847 | 16,788 | py | Python | src/train.py | zihangJiang/Adaptive-Attention | 45eeb8fd629a81eebb3c8a8b869551f4f8738325 | [
"Apache-2.0"
] | 22 | 2021-04-06T11:54:50.000Z | 2022-03-18T03:27:31.000Z | src/train.py | zihangJiang/Adaptive-Attention | 45eeb8fd629a81eebb3c8a8b869551f4f8738325 | [
"Apache-2.0"
] | 1 | 2021-06-01T15:26:44.000Z | 2021-06-01T17:21:02.000Z | src/train.py | zihangJiang/Adaptive-Attention | 45eeb8fd629a81eebb3c8a8b869551f4f8738325 | [
"Apache-2.0"
] | 1 | 2021-06-29T06:07:16.000Z | 2021-06-29T06:07:16.000Z | # coding=utf-8
from cfr_loss import cfr_loss as loss_fn, ensembled_loss as en_loss_fn, proto_loss as p_loss, relation_loss as r_loss
from initializer import init_crfnet,init_protonet, init_log_file, init_seed, init_dataloader, init_optim, init_lr_scheduler,init_relationnet
from parser import get_parser
from tqdm imp... | 42.287154 | 186 | 0.634739 | 2,299 | 16,788 | 4.357112 | 0.077425 | 0.028951 | 0.025157 | 0.026555 | 0.865129 | 0.848158 | 0.840571 | 0.826695 | 0.825696 | 0.800639 | 0 | 0.003033 | 0.253812 | 16,788 | 397 | 187 | 42.287154 | 0.796599 | 0.02609 | 0 | 0.760518 | 0 | 0.003236 | 0.066011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016181 | false | 0 | 0.022654 | 0 | 0.048544 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
23773c6d89464f85244937b4f17f1dca4236e043 | 8,228 | py | Python | amfe/parametric/morphing/implementer/ffdimplementer.py | ma-kast/AMfe | 99686cc313fb8904a093fb42e6cf0b38f8cfd791 | [
"BSD-3-Clause"
] | null | null | null | amfe/parametric/morphing/implementer/ffdimplementer.py | ma-kast/AMfe | 99686cc313fb8904a093fb42e6cf0b38f8cfd791 | [
"BSD-3-Clause"
] | null | null | null | amfe/parametric/morphing/implementer/ffdimplementer.py | ma-kast/AMfe | 99686cc313fb8904a093fb42e6cf0b38f8cfd791 | [
"BSD-3-Clause"
] | null | null | null | #
# Copyright (c) 2018 TECHNICAL UNIVERSITY OF MUNICH, DEPARTMENT OF MECHANICAL ENGINEERING, CHAIR OF APPLIED MECHANICS,
# BOLTZMANNSTRASSE 15, 85748 GARCHING/MUNICH, GERMANY, RIXEN@TUM.DE.
#
# Distributed under 3-Clause BSD license. See LICENSE file for more information.
#
import numpy as np
from amfe.linalg.tools i... | 42.194872 | 118 | 0.610233 | 1,154 | 8,228 | 3.97227 | 0.12825 | 0.146161 | 0.02356 | 0.089005 | 0.80781 | 0.80781 | 0.801483 | 0.766798 | 0.737784 | 0.737784 | 0 | 0.021449 | 0.280384 | 8,228 | 194 | 119 | 42.412371 | 0.752744 | 0.253038 | 0 | 0.663793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.068966 | false | 0 | 0.025862 | 0.017241 | 0.146552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cc6d2b10850c4ba76866389abc5bae8103a3803f | 24,712 | py | Python | tests/entanglement_management/test_purification.py | aliro-technologies/SeQUeNCe | 7bd22af52e04821b407b1712d853920f4f8dd609 | [
"BSD-3-Clause"
] | null | null | null | tests/entanglement_management/test_purification.py | aliro-technologies/SeQUeNCe | 7bd22af52e04821b407b1712d853920f4f8dd609 | [
"BSD-3-Clause"
] | null | null | null | tests/entanglement_management/test_purification.py | aliro-technologies/SeQUeNCe | 7bd22af52e04821b407b1712d853920f4f8dd609 | [
"BSD-3-Clause"
] | null | null | null | import numpy
import pytest
from sequence.components.memory import Memory
from sequence.components.optical_channel import ClassicalChannel
from sequence.kernel.timeline import Timeline
from sequence.entanglement_management.purification import *
from sequence.topology.node import Node
numpy.random.seed(0)
class FakeRe... | 33.439783 | 116 | 0.573041 | 3,888 | 24,712 | 3.48714 | 0.043724 | 0.037764 | 0.042484 | 0.042484 | 0.865246 | 0.85728 | 0.853592 | 0.82018 | 0.806977 | 0.800634 | 0 | 0.100702 | 0.27347 | 24,712 | 738 | 117 | 33.485095 | 0.65445 | 0.123665 | 0 | 0.728736 | 0 | 0 | 0.04689 | 0 | 0 | 0 | 0 | 0 | 0.268966 | 1 | 0.05977 | false | 0.004598 | 0.016092 | 0 | 0.089655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cc81df728f1513bcd9cb85d00a52d823adfe75de | 4,192 | py | Python | tests/test_environment.py | agajews/hltex | 6d1529a7e134e4d852e7815b89e1893ab482f472 | [
"MIT"
] | 6 | 2019-01-07T21:21:55.000Z | 2019-08-16T09:53:14.000Z | tests/test_environment.py | agajews/hltex | 6d1529a7e134e4d852e7815b89e1893ab482f472 | [
"MIT"
] | null | null | null | tests/test_environment.py | agajews/hltex | 6d1529a7e134e4d852e7815b89e1893ab482f472 | [
"MIT"
] | 1 | 2019-03-03T11:58:01.000Z | 2019-03-03T11:58:01.000Z | from hltex.control import Environment
from hltex.state import State
from hltex.translator import parse_custom_environment
def test_parse():
source = ": \\ Hey"
state = State(source)
def translate_fn(_state, body):
return "\\begin{itemize}\\item %s\\end{itemize}" % body
res = parse_custom_env... | 29.111111 | 83 | 0.619752 | 554 | 4,192 | 4.561372 | 0.075812 | 0.08706 | 0.126632 | 0.075188 | 0.926791 | 0.926791 | 0.91571 | 0.91571 | 0.91571 | 0.886031 | 0 | 0.006601 | 0.204914 | 4,192 | 143 | 84 | 29.314685 | 0.751575 | 0 | 0 | 0.728155 | 0 | 0.019417 | 0.260019 | 0.125 | 0 | 0 | 0 | 0 | 0.194175 | 1 | 0.194175 | false | 0 | 0.029126 | 0.097087 | 0.320388 | 0.097087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cc9e05cb9a5d0d520bd9c921f8a1f8b0b0de567e | 8,155 | py | Python | src/bpp/migrations/0084_strona_tom_nr_zeszytu.py | iplweb/django-bpp | 85f183a99d8d5027ae4772efac1e4a9f21675849 | [
"BSD-3-Clause"
] | 1 | 2017-04-27T19:50:02.000Z | 2017-04-27T19:50:02.000Z | src/bpp/migrations/0084_strona_tom_nr_zeszytu.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | 41 | 2019-11-07T00:07:02.000Z | 2022-02-27T22:09:39.000Z | src/bpp/migrations/0084_strona_tom_nr_zeszytu.py | iplweb/bpp | f027415cc3faf1ca79082bf7bacd4be35b1a6fdf | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-07-17 07:23
from __future__ import unicode_literals
from django.db import migrations, models
from bpp.models.abstract import wez_zakres_stron, parse_informacje
def przerzuc_dane(apps, schema_editor):
for model in ['Wydawnictwo_Ciagle', 'Wydawnictwo_Zw... | 72.8125 | 549 | 0.638504 | 935 | 8,155 | 5.490909 | 0.149733 | 0.037398 | 0.049279 | 0.05785 | 0.837359 | 0.830541 | 0.822945 | 0.822945 | 0.822945 | 0.822945 | 0 | 0.007335 | 0.281177 | 8,155 | 111 | 550 | 73.468468 | 0.868475 | 0.008338 | 0 | 0.589474 | 1 | 0.231579 | 0.552078 | 0.003093 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010526 | false | 0 | 0.084211 | 0 | 0.126316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ccd48338b046785c59739014a2d212481f526c76 | 43,321 | py | Python | polynomials_on_simplices/polynomial/polynomials_unit_simplex_lagrange_basis_cache.py | FAndersson/polynomials_on_simplices | f015a4772c817bfa99b0d6b726667a38a174b064 | [
"MIT"
] | 1 | 2021-03-17T11:41:21.000Z | 2021-03-17T11:41:21.000Z | polynomials_on_simplices/polynomial/polynomials_unit_simplex_lagrange_basis_cache.py | FAndersson/polynomials_on_simplices | f015a4772c817bfa99b0d6b726667a38a174b064 | [
"MIT"
] | null | null | null | polynomials_on_simplices/polynomial/polynomials_unit_simplex_lagrange_basis_cache.py | FAndersson/polynomials_on_simplices | f015a4772c817bfa99b0d6b726667a38a174b064 | [
"MIT"
] | null | null | null | """Cached evaluation of coefficients for Lagrange basis polynomials on the unit simplex.
"""
lagrange_basis_coefficients_cache = [
# n = 1
[
# r = 1
{
(0,): [1, -1],
(1,): [0, 1],
},
# r = 2
{
(0,): [1, -3, 2],
(1,): [0, 4... | 81.277674 | 120 | 0.274855 | 9,875 | 43,321 | 1.205468 | 0.004557 | 1.078293 | 1.438004 | 1.732191 | 0.985467 | 0.981939 | 0.974882 | 0.96707 | 0.953965 | 0.941616 | 0 | 0.499068 | 0.455091 | 43,321 | 532 | 121 | 81.430451 | 0.005211 | 0.004755 | 0 | 0.147638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 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 | 12 |
aebbeaa149a6075e6b2b08f918171bd6a478ac68 | 1,377 | py | Python | Sets.py | krishnakesari/Python-Fund | 81199325630c41b288f32ecdde6a90919edd9f4b | [
"MIT"
] | null | null | null | Sets.py | krishnakesari/Python-Fund | 81199325630c41b288f32ecdde6a90919edd9f4b | [
"MIT"
] | null | null | null | Sets.py | krishnakesari/Python-Fund | 81199325630c41b288f32ecdde6a90919edd9f4b | [
"MIT"
] | null | null | null |
def main():
a = set("I am fine")
b = set("I am ok")
print_set(sorted(a))
print_set(sorted(b))
def print_set(o):
print('{', end = ' ')
for x in o: print(x, end = ' ')
print('}')
if __name__ == '__main__': main()
# Members in set a but not b
def main():
a = set("I am fine")
b = s... | 18.863014 | 60 | 0.526507 | 239 | 1,377 | 2.820084 | 0.108787 | 0.130564 | 0.089021 | 0.081602 | 0.893175 | 0.867953 | 0.841246 | 0.841246 | 0.841246 | 0.796736 | 0 | 0 | 0.293391 | 1,377 | 72 | 61 | 19.125 | 0.692703 | 0.104575 | 0 | 0.76087 | 0 | 0 | 0.213235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0 | 0 | 0.217391 | 0.565217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 9 |
aecba7a8fcc8f2ab59bc0965d725ff03f75b15c1 | 5,447 | py | Python | lookahead/runners/portfolio_runners.py | ericlee0803/lookahead_release | 373295f11be81d82b1c69eeadeec32ae96f26b1f | [
"MIT"
] | 3 | 2020-06-17T20:25:12.000Z | 2020-11-24T17:21:59.000Z | lookahead/runners/portfolio_runners.py | ericlee0803/lookahead_release | 373295f11be81d82b1c69eeadeec32ae96f26b1f | [
"MIT"
] | null | null | null | lookahead/runners/portfolio_runners.py | ericlee0803/lookahead_release | 373295f11be81d82b1c69eeadeec32ae96f26b1f | [
"MIT"
] | null | null | null | import numpy as np
from lookahead.runners.bayesian_optimization import BayesianOptimization
from lookahead.acquisitions.rollout_portfolio import RolloutPortfolio, RolloutPortfolioEI
from lookahead.model.gaussian_process import GaussianProcessSimple as GaussianProcess
import os
import csv
class PortfolioRunner(Bayesian... | 38.359155 | 91 | 0.651001 | 651 | 5,447 | 5.219662 | 0.185868 | 0.070041 | 0.067098 | 0.038846 | 0.901707 | 0.901707 | 0.901707 | 0.901707 | 0.874632 | 0.84638 | 0 | 0.002466 | 0.255554 | 5,447 | 141 | 92 | 38.631206 | 0.835512 | 0.11052 | 0 | 0.869565 | 0 | 0 | 0.023317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.065217 | 0 | 0.195652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9dc71914ec02b2c23d3ca4aa86a26a4e1fe02e9e | 22,984 | py | Python | web/transiq/restapi/serializers/file_upload.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | web/transiq/restapi/serializers/file_upload.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | 14 | 2020-06-05T23:06:45.000Z | 2022-03-12T00:00:18.000Z | web/transiq/restapi/serializers/file_upload.py | manibhushan05/transiq | 763fafb271ce07d13ac8ce575f2fee653cf39343 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from django.contrib.auth.models import User
from rest_framework import serializers, ISO_8601
from rest_framework.validators import UniqueValidator, UniqueTogetherValidator
from api import s3util
from api.models import S3Upload
from api.utils import get_ext
from driver.models import Drive... | 50.514286 | 119 | 0.730421 | 2,485 | 22,984 | 6.601207 | 0.078068 | 0.044379 | 0.02414 | 0.032187 | 0.824738 | 0.80139 | 0.763716 | 0.750061 | 0.722812 | 0.698183 | 0 | 0.0068 | 0.16816 | 22,984 | 454 | 120 | 50.625551 | 0.851195 | 0.025191 | 0 | 0.678873 | 0 | 0 | 0.044119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129577 | false | 0.011268 | 0.053521 | 0 | 0.738028 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 7 |
9dd959fb807f1a582c1d36953f419fa877c902fa | 6,666 | py | Python | yolo3/models/yolo3_peleenet.py | holajoa/keras-YOLOv3-model-set | c15b8a2f48371c063f6482b25593dc70d5956323 | [
"MIT"
] | 601 | 2019-08-24T10:14:52.000Z | 2022-03-29T15:05:33.000Z | yolo3/models/yolo3_peleenet.py | holajoa/keras-YOLOv3-model-set | c15b8a2f48371c063f6482b25593dc70d5956323 | [
"MIT"
] | 220 | 2019-10-04T18:57:59.000Z | 2022-03-31T15:30:37.000Z | yolo3/models/yolo3_peleenet.py | holajoa/keras-YOLOv3-model-set | c15b8a2f48371c063f6482b25593dc70d5956323 | [
"MIT"
] | 218 | 2019-10-31T03:32:11.000Z | 2022-03-25T14:44:19.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""YOLO_v3 PeleeNet Model Defined in Keras."""
from tensorflow.keras.layers import UpSampling2D, Concatenate
from tensorflow.keras.models import Model
from common.backbones.peleenet import PeleeNet
from yolo3.models.layers import yolo3_predictions, yolo3lite_pred... | 38.091429 | 135 | 0.672667 | 1,083 | 6,666 | 3.975069 | 0.091413 | 0.069686 | 0.036237 | 0.055749 | 0.904297 | 0.900116 | 0.900116 | 0.900116 | 0.900116 | 0.894774 | 0 | 0.128355 | 0.228623 | 6,666 | 174 | 136 | 38.310345 | 0.708868 | 0.356286 | 0 | 0.746269 | 0 | 0 | 0.050658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089552 | false | 0 | 0.074627 | 0 | 0.253731 | 0.089552 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9de66e26473b782ec2833d902fbb63de4b05d9dd | 7,325 | py | Python | baseline_classifiers.py | HKUST-KnowComp/multilingual_hate_speech | 8c4c2268ed5f93a801ecd0aef31a12dd9d07d332 | [
"MIT"
] | 51 | 2019-08-30T20:19:05.000Z | 2022-03-21T13:28:49.000Z | baseline_classifiers.py | HKUST-KnowComp/multilingual_hate_speech | 8c4c2268ed5f93a801ecd0aef31a12dd9d07d332 | [
"MIT"
] | 1 | 2020-08-12T04:00:49.000Z | 2020-08-21T03:16:39.000Z | baseline_classifiers.py | HKUST-KnowComp/multilingual_hate_speech | 8c4c2268ed5f93a801ecd0aef31a12dd9d07d332 | [
"MIT"
] | 6 | 2019-12-05T07:29:40.000Z | 2021-09-02T02:52:14.000Z | import re
from collections import Counter
import os
import matplotlib
import numpy as np
import pandas as pd
from pandas import Series
from sklearn.pipeline import Pipeline
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.te... | 46.360759 | 112 | 0.772833 | 1,038 | 7,325 | 5.139692 | 0.11079 | 0.026992 | 0.020244 | 0.042737 | 0.849672 | 0.849672 | 0.816307 | 0.792315 | 0.774321 | 0.774321 | 0 | 0.003122 | 0.125324 | 7,325 | 157 | 113 | 46.656051 | 0.829561 | 0.057338 | 0 | 0.705036 | 0 | 0 | 0.064956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043165 | false | 0 | 0.172662 | 0 | 0.244604 | 0.093525 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
06135d1b2cd96b993aeb0fcb7c4605bf49a40f95 | 256 | py | Python | tests/tests_some_module/test_42.py | jerabaul29/example_python_package | 4c9a47709e0317eaa00e5d78815da9568cbe51d0 | [
"MIT"
] | null | null | null | tests/tests_some_module/test_42.py | jerabaul29/example_python_package | 4c9a47709e0317eaa00e5d78815da9568cbe51d0 | [
"MIT"
] | 2 | 2021-05-05T20:51:44.000Z | 2021-05-09T20:11:07.000Z | tests/tests_some_module/test_42.py | jerabaul29/example_python_package | 4c9a47709e0317eaa00e5d78815da9568cbe51d0 | [
"MIT"
] | 1 | 2021-02-01T08:37:28.000Z | 2021-02-01T08:37:28.000Z | from example_package.some_module import some_module_42
def test_42_passing():
"""Example of a passing test."""
assert(some_module_42() == 42)
# def test_42_failing():
# """Example of a failing test."""
# assert(some_module_42() == 43)
| 19.692308 | 54 | 0.671875 | 37 | 256 | 4.324324 | 0.405405 | 0.25 | 0.225 | 0.1375 | 0.275 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 0.1875 | 256 | 12 | 55 | 21.333333 | 0.701923 | 0.476563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
ae9c5a78c5d211e13bf575a21b751f000ad6ebbd | 280,426 | py | Python | genslice/genslice.py | Chenguang-Zhu/icsme20-artifact | 13259683d712b499810774b3ed300dcab0dce989 | [
"Apache-2.0"
] | null | null | null | genslice/genslice.py | Chenguang-Zhu/icsme20-artifact | 13259683d712b499810774b3ed300dcab0dce989 | [
"Apache-2.0"
] | null | null | null | genslice/genslice.py | Chenguang-Zhu/icsme20-artifact | 13259683d712b499810774b3ed300dcab0dce989 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os
import sys
import re
import time
import json
import argparse
import shutil
import collections
import subprocess as sub
from goto import with_goto
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) # Dir of this script
DOWNLOADS_DIR = SCRIPT_DIR + '/../_downloads'
CONFIGS_DIR = ... | 50.129782 | 111 | 0.620852 | 31,083 | 280,426 | 5.360519 | 0.019303 | 0.033369 | 0.016769 | 0.021342 | 0.935884 | 0.921745 | 0.901327 | 0.886701 | 0.875646 | 0.858553 | 0 | 0.00518 | 0.251703 | 280,426 | 5,593 | 112 | 50.138745 | 0.788851 | 0.160909 | 0 | 0.809808 | 0 | 0 | 0.125337 | 0.049467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017009 | false | 0 | 0.002209 | 0 | 0.030263 | 0.020323 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
887ed964d1267da86a27264d50e60b67f0a3a061 | 131 | py | Python | lib/galaxy/webapps/reports/__init__.py | blankenberg/galaxy-data-resource | ca32a1aafd64948f489a4e5cf88096f32391b1d9 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/webapps/reports/__init__.py | blankenberg/galaxy-data-resource | ca32a1aafd64948f489a4e5cf88096f32391b1d9 | [
"CC-BY-3.0"
] | 1 | 2015-02-21T18:48:19.000Z | 2015-02-27T15:50:32.000Z | lib/galaxy/webapps/reports/__init__.py | blankenberg/galaxy-data-resource | ca32a1aafd64948f489a4e5cf88096f32391b1d9 | [
"CC-BY-3.0"
] | 3 | 2015-02-22T13:34:16.000Z | 2020-10-01T01:28:04.000Z | """The Galaxy Reports application."""
from galaxy.web.framework import url_for
from galaxy.web.framework.decorators import expose
| 26.2 | 50 | 0.80916 | 18 | 131 | 5.833333 | 0.666667 | 0.190476 | 0.247619 | 0.419048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099237 | 131 | 4 | 51 | 32.75 | 0.889831 | 0.236641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
31f9b2b7f6b348d2fd0d58500e58e4a8041c5ef2 | 308 | py | Python | src/std/coppertop/std/stats.py | DangerMouseB/coppertop | 26e9b01034b29fa8ec0e41bf1fa2b81c7c7bb34d | [
"BSD-3-Clause"
] | null | null | null | src/std/coppertop/std/stats.py | DangerMouseB/coppertop | 26e9b01034b29fa8ec0e41bf1fa2b81c7c7bb34d | [
"BSD-3-Clause"
] | null | null | null | src/std/coppertop/std/stats.py | DangerMouseB/coppertop | 26e9b01034b29fa8ec0e41bf1fa2b81c7c7bb34d | [
"BSD-3-Clause"
] | null | null | null | # *******************************************************************************
#
# Copyright (c) 2021 David Briant. All rights reserved.
#
# *******************************************************************************
from coppertop.std._stats import core
from coppertop.std._stats.core import *
| 28 | 81 | 0.344156 | 20 | 308 | 5.2 | 0.7 | 0.25 | 0.307692 | 0.403846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014337 | 0.094156 | 308 | 10 | 82 | 30.8 | 0.358423 | 0.701299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
ee1f011a9339cddf2d8fb2edd7133b8cc80c14ef | 32,212 | py | Python | scripts/stagelibs.py | magic-lantern-android-studio/mle-tools | 66e10e122a0845a6c297baadc21fa3215faeee0a | [
"MIT"
] | null | null | null | scripts/stagelibs.py | magic-lantern-android-studio/mle-tools | 66e10e122a0845a6c297baadc21fa3215faeee0a | [
"MIT"
] | null | null | null | scripts/stagelibs.py | magic-lantern-android-studio/mle-tools | 66e10e122a0845a6c297baadc21fa3215faeee0a | [
"MIT"
] | null | null | null | #!/usr/bin/python
# This script is used to stage the Magic Lantern Core and Parts libraries into their
# corresponding Android Studio projects.
import os
import shutil
import tempfile
import argparse
# Initialize project list.
g_projectSize = 10
g_projects = [None] * g_projectSize
g_projects[0] = "core-math"
g_proje... | 57.727599 | 121 | 0.676766 | 4,426 | 32,212 | 4.919114 | 0.027113 | 0.090024 | 0.069585 | 0.038903 | 0.913099 | 0.897529 | 0.840667 | 0.836625 | 0.836625 | 0.832262 | 0 | 0.003088 | 0.155594 | 32,212 | 557 | 122 | 57.831239 | 0.797353 | 0.015584 | 0 | 0.586667 | 0 | 0 | 0.567426 | 0.441061 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007619 | null | null | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ee1f786a476461ad257efe6b3093d40ecb020fb6 | 87 | py | Python | tests/acceptance/helpers/helper.py | vkpro-forks/selene | 8d8aa2c7e0623e228f2ba2056c699ff8614d9444 | [
"MIT"
] | null | null | null | tests/acceptance/helpers/helper.py | vkpro-forks/selene | 8d8aa2c7e0623e228f2ba2056c699ff8614d9444 | [
"MIT"
] | null | null | null | tests/acceptance/helpers/helper.py | vkpro-forks/selene | 8d8aa2c7e0623e228f2ba2056c699ff8614d9444 | [
"MIT"
] | null | null | null | from selenium import webdriver
def get_test_driver():
return webdriver.Firefox()
| 14.5 | 30 | 0.770115 | 11 | 87 | 5.909091 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 87 | 5 | 31 | 17.4 | 0.890411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 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 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
c9fcf70e658eb102935ac3d9f5475add27d0e915 | 37 | py | Python | test/run/t540.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 2,671 | 2015-01-03T08:23:25.000Z | 2022-03-31T06:15:48.000Z | test/run/t540.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 972 | 2015-01-05T08:11:00.000Z | 2022-03-29T13:47:15.000Z | test/run/t540.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 845 | 2015-01-03T19:53:36.000Z | 2022-03-29T18:34:22.000Z | print [1,2][True]
print [1,2][False]
| 12.333333 | 18 | 0.621622 | 8 | 37 | 2.875 | 0.625 | 0.521739 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0.108108 | 37 | 2 | 19 | 18.5 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
4ebabc888b99ca47274e576baae3dab0b4643ac7 | 6,775 | py | Python | src/tec/ic/ia/p1/g08_data.py | Fuabioo/Proyecto-Corto-2-3 | 44bdfd5f2774e2d0d8c8af79dc55dac340f6f4b0 | [
"MIT"
] | null | null | null | src/tec/ic/ia/p1/g08_data.py | Fuabioo/Proyecto-Corto-2-3 | 44bdfd5f2774e2d0d8c8af79dc55dac340f6f4b0 | [
"MIT"
] | null | null | null | src/tec/ic/ia/p1/g08_data.py | Fuabioo/Proyecto-Corto-2-3 | 44bdfd5f2774e2d0d8c8af79dc55dac340f6f4b0 | [
"MIT"
] | 1 | 2021-10-20T22:13:04.000Z | 2021-10-20T22:13:04.000Z | from tec.ic.ia.pc1 import g08
import numpy
from sklearn.preprocessing import LabelEncoder
from keras.utils import np_utils
from sklearn.preprocessing import StandardScaler,MinMaxScaler
def shaped_data(dataset):
dataset = numpy.array(dataset)
X = dataset[:,1:-2].astype(float)
X0 = dataset[:,0]
X32 = d... | 21.171875 | 72 | 0.629668 | 906 | 6,775 | 4.634658 | 0.081678 | 0.080019 | 0.045011 | 0.081448 | 0.923791 | 0.916171 | 0.916171 | 0.90974 | 0.908073 | 0.908073 | 0 | 0.062058 | 0.227011 | 6,775 | 319 | 73 | 21.238245 | 0.739736 | 0.127528 | 0 | 0.90184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03681 | false | 0 | 0.030675 | 0 | 0.104294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
11d6bb536d2683d81b85afcd0742e9b8d5fc873e | 176 | py | Python | extensions/.stubs/clrclasses/System/Diagnostics/CodeAnalysis/__init__.py | vicwjb/Pycad | 7391cd694b7a91ad9f9964ec95833c1081bc1f84 | [
"MIT"
] | 1 | 2020-03-25T03:27:24.000Z | 2020-03-25T03:27:24.000Z | extensions/.stubs/clrclasses/System/Diagnostics/CodeAnalysis/__init__.py | vicwjb/Pycad | 7391cd694b7a91ad9f9964ec95833c1081bc1f84 | [
"MIT"
] | null | null | null | extensions/.stubs/clrclasses/System/Diagnostics/CodeAnalysis/__init__.py | vicwjb/Pycad | 7391cd694b7a91ad9f9964ec95833c1081bc1f84 | [
"MIT"
] | null | null | null | from __clrclasses__.System.Diagnostics.CodeAnalysis import ExcludeFromCodeCoverageAttribute
from __clrclasses__.System.Diagnostics.CodeAnalysis import SuppressMessageAttribute
| 58.666667 | 91 | 0.920455 | 14 | 176 | 11 | 0.571429 | 0.181818 | 0.25974 | 0.402597 | 0.636364 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 176 | 2 | 92 | 88 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | null | 0 | 1 | 1 | 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 | 7 |
11efa5a88090b76201caac2b671e26ba6c605273 | 114 | py | Python | sysopt/blocks/__init__.py | andrewjlock/sysopt | b9ef17e4532f3a3327afc696ec698eb5dd365350 | [
"Apache-2.0"
] | null | null | null | sysopt/blocks/__init__.py | andrewjlock/sysopt | b9ef17e4532f3a3327afc696ec698eb5dd365350 | [
"Apache-2.0"
] | null | null | null | sysopt/blocks/__init__.py | andrewjlock/sysopt | b9ef17e4532f3a3327afc696ec698eb5dd365350 | [
"Apache-2.0"
] | 1 | 2022-03-09T03:59:49.000Z | 2022-03-09T03:59:49.000Z | """Common Blocks and Block factories."""
from sysopt.blocks.common import *
from sysopt.blocks.builders import *
| 22.8 | 40 | 0.763158 | 15 | 114 | 5.8 | 0.6 | 0.229885 | 0.367816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 114 | 4 | 41 | 28.5 | 0.87 | 0.298246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
eedb4fd9db579b478668fde603d95d1b3bc8dc60 | 5,351 | py | Python | tests/test_rr.py | mpounsett/arke | 633c53ecca272786465a5b5b905838225b32a137 | [
"Apache-2.0"
] | null | null | null | tests/test_rr.py | mpounsett/arke | 633c53ecca272786465a5b5b905838225b32a137 | [
"Apache-2.0"
] | 7 | 2017-03-18T20:26:50.000Z | 2017-03-29T22:40:49.000Z | tests/test_rr.py | mpounsett/arke | 633c53ecca272786465a5b5b905838225b32a137 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------
# Copyright 2017, Matthew Pounsett <matt@conundrum.com>
# ------------------------------------------------------------
from __future__ import unicode_literals
import os
import sys
import unittest
sys.path.insert(0,
... | 34.522581 | 78 | 0.635208 | 698 | 5,351 | 4.683381 | 0.113181 | 0.104619 | 0.197614 | 0.218415 | 0.808504 | 0.782502 | 0.775772 | 0.749159 | 0.683389 | 0.451514 | 0 | 0.042207 | 0.207438 | 5,351 | 154 | 79 | 34.746753 | 0.728602 | 0.036816 | 0 | 0.40678 | 0 | 0 | 0.057681 | 0 | 0 | 0 | 0 | 0 | 0.474576 | 1 | 0.177966 | false | 0 | 0.042373 | 0 | 0.279661 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
eedd67eff6b980dc381d7ce2be6d63ba6c0a7f33 | 14,735 | py | Python | simpleblog/migrations/0001_initial.py | realnoobs/wagtail_simple_blog | 01b35153f6dd90e9c12234a5aaae8eebe3940f37 | [
"MIT"
] | null | null | null | simpleblog/migrations/0001_initial.py | realnoobs/wagtail_simple_blog | 01b35153f6dd90e9c12234a5aaae8eebe3940f37 | [
"MIT"
] | null | null | null | simpleblog/migrations/0001_initial.py | realnoobs/wagtail_simple_blog | 01b35153f6dd90e9c12234a5aaae8eebe3940f37 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.10 on 2021-12-24 06:46
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.contrib.taggit
import modelcluster.fields
import mptt.fields
import simpleblog.blocks
import wagtail.contrib.routable_page.models
import wagtail.c... | 120.778689 | 3,889 | 0.688225 | 1,695 | 14,735 | 5.887316 | 0.175811 | 0.102515 | 0.148211 | 0.078164 | 0.788255 | 0.781842 | 0.778335 | 0.770518 | 0.770518 | 0.763904 | 0 | 0.007942 | 0.136885 | 14,735 | 121 | 3,890 | 121.77686 | 0.776694 | 0.003122 | 0 | 0.464912 | 1 | 0.026316 | 0.223259 | 0.008034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.114035 | 0 | 0.149123 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
01036bbc8577b3696a1c73bda624aba19b4f3206 | 215 | py | Python | App/views.py | Yuchao99/Play | 6aa6327b997189d3e272f4dc12c56f033e1ba782 | [
"MIT"
] | null | null | null | App/views.py | Yuchao99/Play | 6aa6327b997189d3e272f4dc12c56f033e1ba782 | [
"MIT"
] | null | null | null | App/views.py | Yuchao99/Play | 6aa6327b997189d3e272f4dc12c56f033e1ba782 | [
"MIT"
] | null | null | null | # coding:utf-8
from django.http import HttpResponse
from django.shortcuts import render
def index(request):
return render(request,'index.html')
def playGround(request):
return render(request, 'play.html') | 21.5 | 39 | 0.75814 | 29 | 215 | 5.62069 | 0.586207 | 0.122699 | 0.233129 | 0.319018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.134884 | 215 | 10 | 40 | 21.5 | 0.870968 | 0.055814 | 0 | 0 | 0 | 0 | 0.094059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
6dcf91e152e2d8e00ec8459db77e2b8de885989a | 159 | py | Python | gd/image/__init__.py | nekitdev/gd.py | b9d5e29c09f953f54b9b648fb677e987d9a8e103 | [
"MIT"
] | 58 | 2020-09-30T16:51:22.000Z | 2022-02-13T17:27:48.000Z | gd/image/__init__.py | NeKitDS/gd.py | b9d5e29c09f953f54b9b648fb677e987d9a8e103 | [
"MIT"
] | 30 | 2019-07-29T12:03:41.000Z | 2020-09-15T17:01:37.000Z | gd/image/__init__.py | NeKitDS/gd.py | b9d5e29c09f953f54b9b648fb677e987d9a8e103 | [
"MIT"
] | 20 | 2019-12-06T03:16:57.000Z | 2020-09-16T17:45:27.000Z | from gd.image.geometry import *
from gd.image.icon_factory import *
from gd.image.metadata import *
from gd.image.sheet import *
from gd.image.sprite import *
| 26.5 | 35 | 0.779874 | 26 | 159 | 4.730769 | 0.384615 | 0.243902 | 0.447154 | 0.552846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125786 | 159 | 5 | 36 | 31.8 | 0.884892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
0965fb73885939eb4475e64338884040c29e1d2c | 7,993 | py | Python | tests/test_connect.py | quantxt/qtcurate-sdk-python | 7c60a97c808381680889b2934aa5146e9303274e | [
"Apache-2.0"
] | null | null | null | tests/test_connect.py | quantxt/qtcurate-sdk-python | 7c60a97c808381680889b2934aa5146e9303274e | [
"Apache-2.0"
] | null | null | null | tests/test_connect.py | quantxt/qtcurate-sdk-python | 7c60a97c808381680889b2934aa5146e9303274e | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase, main
from unittest.mock import patch, Mock
from qtcurate.exceptions import *
from qtcurate.connect import connect
import requests
from collections import namedtuple
class TestUtilities(TestCase):
# Testing connect function
def test_connect_data_type_arg_err(self):
with ... | 41.201031 | 98 | 0.704116 | 949 | 7,993 | 5.646997 | 0.066386 | 0.097033 | 0.054861 | 0.066617 | 0.948311 | 0.944019 | 0.940661 | 0.920881 | 0.914163 | 0.881508 | 0 | 0.005997 | 0.186413 | 7,993 | 193 | 99 | 41.414508 | 0.818084 | 0.003003 | 0 | 0.736486 | 0 | 0 | 0.165307 | 0.0787 | 0 | 0 | 0 | 0 | 0.141892 | 1 | 0.141892 | false | 0 | 0.040541 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
098bc979c0c8c1f6be13c267204a615e22ff172f | 30,860 | py | Python | tests/test_indexer.py | abrookins/redis-sitesearch | 2ebeedbd569801c61a4815f386d83cd18486de58 | [
"MIT"
] | 23 | 2020-10-22T05:03:51.000Z | 2022-01-17T23:25:25.000Z | tests/test_indexer.py | abrookins/redis-sitesearch | 2ebeedbd569801c61a4815f386d83cd18486de58 | [
"MIT"
] | 3 | 2021-07-16T18:28:55.000Z | 2021-10-19T04:56:36.000Z | tests/test_indexer.py | abrookins/redis-sitesearch | 2ebeedbd569801c61a4815f386d83cd18486de58 | [
"MIT"
] | 9 | 2020-12-10T17:26:15.000Z | 2022-02-11T09:03:46.000Z | import os
from unittest import mock
from unittest.mock import call
import pytest
from sitesearch.keys import Keys
from sitesearch.sites.redis_labs import OLD_DOCS_PROD
from sitesearch.errors import ParseError
from sitesearch.indexer import DocumentParser, Indexer, md5, SECTION_ID, PAGE_ID, page_id, section_id
from si... | 118.237548 | 4,869 | 0.628483 | 4,228 | 30,860 | 4.533822 | 0.120151 | 0.009181 | 0.016068 | 0.022536 | 0.793573 | 0.775262 | 0.766446 | 0.755856 | 0.752726 | 0.723199 | 0 | 0.039415 | 0.308587 | 30,860 | 260 | 4,870 | 118.692308 | 0.858977 | 0.035677 | 0 | 0.530612 | 0 | 0.040816 | 0.830056 | 0.021623 | 0 | 0 | 0 | 0 | 0.040816 | 1 | 0.066327 | false | 0 | 0.045918 | 0 | 0.132653 | 0.005102 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
098efa709354856031c3553811ef2fa3606c868e | 19,428 | py | Python | tests/model/blockchain/test_PersonalInfo.py | BoostryJP/ibet-Prime | 924e7f8da4f8feea0a572e8b5532e09bcdf2dc99 | [
"Apache-2.0"
] | 2 | 2021-08-19T12:35:25.000Z | 2022-02-16T04:13:38.000Z | tests/model/blockchain/test_PersonalInfo.py | BoostryJP/ibet-Prime | 924e7f8da4f8feea0a572e8b5532e09bcdf2dc99 | [
"Apache-2.0"
] | 46 | 2021-09-02T03:22:05.000Z | 2022-03-31T09:20:00.000Z | tests/model/blockchain/test_PersonalInfo.py | BoostryJP/ibet-Prime | 924e7f8da4f8feea0a572e8b5532e09bcdf2dc99 | [
"Apache-2.0"
] | 1 | 2021-11-17T23:18:27.000Z | 2021-11-17T23:18:27.000Z | """
Copyright BOOSTRY Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distr... | 37.433526 | 110 | 0.591929 | 1,945 | 19,428 | 5.641645 | 0.108997 | 0.053586 | 0.08931 | 0.051034 | 0.817461 | 0.811173 | 0.805796 | 0.795498 | 0.795498 | 0.795498 | 0 | 0.029262 | 0.254169 | 19,428 | 518 | 111 | 37.505792 | 0.728019 | 0.064083 | 0 | 0.803109 | 0 | 0 | 0.148683 | 0.004409 | 0 | 0 | 0 | 0 | 0.023316 | 1 | 0.025907 | false | 0.098446 | 0.064767 | 0 | 0.103627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
0996a4b6fd5e3c01b993e622e0bf40c115da27b3 | 365 | py | Python | tests/RunTests/PythonTests/test2011_024.py | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/RunTests/PythonTests/test2011_024.py | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/RunTests/PythonTests/test2011_024.py | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | # test precedence
print 1 + 2 * 3 - 4 ** 5
print (1 + 2) * 3 - 4 ** 5
print (1 + 2 * 3) - 4 ** 5
print (1 + 2 * 3 - 4) ** 5
print (1 + 2 * 3 - 4 ** 5)
print (1 + 2) * (3 - 4) ** 5
print (1 + 2 * 3) - (4 ** 5)
print 1 + (2 * 3) - (4 ** 5)
print ((1 + 2) * 3 - 4) ** 5
print (((1 + 2) * 3) - 4) ** 5
print ((1 + 2) * 3) -... | 24.333333 | 36 | 0.372603 | 76 | 365 | 1.789474 | 0.105263 | 0.529412 | 0.617647 | 0.705882 | 0.875 | 0.875 | 0.875 | 0.875 | 0.875 | 0.875 | 0 | 0.261603 | 0.350685 | 365 | 14 | 37 | 26.071429 | 0.312236 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 0 | 0 | 1 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 14 |
0998cf5d6ed8fe8ae28cc2ed3854e21037b2efd1 | 15,291 | py | Python | pqviz/create_dataframes.py | mitre/PQViz | 229e662c408e0532df44585d134b8e79eb6c4cf8 | [
"Apache-2.0"
] | null | null | null | pqviz/create_dataframes.py | mitre/PQViz | 229e662c408e0532df44585d134b8e79eb6c4cf8 | [
"Apache-2.0"
] | null | null | null | pqviz/create_dataframes.py | mitre/PQViz | 229e662c408e0532df44585d134b8e79eb6c4cf8 | [
"Apache-2.0"
] | 1 | 2022-01-18T21:00:39.000Z | 2022-01-18T21:00:39.000Z | from pathlib import Path
from ipywidgets import interact, interactive, fixed, interact_manual
import ipywidgets as widgets
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
import us
def create_prevalence_df(file_path, population_group):
"""
Creates a data frame tha... | 32.259494 | 90 | 0.444444 | 1,515 | 15,291 | 4.390099 | 0.113531 | 0.058939 | 0.032476 | 0.086604 | 0.885431 | 0.880319 | 0.86829 | 0.857766 | 0.84664 | 0.839723 | 0 | 0.014294 | 0.423517 | 15,291 | 473 | 91 | 32.327696 | 0.740216 | 0.125891 | 0 | 0.814016 | 0 | 0 | 0.146864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005391 | false | 0 | 0.021563 | 0 | 0.032345 | 0.021563 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
09d8e8ba8a776f1863aedf907dc9898feca39d04 | 5,886 | py | Python | SystemComponent/ProgressBar.py | leejaymin/QDroid | 13ff9d26932378513a7c9f0038eb59b922ed06eb | [
"Apache-2.0"
] | null | null | null | SystemComponent/ProgressBar.py | leejaymin/QDroid | 13ff9d26932378513a7c9f0038eb59b922ed06eb | [
"Apache-2.0"
] | null | null | null | SystemComponent/ProgressBar.py | leejaymin/QDroid | 13ff9d26932378513a7c9f0038eb59b922ed06eb | [
"Apache-2.0"
] | null | null | null | #! python2.7
## -*- coding: utf-8 -*-
#===============================================================================
# @author: kun
#===============================================================================
import os,sys
current_path = os.getcwd()
parent_path = os.path.abspath(os.path.join(os.getcwd(... | 44.590909 | 123 | 0.563541 | 565 | 5,886 | 5.661947 | 0.134513 | 0.162551 | 0.115036 | 0.135042 | 0.833073 | 0.833073 | 0.833073 | 0.833073 | 0.814942 | 0.814942 | 0 | 0.020776 | 0.321271 | 5,886 | 132 | 124 | 44.590909 | 0.779975 | 0.036697 | 0 | 0.724138 | 0 | 0 | 0.076411 | 0.063275 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057471 | false | 0 | 0.022989 | 0 | 0.264368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
09e3e62e1f9401e4c9c55ed90251e2f62214d8bb | 113 | py | Python | market/baselines/baselines/bench/__init__.py | LuoMaimingS/django_virtual_stock_market | cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85 | [
"BSD-3-Clause"
] | 1 | 2021-05-29T23:33:41.000Z | 2021-05-29T23:33:41.000Z | market/baselines/baselines/bench/__init__.py | LuoMaimingS/django_virtual_stock_market | cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85 | [
"BSD-3-Clause"
] | null | null | null | market/baselines/baselines/bench/__init__.py | LuoMaimingS/django_virtual_stock_market | cfeccdbb906f9998ec0a0633c2d2f39cdd87bf85 | [
"BSD-3-Clause"
] | null | null | null | from market.baselines.baselines.bench.benchmarks import *
from market.baselines.baselines.bench.monitor import *
| 37.666667 | 57 | 0.840708 | 14 | 113 | 6.785714 | 0.5 | 0.210526 | 0.4 | 0.589474 | 0.694737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 113 | 2 | 58 | 56.5 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
11359ecc01d91369841dc14fe135600f99d6e2c7 | 3,311 | py | Python | basenef/mixin/arithematic_ops.py | bill52547/NEF | d1afc940f3a56569739738f21ba90e118bd5ce8b | [
"Apache-2.0"
] | null | null | null | basenef/mixin/arithematic_ops.py | bill52547/NEF | d1afc940f3a56569739738f21ba90e118bd5ce8b | [
"Apache-2.0"
] | null | null | null | basenef/mixin/arithematic_ops.py | bill52547/NEF | d1afc940f3a56569739738f21ba90e118bd5ce8b | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
'''
@author: Minghao Guo
@contact: mh.guo0111@gmail.com
@software: basenef
@file: arithematic_ops.py
@date: 4/13/2019
@desc:
'''
import operator
import numpy as np
from copy import copy
class UnaryOpMixin:
def abs(self):
return self._replace(data = np.abs(self.data))
def __neg__(sel... | 32.782178 | 64 | 0.615222 | 419 | 3,311 | 4.663484 | 0.150358 | 0.106448 | 0.217503 | 0.26868 | 0.816786 | 0.77738 | 0.762538 | 0.762538 | 0.762538 | 0.762538 | 0 | 0.005797 | 0.270613 | 3,311 | 100 | 65 | 33.11 | 0.803313 | 0.041377 | 0 | 0.383562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191781 | false | 0.013699 | 0.041096 | 0.027397 | 0.616438 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 9 |
febc2ad7f300911d8f345a303c08f80a1be48dbd | 140 | py | Python | codewars/8kyu/amrlotfy77/Capitalization and Mutability/main.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | null | null | null | codewars/8kyu/amrlotfy77/Capitalization and Mutability/main.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | 2 | 2019-01-22T10:53:42.000Z | 2019-01-31T08:02:48.000Z | codewars/8kyu/amrlotfy77/Capitalization and Mutability/main.py | ictcubeMENA/Training_one | dff6bee96ba42babe4888e5cf9a9448a6fd93fc3 | [
"MIT"
] | 13 | 2019-01-22T10:37:42.000Z | 2019-01-25T13:30:43.000Z | def capitalizeWord(word):
c= word[0].upper()+word[1:]
return c
def capitalizeWord1(word):
return word[0].upper() + word[1:] | 15.555556 | 37 | 0.621429 | 20 | 140 | 4.35 | 0.45 | 0.114943 | 0.229885 | 0.321839 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0.2 | 140 | 9 | 37 | 15.555556 | 0.732143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 1 | 0 | 0 | 7 |
fed83494462fbbecba1da52eba2ca79f4aa66c73 | 6,337 | py | Python | operator/src/playbook_utils.py | j-griffith/pushbutton-ci | e1adc74aeceec2c5a5678b0c556a3147b49ee6dc | [
"Apache-2.0"
] | null | null | null | operator/src/playbook_utils.py | j-griffith/pushbutton-ci | e1adc74aeceec2c5a5678b0c556a3147b49ee6dc | [
"Apache-2.0"
] | null | null | null | operator/src/playbook_utils.py | j-griffith/pushbutton-ci | e1adc74aeceec2c5a5678b0c556a3147b49ee6dc | [
"Apache-2.0"
] | null | null | null | import subprocess
def stackit(cloud, server, conf_file, branch='master', cinder_branch='master',
use_floating_ip=False, results_dir='/tmp'):
"""Install devstack on the specified OpenStack Instance (server).
Assumes a running Instance, installs devsack based on the provided
parameters.
:p... | 37.276471 | 80 | 0.6451 | 856 | 6,337 | 4.651869 | 0.150701 | 0.040181 | 0.045706 | 0.021095 | 0.808137 | 0.793069 | 0.767454 | 0.73104 | 0.73104 | 0.704922 | 0 | 0.003437 | 0.265425 | 6,337 | 169 | 81 | 37.497041 | 0.851987 | 0.500552 | 0 | 0.709677 | 0 | 0 | 0.179851 | 0.044342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.016129 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3a19011d29beeed0cc8e99e644fb905212939265 | 6,907 | py | Python | flow/db/sql/trigger.py | avivfaraj/money-flow | 8fb548e747798fec9a19152ce491b991284b096e | [
"Apache-2.0"
] | null | null | null | flow/db/sql/trigger.py | avivfaraj/money-flow | 8fb548e747798fec9a19152ce491b991284b096e | [
"Apache-2.0"
] | null | null | null | flow/db/sql/trigger.py | avivfaraj/money-flow | 8fb548e747798fec9a19152ce491b991284b096e | [
"Apache-2.0"
] | null | null | null | from sql.insert import execute_query
def triggers(conn):
# delete_transaction_trigger(conn)
# update_transaction_trigger(conn)
insert_transaction_trigger(conn)
# def delete_transaction_trigger(conn):
# execute_query(conn = conn,
# query = """CREATE TRIGGER IF NOT EXISTS delete_transaction
# BEFORE ... | 38.586592 | 127 | 0.363399 | 462 | 6,907 | 5.294372 | 0.123377 | 0.090352 | 0.057236 | 0.077678 | 0.883483 | 0.86018 | 0.86018 | 0.86018 | 0.812756 | 0.795585 | 0 | 0.000695 | 0.583466 | 6,907 | 178 | 128 | 38.803371 | 0.849496 | 0.411467 | 0 | 0.701031 | 0 | 0 | 0.916479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020619 | false | 0 | 0.010309 | 0 | 0.030928 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
28bd484f4bc6d570763a0288eee8dc7d2fae9e6f | 405 | py | Python | temboo/core/Library/CloudMine/FileStorage/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/CloudMine/FileStorage/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/CloudMine/FileStorage/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | from temboo.Library.CloudMine.FileStorage.DeleteFile import DeleteFile, DeleteFileInputSet, DeleteFileResultSet, DeleteFileChoreographyExecution
from temboo.Library.CloudMine.FileStorage.GetFile import GetFile, GetFileInputSet, GetFileResultSet, GetFileChoreographyExecution
from temboo.Library.CloudMine.FileStorage.Set... | 101.25 | 144 | 0.896296 | 33 | 405 | 11 | 0.545455 | 0.082645 | 0.140496 | 0.214876 | 0.305785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051852 | 405 | 3 | 145 | 135 | 0.945313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
28c07a1aab05636bc51d85f4131b595adcf5295a | 1,221 | py | Python | r3c0nutils/user_agent.py | markgacoka/r3c0n | ac64614d10d176b9de2170ce8758a6aa75d75f54 | [
"MIT"
] | 4 | 2022-03-06T16:42:23.000Z | 2022-03-09T02:29:08.000Z | r3c0nutils/user_agent.py | markgacoka/r3c0n | ac64614d10d176b9de2170ce8758a6aa75d75f54 | [
"MIT"
] | null | null | null | r3c0nutils/user_agent.py | markgacoka/r3c0n | ac64614d10d176b9de2170ce8758a6aa75d75f54 | [
"MIT"
] | 1 | 2022-03-07T03:37:51.000Z | 2022-03-07T03:37:51.000Z | import random
def GET_UA():
uastrings = [
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36",\
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36",\
"Mozilla/5.0 (Macintos... | 71.823529 | 133 | 0.659296 | 220 | 1,221 | 3.631818 | 0.236364 | 0.100125 | 0.112641 | 0.140175 | 0.737171 | 0.737171 | 0.737171 | 0.737171 | 0.654568 | 0.654568 | 0 | 0.220896 | 0.176904 | 1,221 | 17 | 134 | 71.823529 | 0.574129 | 0 | 0 | 0 | 0 | 0.666667 | 0.816694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e92dd878e67c9ef0864b50a0e29bc7e795bab768 | 105 | py | Python | core/sync/manager.py | yuwilbur/birthday29 | 7a2c8069639b27b20bc0903d2cf6c212b398b4d9 | [
"MIT"
] | null | null | null | core/sync/manager.py | yuwilbur/birthday29 | 7a2c8069639b27b20bc0903d2cf6c212b398b4d9 | [
"MIT"
] | null | null | null | core/sync/manager.py | yuwilbur/birthday29 | 7a2c8069639b27b20bc0903d2cf6c212b398b4d9 | [
"MIT"
] | null | null | null | class Manager(object):
def setup(self):
return
def update(self):
return
def stop(self):
return | 11.666667 | 22 | 0.685714 | 15 | 105 | 4.8 | 0.6 | 0.416667 | 0.361111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 105 | 9 | 23 | 11.666667 | 0.857143 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.428571 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
3a6f8e589ff6cc6d7f402421acc3296fa52f91bc | 14,842 | py | Python | fibonacci21decomp.py | gavin4d/Fibonacci-Magic | 3e5c57e6ac6a190e5e9e6d62e34d2d8621ef47cc | [
"CC0-1.0"
] | 1 | 2021-12-28T19:10:58.000Z | 2021-12-28T19:10:58.000Z | fibonacci21decomp.py | gavin4d/Fibonacci-Magic | 3e5c57e6ac6a190e5e9e6d62e34d2d8621ef47cc | [
"CC0-1.0"
] | null | null | null | fibonacci21decomp.py | gavin4d/Fibonacci-Magic | 3e5c57e6ac6a190e5e9e6d62e34d2d8621ef47cc | [
"CC0-1.0"
] | null | null | null | from PIL.Image import FASTOCTREE
from manim import *
from functions import *
import color
def moveEquation(equations,loop,baseText,t1,t2,t3,t4,self):
equations[loop].add(baseText.copy(), t1[loop].copy(), t2[7-loop].copy(), t3[loop].copy(), t4[7-loop].copy())
self.play(equations[loop].animate.shift(LEFT * 6 + U... | 50.482993 | 258 | 0.607667 | 2,543 | 14,842 | 3.510421 | 0.043649 | 0.108883 | 0.038983 | 0.050409 | 0.902207 | 0.889885 | 0.872634 | 0.870617 | 0.867705 | 0.851798 | 0 | 0.101258 | 0.196874 | 14,842 | 293 | 259 | 50.65529 | 0.647148 | 0 | 0 | 0.811594 | 0 | 0 | 0.006872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019324 | false | 0 | 0.019324 | 0 | 0.057971 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3a7c302c456d49a44fb4eec66216a8f383187208 | 2,277 | py | Python | conditional_statements_advanced/lab/ski_trip.py | PetkoAndreev/Python-basics | a376362548380ae50c7c707551cb821547f44402 | [
"MIT"
] | null | null | null | conditional_statements_advanced/lab/ski_trip.py | PetkoAndreev/Python-basics | a376362548380ae50c7c707551cb821547f44402 | [
"MIT"
] | null | null | null | conditional_statements_advanced/lab/ski_trip.py | PetkoAndreev/Python-basics | a376362548380ae50c7c707551cb821547f44402 | [
"MIT"
] | null | null | null | days = int(input())
type_room = input()
grade = input()
nights = days - 1
if type_room == 'room for one person' and grade == 'positive':
price = nights * 18
price += price * 0.25
print(f'{price:.2f}')
elif type_room == 'room for one person' and grade =='negative':
price = nights * 18
price -= price ... | 29.960526 | 64 | 0.498902 | 303 | 2,277 | 3.726073 | 0.10231 | 0.230292 | 0.253322 | 0.161205 | 0.943313 | 0.943313 | 0.920283 | 0.920283 | 0.858282 | 0.829938 | 0 | 0.093055 | 0.348704 | 2,277 | 76 | 65 | 29.960526 | 0.66824 | 0 | 0 | 0.868421 | 0 | 0 | 0.129939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.184211 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
3af5e262165efd28e4fad979b4ccd87a58302c19 | 1,080 | py | Python | samples/cli/accelbyte_py_sdk_cli/gametelemetry/__init__.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | samples/cli/accelbyte_py_sdk_cli/gametelemetry/__init__.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | 1 | 2021-10-13T03:46:58.000Z | 2021-10-13T03:46:58.000Z | samples/cli/accelbyte_py_sdk_cli/gametelemetry/__init__.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-init.j2
# Analytics Game Telemetry (0.0.1)
from ._protected_save_events_game_... | 51.428571 | 203 | 0.898148 | 156 | 1,080 | 5.557692 | 0.333333 | 0.149942 | 0.155709 | 0.249135 | 0.705882 | 0.705882 | 0.705882 | 0.705882 | 0.705882 | 0.522491 | 0 | 0.016966 | 0.072222 | 1,080 | 20 | 204 | 54 | 0.848303 | 0.248148 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 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 | 0 | 0 | 0 | 7 |
c91beedc3966455f3bf068ecff78fc2b77740064 | 246 | py | Python | ddganAE/architectures/__init__.py | Zeff020/Adversarial_ROM | 8c9e7ff86250e9370e5fdd2018f9ad04ded5f122 | [
"MIT"
] | 1 | 2021-12-27T06:14:32.000Z | 2021-12-27T06:14:32.000Z | ddganAE/architectures/__init__.py | Zeff020/Adversarial_ROM | 8c9e7ff86250e9370e5fdd2018f9ad04ded5f122 | [
"MIT"
] | null | null | null | ddganAE/architectures/__init__.py | Zeff020/Adversarial_ROM | 8c9e7ff86250e9370e5fdd2018f9ad04ded5f122 | [
"MIT"
] | 3 | 2021-08-05T11:17:37.000Z | 2021-09-02T02:37:44.000Z | # Do these imports such that user can import all architectures at once
from .cae.D2 import * # noqa: F403, F401
from .cae.D3 import * # noqa: F403, F401
from .svdae import * # noqa: F403, F401
from .discriminators import * # noqa: F403, F401
| 41 | 70 | 0.707317 | 38 | 246 | 4.578947 | 0.552632 | 0.229885 | 0.321839 | 0.413793 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13198 | 0.199187 | 246 | 5 | 71 | 49.2 | 0.751269 | 0.552846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
c92356546714ccd0010ff5f5eadd8d31737fb68b | 34,300 | py | Python | magnum/tests/unit/api/controllers/v1/test_container.py | MatMaul/magnum | 4d5fd80d89e38e98aff24f01b967a57d0adcd191 | [
"Apache-2.0"
] | null | null | null | magnum/tests/unit/api/controllers/v1/test_container.py | MatMaul/magnum | 4d5fd80d89e38e98aff24f01b967a57d0adcd191 | [
"Apache-2.0"
] | null | null | null | magnum/tests/unit/api/controllers/v1/test_container.py | MatMaul/magnum | 4d5fd80d89e38e98aff24f01b967a57d0adcd191 | [
"Apache-2.0"
] | 1 | 2020-09-09T14:35:08.000Z | 2020-09-09T14:35:08.000Z | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distr... | 48.039216 | 79 | 0.619009 | 3,813 | 34,300 | 5.273013 | 0.063992 | 0.085348 | 0.0378 | 0.04347 | 0.87357 | 0.840147 | 0.827315 | 0.815229 | 0.793097 | 0.780812 | 0 | 0.015176 | 0.268076 | 34,300 | 713 | 80 | 48.106592 | 0.7857 | 0.026093 | 0 | 0.715947 | 0 | 0 | 0.170641 | 0.078041 | 0 | 0 | 0 | 0 | 0.196013 | 1 | 0.084718 | false | 0 | 0.01495 | 0 | 0.106312 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c92fe10767ef8acfb969c1fbe58e1b35c3012232 | 37 | py | Python | xscale/spectral/__init__.py | xy6g13/xscale | a0c5809b6005a2016ab85849fa33e24c3fc19518 | [
"Apache-2.0"
] | 24 | 2017-02-28T15:01:29.000Z | 2022-02-22T08:26:23.000Z | xscale/spectral/__init__.py | xy6g13/xscale | a0c5809b6005a2016ab85849fa33e24c3fc19518 | [
"Apache-2.0"
] | 19 | 2017-02-24T12:30:26.000Z | 2022-02-25T04:57:32.000Z | xscale/spectral/__init__.py | serazing/xscale | a804866aa6f6a5a0f293a7f6765ea17403159134 | [
"Apache-2.0"
] | 10 | 2017-03-04T02:59:42.000Z | 2021-11-14T12:40:54.000Z | from . import fft
from . import tools | 18.5 | 19 | 0.756757 | 6 | 37 | 4.666667 | 0.666667 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 37 | 2 | 19 | 18.5 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
c939bdd7172d4d5b1d8da70e02e1b8fed7150cdb | 1,213 | py | Python | thoughtfulsoup/checker_map.py | dchan3/beautifulsoup4 | 1d32f05415fdea13e70fea734f83eb4ab8a23fdc | [
"MIT"
] | 2 | 2018-02-24T19:43:59.000Z | 2018-02-25T09:05:04.000Z | thoughtfulsoup/checker_map.py | dchan3/thoughtfulsoup | 1d32f05415fdea13e70fea734f83eb4ab8a23fdc | [
"MIT"
] | null | null | null | thoughtfulsoup/checker_map.py | dchan3/thoughtfulsoup | 1d32f05415fdea13e70fea734f83eb4ab8a23fdc | [
"MIT"
] | null | null | null | from thoughtfulsoup.counter import Counter
ID_CLASS_CHECKER = {
'#': lambda tag, tok: tag.get('id', None) == tok.split('#', 1)[1],
'.': lambda tag, tok: set(tok.split('.', 1)[1].split('.')).issubset(tag.get('class', []))
}
PSEUDO_TYPE_CHECKER = lambda pseudo_value: {
'nth-child': {
"f": lambda tag... | 39.129032 | 111 | 0.615004 | 186 | 1,213 | 3.77957 | 0.150538 | 0.139403 | 0.219061 | 0.238976 | 0.726885 | 0.726885 | 0.726885 | 0.726885 | 0.719772 | 0.698435 | 0 | 0.008247 | 0.20033 | 1,213 | 30 | 112 | 40.433333 | 0.716495 | 0 | 0 | 0 | 0 | 0 | 0.083265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 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 | 7 |
c956cca9392fe525c904a16fd4f8250db5735781 | 1,723 | py | Python | utest/x3270/test_write.py | MichaelSeeburger/Robot-Framework-Mainframe-3270-Library | 76b589d58c55a39f96c027a8ae28c41fa37ed445 | [
"MIT"
] | 3 | 2018-10-02T14:32:06.000Z | 2018-10-02T14:33:32.000Z | utest/x3270/test_write.py | MichaelSeeburger/Robot-Framework-Mainframe-3270-Library | 76b589d58c55a39f96c027a8ae28c41fa37ed445 | [
"MIT"
] | null | null | null | utest/x3270/test_write.py | MichaelSeeburger/Robot-Framework-Mainframe-3270-Library | 76b589d58c55a39f96c027a8ae28c41fa37ed445 | [
"MIT"
] | null | null | null | from pytest_mock import MockerFixture
from Mainframe3270.py3270 import Emulator
from Mainframe3270.x3270 import x3270
def test_write(mocker: MockerFixture, under_test: x3270):
mocker.patch("Mainframe3270.py3270.Emulator.exec_command")
mocker.patch("Mainframe3270.py3270.Emulator.send_enter")
under_test.w... | 35.163265 | 74 | 0.784678 | 231 | 1,723 | 5.545455 | 0.142857 | 0.163154 | 0.187354 | 0.234192 | 0.900859 | 0.900859 | 0.900859 | 0.900859 | 0.900859 | 0.900859 | 0 | 0.080103 | 0.101567 | 1,723 | 48 | 75 | 35.895833 | 0.747416 | 0 | 0 | 0.645161 | 0 | 0 | 0.270459 | 0.233314 | 0 | 0 | 0 | 0 | 0.322581 | 1 | 0.129032 | false | 0 | 0.096774 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
a32f92272077fe43825f6ffaf97a17ce88eea129 | 5,762 | py | Python | Hermes/appscale/hermes/producers/tests/test_cassandra.py | Honcharov12/appscale | be1cf90fcd24f1a5a88848f7eb73331b6e4e66d9 | [
"Apache-2.0"
] | null | null | null | Hermes/appscale/hermes/producers/tests/test_cassandra.py | Honcharov12/appscale | be1cf90fcd24f1a5a88848f7eb73331b6e4e66d9 | [
"Apache-2.0"
] | 1 | 2019-10-15T15:57:53.000Z | 2019-10-15T15:57:53.000Z | Hermes/appscale/hermes/producers/tests/test_cassandra.py | Honcharov12/appscale | be1cf90fcd24f1a5a88848f7eb73331b6e4e66d9 | [
"Apache-2.0"
] | 1 | 2019-08-27T05:19:48.000Z | 2019-08-27T05:19:48.000Z | from mock import MagicMock, patch
from tornado import gen, testing
from appscale.hermes.producers import cassandra_stats
def future(value):
future = gen.Future()
future.set_result(value)
return future
MULTINODE_STATUS = """Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving... | 39.197279 | 129 | 0.706873 | 749 | 5,762 | 5.285714 | 0.154873 | 0.185653 | 0.121243 | 0.012124 | 0.886335 | 0.832533 | 0.826471 | 0.826471 | 0.826471 | 0.826471 | 0 | 0.075776 | 0.161749 | 5,762 | 146 | 130 | 39.465753 | 0.743892 | 0.044082 | 0 | 0.745455 | 0 | 0.027273 | 0.21626 | 0.079302 | 0 | 0 | 0 | 0 | 0.472727 | 1 | 0.036364 | false | 0 | 0.027273 | 0 | 0.081818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
a342a4ec91cd21725896d3f6211cec181a5e6f58 | 1,451 | py | Python | model/parts/v2_hydra_coeffs.py | inventandchill/HydraDX-simulations | cfc380363c7aa9abc2ee8aae670a4a6d704d36ca | [
"Apache-2.0"
] | 4 | 2021-08-12T21:33:26.000Z | 2022-03-04T22:51:33.000Z | model/parts/v2_hydra_coeffs.py | inventandchill/HydraDX-simulations | cfc380363c7aa9abc2ee8aae670a4a6d704d36ca | [
"Apache-2.0"
] | 31 | 2021-10-31T20:18:57.000Z | 2022-03-25T16:01:41.000Z | model/parts/v2_hydra_coeffs.py | inventandchill/HydraDX-simulations | cfc380363c7aa9abc2ee8aae670a4a6d704d36ca | [
"Apache-2.0"
] | 4 | 2021-08-13T06:59:59.000Z | 2021-12-13T17:47:57.000Z | import numpy as np
def addLiquidity_C(params, substep, state_history, prev_state, policy_input):
"""
This function updates and returns the coefficient C after a liquidity add, according to specification 6-28-21
C = C + (R^+ / R) ** (a+1)
"""
asset_id = policy_input['asset_id'] # defines asset subsc... | 32.244444 | 116 | 0.608546 | 213 | 1,451 | 3.920188 | 0.2723 | 0.075449 | 0.047904 | 0.045509 | 0.807186 | 0.807186 | 0.807186 | 0.807186 | 0.807186 | 0.807186 | 0 | 0.014939 | 0.261888 | 1,451 | 44 | 117 | 32.977273 | 0.764706 | 0.223983 | 0 | 0.709677 | 0 | 0 | 0.052486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.032258 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a3a4980259d263dc58914b27fc5999c152e40e72 | 6,633 | py | Python | redashAPI/test_client.py | strangeman/redash-api-client | a3ef598e20b89e80fcef6948636183a8b1617832 | [
"MIT"
] | 1 | 2021-09-30T12:27:12.000Z | 2021-09-30T12:27:12.000Z | redashAPI/test_client.py | strangeman/redash-api-client | a3ef598e20b89e80fcef6948636183a8b1617832 | [
"MIT"
] | null | null | null | redashAPI/test_client.py | strangeman/redash-api-client | a3ef598e20b89e80fcef6948636183a8b1617832 | [
"MIT"
] | null | null | null | from .client import RedashAPIClient, AlreadyExistsException, EntityNotFoundException
import pytest
REDASH_HOST = "http://redash:5000"
REDASH_API_KEY = "put-your-key-here"
redash = RedashAPIClient(REDASH_API_KEY, REDASH_HOST)
# remove old data
redash.delete_data_source("_datasource-test")
redash.delete_data_source("_... | 41.198758 | 94 | 0.677974 | 912 | 6,633 | 4.609649 | 0.100877 | 0.070647 | 0.043292 | 0.049715 | 0.855614 | 0.795671 | 0.762131 | 0.715985 | 0.704091 | 0.611323 | 0 | 0.020419 | 0.165687 | 6,633 | 160 | 95 | 41.45625 | 0.739248 | 0.021257 | 0 | 0.544776 | 0 | 0 | 0.222394 | 0.020975 | 0 | 0 | 0 | 0 | 0.30597 | 1 | 0.119403 | false | 0.052239 | 0.014925 | 0.007463 | 0.141791 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
6e883f066e75d4957d2444be77c78d9888f2021a | 30,029 | py | Python | dxm/lib/masking_api/api/database_ruleset_api.py | experiortec/dxm-toolkit | b2ab6189e163c62fa8d7251cd533d2a36430d44a | [
"Apache-2.0"
] | 5 | 2018-08-23T15:47:05.000Z | 2022-01-19T23:38:18.000Z | dxm/lib/masking_api/api/database_ruleset_api.py | experiortec/dxm-toolkit | b2ab6189e163c62fa8d7251cd533d2a36430d44a | [
"Apache-2.0"
] | 59 | 2018-10-15T10:37:00.000Z | 2022-03-22T20:49:25.000Z | dxm/lib/masking_api/api/database_ruleset_api.py | experiortec/dxm-toolkit | b2ab6189e163c62fa8d7251cd533d2a36430d44a | [
"Apache-2.0"
] | 12 | 2019-03-08T19:59:13.000Z | 2021-12-16T03:28:04.000Z | # coding: utf-8
"""
Masking API
Schema for the Masking Engine API # noqa: E501
OpenAPI spec version: 5.1.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import... | 42.533994 | 178 | 0.626894 | 3,498 | 30,029 | 5.108062 | 0.052887 | 0.119208 | 0.071357 | 0.028207 | 0.956682 | 0.952821 | 0.941795 | 0.925845 | 0.921816 | 0.919297 | 0 | 0.013814 | 0.291285 | 30,029 | 705 | 179 | 42.594326 | 0.825768 | 0.332146 | 0 | 0.802083 | 1 | 0 | 0.197832 | 0.058003 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039063 | false | 0 | 0.010417 | 0 | 0.106771 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
6e513ded3f8ec058495953e174f7365f2393b516 | 14,720 | py | Python | datamine/loaders/1qbit.py | Saran33/datamine_python | 396a01883fe98f31e32d506d50e4eeaa2de06466 | [
"BSD-3-Clause"
] | 39 | 2019-05-15T19:22:03.000Z | 2022-03-08T08:54:51.000Z | datamine/loaders/1qbit.py | Saran33/datamine_python | 396a01883fe98f31e32d506d50e4eeaa2de06466 | [
"BSD-3-Clause"
] | 9 | 2019-02-26T03:50:27.000Z | 2021-07-24T15:31:38.000Z | datamine/loaders/1qbit.py | Saran33/datamine_python | 396a01883fe98f31e32d506d50e4eeaa2de06466 | [
"BSD-3-Clause"
] | 11 | 2019-04-16T12:32:29.000Z | 2021-08-28T15:09:51.000Z | from . import Loader
import pandas as pd
class OneQBitLoader(Loader):
dataset = '1QBIT'
fileglob = '1QBit_*.csv'
columns = ['TRADEDATE', 'DATA_SOURCE', 'EODDESC', 'CHART_TITLE',
'YYYY', 'MM', 'DD', 'DATECODE_EXCEL', 'DATE_LABEL', 'F_PROD_CODE', 'O_PROD_CODE',
'PRICE_SETTLE_... | 107.445255 | 139 | 0.67697 | 2,606 | 14,720 | 3.10284 | 0.101305 | 0.3814 | 0.347267 | 0.005936 | 0.945709 | 0.93903 | 0.934578 | 0.926911 | 0.926911 | 0.906629 | 0 | 0.101415 | 0.178736 | 14,720 | 136 | 140 | 108.235294 | 0.567458 | 0 | 0 | 0.784615 | 0 | 0 | 0.665489 | 0.051087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007692 | false | 0 | 0.015385 | 0 | 0.069231 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
2830f1da2977dcf1c3b32c0ca8f80de5cc150d56 | 3,351 | py | Python | matrox/tests/linalg/test_elimination.py | rkty13/Matrox | e11f9c04ba62e5c23f5eee6c3c4ee1d183919653 | [
"MIT"
] | 3 | 2017-02-26T22:07:15.000Z | 2017-12-30T21:25:39.000Z | matrox/tests/linalg/test_elimination.py | rkty13/Matrox | e11f9c04ba62e5c23f5eee6c3c4ee1d183919653 | [
"MIT"
] | 11 | 2017-02-02T03:07:51.000Z | 2018-01-02T21:10:32.000Z | matrox/tests/linalg/test_elimination.py | rkty13/Matrox | e11f9c04ba62e5c23f5eee6c3c4ee1d183919653 | [
"MIT"
] | 1 | 2017-02-26T22:07:16.000Z | 2017-02-26T22:07:16.000Z | import unittest
from matrox import Matrix, fill_matrix
from matrox.linalg import *
class TestMatrixElimination(unittest.TestCase):
def test_gaussian_elimination(self):
matrix = Matrix([[1, 2, 3], [4, 5, 6]], fraction=True)
c_matrix, traceback, inverse_traceback = gaussian_elimination(matrix)
... | 44.68 | 78 | 0.51895 | 384 | 3,351 | 4.416667 | 0.085938 | 0.194575 | 0.246462 | 0.089623 | 0.875 | 0.875 | 0.862028 | 0.862028 | 0.854363 | 0.832547 | 0 | 0.052694 | 0.246792 | 3,351 | 74 | 79 | 45.283784 | 0.619255 | 0 | 0 | 0.546875 | 0 | 0.046875 | 0.19815 | 0 | 0 | 0 | 0 | 0 | 0.34375 | 1 | 0.046875 | false | 0 | 0.046875 | 0 | 0.109375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
28550c2efcf05070bee0949972ae2e5c87311163 | 389 | py | Python | setup1.py | nelliesnoodles/Whispering-Wall | 7240c33cbafd078375320df2dc95551f42550ab7 | [
"MIT"
] | null | null | null | setup1.py | nelliesnoodles/Whispering-Wall | 7240c33cbafd078375320df2dc95551f42550ab7 | [
"MIT"
] | null | null | null | setup1.py | nelliesnoodles/Whispering-Wall | 7240c33cbafd078375320df2dc95551f42550ab7 | [
"MIT"
] | 1 | 2019-03-20T19:54:14.000Z | 2019-03-20T19:54:14.000Z | import os
try:
import nltk
nltk.download('wordnet')
nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')
except ImportError as e:
os.system('pip3 install nltk')
import nltk
nltk.download('wordnet')
nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')
try:
import PyEn... | 17.681818 | 45 | 0.74036 | 50 | 389 | 5.68 | 0.36 | 0.253521 | 0.098592 | 0.15493 | 0.852113 | 0.852113 | 0.852113 | 0.852113 | 0.577465 | 0.577465 | 0 | 0.006024 | 0.14653 | 389 | 21 | 46 | 18.52381 | 0.849398 | 0 | 0 | 0.75 | 0 | 0 | 0.29563 | 0.133676 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
289c16eb8f23cbea927a7442262f6d3438210313 | 222 | py | Python | objs/Iterator.py | danilocgsilva/awsebdirect | 3958ee73dac259b5493ea123aadee28bd6321802 | [
"MIT"
] | null | null | null | objs/Iterator.py | danilocgsilva/awsebdirect | 3958ee73dac259b5493ea123aadee28bd6321802 | [
"MIT"
] | null | null | null | objs/Iterator.py | danilocgsilva/awsebdirect | 3958ee73dac259b5493ea123aadee28bd6321802 | [
"MIT"
] | null | null | null | class Iterator:
def set_client_response(self, client_response: dict):
self.client_response = client_response
return self
def count(self):
return len(self.client_response['Environments'])
| 22.2 | 57 | 0.693694 | 26 | 222 | 5.692308 | 0.461538 | 0.472973 | 0.364865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225225 | 222 | 9 | 58 | 24.666667 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
956bde75991fa1f5f5c24dba08c98fa437eb4679 | 11,576 | py | Python | goutdotcom/lab/tests/test_models.py | Spiewart/goutdotcom | 0916155732a72fcb8c8a2fb0f4dd81efef618af8 | [
"MIT"
] | null | null | null | goutdotcom/lab/tests/test_models.py | Spiewart/goutdotcom | 0916155732a72fcb8c8a2fb0f4dd81efef618af8 | [
"MIT"
] | null | null | null | goutdotcom/lab/tests/test_models.py | Spiewart/goutdotcom | 0916155732a72fcb8c8a2fb0f4dd81efef618af8 | [
"MIT"
] | null | null | null | from goutdotcom.profiles.models import PatientProfile
from goutdotcom.profiles.tests.factories import FamilyProfileFactory, PatientProfileFactory, SocialProfileFactory
from goutdotcom.users.tests.factories import UserFactory
from goutdotcom.lab.models import round_decimal
import pytest
from decimal import *
from .fac... | 40.617544 | 147 | 0.662232 | 1,108 | 11,576 | 6.75 | 0.106498 | 0.111245 | 0.066052 | 0.090386 | 0.816018 | 0.796631 | 0.77751 | 0.772296 | 0.740072 | 0.740072 | 0 | 0.009729 | 0.236351 | 11,576 | 284 | 148 | 40.760563 | 0.836312 | 0.008034 | 0 | 0.713115 | 0 | 0 | 0.033272 | 0.009929 | 0 | 0 | 0 | 0 | 0.143443 | 1 | 0.110656 | false | 0 | 0.028689 | 0 | 0.180328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
95c9cec8d771223ecbd4ec816d01af7316a498c0 | 199 | py | Python | 10/04/1/package1/package12/package121/module1212.py | pylangstudy/201706 | f1cc6af6b18e5bd393cda27f5166067c4645d4d3 | [
"CC0-1.0"
] | null | null | null | 10/04/1/package1/package12/package121/module1212.py | pylangstudy/201706 | f1cc6af6b18e5bd393cda27f5166067c4645d4d3 | [
"CC0-1.0"
] | 70 | 2017-06-01T11:02:51.000Z | 2017-06-30T00:35:32.000Z | 10/04/1/package1/package12/package121/module1212.py | pylangstudy/201706 | f1cc6af6b18e5bd393cda27f5166067c4645d4d3 | [
"CC0-1.0"
] | null | null | null | from ....package11 import module112
#from ../..package11 import module112
#from ./../..package11 import module112
def some_method():
print('module1212.some_method()')
module112.some_method()
| 28.428571 | 39 | 0.723618 | 22 | 199 | 6.409091 | 0.409091 | 0.276596 | 0.404255 | 0.595745 | 0.595745 | 0.595745 | 0.595745 | 0.595745 | 0 | 0 | 0 | 0.125714 | 0.120603 | 199 | 6 | 40 | 33.166667 | 0.68 | 0.371859 | 0 | 0 | 0 | 0 | 0.195122 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
95ebb5080cc80e0f2081c01aa3d589c0da590500 | 394 | py | Python | models/__init__.py | CSUBioGroup/DeepGOA | 09802b14ca4f8be6e8d4c2a72e08dbf7876c3b30 | [
"MIT"
] | 3 | 2020-09-09T15:57:28.000Z | 2021-12-22T04:39:06.000Z | models/__init__.py | CSUBioGroup/DeepGOA | 09802b14ca4f8be6e8d4c2a72e08dbf7876c3b30 | [
"MIT"
] | 2 | 2020-09-07T16:13:41.000Z | 2021-07-09T06:13:35.000Z | models/__init__.py | CSUBioGroup/DeepGOA | 09802b14ca4f8be6e8d4c2a72e08dbf7876c3b30 | [
"MIT"
] | null | null | null | from .DeepGOA_model import DeepGOA
from .DeepGOA_model import DeepGOA_InterPro
from .DeepGOA_model import DeepGOA_InterPro_PPI
from .DeepGOA_model import DeepGOA_PPI
from .DeepGOA_model import DeepGOA_Seq
from .DeepGOA_model import DeepGOA_Seq_BiLSTM
from .DeepGOA_model import DeepGOA_Seq_PPI
from .DeepGOA_model import... | 30.307692 | 48 | 0.878173 | 59 | 394 | 5.474576 | 0.169492 | 0.306502 | 0.44582 | 0.613003 | 0.931889 | 0.842105 | 0.216718 | 0 | 0 | 0 | 0 | 0 | 0.098985 | 394 | 12 | 49 | 32.833333 | 0.909859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
251e852b73cbaa87fd38a225b1513a4d878f27f3 | 9,721 | py | Python | tests_classla/test_slovenian_pipeline.py | lkrsnik/classla-stanfordnlp | 1ab8771aadfbc648cec51b4c6716797f698e67ff | [
"Apache-2.0"
] | 1 | 2020-07-04T21:06:20.000Z | 2020-07-04T21:06:20.000Z | tests_classla/test_slovenian_pipeline.py | lkrsnik/classla-stanfordnlp | 1ab8771aadfbc648cec51b4c6716797f698e67ff | [
"Apache-2.0"
] | null | null | null | tests_classla/test_slovenian_pipeline.py | lkrsnik/classla-stanfordnlp | 1ab8771aadfbc648cec51b4c6716797f698e67ff | [
"Apache-2.0"
] | null | null | null | """
Basic testing of the English pipeline
"""
import pytest
import classla
from tests import *
# data for testing
SL_DOC = "France Prešeren je bil rojen v Vrbi. Danes je poznan kot največji slovenski pesnik. Študiral je na Dunaju."
SL_DOC_TOKENS_GOLD = """
<Token index=1;words=[<Word index=1;text=France;lemma=Fran... | 63.535948 | 198 | 0.766485 | 1,679 | 9,721 | 4.356164 | 0.094104 | 0.051682 | 0.065628 | 0.082034 | 0.846459 | 0.828958 | 0.803254 | 0.773175 | 0.732021 | 0.715204 | 0 | 0.021192 | 0.063162 | 9,721 | 152 | 199 | 63.953947 | 0.781926 | 0.013065 | 0 | 0.025424 | 0 | 0.483051 | 0.897495 | 0.643215 | 0 | 0 | 0 | 0 | 0.042373 | 1 | 0.050847 | false | 0 | 0.025424 | 0 | 0.084746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
255068c30c52fa8d96cfdc3cf3e0ece08793d0d8 | 231 | py | Python | nmigen_boards/icesugar.py | lethalbit/nmigen-boards | aaf18252e457ff95257137da2a629820c0ff2bfa | [
"BSD-2-Clause"
] | 11 | 2021-12-10T12:23:29.000Z | 2022-03-13T08:40:20.000Z | nmigen_boards/icesugar.py | lethalbit/nmigen-boards | aaf18252e457ff95257137da2a629820c0ff2bfa | [
"BSD-2-Clause"
] | 12 | 2021-12-11T18:51:29.000Z | 2022-03-12T05:08:52.000Z | nmigen_boards/icesugar.py | lethalbit/nmigen-boards | aaf18252e457ff95257137da2a629820c0ff2bfa | [
"BSD-2-Clause"
] | 7 | 2021-12-12T07:20:21.000Z | 2022-03-06T06:20:55.000Z | from amaranth_boards.icesugar import *
from amaranth_boards.icesugar import __all__
import warnings
warnings.warn("instead of nmigen_boards.icesugar, use amaranth_boards.icesugar",
DeprecationWarning, stacklevel=2)
| 28.875 | 80 | 0.796537 | 27 | 231 | 6.518519 | 0.555556 | 0.318182 | 0.375 | 0.295455 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.142857 | 231 | 7 | 81 | 33 | 0.883838 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0.203463 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
25523b047ebdce1ea7197a686505b8949336ea39 | 7,300 | py | Python | agent/model.py | RevanMacQueen/DRQN | 7b8a743935679f65817ad4f41d28c2c155e7a62a | [
"MIT"
] | null | null | null | agent/model.py | RevanMacQueen/DRQN | 7b8a743935679f65817ad4f41d28c2c155e7a62a | [
"MIT"
] | null | null | null | agent/model.py | RevanMacQueen/DRQN | 7b8a743935679f65817ad4f41d28c2c155e7a62a | [
"MIT"
] | 1 | 2021-03-14T23:31:53.000Z | 2021-03-14T23:31:53.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from agent.settings import device
class QNetwork(nn.Module):
def __init__(self, state_size, action_size, seed, num_layers=1, hidden_size=64):
'''
Initialize parameters and build model.
parameters:
state_size : ... | 33.796296 | 118 | 0.590685 | 945 | 7,300 | 4.392593 | 0.115344 | 0.084317 | 0.079499 | 0.073235 | 0.826307 | 0.814262 | 0.783185 | 0.774994 | 0.76584 | 0.745363 | 0 | 0.005608 | 0.316027 | 7,300 | 215 | 119 | 33.953488 | 0.825756 | 0.264384 | 0 | 0.734513 | 0 | 0 | 0.001642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088496 | false | 0 | 0.035398 | 0 | 0.212389 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c2f8e680be7cbff6533a87f6ac9cb029a9f892ee | 1,113 | py | Python | Find a Motif in DNA.py | RonitPrasad1/Project_Rosalind- | 59c59f6820b858f0dc08d62b2629a608d477ddb2 | [
"MIT"
] | 1 | 2022-03-22T22:33:14.000Z | 2022-03-22T22:33:14.000Z | Find a Motif in DNA.py | RonitPrasad1/Project_Rosalind- | 59c59f6820b858f0dc08d62b2629a608d477ddb2 | [
"MIT"
] | null | null | null | Find a Motif in DNA.py | RonitPrasad1/Project_Rosalind- | 59c59f6820b858f0dc08d62b2629a608d477ddb2 | [
"MIT"
] | null | null | null | #Find a Motif in DNA:
string = "AACTATGCAACTATGAAACTATGAACTATGATTCCAACTATGTAACTATGATGCATTAAACTATGAAACTATGAACTATGAACTATGAACTATGAAACTATGCGGAACTATGAACTATGGGGACAACTATGGAACTATGAGAACTATGTCAATTAACTATGCGTAACTATGGTCGAAACTATGAACTATGGAACTATGGCAACTATGCAAACTATGAAACTATGTAACTATGTGAAGGACGCACTAACTATGAGAAACTATGAACTATGAACTATGAACTATGCACG... | 185.5 | 993 | 0.949686 | 21 | 1,113 | 50.333333 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000927 | 0.030548 | 1,113 | 6 | 994 | 185.5 | 0.978684 | 0.017969 | 0 | 0 | 0 | 0 | 0.909926 | 0.901654 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6c66779aec6e2f8953f3fb0e7a31dc4654711b78 | 19,736 | py | Python | vela/vela/workers_api.py | go-vela/sdk-python | ca4425995bee43cb517e78fcd6702fec6f758222 | [
"Apache-2.0"
] | 1 | 2020-11-18T13:31:05.000Z | 2020-11-18T13:31:05.000Z | vela/vela/workers_api.py | go-vela/sdk-python | 304b2c8645dc6332fd69398c8c849a3961619c29 | [
"Apache-2.0"
] | 57 | 2020-04-30T19:02:47.000Z | 2022-03-28T07:39:58.000Z | vela/vela/workers_api.py | go-vela/sdk-python | 304b2c8645dc6332fd69398c8c849a3961619c29 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright (c) 2021 Target Brands, Inc. All rights reserved.
"""
Vela server
API for the Vela server # noqa: E501
OpenAPI spec version: 0.6.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
... | 37.449715 | 119 | 0.601135 | 2,249 | 19,736 | 5.052023 | 0.075145 | 0.052808 | 0.02834 | 0.031685 | 0.937511 | 0.932582 | 0.922109 | 0.909611 | 0.905386 | 0.902218 | 0 | 0.017801 | 0.30832 | 19,736 | 526 | 120 | 37.520913 | 0.814519 | 0.330665 | 0 | 0.784173 | 1 | 0 | 0.17697 | 0.033136 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039568 | false | 0 | 0.014388 | 0 | 0.111511 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
66570123503be41769c86a8b9649bdfbfe2ea7c6 | 5,658 | py | Python | sms.py | toxic-soul/toxicsoul | b24b93d69862baebd4f75bbfc15d3afab3a81de8 | [
"MIT"
] | null | null | null | sms.py | toxic-soul/toxicsoul | b24b93d69862baebd4f75bbfc15d3afab3a81de8 | [
"MIT"
] | null | null | null | sms.py | toxic-soul/toxicsoul | b24b93d69862baebd4f75bbfc15d3afab3a81de8 | [
"MIT"
] | null | null | null | #Compiled By Mohammad Alamin
#https://github.com/AK27HBD/
import marshal
exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xec\x06... | 1,414.5 | 5,585 | 0.736303 | 1,298 | 5,658 | 3.20339 | 0.365948 | 0.040404 | 0.04329 | 0.04329 | 0.015152 | 0.011544 | 0.011544 | 0.011544 | 0.011544 | 0.011544 | 0 | 0.229285 | 0.001767 | 5,658 | 4 | 5,585 | 1,414.5 | 0.506905 | 0.009544 | 0 | 0 | 0 | 1.5 | 0.529359 | 0.529181 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
b02584ef0405720901b3c4ed3b91381b1599c355 | 10,738 | py | Python | test/remote_test.py | GMOD/python-apollo3 | c1c47e985d95c8995374f6daa5c2e52b6d94ee0d | [
"MIT"
] | 5 | 2017-06-27T19:41:57.000Z | 2021-06-05T13:36:11.000Z | test/remote_test.py | galaxy-genome-annotation/python-apollo | 1257e050ee3fc0a7f7ab8a8c780aefee5c8143f8 | [
"MIT"
] | 28 | 2017-07-24T15:10:37.000Z | 2021-09-03T11:56:35.000Z | test/remote_test.py | MoffMade/python-apollo | 3cc61458cf5c20bd44fde656b8364417b915cfb8 | [
"MIT"
] | 10 | 2017-05-10T19:13:44.000Z | 2021-08-09T04:52:33.000Z | import glob
import json
import tarfile
import tempfile
import time
from . import ApolloTestCase, wa
class RemoteTest(ApolloTestCase):
def test_initial(self):
org_info = self.waitOrgCreated('temp_org')
assert org_info['commonName'] == 'temp_org'
def test_delete_organism(self):
org_... | 37.027586 | 165 | 0.617433 | 1,336 | 10,738 | 4.776198 | 0.077096 | 0.088858 | 0.057044 | 0.045134 | 0.913807 | 0.896881 | 0.883561 | 0.871337 | 0.863188 | 0.843441 | 0 | 0.01153 | 0.240734 | 10,738 | 289 | 166 | 37.155709 | 0.771127 | 0.004004 | 0 | 0.816832 | 0 | 0 | 0.186758 | 0.046385 | 0 | 0 | 0 | 0 | 0.341584 | 1 | 0.059406 | false | 0 | 0.029703 | 0 | 0.094059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b05353fc0f18a66fb46ed04c30dd8e55fdbdcce4 | 61,482 | py | Python | sdk/python/pulumi_vault/cert_auth_backend_role.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2019-10-07T17:44:18.000Z | 2022-03-30T20:46:33.000Z | sdk/python/pulumi_vault/cert_auth_backend_role.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 79 | 2019-10-11T18:13:07.000Z | 2022-03-31T21:09:41.000Z | sdk/python/pulumi_vault/cert_auth_backend_role.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-10-28T10:08:40.000Z | 2020-03-17T14:20:55.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 50.81157 | 149 | 0.670782 | 7,570 | 61,482 | 5.239234 | 0.038045 | 0.105671 | 0.06495 | 0.07375 | 0.954061 | 0.947379 | 0.941933 | 0.933839 | 0.931141 | 0.921333 | 0 | 0.000275 | 0.230604 | 61,482 | 1,209 | 150 | 50.853598 | 0.838153 | 0.375866 | 0 | 0.893417 | 1 | 0 | 0.106321 | 0.022515 | 0 | 0 | 0 | 0 | 0 | 1 | 0.167712 | false | 0.001567 | 0.007837 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
05f5c6287877415417aaf9e911414ec56040db41 | 264,847 | py | Python | proteus/points.py | dathath/IJCAI_2017_SD | 0e8912d9c6bc1e40213edbd303e56ab7fc81dbaa | [
"BSD-2-Clause"
] | null | null | null | proteus/points.py | dathath/IJCAI_2017_SD | 0e8912d9c6bc1e40213edbd303e56ab7fc81dbaa | [
"BSD-2-Clause"
] | null | null | null | proteus/points.py | dathath/IJCAI_2017_SD | 0e8912d9c6bc1e40213edbd303e56ab7fc81dbaa | [
"BSD-2-Clause"
] | null | null | null | import random
import copy
data_points=[]
from pwl_classifier import pwl_classifier
import numpy as np
from svm_classifier import svm_classifier
labels=[]
theta1=1.75
y1=0.125
x1=0.0
alpha1=0.125
labels.append(1)
xsampling=[x1**2,y1**2]
data_points.append(xsampling)
theta1=1.75
y1=0.09375
x1=0.0
alpha1=0.09375
labels.a... | 18.844955 | 123 | 0.761881 | 48,281 | 264,847 | 4.136265 | 0.02299 | 0.031562 | 0.050099 | 0.060119 | 0.965143 | 0.962765 | 0.962765 | 0.962765 | 0.962084 | 0.962084 | 0 | 0.315933 | 0.06187 | 264,847 | 14,053 | 124 | 18.846296 | 0.487827 | 0.000106 | 0 | 0.943211 | 0 | 0 | 0.000521 | 0.000393 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000356 | 0 | 0.000356 | 0.000213 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
af6611cdad67cbcfbcf60d1394e4a979ff9ae943 | 360 | py | Python | Modulos Proprios/vendas/calc_preco.py | pinheirogus/Curso-Python-Udemy | d6d52320426172e924081b9df619490baa8c6016 | [
"MIT"
] | 1 | 2021-09-01T01:58:13.000Z | 2021-09-01T01:58:13.000Z | Modulos Proprios/vendas/calc_preco.py | pinheirogus/Curso-Python-Udemy | d6d52320426172e924081b9df619490baa8c6016 | [
"MIT"
] | null | null | null | Modulos Proprios/vendas/calc_preco.py | pinheirogus/Curso-Python-Udemy | d6d52320426172e924081b9df619490baa8c6016 | [
"MIT"
] | null | null | null |
from vendas.formata import preco
def aumento(valor, porcentagem, formatacao = False):
r = valor + (valor * (porcentagem / 100))
if formatacao:
return preco.real(r)
return r
def reducao(valor, porcentagem, formatacao = False):
r = valor - (valor * (porcentagem / 100))
if formatacao:
... | 18.947368 | 52 | 0.638889 | 43 | 360 | 5.348837 | 0.395349 | 0.278261 | 0.226087 | 0.269565 | 0.791304 | 0.791304 | 0.791304 | 0.791304 | 0.791304 | 0.791304 | 0 | 0.022472 | 0.258333 | 360 | 18 | 53 | 20 | 0.838951 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 9 |
af8afc69502425bc86448d4ea45f6b9d49c8ca5f | 124 | py | Python | gsplines/services/__init__.py | rafaelrojasmiliani/gsplines | 663b10f6d53b498a1e892d9eb32a345153de36d2 | [
"MIT"
] | 3 | 2021-08-28T01:42:40.000Z | 2021-12-02T22:39:45.000Z | gsplines/services/__init__.py | rafaelrojasmiliani/gsplines | 663b10f6d53b498a1e892d9eb32a345153de36d2 | [
"MIT"
] | null | null | null | gsplines/services/__init__.py | rafaelrojasmiliani/gsplines | 663b10f6d53b498a1e892d9eb32a345153de36d2 | [
"MIT"
] | null | null | null |
from .gsplinesjson import piecewise2json
from .gsplinesjson import json2piecewise
from .xmlrpc import cGplineXMLRPCServer
| 24.8 | 41 | 0.862903 | 12 | 124 | 8.916667 | 0.583333 | 0.299065 | 0.411215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.112903 | 124 | 4 | 42 | 31 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
af9983c04edd8520181bdff6f2f5533dc6f72f9f | 637 | py | Python | test_for_lesson.py | Lutiklut/lesson6 | 8fc22af345fa21881c5b9fe53b457a82f2825155 | [
"Apache-2.0"
] | null | null | null | test_for_lesson.py | Lutiklut/lesson6 | 8fc22af345fa21881c5b9fe53b457a82f2825155 | [
"Apache-2.0"
] | null | null | null | test_for_lesson.py | Lutiklut/lesson6 | 8fc22af345fa21881c5b9fe53b457a82f2825155 | [
"Apache-2.0"
] | null | null | null | import divisor_master
# Test2
# проверка не кратно ли полученное число 2.
def test2():
assert int(divisor_master.big_simple_denominator(38))%2!=0
# Test3
# проверка правильности получаемых результатов
def test3():
assert int(divisor_master.big_simple_denominator(38))==19
# Test 4
#проверка выв... | 25.48 | 88 | 0.736264 | 85 | 637 | 5.388235 | 0.447059 | 0.141921 | 0.139738 | 0.19214 | 0.707424 | 0.707424 | 0.707424 | 0.707424 | 0.515284 | 0.515284 | 0 | 0.047619 | 0.175824 | 637 | 25 | 89 | 25.48 | 0.824762 | 0.436421 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.444444 | true | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
bbb7621b83f0da928819d0491c4cbfc1cb79387d | 102 | py | Python | testing/lowercasetf.py | worldwalker2000/pyxx | 8c6f129042241ca8b0eb274a69ca56b2ac1261cb | [
"MIT"
] | 4 | 2021-12-29T22:44:57.000Z | 2022-01-21T17:27:35.000Z | testing/lowercasetf.py | worldwalker2000/pyxx | 8c6f129042241ca8b0eb274a69ca56b2ac1261cb | [
"MIT"
] | 1 | 2022-03-09T20:56:56.000Z | 2022-03-09T21:57:04.000Z | testing/lowercasetf.py | worldwalker2000/pyxx | 8c6f129042241ca8b0eb274a69ca56b2ac1261cb | [
"MIT"
] | null | null | null | if True :
print(True)
else :
print(False)
if not False :
print(True)
else :
print(False)
| 7.285714 | 14 | 0.607843 | 15 | 102 | 4.133333 | 0.4 | 0.290323 | 0.419355 | 0.580645 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27451 | 102 | 13 | 15 | 7.846154 | 0.837838 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
bbbee393699b2f4dcad3236d5390c10627aa55c5 | 155 | py | Python | ganadores/admin.py | mmzepedab/pepsi | 4d4d8e70a65a1a9e70f71221fa6c8a01d0422523 | [
"MIT"
] | null | null | null | ganadores/admin.py | mmzepedab/pepsi | 4d4d8e70a65a1a9e70f71221fa6c8a01d0422523 | [
"MIT"
] | null | null | null | ganadores/admin.py | mmzepedab/pepsi | 4d4d8e70a65a1a9e70f71221fa6c8a01d0422523 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from django.contrib import admin
from .models import Ganador
admin.site.register(Ganador)
| 17.222222 | 32 | 0.806452 | 22 | 155 | 5.681818 | 0.5 | 0.16 | 0.272 | 0.368 | 0.448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135484 | 155 | 8 | 33 | 19.375 | 0.932836 | 0.167742 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
bbe1b1df8ebdee8d8a760ab91d44562a35326667 | 167 | py | Python | ibsng/handler/log_console/get_console_buffer.py | ParspooyeshFanavar/pyibsng | d48bcf4f25e3f23461528bf0ff8870cc3d537444 | [
"MIT"
] | 6 | 2018-03-06T10:16:36.000Z | 2021-12-05T12:43:10.000Z | ibsng/handler/log_console/get_console_buffer.py | ParspooyeshFanavar/pyibsng | d48bcf4f25e3f23461528bf0ff8870cc3d537444 | [
"MIT"
] | 3 | 2018-03-06T10:27:08.000Z | 2022-01-02T15:21:27.000Z | ibsng/handler/log_console/get_console_buffer.py | ParspooyeshFanavar/pyibsng | d48bcf4f25e3f23461528bf0ff8870cc3d537444 | [
"MIT"
] | 3 | 2018-01-06T16:28:31.000Z | 2018-09-17T19:47:19.000Z | """Get console buffer API method."""
from ibsng.handler.handler import Handler
class getConsoleBuffer(Handler):
"""Get console buffer method class."""
pass
| 18.555556 | 42 | 0.718563 | 20 | 167 | 6 | 0.6 | 0.166667 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167665 | 167 | 8 | 43 | 20.875 | 0.863309 | 0.377246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 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 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
bbe82ef09197ab0f4344d417ad7d8beb53b81071 | 512 | py | Python | mercury/utils/initiate_layer.py | ludius0/Mercury | 19831025a7325c59d77e9d430df4fd9167d36846 | [
"MIT"
] | null | null | null | mercury/utils/initiate_layer.py | ludius0/Mercury | 19831025a7325c59d77e9d430df4fd9167d36846 | [
"MIT"
] | null | null | null | mercury/utils/initiate_layer.py | ludius0/Mercury | 19831025a7325c59d77e9d430df4fd9167d36846 | [
"MIT"
] | null | null | null | import numpy as np
def _uniform(a, b, dtype=np.float32):
return np.random.uniform(-1., 1., size=(a, b)).astype(dtype) \
/ np.sqrt(a*b)
def _gaussian(a, b, dtype=np.float32):
return np.random.randn(a, b).astype(dtype) \
/ np.sqrt(a * b)
def _xavier(a, b, dtype=np.float32):
retur... | 30.117647 | 67 | 0.576172 | 85 | 512 | 3.423529 | 0.258824 | 0.075601 | 0.09622 | 0.123711 | 0.738832 | 0.738832 | 0.738832 | 0.738832 | 0.738832 | 0.639175 | 0 | 0.035354 | 0.226563 | 512 | 17 | 68 | 30.117647 | 0.699495 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.307692 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 8 |
a562e58cceb30efb58cadc31ee0616a5de44481c | 98,994 | py | Python | angr/procedures/definitions/win32_resutils.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/definitions/win32_resutils.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/definitions/win32_resutils.py | r4b3rt/angr | c133cfd4f83ffea2a1d9e064241e9459eaabc55f | [
"BSD-2-Clause"
] | null | null | null | # pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling... | 380.746154 | 2,558 | 0.74555 | 10,301 | 98,994 | 7.091253 | 0.043394 | 0.13427 | 0.121347 | 0.181171 | 0.907799 | 0.90669 | 0.902173 | 0.900105 | 0.898025 | 0.894246 | 0 | 0.019587 | 0.068065 | 98,994 | 259 | 2,559 | 382.216216 | 0.772199 | 0.000283 | 0 | 0 | 0 | 0 | 0.264409 | 0.059154 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037594 | 0 | 0.037594 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
a5aac05b41ab68e6724031894736e38f0ed75c40 | 9,558 | py | Python | pbj/electrostatics/pb_formulation/formulations/common.py | bem4solvation/pbj | 4fa9c111596359192539787ae241a79d4316b15b | [
"MIT"
] | null | null | null | pbj/electrostatics/pb_formulation/formulations/common.py | bem4solvation/pbj | 4fa9c111596359192539787ae241a79d4316b15b | [
"MIT"
] | 1 | 2022-02-18T17:34:37.000Z | 2022-02-18T17:34:37.000Z | pbj/electrostatics/pb_formulation/formulations/common.py | bem4solvation/pbj | 4fa9c111596359192539787ae241a79d4316b15b | [
"MIT"
] | null | null | null | import bempp.api
import numpy as np
import time
import pbj.electrostatics.utils as utils
def calculate_potential_one_surface(self, rerun_all):
# Start the overall timing for the whole process
start_time = time.time()
if rerun_all:
self.initialise_matrices()
self.assembl... | 39.659751 | 146 | 0.607135 | 1,072 | 9,558 | 5.165112 | 0.126866 | 0.049846 | 0.019505 | 0.024562 | 0.880621 | 0.851544 | 0.842153 | 0.81145 | 0.81145 | 0.81145 | 0 | 0.000609 | 0.313245 | 9,558 | 241 | 147 | 39.659751 | 0.842931 | 0.15882 | 0 | 0.709497 | 0 | 0 | 0.134865 | 0.048701 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022346 | false | 0.005587 | 0.039106 | 0 | 0.061453 | 0.055866 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3c136ddfeeadcad881dd3a13b0e371196081a61c | 149 | py | Python | tests/parser/bug.29.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/bug.29.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | tests/parser/bug.29.test.py | veltri/DLV2 | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | [
"Apache-2.0"
] | null | null | null | input = """
:- a, c.
a | b.
a | a.
fact1.
:- fact1, not c.
"""
output = """
:- a, c.
a | b.
a | a.
fact1.
:- fact1, not c.
"""
| 7.095238 | 17 | 0.342282 | 22 | 149 | 2.318182 | 0.318182 | 0.078431 | 0.117647 | 0.156863 | 0.784314 | 0.784314 | 0.784314 | 0.784314 | 0.784314 | 0.784314 | 0 | 0.043956 | 0.389262 | 149 | 20 | 18 | 7.45 | 0.516484 | 0 | 0 | 0.857143 | 0 | 0 | 0.766917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
3c89f17803d66a11488351c4fa70fb6cb9968914 | 47 | py | Python | basicts/archs/Stat_arch/__init__.py | zezhishao/GuanCang_BasicTS | bbf82b9d08e82db78d4e9e9b11f43a676b54ad7c | [
"Apache-2.0"
] | 3 | 2022-02-22T12:50:08.000Z | 2022-03-13T03:38:46.000Z | basicts/archs/Stat_arch/__init__.py | zezhishao/GuanCang_BasicTS | bbf82b9d08e82db78d4e9e9b11f43a676b54ad7c | [
"Apache-2.0"
] | null | null | null | basicts/archs/Stat_arch/__init__.py | zezhishao/GuanCang_BasicTS | bbf82b9d08e82db78d4e9e9b11f43a676b54ad7c | [
"Apache-2.0"
] | null | null | null | from basicts.archs.Stat_arch.Stat_arch import * | 47 | 47 | 0.851064 | 8 | 47 | 4.75 | 0.75 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 47 | 1 | 47 | 47 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.