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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b01a905aaf7690b71299ed017d1c0a94d1771e58 | 17 | py | Python | health/exit_codes.py | Erich-Reitz/myHealth | ddc9888df78326f11bebe4bdf5b3bff08a6a889d | [
"BSD-2-Clause"
] | null | null | null | health/exit_codes.py | Erich-Reitz/myHealth | ddc9888df78326f11bebe4bdf5b3bff08a6a889d | [
"BSD-2-Clause"
] | null | null | null | health/exit_codes.py | Erich-Reitz/myHealth | ddc9888df78326f11bebe4bdf5b3bff08a6a889d | [
"BSD-2-Clause"
] | null | null | null | EXIT_SUCCESS = 0
| 8.5 | 16 | 0.764706 | 3 | 17 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.176471 | 17 | 1 | 17 | 17 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b02480622dd8469ae177e90a6542df7844bb5c99 | 87 | py | Python | opencv/build/python_loader/cv2/config.py | soyyuz/opencv-contrib-ARM64 | 25386df773f88a071532ec69ff541c31e62ec8f2 | [
"Apache-2.0"
] | null | null | null | opencv/build/python_loader/cv2/config.py | soyyuz/opencv-contrib-ARM64 | 25386df773f88a071532ec69ff541c31e62ec8f2 | [
"Apache-2.0"
] | null | null | null | opencv/build/python_loader/cv2/config.py | soyyuz/opencv-contrib-ARM64 | 25386df773f88a071532ec69ff541c31e62ec8f2 | [
"Apache-2.0"
] | 1 | 2022-03-27T03:35:07.000Z | 2022-03-27T03:35:07.000Z | import os
BINARIES_PATHS = [
'/home/epasholl/opencv/build/lib'
] + BINARIES_PATHS
| 14.5 | 37 | 0.712644 | 11 | 87 | 5.454545 | 0.818182 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 87 | 5 | 38 | 17.4 | 0.821918 | 0 | 0 | 0 | 0 | 0 | 0.356322 | 0.356322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b0340fa78d96326468161eba8460653542e4467c | 1,706 | py | Python | SeniorYear/Comp6700/CA03/test/StadiumJumpScoreTest.py | mtthwmths/Auburn-Code | 09ed4cdaea0460855ab3c29ba6c22ee05b9af00e | [
"Unlicense"
] | null | null | null | SeniorYear/Comp6700/CA03/test/StadiumJumpScoreTest.py | mtthwmths/Auburn-Code | 09ed4cdaea0460855ab3c29ba6c22ee05b9af00e | [
"Unlicense"
] | null | null | null | SeniorYear/Comp6700/CA03/test/StadiumJumpScoreTest.py | mtthwmths/Auburn-Code | 09ed4cdaea0460855ab3c29ba6c22ee05b9af00e | [
"Unlicense"
] | null | null | null | import unittest
import CAO3.prod.StadiumJumpScore as StadiumJumpScore
class StadiumJumpScoreTest(unittest.TestCase):
def scenario01(self):
myJumpScore = StadiumJumpScore.StadiumJumpScore()
constructed = myJumpScore.isinstance(StadiumJumpScore)
self.assertEqual(constructed, True)
... | 34.816327 | 62 | 0.678781 | 130 | 1,706 | 8.846154 | 0.269231 | 0.117391 | 0.242609 | 0.367826 | 0.455652 | 0.253913 | 0.253913 | 0 | 0 | 0 | 0 | 0.023024 | 0.236225 | 1,706 | 49 | 63 | 34.816327 | 0.859555 | 0 | 0 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 1 | 0.257143 | false | 0 | 0.057143 | 0 | 0.342857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b0403ec2d5d22ca8d80907415461c4b19dc61ebe | 204 | py | Python | syntax2/mistake/association.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 13 | 2018-12-17T23:30:54.000Z | 2021-12-29T14:31:43.000Z | syntax2/mistake/association.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 36 | 2018-06-07T21:34:13.000Z | 2022-03-13T21:01:43.000Z | syntax2/mistake/association.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 2 | 2021-01-03T11:47:20.000Z | 2021-12-29T14:31:49.000Z | #Объединение
text = [
'П',
'р',
'и',
'в',
'е',
'т',
'к',
'т',
'о',
]
def association(text):
#re = '\@'.join(text)
word = ''
i = 0
while True:
if __name__ == '__main__':
association(text) | 8.869565 | 26 | 0.490196 | 27 | 204 | 3.407407 | 0.814815 | 0.326087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.240196 | 204 | 23 | 27 | 8.869565 | 0.587097 | 0.151961 | 0 | 0.117647 | 0 | 0 | 0.098837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b0441cb1d0d7877e263a5ff563ef8c59c60854ee | 230 | py | Python | ch99/bookmark/models.py | izowooi/study-django | a380dda246241fcda38df25bc17f4181e071b280 | [
"MIT"
] | null | null | null | ch99/bookmark/models.py | izowooi/study-django | a380dda246241fcda38df25bc17f4181e071b280 | [
"MIT"
] | null | null | null | ch99/bookmark/models.py | izowooi/study-django | a380dda246241fcda38df25bc17f4181e071b280 | [
"MIT"
] | null | null | null | from django.db import models
class Bookmark(models.Model):
title = models.CharField('TITLE', max_length=100, blank=True)
url = models.URLField('URL', unique=True)
def __str__(self):
return "%s %s" %(self.title, self.url) | 25.555556 | 62 | 0.708696 | 34 | 230 | 4.647059 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015075 | 0.134783 | 230 | 9 | 63 | 25.555556 | 0.778894 | 0 | 0 | 0 | 0 | 0 | 0.056277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c6862c0a03fbba56ea2c16c49bcc540aff7cfdb8 | 447 | py | Python | robolearn/utils/data_management/fake_replay_buffer.py | domingoesteban/robolearn | 0d20125425c352b80ef2eeed1c0b11ab6497b11a | [
"BSD-3-Clause"
] | 1 | 2020-01-13T09:44:22.000Z | 2020-01-13T09:44:22.000Z | robolearn/utils/data_management/fake_replay_buffer.py | domingoesteban/robolearn | 0d20125425c352b80ef2eeed1c0b11ab6497b11a | [
"BSD-3-Clause"
] | null | null | null | robolearn/utils/data_management/fake_replay_buffer.py | domingoesteban/robolearn | 0d20125425c352b80ef2eeed1c0b11ab6497b11a | [
"BSD-3-Clause"
] | 1 | 2021-12-22T00:41:20.000Z | 2021-12-22T00:41:20.000Z | import numpy as np
from robolearn.utils.data_management.replay_buffer import ReplayBuffer
class FakeReplayBuffer(ReplayBuffer):
def __init__(self):
pass
def add_sample(self, observation, action, reward, terminal,
next_observation, **kwargs):
pass
def terminate_episode... | 20.318182 | 70 | 0.66443 | 50 | 447 | 5.7 | 0.7 | 0.098246 | 0.077193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003049 | 0.266219 | 447 | 21 | 71 | 21.285714 | 0.865854 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.285714 | 0.142857 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c6867ecbffbf6db1d85a83d4e63be22a071cf400 | 121 | py | Python | pyqt_helper/__main__.py | morefigs/pyqt-ui-helper | 0f80f8483f57fc58a1c58fb2832094c7931b9fa6 | [
"MIT"
] | 2 | 2019-07-08T22:57:00.000Z | 2022-01-07T10:36:53.000Z | pyqt_helper/__main__.py | morefigs/pyqt-ui-helper | 0f80f8483f57fc58a1c58fb2832094c7931b9fa6 | [
"MIT"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | pyqt_helper/__main__.py | morefigs/pyqt-ui-helper | 0f80f8483f57fc58a1c58fb2832094c7931b9fa6 | [
"MIT"
] | null | null | null | from sys import argv
from .pyqt_helper import main
try:
main(argv)
except TypeError as e:
print(e)
exit(1)
| 12.1 | 29 | 0.677686 | 20 | 121 | 4.05 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.247934 | 121 | 9 | 30 | 13.444444 | 0.879121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c690969b8f49f694bd01717fea59073ce8edd798 | 3,059 | py | Python | models/__init__.py | CellProfiling/imjoy-interactive-segmentation | 4c920bd6b619407bfe2ddf321f4452a4517adbbd | [
"MIT"
] | 12 | 2020-12-02T11:44:24.000Z | 2022-03-24T01:51:12.000Z | models/__init__.py | CellProfiling/imjoy-interactive-segmentation | 4c920bd6b619407bfe2ddf321f4452a4517adbbd | [
"MIT"
] | 10 | 2020-11-27T14:23:24.000Z | 2021-03-05T18:37:38.000Z | models/__init__.py | CellProfiling/imjoy-interactive-segmentation | 4c920bd6b619407bfe2ddf321f4452a4517adbbd | [
"MIT"
] | 6 | 2020-12-02T16:09:02.000Z | 2022-03-24T01:51:17.000Z | class InteractiveModel:
"""Interactive model interface"""
def __init__(self, **kwargs):
"""load and initialize the model"""
pass
def transform_labels(self, label_image):
"""transform the labels which will be used as training target
Parameters
--------------
... | 25.07377 | 77 | 0.498529 | 281 | 3,059 | 5.345196 | 0.263345 | 0.047936 | 0.095872 | 0.075899 | 0.41478 | 0.365513 | 0.297603 | 0.297603 | 0.297603 | 0.297603 | 0 | 0.000516 | 0.366133 | 3,059 | 121 | 78 | 25.280992 | 0.77411 | 0.556391 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473684 | false | 0.052632 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c6a39152362027bad2804c629403a85c37e0a19f | 650 | py | Python | migrations/versions/0113_job_created_by_nullable.py | tlwr/notifications-api | 88a6b7729edb9be41ce3e7c027f1452b7b6d00d2 | [
"MIT"
] | 51 | 2016-04-03T23:36:17.000Z | 2022-03-21T20:04:52.000Z | migrations/versions/0113_job_created_by_nullable.py | tlwr/notifications-api | 88a6b7729edb9be41ce3e7c027f1452b7b6d00d2 | [
"MIT"
] | 1,335 | 2015-12-15T14:28:50.000Z | 2022-03-30T16:24:27.000Z | migrations/versions/0113_job_created_by_nullable.py | tlwr/notifications-api | 88a6b7729edb9be41ce3e7c027f1452b7b6d00d2 | [
"MIT"
] | 30 | 2016-01-08T19:05:32.000Z | 2021-12-20T16:37:23.000Z | """empty message
Revision ID: 0113_job_created_by_nullable
Revises: 0112_add_start_end_dates
Create Date: 2017-07-27 11:12:34.938086
"""
# revision identifiers, used by Alembic.
revision = '0113_job_created_by_nullable'
down_revision = '0112_add_start_end_dates'
from alembic import op
import sqlalchemy as sa
from s... | 26 | 117 | 0.769231 | 103 | 650 | 4.621359 | 0.61165 | 0.094538 | 0.058824 | 0.067227 | 0.336134 | 0.151261 | 0.151261 | 0.151261 | 0 | 0 | 0 | 0.064982 | 0.147692 | 650 | 24 | 118 | 27.083333 | 0.794224 | 0.453846 | 0 | 0 | 0 | 0 | 0.249275 | 0.150725 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c6c25536068f1cfcc913b79f2a35a6a5b5de6214 | 219 | py | Python | manimlib/event_handler/__init__.py | iterater/manim | f1c50640a3792b4e78be014f32fa3dc53d743999 | [
"MIT"
] | 45,280 | 2015-11-21T20:55:40.000Z | 2022-03-31T23:34:21.000Z | manimlib/event_handler/__init__.py | AlenkaSchillerka/MMYYYmanim | 2551fa4cbe16e018b1865f794912badeab663056 | [
"MIT"
] | 1,193 | 2016-05-26T03:30:57.000Z | 2022-03-29T00:40:44.000Z | manimlib/event_handler/__init__.py | AlenkaSchillerka/MMYYYmanim | 2551fa4cbe16e018b1865f794912badeab663056 | [
"MIT"
] | 5,833 | 2015-11-22T11:57:24.000Z | 2022-03-31T21:15:20.000Z | from manimlib.event_handler.event_dispatcher import EventDispatcher
# This is supposed to be a Singleton
# i.e., during runtime there should be only one object of Event Dispatcher
EVENT_DISPATCHER = EventDispatcher()
| 31.285714 | 74 | 0.817352 | 31 | 219 | 5.677419 | 0.774194 | 0.255682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 219 | 6 | 75 | 36.5 | 0.931217 | 0.488584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c6d5b3b8f2e428064f84706acdac0fa3835747a5 | 330 | py | Python | py/09.py | fenglyu/projecteuler | f12746e20fd562e03d3a0e5ff6f4e944cb435aa1 | [
"MIT"
] | null | null | null | py/09.py | fenglyu/projecteuler | f12746e20fd562e03d3a0e5ff6f4e944cb435aa1 | [
"MIT"
] | null | null | null | py/09.py | fenglyu/projecteuler | f12746e20fd562e03d3a0e5ff6f4e944cb435aa1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# a^2 + b^2 = c^2
# c = 1000 - (a+b)
# results in : 1000*1000 - 2000*(a+b) + 2*a*b == 0
def main():
for i in range(1,1000):
for j in range(1,1000):
if 1000*1000 - 2000*(i+j) + 2*i*j == 0:
print((i * j * (1000 -i -j)))
if __name__ == "__main__":
... | 20.625 | 52 | 0.454545 | 59 | 330 | 2.40678 | 0.389831 | 0.056338 | 0.169014 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226244 | 0.330303 | 330 | 15 | 53 | 22 | 0.41629 | 0.330303 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c6d759ed4804bf2b8ccaa0f2094b70830acc898c | 249 | py | Python | fabfile/service/__init__.py | oleiade/Fridge | caecfb46f019c8faeb71531372e6025947a20137 | [
"MIT"
] | 1 | 2021-10-20T11:40:16.000Z | 2021-10-20T11:40:16.000Z | fabfile/service/__init__.py | oleiade/Fridge | caecfb46f019c8faeb71531372e6025947a20137 | [
"MIT"
] | null | null | null | fabfile/service/__init__.py | oleiade/Fridge | caecfb46f019c8faeb71531372e6025947a20137 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2012 theo crevon
#
# See the file LICENSE for copying permission.
from fabric.api import task
import pureftpd
@task
def start_all():
"""Starts all the fridge services on hosts"""
pureftpd.start()
| 15.5625 | 49 | 0.682731 | 35 | 249 | 4.828571 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.200803 | 249 | 15 | 50 | 16.6 | 0.824121 | 0.554217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c6f9713eb0e0d79b9e81dd516ca34be490fa56b0 | 590 | py | Python | odious/config.py | microprediction/odious | bbc2afae5840ea1d6ca9e713e3f30cd8692d601f | [
"MIT"
] | null | null | null | odious/config.py | microprediction/odious | bbc2afae5840ea1d6ca9e713e3f30cd8692d601f | [
"MIT"
] | null | null | null | odious/config.py | microprediction/odious | bbc2afae5840ea1d6ca9e713e3f30cd8692d601f | [
"MIT"
] | null | null | null | from timemachines import OPTIMIZERS
import random
from timemachines.optimizers.odious import optimizer_name
import os
# Select optimizers that stop after a pre-specified number of function evaluations
stopping = ['ax', 'pysot', 'optuna', 'hyperopt']
STOPPING_OPTIMIZERS = [o for o in OPTIMIZERS if any(g in o.__name__ ... | 26.818182 | 87 | 0.761017 | 80 | 590 | 5.4 | 0.5625 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023483 | 0.133898 | 590 | 21 | 88 | 28.095238 | 0.821918 | 0.135593 | 0 | 0 | 0 | 0 | 0.153846 | 0.04142 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.363636 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
059a3a24b119c4412410a59b09782979abbd6fdc | 685 | py | Python | classCoordinate.py | medifle/python_6.00.1x | d40629f83e09b02cd4fc4e79e790d51d9b0ebf63 | [
"MIT"
] | 4 | 2015-10-27T15:42:33.000Z | 2018-03-08T07:16:26.000Z | classCoordinate.py | medifle/python_6.00.1x | d40629f83e09b02cd4fc4e79e790d51d9b0ebf63 | [
"MIT"
] | null | null | null | classCoordinate.py | medifle/python_6.00.1x | d40629f83e09b02cd4fc4e79e790d51d9b0ebf63 | [
"MIT"
] | null | null | null | import math
class Coordinate(object):
def __init__(self, x=0, y=0):
self.x = x
self.y = y
def __str__(self):
return "<" + str(self.x) + "," + str(self.y) + ">"
#if __str__() is not defined but __repr__() is, then __repr() can also be used just like __str__()
#tr... | 38.055556 | 106 | 0.585401 | 105 | 685 | 3.533333 | 0.457143 | 0.067385 | 0.032345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008097 | 0.278832 | 685 | 18 | 107 | 38.055556 | 0.742915 | 0.362044 | 0 | 0 | 0 | 0 | 0.057471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.272727 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
05b159a1e5f2ede2d5a060a1069f6919d3d5cca5 | 91 | py | Python | venv/Lib/site-packages/numexpr/version.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | venv/Lib/site-packages/numexpr/version.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | venv/Lib/site-packages/numexpr/version.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | # THIS FILE IS GENERATED BY `SETUP.PY`
version = '2.7.3'
numpy_build_version = '1.17.3'
| 22.75 | 39 | 0.67033 | 17 | 91 | 3.470588 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093333 | 0.175824 | 91 | 3 | 40 | 30.333333 | 0.693333 | 0.395604 | 0 | 0 | 1 | 0 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
05d4a5663e6d0a2fdc23f1c449d0c07406ed2a63 | 2,601 | py | Python | port.py | przemyslawgarlinski/pi_iowrap | 3eef421ebe718dd3bfe1723d1ede6b6a7bc76599 | [
"MIT"
] | 1 | 2017-11-26T22:12:16.000Z | 2017-11-26T22:12:16.000Z | port.py | przemyslawgarlinski/pi_iowrap | 3eef421ebe718dd3bfe1723d1ede6b6a7bc76599 | [
"MIT"
] | null | null | null | port.py | przemyslawgarlinski/pi_iowrap | 3eef421ebe718dd3bfe1723d1ede6b6a7bc76599 | [
"MIT"
] | null | null | null | """Defines single port on raspberry pi.
Because it is a composition of an interface it belongs to, it is more
like a proxy for commands that are sent from single port to gpio.
"""
import logging
from base import InOutInterface
class Port(object):
def __init__(self, interface, number):
self._interface... | 27.378947 | 77 | 0.654364 | 343 | 2,601 | 4.746356 | 0.239067 | 0.127764 | 0.060197 | 0.084767 | 0.510442 | 0.310811 | 0.233415 | 0.201474 | 0.201474 | 0.201474 | 0 | 0.004134 | 0.256055 | 2,601 | 94 | 78 | 27.670213 | 0.837209 | 0.228374 | 0 | 0.2 | 0 | 0 | 0.05211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.309091 | false | 0 | 0.036364 | 0.145455 | 0.581818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
05e14beef42d3b1afc9ae2a58d9370b61c96e17e | 773 | py | Python | murder/template.py | andr-kun/ncss-murder | aa60648cd99b8384629984cb6de1394f3c0b7099 | [
"MIT"
] | null | null | null | murder/template.py | andr-kun/ncss-murder | aa60648cd99b8384629984cb6de1394f3c0b7099 | [
"MIT"
] | null | null | null | murder/template.py | andr-kun/ncss-murder | aa60648cd99b8384629984cb6de1394f3c0b7099 | [
"MIT"
] | null | null | null | import os
from tornado.template import Loader, Template
class MurderTemplate(Template):
def generate(self, **kwargs):
kwargs.update({
'template': template_loader,
})
return super(MurderTemplate, self).generate(**kwargs)
class TemplateLoader(Loader):
def _create_template(self, name):
path = os.path.join(s... | 25.766667 | 61 | 0.730918 | 96 | 773 | 5.8125 | 0.354167 | 0.075269 | 0.0681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122898 | 773 | 29 | 62 | 26.655172 | 0.823009 | 0 | 0 | 0 | 1 | 0 | 0.047865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0.086957 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
05e9f827ae59cd4451ec955b28598cbc8c91c2d4 | 124 | py | Python | project/AutoClickTool/auto/write.py | guest-os/PYthon | 6aadd78240a00d74ec8b839cab570128df6c5d4a | [
"Apache-2.0"
] | null | null | null | project/AutoClickTool/auto/write.py | guest-os/PYthon | 6aadd78240a00d74ec8b839cab570128df6c5d4a | [
"Apache-2.0"
] | null | null | null | project/AutoClickTool/auto/write.py | guest-os/PYthon | 6aadd78240a00d74ec8b839cab570128df6c5d4a | [
"Apache-2.0"
] | null | null | null | f = open('config.txt', 'w')
a = 4000
while a <= 5000:
f.write('点击:850, 550\n输入:%s\n暂停:0.01秒\n' % a)
a += 1
f.close() | 20.666667 | 49 | 0.524194 | 26 | 124 | 2.5 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 0.209677 | 124 | 6 | 50 | 20.666667 | 0.479592 | 0 | 0 | 0 | 0 | 0 | 0.328 | 0.176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
af15ef07595fc5d24144b84260767a22cb1b4934 | 1,626 | py | Python | CA3Project/appone/views.py | JustLuke000/CA3-SDEV | ebe9cf56c95fd1c4975d8577143ee60105f74609 | [
"CC0-1.0"
] | null | null | null | CA3Project/appone/views.py | JustLuke000/CA3-SDEV | ebe9cf56c95fd1c4975d8577143ee60105f74609 | [
"CC0-1.0"
] | null | null | null | CA3Project/appone/views.py | JustLuke000/CA3-SDEV | ebe9cf56c95fd1c4975d8577143ee60105f74609 | [
"CC0-1.0"
] | null | null | null | # Create your views here.
from django.http import HttpResponse
from django.shortcuts import render
from django.utils.translation import ugettext_lazy as _
from datetime import date
import calendar
from calendar import HTMLCalendar
# def index(request):
# return HttpResponse("Hello World. You're at the home page o... | 33.875 | 84 | 0.664207 | 205 | 1,626 | 5.214634 | 0.419512 | 0.060804 | 0.071094 | 0.072965 | 0.099158 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014537 | 0.196187 | 1,626 | 48 | 85 | 33.875 | 0.803366 | 0.692497 | 0 | 0 | 0 | 0 | 0.111111 | 0.09188 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
af29bfb7935ceddc6e077335d92b35fa05400846 | 23 | py | Python | instance/config.py | kenmutuma001/one-min--pitch_perfect | e2babf0870ce9a14fed4bb122dd2831f49f30464 | [
"Unlicense"
] | null | null | null | instance/config.py | kenmutuma001/one-min--pitch_perfect | e2babf0870ce9a14fed4bb122dd2831f49f30464 | [
"Unlicense"
] | 5 | 2021-03-19T00:19:04.000Z | 2022-01-13T01:12:44.000Z | instance/config.py | kenmutuma001/one-min--pitch_perfect | e2babf0870ce9a14fed4bb122dd2831f49f30464 | [
"Unlicense"
] | null | null | null | SECRET_KEY = "kennedy"
| 11.5 | 22 | 0.73913 | 3 | 23 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
af52decf137c0b0d6c665ee3daee73c091d70bdd | 1,411 | py | Python | noisy_labels_AN_VOC.py | 2678918253/Learning-with-Noisy-Class-Labels-for-Instance-Segmentation | 6b0ad08b79e0b372ae90cba7a31db00d23f43b3d | [
"Apache-2.0"
] | 28 | 2020-07-13T02:18:21.000Z | 2022-02-20T07:22:15.000Z | noisy_labels_AN_VOC.py | 2678918253/Learning-with-Noisy-Class-Labels-for-Instance-Segmentation | 6b0ad08b79e0b372ae90cba7a31db00d23f43b3d | [
"Apache-2.0"
] | 3 | 2020-09-25T11:10:14.000Z | 2021-02-01T02:28:03.000Z | noisy_labels_AN_VOC.py | 2678918253/Learning-with-Noisy-Class-Labels-for-Instance-Segmentation | 6b0ad08b79e0b372ae90cba7a31db00d23f43b3d | [
"Apache-2.0"
] | 1 | 2020-09-28T01:10:57.000Z | 2020-09-28T01:10:57.000Z | import numpy as np
import json
def unjson(file):
with open(file, 'r') as fo:
dict = json.load(fo)
return dict
# r is noise rate
r = 0.2
count = 0
p_a = ''
p_g = ''
a = unjson(p_a)
for i in range(len(a['annotations'])):
if np.random.random() < r:
# bird -> aeroplane
if a['annota... | 28.22 | 54 | 0.518781 | 185 | 1,411 | 3.848649 | 0.32973 | 0.286517 | 0.292135 | 0.47191 | 0.573034 | 0.411517 | 0 | 0 | 0 | 0 | 0 | 0.026919 | 0.289157 | 1,411 | 49 | 55 | 28.795918 | 0.682951 | 0.102055 | 0 | 0 | 0 | 0 | 0.290374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.121212 | 0.030303 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
af93a2e9ed264a0d7c97b476101ea635baa87f9d | 66 | py | Python | kcs/tas_change/__init__.py | evertrol/kcs | 9e69aa8d79f6810974d9e9186687152e8e97aa1b | [
"Apache-2.0"
] | null | null | null | kcs/tas_change/__init__.py | evertrol/kcs | 9e69aa8d79f6810974d9e9186687152e8e97aa1b | [
"Apache-2.0"
] | 7 | 2020-03-23T07:06:47.000Z | 2020-04-15T10:21:05.000Z | kcs/tas_change/__init__.py | eucp-project/kcs | a6563a523f9f1d6f1dbce88793e81b5de41a0d69 | [
"Apache-2.0"
] | null | null | null | """DUMMY DOCSTRING"""
from .core import calc
__all__ = ['calc']
| 11 | 22 | 0.651515 | 8 | 66 | 4.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 66 | 5 | 23 | 13.2 | 0.709091 | 0.227273 | 0 | 0 | 0 | 0 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bb6d7d544720d16f63589e24a94dbb6dec566bf3 | 1,167 | py | Python | setup.py | shibukawa/username_py | a8bdb0c2a0e7d00d8e15b89696caf8bc561e578a | [
"MIT"
] | 1 | 2016-07-14T05:24:02.000Z | 2016-07-14T05:24:02.000Z | setup.py | shibukawa/displayname_py | a8bdb0c2a0e7d00d8e15b89696caf8bc561e578a | [
"MIT"
] | null | null | null | setup.py | shibukawa/displayname_py | a8bdb0c2a0e7d00d8e15b89696caf8bc561e578a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
#from distutils.core import setup
setup(name='displayname',
version='0.1.0',
description='Getting user name for display',
long_description='''
It gets user name for display ("First Family") from operating system.
It is a FullName on Windows, RealNa... | 33.342857 | 69 | 0.617823 | 129 | 1,167 | 5.55814 | 0.589147 | 0.185495 | 0.244073 | 0.108787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01611 | 0.255356 | 1,167 | 34 | 70 | 34.323529 | 0.808976 | 0.044559 | 0 | 0 | 0 | 0 | 0.642408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bba2ddbe4425dabcf775bfbc9604ff835aa03028 | 177 | py | Python | test/test_arnold_winther.py | sigvaldm/symfem | 5b51748a49015bb37839d1ca39bb26348b33936a | [
"MIT"
] | 13 | 2021-02-05T13:38:29.000Z | 2022-03-26T18:41:55.000Z | test/test_arnold_winther.py | sigvaldm/symfem | 5b51748a49015bb37839d1ca39bb26348b33936a | [
"MIT"
] | 65 | 2021-01-01T18:10:56.000Z | 2022-03-28T07:40:40.000Z | test/test_arnold_winther.py | sigvaldm/symfem | 5b51748a49015bb37839d1ca39bb26348b33936a | [
"MIT"
] | 4 | 2021-08-10T11:36:04.000Z | 2021-09-29T16:13:56.000Z | import pytest
from symfem import create_element
@pytest.mark.parametrize("order", range(3, 7))
def test_create(order):
create_element("triangle", "Arnold-Winther", order)
| 22.125 | 55 | 0.757062 | 24 | 177 | 5.458333 | 0.708333 | 0.198473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012739 | 0.112994 | 177 | 7 | 56 | 25.285714 | 0.821656 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bba3312652ef6ec0e14c4855e5ece8b058ed237f | 707 | py | Python | System/Environment/setenv.py | Deteriorator/Programming-Python | 0c259093de011c0d5dadaba256a2bc9b2294e6c8 | [
"Apache-2.0"
] | null | null | null | System/Environment/setenv.py | Deteriorator/Programming-Python | 0c259093de011c0d5dadaba256a2bc9b2294e6c8 | [
"Apache-2.0"
] | null | null | null | System/Environment/setenv.py | Deteriorator/Programming-Python | 0c259093de011c0d5dadaba256a2bc9b2294e6c8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
-------------------------------------------------------------------------------
@Name: setenv.py
@Desc:
@Author: liangz.org@gmail.com
@Create: 2020.05.11 9:40
-------------------------------------------------------------------------------
@C... | 25.25 | 79 | 0.400283 | 64 | 707 | 4.421875 | 0.5625 | 0.127208 | 0.240283 | 0.14841 | 0.282686 | 0.282686 | 0.282686 | 0.282686 | 0 | 0 | 0 | 0.031898 | 0.113154 | 707 | 27 | 80 | 26.185185 | 0.419458 | 0.582744 | 0 | 0.222222 | 0 | 0 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bbe45cf7c7dedc9bf2f9064d0dc6476348705050 | 1,601 | py | Python | pipetorch/model/transfer.py | jeroenvuurens/pipetorch | 92250df3f6ad1b409dfb32d492130029c076150b | [
"MIT"
] | null | null | null | pipetorch/model/transfer.py | jeroenvuurens/pipetorch | 92250df3f6ad1b409dfb32d492130029c076150b | [
"MIT"
] | null | null | null | pipetorch/model/transfer.py | jeroenvuurens/pipetorch | 92250df3f6ad1b409dfb32d492130029c076150b | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torchvision.models as models
import os
def last_container(last):
try:
l = last_container(last.children())
if l is not None:
return l
except: pass
try:
if len(last._modules) > 0 and next(reversed(last._modules.values())).out_featu... | 27.603448 | 94 | 0.62336 | 208 | 1,601 | 4.596154 | 0.326923 | 0.108787 | 0.07113 | 0.041841 | 0.209205 | 0.209205 | 0.209205 | 0.209205 | 0.119247 | 0.119247 | 0 | 0.005968 | 0.267333 | 1,601 | 57 | 95 | 28.087719 | 0.809037 | 0 | 0 | 0.26087 | 0 | 0 | 0.013117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23913 | false | 0.043478 | 0.086957 | 0.108696 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bbfdf22f161fd5fd62871397c7f2f6464ff42675 | 54 | py | Python | fastai/version.py | nhonth/fastai | 672c8c5344f319e64ac096e7ce9fd9c0c75a440b | [
"Apache-2.0"
] | 1 | 2018-11-14T12:02:41.000Z | 2018-11-14T12:02:41.000Z | fastai/version.py | melty-chocolate/fastai | 61ae93820c3b0a65e9697a7b8f44066eab6f5748 | [
"Apache-2.0"
] | null | null | null | fastai/version.py | melty-chocolate/fastai | 61ae93820c3b0a65e9697a7b8f44066eab6f5748 | [
"Apache-2.0"
] | null | null | null | __all__ = ['__version__']
__version__ = '1.0.25.dev0'
| 18 | 27 | 0.685185 | 7 | 54 | 3.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 0.111111 | 54 | 2 | 28 | 27 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a526d5d67fb2118b9dde0edecdb6b5c461cee2d4 | 123 | py | Python | impasse/errors.py | SaladDais/Impasse | 3f8971ac533c59a3dce7802ecf673daeeec4e0fd | [
"BSD-3-Clause"
] | 2 | 2021-07-07T08:22:46.000Z | 2021-12-27T23:51:44.000Z | impasse/errors.py | SaladDais/Impasse | 3f8971ac533c59a3dce7802ecf673daeeec4e0fd | [
"BSD-3-Clause"
] | 6 | 2021-07-06T05:47:00.000Z | 2021-07-11T15:04:14.000Z | impasse/errors.py | SaladDais/Impasse | 3f8971ac533c59a3dce7802ecf673daeeec4e0fd | [
"BSD-3-Clause"
] | null | null | null | """
All possible errors.
"""
class AssimpError(BaseException):
"""
If an internal error occurs.
"""
pass
| 11.181818 | 33 | 0.593496 | 12 | 123 | 6.083333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268293 | 123 | 10 | 34 | 12.3 | 0.811111 | 0.398374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a541ae19a5011e4861b4839f8c1281d7c03ff4cb | 1,202 | py | Python | Bugscan_exploits-master/exp_list/exp-761.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | Bugscan_exploits-master/exp_list/exp-761.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | Bugscan_exploits-master/exp_list/exp-761.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#__author__ = '1c3z'
import re
def fetch(url,raw):
card15 = r"\b([1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3})\b"
card18 = r"\b([1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X))\b"
URL = r"\b(http://(\d{1,3}\.){3}\d{1,3}... | 28.619048 | 93 | 0.549917 | 201 | 1,202 | 3.21393 | 0.437811 | 0.021672 | 0.018576 | 0.012384 | 0.111455 | 0.077399 | 0.043344 | 0.043344 | 0.043344 | 0.043344 | 0 | 0.226837 | 0.218802 | 1,202 | 42 | 94 | 28.619048 | 0.461129 | 0.077371 | 0 | 0 | 0 | 0.133333 | 0.612207 | 0.233803 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a54442fd0418224a3107228a822f75b8770125d4 | 697 | py | Python | django-backend/app/migrations/0006_auto_20210715_2309.py | osoc-es/hire-senior | df434107cd2c54d4b23734ce41cf06f0e62f0ef0 | [
"Apache-2.0"
] | null | null | null | django-backend/app/migrations/0006_auto_20210715_2309.py | osoc-es/hire-senior | df434107cd2c54d4b23734ce41cf06f0e62f0ef0 | [
"Apache-2.0"
] | null | null | null | django-backend/app/migrations/0006_auto_20210715_2309.py | osoc-es/hire-senior | df434107cd2c54d4b23734ce41cf06f0e62f0ef0 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-15 21:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app1', '0005_auto_20210714_1643'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='user_comp... | 23.233333 | 48 | 0.525108 | 63 | 697 | 5.587302 | 0.539683 | 0.181818 | 0.295455 | 0.340909 | 0.502841 | 0.502841 | 0.502841 | 0.383523 | 0 | 0 | 0 | 0.072893 | 0.370158 | 697 | 29 | 49 | 24.034483 | 0.728929 | 0.064562 | 0 | 0.521739 | 1 | 0 | 0.175523 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a56f1e145389a4a503e979048ac9ea7bfcb32596 | 384 | py | Python | web/main/forms/__init__.py | estebanarivasv/SeismologyFlask | 47fa222960daa8a87b252965f7d82be334d61ec1 | [
"MIT"
] | null | null | null | web/main/forms/__init__.py | estebanarivasv/SeismologyFlask | 47fa222960daa8a87b252965f7d82be334d61ec1 | [
"MIT"
] | null | null | null | web/main/forms/__init__.py | estebanarivasv/SeismologyFlask | 47fa222960daa8a87b252965f7d82be334d61ec1 | [
"MIT"
] | null | null | null | from main.forms.seisms import Seism as SeismForm
from main.forms.sensors import NewSensor as NewSensorForm
from main.forms.users import NewUser as NewUserForm
from main.forms.users import UserToEdit as UserToEditForm
from main.forms.login import Login as LoginForm
from main.forms.seisms import USeismsFilterForm, VSe... | 34.909091 | 66 | 0.851563 | 53 | 384 | 6.169811 | 0.396226 | 0.171254 | 0.278287 | 0.116208 | 0.458716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 384 | 10 | 67 | 38.4 | 0.95614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a57227c70bd73f3ddd0ee5fd2bbd84e86ed7792b | 221 | py | Python | src/webparser/abstractparser.py | ericblam/competition-scraper | ba2b3e5ce749748696d31c513289a0bb8e8b9ace | [
"MIT"
] | 1 | 2019-04-04T03:34:00.000Z | 2019-04-04T03:34:00.000Z | src/webparser/abstractparser.py | ericblam/competition-scraper | ba2b3e5ce749748696d31c513289a0bb8e8b9ace | [
"MIT"
] | 3 | 2017-09-18T02:09:25.000Z | 2021-04-08T19:11:42.000Z | src/webparser/abstractparser.py | ericblam/competition-scraper | ba2b3e5ce749748696d31c513289a0bb8e8b9ace | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class AbstractWebParser(ABC):
def __init__(self, q, config):
self.q = q
self.config = config
@abstractmethod
def parse(self, htmlDOM, data):
pass
| 18.416667 | 35 | 0.633484 | 26 | 221 | 5.230769 | 0.576923 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280543 | 221 | 11 | 36 | 20.090909 | 0.855346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a58cd688461dd693b080d632824e2a1a4cb310ae | 250 | py | Python | promisedio/loop/__init__.py | promisedio/uv | b2da55e28da4a3185d810055468389822ec94f2b | [
"MIT"
] | null | null | null | promisedio/loop/__init__.py | promisedio/uv | b2da55e28da4a3185d810055468389822ec94f2b | [
"MIT"
] | null | null | null | promisedio/loop/__init__.py | promisedio/uv | b2da55e28da4a3185d810055468389822ec94f2b | [
"MIT"
] | null | null | null | # Copyright (c) 2021-2022 Andrey Churin <aachurin@gmail.com> Promisedio
import os
import sys
if os.environ.get("PROMISEDIO_DEBUG"):
from . import _loop_debug
sys.modules[f"{__name__}._loop"] = _loop_debug
from . _loop import *
del os, sys
| 20.833333 | 71 | 0.728 | 37 | 250 | 4.621622 | 0.621622 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0.16 | 250 | 11 | 72 | 22.727273 | 0.77619 | 0.276 | 0 | 0 | 0 | 0 | 0.178771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a58e8fcdffc39bc9a560fabeb6201e372d5e0779 | 1,167 | py | Python | tests/test_harmony.py | jesseward/harmonic-shuffle | 5db301f8abbef55f048a34b1f1c37b82e298ce35 | [
"MIT"
] | 2 | 2016-09-18T23:05:13.000Z | 2022-02-11T10:27:34.000Z | tests/test_harmony.py | jesseward/harmonic-shuffle | 5db301f8abbef55f048a34b1f1c37b82e298ce35 | [
"MIT"
] | null | null | null | tests/test_harmony.py | jesseward/harmonic-shuffle | 5db301f8abbef55f048a34b1f1c37b82e298ce35 | [
"MIT"
] | 5 | 2016-04-26T17:29:43.000Z | 2020-11-09T00:33:48.000Z | import unittest
from harmonic_shuffle.harmony import Harmony
class TestMinorDbm(unittest.TestCase):
def setUp(self):
self.root_key = 'Dbm'
self.harm = Harmony(self.root_key)
def test_Dbm_up_shift(self):
self.assertEqual(self.harm.up_shift(), ['G#m'])
def test_Dbm_down_shift(self... | 27.139535 | 87 | 0.635818 | 165 | 1,167 | 4.248485 | 0.224242 | 0.114123 | 0.216833 | 0.262482 | 0.693295 | 0.693295 | 0.693295 | 0.587732 | 0.245364 | 0 | 0 | 0 | 0.195373 | 1,167 | 42 | 88 | 27.785714 | 0.746539 | 0 | 0 | 0.142857 | 0 | 0 | 0.047129 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.357143 | false | 0 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a5b4e24e83265a980b1cf372511232c3501d5ddf | 121 | py | Python | src/main_example.py | leleact/pytest | 0c1564b6c7985b49622cc1aded983684ef1d3303 | [
"MIT"
] | null | null | null | src/main_example.py | leleact/pytest | 0c1564b6c7985b49622cc1aded983684ef1d3303 | [
"MIT"
] | 3 | 2021-03-31T19:19:06.000Z | 2021-12-13T20:23:21.000Z | src/main_example.py | leleact/pytest | 0c1564b6c7985b49622cc1aded983684ef1d3303 | [
"MIT"
] | null | null | null | #!/bin/env python
# -*- conding:utf-8 -*-
def main():
print('hello world')
if __name__ == '__main__':
main()
| 11 | 26 | 0.553719 | 15 | 121 | 3.933333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.223141 | 121 | 10 | 27 | 12.1 | 0.617021 | 0.31405 | 0 | 0 | 0 | 0 | 0.234568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a5b73e91763e965b0f2e4909b0719cdf519a8fb4 | 1,299 | py | Python | news_board/migrations/0002_auto_20211116_1424.py | renmarin/News-Board-API | 827383a8047bb310eaafeefff2a924dad16d5d47 | [
"MIT"
] | null | null | null | news_board/migrations/0002_auto_20211116_1424.py | renmarin/News-Board-API | 827383a8047bb310eaafeefff2a924dad16d5d47 | [
"MIT"
] | null | null | null | news_board/migrations/0002_auto_20211116_1424.py | renmarin/News-Board-API | 827383a8047bb310eaafeefff2a924dad16d5d47 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-16 12:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("news_board", "0001_initial"),
]
operations = [
migrations.RenameField(
model_name="comments",
old_name="news",
... | 26.510204 | 51 | 0.537336 | 117 | 1,299 | 5.786325 | 0.42735 | 0.093058 | 0.221566 | 0.257016 | 0.615953 | 0.573117 | 0.218612 | 0.218612 | 0.218612 | 0.218612 | 0 | 0.031915 | 0.34873 | 1,299 | 48 | 52 | 27.0625 | 0.768322 | 0.034642 | 0 | 0.666667 | 1 | 0 | 0.118211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3c160327c8009e40fdf5f04deb7e9df5f4b6c6cf | 4,060 | py | Python | Players/SHJPPlayer.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | Players/SHJPPlayer.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | Players/SHJPPlayer.py | jokvedaras/game-framework | 9ff60e15d1beff54f94e280501929664ce59afe7 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Samantha'
#Samantha Holloway, Joseph Pannizzo 11/2014
#Help/code pieces from Dr. Ganesh Baliga
#Rock Paper Scissors implementation of Player class
#A gambit is a predetermined RPS strategy
#AI uses 1 of 8 famous gambits randomly for a match
import Player
import Message
import random
class SHJPPlayer(Pla... | 33.00813 | 70 | 0.57734 | 401 | 4,060 | 5.74813 | 0.254364 | 0.124078 | 0.314534 | 0.208243 | 0.592625 | 0.576139 | 0.576139 | 0.576139 | 0.527115 | 0.527115 | 0 | 0.028802 | 0.358621 | 4,060 | 122 | 71 | 33.278689 | 0.856375 | 0.15936 | 0 | 0.704082 | 0 | 0 | 0.00501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.030612 | 0.020408 | 0.408163 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3c2a3d85630d98110663e723ed49e4f7ed941e40 | 1,895 | py | Python | tests.py | calebtuttle/portfoliobuilder | 3d0ab440e68ad1de45e02bc4e234289aefe8abd4 | [
"MIT"
] | null | null | null | tests.py | calebtuttle/portfoliobuilder | 3d0ab440e68ad1de45e02bc4e234289aefe8abd4 | [
"MIT"
] | null | null | null | tests.py | calebtuttle/portfoliobuilder | 3d0ab440e68ad1de45e02bc4e234289aefe8abd4 | [
"MIT"
] | null | null | null | '''
Unit tests.
'''
from portfoliobuilder import api_utils
################# api_utils Alpaca tests #################
def test_api_utils_get_account():
acc = api_utils.get_account()
assert acc['currency'] == 'USD'
def test_api_utils_get_asset():
asset = api_utils.get_asset('AAPL')
assert asset['sy... | 25.266667 | 65 | 0.68285 | 241 | 1,895 | 4.958506 | 0.236515 | 0.187448 | 0.220921 | 0.200837 | 0.461088 | 0.25523 | 0.107113 | 0 | 0 | 0 | 0 | 0.002486 | 0.150923 | 1,895 | 75 | 66 | 25.266667 | 0.740211 | 0.067546 | 0 | 0 | 0 | 0 | 0.102657 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.214286 | false | 0 | 0.02381 | 0 | 0.238095 | 0.02381 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3c58eb717ec0156d9684f75e65e5e9e03d86838a | 176 | py | Python | mserver/__init__.py | prowincial/task-for-allegro | 3dcaeb4716b9d1683869bedace5a467e38a2a0e2 | [
"Apache-2.0"
] | null | null | null | mserver/__init__.py | prowincial/task-for-allegro | 3dcaeb4716b9d1683869bedace5a467e38a2a0e2 | [
"Apache-2.0"
] | null | null | null | mserver/__init__.py | prowincial/task-for-allegro | 3dcaeb4716b9d1683869bedace5a467e38a2a0e2 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
def create_app(test_config=None):
app = Flask(__name__)
from mserver import api
app.register_blueprint(api.bp)
return app
| 16 | 35 | 0.676136 | 24 | 176 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261364 | 176 | 10 | 36 | 17.6 | 0.861538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3c681311320cc68aaef55c05feb61e41510015c2 | 5,814 | py | Python | tabs/intro.py | jebibault/ProstateCancerSurvival | 7097c8f6c73d0d439acd6721afb980b0ae899e7c | [
"Apache-2.0"
] | null | null | null | tabs/intro.py | jebibault/ProstateCancerSurvival | 7097c8f6c73d0d439acd6721afb980b0ae899e7c | [
"Apache-2.0"
] | 1 | 2021-07-01T09:23:19.000Z | 2021-07-08T14:15:53.000Z | tabs/intro.py | jebibault/ProstateCancerSurvival | 7097c8f6c73d0d439acd6721afb980b0ae899e7c | [
"Apache-2.0"
] | null | null | null | from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
from app import app
layout = [
html.P([html.Br()]),
html.P([html.Br()]),
dcc.Markdown("""
#### What is this model for?"""),
html.P([
'In the United States alone, each year, an estimated 180,890 new case... | 78.567568 | 1,166 | 0.70227 | 852 | 5,814 | 4.789906 | 0.410798 | 0.022053 | 0.017153 | 0.024994 | 0.208527 | 0.201911 | 0.171772 | 0.129135 | 0.106346 | 0.106346 | 0 | 0.031672 | 0.185415 | 5,814 | 73 | 1,167 | 79.643836 | 0.828758 | 0 | 0 | 0.348485 | 0 | 0.242424 | 0.862823 | 0.02117 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.060606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3c77e7ce7e56e4bd9153576d3ab7201a45ca913f | 148 | py | Python | office365/runtime/http/http_method.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | 544 | 2016-08-04T17:10:16.000Z | 2022-03-31T07:17:20.000Z | office365/runtime/http/http_method.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | 438 | 2016-10-11T12:24:22.000Z | 2022-03-31T19:30:35.000Z | office365/runtime/http/http_method.py | wreiner/Office365-REST-Python-Client | 476bbce4f5928a140b4f5d33475d0ac9b0783530 | [
"MIT"
] | 202 | 2016-08-22T19:29:40.000Z | 2022-03-30T20:26:15.000Z | class HttpMethod:
def __init__(self):
pass
Get = "GET"
Post = "POST"
Patch = "PATCH"
Delete = "DELETE"
Put = "PUT"
| 14.8 | 23 | 0.513514 | 16 | 148 | 4.5 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.358108 | 148 | 9 | 24 | 16.444444 | 0.757895 | 0 | 0 | 0 | 0 | 0 | 0.141892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0 | 0 | 0.875 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3c92e4b9484c1eec1b579c9d9edaf0e0488d8723 | 182 | py | Python | jurisdiction/apps.py | deepindo/DoPython | d80b85b3b24566de6ece9f452564e4827e705959 | [
"MIT"
] | 4 | 2022-01-04T09:56:19.000Z | 2022-01-20T12:14:16.000Z | jurisdiction/apps.py | deepindo/DoPython | d80b85b3b24566de6ece9f452564e4827e705959 | [
"MIT"
] | null | null | null | jurisdiction/apps.py | deepindo/DoPython | d80b85b3b24566de6ece9f452564e4827e705959 | [
"MIT"
] | 1 | 2022-01-20T09:40:16.000Z | 2022-01-20T09:40:16.000Z | from django.apps import AppConfig
class JurisdictionConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'jurisdiction'
verbose_name = '辖区管理'
| 22.75 | 56 | 0.752747 | 20 | 182 | 6.7 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159341 | 182 | 7 | 57 | 26 | 0.875817 | 0 | 0 | 0 | 0 | 0 | 0.247253 | 0.159341 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3c9ed6a741805646123fa12a7c8e94b605596115 | 693 | py | Python | mhcflurry/regression_target.py | ignatovmg/mhcflurry | a4b0ac96ebe7f8be7e4b37f21c430f567ac630e6 | [
"Apache-2.0"
] | 113 | 2018-02-07T05:01:40.000Z | 2022-03-24T14:22:58.000Z | mhcflurry/regression_target.py | ignatovmg/mhcflurry | a4b0ac96ebe7f8be7e4b37f21c430f567ac630e6 | [
"Apache-2.0"
] | 106 | 2015-09-15T20:12:20.000Z | 2017-12-23T01:54:54.000Z | mhcflurry/regression_target.py | ignatovmg/mhcflurry | a4b0ac96ebe7f8be7e4b37f21c430f567ac630e6 | [
"Apache-2.0"
] | 33 | 2018-07-09T18:16:44.000Z | 2022-02-21T17:38:26.000Z | import numpy
def from_ic50(ic50, max_ic50=50000.0):
"""
Convert ic50s to regression targets in the range [0.0, 1.0].
Parameters
----------
ic50 : numpy.array of float
Returns
-------
numpy.array of float
"""
x = 1.0 - (numpy.log(numpy.maximum(ic50, 1e-12)) / numpy.log(ma... | 18.72973 | 76 | 0.546898 | 100 | 693 | 3.73 | 0.29 | 0.02681 | 0.128686 | 0.182306 | 0.493298 | 0.386059 | 0.386059 | 0.386059 | 0.386059 | 0 | 0 | 0.121951 | 0.290043 | 693 | 36 | 77 | 19.25 | 0.636179 | 0.464646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b1b0b5ea37bd227cd1eae86f59ee6313de293930 | 288 | py | Python | OOPs/Person1.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | 6 | 2021-08-04T08:15:22.000Z | 2022-02-02T11:15:56.000Z | OOPs/Person1.py | Maurya232Abhishek/Python-repository-for-basics | 3dcec5c529a0847df07c9dcc1424675754ce6376 | [
"MIT"
] | 14 | 2021-08-02T06:28:00.000Z | 2022-03-25T10:44:15.000Z | OOPs/Person1.py | Maurya232Abhishek/Python-repository-for-basics | 3dcec5c529a0847df07c9dcc1424675754ce6376 | [
"MIT"
] | 6 | 2021-07-16T04:56:41.000Z | 2022-02-16T04:40:06.000Z | class Person:
def __init__(self,name,age,address):
self.name = name
self.address = address
self.age = age
def __str__(self):
return "Name = {0} , Age = {1}, Address = {2}".format(self.name,self.age,self.address )
p1 = Person('Manjit',21, "UP")
| 32 | 99 | 0.579861 | 39 | 288 | 4.076923 | 0.461538 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.260417 | 288 | 8 | 100 | 36 | 0.71831 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b1ba9e131295af8e7c2be8029aca2c37a86fcf5c | 378 | py | Python | app/web/home_controller.py | hunt3ri/flask-bootstrap | e55dcfea9a428eca41d7446542d3910a2188df85 | [
"MIT"
] | null | null | null | app/web/home_controller.py | hunt3ri/flask-bootstrap | e55dcfea9a428eca41d7446542d3910a2188df85 | [
"MIT"
] | 1 | 2019-08-31T09:48:06.000Z | 2019-08-31T09:48:06.000Z | app/web/home_controller.py | hunt3ri/flask-bootstrap | e55dcfea9a428eca41d7446542d3910a2188df85 | [
"MIT"
] | null | null | null | from flask import render_template
from app import APP_NAME
from app.web import main
@main.route("/")
def home_page():
"""
Controller to launch simple home page. While flask can host SPA's better to host SPA separately. Alternatively
you can always create apps with flask templates and Jinja :)
"""
... | 27 | 116 | 0.730159 | 57 | 378 | 4.736842 | 0.614035 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193122 | 378 | 13 | 117 | 29.076923 | 0.885246 | 0.457672 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b1cb04efbde6798affa7f0c593ed08f92fe9a3a1 | 36 | py | Python | src/genie/libs/parser/iosxe/tests/ShowPdmSteeringPolicyCount/cli/equal/golden_output_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowPdmSteeringPolicyCount/cli/equal/golden_output_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowPdmSteeringPolicyCount/cli/equal/golden_output_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | expected_output = {
'count': 2100
} | 12 | 19 | 0.666667 | 4 | 36 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.166667 | 36 | 3 | 20 | 12 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b1ccf72aeec712dc5dc91fdfe32cf42d7ce492b5 | 167 | py | Python | sbcnab240/__init__.py | Superbuy-Team/sbcnab240 | fe32ffa1efc3f07f8e1be607d4bf110f5134720a | [
"MIT"
] | 5 | 2017-12-19T17:50:56.000Z | 2019-02-12T03:19:50.000Z | sbcnab240/__init__.py | Superbuy-Team/sbcnab240 | fe32ffa1efc3f07f8e1be607d4bf110f5134720a | [
"MIT"
] | null | null | null | sbcnab240/__init__.py | Superbuy-Team/sbcnab240 | fe32ffa1efc3f07f8e1be607d4bf110f5134720a | [
"MIT"
] | null | null | null | from Processamento import load_banco
def main():
#print load_arquivo_banco('santander')
print load_banco('santander')
if __name__ == "__main__":
main()
| 16.7 | 42 | 0.706587 | 20 | 167 | 5.3 | 0.6 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179641 | 167 | 9 | 43 | 18.555556 | 0.773723 | 0.221557 | 0 | 0 | 0 | 0 | 0.131783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b1cd0e38fce46ca7e2819a07c9c875148bc3e06c | 4,943 | py | Python | tokenizer/states.py | misspellted/armchair | 2e2acc75d072ccf11d3f0b2ba649f5885124341a | [
"Unlicense"
] | null | null | null | tokenizer/states.py | misspellted/armchair | 2e2acc75d072ccf11d3f0b2ba649f5885124341a | [
"Unlicense"
] | null | null | null | tokenizer/states.py | misspellted/armchair | 2e2acc75d072ccf11d3f0b2ba649f5885124341a | [
"Unlicense"
] | null | null | null | from tokenizer.matchers import *
## These states are based on the state transition table in
## the video at https://www.youtube.com/watch?v=zl04ZfdkiuM.
# A - Whitespace
def a(character):
if (spaced(character)):
return (a, None)
elif (letter(character)):
return (b, None)
elif (zero(charact... | 26.718919 | 80 | 0.556747 | 575 | 4,943 | 4.786087 | 0.125217 | 0.343387 | 0.051962 | 0.087209 | 0.719477 | 0.540698 | 0.481468 | 0.481468 | 0.481468 | 0.481468 | 0 | 0.005739 | 0.294963 | 4,943 | 184 | 81 | 26.86413 | 0.783931 | 0.097714 | 0 | 0.822086 | 0 | 0 | 0.058704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055215 | false | 0 | 0.006135 | 0 | 0.503067 | 0.055215 | 0 | 0 | 0 | null | 1 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b1dd46542197de45e428528d37d738da5b1fd2c8 | 664 | py | Python | teagles_advent_2021/day_7/lib.py | teagles/teagles-advent-2021 | d49d842663d6382bd0d4d93198ccd66ab68e681b | [
"MIT"
] | null | null | null | teagles_advent_2021/day_7/lib.py | teagles/teagles-advent-2021 | d49d842663d6382bd0d4d93198ccd66ab68e681b | [
"MIT"
] | null | null | null | teagles_advent_2021/day_7/lib.py | teagles/teagles-advent-2021 | d49d842663d6382bd0d4d93198ccd66ab68e681b | [
"MIT"
] | null | null | null | from statistics import median, mean
from functools import reduce
from operator import add
from math import ceil, floor
def ideal(nums):
return round(median(nums))
def ideal_2(nums):
return mean(nums)
def parse_input(line):
return list(map(int, line.split(',')))
def fuel_consumed(nums):
target = ... | 20.75 | 79 | 0.665663 | 106 | 664 | 4.084906 | 0.320755 | 0.092379 | 0.083141 | 0.124711 | 0.177829 | 0.133949 | 0.133949 | 0.133949 | 0.133949 | 0 | 0 | 0.013035 | 0.191265 | 664 | 31 | 80 | 21.419355 | 0.793296 | 0 | 0 | 0 | 0 | 0 | 0.001506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.210526 | 0.210526 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b1fb3910581585c40b3132dc6c4693b1fb23d640 | 716 | bzl | Python | tools/rustfmt/rustfmt_utils.bzl | yesudeep/rules_rust | cdca6ed5eb9609cbc3f6b5d8f760e46e3b0596a2 | [
"Apache-2.0"
] | null | null | null | tools/rustfmt/rustfmt_utils.bzl | yesudeep/rules_rust | cdca6ed5eb9609cbc3f6b5d8f760e46e3b0596a2 | [
"Apache-2.0"
] | null | null | null | tools/rustfmt/rustfmt_utils.bzl | yesudeep/rules_rust | cdca6ed5eb9609cbc3f6b5d8f760e46e3b0596a2 | [
"Apache-2.0"
] | null | null | null | """A helper module for the `@rules_rust//tools/rustfmt` package"""
def aspect_repository():
"""Determines the repository name to use for the `rustfmt_manifest` aspect in `rustfmt` binaries.
The `//tools/rustfmt` target has a hard coded `--aspects` command built into it.
This function is designed to allow ... | 37.684211 | 101 | 0.706704 | 100 | 716 | 4.98 | 0.56 | 0.11245 | 0.048193 | 0.044177 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005254 | 0.202514 | 716 | 18 | 102 | 39.777778 | 0.8669 | 0.76257 | 0 | 0 | 0 | 0 | 0.007937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b1fc8fcd4863615325e7af512581b440c3744bad | 538 | py | Python | tests/test_piece.py | ozendelait/at-python | 6a4817e258c3786a1ce982bf6a3e5cf4bcac65d9 | [
"MIT"
] | 7 | 2020-06-22T04:58:16.000Z | 2021-05-20T03:50:24.000Z | tests/test_piece.py | ozendelait/at-python | 6a4817e258c3786a1ce982bf6a3e5cf4bcac65d9 | [
"MIT"
] | 6 | 2021-03-02T14:06:02.000Z | 2021-11-17T20:32:55.000Z | tests/test_piece.py | ozendelait/at-python | 6a4817e258c3786a1ce982bf6a3e5cf4bcac65d9 | [
"MIT"
] | 3 | 2021-05-01T19:12:08.000Z | 2021-12-12T00:58:56.000Z | import academictorrents as at
import unittest
import os
import shutil
import os
import sys, os, time
class PieceTestSuite(unittest.TestCase):
"""Test cases on the HttpPeer.py file."""
# TODO: handshake
def test_handshake(self):
assert True
# TODO: request_ranges
def test_request_ranges(s... | 19.925926 | 45 | 0.702602 | 69 | 538 | 5.275362 | 0.463768 | 0.076923 | 0.153846 | 0.148352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234201 | 538 | 26 | 46 | 20.692308 | 0.883495 | 0.237918 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.266667 | 1 | 0.266667 | false | 0 | 0.4 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5939e95ffd57378781bf4ab39bd613cfbbb5016c | 378 | py | Python | crm/tests/test_ticket_mptt.py | pkimber/crm | 835e8ff3161404316b7da35cf61e3851763b37b9 | [
"Apache-2.0"
] | 4 | 2015-02-22T07:22:03.000Z | 2017-03-13T05:36:23.000Z | crm/tests/test_ticket_mptt.py | pkimber/old-crm-migrated-to-gitlab | 835e8ff3161404316b7da35cf61e3851763b37b9 | [
"Apache-2.0"
] | 1 | 2015-07-03T23:52:37.000Z | 2016-04-10T14:49:36.000Z | crm/tests/test_ticket_mptt.py | pkimber/old-crm-migrated-to-gitlab | 835e8ff3161404316b7da35cf61e3851763b37b9 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
import pytest
from crm.tests.factories import (
PriorityFactory,
TicketFactory,
)
#@pytest.mark.django_db
#def test_mptt():
# parent = TicketFactory()
# TicketFactory(title='1', parent=parent)
# TicketFactory(title='2')
# TicketFactory(title='3', parent=parent)
# asse... | 22.235294 | 66 | 0.656085 | 45 | 378 | 5.444444 | 0.622222 | 0.220408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019169 | 0.171958 | 378 | 16 | 67 | 23.625 | 0.763578 | 0.708995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3caf9bed942b3e4b9c3889e843ff064a9447638c | 1,368 | py | Python | tools350/Im2MIF/mif.py | tn74/350-tools-mk2 | 5315d14ac1812e9a7690e0938c541d95790dc660 | [
"MIT"
] | null | null | null | tools350/Im2MIF/mif.py | tn74/350-tools-mk2 | 5315d14ac1812e9a7690e0938c541d95790dc660 | [
"MIT"
] | null | null | null | tools350/Im2MIF/mif.py | tn74/350-tools-mk2 | 5315d14ac1812e9a7690e0938c541d95790dc660 | [
"MIT"
] | null | null | null | from typing import List
from MifEntry import MifEntry
import difflib
class Mif:
def __init__(self, *, width=1):
self.__contents: List[MifEntry] = []
self.__width = width
self.__string = None
def add(self, item: MifEntry):
self.__contents.append(item)
def index_of(self, i... | 29.73913 | 114 | 0.605263 | 176 | 1,368 | 4.409091 | 0.403409 | 0.123711 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006869 | 0.255117 | 1,368 | 45 | 115 | 30.4 | 0.754661 | 0 | 0 | 0 | 0 | 0 | 0.078216 | 0.016082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0 | 0.090909 | 0.151515 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3cb1547cc7022f3b496745c2f12bc0c9f96029b2 | 206 | py | Python | src/model/bill.py | LeonidPavlov/home_budget | 565cbc1415d762b81bc272d0afaa5c6b51121b70 | [
"MIT"
] | null | null | null | src/model/bill.py | LeonidPavlov/home_budget | 565cbc1415d762b81bc272d0afaa5c6b51121b70 | [
"MIT"
] | null | null | null | src/model/bill.py | LeonidPavlov/home_budget | 565cbc1415d762b81bc272d0afaa5c6b51121b70 | [
"MIT"
] | null | null | null | from enum import Enum
class BillType(Enum):
active = 'active'
passive = 'passive'
class Bill:
def __init__(self, article: str, bill_type: BillType) -> None:
self._type = bill_type
| 15.846154 | 67 | 0.650485 | 26 | 206 | 4.884615 | 0.576923 | 0.125984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247573 | 206 | 12 | 68 | 17.166667 | 0.819355 | 0 | 0 | 0 | 0 | 0 | 0.063415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3cc2d0474feafd8cf7ef5cbc75ff665a4837287f | 734 | py | Python | 13/twrapme.py | Gridelen/core-python-ex | 18b654b42ab29af07549926e722eb07de680b191 | [
"MIT"
] | 1 | 2019-03-10T13:03:01.000Z | 2019-03-10T13:03:01.000Z | 13/twrapme.py | Gridelen/core-python-ex | 18b654b42ab29af07549926e722eb07de680b191 | [
"MIT"
] | null | null | null | 13/twrapme.py | Gridelen/core-python-ex | 18b654b42ab29af07549926e722eb07de680b191 | [
"MIT"
] | null | null | null | from time import time, ctime
class TimeWrapMe(object):
def __init__(self, obj):
self.__obj = obj
self.__ctime = self.__atime = self.__mtime = time()
def __str__(self):
self.__atime = time()
return str(self.__obj)
def __repr__(self):
self.__atime = time()
return repr(self.__obj)
def get(self):
self... | 21.588235 | 53 | 0.678474 | 103 | 734 | 4.262136 | 0.339806 | 0.127563 | 0.118451 | 0.173121 | 0.357631 | 0.200456 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186649 | 734 | 34 | 54 | 21.588235 | 0.735343 | 0 | 0 | 0.222222 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.037037 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3cc999416a430a2b7b457be76a624fbc8a8cd4fb | 136 | py | Python | Artesian/_Query/Config/ExtractionRangeType.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 2 | 2022-02-21T17:03:04.000Z | 2022-02-24T17:14:02.000Z | Artesian/_Query/Config/ExtractionRangeType.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 2 | 2020-02-06T10:03:35.000Z | 2022-03-01T09:39:54.000Z | Artesian/_Query/Config/ExtractionRangeType.py | ARKlab/Artesian.SDK-Python | 79b54ad00526f5a75c400422fd1c0c8532b67436 | [
"MIT"
] | 1 | 2019-08-01T06:20:58.000Z | 2019-08-01T06:20:58.000Z | from enum import Enum
class ExtractionRangeType(Enum):
DATE_RANGE = 1
PERIOD = 2
PERIOD_RANGE = 3
RELATIVE_INTERVAL = 4
| 19.428571 | 32 | 0.698529 | 18 | 136 | 5.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.25 | 136 | 6 | 33 | 22.666667 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3cdee29fc24c7ca3136b402697f19ee15d5d25e6 | 260 | py | Python | app/main/__init__.py | 925781609/flask_web | b4f739efda07bfad9dae167554035c7762ddfe59 | [
"Apache-2.0"
] | null | null | null | app/main/__init__.py | 925781609/flask_web | b4f739efda07bfad9dae167554035c7762ddfe59 | [
"Apache-2.0"
] | null | null | null | app/main/__init__.py | 925781609/flask_web | b4f739efda07bfad9dae167554035c7762ddfe59 | [
"Apache-2.0"
] | null | null | null | from flask import Blueprint
print('start to register main blue print')
main = Blueprint('main', __name__)
from . import views, errors
from ..models import Permission
@main.app_context_processor
def inject_permission():
return dict(Permission=Permission)
| 23.636364 | 42 | 0.784615 | 34 | 260 | 5.794118 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130769 | 260 | 10 | 43 | 26 | 0.871681 | 0 | 0 | 0 | 0 | 0 | 0.142308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 0.625 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
3ce68737338657c55a5468ffdb8e7403e417e90e | 143 | py | Python | accounts/urls.py | rarblack/django-guestbook | 42b3134f9d482492a2d33d0e9cc4cc746a94400e | [
"MIT"
] | null | null | null | accounts/urls.py | rarblack/django-guestbook | 42b3134f9d482492a2d33d0e9cc4cc746a94400e | [
"MIT"
] | null | null | null | accounts/urls.py | rarblack/django-guestbook | 42b3134f9d482492a2d33d0e9cc4cc746a94400e | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('register/', views.UserCreateView.as_view(), name='user-create'),
] | 20.428571 | 74 | 0.713287 | 18 | 143 | 5.611111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13986 | 143 | 7 | 75 | 20.428571 | 0.821138 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3cfad78faa24eb0acbd9eb5830f7903bae10862b | 77 | py | Python | djangobench/benchmarks/query_order_by/settings.py | Bouke/djangobench | 94fc28d99f95c65d26d0fad8af44e46c49282220 | [
"BSD-3-Clause"
] | 3 | 2016-11-27T22:25:34.000Z | 2018-12-12T20:06:40.000Z | djangobench/benchmarks/query_order_by/settings.py | Bouke/djangobench | 94fc28d99f95c65d26d0fad8af44e46c49282220 | [
"BSD-3-Clause"
] | null | null | null | djangobench/benchmarks/query_order_by/settings.py | Bouke/djangobench | 94fc28d99f95c65d26d0fad8af44e46c49282220 | [
"BSD-3-Clause"
] | null | null | null | from djangobench.base_settings import *
INSTALLED_APPS = ['query_order_by']
| 19.25 | 39 | 0.805195 | 10 | 77 | 5.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 77 | 3 | 40 | 25.666667 | 0.84058 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a719ecfdab4781b041e2998534727f54c3c62ec5 | 5,944 | py | Python | opaflib/parsetab_pdf.py | feliam/opaf | f9908c26af1bf28cc29f3d647dcd9f55d631d732 | [
"MIT"
] | 2 | 2019-11-23T14:46:35.000Z | 2022-01-21T16:09:47.000Z | opaflib/parsetab_pdf.py | feliam/opaf | f9908c26af1bf28cc29f3d647dcd9f55d631d732 | [
"MIT"
] | null | null | null | opaflib/parsetab_pdf.py | feliam/opaf | f9908c26af1bf28cc29f3d647dcd9f55d631d732 | [
"MIT"
] | 1 | 2019-09-06T21:04:39.000Z | 2019-09-06T21:04:39.000Z |
# opaflib/parsetab_pdf.py
# This file is automatically generated. Do not edit.
_tabversion = '3.2'
_lr_method = 'LALR'
_lr_signature = '4$\xa0"\x0c\'W\xac\xbb\x08y\xcet)S\''
_lr_action_items = {'DOUBLE_GREATER_THAN_SIGN':([15,17,18,20,21,22,23,24,25,26,30,33,37,39,41,],[-5,-7,-17,-8,-12,-10,-14,-11,-9,-6,-13,39... | 97.442623 | 1,991 | 0.636104 | 1,154 | 5,944 | 3.089255 | 0.131716 | 0.113043 | 0.130435 | 0.029173 | 0.277419 | 0.261431 | 0.261431 | 0.216269 | 0.179243 | 0.131557 | 0 | 0.191973 | 0.052658 | 5,944 | 60 | 1,992 | 99.066667 | 0.441129 | 0.01245 | 0 | 0.039216 | 1 | 0 | 0.432322 | 0.078418 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a73b9c5312ec025ea31098f7d81cd36e945daed1 | 880 | py | Python | src/plugins/demo/custom_channels.py | PhillipTaylor/ReactionBot | 5b72408b8694df906dc8dc1edff30574e3802ee5 | [
"MIT"
] | 3 | 2015-06-09T14:01:18.000Z | 2017-03-07T17:28:17.000Z | src/plugins/demo/custom_channels.py | PhillipTaylor/ReactionBot | 5b72408b8694df906dc8dc1edff30574e3802ee5 | [
"MIT"
] | null | null | null | src/plugins/demo/custom_channels.py | PhillipTaylor/ReactionBot | 5b72408b8694df906dc8dc1edff30574e3802ee5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Handle messages only from choosen channels
"""
from zope.interface import implements
from core.plugins.manager import plugin_manager
from core.plugins.interface import ICustomChannelsHandler, IActionHandler
class Echo(object):
implements(ICustomChannelsHandle... | 25.142857 | 73 | 0.711364 | 104 | 880 | 5.865385 | 0.471154 | 0.04918 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004161 | 0.180682 | 880 | 34 | 74 | 25.882353 | 0.841886 | 0.096591 | 0 | 0 | 0 | 0 | 0.073791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0.117647 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
595fcded353dcf546c848904a34cae2989c9ae53 | 445 | py | Python | nz_crawl_demo/day5/demo4.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | null | null | null | nz_crawl_demo/day5/demo4.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | 27 | 2020-02-12T07:55:58.000Z | 2022-03-12T00:19:09.000Z | nz_crawl_demo/day5/demo4.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | 2 | 2020-02-18T01:54:55.000Z | 2020-02-21T11:36:28.000Z | from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get("https://www.douban.com/")
# print(driver.get_cookies())
for cookie in driver.get_cookies():
print(cookie)
print(driver.get_cookie('bid'))
print(driver.delete_cookie('bid'))
print("*"*30)
for cookie in driver.get_cookies():
p... | 17.8 | 37 | 0.719101 | 64 | 445 | 4.875 | 0.34375 | 0.173077 | 0.205128 | 0.163462 | 0.410256 | 0.410256 | 0.410256 | 0.410256 | 0.410256 | 0 | 0 | 0.017812 | 0.116854 | 445 | 24 | 38 | 18.541667 | 0.776081 | 0.060674 | 0 | 0.5 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
59e68eb274b515d2ce6d7003fac44d6cb77c2e12 | 365 | py | Python | lib/statetemplates/statetemplate.py | dmatthewsbnd251/Inventory_Manager | 148ff7734141a80c960fb02b1171363e5c82169b | [
"Unlicense",
"MIT"
] | null | null | null | lib/statetemplates/statetemplate.py | dmatthewsbnd251/Inventory_Manager | 148ff7734141a80c960fb02b1171363e5c82169b | [
"Unlicense",
"MIT"
] | null | null | null | lib/statetemplates/statetemplate.py | dmatthewsbnd251/Inventory_Manager | 148ff7734141a80c960fb02b1171363e5c82169b | [
"Unlicense",
"MIT"
] | null | null | null |
class StateTemplate(object):
def __init__(self, record):
self.config = {}
self.record = record
def get_state_object(self):
raise AssertionError("Method not implemented.")
def __str__(self):
return self.__class__.__name__
def get_current_state_object(self):
ra... | 24.333333 | 55 | 0.668493 | 40 | 365 | 5.575 | 0.475 | 0.089686 | 0.134529 | 0.179372 | 0.484305 | 0.484305 | 0.484305 | 0.484305 | 0 | 0 | 0 | 0 | 0.238356 | 365 | 15 | 56 | 24.333333 | 0.802158 | 0 | 0 | 0.2 | 0 | 0 | 0.126027 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.4 | false | 0 | 0 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ab6600939bbdd007370deb523fe9d2bf894a549e | 1,074 | py | Python | releaseModel.py | kendallcorner/ReleaseModel | 20f14dd59d72c8818a73445c4c47c783670a242b | [
"MIT"
] | null | null | null | releaseModel.py | kendallcorner/ReleaseModel | 20f14dd59d72c8818a73445c4c47c783670a242b | [
"MIT"
] | null | null | null | releaseModel.py | kendallcorner/ReleaseModel | 20f14dd59d72c8818a73445c4c47c783670a242b | [
"MIT"
] | null | null | null |
# Vessel --> (Pipe -->) leak
# Pipeline --> (Pipe -->) leak
# Vessel --> Pipe --> PSV --> Pipe --> Flare
# TODO: install pip for phtyhon3
# TODO: install scipy for python3
# TODO: install thermopy
def IsChokedFlow (p_in, p_atm, gamma):
'''
Function returns True if flow is speed of sound and False if not.
p_in ... | 19.888889 | 80 | 0.675978 | 160 | 1,074 | 4.425 | 0.4625 | 0.042373 | 0.022599 | 0.039548 | 0.039548 | 0.039548 | 0.039548 | 0.039548 | 0 | 0 | 0 | 0.013809 | 0.190875 | 1,074 | 53 | 81 | 20.264151 | 0.800921 | 0.541899 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.285714 | false | 0.142857 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
abbf727703040a6f7a193ed3c661730c06ee1b39 | 1,458 | py | Python | tests/test_views_integration.py | tydonk/fight_simulator | 404f3bec6e53cf636e2db0c35be3b34088b22084 | [
"MIT"
] | 1 | 2016-10-26T20:36:35.000Z | 2016-10-26T20:36:35.000Z | tests/test_views_integration.py | tydonk/fight_simulator | 404f3bec6e53cf636e2db0c35be3b34088b22084 | [
"MIT"
] | null | null | null | tests/test_views_integration.py | tydonk/fight_simulator | 404f3bec6e53cf636e2db0c35be3b34088b22084 | [
"MIT"
] | 2 | 2016-10-26T20:36:36.000Z | 2020-04-08T22:33:30.000Z | import os
import unittest
from urllib.parse import urlparse
from werkzeug.security import generate_password_hash
# Configure your app to use the testing database
os.environ["CONFIG_PATH"] = "fight_simulator.config.TestingConfig"
from fight_simulator import app
from fight_simulator.database import Base, engine, sessi... | 26.035714 | 76 | 0.661866 | 183 | 1,458 | 5.038251 | 0.464481 | 0.045553 | 0.059653 | 0.065076 | 0.072668 | 0.047722 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250343 | 1,458 | 55 | 77 | 26.509091 | 0.84355 | 0.124829 | 0 | 0.142857 | 1 | 0 | 0.071429 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0.2 | 0.171429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
abd7875c7132d319e89fc230bc05b766dabaac52 | 8,523 | py | Python | Ops.py | mpslxz/theano_ops | 1cf2ed01f7f3bb2fe393717dd4014d94383a022d | [
"MIT"
] | 1 | 2020-12-11T21:46:24.000Z | 2020-12-11T21:46:24.000Z | Ops.py | mpslxz/theano_ops | 1cf2ed01f7f3bb2fe393717dd4014d94383a022d | [
"MIT"
] | null | null | null | Ops.py | mpslxz/theano_ops | 1cf2ed01f7f3bb2fe393717dd4014d94383a022d | [
"MIT"
] | null | null | null | import numpy as np
import theano
import theano.tensor as T
from theano.tensor.signal.pool import pool_2d as pool2d, pool_3d as pool3d
from theano.tensor import shared_randomstreams
def bn(inpt, scale=1.0, shift=0.0, layer_name='', init_params=None):
if init_params is None:
gamma = theano.shared(np.asarray... | 38.049107 | 138 | 0.601783 | 1,172 | 8,523 | 4.190273 | 0.114334 | 0.057015 | 0.045001 | 0.060884 | 0.766443 | 0.736103 | 0.718387 | 0.671554 | 0.649766 | 0.618815 | 0 | 0.027729 | 0.263757 | 8,523 | 223 | 139 | 38.219731 | 0.7549 | 0.011381 | 0 | 0.593407 | 0 | 0 | 0.016883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082418 | false | 0 | 0.027473 | 0.016484 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
abde9d3370a7ba6e1a940812d0dd8cbe8f3a2e4a | 77 | py | Python | realworld/args.py | MokkeMeguru/implement-glow | e56ed672f2dcccef6be38da5db3f5d2cb95d8545 | [
"MIT"
] | 31 | 2019-09-16T13:32:02.000Z | 2021-08-03T20:06:37.000Z | realworld/args.py | MokkeMeguru/implement-glow | e56ed672f2dcccef6be38da5db3f5d2cb95d8545 | [
"MIT"
] | 7 | 2019-12-13T10:13:13.000Z | 2022-02-10T00:16:56.000Z | realworld/args.py | MokkeMeguru/implement-glow | e56ed672f2dcccef6be38da5db3f5d2cb95d8545 | [
"MIT"
] | 6 | 2020-09-06T09:01:05.000Z | 2022-01-12T19:10:23.000Z | args = {
'input_shape': [32, 32, 1],
'level': 3,
'epochs': 30,
}
| 12.833333 | 31 | 0.441558 | 10 | 77 | 3.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 0.311688 | 77 | 5 | 32 | 15.4 | 0.471698 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
abe24a35f6fea8e87a69ab4b715b6cbd83685a3e | 598 | py | Python | atm/__init__.py | kevin-samson/Flask-atm-website | f9e3c5e43343dc1ff850c1a4deee7f510cf61e76 | [
"MIT"
] | null | null | null | atm/__init__.py | kevin-samson/Flask-atm-website | f9e3c5e43343dc1ff850c1a4deee7f510cf61e76 | [
"MIT"
] | null | null | null | atm/__init__.py | kevin-samson/Flask-atm-website | f9e3c5e43343dc1ff850c1a4deee7f510cf61e76 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_mail import Mail
from atm.config import Config
mail = Mail()
def create_app(config_class=Config):
app = Flask(__name__)
app.config.from_object(Config)
mail.init_app(app)
from atm.users.routes import user
from atm.bank.routes import bank
from atm.main.routes... | 23.92 | 41 | 0.744147 | 86 | 598 | 5.011628 | 0.27907 | 0.097448 | 0.232019 | 0.12065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183946 | 598 | 24 | 42 | 24.916667 | 0.883197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.421053 | 0 | 0.526316 | 0.263158 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
abe9c81062388bfd1ed4bf99dac03fb37a4a873c | 8,587 | py | Python | tap_chorusai/streams.py | andyoneal/tap-chorusai | 6530c83a0e8769486f0009ba3f3982e2806ba23e | [
"MIT"
] | null | null | null | tap_chorusai/streams.py | andyoneal/tap-chorusai | 6530c83a0e8769486f0009ba3f3982e2806ba23e | [
"MIT"
] | null | null | null | tap_chorusai/streams.py | andyoneal/tap-chorusai | 6530c83a0e8769486f0009ba3f3982e2806ba23e | [
"MIT"
] | null | null | null | """Stream type classes for tap-chorusai."""
from pathlib import Path
from typing import Any, Dict, Optional, Union, List, Iterable
from singer_sdk import typing as th
from tap_chorusai.client import ChorusaiStream
from pychorusai import chorusai
from datetime import datetime, timezone
class EngagementsStream(Chor... | 36.540426 | 93 | 0.518807 | 786 | 8,587 | 5.56743 | 0.171756 | 0.23309 | 0.223949 | 0.35192 | 0.624543 | 0.542733 | 0.505484 | 0.455896 | 0.429616 | 0.374771 | 0 | 0 | 0.359148 | 8,587 | 234 | 94 | 36.696581 | 0.795203 | 0.004309 | 0 | 0.577273 | 0 | 0 | 0.118095 | 0.012523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013636 | false | 0 | 0.027273 | 0 | 0.109091 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
abf5a32a07108d42cb523f9b9455b6b336b8e27c | 948 | py | Python | tf_datasets/__init__.py | tmattio/tf_datasets | 03a11554355f3b7dc9acb3b01e7c98daca463bfc | [
"MIT"
] | 5 | 2017-09-15T07:25:33.000Z | 2020-04-05T14:40:19.000Z | tf_datasets/__init__.py | tmattio/tf_datasets | 03a11554355f3b7dc9acb3b01e7c98daca463bfc | [
"MIT"
] | null | null | null | tf_datasets/__init__.py | tmattio/tf_datasets | 03a11554355f3b7dc9acb3b01e7c98daca463bfc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for Tensorflow Datasets."""
__author__ = """Thibaut Mattio"""
__email__ = 'thibaut.mattio@gmail.com'
__version__ = '0.1.0'
from tf_datasets.datasets import mnist
# from tf_datasets.datasets import caltech_pedestrian
# from tf_datasets.datasets import cbsr_webface
# from tf... | 28.727273 | 53 | 0.737342 | 120 | 948 | 5.483333 | 0.333333 | 0.082067 | 0.191489 | 0.300912 | 0.382979 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023573 | 0.149789 | 948 | 32 | 54 | 29.625 | 0.792804 | 0.627637 | 0 | 0 | 0 | 0 | 0.145015 | 0.072508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
28032ab1ccba3809ad7d40e37499b05497ddf370 | 98 | py | Python | qa_moderator/polls/apps.py | luiscberrocal/qa_moderator | 8b20de77229efb01819beac013b0a478abe2de37 | [
"MIT"
] | null | null | null | qa_moderator/polls/apps.py | luiscberrocal/qa_moderator | 8b20de77229efb01819beac013b0a478abe2de37 | [
"MIT"
] | 5 | 2021-05-08T12:28:27.000Z | 2022-02-26T10:19:33.000Z | qa_moderator/polls/apps.py | luiscberrocal/qa_moderator | 8b20de77229efb01819beac013b0a478abe2de37 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PollsConfig(AppConfig):
name = 'qa_moderator.polls'
| 16.333333 | 33 | 0.765306 | 12 | 98 | 6.166667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 5 | 34 | 19.6 | 0.891566 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f9eb6e9187ab876ef7cb58e93a859b42c6f8b177 | 612 | py | Python | neurolang/datalog/chase/__init__.py | tgy/NeuroLang | 4b2fd4202db40de8336a82938ec50cd41055ee28 | [
"BSD-3-Clause"
] | null | null | null | neurolang/datalog/chase/__init__.py | tgy/NeuroLang | 4b2fd4202db40de8336a82938ec50cd41055ee28 | [
"BSD-3-Clause"
] | null | null | null | neurolang/datalog/chase/__init__.py | tgy/NeuroLang | 4b2fd4202db40de8336a82938ec50cd41055ee28 | [
"BSD-3-Clause"
] | null | null | null | from .general import (ChaseGeneral, ChaseNaive, ChaseNode, ChaseSemiNaive,
NeuroLangNonLinearProgramException)
from .mgu import ChaseMGUMixin
from .relational_algebra import (ChaseNamedRelationalAlgebraMixin,
ChaseRelationalAlgebraPlusCeriMixin)
__all__ = [
"C... | 34 | 77 | 0.743464 | 33 | 612 | 13.636364 | 0.545455 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186275 | 612 | 17 | 78 | 36 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.259804 | 0.165033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.214286 | 0 | 0.285714 | 0 | 0 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f9ef7b2a5d8d006e65299d579ccc5461bf0ecadb | 544 | py | Python | stock-filters/Decision.py | Sebastianchr22/Minecraft-Settlement-Generation | 5c902595b47c3c75c96485b29c4e76a07470a431 | [
"0BSD"
] | null | null | null | stock-filters/Decision.py | Sebastianchr22/Minecraft-Settlement-Generation | 5c902595b47c3c75c96485b29c4e76a07470a431 | [
"0BSD"
] | null | null | null | stock-filters/Decision.py | Sebastianchr22/Minecraft-Settlement-Generation | 5c902595b47c3c75c96485b29c4e76a07470a431 | [
"0BSD"
] | null | null | null | class Decision:
def __init__(self, text, impulse, considerations):
self.text = text
self.impulse = impulse
self.considerations = considerations
self.next_decision = None
def get_text(self):
return self.text
def get_considerations(self):
return self.c... | 24.727273 | 54 | 0.648897 | 61 | 544 | 5.557377 | 0.213115 | 0.176991 | 0.165192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283088 | 544 | 21 | 55 | 25.904762 | 0.869231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f9f05e70f6e322facbfb9798010b398eeefe7112 | 197 | py | Python | geradorSenha.py | Allysonubius/geradorSenha | d2147e0995edbde6a7b929ccc20dc1eae05d4e95 | [
"MIT"
] | null | null | null | geradorSenha.py | Allysonubius/geradorSenha | d2147e0995edbde6a7b929ccc20dc1eae05d4e95 | [
"MIT"
] | null | null | null | geradorSenha.py | Allysonubius/geradorSenha | d2147e0995edbde6a7b929ccc20dc1eae05d4e95 | [
"MIT"
] | null | null | null | import random, string
passowordSize = 16
chars = string.ascii_letters + string.digits + '!@#$%¨&*()ç'
rnd = random.SystemRandom()
print(''.join(rnd.choice(chars) for i in range(passowordSize))) | 21.888889 | 63 | 0.700508 | 26 | 197 | 5.307692 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.121827 | 197 | 9 | 63 | 21.888889 | 0.780347 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f9fc7fca6bb8a5c3eb6395a1689ef54dde68bfa8 | 51,046 | py | Python | pysnmp/HUAWEI-ENTITY-TRAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/HUAWEI-ENTITY-TRAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/HUAWEI-ENTITY-TRAP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HUAWEI-ENTITY-TRAP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-ENTITY-TRAP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:32:31 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 177.860627 | 5,071 | 0.74762 | 5,685 | 51,046 | 6.712577 | 0.051715 | 0.069521 | 0.155971 | 0.185215 | 0.589712 | 0.574015 | 0.561673 | 0.558371 | 0.557035 | 0.547077 | 0 | 0.060882 | 0.072013 | 51,046 | 286 | 5,072 | 178.482517 | 0.744712 | 0.006621 | 0 | 0.010791 | 0 | 0 | 0.381881 | 0.228229 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039568 | 0 | 0.039568 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
e629dbca24f1bda35eccf8cebe028138ac1f7379 | 447 | py | Python | POM/refresh.py | Mikhail-QA/IU | ec792502b0a453b410e6c59f38a42b541564a776 | [
"Apache-2.0"
] | null | null | null | POM/refresh.py | Mikhail-QA/IU | ec792502b0a453b410e6c59f38a42b541564a776 | [
"Apache-2.0"
] | null | null | null | POM/refresh.py | Mikhail-QA/IU | ec792502b0a453b410e6c59f38a42b541564a776 | [
"Apache-2.0"
] | null | null | null | from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as ec
class RefreshPage(object):
def __init__(self, driver):
self.driver = driver
def refresh(self):
self.driver.refresh()
Web... | 31.928571 | 91 | 0.736018 | 56 | 447 | 5.678571 | 0.589286 | 0.125786 | 0.198113 | 0.176101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005391 | 0.170022 | 447 | 13 | 92 | 34.384615 | 0.851752 | 0 | 0 | 0 | 0 | 0 | 0.064877 | 0.064877 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e6472a80dd65e19e6b018c678cfece4d49759714 | 89 | py | Python | django_azure_backup/__init__.py | Xivis/django-azure-backup | 34b4be1c1d005b1eb1d95565dcbaa69e1e972005 | [
"MIT"
] | null | null | null | django_azure_backup/__init__.py | Xivis/django-azure-backup | 34b4be1c1d005b1eb1d95565dcbaa69e1e972005 | [
"MIT"
] | null | null | null | django_azure_backup/__init__.py | Xivis/django-azure-backup | 34b4be1c1d005b1eb1d95565dcbaa69e1e972005 | [
"MIT"
] | 1 | 2019-10-31T15:16:23.000Z | 2019-10-31T15:16:23.000Z | __version__ = '0.0.2'
default_app_config = 'django_azure_backup.apps.DjangoAzureBackup'
| 22.25 | 65 | 0.808989 | 12 | 89 | 5.333333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.078652 | 89 | 3 | 66 | 29.666667 | 0.743902 | 0 | 0 | 0 | 0 | 0 | 0.52809 | 0.47191 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e65ecec51d53181143b72b17cad5afd45d827489 | 1,016 | py | Python | Jumpscale/clients/blockchain/tfchain/TFChainClientFactory.py | threefoldtech/JumpscaleX | 5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa | [
"Apache-2.0"
] | 2 | 2019-05-09T07:21:25.000Z | 2019-08-05T06:37:53.000Z | Jumpscale/clients/blockchain/tfchain/TFChainClientFactory.py | threefoldtech/JumpscaleX | 5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa | [
"Apache-2.0"
] | 664 | 2018-12-19T12:43:44.000Z | 2019-08-23T04:24:42.000Z | Jumpscale/clients/blockchain/tfchain/TFChainClientFactory.py | threefoldtech/jumpscale10 | 5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa | [
"Apache-2.0"
] | 7 | 2019-05-03T07:14:37.000Z | 2019-08-05T12:36:52.000Z | """
Client factory for the Tfchain network, js entry point
"""
from Jumpscale import j
from .TFChainClient import TFChainClient
from .TFChainExplorerClient import TFChainExplorerClient
from .types.Errors import ErrorTypes
from .TFChainTypesFactory import TFChainTypesFactory
class TFChainClientFactory(j.application... | 22.577778 | 61 | 0.685039 | 103 | 1,016 | 6.563107 | 0.398058 | 0.059172 | 0.06213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231299 | 1,016 | 44 | 62 | 23.090909 | 0.865557 | 0.139764 | 0 | 0.130435 | 0 | 0 | 0.020732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.217391 | 0.130435 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e660a96ba3a74f64d437bbf5911fa8a3866c7527 | 228,947 | py | Python | UI/static_rc.py | JoeyGaojingxing/QtLearn | c6f03c5e3af13d93a622442620584493f792f20f | [
"MIT"
] | null | null | null | UI/static_rc.py | JoeyGaojingxing/QtLearn | c6f03c5e3af13d93a622442620584493f792f20f | [
"MIT"
] | null | null | null | UI/static_rc.py | JoeyGaojingxing/QtLearn | c6f03c5e3af13d93a622442620584493f792f20f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: 周一 5月 27 11:57:53 2019
# by: The Resource Compiler for PySide2 (Qt v5.12.3)
#
# WARNING! All changes made in this file will be lost!
from PySide2 import QtCore
qt_resource_data = b"\
\x00\x01#\xe6\
\x00\
\x00\x01\x00\x01\x00\x00\x00\x00\x00\x01\x00\x18... | 48.588073 | 96 | 0.711741 | 51,221 | 228,947 | 3.174304 | 0.144765 | 0.002325 | 0.001384 | 0.000664 | 0.001661 | 0.001661 | 0.001661 | 0.001384 | 0.00107 | 0.00107 | 0 | 0.234438 | 0.022503 | 228,947 | 4,711 | 97 | 48.598387 | 0.49208 | 0.000799 | 0 | 0 | 0 | 0.741269 | 0.000267 | 0.000149 | 0 | 0 | 0.000035 | 0 | 0 | 1 | 0.000426 | false | 0 | 0.000213 | 0 | 0.000639 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e666d252a3f19fc3432cc5da3c48f623ca260ec1 | 1,355 | py | Python | tests/functional/pages/watering_station_detail_page.py | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | tests/functional/pages/watering_station_detail_page.py | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | tests/functional/pages/watering_station_detail_page.py | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | from garden.formatters import WateringStationFormatter
import re
from .base_page import BasePage
from .elements import EditButton
class WateringStationDetailPage(BasePage):
def __init__(self, driver):
super().__init__(driver)
self.edit_button = EditButton(self)
def has_correct_url(self):
... | 32.261905 | 79 | 0.690775 | 159 | 1,355 | 5.54717 | 0.371069 | 0.079365 | 0.079365 | 0.096372 | 0.147392 | 0.147392 | 0 | 0 | 0 | 0 | 0 | 0.004638 | 0.204428 | 1,355 | 41 | 80 | 33.04878 | 0.813544 | 0 | 0 | 0 | 0 | 0 | 0.070111 | 0.030996 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c6fd4a9815b7a007a6608d87e234abeccd8d83ee | 645 | py | Python | Random/ex11.py | matewszz/Python | 18b7fc96d3ed294d2002ed484941a0ee8cf18108 | [
"MIT"
] | null | null | null | Random/ex11.py | matewszz/Python | 18b7fc96d3ed294d2002ed484941a0ee8cf18108 | [
"MIT"
] | null | null | null | Random/ex11.py | matewszz/Python | 18b7fc96d3ed294d2002ed484941a0ee8cf18108 | [
"MIT"
] | null | null | null | times = ('Palmeiras', 'Atlético-MG', "Fortaleza", "Bragantino", "Athletico-PR", "Flamengo", "Ceará", "Atlético-GO", "Bahia", "Corinthians", "Fluminense", "Santos","Juventude", "Internacional", "Cuiabá",
"Sport", "São Paulo", "América-MG", "Grêmio", "Chapecoense")
print('-+-' * 15)
print(f' Os times são: {time... | 43 | 202 | 0.617054 | 84 | 645 | 4.761905 | 0.559524 | 0.105 | 0.15 | 0.1625 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0373 | 0.127132 | 645 | 14 | 203 | 46.071429 | 0.669627 | 0 | 0 | 0.461538 | 0 | 0 | 0.623256 | 0.048062 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.846154 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
0521e6f1a2f7ff62bfb2f9578ceea9877770e34e | 944 | py | Python | Assignment3/lowercaseAndAlphabetical.py | ngc2392/PythonLab | 5ee472bdfab8f0b9551cda21df8723e322a30828 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | Assignment3/lowercaseAndAlphabetical.py | ngc2392/PythonLab | 5ee472bdfab8f0b9551cda21df8723e322a30828 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | Assignment3/lowercaseAndAlphabetical.py | ngc2392/PythonLab | 5ee472bdfab8f0b9551cda21df8723e322a30828 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | #Write a program that reads in a sentence and outputs the words
# in that sentence, all lowercase and ordered alphabetically
# read in a sentence
sentence = input("Please enter a sentence")
# put sentence to lowercase
sentence = sentence.lower()
print("To lower case " + sentence)
#https://stackoverflow.com/questions... | 24.842105 | 121 | 0.711864 | 112 | 944 | 6 | 0.464286 | 0.214286 | 0.239583 | 0.276786 | 0.239583 | 0.239583 | 0.239583 | 0.239583 | 0.239583 | 0.239583 | 0 | 0.011043 | 0.136653 | 944 | 37 | 122 | 25.513514 | 0.813497 | 0.346398 | 0 | 0 | 0 | 0 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
052dedd36ff501e8b991fdb0ff677d4d56d2624a | 290 | py | Python | backend/app/main.py | jurayev/url-shortener | d8cc4b0ac9028541101159ea4e9ec3e447495514 | [
"MIT"
] | null | null | null | backend/app/main.py | jurayev/url-shortener | d8cc4b0ac9028541101159ea4e9ec3e447495514 | [
"MIT"
] | null | null | null | backend/app/main.py | jurayev/url-shortener | d8cc4b0ac9028541101159ea4e9ec3e447495514 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from .api.api_v1.api import api_router
from .config import settings
app = FastAPI(title=settings.APP_NAME)
app.mount("/static", StaticFiles(directory="frontend/static"), name="static")
app.include_router(api_router)
| 29 | 77 | 0.810345 | 41 | 290 | 5.609756 | 0.414634 | 0.095652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003774 | 0.086207 | 290 | 9 | 78 | 32.222222 | 0.864151 | 0 | 0 | 0 | 0 | 0 | 0.096552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0531dc8811ddb29a52b824c9029d95aa5e79a06b | 1,029 | py | Python | lighter/coal_and_stick/trainer_state.py | susautw/lighter | 5f78e5ba595f84805fd428a5086d5566e27cb55d | [
"Apache-2.0"
] | null | null | null | lighter/coal_and_stick/trainer_state.py | susautw/lighter | 5f78e5ba595f84805fd428a5086d5566e27cb55d | [
"Apache-2.0"
] | null | null | null | lighter/coal_and_stick/trainer_state.py | susautw/lighter | 5f78e5ba595f84805fd428a5086d5566e27cb55d | [
"Apache-2.0"
] | null | null | null | # TODO change State separate from type
# i.e. EndState, TrainerState, EpochState,...
# make a closure ,
# it can check the type of state, and execute the function if the type is correct.
# i.e. @on(EndState) # maybe implement it at lighter.
# def end_state: ...
class TrainerState:
def __init__(
... | 21.4375 | 82 | 0.599611 | 126 | 1,029 | 4.674603 | 0.365079 | 0.106961 | 0.112054 | 0.050934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.319728 | 1,029 | 47 | 83 | 21.893617 | 0.841429 | 0.24587 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.225806 | false | 0 | 0 | 0.193548 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
05472add45d72b4d1f81c6e89c6824601af853b9 | 279 | py | Python | ghost_app/forms.py | delpercio/AnonSocialMedia | 2ece0fc2773a9a99e456875ed9dd463045c6f773 | [
"MIT"
] | null | null | null | ghost_app/forms.py | delpercio/AnonSocialMedia | 2ece0fc2773a9a99e456875ed9dd463045c6f773 | [
"MIT"
] | null | null | null | ghost_app/forms.py | delpercio/AnonSocialMedia | 2ece0fc2773a9a99e456875ed9dd463045c6f773 | [
"MIT"
] | null | null | null | from django import forms
from ghost_app.models import Posts
POST_CHOICES = ((True, 'Boast'), (False, 'Roast'))
class PostForm(forms.Form):
text= forms.CharField(max_length=100)
post_type= forms.CharField(label='Is this a...', widget=forms.Select(choices=POST_CHOICES))
| 31 | 95 | 0.738351 | 40 | 279 | 5.025 | 0.725 | 0.109453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.11828 | 279 | 8 | 96 | 34.875 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0.078853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
05519f2935ee494c74fbf4c7336179ee13961100 | 137 | py | Python | tests/test_action.py | mawassk/github-action-template | 97613d23e003916f129e1b5ae5f924cb0c422adf | [
"MIT"
] | null | null | null | tests/test_action.py | mawassk/github-action-template | 97613d23e003916f129e1b5ae5f924cb0c422adf | [
"MIT"
] | 121 | 2021-08-21T17:22:45.000Z | 2022-03-18T21:18:18.000Z | tests/test_action.py | mawassk/github-action-template | 97613d23e003916f129e1b5ae5f924cb0c422adf | [
"MIT"
] | null | null | null | def test_action(capsys):
from action import __main__
captured = capsys.readouterr()
assert captured.out == "Hello World!\n"
| 22.833333 | 43 | 0.70073 | 17 | 137 | 5.352941 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19708 | 137 | 5 | 44 | 27.4 | 0.827273 | 0 | 0 | 0 | 0 | 0 | 0.10219 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
05526917f07fe7aa0458417ea0ada4edf8caf755 | 128 | py | Python | taric/validators.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 14 | 2020-03-25T11:11:29.000Z | 2022-03-08T20:41:33.000Z | taric/validators.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 352 | 2020-03-25T10:42:09.000Z | 2022-03-30T15:32:26.000Z | taric/validators.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 3 | 2020-08-06T12:22:41.000Z | 2022-01-16T11:51:12.000Z | from django.core.validators import RegexValidator
EnvelopeIdValidator = RegexValidator(r"^(?P<year>\d\d)(?P<counter>\d{4})$")
| 25.6 | 75 | 0.742188 | 17 | 128 | 5.588235 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.070313 | 128 | 4 | 76 | 32 | 0.789916 | 0 | 0 | 0 | 0 | 0 | 0.265625 | 0.265625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
05537c54c10bdb2e0108a00096f802fb9d89a3ce | 446 | py | Python | 0x0B-python-input_output/9-add_item.py | darkares23/holbertonschool-higher_level_programming | 931b1b701d8a1d990b7cd931486496c0b5502e21 | [
"MIT"
] | null | null | null | 0x0B-python-input_output/9-add_item.py | darkares23/holbertonschool-higher_level_programming | 931b1b701d8a1d990b7cd931486496c0b5502e21 | [
"MIT"
] | null | null | null | 0x0B-python-input_output/9-add_item.py | darkares23/holbertonschool-higher_level_programming | 931b1b701d8a1d990b7cd931486496c0b5502e21 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from os import path
from sys import argv
save_to_json_file = __import__('7-save_to_json_file').save_to_json_file
load_from_json_file = __import__('8-load_from_json_file').load_from_json_file
if path.exists('add_item.json'):
obj_json_file = load_from_json_file('add_item.json')
else:
obj_json_... | 27.875 | 77 | 0.775785 | 82 | 446 | 3.695122 | 0.353659 | 0.316832 | 0.132013 | 0.184818 | 0.336634 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0.010025 | 0.105381 | 446 | 15 | 78 | 29.733333 | 0.749373 | 0.038117 | 0 | 0 | 0 | 0 | 0.184579 | 0.049065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
056d720355ace5693778e7a7392584fb70b046b6 | 172 | py | Python | foundation/patches/v0_0/change_website_to_website_url.py | prafful1234/foundation | 6fcb027e76eae8d307c3dd70436a9657ff681f01 | [
"MIT"
] | 59 | 2017-03-15T08:14:52.000Z | 2021-11-17T14:21:58.000Z | foundation/patches/v0_0/change_website_to_website_url.py | prafful1234/foundation | 6fcb027e76eae8d307c3dd70436a9657ff681f01 | [
"MIT"
] | 147 | 2017-01-25T10:44:47.000Z | 2020-11-05T04:24:22.000Z | foundation/patches/v0_0/change_website_to_website_url.py | prafful1234/foundation | 6fcb027e76eae8d307c3dd70436a9657ff681f01 | [
"MIT"
] | 134 | 2017-03-14T14:04:21.000Z | 2022-03-18T08:19:47.000Z | import frappe
def execute():
frappe.db.sql('''
ALTER TABLE `tabFoundation Fellowship` CHANGE `website` `website_url` varchar(140);
''', ignore_ddl = True)
| 24.571429 | 91 | 0.662791 | 20 | 172 | 5.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.197674 | 172 | 6 | 92 | 28.666667 | 0.789855 | 0 | 0 | 0 | 0 | 0 | 0.563953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
057965b188e887f1126f918e91692cab271aa760 | 208 | py | Python | celloracle/data/__init__.py | gordian-biotechnology/CellOracle | b160622711d26d3c283822b98560709ee8b3063b | [
"Apache-2.0"
] | null | null | null | celloracle/data/__init__.py | gordian-biotechnology/CellOracle | b160622711d26d3c283822b98560709ee8b3063b | [
"Apache-2.0"
] | null | null | null | celloracle/data/__init__.py | gordian-biotechnology/CellOracle | b160622711d26d3c283822b98560709ee8b3063b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
The :mod:`.data` module implements data download and loading.
"""
from .load_data import (load_TFinfo_df_mm9_mouse_atac_atlas)
__all__ = ["load_TFinfo_df_mm9_mouse_atac_atlas"]
| 20.8 | 61 | 0.740385 | 31 | 208 | 4.419355 | 0.677419 | 0.145985 | 0.175182 | 0.218978 | 0.423358 | 0.423358 | 0.423358 | 0 | 0 | 0 | 0 | 0.016393 | 0.120192 | 208 | 9 | 62 | 23.111111 | 0.73224 | 0.403846 | 0 | 0 | 0 | 0 | 0.304348 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
553295c96bf09a4af93fa4f5695cc9855b886992 | 225 | py | Python | circle.py | jwieckowski/kulki | 6d3d35213f5e82565b0e3586bd344be0c4446f38 | [
"MIT"
] | null | null | null | circle.py | jwieckowski/kulki | 6d3d35213f5e82565b0e3586bd344be0c4446f38 | [
"MIT"
] | null | null | null | circle.py | jwieckowski/kulki | 6d3d35213f5e82565b0e3586bd344be0c4446f38 | [
"MIT"
] | null | null | null | import pygame
class Circle(pygame.sprite.Sprite):
def __init__(self, color, x, y, radius):
super(Circle, self).__init__()
self.color = color
self.position = ((x, y))
self.radius = radius
| 22.5 | 44 | 0.604444 | 28 | 225 | 4.571429 | 0.5 | 0.125 | 0.203125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 225 | 9 | 45 | 25 | 0.775758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5546b9ae31d8ad663f049f1e1fbf55117e3200cb | 349 | py | Python | Notifier/mainclass.py | ayush-vns/powerNotifier | 67dfd8801042b1b3044325625651a0ebc90f349e | [
"MIT"
] | null | null | null | Notifier/mainclass.py | ayush-vns/powerNotifier | 67dfd8801042b1b3044325625651a0ebc90f349e | [
"MIT"
] | null | null | null | Notifier/mainclass.py | ayush-vns/powerNotifier | 67dfd8801042b1b3044325625651a0ebc90f349e | [
"MIT"
] | null | null | null | import time
from notification import notifications
class importantUtilities:
def __init__(self):
pass
def power_info(self):
battery = psutil.sensors_battery()
plugged_in = battery.power_plugged
return plugged_in, battery.percent
def cpu_info(self):
pass
def me... | 20.529412 | 42 | 0.667622 | 40 | 349 | 5.55 | 0.55 | 0.108108 | 0.099099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272206 | 349 | 17 | 43 | 20.529412 | 0.874016 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.230769 | 0.230769 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
555b497d1c620de773283965c1c04bdf3f03e806 | 165 | py | Python | python/abc/test-init.py | shunliz/test | 3200cc7aa7ec5c11e5b7233813f94d9797411427 | [
"Apache-2.0"
] | null | null | null | python/abc/test-init.py | shunliz/test | 3200cc7aa7ec5c11e5b7233813f94d9797411427 | [
"Apache-2.0"
] | 1 | 2016-07-17T10:20:08.000Z | 2016-07-17T10:20:08.000Z | python/abc/test-init.py | shunliz/test | 3200cc7aa7ec5c11e5b7233813f94d9797411427 | [
"Apache-2.0"
] | null | null | null | class TestObject(object):
def __init__(self):
self.v = self.add()
def add(self):
print 'return 1'
return 1
test = TestObject()
| 16.5 | 27 | 0.551515 | 20 | 165 | 4.35 | 0.6 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.333333 | 165 | 9 | 28 | 18.333333 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.048485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
559870dbd44b1af87dc73f773c2f66394d965243 | 209 | py | Python | tests/test_convert.py | arkhn/fhir-store | fb9cad03af20823399d95319ff55ece56fc79ca4 | [
"Apache-2.0"
] | 13 | 2018-10-22T12:30:57.000Z | 2021-11-16T11:51:08.000Z | tests/test_convert.py | arkhn/fhir-store | fb9cad03af20823399d95319ff55ece56fc79ca4 | [
"Apache-2.0"
] | 7 | 2018-10-22T12:33:50.000Z | 2018-11-12T15:41:22.000Z | tests/test_convert.py | arkhn/fhir-store | fb9cad03af20823399d95319ff55ece56fc79ca4 | [
"Apache-2.0"
] | 3 | 2018-10-24T19:18:26.000Z | 2019-10-22T20:33:21.000Z | from process import json_to_yml
def test_json_to_yml(cleaned_json):
# I don't know how to assess a yaml has the expected format
# more info: https://github.com/arkhn/fhir-store/issues/3
pass
| 17.416667 | 63 | 0.722488 | 37 | 209 | 3.918919 | 0.864865 | 0.082759 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.200957 | 209 | 11 | 64 | 19 | 0.862275 | 0.54067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
55b2269a459d2ac153fabf8b40c412f96534ec46 | 268 | py | Python | Commands/CivFR/CivFR.py | Naopil/EldenBot | 2b6f4e98dcfdf3720a6c4add4f694d0e15cd575a | [
"MIT"
] | null | null | null | Commands/CivFR/CivFR.py | Naopil/EldenBot | 2b6f4e98dcfdf3720a6c4add4f694d0e15cd575a | [
"MIT"
] | null | null | null | Commands/CivFR/CivFR.py | Naopil/EldenBot | 2b6f4e98dcfdf3720a6c4add4f694d0e15cd575a | [
"MIT"
] | null | null | null | import random
from util.exception import InvalidArgs
from .Leaders import leaders
from .DynamicDraft import get_draft
class CmdCivGeneralFR:
async def cmd_coinflip(self, channel, *_, **__):
await channel.send("Pile" if random.randint(0, 1) else "Face")
| 24.363636 | 70 | 0.746269 | 35 | 268 | 5.571429 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.164179 | 268 | 10 | 71 | 26.8 | 0.861607 | 0 | 0 | 0 | 0 | 0 | 0.029963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e9511074ff80a58ef79604ae0f5e54d585f71c0d | 194 | py | Python | main.py | shaabhishek/autodiff_experiments | e4bfaec33f64c6557decdaffcb4a8e54b48972e6 | [
"MIT"
] | null | null | null | main.py | shaabhishek/autodiff_experiments | e4bfaec33f64c6557decdaffcb4a8e54b48972e6 | [
"MIT"
] | null | null | null | main.py | shaabhishek/autodiff_experiments | e4bfaec33f64c6557decdaffcb4a8e54b48972e6 | [
"MIT"
] | null | null | null | from autodiff.fwd_mode_tests import f1, f2, test_with_pytorch, test_with_fwdnumber
if __name__ == '__main__':
for f in [f1, f2]:
test_with_fwdnumber(f)
test_with_pytorch(f)
| 27.714286 | 82 | 0.71134 | 30 | 194 | 4 | 0.6 | 0.266667 | 0.133333 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025806 | 0.201031 | 194 | 6 | 83 | 32.333333 | 0.748387 | 0 | 0 | 0 | 0 | 0 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e9cd0c8e96b2aadab5b5af98f5c0223b1f83eb72 | 320 | py | Python | tests/test_vectorizer.py | cylance/rogers | a2300ed518fa01e0f2fcb77f1c10f7124ea7f49a | [
"Apache-2.0"
] | 14 | 2018-03-22T14:55:30.000Z | 2021-01-08T07:23:14.000Z | tests/test_vectorizer.py | cylance/rogers | a2300ed518fa01e0f2fcb77f1c10f7124ea7f49a | [
"Apache-2.0"
] | 1 | 2019-01-29T16:03:54.000Z | 2019-01-29T16:03:54.000Z | tests/test_vectorizer.py | cylance/rogers | a2300ed518fa01e0f2fcb77f1c10f7124ea7f49a | [
"Apache-2.0"
] | 5 | 2019-01-06T21:58:42.000Z | 2021-12-07T12:02:53.000Z | """
"""
from mock import patch
import rogers.vectorizer
def test_pe():
import rogers.vectorizer.PEVectorizer as v
a = v.BaseVectorizer()
b = v.HeaderVectorizer()
c = v.SymExportsVectorizer()
d = v.SymImportsVectorizer()
def test_signature():
import rogers.vectorizer.SignatureVectorizer
| 14.545455 | 48 | 0.7 | 35 | 320 | 6.342857 | 0.628571 | 0.162162 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196875 | 320 | 21 | 49 | 15.238095 | 0.863813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.5 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e9cdfa970297e595e60dfb7c25a76f0a0420a357 | 328 | py | Python | SoftUni-Basic/for_loop/lab/left_and_right_sum.py | Darkartt/SoftUni | 23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9 | [
"MIT"
] | null | null | null | SoftUni-Basic/for_loop/lab/left_and_right_sum.py | Darkartt/SoftUni | 23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9 | [
"MIT"
] | null | null | null | SoftUni-Basic/for_loop/lab/left_and_right_sum.py | Darkartt/SoftUni | 23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9 | [
"MIT"
] | null | null | null | n = int(input())
left_sum = 0
right_sum = 0
for i in range(2 * n):
current_num = int(input())
if i < n:
left_sum += current_num
else:
right_sum += current_num
if left_sum == right_sum:
print(f"Yes, sum = {right_sum}")
else:
diff = abs(left_sum - right_sum)
print(f"No, diff = ... | 18.222222 | 36 | 0.582317 | 54 | 328 | 3.314815 | 0.407407 | 0.223464 | 0.184358 | 0.167598 | 0.234637 | 0.234637 | 0 | 0 | 0 | 0 | 0 | 0.012605 | 0.27439 | 328 | 18 | 37 | 18.222222 | 0.739496 | 0 | 0 | 0.142857 | 0 | 0 | 0.118541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e9d525bce7e4f4833a8806b7ee426b3410ead79d | 581 | py | Python | pydcmio/deface/__init__.py | neurospin/caps-dcmio | 4ac4f203f3f360126cbcd4f0d72883291153c664 | [
"CECILL-B"
] | 5 | 2017-10-12T08:40:27.000Z | 2021-01-01T14:54:01.000Z | pydcmio/deface/__init__.py | neurospin/caps-dcmio | 4ac4f203f3f360126cbcd4f0d72883291153c664 | [
"CECILL-B"
] | 2 | 2015-07-20T07:02:52.000Z | 2016-04-27T13:27:49.000Z | pydcmio/deface/__init__.py | neurospin/caps-dcmio | 4ac4f203f3f360126cbcd4f0d72883291153c664 | [
"CECILL-B"
] | 3 | 2015-06-29T14:27:39.000Z | 2015-09-04T13:22:21.000Z | ##########################################################################
# NSAp - Copyright (C) CEA, 2017
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
# for details.
##########... | 36.3125 | 74 | 0.569707 | 72 | 581 | 4.513889 | 0.638889 | 0.110769 | 0.129231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009728 | 0.115318 | 581 | 15 | 75 | 38.733333 | 0.622568 | 0.488812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
75647498296c1b12f5a2baee40e32918f2551fd9 | 71 | py | Python | problem/01000~09999/09625/9625.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/01000~09999/09625/9625.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/01000~09999/09625/9625.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | A,B=1,0
for _ in range(int(input())):
T=A
A+=B
B+=T
A-=T
print(A,B) | 10.142857 | 29 | 0.535211 | 20 | 71 | 1.85 | 0.55 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.183099 | 71 | 7 | 30 | 10.142857 | 0.603448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.