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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8d5b05a19aab80d6d3d4de8a753ac0a6e15cb91d | 76 | py | Python | 0x00-python-hello_world/5-print_string.py | coding-max/holbertonschool-higher_level_programming | 392fed1ae686642b6cca6bb6752050882bbf79fc | [
"MIT"
] | 1 | 2021-04-26T03:45:12.000Z | 2021-04-26T03:45:12.000Z | 0x00-python-hello_world/5-print_string.py | coding-max/holbertonschool-higher_level_programming | 392fed1ae686642b6cca6bb6752050882bbf79fc | [
"MIT"
] | null | null | null | 0x00-python-hello_world/5-print_string.py | coding-max/holbertonschool-higher_level_programming | 392fed1ae686642b6cca6bb6752050882bbf79fc | [
"MIT"
] | 1 | 2022-02-02T02:44:35.000Z | 2022-02-02T02:44:35.000Z | #!/usr/bin/python3
str = "Holberton School"
print(str * 3 + "\n" + str[:9])
| 19 | 31 | 0.592105 | 12 | 76 | 3.75 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.157895 | 76 | 3 | 32 | 25.333333 | 0.65625 | 0.223684 | 0 | 0 | 0 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8d7b419f9f3ff27a14ad4f1d893dde87f90998ac | 307 | py | Python | Part_3_advanced/m14_metaclass/register_cls/homework_1_solution/example_system/human.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m14_metaclass/register_cls/homework_1_solution/example_system/human.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m14_metaclass/register_cls/homework_1_solution/example_system/human.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | from example_system.serializable import RegisteredSerializable
class Human(RegisteredSerializable):
def __init__(self, name: str, age: int) -> None:
super().__init__(name, age)
self.name = name
self.age = age
def __str__(self) -> str:
return f"Human: {self.name}"
| 25.583333 | 62 | 0.654723 | 36 | 307 | 5.222222 | 0.527778 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234528 | 307 | 11 | 63 | 27.909091 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.058632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 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 |
8d7cb704968bd2fca727dae5bdebeb09777d518a | 104 | py | Python | src/nn/NNNet.py | BetsyHJ/SOFA | a80e684b8047496dac6a164893b9e0666fa474a7 | [
"MIT"
] | 20 | 2020-07-28T09:57:26.000Z | 2022-02-13T12:42:12.000Z | src/nn/NNNet.py | BetsyHJ/SOFA | a80e684b8047496dac6a164893b9e0666fa474a7 | [
"MIT"
] | null | null | null | src/nn/NNNet.py | BetsyHJ/SOFA | a80e684b8047496dac6a164893b9e0666fa474a7 | [
"MIT"
] | 3 | 2021-03-24T08:33:28.000Z | 2022-01-23T03:14:22.000Z | '''
Author: Jin
Goal: To build MainNet and TargetNet for DQN
'''
class RNN(object):
def __init__(): | 14.857143 | 44 | 0.673077 | 15 | 104 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 104 | 7 | 45 | 14.857143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d859c0f83eae77aada3874f75ebbe53cdeae4a1 | 116 | py | Python | Tuples and Sets - Exercise/01. Unique Usernames.py | B3WD/python_advanced | 477b2eac41f1ec5a172d612afda1096a9d7fb2f5 | [
"MIT"
] | 1 | 2020-10-28T07:52:17.000Z | 2020-10-28T07:52:17.000Z | Tuples and Sets - Exercise/01. Unique Usernames.py | B3WD/python_advanced_softuni | 477b2eac41f1ec5a172d612afda1096a9d7fb2f5 | [
"MIT"
] | null | null | null | Tuples and Sets - Exercise/01. Unique Usernames.py | B3WD/python_advanced_softuni | 477b2eac41f1ec5a172d612afda1096a9d7fb2f5 | [
"MIT"
] | null | null | null | names_count = int(input())
unique_names = set([input() for _ in range(names_count)])
print("\n".join(unique_names)) | 29 | 57 | 0.715517 | 18 | 116 | 4.333333 | 0.666667 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094828 | 116 | 4 | 58 | 29 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d9224d5877a59888afe34df1bc1a229bccd064f | 498 | py | Python | c2-NaiveBayes.py | chongguang/scikitLearning | a6c93fc17f801029745a04feb51557abf8484b8e | [
"MIT"
] | null | null | null | c2-NaiveBayes.py | chongguang/scikitLearning | a6c93fc17f801029745a04feb51557abf8484b8e | [
"MIT"
] | null | null | null | c2-NaiveBayes.py | chongguang/scikitLearning | a6c93fc17f801029745a04feb51557abf8484b8e | [
"MIT"
] | null | null | null | from sklearn.datasets import fetch_20newsgroups
news = fetch_20newsgroups(subset='all')
print type(news.data), type(news.target), type(news.target_names)
print news.target_names
print len(news.data)
print len(news.target)
print news.data[0]
print news.target[0], news.target_names[news.target[0]]
SPLIT_PERC = 0.75
s... | 24.9 | 65 | 0.7751 | 84 | 498 | 4.404762 | 0.297619 | 0.243243 | 0.121622 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022075 | 0.090361 | 498 | 19 | 66 | 26.210526 | 0.794702 | 0 | 0 | 0 | 0 | 0 | 0.006036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8d9947b6bf63c7f6e5e97265636e663337117c0c | 768 | py | Python | scripts/utils/conll/sentence.py | coastalcph/eacl2021-morpherror | 20b213d5a977c80fb9250fad1e05f3ec72371a5d | [
"MIT"
] | 2 | 2021-04-23T16:22:20.000Z | 2021-04-29T15:10:13.000Z | scripts/utils/conll/sentence.py | coastalcph/eacl2021-morpherror | 20b213d5a977c80fb9250fad1e05f3ec72371a5d | [
"MIT"
] | null | null | null | scripts/utils/conll/sentence.py | coastalcph/eacl2021-morpherror | 20b213d5a977c80fb9250fad1e05f3ec72371a5d | [
"MIT"
] | null | null | null | class Sentence:
def __init__(self):
self._tokens = []
self._metadata = []
def append_metadata(self, data):
self._metadata.append(data)
def append_token(self, token):
self._tokens.append(token)
def __bool__(self):
return len(self._tokens) > 0
def __len__(se... | 23.272727 | 73 | 0.597656 | 98 | 768 | 4.306122 | 0.336735 | 0.165877 | 0.07109 | 0.080569 | 0.109005 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001832 | 0.289063 | 768 | 32 | 74 | 24 | 0.771062 | 0 | 0 | 0 | 0 | 0 | 0.009115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.166667 | 0.625 | 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 |
a5d318743f6ba5eb7e4704eb8fe9a75de8bccdc3 | 571 | py | Python | spec/python/test_process_coerce_usertype2.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 11 | 2018-04-01T03:58:15.000Z | 2021-08-14T09:04:55.000Z | spec/python/test_process_coerce_usertype2.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 73 | 2016-07-20T10:27:15.000Z | 2020-12-17T18:56:46.000Z | spec/python/test_process_coerce_usertype2.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 37 | 2016-08-15T08:25:56.000Z | 2021-08-28T14:48:46.000Z | # Autogenerated from KST: please remove this line if doing any edits by hand!
import unittest
from process_coerce_usertype2 import ProcessCoerceUsertype2
class TestProcessCoerceUsertype2(unittest.TestCase):
def test_process_coerce_usertype2(self):
with ProcessCoerceUsertype2.from_file('src/process_coerce... | 40.785714 | 83 | 0.735552 | 72 | 571 | 5.722222 | 0.569444 | 0.145631 | 0.15534 | 0.223301 | 0.23301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065678 | 0.17338 | 571 | 13 | 84 | 43.923077 | 0.807203 | 0.131349 | 0 | 0 | 1 | 0 | 0.05668 | 0.05668 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a5e9050ab3bbbd93e37bee77b65b96f7d71e72f7 | 27 | py | Python | imagepy/menus/Process/TemplateMatch/__init__.py | pengguanjun/imagepy | d96ef98c2c3e93d368131fd2753bce164e1247cd | [
"BSD-4-Clause"
] | 1 | 2020-08-17T04:18:35.000Z | 2020-08-17T04:18:35.000Z | imagepy/menus/Process/TemplateMatch/__init__.py | pengguanjun/imagepy | d96ef98c2c3e93d368131fd2753bce164e1247cd | [
"BSD-4-Clause"
] | null | null | null | imagepy/menus/Process/TemplateMatch/__init__.py | pengguanjun/imagepy | d96ef98c2c3e93d368131fd2753bce164e1247cd | [
"BSD-4-Clause"
] | null | null | null | catlog = ['template_plgs']
| 13.5 | 26 | 0.703704 | 3 | 27 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.481481 | 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 |
a5ef63a7646463658e8441f7b845c20a7ebc0f59 | 1,323 | py | Python | setup.py | wuan/scan_pdf | ebac89ff0c7be9266142904946b41f0f05e07413 | [
"Apache-2.0"
] | null | null | null | setup.py | wuan/scan_pdf | ebac89ff0c7be9266142904946b41f0f05e07413 | [
"Apache-2.0"
] | null | null | null | setup.py | wuan/scan_pdf | ebac89ff0c7be9266142904946b41f0f05e07413 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
import glob
from setuptools import setup, find_packages
setup(
name='scan-pdf',
version='0.2.6',
packages=find_packages(where='./src', exclude='tests'),
package_dir={'': 'src'},
scripts=['src/scan-pdf'],
description='Tools for using scanners with document feeder',
author='An... | 33.923077 | 77 | 0.625094 | 155 | 1,323 | 5.296774 | 0.612903 | 0.059683 | 0.182704 | 0.190012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.236584 | 1,323 | 38 | 78 | 34.815789 | 0.793069 | 0.188209 | 0 | 0 | 0 | 0 | 0.516854 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a5f3dc60b72f19209bcbf847d9cd28d31bb404fc | 45 | py | Python | conf/settings/api/metadata.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 28 | 2017-12-16T20:30:52.000Z | 2021-08-11T17:35:04.000Z | conf/settings/api/metadata.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 446 | 2017-11-16T15:21:40.000Z | 2021-06-10T20:14:21.000Z | conf/settings/api/metadata.py | datosgobar/series-tiempo-ar-api | 6b553c573f6e8104f8f3919efe79089b7884280c | [
"MIT"
] | 12 | 2018-08-23T16:13:32.000Z | 2022-03-01T23:12:28.000Z | #! coding: utf-8
MAX_DATASET_SOURCES = 1000
| 11.25 | 26 | 0.733333 | 7 | 45 | 4.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0.155556 | 45 | 3 | 27 | 15 | 0.684211 | 0.333333 | 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 |
573d1409ac07ff3d2986809c24aba8133429985d | 195 | py | Python | Assignments/Iterators and Generators/Exercise/9_possible_permutations.py | KaloyankerR/python-oop-repository | 7cd565b0b173c4a02e7b2dc22bfeb7808d294f89 | [
"MIT"
] | null | null | null | Assignments/Iterators and Generators/Exercise/9_possible_permutations.py | KaloyankerR/python-oop-repository | 7cd565b0b173c4a02e7b2dc22bfeb7808d294f89 | [
"MIT"
] | null | null | null | Assignments/Iterators and Generators/Exercise/9_possible_permutations.py | KaloyankerR/python-oop-repository | 7cd565b0b173c4a02e7b2dc22bfeb7808d294f89 | [
"MIT"
] | null | null | null | from itertools import permutations
def possible_permutations(numbers):
for num in list(permutations(numbers)):
yield list(num)
[print(n) for n in possible_permutations([1, 2, 3])]
| 21.666667 | 52 | 0.723077 | 27 | 195 | 5.148148 | 0.62963 | 0.28777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018634 | 0.174359 | 195 | 8 | 53 | 24.375 | 0.844721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5742a348fccf59b4d0b4824804b8397345983fd2 | 100 | py | Python | django-snomed/src/django_snomed/apps.py | pinduvn/snomed-database-loader | e286c14aa9830b4b7040e9395272eadd85412c07 | [
"MIT"
] | null | null | null | django-snomed/src/django_snomed/apps.py | pinduvn/snomed-database-loader | e286c14aa9830b4b7040e9395272eadd85412c07 | [
"MIT"
] | null | null | null | django-snomed/src/django_snomed/apps.py | pinduvn/snomed-database-loader | e286c14aa9830b4b7040e9395272eadd85412c07 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DjangoSnomedConfig(AppConfig):
name = 'django_snomed'
| 16.666667 | 36 | 0.78 | 11 | 100 | 7 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 100 | 5 | 37 | 20 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0.13 | 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 |
57515cd9a2ccd92f40b52e7b2ba976050fbd478c | 350 | py | Python | work/add/add.py | natsutan/Judecca | e93d968bed8ac28cc2c685d9c46c84cbba459553 | [
"MIT"
] | null | null | null | work/add/add.py | natsutan/Judecca | e93d968bed8ac28cc2c685d9c46c84cbba459553 | [
"MIT"
] | null | null | null | work/add/add.py | natsutan/Judecca | e93d968bed8ac28cc2c685d9c46c84cbba459553 | [
"MIT"
] | null | null | null | import tensorflow.keras
x = tensorflow.keras.layers.Input(shape=(1,))
y = tensorflow.keras.layers.Input(shape=(1,))
z = tensorflow.keras.layers.add([x, y])
model = tensorflow.keras.models.Model(inputs=[x, y], outputs=z)
model.summary()
model.save("add.h5")
json_str = model.to_json()
with open("add.json", 'w') as f... | 17.5 | 63 | 0.691429 | 56 | 350 | 4.267857 | 0.482143 | 0.313808 | 0.263598 | 0.217573 | 0.267782 | 0.267782 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.117143 | 350 | 19 | 64 | 18.421053 | 0.763754 | 0 | 0 | 0 | 0 | 0 | 0.043353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
575234fa05babc650cbca1802839304982af7745 | 525 | py | Python | tests/conftest.py | timgates42/guv | d7bac2ca6a73cc2059969af08223b82f3e187922 | [
"MIT"
] | 120 | 2015-01-05T15:15:26.000Z | 2020-07-28T11:25:10.000Z | tests/conftest.py | timgates42/guv | d7bac2ca6a73cc2059969af08223b82f3e187922 | [
"MIT"
] | 22 | 2015-01-12T21:52:32.000Z | 2017-01-22T18:18:20.000Z | tests/conftest.py | timgates42/guv | d7bac2ca6a73cc2059969af08223b82f3e187922 | [
"MIT"
] | 13 | 2015-01-18T11:42:34.000Z | 2021-07-15T10:59:22.000Z | import pytest
from guv.greenio import socket
from guv import listen
@pytest.fixture(scope='session')
def pub_addr():
"""A working public address that is considered always available
"""
return 'gnu.org', 80
@pytest.fixture(scope='session')
def fail_addr():
"""An address that nothing is listening on
... | 16.935484 | 67 | 0.670476 | 71 | 525 | 4.915493 | 0.535211 | 0.148997 | 0.206304 | 0.143266 | 0.326648 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030588 | 0.190476 | 525 | 30 | 68 | 17.5 | 0.790588 | 0.2 | 0 | 0.25 | 0 | 0 | 0.114144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.0625 | 0.6875 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
938eff569c5bb8920c71538037b6830acc444425 | 118 | py | Python | Set/2.Traverse-using-loop.py | manish1822510059/Python-1000-program | d03c1920fe63a7e32ac5bd9a13e2766d7a25756c | [
"Apache-2.0"
] | 1 | 2021-03-06T03:33:42.000Z | 2021-03-06T03:33:42.000Z | Set/2.Traverse-using-loop.py | manish1822510059/Python-1000-programs | d03c1920fe63a7e32ac5bd9a13e2766d7a25756c | [
"Apache-2.0"
] | null | null | null | Set/2.Traverse-using-loop.py | manish1822510059/Python-1000-programs | d03c1920fe63a7e32ac5bd9a13e2766d7a25756c | [
"Apache-2.0"
] | null | null | null | myset ={"C","C++","Python","Shap","Ruby","Java"}
print("All items of the set :")
for item in myset:
print(item) | 29.5 | 49 | 0.584746 | 19 | 118 | 3.631579 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161017 | 118 | 4 | 50 | 29.5 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
93a74fd307d04ab0be4467bd3441e31c3f642a57 | 267 | py | Python | yolodex/templatetags/yolodex.py | correctiv/django-yolodex | e30dff95153c312119acad3c35ef7fcca0fab076 | [
"MIT"
] | 5 | 2015-06-22T20:15:49.000Z | 2016-08-17T13:19:41.000Z | yolodex/templatetags/yolodex.py | correctiv/django-yolodex | e30dff95153c312119acad3c35ef7fcca0fab076 | [
"MIT"
] | null | null | null | yolodex/templatetags/yolodex.py | correctiv/django-yolodex | e30dff95153c312119acad3c35ef7fcca0fab076 | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
@register.simple_tag
def verbify(edge, subject):
return edge.render_with_subject(subject, link_object=True)
@register.assignment_tag
def dictKeyLookup(the_dict, key):
return the_dict.get(key, '')
| 19.071429 | 62 | 0.771536 | 36 | 267 | 5.527778 | 0.666667 | 0.060302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127341 | 267 | 13 | 63 | 20.538462 | 0.854077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.625 | 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 |
93b083ab4799b0b97a1bc761bafae5f4f055861f | 56 | py | Python | p1/p1_utils.py | RajatBhageria/Convolutional-Neural-Nets | 0097bb9397a568b4341958f08fd79ad8fb4b55cd | [
"MIT"
] | null | null | null | p1/p1_utils.py | RajatBhageria/Convolutional-Neural-Nets | 0097bb9397a568b4341958f08fd79ad8fb4b55cd | [
"MIT"
] | null | null | null | p1/p1_utils.py | RajatBhageria/Convolutional-Neural-Nets | 0097bb9397a568b4341958f08fd79ad8fb4b55cd | [
"MIT"
] | null | null | null | '''
File name: p1_utils.py
Author:
Date:
'''
| 9.333333 | 25 | 0.5 | 7 | 56 | 3.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.321429 | 56 | 5 | 26 | 11.2 | 0.684211 | 0.642857 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
93c2de3f7cdf41bc9e5a28fff583dc4eb5f017e3 | 138 | py | Python | ansible_events/__init__.py | benthomasson/ansible-events | bd90edb68778f9f5ad82591f46993335fada8ed4 | [
"Apache-2.0"
] | null | null | null | ansible_events/__init__.py | benthomasson/ansible-events | bd90edb68778f9f5ad82591f46993335fada8ed4 | [
"Apache-2.0"
] | 17 | 2022-03-07T17:57:07.000Z | 2022-03-23T18:58:48.000Z | ansible_events/__init__.py | benthomasson/ansible-events | bd90edb68778f9f5ad82591f46993335fada8ed4 | [
"Apache-2.0"
] | null | null | null | """Top-level package for Ansible Events."""
__author__ = """Ben Thomasson"""
__email__ = 'ben.thomasson@gmail.com'
__version__ = '0.4.0'
| 23 | 43 | 0.695652 | 18 | 138 | 4.666667 | 0.833333 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02459 | 0.115942 | 138 | 5 | 44 | 27.6 | 0.663934 | 0.268116 | 0 | 0 | 0 | 0 | 0.431579 | 0.242105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
93c556751d0b12a0a620100b7c2411b7298c9114 | 22 | py | Python | supplychainpy/warehouse/optimise_warehouse.py | supplybi/supplychainpy | 821ea21adb684abba7f9a7b26eaf218f44b45ced | [
"BSD-3-Clause"
] | 5 | 2018-09-07T09:00:31.000Z | 2022-01-02T05:20:46.000Z | supplychainpy/warehouse/optimise_warehouse.py | supplybi/supplychainpy | 821ea21adb684abba7f9a7b26eaf218f44b45ced | [
"BSD-3-Clause"
] | null | null | null | supplychainpy/warehouse/optimise_warehouse.py | supplybi/supplychainpy | 821ea21adb684abba7f9a7b26eaf218f44b45ced | [
"BSD-3-Clause"
] | 3 | 2018-02-14T14:04:45.000Z | 2021-04-15T04:31:42.000Z | __author__ = 'Fasusi'
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 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 |
93fd4607816e9157348008128bfaf7a147e61975 | 22,708 | py | Python | test/mapping/phmrc_age_mapping.py | rileyhazard/SmartVA-Analyze-1 | 0573eeff27d03f54e7506db4f1631c0cd9f54bbb | [
"MIT"
] | 4 | 2019-01-23T12:57:47.000Z | 2020-04-18T17:13:08.000Z | test/mapping/phmrc_age_mapping.py | rileyhazard/SmartVA-Analyze-1 | 0573eeff27d03f54e7506db4f1631c0cd9f54bbb | [
"MIT"
] | 4 | 2019-01-09T22:10:07.000Z | 2022-02-16T04:57:06.000Z | test/mapping/phmrc_age_mapping.py | rileyhazard/SmartVA-Analyze-1 | 0573eeff27d03f54e7506db4f1631c0cd9f54bbb | [
"MIT"
] | 11 | 2018-12-11T22:01:13.000Z | 2022-01-07T11:38:02.000Z | MAPPING = [
{
'sid': 'Adult age binary (yes)',
'symptom': 'age',
'module': 'adult',
'gen_5_4a': 55,
'endorsed': True,
},
{
'sid': 'Adult age binary (no)',
'symptom': 'age',
'module': 'adult',
'gen_5_4a': 45,
'endorsed': False,
... | 25.629797 | 72 | 0.461159 | 2,242 | 22,708 | 4.55843 | 0.045941 | 0.049315 | 0.10137 | 0.108611 | 0.98728 | 0.976908 | 0.931409 | 0.687378 | 0.515362 | 0.364188 | 0 | 0.062294 | 0.357407 | 22,708 | 885 | 73 | 25.658757 | 0.638089 | 0.008984 | 0 | 0.540724 | 0 | 0 | 0.464995 | 0 | 0 | 0 | 0 | 0.00113 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9e1e7115b84c1369919dce084b46bcad1d213b21 | 204 | py | Python | Ladder 11/Python/045.Bicycle Chain.py | purush34/a2oj-solutions | 1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb | [
"MIT"
] | null | null | null | Ladder 11/Python/045.Bicycle Chain.py | purush34/a2oj-solutions | 1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb | [
"MIT"
] | 1 | 2021-12-01T06:53:18.000Z | 2021-12-01T07:09:31.000Z | Ladder 11/Python/045.Bicycle Chain.py | purush34/a2oj-solutions | 1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb | [
"MIT"
] | 4 | 2021-10-31T16:36:28.000Z | 2021-12-01T05:48:31.000Z | x = int(input())
a = list(map(int,input().split()))
y = int(input())
b = list(map(int,input().split()))
f=[]
for i in b:
for j in a:
if i%j==0:
f.append(i/j)
print(f.count(max(f))) | 20.4 | 34 | 0.509804 | 40 | 204 | 2.6 | 0.5 | 0.307692 | 0.192308 | 0.288462 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.235294 | 204 | 10 | 35 | 20.4 | 0.660256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 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 |
9e20963e94988237fa46b257107e84482b45643c | 425 | py | Python | Resources/SampleQuizzes/Spring2022/Test2/code/Testing/Mystery.py | rcos/CSCI-4961-01-Summer-2018 | 3d258da477a363b770d036e0c12c5b762e31a5ad | [
"BSD-2-Clause",
"CC-BY-4.0"
] | 1 | 2018-10-18T02:36:34.000Z | 2018-10-18T02:36:34.000Z | Resources/SampleQuizzes/Spring2022/Test2/code/Testing/Mystery.py | rcos/CSCI-4961-01-Summer-2018 | 3d258da477a363b770d036e0c12c5b762e31a5ad | [
"BSD-2-Clause",
"CC-BY-4.0"
] | null | null | null | Resources/SampleQuizzes/Spring2022/Test2/code/Testing/Mystery.py | rcos/CSCI-4961-01-Summer-2018 | 3d258da477a363b770d036e0c12c5b762e31a5ad | [
"BSD-2-Clause",
"CC-BY-4.0"
] | null | null | null | class mystery(object):
def __init__(this, length, values):
this.values = [0]*length
for value in values:
this.values[value] += 1
def __str__(this):
return "length {:d}: {}".format(len(this.values), this.values)
def __add__(this, value):
myst = mystery(len(this.v... | 28.333333 | 70 | 0.571765 | 52 | 425 | 4.442308 | 0.403846 | 0.25974 | 0.277056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009836 | 0.282353 | 425 | 14 | 71 | 30.357143 | 0.747541 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.083333 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f5111cc32e33f9f0af3a03181029177662909280 | 2,558 | py | Python | workflow/tests/test_spinup.py | isciences/wsim | 1f35dbf065e72a4aaed31eeabc08d9e18e71366b | [
"Apache-2.0"
] | 5 | 2018-05-31T19:56:41.000Z | 2022-02-09T13:04:18.000Z | workflow/tests/test_spinup.py | isciences/wsim | 1f35dbf065e72a4aaed31eeabc08d9e18e71366b | [
"Apache-2.0"
] | null | null | null | workflow/tests/test_spinup.py | isciences/wsim | 1f35dbf065e72a4aaed31eeabc08d9e18e71366b | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 ISciences, LLC.
# All rights reserved.
#
# WSIM is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. You may
# obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicab... | 31.580247 | 89 | 0.656372 | 326 | 2,558 | 5.027607 | 0.460123 | 0.036608 | 0.039048 | 0.031117 | 0.061013 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.240422 | 2,558 | 80 | 90 | 31.975 | 0.81369 | 0.275215 | 0 | 0 | 0 | 0 | 0.045207 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 1 | 0.255814 | false | 0 | 0.116279 | 0.186047 | 0.674419 | 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 |
f51c7fd833891aa1e2872248055d1fed22589ff7 | 250 | py | Python | djAidESILV/core/views.py | Kulumbaf/AidESILV | 04dad828048edffdd3662b24c415edce22fd3ea3 | [
"MIT"
] | null | null | null | djAidESILV/core/views.py | Kulumbaf/AidESILV | 04dad828048edffdd3662b24c415edce22fd3ea3 | [
"MIT"
] | null | null | null | djAidESILV/core/views.py | Kulumbaf/AidESILV | 04dad828048edffdd3662b24c415edce22fd3ea3 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from account.models import UserProfile
def home(request):
count = UserProfile.objects.count()
return render(request, 'home.html', {'count': count}) | 35.714286 | 57 | 0.78 | 32 | 250 | 6.0625 | 0.625 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 250 | 7 | 58 | 35.714286 | 0.881818 | 0 | 0 | 0 | 0 | 0 | 0.055777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 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 |
f5539b01269f0ed513319480dcbe4a2202b7aba1 | 274 | py | Python | WebBrickLibs/EventHandlers/TextAnywhere.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | WebBrickLibs/EventHandlers/TextAnywhere.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | WebBrickLibs/EventHandlers/TextAnywhere.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | # Copyright L.P.Klyne 2013
# Licenced under 3 clause BSD licence
import logging
from EventLib.Event import Event
from EventLib.Status import StatusVal
from EventLib.SyncDeferred import makeDeferred
from EventHandlers.BaseHandler import BaseHandler | 22.833333 | 50 | 0.770073 | 33 | 274 | 6.393939 | 0.666667 | 0.170616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022831 | 0.20073 | 274 | 12 | 51 | 22.833333 | 0.940639 | 0.222628 | 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 |
f58833743469aa3eaea3e8e4da1125a568630d09 | 480 | py | Python | lino_xl/lib/outbox/dummy.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2018-01-12T14:09:48.000Z | 2018-01-12T14:09:48.000Z | lino_xl/lib/outbox/dummy.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2019-09-10T05:03:47.000Z | 2019-09-10T05:03:47.000Z | lino_xl/lib/outbox/dummy.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
# Copyright 2012-2014 Luc Saffre
#
# License: BSD (see file COPYING for details)
"""
The :term:`dummy module` for `outbox`,
used by :func:`lino.core.utils.resolve_app`.
"""
from lino.api import dd
class Mailable(object):
pass
#~ class MailableType(object): pass
class MailableType(dd.M... | 17.777778 | 45 | 0.68125 | 62 | 480 | 5.209677 | 0.758065 | 0.111455 | 0.092879 | 0.167183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023018 | 0.185417 | 480 | 26 | 46 | 18.461538 | 0.803069 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1933674a7d341e0b1d28add571258d5210d202ea | 1,417 | py | Python | release/stubs.min/Autodesk/Revit/DB/__init___parts/FilterIntegerRule.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/Autodesk/Revit/DB/__init___parts/FilterIntegerRule.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/Autodesk/Revit/DB/__init___parts/FilterIntegerRule.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | class FilterIntegerRule(FilterNumericValueRule,IDisposable):
"""
A filter rule that operates on integer values in a Revit project.
FilterIntegerRule(valueProvider: FilterableValueProvider,evaluator: FilterNumericRuleEvaluator,ruleValue: int)
"""
def Dispose(self):
""" Dispose(self: FilterRule,A_0: b... | 33.738095 | 215 | 0.729005 | 155 | 1,417 | 6.225806 | 0.419355 | 0.029016 | 0.049741 | 0.059067 | 0.289119 | 0.289119 | 0.117098 | 0.117098 | 0.117098 | 0.117098 | 0 | 0.000829 | 0.1482 | 1,417 | 41 | 216 | 34.560976 | 0.798674 | 0.504587 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.4 | 0 | 0 | 0.533333 | 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 |
194ff071ff285b543abbaf0cbc6830737e2543e0 | 1,527 | py | Python | mdtools/issues/issues.py | lowlight-ua/mdtools | 0d8b5ccb5b8892bc49139f72d6e1f3b9c44ab3c5 | [
"MIT"
] | null | null | null | mdtools/issues/issues.py | lowlight-ua/mdtools | 0d8b5ccb5b8892bc49139f72d6e1f3b9c44ab3c5 | [
"MIT"
] | null | null | null | mdtools/issues/issues.py | lowlight-ua/mdtools | 0d8b5ccb5b8892bc49139f72d6e1f3b9c44ab3c5 | [
"MIT"
] | null | null | null | """Classes that represent issues that the script can detect."""
from pathlib import Path
from mdtools.util import clr
from mdtools.model.tree import Link, Anchor
class Issue:
"""Base class for all issues that the script can detect."""
# The Path to the file where this issue was found
path: Path
def... | 25.45 | 87 | 0.635232 | 201 | 1,527 | 4.716418 | 0.308458 | 0.042194 | 0.050633 | 0.047468 | 0.397679 | 0.208861 | 0.054852 | 0 | 0 | 0 | 0 | 0 | 0.242305 | 1,527 | 59 | 88 | 25.881356 | 0.81936 | 0.311067 | 0 | 0.230769 | 0 | 0 | 0.081162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.115385 | 0.115385 | 0.807692 | 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 |
195558f789d5ed0fd97710faaf6a12db0ede5089 | 2,784 | py | Python | test/selenium_tests/test_history_multi_view.py | innovate-invent/galaxy | 10aa953a40e171246bdd1804c74e8019da8e8200 | [
"CC-BY-3.0"
] | 2 | 2017-10-23T14:44:12.000Z | 2018-01-14T10:37:28.000Z | test/selenium_tests/test_history_multi_view.py | innovate-invent/galaxy | 10aa953a40e171246bdd1804c74e8019da8e8200 | [
"CC-BY-3.0"
] | 30 | 2016-10-20T15:35:12.000Z | 2018-10-02T15:59:54.000Z | test/selenium_tests/test_history_multi_view.py | innovate-invent/galaxy | 10aa953a40e171246bdd1804c74e8019da8e8200 | [
"CC-BY-3.0"
] | 7 | 2016-11-03T19:11:01.000Z | 2020-05-11T14:23:52.000Z | from .framework import (
selenium_test,
SeleniumTestCase
)
class HistoryMultiViewTestCase(SeleniumTestCase):
ensure_registered = True
@selenium_test
def test_create_new_old_slides_next(self):
history_id = self.current_history_id()
input_collection = self.dataset_collection_popula... | 40.941176 | 133 | 0.748563 | 347 | 2,784 | 5.530259 | 0.184438 | 0.051068 | 0.046899 | 0.070349 | 0.789474 | 0.768629 | 0.746743 | 0.688379 | 0.668056 | 0.668056 | 0 | 0.00172 | 0.164511 | 2,784 | 67 | 134 | 41.552239 | 0.823302 | 0 | 0 | 0.56 | 0 | 0 | 0.073635 | 0.056034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.02 | 0 | 0.12 | 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 |
195f0d7887fad3cee504b798b75ecbc397ed99cd | 228 | py | Python | frappe/core/doctype/ticker_master/test_ticker_master.py | gangadhar-kadam/lgnlvefrape | 6c72c134d358030d3737ff63e5a4b8187e802f17 | [
"MIT"
] | null | null | null | frappe/core/doctype/ticker_master/test_ticker_master.py | gangadhar-kadam/lgnlvefrape | 6c72c134d358030d3737ff63e5a4b8187e802f17 | [
"MIT"
] | null | null | null | frappe/core/doctype/ticker_master/test_ticker_master.py | gangadhar-kadam/lgnlvefrape | 6c72c134d358030d3737ff63e5a4b8187e802f17 | [
"MIT"
] | null | null | null | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# See license.txt
import frappe
import unittest
test_records = frappe.get_test_records('Ticker Master')
class TestTickerMaster(unittest.TestCase):
pass
| 20.727273 | 71 | 0.79386 | 30 | 228 | 5.933333 | 0.833333 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020101 | 0.127193 | 228 | 10 | 72 | 22.8 | 0.874372 | 0.372807 | 0 | 0 | 0 | 0 | 0.092857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 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 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
195f60c6401cc500340f27e30acf0d51334c245e | 2,713 | py | Python | tests/test_figure/test_current_figure.py | nstarman/starkplot | e629abfa96448281cf590911107362f77c11fb4a | [
"BSD-3-Clause"
] | 2 | 2019-03-22T22:07:27.000Z | 2020-11-20T18:27:09.000Z | tests/test_figure/test_current_figure.py | nstarman/starkplot | e629abfa96448281cf590911107362f77c11fb4a | [
"BSD-3-Clause"
] | 3 | 2020-09-25T06:58:28.000Z | 2021-12-20T00:16:21.000Z | tests/test_figure/test_current_figure.py | nstarman/starkplot | e629abfa96448281cf590911107362f77c11fb4a | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
#
# TITLE : test_figure
# AUTHOR : Nathaniel Starkman
# PROJECT : starkplot
#
# ----------------------------------------------------------------------------
### Docstring and Metadata
"""**D... | 20.398496 | 78 | 0.446738 | 256 | 2,713 | 4.675781 | 0.210938 | 0.075188 | 0.125313 | 0.066834 | 0.695906 | 0.66249 | 0.66249 | 0.66249 | 0.626566 | 0.626566 | 0 | 0.024023 | 0.217471 | 2,713 | 132 | 79 | 20.55303 | 0.539802 | 0.409141 | 0 | 0.772727 | 0 | 0 | 0.023059 | 0 | 0 | 0 | 0 | 0 | 0.409091 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1988937123ea1ae96dc6bbffb63201476b8a9d45 | 312 | py | Python | pythonUtils/ProcessTools/__init__.py | tgquintela/pythonUtils | 6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe | [
"MIT"
] | 1 | 2015-07-21T05:15:11.000Z | 2015-07-21T05:15:11.000Z | pythonUtils/ProcessTools/__init__.py | tgquintela/pythonUtils | 6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe | [
"MIT"
] | null | null | null | pythonUtils/ProcessTools/__init__.py | tgquintela/pythonUtils | 6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe | [
"MIT"
] | null | null | null |
"""
ProcessTools
============
Module which groups the main functions and utilities to manage large processes
in which we need common tasks of logging, storing and measuring the process.
"""
## Testing function
from test_processtools import test
## Main functions and classes
from processer import Processer
| 19.5 | 78 | 0.762821 | 41 | 312 | 5.780488 | 0.731707 | 0.109705 | 0.135021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160256 | 312 | 15 | 79 | 20.8 | 0.90458 | 0.724359 | 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 |
198c543effdecd8ead22846e3c09f050199f5461 | 423 | py | Python | orangengine/__init__.py | lampwins/oragengine | 5addcbe17bf7653d1e8aa143cb0dc9959d7bda6a | [
"MIT"
] | 17 | 2017-02-01T06:50:08.000Z | 2021-09-28T09:24:20.000Z | orangengine/__init__.py | lampwins/oragengine | 5addcbe17bf7653d1e8aa143cb0dc9959d7bda6a | [
"MIT"
] | 5 | 2016-11-15T16:03:51.000Z | 2019-06-27T19:55:54.000Z | orangengine/__init__.py | lampwins/oragengine | 5addcbe17bf7653d1e8aa143cb0dc9959d7bda6a | [
"MIT"
] | 7 | 2017-01-26T23:26:10.000Z | 2021-09-28T09:28:20.000Z | # -*- coding: utf-8 -*-
from orangengine.dispatcher import dispatch
from orangengine import utils
import logging
__all__ = ['dispatch', 'utils']
# Set default logging handler to avoid "No handler found" warnings.
try:
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
... | 21.15 | 67 | 0.72104 | 48 | 423 | 6.1875 | 0.666667 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002899 | 0.184397 | 423 | 19 | 68 | 22.263158 | 0.857971 | 0.205674 | 0 | 0 | 0 | 0 | 0.039039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.454545 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
198c72340c5150f8079a9beb339d5ff5c3f5530c | 410 | py | Python | python/katas/tests/test_convert_dna_to_rna.py | cebartling/coding-katas | 78ccc281419f5fcdc6c4c1f0b71cbefb25543da2 | [
"MIT"
] | null | null | null | python/katas/tests/test_convert_dna_to_rna.py | cebartling/coding-katas | 78ccc281419f5fcdc6c4c1f0b71cbefb25543da2 | [
"MIT"
] | null | null | null | python/katas/tests/test_convert_dna_to_rna.py | cebartling/coding-katas | 78ccc281419f5fcdc6c4c1f0b71cbefb25543da2 | [
"MIT"
] | null | null | null | from convert_dna_to_rna import convert_dna_to_rna
def test_convert_tyrosine_to_uracil() -> None:
result = convert_dna_to_rna('GCAT')
assert result == 'GCAU'
def test_convert_tyrosine_to_uracil_multiple_instances() -> None:
result = convert_dna_to_rna('GCATTA')
assert result == 'GCAUUA'
def test_co... | 24.117647 | 65 | 0.734146 | 57 | 410 | 4.789474 | 0.368421 | 0.18315 | 0.21978 | 0.274725 | 0.494505 | 0.494505 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163415 | 410 | 16 | 66 | 25.625 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.4 | 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 |
5fea02406789785433ab94a792770bd9b56ebaa1 | 263 | py | Python | orchard/system_status/system/__init__.py | BMeu/Orchard | cd595c9942e4e1ad0032193059f2b39fdf3bcfba | [
"MIT"
] | 2 | 2016-10-06T21:19:32.000Z | 2016-10-06T21:58:04.000Z | orchard/system_status/system/__init__.py | BMeu/Orchard | cd595c9942e4e1ad0032193059f2b39fdf3bcfba | [
"MIT"
] | 392 | 2016-10-06T17:13:30.000Z | 2021-01-15T04:15:38.000Z | orchard/system_status/system/__init__.py | BMeu/Orchard | cd595c9942e4e1ad0032193059f2b39fdf3bcfba | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This package contains modules wrapping different functions to call the system's status. Some
parts of this package are specific to Raspberry Pi and Raspbian, and are marked accordingly
in their respective doc strings.
"""
| 32.875 | 96 | 0.726236 | 37 | 263 | 5.162162 | 0.864865 | 0.115183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.201521 | 263 | 7 | 97 | 37.571429 | 0.904762 | 0.912548 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27024a889b372668833c8a8ef3e359ce474d9c10 | 194 | py | Python | abc/abc106/abc106c.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | abc/abc106/abc106c.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | abc/abc106/abc106c.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | S = input()
K = int(input())
for i in range(len(S)):
if S[i] == '1':
K -= 1
if K == 0:
print(S[i])
break
else:
print(S[i])
break
| 14.923077 | 23 | 0.35567 | 29 | 194 | 2.37931 | 0.517241 | 0.086957 | 0.202899 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.469072 | 194 | 12 | 24 | 16.166667 | 0.640777 | 0 | 0 | 0.363636 | 0 | 0 | 0.005155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2703575cbfdde929a38fb95a0ff5536bd8d25f6b | 195 | py | Python | outlier_benchmark/config.py | JanDiers/outlier-benchmark-data | 7c9219de03c7ef9c0ec0bcb4df4df6634d0012fd | [
"MIT"
] | null | null | null | outlier_benchmark/config.py | JanDiers/outlier-benchmark-data | 7c9219de03c7ef9c0ec0bcb4df4df6634d0012fd | [
"MIT"
] | null | null | null | outlier_benchmark/config.py | JanDiers/outlier-benchmark-data | 7c9219de03c7ef9c0ec0bcb4df4df6634d0012fd | [
"MIT"
] | null | null | null |
DOWNLOAD_BASE_URL = 'https://raw.githubusercontent.com/JanDiers/outlier-benchmark-data/master/files'
from outlier_benchmark.datasets.base.load import get_data_home
DATA_HOME = get_data_home()
| 27.857143 | 100 | 0.830769 | 28 | 195 | 5.5 | 0.678571 | 0.155844 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 195 | 6 | 101 | 32.5 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.404145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
272258afbfcef5f4e38ac1e0efc086223c60c818 | 368 | py | Python | python/selenium.py | AlexShukhman/smop-backend-PUBLIC | d0f54d963bc0a3860181213049f7f26851badcaa | [
"Apache-2.0"
] | null | null | null | python/selenium.py | AlexShukhman/smop-backend-PUBLIC | d0f54d963bc0a3860181213049f7f26851badcaa | [
"Apache-2.0"
] | null | null | null | python/selenium.py | AlexShukhman/smop-backend-PUBLIC | d0f54d963bc0a3860181213049f7f26851badcaa | [
"Apache-2.0"
] | null | null | null | username = driver.find_element_by_id('username')
username.send_keys('username')
password = driver.find_element_by_id('password')
password.send_keys('password')
login = driver.find_element_by_id('login')
login.click()
header = driver.find_element_by_id('header')
assert 'logged in' in header.get_attribute('text')
next = ... | 30.666667 | 50 | 0.788043 | 55 | 368 | 4.945455 | 0.345455 | 0.183824 | 0.3125 | 0.349265 | 0.386029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067935 | 368 | 11 | 51 | 33.454545 | 0.793003 | 0 | 0 | 0 | 0 | 0 | 0.163488 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0 | false | 0.2 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
27229103835b32ad01e46fb3fa46ff87f366ca65 | 137 | py | Python | testexcel.py | nasifimtiazohi/mypoliteness | e7eb6447140f74347a4fda53f7c7aae037f7a97a | [
"Apache-2.0"
] | null | null | null | testexcel.py | nasifimtiazohi/mypoliteness | e7eb6447140f74347a4fda53f7c7aae037f7a97a | [
"Apache-2.0"
] | null | null | null | testexcel.py | nasifimtiazohi/mypoliteness | e7eb6447140f74347a4fda53f7c7aae037f7a97a | [
"Apache-2.0"
] | null | null | null | import openpyxl
wb=openpyxl.load_workbook('politeResult.xlsx')
ws=wb.get_active_sheet()
ws['A1']="bainchod"
wb.save('politeResult.xlsx')
| 22.833333 | 46 | 0.781022 | 20 | 137 | 5.2 | 0.7 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.043796 | 137 | 5 | 47 | 27.4 | 0.78626 | 0 | 0 | 0 | 0 | 0 | 0.321168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
2750f85b9fbaa97c314cd2b7456415b1cece7762 | 386 | py | Python | mqttwrapper/run.py | kanflo/mqttwrapper | b7e5ab245fb21553029fe79f5b9c868149ca5516 | [
"MIT"
] | 5 | 2019-06-21T07:15:39.000Z | 2020-05-19T01:23:38.000Z | mqttwrapper/run.py | kanflo/mqttwrapper | b7e5ab245fb21553029fe79f5b9c868149ca5516 | [
"MIT"
] | 2 | 2019-11-18T07:44:09.000Z | 2020-02-01T12:24:08.000Z | mqttwrapper/run.py | kanflo/mqttwrapper | b7e5ab245fb21553029fe79f5b9c868149ca5516 | [
"MIT"
] | 2 | 2019-11-19T21:16:35.000Z | 2021-04-01T18:22:04.000Z | import sys
from .paho_backend import run_script
if __name__ == "__main__":
try:
from callback import callback
run_script(callback)
except ImportError:
print("""Couldn't import callback function from callback module.
Please ensure there is a function called 'callback' defined in a file ... | 32.166667 | 135 | 0.727979 | 52 | 386 | 5.192308 | 0.634615 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202073 | 386 | 11 | 136 | 35.090909 | 0.876623 | 0 | 0 | 0 | 0 | 0.111111 | 0.46114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
275df23e0abaab99e867b65dfb8e484b1cffa56d | 2,228 | py | Python | flaskagram/models.py | sheep-sheep/Flaskagram | 54ce28029cfaeceb5060ed158e6d4cd152c7e57c | [
"BSD-2-Clause"
] | null | null | null | flaskagram/models.py | sheep-sheep/Flaskagram | 54ce28029cfaeceb5060ed158e6d4cd152c7e57c | [
"BSD-2-Clause"
] | null | null | null | flaskagram/models.py | sheep-sheep/Flaskagram | 54ce28029cfaeceb5060ed158e6d4cd152c7e57c | [
"BSD-2-Clause"
] | null | null | null | # -*- encoding: UTF-8 -*-
import datetime
from flaskagram import db, login_manager
class User(db.Model):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
username = db.Column(db.String(80), unique=True)
password = db.Column(db.String(32))
salt = db.Column(db.String(32))
avatar_url... | 28.935065 | 72 | 0.651706 | 311 | 2,228 | 4.485531 | 0.244373 | 0.086022 | 0.107527 | 0.085305 | 0.458781 | 0.379928 | 0.299642 | 0.277419 | 0.277419 | 0.277419 | 0 | 0.015376 | 0.211849 | 2,228 | 77 | 73 | 28.935065 | 0.779043 | 0.0193 | 0 | 0.333333 | 0 | 0 | 0.060925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192982 | false | 0.052632 | 0.035088 | 0.140351 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
278726e0b60a310bd948a20229df021039d25f79 | 174 | py | Python | Telegram ChatBot/CON_PROP.py | Lorenzohidalgo/ConvoBot | 1a24498dc5c34de01ad4f539ab4b9281ecf8ef42 | [
"MIT"
] | 1 | 2022-03-11T04:20:23.000Z | 2022-03-11T04:20:23.000Z | Telegram ChatBot/CON_PROP.py | Lorenzohidalgo/ConvoBot | 1a24498dc5c34de01ad4f539ab4b9281ecf8ef42 | [
"MIT"
] | null | null | null | Telegram ChatBot/CON_PROP.py | Lorenzohidalgo/ConvoBot | 1a24498dc5c34de01ad4f539ab4b9281ecf8ef42 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
db_config = {
'user': 'root',
'password': 'root',
'host': 'localhost',
'db': 'bac_db'
}
bot_code = "INSERT:TELEGRAM-BOT-TOKEN- HERE"
| 17.4 | 44 | 0.54023 | 21 | 174 | 4.333333 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.218391 | 174 | 9 | 45 | 19.333333 | 0.661765 | 0.12069 | 0 | 0 | 0 | 0 | 0.476821 | 0.172185 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
278de2361e0500d51c41b84adfd782e87cf7579e | 219 | py | Python | src/data_manager/jobs/sample.py | MonkeyApproved/RealEstateScraper | 0c5dc8d07638f4e4a3d5fe5ef308568524c03e55 | [
"MIT"
] | null | null | null | src/data_manager/jobs/sample.py | MonkeyApproved/RealEstateScraper | 0c5dc8d07638f4e4a3d5fe5ef308568524c03e55 | [
"MIT"
] | null | null | null | src/data_manager/jobs/sample.py | MonkeyApproved/RealEstateScraper | 0c5dc8d07638f4e4a3d5fe5ef308568524c03e55 | [
"MIT"
] | 1 | 2022-01-02T16:36:38.000Z | 2022-01-02T16:36:38.000Z | from django_extensions.management.jobs import HourlyJob
class Job(HourlyJob):
help = "My sample job."
def execute(self):
# executing empty sample job
print('I run every hour!!!')
pass
| 19.909091 | 55 | 0.643836 | 27 | 219 | 5.185185 | 0.851852 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26484 | 219 | 10 | 56 | 21.9 | 0.869565 | 0.118721 | 0 | 0 | 0 | 0 | 0.172775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
27c0cc15e093312684584a5f48ca84f3cb730cb4 | 544 | py | Python | users/views.py | BuildForSDG/dijiElimu | 514a90d6f0480516aa209891224cf9dfe6be1607 | [
"MIT"
] | null | null | null | users/views.py | BuildForSDG/dijiElimu | 514a90d6f0480516aa209891224cf9dfe6be1607 | [
"MIT"
] | 20 | 2020-05-12T12:11:01.000Z | 2022-03-12T00:33:12.000Z | users/views.py | BuildForSDG/dijiElimu | 514a90d6f0480516aa209891224cf9dfe6be1607 | [
"MIT"
] | 4 | 2020-05-06T03:57:04.000Z | 2020-05-20T06:30:28.000Z | from rest_framework import viewsets
from .models import User
from .serializers import (
UserSerializer,
StudentSerializer,
TutorSerializer
)
class UserViewSet(viewsets.ModelViewSet):
serializer_class = UserSerializer
queryset = User.objects.all()
class StudentViewSet(viewsets.ModelViewSet):
... | 22.666667 | 51 | 0.777574 | 54 | 544 | 7.722222 | 0.462963 | 0.143885 | 0.215827 | 0.251799 | 0.129496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152574 | 544 | 23 | 52 | 23.652174 | 0.904555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.75 | 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 |
7e0eca3ac809c2c70f5888dba9fb44d4d87d2f03 | 402 | py | Python | bison/__init__.py | edaniszewski/bison | d6d3a6bc0f641e80a1fae544e3cceb31960f4bc7 | [
"MIT"
] | 17 | 2018-03-08T05:59:42.000Z | 2021-10-16T15:05:41.000Z | bison/__init__.py | edaniszewski/bison | d6d3a6bc0f641e80a1fae544e3cceb31960f4bc7 | [
"MIT"
] | 7 | 2018-03-08T13:39:27.000Z | 2018-09-01T20:02:39.000Z | bison/__init__.py | edaniszewski/bison | d6d3a6bc0f641e80a1fae544e3cceb31960f4bc7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
bison
~~~~~
A Python application configuration library.
"""
# flake8: noqa
from .__version__ import (__author__, __author_email__, __copyright__,
__description__, __license__, __title__, __url__,
__version__)
from .bison import Bison
from... | 25.125 | 75 | 0.661692 | 38 | 402 | 6.026316 | 0.710526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006557 | 0.241294 | 402 | 15 | 76 | 26.8 | 0.744262 | 0.228856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fd683f35837ff614c7075e9e9fc0c5b778dcf4be | 834 | py | Python | pylps/exceptions.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | 1 | 2018-05-19T18:28:12.000Z | 2018-05-19T18:28:12.000Z | pylps/exceptions.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | 12 | 2018-04-26T00:58:11.000Z | 2018-05-13T22:03:39.000Z | pylps/exceptions.py | astraldawn/pylps | e9964a24bb38657b180d441223b4cdb9e1dadc8a | [
"MIT"
] | null | null | null | class ConfigError(Exception):
def __init__(self, config_option, value):
self.config_option = config_option
self.value = value
class UnhandledObjectError(Exception):
def __init__(self, obj_type):
self.obj_type = obj_type
class UnimplementedOutcomeError(Exception):
def __init__(sel... | 23.828571 | 48 | 0.724221 | 89 | 834 | 6.303371 | 0.213483 | 0.176471 | 0.199643 | 0.249554 | 0.491979 | 0.491979 | 0.491979 | 0.491979 | 0.331551 | 0.331551 | 0 | 0 | 0.196643 | 834 | 34 | 49 | 24.529412 | 0.837313 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0 | 0 | 0.636364 | 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 |
fda4da6dc80f88ab2a08f49587bdc7448c7abe2d | 1,584 | py | Python | tests/test_abc.py | ischaojie/learn-py | b24ec70c776fbc7176bdffbbd1b9ce46e6a25916 | [
"MIT"
] | null | null | null | tests/test_abc.py | ischaojie/learn-py | b24ec70c776fbc7176bdffbbd1b9ce46e6a25916 | [
"MIT"
] | null | null | null | tests/test_abc.py | ischaojie/learn-py | b24ec70c776fbc7176bdffbbd1b9ce46e6a25916 | [
"MIT"
] | null | null | null | """
ABC: 抽象基类
"""
import pytest
from abc import ABC, abstractmethod
from collections.abc import Sized
"""
collections.abc 的元类也是 ABC,当然我们可以自己定义一个
class Sized(metaclass=ABCMeta):
__slots__ = ()
@abstractmethod
def __len__(self):
return 0
@classmethod
def __subclasshook__(cls, C):
i... | 19.555556 | 67 | 0.602273 | 171 | 1,584 | 5.134503 | 0.356725 | 0.056948 | 0.034169 | 0.05467 | 0.236902 | 0.191344 | 0.191344 | 0.191344 | 0.107062 | 0.107062 | 0 | 0.009107 | 0.306818 | 1,584 | 80 | 68 | 19.8 | 0.790528 | 0.078914 | 0 | 0.171429 | 0 | 0 | 0.018779 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.257143 | false | 0.028571 | 0.085714 | 0.114286 | 0.657143 | 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 |
fdcc32679db60c1691a2c097f816e8ec84291eed | 3,057 | py | Python | askalexa/response/progressive.py | scottenglert/AskAlexa | aac9d8aa4d6d5d2e9dcd079e0ac516b06c8a94ba | [
"MIT"
] | 2 | 2018-05-25T11:18:18.000Z | 2019-08-09T19:23:54.000Z | askalexa/response/progressive.py | scottenglert/AskAlexa | aac9d8aa4d6d5d2e9dcd079e0ac516b06c8a94ba | [
"MIT"
] | null | null | null | askalexa/response/progressive.py | scottenglert/AskAlexa | aac9d8aa4d6d5d2e9dcd079e0ac516b06c8a94ba | [
"MIT"
] | null | null | null | '''
Alexa Progressive Response Module
=================================
Provides the functionality to send Alexa a progressive response while
the real response is being processed. This is useful for giving an update
for request that takes a long time.
'''
import json
import requests
from askalexa.response.data import ... | 31.515464 | 89 | 0.668956 | 349 | 3,057 | 5.676218 | 0.346705 | 0.067138 | 0.040384 | 0.019182 | 0.054518 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004314 | 0.24174 | 3,057 | 97 | 90 | 31.515464 | 0.850302 | 0.284593 | 0 | 0 | 0 | 0 | 0.07734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0 | 0.06383 | 0.106383 | 0.531915 | 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 |
fde87003e672fd327e542467cb732c9c2a7c9b71 | 270 | py | Python | training/utils.py | raoofnaushad/resume_parser_nlp | 50519b9b258b8b6a6739e3fd30a70709c1ffd29d | [
"Apache-2.0"
] | 2 | 2020-11-02T16:33:35.000Z | 2020-11-02T16:42:13.000Z | training/utils.py | raoofnaushad/resume_parser_nlp | 50519b9b258b8b6a6739e3fd30a70709c1ffd29d | [
"Apache-2.0"
] | null | null | null | training/utils.py | raoofnaushad/resume_parser_nlp | 50519b9b258b8b6a6739e3fd30a70709c1ffd29d | [
"Apache-2.0"
] | null | null | null | import ezodf
import pandas as pd
def read_ods(filename, sheet_no=0, header=0):
tab = ezodf.opendoc(filename=filename).sheets[sheet_no]
return pd.DataFrame({col[header].value:[x.value for x in col[header+1:]]
for col in tab.columns()})
| 30 | 76 | 0.659259 | 42 | 270 | 4.166667 | 0.595238 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.214815 | 270 | 8 | 77 | 33.75 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 |
fded74056f8cd87bb2e2c68acd78623aaef36ab5 | 43 | py | Python | pyble/const/service/next_dst_change.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 14 | 2015-03-30T23:11:36.000Z | 2020-04-07T00:57:12.000Z | pyble/const/service/next_dst_change.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 3 | 2016-05-17T06:11:07.000Z | 2017-05-15T16:43:09.000Z | pyble/const/service/next_dst_change.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 11 | 2016-03-11T08:53:03.000Z | 2019-03-11T21:32:13.000Z | NAME="Next DST Change Service"
UUID=0x1807
| 14.333333 | 30 | 0.790698 | 7 | 43 | 4.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0.116279 | 43 | 2 | 31 | 21.5 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0.534884 | 0 | 0 | 0 | 0.139535 | 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 |
a907af7c7f944813b307f4a699ef5d05de9a99a6 | 374 | py | Python | plenum/test/plugin/conftest.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 148 | 2017-07-11T19:05:25.000Z | 2022-03-16T21:31:20.000Z | plenum/test/plugin/conftest.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 561 | 2017-06-29T17:59:56.000Z | 2022-03-09T15:47:14.000Z | plenum/test/plugin/conftest.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 378 | 2017-06-29T17:45:27.000Z | 2022-03-26T07:27:59.000Z | OPERATION_VALIDATION_PLUGIN_PATH_VALUE = "operation_verification"
AUCTION_REQ_VALIDATION_PLUGIN_PATH_VALUE = "auction_req_validation"
AUCTION_REQ_PROCESSOR_PLUGIN_PATH_VALUE = "auction_req_processor"
BANK_REQ_VALIDATION_PLUGIN_PATH_VALUE = "bank_req_validation"
BANK_REQ_PROCESSOR_PLUGIN_PATH_VALUE = "bank_req_processor... | 53.428571 | 67 | 0.903743 | 50 | 374 | 6 | 0.24 | 0.2 | 0.3 | 0.25 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048128 | 374 | 6 | 68 | 62.333333 | 0.842697 | 0 | 0 | 0 | 0 | 0 | 0.31016 | 0.173797 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8bf506ed94e28cac418de66af4e7543d7fc34c3e | 251 | py | Python | statuscheck/services/personio.py | amureki/statuscheck | caff92ef211f1fd2bf6c8a18ba8243eb434bc0df | [
"Apache-2.0"
] | 35 | 2018-10-22T06:04:55.000Z | 2022-02-01T10:20:00.000Z | statuscheck/services/personio.py | amureki/statuscheck | caff92ef211f1fd2bf6c8a18ba8243eb434bc0df | [
"Apache-2.0"
] | 209 | 2018-10-22T11:44:57.000Z | 2022-03-31T04:02:37.000Z | statuscheck/services/personio.py | amureki/statuscheck | caff92ef211f1fd2bf6c8a18ba8243eb434bc0df | [
"Apache-2.0"
] | 2 | 2020-06-05T02:41:19.000Z | 2020-09-03T07:03:46.000Z | from statuscheck.services.bases._statuspageio import BaseStatusPageAPI
class ServiceAPI(BaseStatusPageAPI):
name = "Personio"
domain_id = "68kf6yfjnk2d"
status_url = "https://status.personio.de/"
service_url = "https://personio.de/"
| 27.888889 | 70 | 0.741036 | 26 | 251 | 7 | 0.730769 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018605 | 0.143426 | 251 | 8 | 71 | 31.375 | 0.827907 | 0 | 0 | 0 | 0 | 0 | 0.266932 | 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 |
8bfbdfae888b5260f6336286094c8f92396f6a2f | 751 | py | Python | surveytoolbox/bdc.py | JayArghArgh/survey-toolbox | 4d3643185c44a11ff930db52e5d89aa16faed237 | [
"MIT"
] | null | null | null | surveytoolbox/bdc.py | JayArghArgh/survey-toolbox | 4d3643185c44a11ff930db52e5d89aa16faed237 | [
"MIT"
] | null | null | null | surveytoolbox/bdc.py | JayArghArgh/survey-toolbox | 4d3643185c44a11ff930db52e5d89aa16faed237 | [
"MIT"
] | null | null | null | # bdc
from .commonCalculations import get_deltas_from_coordinates
from .commonCalculations import get_distance_2d_from_deltas
from .commonCalculations import get_distance_3d_from_deltas
from .bfd import get_bearing_from_deltas
def bearing_distance_from_coordinates(from_coordinates, to_coordinates):
# Return beari... | 37.55 | 74 | 0.802929 | 98 | 751 | 5.755102 | 0.265306 | 0.106383 | 0.148936 | 0.164894 | 0.473404 | 0.152482 | 0 | 0 | 0 | 0 | 0 | 0.012403 | 0.141145 | 751 | 19 | 75 | 39.526316 | 0.862016 | 0.206391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8bfe3d1db83e63fbe4a920f143569e41277db717 | 125 | py | Python | crawler/test_code/test_re.py | Coslate/NBA_Win_Predictor | c8f4fb5a12fdd36bd43e573510bfb2307f37ec1f | [
"MIT"
] | null | null | null | crawler/test_code/test_re.py | Coslate/NBA_Win_Predictor | c8f4fb5a12fdd36bd43e573510bfb2307f37ec1f | [
"MIT"
] | null | null | null | crawler/test_code/test_re.py | Coslate/NBA_Win_Predictor | c8f4fb5a12fdd36bd43e573510bfb2307f37ec1f | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import re
a = "yes" if(re.match(r'.*world.*', 'hello world!')) else "no"
print('a = {}'.format(a))
| 17.857143 | 62 | 0.576 | 21 | 125 | 3.428571 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.144 | 125 | 6 | 63 | 20.833333 | 0.663551 | 0.176 | 0 | 0 | 0 | 0 | 0.313725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e34957849a11d2a8d97ec37a011855330f8b8007 | 605 | py | Python | profiles/migrations/0003_auto_20171208_0516.py | sinkva/pktroop | 72a8f22f0b0f7c994d6ba2239b2ea17a46b6e133 | [
"MIT"
] | null | null | null | profiles/migrations/0003_auto_20171208_0516.py | sinkva/pktroop | 72a8f22f0b0f7c994d6ba2239b2ea17a46b6e133 | [
"MIT"
] | null | null | null | profiles/migrations/0003_auto_20171208_0516.py | sinkva/pktroop | 72a8f22f0b0f7c994d6ba2239b2ea17a46b6e133 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-08 05:16
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('profiles', '0002_auto_20171203_0415'),
]
operations = [
migrations.RemoveField(
... | 21.607143 | 48 | 0.563636 | 57 | 605 | 5.789474 | 0.666667 | 0.190909 | 0.236364 | 0.272727 | 0.372727 | 0.372727 | 0 | 0 | 0 | 0 | 0 | 0.080292 | 0.320661 | 605 | 27 | 49 | 22.407407 | 0.722628 | 0.112397 | 0 | 0.45 | 1 | 0 | 0.134831 | 0.043071 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 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 |
e3568478a6b9652561fa179c2070a4bf85e91f19 | 735 | py | Python | mangakatana/chapterlist.py | nixonjoshua98/mangakatana | 895f04a93eb888a73b04e3e2eed10b6b4eb9ea11 | [
"MIT"
] | null | null | null | mangakatana/chapterlist.py | nixonjoshua98/mangakatana | 895f04a93eb888a73b04e3e2eed10b6b4eb9ea11 | [
"MIT"
] | null | null | null | mangakatana/chapterlist.py | nixonjoshua98/mangakatana | 895f04a93eb888a73b04e3e2eed10b6b4eb9ea11 | [
"MIT"
] | null | null | null | import re
import ast
import functools as ft
from bs4 import BeautifulSoup
from mangakatana import siterequests
class Chapter:
def __init__(self, soup):
self._soup = soup
@ft.cached_property
def title(self): return self._soup.find("a").text
@ft.cached_property
def url(self): return sel... | 21.617647 | 90 | 0.666667 | 104 | 735 | 4.528846 | 0.423077 | 0.067941 | 0.101911 | 0.121019 | 0.097665 | 0.097665 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.197279 | 735 | 33 | 91 | 22.272727 | 0.794915 | 0 | 0 | 0.142857 | 0 | 0 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.238095 | 0.142857 | 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 |
e356f893d4bd19e0fb6e8678a9710f9da1d32974 | 268 | py | Python | flex/url_filter/__init__.py | centergy/flex | 4fc11d3ad48e4b5016f53256015e3eed2157daae | [
"MIT"
] | null | null | null | flex/url_filter/__init__.py | centergy/flex | 4fc11d3ad48e4b5016f53256015e3eed2157daae | [
"MIT"
] | null | null | null | flex/url_filter/__init__.py | centergy/flex | 4fc11d3ad48e4b5016f53256015e3eed2157daae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
"""
__author__ = 'Miroslav Shubernetskiy'
__email__ = 'miroslav@miki725.com'
__version__ = '0.3.4'
"""
from . import filtersets
from . import filters
from . import fields | 24.363636 | 72 | 0.746269 | 32 | 268 | 5.65625 | 0.75 | 0.165746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030043 | 0.130597 | 268 | 11 | 73 | 24.363636 | 0.746781 | 0.078358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.25 | 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 |
e3602de89aeec8b837ffd62b1b090205a3624452 | 12,271 | py | Python | openff/benchmark/tests/test_coverage_report.py | openforcefield/openff-benchmark | e27320922e7583e313eaf32119de863d23842217 | [
"MIT"
] | 6 | 2021-01-27T14:06:57.000Z | 2022-03-01T12:54:42.000Z | openff/benchmark/tests/test_coverage_report.py | openforcefield/openff-benchmark | e27320922e7583e313eaf32119de863d23842217 | [
"MIT"
] | 83 | 2020-07-31T18:10:47.000Z | 2022-03-07T22:59:24.000Z | openff/benchmark/tests/test_coverage_report.py | openforcefield/openbenchmark | 65a3519f18cb587622471a6bda6d58d9e39cd1d2 | [
"MIT"
] | 1 | 2022-03-03T04:06:32.000Z | 2022-03-03T04:06:32.000Z | from openff.benchmark.utils.coverage_report import generate_coverage_report
from openff.benchmark.utils.utils import get_data_file_path
from openff.benchmark.cli import cli
from openforcefield.topology import Molecule
import shutil
import json
import glob
import os
import pytest
from click.testing import CliRunner
runn... | 47.562016 | 131 | 0.59824 | 1,519 | 12,271 | 4.585253 | 0.131666 | 0.076382 | 0.021536 | 0.027997 | 0.741565 | 0.702225 | 0.685714 | 0.672649 | 0.662312 | 0.646805 | 0 | 0.014801 | 0.306251 | 12,271 | 257 | 132 | 47.747082 | 0.80336 | 0.154755 | 0 | 0.601156 | 1 | 0 | 0.183362 | 0.092506 | 0 | 0 | 0 | 0 | 0.213873 | 1 | 0.052023 | false | 0.040462 | 0.057803 | 0 | 0.109827 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e367f60018d3ea6e0b99fcda964be37389e3efef | 1,049 | py | Python | 2019/day2/day2_puzzle1.py | gustavofcma/advent-of-code | 809a29be0657994436d940f7e47d9b17e3baae82 | [
"MIT"
] | null | null | null | 2019/day2/day2_puzzle1.py | gustavofcma/advent-of-code | 809a29be0657994436d940f7e47d9b17e3baae82 | [
"MIT"
] | null | null | null | 2019/day2/day2_puzzle1.py | gustavofcma/advent-of-code | 809a29be0657994436d940f7e47d9b17e3baae82 | [
"MIT"
] | null | null | null | def input_file_to_list(file_path):
with open(file_path, 'r') as input_file:
output = list(map(int, input_file.read().split(',')))
return output
def run_intcode_program(intcode_input):
index = 0
while intcode_input[index] in [1, 2]:
opcode, first_value, second_value, position = intcode_... | 32.78125 | 94 | 0.663489 | 166 | 1,049 | 3.89759 | 0.307229 | 0.204019 | 0.183926 | 0.177743 | 0.397218 | 0.284389 | 0.284389 | 0.200927 | 0.200927 | 0.200927 | 0 | 0.082938 | 0.195424 | 1,049 | 31 | 95 | 33.83871 | 0.683649 | 0 | 0 | 0 | 0 | 0 | 0.022879 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.173913 | 0.043478 | 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 |
e371f15f9cd9bb21c53d7ca4176a79163e2d73d2 | 399 | py | Python | brainio/stimuli.py | ryan-woo/brainio | e719191ee12e70946eec987bfa0a47940f5d4db6 | [
"MIT"
] | 1 | 2022-02-04T21:34:07.000Z | 2022-02-04T21:34:07.000Z | brainio_base/stimuli.py | tiagogmarques/brainio_base | 35a81cfd9f35115d846f5b97d260c078e42960c2 | [
"MIT"
] | 6 | 2019-03-26T14:41:02.000Z | 2021-02-08T15:40:37.000Z | brainio_base/stimuli.py | tiagogmarques/brainio_base | 35a81cfd9f35115d846f5b97d260c078e42960c2 | [
"MIT"
] | 10 | 2019-04-02T21:06:11.000Z | 2022-03-10T02:04:50.000Z | import pandas as pd
class StimulusSet(pd.DataFrame):
# http://pandas.pydata.org/pandas-docs/stable/development/extending.html#subclassing-pandas-data-structures
_metadata = pd.DataFrame._metadata + ["identifier", "get_image", "image_paths"]
@property
def _constructor(self):
return StimulusSet... | 28.5 | 111 | 0.724311 | 49 | 399 | 5.714286 | 0.591837 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162907 | 399 | 13 | 112 | 30.692308 | 0.838323 | 0.260652 | 0 | 0 | 0 | 0 | 0.10274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.875 | 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 |
8b58ad85923ebc30b38dbc9ea73ec00272dd2545 | 182 | py | Python | Change_Combinations.py | HeyIamJames/CodingInterviewPractice | ea7f849e4eba9c4c7269b52aa7be48e7995c0f37 | [
"MIT"
] | null | null | null | Change_Combinations.py | HeyIamJames/CodingInterviewPractice | ea7f849e4eba9c4c7269b52aa7be48e7995c0f37 | [
"MIT"
] | null | null | null | Change_Combinations.py | HeyIamJames/CodingInterviewPractice | ea7f849e4eba9c4c7269b52aa7be48e7995c0f37 | [
"MIT"
] | null | null | null | """
Given an infinite number of quarters (25 cents), dimes (10 cents),
nickels (5 cents) and pennies (1 cent), write code to calculate the
number of ways of representing n cents
"""
| 30.333333 | 67 | 0.730769 | 30 | 182 | 4.433333 | 0.8 | 0.120301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.175824 | 182 | 5 | 68 | 36.4 | 0.846667 | 0.950549 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8b63f251ebc519077dd9d9d58ba0e519134df285 | 433 | py | Python | vowel_count/test_vowel_count.py | guilhermegouw/codewars | 8ad98bb661c9b47b9d9683df07cd9672ff80731c | [
"MIT"
] | null | null | null | vowel_count/test_vowel_count.py | guilhermegouw/codewars | 8ad98bb661c9b47b9d9683df07cd9672ff80731c | [
"MIT"
] | null | null | null | vowel_count/test_vowel_count.py | guilhermegouw/codewars | 8ad98bb661c9b47b9d9683df07cd9672ff80731c | [
"MIT"
] | null | null | null | from vowel_count import get_count
def test_get_count_single_word():
output = get_count("abracadabra")
assert output == 5
def test_get_count_empty_string():
output = get_count("")
assert output == 0
def test_get_count_some_words():
output = get_count("o a kak ushakov lil vo kashu kakao")
... | 21.65 | 60 | 0.699769 | 65 | 433 | 4.323077 | 0.476923 | 0.256228 | 0.142349 | 0.213523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014577 | 0.207852 | 433 | 19 | 61 | 22.789474 | 0.804665 | 0 | 0 | 0 | 0 | 0 | 0.124711 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ba0d79a8316e32656646392bd1dbb243271e4e2 | 252 | py | Python | mindhome_alpha/erpnext/patches/v12_0/set_cost_center_in_child_table_of_expense_claim.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/patches/v12_0/set_cost_center_in_child_table_of_expense_claim.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/patches/v12_0/set_cost_center_in_child_table_of_expense_claim.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | import frappe
def execute():
frappe.reload_doc('hr', 'doctype', 'expense_claim_detail')
frappe.db.sql("""
UPDATE `tabExpense Claim Detail` child, `tabExpense Claim` par
SET child.cost_center = par.cost_center
WHERE child.parent = par.name
""") | 31.5 | 64 | 0.730159 | 35 | 252 | 5.114286 | 0.657143 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 252 | 8 | 65 | 31.5 | 0.817352 | 0 | 0 | 0 | 0 | 0 | 0.671937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.125 | 0 | 0.25 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ba6614f935c92f0d5d63f85e57e0d608631337f | 581 | py | Python | compilacion/parsing/syntaxTree.py | Gusta2307/Football-Simulation-IA-SIM-COM- | 8c29c5b1ef61708a4f8b34f5e0e00990aeecfacd | [
"MIT"
] | null | null | null | compilacion/parsing/syntaxTree.py | Gusta2307/Football-Simulation-IA-SIM-COM- | 8c29c5b1ef61708a4f8b34f5e0e00990aeecfacd | [
"MIT"
] | null | null | null | compilacion/parsing/syntaxTree.py | Gusta2307/Football-Simulation-IA-SIM-COM- | 8c29c5b1ef61708a4f8b34f5e0e00990aeecfacd | [
"MIT"
] | 1 | 2022-02-07T04:47:15.000Z | 2022-02-07T04:47:15.000Z |
from logging import root
class SyntaxTree:
def __init__(self, value, production=None) -> None:
self.value = value
self.childs = []
self.parent = None
self.production = production
def evaluate_attributes(self):
if len(self.childs) > 0:
result = self.product... | 25.26087 | 102 | 0.605852 | 67 | 581 | 5.044776 | 0.432836 | 0.106509 | 0.076923 | 0.094675 | 0.118343 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002445 | 0.296041 | 581 | 23 | 103 | 25.26087 | 0.823961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.117647 | 0.529412 | 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 |
8babb9aecae9f44fb038f9edc1afe064637c8060 | 156 | py | Python | heraspy/events.py | new-coast-ventures/hc-ai-hera | cdced54c1d060757cf337c3e0f0d44d48e629ce6 | [
"MIT"
] | 368 | 2016-07-11T05:53:26.000Z | 2017-01-28T20:26:48.000Z | heraspy/events.py | alexwickstrom/hera | db9545084cd6ec3c104ca992b8bc850ab7e77a3f | [
"MIT"
] | 16 | 2016-07-11T12:43:39.000Z | 2017-01-05T05:43:40.000Z | heraspy/events.py | alexwickstrom/hera | db9545084cd6ec3c104ca992b8bc850ab7e77a3f | [
"MIT"
] | 43 | 2016-07-11T07:06:49.000Z | 2017-01-16T04:42:34.000Z | TRAIN_BEGIN = 'TRAIN_BEGIN'
TRAIN_END = 'TRAIN_END'
EPOCH_BEGIN = 'EPOCH_BEGIN'
EPOCH_END = 'EPOCH_END'
BATCH_BEGIN = 'BATCH_BEGIN'
BATCH_END = 'BATCH_END'
| 22.285714 | 27 | 0.769231 | 24 | 156 | 4.5 | 0.208333 | 0.185185 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 156 | 6 | 28 | 26 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8bb3b6588b46419df5782691ac674400acf30dda | 915 | py | Python | environments/abstract.py | callaunchpad/MOR | becd8a181312882dae3d3495a730e268183f803f | [
"MIT"
] | 1 | 2018-02-11T03:09:49.000Z | 2018-02-11T03:09:49.000Z | environments/abstract.py | callaunchpad/MOR | becd8a181312882dae3d3495a730e268183f803f | [
"MIT"
] | 2 | 2018-02-08T19:45:20.000Z | 2018-10-02T09:55:39.000Z | environments/abstract.py | callaunchpad/MOR | becd8a181312882dae3d3495a730e268183f803f | [
"MIT"
] | 2 | 2018-02-10T22:51:57.000Z | 2020-04-14T02:46:22.000Z | from abc import ABCMeta, abstractmethod
class Environment():
__metaclass__ = ABCMeta
def __init__(self):
self.discrete = True
@abstractmethod
def reset(self):
"""
Reset current position to beginning.
"""
pass
@abstractmethod
def act(self, action, population, params, master):
"""
Move end effecto... | 16.339286 | 56 | 0.696175 | 106 | 915 | 5.896226 | 0.518868 | 0.1904 | 0.2016 | 0.08 | 0.2304 | 0.2304 | 0.2304 | 0.2304 | 0.2304 | 0.2304 | 0 | 0 | 0.208743 | 915 | 56 | 57 | 16.339286 | 0.86326 | 0.323497 | 0 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.269231 | 0.038462 | 0 | 0.423077 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8bbe8f9d8c3fd5c0ac00892e89c054f976b34b83 | 673 | py | Python | pyresolvedi/decorators.py | mordvin-denis/pyResolveDI | 5f712d1eedd548774669333e9f3598d3200154ae | [
"MIT"
] | null | null | null | pyresolvedi/decorators.py | mordvin-denis/pyResolveDI | 5f712d1eedd548774669333e9f3598d3200154ae | [
"MIT"
] | null | null | null | pyresolvedi/decorators.py | mordvin-denis/pyResolveDI | 5f712d1eedd548774669333e9f3598d3200154ae | [
"MIT"
] | null | null | null | from pyresolvedi.core import resolve_all_dependencies
class ResolveDependencies(object):
def __init__(self, dependency_scope_name=None, **kwargs):
self.kwargs = kwargs
self.dependency_scope_name = dependency_scope_name
def __call__(self, original_func):
decorator_self = self
... | 35.421053 | 105 | 0.677563 | 68 | 673 | 6.279412 | 0.397059 | 0.140515 | 0.177986 | 0.161593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2526 | 673 | 19 | 106 | 35.421053 | 0.848907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.538462 | 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 |
8bcb9f34eec4ffd481ef5d92dc2277057a5f2cac | 796 | py | Python | connectfour/players/random.py | amwhalen/connectfour | 4f01bc4a94a04ae729c66c0498fe64b1ce8585f6 | [
"MIT"
] | 1 | 2017-10-12T05:20:02.000Z | 2017-10-12T05:20:02.000Z | connectfour/players/random.py | amwhalen/connectfour | 4f01bc4a94a04ae729c66c0498fe64b1ce8585f6 | [
"MIT"
] | null | null | null | connectfour/players/random.py | amwhalen/connectfour | 4f01bc4a94a04ae729c66c0498fe64b1ce8585f6 | [
"MIT"
] | null | null | null | # absolute import so we import the 'random' module and not this file
from __future__ import absolute_import
import connectfour
import random
from connectfour.players.player import Player
class RandomPlayer(Player):
def getName(self):
return "Random"
def isHuman(self):
return False
def ge... | 27.448276 | 97 | 0.609296 | 90 | 796 | 5.333333 | 0.588889 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.332915 | 796 | 29 | 98 | 27.448276 | 0.898305 | 0.221106 | 0 | 0 | 0 | 0 | 0.010067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.052632 | 0.210526 | 0.105263 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
4733ace140f79fe7cd170dae520a781ee4570091 | 1,012 | py | Python | x2paddle/project_convertor/pytorch/torch2paddle/__init__.py | usertianqin/X2Paddle | b554a8094ca3e255ef4bd2e80337222a35625133 | [
"Apache-2.0"
] | 559 | 2019-01-14T06:01:55.000Z | 2022-03-31T02:52:43.000Z | x2paddle/project_convertor/pytorch/torch2paddle/__init__.py | usertianqin/X2Paddle | b554a8094ca3e255ef4bd2e80337222a35625133 | [
"Apache-2.0"
] | 353 | 2019-05-07T13:20:03.000Z | 2022-03-31T05:30:12.000Z | x2paddle/project_convertor/pytorch/torch2paddle/__init__.py | usertianqin/X2Paddle | b554a8094ca3e255ef4bd2e80337222a35625133 | [
"Apache-2.0"
] | 241 | 2018-12-25T02:13:51.000Z | 2022-03-27T23:21:43.000Z | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 32.645161 | 74 | 0.76087 | 150 | 1,012 | 5.08 | 0.58 | 0.19685 | 0.062992 | 0.041995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00949 | 0.166996 | 1,012 | 30 | 75 | 33.733333 | 0.894425 | 0.577075 | 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 |
474e63d095fb40347c0bd9dafe0f856abcf626a8 | 144 | py | Python | apps/core/urls.py | KarpovDenis74/banking_analytics | d56f13cab71610dc5ef2994fcb1f32a5bb28c14f | [
"BSD-3-Clause"
] | null | null | null | apps/core/urls.py | KarpovDenis74/banking_analytics | d56f13cab71610dc5ef2994fcb1f32a5bb28c14f | [
"BSD-3-Clause"
] | null | null | null | apps/core/urls.py | KarpovDenis74/banking_analytics | d56f13cab71610dc5ef2994fcb1f32a5bb28c14f | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path
from apps.core.views import CoreView
app_name = 'core'
urlpatterns = [path('', CoreView.index, name='index'), ]
| 18 | 56 | 0.722222 | 20 | 144 | 5.15 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 144 | 7 | 57 | 20.571429 | 0.830645 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 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 |
477bddfeb3bdd2cb237d1a6d1a842ff1b85bca62 | 261 | py | Python | example_conda_pkg/example_project.py | dajtmullaj/example_conda_pkg | 7c2bf657d14c714608e653d7218fa3cd658a6297 | [
"MIT"
] | null | null | null | example_conda_pkg/example_project.py | dajtmullaj/example_conda_pkg | 7c2bf657d14c714608e653d7218fa3cd658a6297 | [
"MIT"
] | null | null | null | example_conda_pkg/example_project.py | dajtmullaj/example_conda_pkg | 7c2bf657d14c714608e653d7218fa3cd658a6297 | [
"MIT"
] | null | null | null | """
Example project
@author: dajt mullaj
"""
from rdkit import Chem
from rdkit.Chem import Draw
class DrawMol:
def fromSmiles(smiles):
template = Chem.MolFromSmiles(smiles)
Draw.MolToFile(template,'{}.png'.format(smiles))
| 17.4 | 58 | 0.651341 | 29 | 261 | 5.862069 | 0.689655 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237548 | 261 | 14 | 59 | 18.642857 | 0.854271 | 0.141762 | 0 | 0 | 0 | 0 | 0.029703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
479a5d10865dbe20181cf38bdf4c20218bf90810 | 1,093 | py | Python | noncontinual_classifier.py | DadianisBidza/Continual-Keras | 527668f5c0d8c516eef313df14a3b923b15ad414 | [
"MIT"
] | 7 | 2019-10-04T18:43:45.000Z | 2020-10-14T02:43:42.000Z | noncontinual_classifier.py | lshug/Continual-Keras | 527668f5c0d8c516eef313df14a3b923b15ad414 | [
"MIT"
] | 2 | 2019-11-26T22:25:23.000Z | 2020-09-04T03:53:31.000Z | noncontinual_classifier.py | DadianisBidza/Continual-Keras | 527668f5c0d8c516eef313df14a3b923b15ad414 | [
"MIT"
] | null | null | null | from continual_classifier import ContinualClassifier
from utils import estimate_fisher_diagonal
from keras.losses import categorical_crossentropy
import numpy as np
from keras.models import Model
from keras.layers import Lambda
import tensorflow as tf
import keras.backend as K
from sklearn.utils import shuffle
from tqd... | 39.035714 | 196 | 0.747484 | 140 | 1,093 | 5.65 | 0.478571 | 0.034134 | 0.042984 | 0.053097 | 0.060683 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006501 | 0.155535 | 1,093 | 27 | 197 | 40.481481 | 0.850488 | 0 | 0 | 0.1 | 0 | 0 | 0.068744 | 0.021998 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.5 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
47f8f72911d7eb52b0e937e9ab52b545cc6e7692 | 2,047 | py | Python | bioinformatics-stronghold/SSEQ-Finding-a-Spliced-Motif.py | Rgtemze/rosalind-solutions | a8ed5b917b58f5c1558167d292ab8a52e417a9aa | [
"MIT"
] | null | null | null | bioinformatics-stronghold/SSEQ-Finding-a-Spliced-Motif.py | Rgtemze/rosalind-solutions | a8ed5b917b58f5c1558167d292ab8a52e417a9aa | [
"MIT"
] | null | null | null | bioinformatics-stronghold/SSEQ-Finding-a-Spliced-Motif.py | Rgtemze/rosalind-solutions | a8ed5b917b58f5c1558167d292ab8a52e417a9aa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 17 10:43:46 2017
@author: ASUS
This code snippet finds the given spliced motif within the given DNA sequence
"""
#I put \n manually so that it fits to my solution
fasta_formatted_input = ">Rosalind_4080\nGTTACTGCCGAGTGCAAGCAACTTATTGCTGATTGGTCCGTGTAGGCTGTTAGCAGTTAGAATCTCT... | 51.175 | 1,027 | 0.829507 | 169 | 2,047 | 9.934911 | 0.514793 | 0.019059 | 0.016081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016826 | 0.128969 | 2,047 | 39 | 1,028 | 52.487179 | 0.924846 | 0.273083 | 0 | 0 | 0 | 0 | 0.682065 | 0.680027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 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 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
47ff8d41bf87c0fe8311095d178a7714c468514e | 435 | py | Python | tasks/docker_compose.py | TNTtian/Faasm | 377f4235063a7834724cc750697d3e0280d4a581 | [
"Apache-2.0"
] | 1 | 2020-12-02T14:01:07.000Z | 2020-12-02T14:01:07.000Z | tasks/docker_compose.py | TNTtian/Faasm | 377f4235063a7834724cc750697d3e0280d4a581 | [
"Apache-2.0"
] | null | null | null | tasks/docker_compose.py | TNTtian/Faasm | 377f4235063a7834724cc750697d3e0280d4a581 | [
"Apache-2.0"
] | null | null | null | from subprocess import call
from invoke import task
from tasks.util.env import PROJ_ROOT
@task
def docker_start_all(ctx):
call("docker-compose up -d", shell=True, cwd=PROJ_ROOT)
@task
def docker_stop_all(ctx):
call("docker-compose stop", shell=True, cwd=PROJ_ROOT)
@task
def docker_restart_all(ctx):
... | 19.772727 | 59 | 0.735632 | 71 | 435 | 4.352113 | 0.338028 | 0.12945 | 0.220065 | 0.20712 | 0.734628 | 0.647249 | 0.647249 | 0.647249 | 0.563107 | 0.563107 | 0 | 0 | 0.144828 | 435 | 21 | 60 | 20.714286 | 0.830645 | 0 | 0 | 0.538462 | 0 | 0 | 0.17931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.461538 | 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 |
9a134fcb0b98b6cf14db4177f4a73bf442543a14 | 5,727 | py | Python | arjuna/interact/gui/gom/invoker/guimgr.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 9 | 2018-11-15T10:09:17.000Z | 2021-01-12T05:59:19.000Z | arjuna/interact/gui/gom/invoker/guimgr.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 2 | 2019-07-01T15:33:46.000Z | 2019-07-12T13:04:08.000Z | arjuna/interact/gui/gom/invoker/guimgr.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 4 | 2018-12-02T15:14:04.000Z | 2020-05-28T12:57:24.000Z | import uuid
from arjuna.interact.gui.gom.impl.namestore import GuiNameStore
from arjuna.interact.gui.gom.impl.gui import Gui
from arjuna.tpi.enums import ArjunaOption
class GuiHandlerManager:
def __init__(self, project_config):
self.__name_store = GuiNameStore()
self.__namespace_dir = project_conf... | 39.226027 | 121 | 0.731622 | 756 | 5,727 | 5.154762 | 0.134921 | 0.1437 | 0.133436 | 0.126764 | 0.494996 | 0.415961 | 0.28817 | 0.262766 | 0.262766 | 0.262766 | 0 | 0 | 0.185612 | 5,727 | 146 | 122 | 39.226027 | 0.835549 | 0.012747 | 0 | 0.092593 | 0 | 0 | 0.017867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.314815 | false | 0 | 0.037037 | 0.175926 | 0.657407 | 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 |
9a37d070ffb29cd40b0921e241dc42ef59f42cc4 | 411 | py | Python | scraper/create_epub/container.py | NicolasAbroad/wnscraper | 87d5aa8e3a26aa0846a289d378848e1eb1d13304 | [
"Apache-2.0"
] | null | null | null | scraper/create_epub/container.py | NicolasAbroad/wnscraper | 87d5aa8e3a26aa0846a289d378848e1eb1d13304 | [
"Apache-2.0"
] | null | null | null | scraper/create_epub/container.py | NicolasAbroad/wnscraper | 87d5aa8e3a26aa0846a289d378848e1eb1d13304 | [
"Apache-2.0"
] | null | null | null | # container.py - Creates META-INF/content.xml within the epub file
def create_container(epub_file):
epub_file.writestr('META-INF/container.xml', '''<?xml version="1.0"?>
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
<rootfiles>
<rootfile full-path="OEBPS/cont... | 37.363636 | 93 | 0.693431 | 54 | 411 | 5.222222 | 0.611111 | 0.085106 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.13382 | 411 | 10 | 94 | 41.1 | 0.780899 | 0.155718 | 0 | 0 | 0 | 0.285714 | 0.78806 | 0.450746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a38a20264f9ca20c8618b3dc975451c025c0834 | 2,508 | py | Python | Code/Model/vgg_network.py | Jinwon-DK/GaitAnalysis | 6b7be4aae9963b8986519af5bcbff39f32ebf2cd | [
"MIT"
] | 5 | 2020-07-23T05:55:54.000Z | 2021-07-09T22:15:33.000Z | Code/Model/vgg_network.py | Jinwon-DK/GaitAnalysis | 6b7be4aae9963b8986519af5bcbff39f32ebf2cd | [
"MIT"
] | null | null | null | Code/Model/vgg_network.py | Jinwon-DK/GaitAnalysis | 6b7be4aae9963b8986519af5bcbff39f32ebf2cd | [
"MIT"
] | 2 | 2020-07-23T06:05:54.000Z | 2021-04-13T05:55:24.000Z | import tensorflow as tf
import numpy as np
import keras
from keras.applications import VGG16
from keras_applications.imagenet_utils import _obtain_input_shape
def trained_vgg_builder(shape_list, nb_class, trainable):
input_layers = list()
resnet_layers = list()
for input_shape in shape_list:
in... | 41.114754 | 105 | 0.736842 | 325 | 2,508 | 5.44 | 0.224615 | 0.093326 | 0.081448 | 0.059389 | 0.772624 | 0.729638 | 0.700226 | 0.681561 | 0.632353 | 0.632353 | 0 | 0.025436 | 0.153509 | 2,508 | 60 | 106 | 41.8 | 0.807348 | 0 | 0 | 0.5 | 0 | 0 | 0.031898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.113636 | 0 | 0.204545 | 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 |
9a4898cbd60deb46b4fcf9da105705151c0e48af | 80 | py | Python | app/settings.py | YuriyLisovskiy/FractalsApp | 2a21a117b50075f29b057f65b508f810e79f12f8 | [
"MIT"
] | null | null | null | app/settings.py | YuriyLisovskiy/FractalsApp | 2a21a117b50075f29b057f65b508f810e79f12f8 | [
"MIT"
] | null | null | null | app/settings.py | YuriyLisovskiy/FractalsApp | 2a21a117b50075f29b057f65b508f810e79f12f8 | [
"MIT"
] | null | null | null | APP_MIN_WIDTH = 1024
APP_MIN_HEIGHT = 800
APP_NAME = 'Fractals'
APP_FONT = 12
| 11.428571 | 21 | 0.75 | 14 | 80 | 3.857143 | 0.714286 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 0.175 | 80 | 6 | 22 | 13.333333 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9a58caf0a010bd712321d63f7bce180927638e5b | 2,471 | py | Python | pywinrt/winsdk/windows/graphics/display/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 3 | 2022-02-14T14:53:08.000Z | 2022-03-29T20:48:54.000Z | pywinrt/winsdk/windows/graphics/display/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 4 | 2022-01-28T02:53:52.000Z | 2022-02-26T18:10:05.000Z | pywinrt/winsdk/windows/graphics/display/__init__.py | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | null | null | null | # WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4
import enum
import winsdk
_ns_module = winsdk._import_ns_module("Windows.Graphics.Display")
try:
import winsdk.windows.foundation
except Exception:
pass
try:
import winsdk.windows.foundation.collections
except Except... | 26.569892 | 122 | 0.787131 | 255 | 2,471 | 7.364706 | 0.482353 | 0.055378 | 0.031949 | 0.046858 | 0.087859 | 0.065495 | 0.065495 | 0 | 0 | 0 | 0 | 0.062772 | 0.161878 | 2,471 | 92 | 123 | 26.858696 | 0.844037 | 0.033994 | 0 | 0.186667 | 1 | 0 | 0.010063 | 0.010063 | 0 | 0 | 0.006289 | 0 | 0 | 1 | 0 | false | 0.053333 | 0.093333 | 0 | 0.693333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7bf49b37a60d5eed67c60573366344fc79481753 | 191 | py | Python | PiGame/pigame/players/urls.py | MoonCheesez/stack | 4d682a3cc964f513407c7061f81f2399aa3e8465 | [
"MIT"
] | null | null | null | PiGame/pigame/players/urls.py | MoonCheesez/stack | 4d682a3cc964f513407c7061f81f2399aa3e8465 | [
"MIT"
] | null | null | null | PiGame/pigame/players/urls.py | MoonCheesez/stack | 4d682a3cc964f513407c7061f81f2399aa3e8465 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^join/$', views.join, name="players-join"),
url(r'^leave/([1-4])$', views.leave, name="players-leave"),
]
| 21.222222 | 63 | 0.638743 | 28 | 191 | 4.357143 | 0.535714 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.146597 | 191 | 8 | 64 | 23.875 | 0.736196 | 0 | 0 | 0 | 0 | 0 | 0.246073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7bfc0f0a3f2c5f65a8824e1ad47e2db8709e9b74 | 602 | py | Python | openshiftcli/keywords/__init__.py | pablofelix/robotframework-openshiftcli | 895d633908b52eb0eb5de20b741863ce32cecd30 | [
"MIT"
] | 1 | 2021-11-23T23:44:36.000Z | 2021-11-23T23:44:36.000Z | openshiftcli/keywords/__init__.py | pablofelix/robotframework-openshiftcli | 895d633908b52eb0eb5de20b741863ce32cecd30 | [
"MIT"
] | 2 | 2021-09-10T08:00:16.000Z | 2022-01-14T08:41:20.000Z | openshiftcli/keywords/__init__.py | pablofelix/robotframework-openshiftcli | 895d633908b52eb0eb5de20b741863ce32cecd30 | [
"MIT"
] | 3 | 2021-09-10T10:18:15.000Z | 2021-12-20T02:33:30.000Z | from .generic import GenericKeywords
from .clusterrolebindings import ClusterrolebindingKeywords
from .clusterroles import ClusterroleKeywords
from .configmaps import ConfigmapKeywords
from .crds import CRDKeywords
from .events import EventKeywords
from .groups import GroupKeywords
from .kfdefs import KFDEFKeywords
fro... | 33.444444 | 59 | 0.865449 | 64 | 602 | 8.140625 | 0.53125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107973 | 602 | 17 | 60 | 35.411765 | 0.970205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d002ffb87b4e83f6c263ff08c9135746d15077ec | 147 | py | Python | setup.py | cbalfour/python-qrcode | d91982b601da0ae3d8219e25adc6cc72c900c381 | [
"BSD-3-Clause"
] | 2,651 | 2015-01-07T03:10:41.000Z | 2022-03-31T08:02:22.000Z | setup.py | cbalfour/python-qrcode | d91982b601da0ae3d8219e25adc6cc72c900c381 | [
"BSD-3-Clause"
] | 163 | 2015-01-16T05:08:48.000Z | 2022-03-25T21:00:27.000Z | setup.py | cbalfour/python-qrcode | d91982b601da0ae3d8219e25adc6cc72c900c381 | [
"BSD-3-Clause"
] | 451 | 2015-01-02T07:17:20.000Z | 2022-03-31T16:00:29.000Z | #!/usr/bin/env python
from setuptools import setup
# See setup.cfg for configuration.
setup(
data_files=[('share/man/man1', ['doc/qr.1'])],
)
| 18.375 | 50 | 0.680272 | 22 | 147 | 4.5 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.136054 | 147 | 7 | 51 | 21 | 0.76378 | 0.360544 | 0 | 0 | 0 | 0 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 |
d00d65108e28833f5e7afd071846fc70ded100f6 | 1,386 | py | Python | teeth_overlord/agent_client/fake.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | teeth_overlord/agent_client/fake.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | teeth_overlord/agent_client/fake.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2013 Rackspace, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | 30.130435 | 72 | 0.694084 | 191 | 1,386 | 4.973822 | 0.544503 | 0.063158 | 0.044211 | 0.06 | 0.149474 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007387 | 0.218615 | 1,386 | 45 | 73 | 30.8 | 0.869806 | 0.585137 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.142857 | 0.071429 | 0 | 0.857143 | 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 |
d021e449cb8eb7c1ea4faed97961e1a5308e62da | 107 | py | Python | main.py | SeventeenChen/COVID-19-Spider | ba34e8e7b2eaa4a4e5d24649147dab1be9398307 | [
"MIT"
] | null | null | null | main.py | SeventeenChen/COVID-19-Spider | ba34e8e7b2eaa4a4e5d24649147dab1be9398307 | [
"MIT"
] | null | null | null | main.py | SeventeenChen/COVID-19-Spider | ba34e8e7b2eaa4a4e5d24649147dab1be9398307 | [
"MIT"
] | null | null | null | from service.crawler import Crawler
if __name__ == '__main__':
crawler = Crawler()
crawler.run()
| 15.285714 | 35 | 0.682243 | 12 | 107 | 5.416667 | 0.666667 | 0.430769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205607 | 107 | 6 | 36 | 17.833333 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 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 |
d043a960f86c6416d666f2e884aa785e1e5b56ce | 91 | py | Python | apps/hatchery/apps.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | 2 | 2021-01-05T06:16:32.000Z | 2021-09-09T10:42:53.000Z | apps/hatchery/apps.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | null | null | null | apps/hatchery/apps.py | kngeno/telelbirds | 924bb2f1c397bbab2bd626d582c8e86704d86176 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class HatcheryConfig(AppConfig):
name = 'hatchery'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 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 |
d04da74188098f9f3d978a537873cc4c95fe00d3 | 149 | py | Python | model/SongCategory.py | mohammadaminabbasi/Darkflow-NLP-Persian-Music-Recommendation-on-Lyrics | 3b3bd9508c303a31d2d3e107641615d558eeb8fb | [
"MIT"
] | 5 | 2021-09-12T08:55:13.000Z | 2022-03-22T17:34:13.000Z | model/SongCategory.py | mohammadaminabbasi/NLP-Persian-Music-Recommendation-Lyrics | 3b3bd9508c303a31d2d3e107641615d558eeb8fb | [
"MIT"
] | 1 | 2021-09-11T17:33:30.000Z | 2021-09-11T17:33:30.000Z | model/SongCategory.py | mohammadaminabbasi/NLP-Persian-Music-Recommendation-Lyrics | 3b3bd9508c303a31d2d3e107641615d558eeb8fb | [
"MIT"
] | null | null | null | from enum import Enum
class SongCategory(Enum):
happyLove = "happy_love"
depLove = "dep_love"
hipHop = "hip_hop"
Praise = "praise"
| 16.555556 | 28 | 0.657718 | 18 | 149 | 5.277778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241611 | 149 | 8 | 29 | 18.625 | 0.840708 | 0 | 0 | 0 | 0 | 0 | 0.208054 | 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 |
d0582d9b382bbaef1e966848272ad984ade101f9 | 2,072 | py | Python | srl/base/env/spaces/array_continuous.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | 1 | 2022-03-01T09:16:57.000Z | 2022-03-01T09:16:57.000Z | srl/base/env/spaces/array_continuous.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | null | null | null | srl/base/env/spaces/array_continuous.py | pocokhc/simple_rl | 765f12f392f87e6897027905d74f1bced6a2b7bf | [
"MIT"
] | null | null | null | import random
from typing import List, Tuple, Union
import numpy as np
from srl.base.define import ContinuousAction, DiscreteAction, DiscreteSpaceType, RLObservation
from srl.base.env.spaces.box import BoxSpace
class ArrayContinuousSpace(BoxSpace):
def __init__(
self,
size: int,
low: Unio... | 35.118644 | 96 | 0.693533 | 239 | 2,072 | 5.794979 | 0.225941 | 0.051986 | 0.039711 | 0.036823 | 0.265704 | 0.265704 | 0.20361 | 0.20361 | 0.20361 | 0.092419 | 0 | 0 | 0.19112 | 2,072 | 58 | 97 | 35.724138 | 0.826372 | 0.091699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.324324 | false | 0 | 0.135135 | 0.27027 | 0.756757 | 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 |
d0632de29b01374662dc6b9e5366cc55f224b9e3 | 1,726 | py | Python | beautify/response.py | abhishek-ziffi/AbhishekBharti | 52aca21229f9377f2c53cbe7406e16208878492b | [
"MIT"
] | null | null | null | beautify/response.py | abhishek-ziffi/AbhishekBharti | 52aca21229f9377f2c53cbe7406e16208878492b | [
"MIT"
] | null | null | null | beautify/response.py | abhishek-ziffi/AbhishekBharti | 52aca21229f9377f2c53cbe7406e16208878492b | [
"MIT"
] | null | null | null | #!/usr/bin/python
import MySQLdb
db = MySQLdb.connect(host="localhost",
user="root", db="beautify")
cur = db.cursor(MySQLdb.cursors.DictCursor)
cur.execute("select category.id As category_id, category.name as category_name, category_data.id as category_data_id, category_data.name as category_data_name, category_data.... | 29.758621 | 498 | 0.738123 | 249 | 1,726 | 4.843373 | 0.204819 | 0.248756 | 0.11194 | 0.078773 | 0.461857 | 0.256219 | 0.034826 | 0 | 0 | 0 | 0 | 0.000651 | 0.109502 | 1,726 | 57 | 499 | 30.280702 | 0.783995 | 0.293743 | 0 | 0 | 0 | 0.047619 | 0.656093 | 0.123539 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.047619 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d07eb66f11b2b9af2ede871b20fb8500548dc478 | 188 | py | Python | place/models/weather.py | Kradukman/beesUlb | 1234658af3aff7d2f580212c01d8acec96167078 | [
"MIT"
] | null | null | null | place/models/weather.py | Kradukman/beesUlb | 1234658af3aff7d2f580212c01d8acec96167078 | [
"MIT"
] | null | null | null | place/models/weather.py | Kradukman/beesUlb | 1234658af3aff7d2f580212c01d8acec96167078 | [
"MIT"
] | null | null | null | from odoo import api, fields, models, _
class PlaceWeather(models.Model):
_name = "place.weather"
_description = "Place weather"
name = fields.Char('Weather', required=True) | 23.5 | 48 | 0.702128 | 22 | 188 | 5.863636 | 0.727273 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180851 | 188 | 8 | 48 | 23.5 | 0.837662 | 0 | 0 | 0 | 0 | 0 | 0.174603 | 0 | 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 |
d09ccbf5d6baeee5aea5cf1043a7aa1bc51b805f | 83 | py | Python | upy/__init__.py | 20tab/upy | 9b15c01afb46cf0082076fb0567f23f97d4099cb | [
"BSD-3-Clause"
] | 2 | 2021-05-04T07:52:39.000Z | 2021-07-11T22:19:32.000Z | upy/__init__.py | 20tab/upy | 9b15c01afb46cf0082076fb0567f23f97d4099cb | [
"BSD-3-Clause"
] | 1 | 2017-11-03T10:17:23.000Z | 2017-11-03T10:17:23.000Z | upy/__init__.py | 20tab/upy | 9b15c01afb46cf0082076fb0567f23f97d4099cb | [
"BSD-3-Clause"
] | null | null | null | VERSION = (0, 35, 1)
__version__ = '.'.join(map(str, VERSION))
DATE = "2014-02-07"
| 20.75 | 41 | 0.614458 | 13 | 83 | 3.615385 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 0.144578 | 83 | 3 | 42 | 27.666667 | 0.492958 | 0 | 0 | 0 | 0 | 0 | 0.13253 | 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 |
d0a19508a8cc2a192a2368f513be0f0327ccaaf1 | 462 | py | Python | Data Structures/pprint/pprint_depth.py | imran-rashid/python-standard-library-examples | c21943d94c03b14089b759b9f16caca8b2395891 | [
"MIT"
] | null | null | null | Data Structures/pprint/pprint_depth.py | imran-rashid/python-standard-library-examples | c21943d94c03b14089b759b9f16caca8b2395891 | [
"MIT"
] | null | null | null | Data Structures/pprint/pprint_depth.py | imran-rashid/python-standard-library-examples | c21943d94c03b14089b759b9f16caca8b2395891 | [
"MIT"
] | null | null | null | # For very deep data structures, it may not be desirable for the output to
# include all of the details. The data may not be formatted properly, the
# formatted text might be too large to manage, or some of the data may be extraneous.
from pprint import pprint
from pprint_data import data
# pprint(data)
ppr... | 46.2 | 86 | 0.595238 | 67 | 462 | 4.089552 | 0.537313 | 0.145985 | 0.058394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018767 | 0.192641 | 462 | 10 | 87 | 46.2 | 0.715818 | 0.735931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
d0a68ef8aec9de3a0c8aff0d8a632722a7d82b76 | 1,014 | py | Python | TTT_referee.py | MikeFlanigan/TTT_ai | 9b8b3e84b737d90b4e77870916175f790ffaa61d | [
"Unlicense"
] | null | null | null | TTT_referee.py | MikeFlanigan/TTT_ai | 9b8b3e84b737d90b4e77870916175f790ffaa61d | [
"Unlicense"
] | null | null | null | TTT_referee.py | MikeFlanigan/TTT_ai | 9b8b3e84b737d90b4e77870916175f790ffaa61d | [
"Unlicense"
] | null | null | null | import numpy as np
def CheckScore(board):
Win = Loss = Tie = False
zeros = np.where(board == 0)
if np.all(board[0,0:3] == 1) or np.all(board[1,0:3] == 1) or np.all(board[2,0:3] == 1):
Win = True
elif np.all(board[0:3,0] == 1) or np.all(board[0:3,1] == 1) or np.all(board[0:3,2] == 1):
Wi... | 37.555556 | 93 | 0.508876 | 203 | 1,014 | 2.541872 | 0.133005 | 0.151163 | 0.232558 | 0.170543 | 0.75 | 0.713178 | 0.552326 | 0.296512 | 0.162791 | 0 | 0 | 0.119342 | 0.281065 | 1,014 | 26 | 94 | 39 | 0.588477 | 0 | 0 | 0.333333 | 0 | 0 | 0.005917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.125 | 0.041667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d0ad536d61a65b9e18b422c6c80aa7e1451a8afd | 968 | py | Python | py/tests/problems/linkedlist/is_palindrome_test.py | bmoretz/Daily-Coding-Problem | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | [
"MIT"
] | 1 | 2020-06-26T13:28:43.000Z | 2020-06-26T13:28:43.000Z | py/tests/problems/linkedlist/is_palindrome_test.py | bmoretz/Daily-Coding-Problem | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | [
"MIT"
] | 7 | 2021-11-18T19:46:08.000Z | 2022-03-12T01:03:01.000Z | py/tests/problems/linkedlist/is_palindrome_test.py | bmoretz/Daily-Coding-Problem | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | [
"MIT"
] | null | null | null | import unittest
from dcp.problems.linkedlist.single import build_list
from dcp.problems.linkedlist.is_palindrome import is_palindrome1
class Test_IsPalindrome1(unittest.TestCase):
def setUp(self):
pass
def test_case1(self):
assert is_palindrome1(None) == None
def test_case2(self):
... | 22.511628 | 64 | 0.558884 | 121 | 968 | 4.297521 | 0.280992 | 0.175 | 0.219231 | 0.163462 | 0.490385 | 0.455769 | 0.419231 | 0.346154 | 0.138462 | 0 | 0 | 0.020349 | 0.289256 | 968 | 43 | 65 | 22.511628 | 0.735465 | 0 | 0 | 0.217391 | 0 | 0 | 0.024768 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 1 | 0.304348 | false | 0.043478 | 0.130435 | 0 | 0.478261 | 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 |
d0bb57763dfc330ff31c7074f9858bafde8826bd | 1,663 | py | Python | skmultilearn/ext/__init__.py | emrecncelik/scikit-multilearn | 1d7f7b74702cb9a5a8245726bf38e23e1f2f3382 | [
"BSD-2-Clause"
] | 763 | 2015-03-22T18:54:33.000Z | 2022-03-25T07:54:04.000Z | skmultilearn/ext/__init__.py | emrecncelik/scikit-multilearn | 1d7f7b74702cb9a5a8245726bf38e23e1f2f3382 | [
"BSD-2-Clause"
] | 187 | 2015-01-27T15:06:35.000Z | 2022-03-22T21:41:47.000Z | skmultilearn/ext/__init__.py | emrecncelik/scikit-multilearn | 1d7f7b74702cb9a5a8245726bf38e23e1f2f3382 | [
"BSD-2-Clause"
] | 157 | 2015-04-13T16:47:36.000Z | 2022-03-17T19:12:59.000Z | """
The :mod:`skmultilearn.ext` provides wrappers for other multi-label
classification libraries. Currently it provides a wrapper for:
Currently the available classes include:
+--------------------------------------------+------------------------------------------------------------------+
| Name ... | 57.344828 | 113 | 0.328924 | 99 | 1,663 | 5.383838 | 0.565657 | 0.11257 | 0.075047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004085 | 0.263981 | 1,663 | 28 | 114 | 59.392857 | 0.431373 | 0.858088 | 0 | 0 | 0 | 0 | 0.118943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d0c48e72ce932bbd6209868cebec4ec529b71ccc | 747 | py | Python | tests/kyu_7_tests/test_number_of_occurrences.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | tests/kyu_7_tests/test_number_of_occurrences.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | tests/kyu_7_tests/test_number_of_occurrences.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | import unittest
from katas.kyu_7.number_of_occurrences import number_of_occurrences
class NumberOfOccurrencesTestCase(unittest.TestCase):
def test_equals(self):
self.assertEqual(number_of_occurrences(4, []), 0)
def test_equals_2(self):
self.assertEqual(number_of_occurrences(4, [4, 0, 4]), 2)... | 27.666667 | 67 | 0.625167 | 99 | 747 | 4.474747 | 0.333333 | 0.126411 | 0.300226 | 0.282167 | 0.433409 | 0.433409 | 0.176072 | 0 | 0 | 0 | 0 | 0.108541 | 0.247657 | 747 | 26 | 68 | 28.730769 | 0.679715 | 0 | 0 | 0.157895 | 0 | 0 | 0.02008 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.263158 | false | 0 | 0.105263 | 0 | 0.421053 | 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 |
d0cbd4ba75f7ccfac625cc5319e182c965b52595 | 916 | py | Python | 08/VM/command.py | thinker1990/nand2tetris | 5df492cc63187c774cc77cd4d689d32f4363e685 | [
"MIT"
] | null | null | null | 08/VM/command.py | thinker1990/nand2tetris | 5df492cc63187c774cc77cd4d689d32f4363e685 | [
"MIT"
] | null | null | null | 08/VM/command.py | thinker1990/nand2tetris | 5df492cc63187c774cc77cd4d689d32f4363e685 | [
"MIT"
] | null | null | null | class Arithmetic:
def __init__(self, command):
self.text = command
def operation(self):
return self.text.strip()
class MemoryAccess:
def __init__(self, command):
self.op, self.seg, self.idx = tuple(command.split())
def operation(self):
return self.op
def segmen... | 17.960784 | 60 | 0.601528 | 116 | 916 | 4.594828 | 0.284483 | 0.168856 | 0.183865 | 0.135084 | 0.401501 | 0.228893 | 0.228893 | 0.161351 | 0 | 0 | 0 | 0.004559 | 0.281659 | 916 | 50 | 61 | 18.32 | 0.805471 | 0 | 0 | 0.290323 | 0 | 0 | 0.022926 | 0.022926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.419355 | false | 0 | 0 | 0.290323 | 0.83871 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d0df6d95cdb79d1a933ea38417540afed87b6862 | 162 | py | Python | Strings/2174.py | jeconiassantos/uriissues | f6c32f8632b9940a4886240ea5d22300922dc79a | [
"MIT"
] | null | null | null | Strings/2174.py | jeconiassantos/uriissues | f6c32f8632b9940a4886240ea5d22300922dc79a | [
"MIT"
] | null | null | null | Strings/2174.py | jeconiassantos/uriissues | f6c32f8632b9940a4886240ea5d22300922dc79a | [
"MIT"
] | null | null | null | N = int(input())
pokemons = []
while (N != 0):
Name = input()
pokemons.append(Name)
N-= 1
print('Falta(m) {} pomekon(s).'.format(151 - len(set(pokemons))))
| 20.25 | 65 | 0.58642 | 24 | 162 | 3.958333 | 0.75 | 0.273684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.166667 | 162 | 7 | 66 | 23.142857 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.141975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
d0e497f138589b26859fff6c1d4bbfaf23f6f7bb | 180 | py | Python | 7 kyu/Count salutes.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 7 kyu/Count salutes.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 7 kyu/Count salutes.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def count_salutes(hallway):
count=hallway.count("<")
total=0
for i in hallway:
count-=i=="<"
if i==">":
total+=count*2
return total
| 20 | 28 | 0.5 | 22 | 180 | 4.045455 | 0.545455 | 0.404494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.344444 | 180 | 9 | 29 | 20 | 0.737288 | 0 | 0 | 0 | 0 | 0 | 0.016575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 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 |
ef6bee1ad451fad7154ffa873629cdbf38c7c15d | 579 | py | Python | Disjunction Construction.py | fatih-iver-2016400264/Programming-Languages | 708b1b5954ff41c3a5d9e14b7c667b5d11bddb44 | [
"MIT"
] | 1 | 2018-08-26T15:27:14.000Z | 2018-08-26T15:27:14.000Z | Disjunction Construction.py | fatih-iver-2016400264/Programming-Languages | 708b1b5954ff41c3a5d9e14b7c667b5d11bddb44 | [
"MIT"
] | null | null | null | Disjunction Construction.py | fatih-iver-2016400264/Programming-Languages | 708b1b5954ff41c3a5d9e14b7c667b5d11bddb44 | [
"MIT"
] | null | null | null | # Disjunction Construction
import re
# Assign to the variable regexp a regular expression that matches either the
# exact string ab or one or more digits.
regexp = r"ab|[0-9]+"
# regexp matches:
print (re.findall(regexp,"ab") == ["ab"])
#>>> True
print (re.findall(regexp,"1") == ["1"])
#>>> True
... | 18.677419 | 77 | 0.590674 | 77 | 579 | 4.441558 | 0.454545 | 0.122807 | 0.245614 | 0.350877 | 0.280702 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034557 | 0.200345 | 579 | 31 | 78 | 18.677419 | 0.704104 | 0.604491 | 0 | 0 | 0 | 0 | 0.11413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 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 |
ef8cf8ab28e4aaeac878dfa2fa976e064365c305 | 211 | py | Python | dictionary_comprenhensions_challenge.py | gabrielomar86/python-intermedio-platzi | a98eac8c40cbabd3fb323ff9619fc7a3c58cac1d | [
"MIT"
] | null | null | null | dictionary_comprenhensions_challenge.py | gabrielomar86/python-intermedio-platzi | a98eac8c40cbabd3fb323ff9619fc7a3c58cac1d | [
"MIT"
] | null | null | null | dictionary_comprenhensions_challenge.py | gabrielomar86/python-intermedio-platzi | a98eac8c40cbabd3fb323ff9619fc7a3c58cac1d | [
"MIT"
] | null | null | null | import math
def run():
square_root_for_first_1000_natural_numbers = {i: math.sqrt(i) for i in range(1, 1001)}
print(square_root_for_first_1000_natural_numbers)
if __name__ == '__main__':
run() | 23.444444 | 90 | 0.720379 | 33 | 211 | 4 | 0.636364 | 0.151515 | 0.19697 | 0.272727 | 0.545455 | 0.545455 | 0.545455 | 0 | 0 | 0 | 0 | 0.074713 | 0.175355 | 211 | 9 | 91 | 23.444444 | 0.683908 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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.