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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
87d0124233a5f6fa88955b3b377f0007a8d7628c | 85 | py | Python | django_development/django_development/apps/verifications/constants.py | shiwanlinswl/Project-Django | 2b4b6db44c3e925008c5ccc97ec51d9931431494 | [
"MIT"
] | null | null | null | django_development/django_development/apps/verifications/constants.py | shiwanlinswl/Project-Django | 2b4b6db44c3e925008c5ccc97ec51d9931431494 | [
"MIT"
] | null | null | null | django_development/django_development/apps/verifications/constants.py | shiwanlinswl/Project-Django | 2b4b6db44c3e925008c5ccc97ec51d9931431494 | [
"MIT"
] | null | null | null | SMS_CODE_REDIS_EXPIRES = 300 # 短信验证码过期时间(单位:秒)
SEND_SMS_CODE_INTERVAL = 60 # 短信标记时间 | 42.5 | 47 | 0.788235 | 14 | 85 | 4.357143 | 0.857143 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0.129412 | 85 | 2 | 48 | 42.5 | 0.756757 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 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 |
87e84218a6cd57c09561877a0487d635157061e6 | 417 | py | Python | awww/serializer.py | karobia001/Awwards | eef72e7295c3625ce02950450b8d4fa294ff020f | [
"MIT"
] | null | null | null | awww/serializer.py | karobia001/Awwards | eef72e7295c3625ce02950450b8d4fa294ff020f | [
"MIT"
] | 5 | 2020-02-12T03:22:13.000Z | 2021-09-08T01:27:51.000Z | projects/serializer.py | Nelvinom/Awwards | be51caedacb337fa6ee267ccbaa20d40baf245e0 | [
"MIT"
] | 1 | 2020-11-04T08:44:17.000Z | 2020-11-04T08:44:17.000Z | from rest_framework import serializers
from .models import Project,Profile
class ProjectSerializer(serializers.ModelSerializer):
class Meta:
model = Project
fields = ('title','image','description', 'link','profile','design','usability','content')
class ProfileSerializer(serializers.ModelSerializer... | 32.076923 | 97 | 0.697842 | 40 | 417 | 7.25 | 0.625 | 0.17931 | 0.213793 | 0.241379 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172662 | 417 | 12 | 98 | 34.75 | 0.84058 | 0 | 0 | 0.2 | 0 | 0 | 0.182254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
87f099c414bfe24b3628aee0014671cd8c43a427 | 30 | py | Python | E_business_project/apps/goods/constants.py | ambushonallsides1/E_business_project | bf386391e58e0e82787ddc07fc678937e345a4cb | [
"MIT"
] | 1 | 2020-02-05T14:00:19.000Z | 2020-02-05T14:00:19.000Z | E_business_project/apps/goods/constants.py | ambushonallsides1/E_business_project | bf386391e58e0e82787ddc07fc678937e345a4cb | [
"MIT"
] | 6 | 2020-05-11T20:34:17.000Z | 2021-11-02T15:46:41.000Z | E_business_project/apps/goods/constants.py | ambushonallsides1/E_business_project | bf386391e58e0e82787ddc07fc678937e345a4cb | [
"MIT"
] | null | null | null | # 每页N条记录
GOODS_LIST_LIMIT = 20 | 15 | 21 | 0.8 | 5 | 30 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.133333 | 30 | 2 | 21 | 15 | 0.769231 | 0.2 | 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 |
e211f9d84e11ac606b47324dbaa70cc6c0146a51 | 609 | py | Python | tools/leetcode.083.Remove Duplicates from Sorted List/leetcode.083.Remove Duplicates from Sorted List.submission3.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.083.Remove Duplicates from Sorted List/leetcode.083.Remove Duplicates from Sorted List.submission3.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.083.Remove Duplicates from Sorted List/leetcode.083.Remove Duplicates from Sorted List.submission3.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param head, a ListNode
# @return a ListNode
def deleteDuplicates(self, head):
if not head: return None
if head.next == None: return head
... | 609 | 609 | 0.458128 | 70 | 609 | 3.928571 | 0.371429 | 0.08 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.458128 | 609 | 1 | 609 | 609 | 0.833333 | 0.937603 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
35550e21afde5f65f67a067ce9e07b6d358cebf8 | 212 | py | Python | spectra/shapes.py | jevandezande/spectra | 95cf4aa7599c30183263740c88f94714d55e1d0a | [
"MIT"
] | 16 | 2019-10-03T21:30:45.000Z | 2022-03-09T22:18:44.000Z | spectra/shapes.py | jevandezande/spectra | 95cf4aa7599c30183263740c88f94714d55e1d0a | [
"MIT"
] | 8 | 2021-03-15T20:45:32.000Z | 2022-03-03T15:17:42.000Z | spectra/shapes.py | jevandezande/spectra | 95cf4aa7599c30183263740c88f94714d55e1d0a | [
"MIT"
] | 1 | 2021-07-26T18:50:06.000Z | 2021-07-26T18:50:06.000Z | import numpy as np
from numpy.typing import ArrayLike
def gaussian(energy: float, width: float, xs: ArrayLike) -> np.ndarray:
xs = np.asarray(xs)
return np.exp(-((xs - energy) ** 2) / (2 * width ** 2))
| 26.5 | 71 | 0.646226 | 32 | 212 | 4.28125 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0.198113 | 212 | 7 | 72 | 30.285714 | 0.788235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 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 |
355dea7e5861926a78325b4c753adc5943228a2a | 208 | py | Python | leitor html.py | davi-griff/Leitor-e-conversor-RTF-HTML | 814a6ee160895f1d28c61c7e5dcea2dba2bbcf22 | [
"MIT"
] | null | null | null | leitor html.py | davi-griff/Leitor-e-conversor-RTF-HTML | 814a6ee160895f1d28c61c7e5dcea2dba2bbcf22 | [
"MIT"
] | null | null | null | leitor html.py | davi-griff/Leitor-e-conversor-RTF-HTML | 814a6ee160895f1d28c61c7e5dcea2dba2bbcf22 | [
"MIT"
] | null | null | null | '''
import html2text
html = input('')
text = html2text.html2text(html)
print(text)
input()
'''
teste = input("Digite:")
if teste == "1":
print("1")
elif teste == "2":
print("2")
else:
print("3") | 13 | 32 | 0.576923 | 27 | 208 | 4.444444 | 0.518519 | 0.216667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.192308 | 208 | 16 | 33 | 13 | 0.666667 | 0.418269 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
3568a1a9ddf44469f4406f8a8cb93b15a7c30da3 | 154 | py | Python | exercicios/exercicio025.py | Helton-Rubens/Python-3 | eb6d5ee71bcb2a2a80de4eaea942bd0c41d846b7 | [
"MIT"
] | null | null | null | exercicios/exercicio025.py | Helton-Rubens/Python-3 | eb6d5ee71bcb2a2a80de4eaea942bd0c41d846b7 | [
"MIT"
] | null | null | null | exercicios/exercicio025.py | Helton-Rubens/Python-3 | eb6d5ee71bcb2a2a80de4eaea942bd0c41d846b7 | [
"MIT"
] | null | null | null | nome = str(input('Digite o seu nome: ').strip())
print('O nome completo é {}'.format(nome))
print ('Há Silva no nome? {}'.format('silva' in nome.lower())) | 51.333333 | 62 | 0.649351 | 25 | 154 | 4 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123377 | 154 | 3 | 62 | 51.333333 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.412903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 |
359ef76fd28c3b3ed5ff0f4bb50c520a03b6fd1c | 339 | py | Python | filter_plugins/_django_zipmerge.py | cchurch/ansible-role-django | ad4e7652d0142aa00c0707551d477daac1f4f9e5 | [
"BSD-3-Clause"
] | 16 | 2016-03-03T04:43:22.000Z | 2021-11-13T08:48:41.000Z | filter_plugins/_django_zipmerge.py | cchurch/ansible-role-django | ad4e7652d0142aa00c0707551d477daac1f4f9e5 | [
"BSD-3-Clause"
] | 11 | 2017-02-07T03:47:25.000Z | 2021-09-23T23:32:51.000Z | filter_plugins/_django_zipmerge.py | cchurch/ansible-role-django | ad4e7652d0142aa00c0707551d477daac1f4f9e5 | [
"BSD-3-Clause"
] | 5 | 2016-10-31T17:41:08.000Z | 2021-07-11T16:13:58.000Z | # Ansible
from ansible.plugins.filter.core import combine
from ansible.plugins.filter.mathstuff import zip
def _django_zipmerge(*args, **kwargs):
return map(lambda x: combine(*x, **kwargs), zip(*args))
class FilterModule(object):
def filters(self):
return {
'_django_zipmerge': _django_z... | 21.1875 | 59 | 0.681416 | 40 | 339 | 5.625 | 0.575 | 0.186667 | 0.16 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20354 | 339 | 15 | 60 | 22.6 | 0.833333 | 0.020649 | 0 | 0 | 0 | 0 | 0.048485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
35b5982d21729a98b2d312b7257501e26a29b286 | 839 | py | Python | pythalesians/timeseries/techind/techparams.py | NunoEdgarGFlowHub/pythalesians | 3ea77b9f52cc704258d55369922955f4010bf4ea | [
"Apache-2.0"
] | 22 | 2017-06-04T21:05:18.000Z | 2022-01-22T19:01:43.000Z | pythalesians/timeseries/techind/techparams.py | NunoEdgarGFlowHub/pythalesians | 3ea77b9f52cc704258d55369922955f4010bf4ea | [
"Apache-2.0"
] | null | null | null | pythalesians/timeseries/techind/techparams.py | NunoEdgarGFlowHub/pythalesians | 3ea77b9f52cc704258d55369922955f4010bf4ea | [
"Apache-2.0"
] | 11 | 2016-10-06T21:25:20.000Z | 2020-07-08T19:13:35.000Z | __author__ = 'saeedamen' # Saeed Amen / saeed@thalesians.com
#
# Copyright 2015 Thalesians Ltd. - http//www.thalesians.com / @thalesians
#
# 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://... | 32.269231 | 121 | 0.761621 | 122 | 839 | 5.204918 | 0.680328 | 0.094488 | 0.040945 | 0.050394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011478 | 0.169249 | 839 | 25 | 122 | 33.56 | 0.89957 | 0.803337 | 0 | 0 | 0 | 0 | 0.121622 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
35c2cb7eb41b48cfea66424e9f0d04ad31114b8f | 157 | py | Python | tests/run_python3.py | EmilStenstrom/json-tagger | a8816e6c4339c6b834c6e014d7bd6ea7b02e760b | [
"MIT"
] | 13 | 2015-12-07T23:05:47.000Z | 2021-07-01T23:41:14.000Z | tests/run_python3_encoded.py | EmilStenstrom/json-tagger | a8816e6c4339c6b834c6e014d7bd6ea7b02e760b | [
"MIT"
] | 3 | 2018-10-08T10:44:54.000Z | 2020-08-01T13:03:51.000Z | tests/run_python3_encoded.py | EmilStenstrom/json-tagger | a8816e6c4339c6b834c6e014d7bd6ea7b02e760b | [
"MIT"
] | 2 | 2020-01-26T08:17:20.000Z | 2020-02-01T18:42:33.000Z | import requests
r = requests.post("http://localhost:8000/tag", data="Fördomen har alltid sin rot i vardagslivet - Olof Palme".encode("utf-8"))
print(r.text)
| 39.25 | 126 | 0.738854 | 25 | 157 | 4.64 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035461 | 0.101911 | 157 | 3 | 127 | 52.333333 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0.541401 | 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 |
35d8035ffe6af3054f798e280e25aeae624f9ff5 | 30 | py | Python | version.py | geroba45/OoT-Randomizer | f9c6909d705552089d3bb5688d88caf94c5f35d5 | [
"MIT"
] | 1 | 2018-12-21T03:05:49.000Z | 2018-12-21T03:05:49.000Z | version.py | geroba45/OoT-Randomizer | f9c6909d705552089d3bb5688d88caf94c5f35d5 | [
"MIT"
] | 1 | 2020-02-19T01:37:18.000Z | 2020-02-19T01:37:18.000Z | version.py | geroba45/OoT-Randomizer | f9c6909d705552089d3bb5688d88caf94c5f35d5 | [
"MIT"
] | 1 | 2019-01-09T18:20:56.000Z | 2019-01-09T18:20:56.000Z | __version__ = '5.1.0 Release'
| 15 | 29 | 0.7 | 5 | 30 | 3.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.133333 | 30 | 1 | 30 | 30 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0.433333 | 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 |
ea0796e51c4ae4c06fabd2e2fe7470f19aa751f6 | 102 | py | Python | test_print.py | evphoto/tools | a1759f3bb19a94a93cc3b73f482d8f98e053aec6 | [
"Apache-2.0"
] | null | null | null | test_print.py | evphoto/tools | a1759f3bb19a94a93cc3b73f482d8f98e053aec6 | [
"Apache-2.0"
] | null | null | null | test_print.py | evphoto/tools | a1759f3bb19a94a93cc3b73f482d8f98e053aec6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import qrcode
img = qrcode.make('09/20/2021')
img.save('testqrcode.png')
| 17 | 32 | 0.676471 | 16 | 102 | 4.3125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102273 | 0.137255 | 102 | 5 | 33 | 20.4 | 0.681818 | 0.205882 | 0 | 0 | 0 | 0 | 0.32 | 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 |
ea07e621c51423715ab074b160d987fb38794aa3 | 472 | py | Python | Flask/flask_blueprint_swagger_mysql/api/auth/serializers.py | mani144/Python | 03a1fcbb7b07355f2a65e534e1a299d30691a690 | [
"MIT"
] | 1 | 2022-01-22T00:38:07.000Z | 2022-01-22T00:38:07.000Z | Flask/flask_blueprint_swagger_mysql/api/auth/serializers.py | mani144/Python | 03a1fcbb7b07355f2a65e534e1a299d30691a690 | [
"MIT"
] | null | null | null | Flask/flask_blueprint_swagger_mysql/api/auth/serializers.py | mani144/Python | 03a1fcbb7b07355f2a65e534e1a299d30691a690 | [
"MIT"
] | null | null | null | from flask_restplus import fields
from api.restplus import api
register_user = api.model('register a user', {
'username': fields.String(required=True, description='username'),
'password': fields.String(required=True, description='password'),
'email': fields.String(required=True, description='email'),... | 42.909091 | 73 | 0.71822 | 54 | 472 | 6.240741 | 0.407407 | 0.178042 | 0.296736 | 0.356083 | 0.519288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133475 | 472 | 10 | 74 | 47.2 | 0.823961 | 0 | 0 | 0 | 0 | 0 | 0.201299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.222222 | 0 | 0.222222 | 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 |
ea129f71958efe400819b99790ca8647344b53d4 | 79 | py | Python | Python/100Excersises/1 to 25/20/20.py | magusikrak/NAMI-TERM-I-GroupWork | f0a9a5f219ccbec024eb5316361db3fca46e171c | [
"MIT"
] | null | null | null | Python/100Excersises/1 to 25/20/20.py | magusikrak/NAMI-TERM-I-GroupWork | f0a9a5f219ccbec024eb5316361db3fca46e171c | [
"MIT"
] | 1 | 2021-07-24T03:18:30.000Z | 2021-07-24T12:45:07.000Z | Python/100Excersises/1 to 25/20/20.py | magusikrak/NAMI-TERM-I-GroupWork | f0a9a5f219ccbec024eb5316361db3fca46e171c | [
"MIT"
] | null | null | null | d = {"a": 1, "b": 2, "c": 3}
sum=0
for i in d:
sum+=d.get(i)
print(sum) | 15.8 | 28 | 0.43038 | 19 | 79 | 1.789474 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0.278481 | 79 | 5 | 29 | 15.8 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea1c8187e4029392c2c8231e46be8c40785b343e | 1,569 | py | Python | tracker/view/login.py | remyoudompheng/arch-security-tracker | 8451b618d74c9b322e163da5444452f25f0585cc | [
"MIT"
] | 80 | 2017-10-09T13:39:34.000Z | 2022-03-30T08:28:25.000Z | tracker/view/login.py | remyoudompheng/arch-security-tracker | 8451b618d74c9b322e163da5444452f25f0585cc | [
"MIT"
] | 103 | 2017-07-20T23:01:23.000Z | 2022-03-29T15:45:44.000Z | tracker/view/login.py | remyoudompheng/arch-security-tracker | 8451b618d74c9b322e163da5444452f25f0585cc | [
"MIT"
] | 28 | 2017-10-18T17:03:42.000Z | 2022-03-18T17:36:48.000Z | from flask import redirect
from flask import render_template
from flask import url_for
from flask_login import current_user
from flask_login import login_user
from flask_login import logout_user
from werkzeug.exceptions import Unauthorized
from config import TRACKER_PASSWORD_LENGTH_MAX
from config import TRACKER_PASSW... | 33.382979 | 97 | 0.686424 | 194 | 1,569 | 5.309278 | 0.257732 | 0.052427 | 0.081553 | 0.07767 | 0.349515 | 0.254369 | 0.182524 | 0.112621 | 0.112621 | 0.112621 | 0 | 0.002496 | 0.233907 | 1,569 | 46 | 98 | 34.108696 | 0.854409 | 0 | 0 | 0.105263 | 0 | 0 | 0.063735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.368421 | 0 | 0.552632 | 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 |
ea2d6e4cf6d53d4e6b4789505533ef39bfb4edf3 | 886 | py | Python | square.py | philliparaujo/roadblocks | 7977bb13a364d6185054df86f124049ff8aa0c70 | [
"MIT"
] | null | null | null | square.py | philliparaujo/roadblocks | 7977bb13a364d6185054df86f124049ff8aa0c70 | [
"MIT"
] | null | null | null | square.py | philliparaujo/roadblocks | 7977bb13a364d6185054df86f124049ff8aa0c70 | [
"MIT"
] | null | null | null | import pygame
class Square(pygame.Surface):
def __init__(self, x, y, width, height):
pygame.Surface.__init__(self, (width, height))
self.x = x
self.y = y
self.width = width
self.height = height
self.color = (255, 255, 255)
self.fill(self.color)
def cha... | 21.095238 | 54 | 0.562077 | 123 | 886 | 3.910569 | 0.219512 | 0.06237 | 0.116424 | 0.079002 | 0.282744 | 0.282744 | 0 | 0 | 0 | 0 | 0 | 0.015 | 0.322799 | 886 | 41 | 55 | 21.609756 | 0.786667 | 0.023702 | 0 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0.034483 | 0.137931 | 0.517241 | 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 |
ea417c7e1c33bbd46659b0840318f805e4412b62 | 4,732 | py | Python | src/cloudmappings/storageproviders/storageprovider.py | JJ11teen/cloud-mappings | 9c18cc5dc49489b4085950a0d24ce68e2b206ea8 | [
"MIT"
] | 8 | 2021-05-17T08:03:03.000Z | 2021-07-06T11:46:25.000Z | src/cloudmappings/storageproviders/storageprovider.py | JJ11teen/cloud-mappings | 9c18cc5dc49489b4085950a0d24ce68e2b206ea8 | [
"MIT"
] | null | null | null | src/cloudmappings/storageproviders/storageprovider.py | JJ11teen/cloud-mappings | 9c18cc5dc49489b4085950a0d24ce68e2b206ea8 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Dict
from urllib.parse import quote, unquote
from ..errors import KeySyncError, ValueSizeError
class StorageProvider(ABC):
def raise_key_sync_error(self, key: str, etag: str, inner_exception: Exception = None):
raise KeySyncError(storage_provider_nam... | 31.758389 | 110 | 0.611792 | 596 | 4,732 | 4.798658 | 0.258389 | 0.036364 | 0.031469 | 0.026224 | 0.317483 | 0.244056 | 0.179371 | 0.179371 | 0.151399 | 0.151399 | 0 | 0.000623 | 0.321851 | 4,732 | 148 | 111 | 31.972973 | 0.89062 | 0.568681 | 0 | 0.387097 | 0 | 0 | 0.00885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0.193548 | 0.129032 | 0.064516 | 0.548387 | 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 |
ea4a90f753db86aeea69808a62a020da76b5651c | 6,115 | py | Python | workbench/clients/pe_sim_graph.py | Ayub-Khan/workbench | 710232756dd717f734253315e3d0b33c9628dafb | [
"MIT"
] | 61 | 2015-01-04T01:23:49.000Z | 2021-06-22T14:41:10.000Z | workbench/clients/pe_sim_graph.py | Ayub-Khan/workbench | 710232756dd717f734253315e3d0b33c9628dafb | [
"MIT"
] | 3 | 2015-01-02T23:26:59.000Z | 2015-01-03T19:28:36.000Z | workbench/clients/pe_sim_graph.py | Ayub-Khan/workbench | 710232756dd717f734253315e3d0b33c9628dafb | [
"MIT"
] | 17 | 2015-08-25T23:57:22.000Z | 2020-05-30T02:36:05.000Z | """This client generates a similarity graph from features in PE Files."""
import zerorpc
import os
import client_helper
def add_it(workbench, file_list, labels):
"""Add the given file_list to workbench as samples, also add them as nodes.
Args:
workbench: Instance of Workbench Client.
file_lis... | 37.060606 | 118 | 0.66296 | 848 | 6,115 | 4.595519 | 0.225236 | 0.030536 | 0.01283 | 0.015396 | 0.368745 | 0.309469 | 0.297665 | 0.253015 | 0.253015 | 0.253015 | 0 | 0.013061 | 0.223712 | 6,115 | 164 | 119 | 37.286585 | 0.807879 | 0.184301 | 0 | 0.097222 | 1 | 0 | 0.140845 | 0.018227 | 0 | 0 | 0 | 0.012195 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.013889 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea5236810dd69c84375c3fe96b7d00d33aab2398 | 504 | py | Python | neuralpy/layers/__init__.py | dragon00417/Flask-Smart-API | 828a2198ae58ed1cb8902b8f333218bcd466d2c6 | [
"MIT"
] | null | null | null | neuralpy/layers/__init__.py | dragon00417/Flask-Smart-API | 828a2198ae58ed1cb8902b8f333218bcd466d2c6 | [
"MIT"
] | null | null | null | neuralpy/layers/__init__.py | dragon00417/Flask-Smart-API | 828a2198ae58ed1cb8902b8f333218bcd466d2c6 | [
"MIT"
] | null | null | null | """Layers are the building blocks of a Neural Network.
A complete Neural Network model consists of several layers.
A Layer is a function that receives a tensor as output,
computes something out of it, and finally outputs a tensor.
NeuralPy currently supports only one type of Layer and
that is the Dense layer.
"""
fro... | 29.647059 | 59 | 0.795635 | 81 | 504 | 4.950617 | 0.530864 | 0.064838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.166667 | 504 | 16 | 60 | 31.5 | 0.940476 | 0.611111 | 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 |
ea559d7d207734e791f0ae627f2e7e7cd6c672f1 | 791 | py | Python | rogue/features/translations.py | SekouDiaoNlp/silver-rogue-df | 6b3f4d014084eb780f79e9eae8ae22553cf3d8ca | [
"MIT"
] | 1 | 2020-10-03T15:12:48.000Z | 2020-10-03T15:12:48.000Z | rogue/features/translations.py | SekouDiaoNlp/silver-rogue-df | 6b3f4d014084eb780f79e9eae8ae22553cf3d8ca | [
"MIT"
] | null | null | null | rogue/features/translations.py | SekouDiaoNlp/silver-rogue-df | 6b3f4d014084eb780f79e9eae8ae22553cf3d8ca | [
"MIT"
] | 1 | 2020-09-22T12:45:51.000Z | 2020-09-22T12:45:51.000Z | # This might be reinventing the wheel
# I don't care
from yaml import load
class TranslationFeature:
def _(self, name):
curr = self.curr_locales
for i in name.split('.'):
try:
curr = curr[i]
except KeyError:
return i
return curr
d... | 29.296296 | 75 | 0.576485 | 103 | 791 | 4.339806 | 0.524272 | 0.026846 | 0.040268 | 0.03132 | 0.067114 | 0.067114 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328698 | 791 | 26 | 76 | 30.423077 | 0.841808 | 0.207332 | 0 | 0 | 0 | 0 | 0.03537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.105263 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ea5f2aa85bd6068731a58540cadbec27cc02dae3 | 1,854 | py | Python | home/migrations/0001_initial.py | enessfk/TheHouseSteak | 21ee01bb1e028dec7d840beb9255191f6b5f4a7e | [
"MIT"
] | 1 | 2021-08-20T14:51:37.000Z | 2021-08-20T14:51:37.000Z | home/migrations/0001_initial.py | enessfk/TheHouseSteak | 21ee01bb1e028dec7d840beb9255191f6b5f4a7e | [
"MIT"
] | 2 | 2021-08-20T14:55:50.000Z | 2021-08-23T22:09:45.000Z | home/migrations/0001_initial.py | enessfk/TheHouseSteak | 21ee01bb1e028dec7d840beb9255191f6b5f4a7e | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-30 16:49
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Setting',
fields=[
('id', models.AutoField(... | 44.142857 | 114 | 0.563646 | 185 | 1,854 | 5.513514 | 0.432432 | 0.235294 | 0.176471 | 0.235294 | 0.42451 | 0.165686 | 0.068627 | 0 | 0 | 0 | 0 | 0.036677 | 0.279396 | 1,854 | 41 | 115 | 45.219512 | 0.726796 | 0.024272 | 0 | 0 | 1 | 0 | 0.106807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.029412 | 0.029412 | 0 | 0.147059 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea79c46c7895a32c04af3f44f238d771e97b931a | 810 | py | Python | tradeiobot/db/__init__.py | hcv57/tradeio-bot | a4c9f96a104e20ca0618d8d787cfef3599c8ebb7 | [
"MIT"
] | 2 | 2018-10-28T18:47:02.000Z | 2019-10-09T14:52:04.000Z | tradeiobot/db/__init__.py | hcv57/tradeio-bot | a4c9f96a104e20ca0618d8d787cfef3599c8ebb7 | [
"MIT"
] | null | null | null | tradeiobot/db/__init__.py | hcv57/tradeio-bot | a4c9f96a104e20ca0618d8d787cfef3599c8ebb7 | [
"MIT"
] | null | null | null | from functools import partial
from tradeiobot.db.stores import memory, sqlite
from tradeiobot.db.stores.abstractstore import AbstractStore
def connect(drivers=[]):
class Connection(object):
def __init__(self, stores):
self.stores = stores or [memory, sqlite]
assert all(lambda s: ... | 26.129032 | 83 | 0.623457 | 86 | 810 | 5.662791 | 0.465116 | 0.082136 | 0.065708 | 0.090349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292593 | 810 | 31 | 84 | 26.129032 | 0.849913 | 0 | 0 | 0 | 0 | 0 | 0.007398 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.210526 | false | 0.052632 | 0.157895 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ea8b238e731956ebc389ec1b54f4e99eb3a82059 | 431 | py | Python | NST_Hotbox/W_hotbox/Single/ColorCopy/001.py | CreativeLyons/NST_Hotbox | 48d23a651d9578a70b16bcc2c034de4b3586883f | [
"MIT"
] | null | null | null | NST_Hotbox/W_hotbox/Single/ColorCopy/001.py | CreativeLyons/NST_Hotbox | 48d23a651d9578a70b16bcc2c034de4b3586883f | [
"MIT"
] | null | null | null | NST_Hotbox/W_hotbox/Single/ColorCopy/001.py | CreativeLyons/NST_Hotbox | 48d23a651d9578a70b16bcc2c034de4b3586883f | [
"MIT"
] | null | null | null | #----------------------------------------------------------------------------------------------------------
#
# AUTOMATICALLY GENERATED FILE TO BE USED BY W_HOTBOX
#
# NAME: Copy Hue/Sat
#
#----------------------------------------------------------------------------------------------------------
ns = nuke.selectedNode... | 30.785714 | 107 | 0.324826 | 35 | 431 | 3.971429 | 0.685714 | 0.107914 | 0.143885 | 0.201439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.095128 | 431 | 13 | 108 | 33.153846 | 0.348718 | 0.656613 | 0 | 0 | 1 | 0 | 0.092199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea8bbe1aa436956374dc7f164b630653fa7a9db2 | 72 | py | Python | templates/python/payloads/code.py | ohoph/Ebowla | 9f1a45a70abbd0a02bfe9614f298b98e98697b1b | [
"BSD-3-Clause"
] | 738 | 2016-04-08T15:26:43.000Z | 2022-03-28T20:49:08.000Z | templates/python/payloads/code.py | iNoSec/Ebowla_modified | 0079ec86c9c9c167166beda1922bd26114f6addb | [
"BSD-3-Clause"
] | 28 | 2016-04-09T22:37:41.000Z | 2019-01-28T10:44:46.000Z | templates/python/payloads/code.py | iNoSec/Ebowla_modified | 0079ec86c9c9c167166beda1922bd26114f6addb | [
"BSD-3-Clause"
] | 179 | 2016-04-08T16:00:11.000Z | 2022-02-17T11:39:02.000Z | loader="""
d = dict(locals(), **globals())
exec(self.payload, d, d)
"""
| 14.4 | 31 | 0.569444 | 10 | 72 | 4.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 72 | 4 | 32 | 18 | 0.650794 | 0 | 0 | 0 | 0 | 0 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5763dcea9c2fe8e451ae6f3f333424c1c772e72b | 1,697 | py | Python | telemetry/telemetry/project_config.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | 4 | 2017-12-29T03:17:40.000Z | 2021-07-04T03:28:11.000Z | telemetry/telemetry/project_config.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | 9 | 2017-09-10T19:49:04.000Z | 2018-04-14T04:39:55.000Z | telemetry/telemetry/project_config.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | 6 | 2017-12-05T07:15:08.000Z | 2021-07-04T03:28:13.000Z | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class ProjectConfig(object):
"""Contains information about the benchmark runtime environment.
Attributes:
top_level_dir: A dir that contains benchm... | 32.634615 | 78 | 0.74779 | 233 | 1,697 | 5.193133 | 0.412017 | 0.075207 | 0.054545 | 0.03719 | 0.084298 | 0.084298 | 0.084298 | 0.084298 | 0.084298 | 0 | 0 | 0.002937 | 0.197407 | 1,697 | 51 | 79 | 33.27451 | 0.885463 | 0.457278 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0 | 0.222222 | 0.518519 | 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 |
576746a42b0e7f792a287643565d88c47d6bdfb3 | 756 | py | Python | django_tennis/apps/users/api/serializers.py | Sixbroam/django-tennis | 3c878a4f0cf97d14f8a8e21df3fde5ec32184711 | [
"BSD-3-Clause"
] | null | null | null | django_tennis/apps/users/api/serializers.py | Sixbroam/django-tennis | 3c878a4f0cf97d14f8a8e21df3fde5ec32184711 | [
"BSD-3-Clause"
] | null | null | null | django_tennis/apps/users/api/serializers.py | Sixbroam/django-tennis | 3c878a4f0cf97d14f8a8e21df3fde5ec32184711 | [
"BSD-3-Clause"
] | null | null | null | from ..models import *
from django.contrib.auth.models import User, Group
from rest_framework import serializers
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ('url', 'username', 'email', 'groups')
class GroupSerializer(serializers.HyperlinkedMod... | 26.068966 | 63 | 0.674603 | 68 | 756 | 7.485294 | 0.397059 | 0.290766 | 0.11002 | 0.27112 | 0.485265 | 0.129666 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21164 | 756 | 29 | 64 | 26.068966 | 0.854027 | 0.125661 | 0 | 0.222222 | 0 | 0 | 0.044006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
577b9ac9a37dcf4b96f010b8c4b08acd4434f622 | 192 | py | Python | Cursos/basic_python/Ejercicio2.py | ArmandoCarrillo91/Platzi | e4dca01c36c8569bd0e5b6537c9c688c841e54a3 | [
"Apache-2.0"
] | null | null | null | Cursos/basic_python/Ejercicio2.py | ArmandoCarrillo91/Platzi | e4dca01c36c8569bd0e5b6537c9c688c841e54a3 | [
"Apache-2.0"
] | null | null | null | Cursos/basic_python/Ejercicio2.py | ArmandoCarrillo91/Platzi | e4dca01c36c8569bd0e5b6537c9c688c841e54a3 | [
"Apache-2.0"
] | null | null | null | dolares = input('Cuantos dolares tienes?: ')
dolares = float(dolares)
valor_dolar = 0.045
peso = dolares / valor_dolar
peso = round(peso,2)
peso = str(peso)
print('Tienes $' + peso + ' Pesos') | 27.428571 | 44 | 0.692708 | 27 | 192 | 4.851852 | 0.555556 | 0.183206 | 0.259542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030675 | 0.151042 | 192 | 7 | 45 | 27.428571 | 0.773006 | 0 | 0 | 0 | 0 | 0 | 0.202073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
578e8275a4d23c942d374808c567260c0b16ef36 | 86 | py | Python | canteenWeb/__init__.py | Atharva1111/canteen-automation-web | 85eabde9f56179da3cc98797fdb7192b79bc5b19 | [
"MIT"
] | null | null | null | canteenWeb/__init__.py | Atharva1111/canteen-automation-web | 85eabde9f56179da3cc98797fdb7192b79bc5b19 | [
"MIT"
] | null | null | null | canteenWeb/__init__.py | Atharva1111/canteen-automation-web | 85eabde9f56179da3cc98797fdb7192b79bc5b19 | [
"MIT"
] | null | null | null | # SETS THE APPLICATION CONFIG
default_app_config = "canteenWeb.apps.CanteenwebConfig"
| 28.666667 | 55 | 0.837209 | 10 | 86 | 7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 86 | 2 | 56 | 43 | 0.897436 | 0.313953 | 0 | 0 | 0 | 0 | 0.561404 | 0.561404 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57b4f78c3ff7ed8ad56bbcc2e9ad85cf92e6addc | 29 | py | Python | python/control_c.py | rec/test | aea76bb8e7c4da8c8e3db2f371651ec6db007400 | [
"MIT"
] | 2 | 2019-05-26T15:09:34.000Z | 2021-09-12T08:01:23.000Z | python/control_c.py | rec/test | aea76bb8e7c4da8c8e3db2f371651ec6db007400 | [
"MIT"
] | null | null | null | python/control_c.py | rec/test | aea76bb8e7c4da8c8e3db2f371651ec6db007400 | [
"MIT"
] | 1 | 2021-04-11T20:28:21.000Z | 2021-04-11T20:28:21.000Z | i = 0
while True:
i += 1
| 7.25 | 11 | 0.448276 | 6 | 29 | 2.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.413793 | 29 | 3 | 12 | 9.666667 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57d1da70a1c6b7687f111cd8a8d6ee5d7fc7442b | 59 | py | Python | pwmcontrol/__init__.py | barry-ran/raspberry-webcam | c2ef7fdefe569fc627b244e5c66ddfc0a98aa0f4 | [
"MIT"
] | 87 | 2020-02-15T03:48:56.000Z | 2022-03-19T12:24:10.000Z | pwmcontrol/__init__.py | naives/raspberry-webcam | c2ef7fdefe569fc627b244e5c66ddfc0a98aa0f4 | [
"MIT"
] | 1 | 2020-08-26T03:19:55.000Z | 2021-07-29T03:32:38.000Z | pwmcontrol/__init__.py | naives/raspberry-webcam | c2ef7fdefe569fc627b244e5c66ddfc0a98aa0f4 | [
"MIT"
] | 10 | 2020-04-02T14:37:20.000Z | 2022-01-26T21:39:30.000Z | __all__ = ['pwmcontrol']
from pwmcontrol import pwmcontrol | 19.666667 | 33 | 0.79661 | 6 | 59 | 7.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 59 | 3 | 33 | 19.666667 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 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 |
57d3c5c46b4679c35e73f3a1491cb8196c424360 | 106 | py | Python | cloudmesh/sbatch/__init__.py | cloudmesh/cloudmesh-sbatch | a42fa2463711c2ee520dd58e4e24c30016d13b30 | [
"Apache-2.0"
] | 1 | 2022-03-14T18:20:21.000Z | 2022-03-14T18:20:21.000Z | cloudmesh/sbatch/__init__.py | cloudmesh/cloudmesh-sbatch | a42fa2463711c2ee520dd58e4e24c30016d13b30 | [
"Apache-2.0"
] | null | null | null | cloudmesh/sbatch/__init__.py | cloudmesh/cloudmesh-sbatch | a42fa2463711c2ee520dd58e4e24c30016d13b30 | [
"Apache-2.0"
] | 2 | 2022-03-12T02:50:50.000Z | 2022-03-14T03:56:54.000Z | "Management of custom batch script for experiments while exploring parameter sets."
__version__ = "4.3.4"
| 35.333333 | 83 | 0.792453 | 15 | 106 | 5.333333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.132075 | 106 | 2 | 84 | 53 | 0.836957 | 0.764151 | 0 | 0 | 0 | 0 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57d76a46c45fc6b09f990ce038a3b2eda1392805 | 534 | py | Python | sbca_wrapper/__init__.py | swisscom-blockchain/sbca-indy-wrapper | f08f12950929e502705e8dd13c67ab1fa19d3fe9 | [
"Apache-2.0"
] | 5 | 2019-04-02T13:33:02.000Z | 2020-01-26T00:08:26.000Z | sbca_wrapper/__init__.py | swisscom-blockchain/sbca-indy-wrapper | f08f12950929e502705e8dd13c67ab1fa19d3fe9 | [
"Apache-2.0"
] | 2 | 2019-04-02T13:42:18.000Z | 2019-06-03T12:18:07.000Z | sbca_wrapper/__init__.py | swisscom-blockchain/sbca-indy-wrapper | f08f12950929e502705e8dd13c67ab1fa19d3fe9 | [
"Apache-2.0"
] | 2 | 2019-09-17T12:56:47.000Z | 2020-06-26T21:13:21.000Z | # Libindy
# Anoncreds
from ._commands.anoncreds import Anoncreds
# Blob Storage
from ._commands.blob_storage import BlobStorage
# Crypto
from ._commands.crypto import Crypto
# DID
from ._commands.did import DID
# Ledger
from ._commands.ledger import Ledger
# Non-Secrets
from ._commands.non_secrets import NonSecrets
# P... | 23.217391 | 47 | 0.812734 | 69 | 534 | 6.101449 | 0.26087 | 0.285036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125468 | 534 | 22 | 48 | 24.272727 | 0.901499 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
57d7dc8bfc7bd119515f48d35915409f75da40f0 | 2,358 | py | Python | organisation/migrations/0009_auto_20211027_1341.py | dbca-wa/it-assets | 7c97468f32cad57cdd935639ce2482cc40e4f21e | [
"Apache-2.0"
] | 4 | 2018-11-16T13:49:49.000Z | 2021-08-19T05:16:50.000Z | organisation/migrations/0009_auto_20211027_1341.py | ropable/it-assets | 6ca61b2b90d7ee0d60921d8ed90a0844bf6f6176 | [
"Apache-2.0"
] | 10 | 2018-07-06T09:34:56.000Z | 2022-01-28T06:09:05.000Z | organisation/migrations/0009_auto_20211027_1341.py | ropable/it-assets | 6ca61b2b90d7ee0d60921d8ed90a0844bf6f6176 | [
"Apache-2.0"
] | 9 | 2018-05-05T23:29:10.000Z | 2020-06-26T02:29:17.000Z | # Generated by Django 2.2.24 on 2021-10-27 05:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('organisation', '0008_auto_20211014_0955'),
]
operations = [
migrations.AlterField(
model_name=... | 47.16 | 250 | 0.665394 | 259 | 2,358 | 5.891892 | 0.247104 | 0.047182 | 0.073395 | 0.115334 | 0.729358 | 0.729358 | 0.70118 | 0.57405 | 0.475754 | 0.475754 | 0 | 0.017186 | 0.210348 | 2,358 | 49 | 251 | 48.122449 | 0.802363 | 0.019508 | 0 | 0.511628 | 1 | 0 | 0.222078 | 0.091775 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
57de5bfa77a8d315948f89554c0034dd6265a6db | 261 | py | Python | problems/string-to-integer-atoi/solution-1.py | MleMoe/LeetCode-1 | 14f275ba3c8079b820808da17c4952fcf9c8253c | [
"MIT"
] | 2 | 2021-03-25T01:58:55.000Z | 2021-08-06T12:47:13.000Z | problems/string-to-integer-atoi/solution-1.py | MleMoe/LeetCode-1 | 14f275ba3c8079b820808da17c4952fcf9c8253c | [
"MIT"
] | 3 | 2019-08-27T13:25:42.000Z | 2021-08-28T17:49:34.000Z | problems/string-to-integer-atoi/solution-1.py | MleMoe/LeetCode-1 | 14f275ba3c8079b820808da17c4952fcf9c8253c | [
"MIT"
] | 1 | 2021-08-14T08:49:39.000Z | 2021-08-14T08:49:39.000Z | import re
class Solution:
def myAtoi(self, str: str) -> int:
return max(min(int(*re.findall(r'^[\+\-]?\d+', str.lstrip())), 2**31 - 1), -2**31)
# ^:匹配字符串开头
# [\+\-]:代表一个+字符或-字符
# ?:前面一个字符可有可无
# \d:一个数字
# +:前面一个字符的一个或多个
# \D:一个非数字字符
# *:前面一个字符的0个或多个 | 21.75 | 90 | 0.56705 | 36 | 261 | 4.111111 | 0.777778 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.164751 | 261 | 12 | 91 | 21.75 | 0.642202 | 0.344828 | 0 | 0 | 0 | 0 | 0.067073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
57e2098dfc76b4572918940feec7344dc661dca3 | 154 | py | Python | db/__init__.py | ubclaunchpad/rocket2 | 7a4f05f46229d1c9a900aac1694b3d822f9d6b0f | [
"MIT"
] | 14 | 2019-01-20T21:54:36.000Z | 2021-10-09T21:06:23.000Z | db/__init__.py | ubclaunchpad/rocket2 | 7a4f05f46229d1c9a900aac1694b3d822f9d6b0f | [
"MIT"
] | 510 | 2018-11-18T20:07:51.000Z | 2022-02-01T15:34:03.000Z | db/__init__.py | ubclaunchpad/rocket2.0 | 7a4f05f46229d1c9a900aac1694b3d822f9d6b0f | [
"MIT"
] | 9 | 2019-08-20T16:57:21.000Z | 2021-05-04T12:51:47.000Z | """Pack the modules contained in the db directory."""
import db.dynamodb as ddb
import db.facade as dbf
DynamoDB = ddb.DynamoDB
DBFacade = dbf.DBFacade
| 19.25 | 53 | 0.75974 | 24 | 154 | 4.875 | 0.583333 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 154 | 7 | 54 | 22 | 0.9 | 0.305195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
57e59642aaac1a049c73fb0fc1dc7af0c2c46cf6 | 28,001 | py | Python | tests/test_types.py | JarryShaw/zlogging | f5c2bec37bc68d295cd4d9557b13d96f20a21b71 | [
"BSD-3-Clause"
] | null | null | null | tests/test_types.py | JarryShaw/zlogging | f5c2bec37bc68d295cd4d9557b13d96f20a21b71 | [
"BSD-3-Clause"
] | 3 | 2021-03-01T17:03:05.000Z | 2021-07-19T17:11:34.000Z | tests/test_types.py | JarryShaw/zlogging | f5c2bec37bc68d295cd4d9557b13d96f20a21b71 | [
"BSD-3-Clause"
] | 1 | 2020-05-22T15:16:44.000Z | 2020-05-22T15:16:44.000Z | # -*- coding: utf-8 -*-
# pylint: disable=all
# type: ignore
import sys
from ctypes import c_int64, c_uint16, c_uint64
from datetime import datetime, timedelta
from decimal import Decimal, localcontext
from ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network
from typing import TYPE_CHECKING, Any, List,... | 33.020047 | 122 | 0.56998 | 3,043 | 28,001 | 5.126849 | 0.066382 | 0.069803 | 0.043587 | 0.039228 | 0.806615 | 0.7654 | 0.684572 | 0.664509 | 0.643356 | 0.638869 | 0 | 0.028931 | 0.292668 | 28,001 | 847 | 123 | 33.059032 | 0.75876 | 0.004286 | 0 | 0.588855 | 0 | 0 | 0.107858 | 0.000969 | 0 | 0 | 0 | 0 | 0.158133 | 1 | 0.182229 | false | 0 | 0.02259 | 0.031627 | 0.287651 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57e69cdfb0f4913c777359251f7d3c97bd721bc6 | 862 | py | Python | zkay/utils/progress_printer.py | nibau/zkay | da04760088767e05214aac2d2beee4cbf8ed77f6 | [
"MIT"
] | null | null | null | zkay/utils/progress_printer.py | nibau/zkay | da04760088767e05214aac2d2beee4cbf8ed77f6 | [
"MIT"
] | null | null | null | zkay/utils/progress_printer.py | nibau/zkay | da04760088767e05214aac2d2beee4cbf8ed77f6 | [
"MIT"
] | null | null | null | import contextlib
from enum import Enum
from typing import ContextManager
from zkay.config import zk_print
@contextlib.contextmanager
def print_step(name):
zk_print(f'{name}... ', end='', flush=True)
yield
zk_print('done')
class TermColor(Enum):
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGRE... | 20.046512 | 54 | 0.682135 | 105 | 862 | 5.495238 | 0.419048 | 0.083189 | 0.129983 | 0.166378 | 0.239168 | 0.239168 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.184455 | 862 | 42 | 55 | 20.52381 | 0.768137 | 0 | 0 | 0.137931 | 0 | 0 | 0.087007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.137931 | 0.103448 | 0.724138 | 0.448276 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 3 |
57e997ce5e6a14487a0ab7986492f07f6c958368 | 307 | py | Python | discovery-infra/test_infra/controllers/node_controllers/__init__.py | trewest/assisted-test-infra | b3a93f1ad85f2fbe35d1c691796b598dde2a82bc | [
"Apache-2.0"
] | 27 | 2020-06-26T13:38:14.000Z | 2022-03-13T11:06:34.000Z | discovery-infra/test_infra/controllers/node_controllers/__init__.py | trewest/assisted-test-infra | b3a93f1ad85f2fbe35d1c691796b598dde2a82bc | [
"Apache-2.0"
] | 1,559 | 2020-06-27T15:36:37.000Z | 2022-03-31T22:58:50.000Z | discovery-infra/test_infra/controllers/node_controllers/__init__.py | trewest/assisted-test-infra | b3a93f1ad85f2fbe35d1c691796b598dde2a82bc | [
"Apache-2.0"
] | 83 | 2020-06-26T09:24:43.000Z | 2022-03-08T23:19:59.000Z | from .terraform_controller import TerraformController
from .node_controller import NodeController
from .vsphere_controller import VSphereController
from .disk import Disk
from .node import Node
__all__ = [
"TerraformController",
"NodeController",
"VSphereController",
"Disk",
"Node"
]
| 20.466667 | 53 | 0.762215 | 29 | 307 | 7.827586 | 0.37931 | 0.211454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166124 | 307 | 14 | 54 | 21.928571 | 0.886719 | 0 | 0 | 0 | 0 | 0 | 0.188925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
57ea800c062daa7c79b8337a33c4cd833183acd4 | 153 | py | Python | resources/pytest_example/factorial.py | Python4AstronomersAndParticlePhysicists/PythonWorkshop-ICE | f1de2c85fd2d73c6f111987dd201a8ec09c1d4bc | [
"MIT"
] | 12 | 2017-07-10T13:31:50.000Z | 2021-08-01T16:07:39.000Z | resources/pytest_example/factorial.py | Python4AstronomersAndParticlePhysicists/PythonWorkshop-ICE | f1de2c85fd2d73c6f111987dd201a8ec09c1d4bc | [
"MIT"
] | 7 | 2017-06-29T12:48:20.000Z | 2017-09-18T08:53:07.000Z | resources/pytest_example/factorial.py | Python4AstronomersAndParticlePhysicists/PythonWorkshop-ICE | f1de2c85fd2d73c6f111987dd201a8ec09c1d4bc | [
"MIT"
] | 8 | 2017-09-19T08:13:09.000Z | 2021-01-22T15:50:36.000Z | def factorial(n):
"""Does this function work? Hint: no."""
n_fact = n
while n > 1:
n -= 1
n_fact *= n
return n_fact
| 17 | 44 | 0.48366 | 23 | 153 | 3.086957 | 0.565217 | 0.211268 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.392157 | 153 | 8 | 45 | 19.125 | 0.741935 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 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 |
17a7c7e1871e93a2d4280e784c3e984a7f124edb | 1,478 | py | Python | codefights/intro/isIPv4Address/test.py | Shawn-Ng/algorithms-test | 1ca740d288b9b3fee580f1ac557a1c1b17ea33b1 | [
"BSD-2-Clause"
] | null | null | null | codefights/intro/isIPv4Address/test.py | Shawn-Ng/algorithms-test | 1ca740d288b9b3fee580f1ac557a1c1b17ea33b1 | [
"BSD-2-Clause"
] | 1 | 2018-01-12T18:56:58.000Z | 2018-01-13T01:14:51.000Z | codefights/intro/isIPv4Address/test.py | Shawn-Ng/algorithms | 1ca740d288b9b3fee580f1ac557a1c1b17ea33b1 | [
"BSD-2-Clause"
] | null | null | null | def isIPv4Address(inputString):
# Method 1
if len(inputString.split(".")) != 4:
return False
for x in inputString.split("."):
if not x or not x.isnumeric() or (x.isnumeric() and int(x) > 255):
return False
return True
# # Method 2
# # Same as method 1, but with Pyt... | 25.929825 | 78 | 0.640054 | 192 | 1,478 | 4.921875 | 0.291667 | 0.304762 | 0.337566 | 0.42328 | 0.531217 | 0.380952 | 0.239153 | 0.093122 | 0 | 0 | 0 | 0.084327 | 0.205683 | 1,478 | 56 | 79 | 26.392857 | 0.720613 | 0.294317 | 0 | 0.448276 | 0 | 0 | 0.102262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0 | 0 | 0.137931 | 0.37931 | 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 |
17a97d5012d492408d0188b44c4a6b2166581bee | 1,322 | py | Python | sdk/python/pulumi_google_native/connectors/v1/_enums.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/connectors/v1/_enums.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/connectors/v1/_enums.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'AuditLogConfigLogType',
'AuthConfigAuthType',
]
class AuditLogConfigLogType(str, Enum):
"""
The l... | 24.036364 | 87 | 0.654312 | 146 | 1,322 | 5.732877 | 0.561644 | 0.071685 | 0.023895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008973 | 0.241301 | 1,322 | 54 | 88 | 24.481481 | 0.825523 | 0.181543 | 0 | 0 | 1 | 0 | 0.294434 | 0.120287 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.066667 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
17b129925fd6b1844aa50282fc1627525c8f8d0e | 1,549 | py | Python | fn_misp/setup.py | rudimeyer/resilient-community-apps | 7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00 | [
"MIT"
] | 1 | 2020-08-25T03:43:07.000Z | 2020-08-25T03:43:07.000Z | fn_misp/setup.py | rudimeyer/resilient-community-apps | 7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00 | [
"MIT"
] | 1 | 2019-07-08T16:57:48.000Z | 2019-07-08T16:57:48.000Z | fn_misp/setup.py | rudimeyer/resilient-community-apps | 7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='fn_misp',
version='1.0.0',
license='MIT',
author='Craig',
author_email='craig@resilientlab.co.uk',
url='resilientsystems.com',
description="Resilient Circuits Components for 'fn_misp'",
... | 41.864865 | 112 | 0.710781 | 149 | 1,549 | 7.154362 | 0.496644 | 0.061914 | 0.075047 | 0.093809 | 0.161351 | 0.08818 | 0.08818 | 0 | 0 | 0 | 0 | 0.007806 | 0.173015 | 1,549 | 37 | 113 | 41.864865 | 0.824356 | 0.027114 | 0 | 0.090909 | 0 | 0 | 0.63745 | 0.490704 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.030303 | 0 | 0.030303 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
17caa396b2e59888f087e3b26f817fa4da45558e | 735 | py | Python | src/nr/util/functional/_coalesce.py | NiklasRosenstein/python-nr.util | 087f2410d38006c1005a5fb330c47a56bcdb2279 | [
"MIT"
] | null | null | null | src/nr/util/functional/_coalesce.py | NiklasRosenstein/python-nr.util | 087f2410d38006c1005a5fb330c47a56bcdb2279 | [
"MIT"
] | 3 | 2022-02-16T13:17:28.000Z | 2022-03-14T15:28:41.000Z | src/nr/util/functional/_coalesce.py | NiklasRosenstein/python-nr.util | 087f2410d38006c1005a5fb330c47a56bcdb2279 | [
"MIT"
] | null | null | null |
import typing as t
from nr.util.generic import T
@t.overload
def coalesce(value: t.Optional[T], fallback: T) -> T: ...
@t.overload
def coalesce(value: t.Optional[T], *values: t.Optional[T]) -> t.Optional[T]: ...
@t.overload
def coalesce(value: t.Optional[T], *values: t.Optional[T], fallback: T) -> T: ...
def coa... | 24.5 | 109 | 0.668027 | 123 | 735 | 3.99187 | 0.276423 | 0.183299 | 0.203666 | 0.138493 | 0.537678 | 0.537678 | 0.517312 | 0.407332 | 0.407332 | 0.334012 | 0 | 0 | 0.185034 | 735 | 29 | 110 | 25.344828 | 0.8197 | 0.182313 | 0 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
17df9953f2d516c9f8ec0c08619f590b63a06f09 | 959 | py | Python | dolfyn/__init__.py | jmcvey3/dolfyn | 5a30196b19356e7b161ec85c9b662a728c9b2cef | [
"BSD-3-Clause"
] | null | null | null | dolfyn/__init__.py | jmcvey3/dolfyn | 5a30196b19356e7b161ec85c9b662a728c9b2cef | [
"BSD-3-Clause"
] | null | null | null | dolfyn/__init__.py | jmcvey3/dolfyn | 5a30196b19356e7b161ec85c9b662a728c9b2cef | [
"BSD-3-Clause"
] | null | null | null | """
This is the Doppler Oceanography Library for pYthoN (DOLfYN). It is
designed to read and work with oceanographyic velocity measurements
from Acoustic Doppler Current Profilers (ADPs/ADCPs) and Acoustic Doppler
Velocimeters (ADVs). It is a high-level object-oriented library
composed of a set of data-object classes (... | 39.958333 | 94 | 0.823775 | 140 | 959 | 5.55 | 0.55 | 0.07722 | 0.123552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.134515 | 959 | 23 | 95 | 41.695652 | 0.93012 | 0.523462 | 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 |
aa16d106b31502d47a234a46c5f68a25d72c9bb8 | 276 | py | Python | server/control_sedes/organizations/serializer.py | gabrielbarragan/django_app_gestion | 1f419c8394879335756a848e4a6f49fd05a02349 | [
"MIT"
] | null | null | null | server/control_sedes/organizations/serializer.py | gabrielbarragan/django_app_gestion | 1f419c8394879335756a848e4a6f49fd05a02349 | [
"MIT"
] | null | null | null | server/control_sedes/organizations/serializer.py | gabrielbarragan/django_app_gestion | 1f419c8394879335756a848e4a6f49fd05a02349 | [
"MIT"
] | null | null | null | from rest_framework import serializers
#my models
from organizations.models import Organization
class OrganizationSerializer(serializers.ModelSerializer):
"""Serializers for Organizations views"""
class Meta:
model = Organization
fields = '__all__'
| 23 | 58 | 0.753623 | 26 | 276 | 7.807692 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184783 | 276 | 11 | 59 | 25.090909 | 0.902222 | 0.163043 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
aa1c7f947e5af5c93e91cca66083581a5116906b | 249 | py | Python | models/indices.py | fdaines/elasticsearch-watcher | 1b6aa698b7438d0f8f1de8726ef476165006bdd1 | [
"MIT"
] | 1 | 2022-01-26T13:50:54.000Z | 2022-01-26T13:50:54.000Z | models/indices.py | fdaines/elasticsearch-watcher | 1b6aa698b7438d0f8f1de8726ef476165006bdd1 | [
"MIT"
] | null | null | null | models/indices.py | fdaines/elasticsearch-watcher | 1b6aa698b7438d0f8f1de8726ef476165006bdd1 | [
"MIT"
] | null | null | null | REQUEST_CACHE_LIMIT = 200*1024*1024
QUERY_CACHE_LIMIT = 200*1024*1024
class index:
def __init__(self, name, request_cache, query_cache):
self.name = name
self.request_cache = request_cache
self.query_cache = query_cache
| 27.666667 | 57 | 0.718876 | 35 | 249 | 4.714286 | 0.342857 | 0.290909 | 0.157576 | 0.206061 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.204819 | 249 | 8 | 58 | 31.125 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aa32c3b4111e3a359471a38ba0342738a0f37205 | 201 | py | Python | fsdet/modeling/roi_heads/__init__.py | chouxianyu/TFA | 8802aeb66fbc3a5081fa3dfb2830ca517718afe1 | [
"Apache-2.0"
] | 769 | 2020-03-16T13:17:07.000Z | 2022-03-31T00:42:56.000Z | fsdet/modeling/roi_heads/__init__.py | chouxianyu/TFA | 8802aeb66fbc3a5081fa3dfb2830ca517718afe1 | [
"Apache-2.0"
] | 162 | 2020-03-16T09:29:08.000Z | 2022-03-23T07:23:03.000Z | fsdet/modeling/roi_heads/__init__.py | chouxianyu/TFA | 8802aeb66fbc3a5081fa3dfb2830ca517718afe1 | [
"Apache-2.0"
] | 170 | 2020-03-17T06:14:51.000Z | 2022-03-16T08:00:46.000Z | from .box_head import ROI_BOX_HEAD_REGISTRY, build_box_head
from .roi_heads import (
ROI_HEADS_REGISTRY,
ROIHeads,
StandardROIHeads,
build_roi_heads,
select_foreground_proposals,
)
| 22.333333 | 59 | 0.776119 | 26 | 201 | 5.5 | 0.5 | 0.146853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174129 | 201 | 8 | 60 | 25.125 | 0.861446 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aa3b745033f0c9bee16fe4d4bf2e57ca2f1f4a7c | 1,084 | py | Python | examples/web_framework/TurboGears2/tg2movie/controllers/root.py | rch/pyke-1.1.1 | e399b06f0c655eb6baafebaed09b4eb8f9c44b82 | [
"MIT"
] | 76 | 2015-04-20T12:10:25.000Z | 2021-11-27T20:26:27.000Z | examples/web_framework/TurboGears2/tg2movie/controllers/root.py | w-simon/pyke | cfe95d8aaa06de123264f9b7f5bea20eb5924ecd | [
"MIT"
] | 2 | 2016-03-09T14:33:27.000Z | 2018-10-22T11:25:49.000Z | examples/web_framework/TurboGears2/tg2movie/controllers/root.py | w-simon/pyke | cfe95d8aaa06de123264f9b7f5bea20eb5924ecd | [
"MIT"
] | 42 | 2015-03-16T13:11:30.000Z | 2022-02-12T14:45:48.000Z | """Main Controller"""
from tg2movie.lib.base import BaseController
from tg import expose, flash
from pylons.i18n import ugettext as _
#from tg import redirect, validate
#from tg2movie.model import DBSession, metadata
#from dbsprockets.dbmechanic.frameworks.tg2 import DBMechanic
#from dbsprockets.saprovider import SAPro... | 31.882353 | 85 | 0.719557 | 132 | 1,084 | 5.893939 | 0.348485 | 0.061697 | 0.118252 | 0.088689 | 0.215938 | 0.133676 | 0.133676 | 0.133676 | 0.133676 | 0.133676 | 0 | 0.016429 | 0.157749 | 1,084 | 33 | 86 | 32.848485 | 0.835706 | 0.230627 | 0 | 0 | 0 | 0 | 0.13017 | 0.118005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.263158 | 0.210526 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
aa46d78ecbf8a0a51d96048d07fb25771f22da78 | 746 | py | Python | smoke/data/transforms/transforms.py | SmallMunich/Smoke | 591a03bdb5cad962999914c9a97c7a8bed9e529b | [
"MIT"
] | 465 | 2020-03-03T09:25:16.000Z | 2022-03-30T09:34:34.000Z | smoke/data/transforms/transforms.py | SmallMunich/Smoke | 591a03bdb5cad962999914c9a97c7a8bed9e529b | [
"MIT"
] | 65 | 2020-03-13T12:45:29.000Z | 2022-03-28T08:09:21.000Z | smoke/data/transforms/transforms.py | SmallMunich/Smoke | 591a03bdb5cad962999914c9a97c7a8bed9e529b | [
"MIT"
] | 160 | 2020-03-04T06:09:17.000Z | 2022-03-30T02:31:38.000Z | import torch
from torchvision.transforms import functional as F
class Compose():
def __init__(self, transforms):
self.transforms = transforms
def __call__(self, image, target):
for t in self.transforms:
image, target = t(image, target)
return image, target
class ToTensor... | 24.064516 | 64 | 0.619303 | 97 | 746 | 4.505155 | 0.329897 | 0.201373 | 0.075515 | 0.10984 | 0.15103 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005576 | 0.27882 | 746 | 30 | 65 | 24.866667 | 0.806691 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0.045455 | 0.590909 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a4bdaa32a592b18c57436516d5138a66ecb3cb1e | 684 | py | Python | notebooks/functions/pop.py | davicn/covid19_predict | 4f0e67d58ea6d262ae48b515833f20918a40e019 | [
"MIT"
] | null | null | null | notebooks/functions/pop.py | davicn/covid19_predict | 4f0e67d58ea6d262ae48b515833f20918a40e019 | [
"MIT"
] | null | null | null | notebooks/functions/pop.py | davicn/covid19_predict | 4f0e67d58ea6d262ae48b515833f20918a40e019 | [
"MIT"
] | null | null | null | import numpy as np
#%% Projeção aritmética
def pa(t,p0,p2,t0,t2):
ka = (p2-p0)/(t2-t0)
return p0 + ka*(t-t0)
#%% Projeção geométrica
def pg(p0,p2,t,t0,t2):
kg = (np.log(p2)-np.log(p0))/(t2-t0)
return p0*np.exp(1)**(kg*(t-t0))
# %% Taxa decrescente de crescimento
def pt(p0,p1,p2,t,t0,t2):
ps =... | 23.586207 | 56 | 0.530702 | 144 | 684 | 2.520833 | 0.25 | 0.057851 | 0.066116 | 0.099174 | 0.30303 | 0.137741 | 0.137741 | 0.137741 | 0.137741 | 0.137741 | 0 | 0.138596 | 0.166667 | 684 | 28 | 57 | 24.428571 | 0.498246 | 0.149123 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a4cc1e2ae541fc6f9f096db4accf38fd5b3a4c0d | 804 | py | Python | Section4/appcode/models/mall.py | ntnshrm87/FlaskDevTest | f5af6c57280950eb56b735476ab38953d1c25033 | [
"MIT"
] | null | null | null | Section4/appcode/models/mall.py | ntnshrm87/FlaskDevTest | f5af6c57280950eb56b735476ab38953d1c25033 | [
"MIT"
] | null | null | null | Section4/appcode/models/mall.py | ntnshrm87/FlaskDevTest | f5af6c57280950eb56b735476ab38953d1c25033 | [
"MIT"
] | null | null | null | from appcode.db import db
class MallModel(db.Model):
__tablename__ = 'malls'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80))
stores = db.relationship("StoreModel", lazy="dynamic")
def __init__(self, name):
self.name = name
def json(self):
retur... | 25.125 | 91 | 0.636816 | 110 | 804 | 4.509091 | 0.518182 | 0.072581 | 0.078629 | 0.076613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.238806 | 804 | 31 | 92 | 25.935484 | 0.805556 | 0.129353 | 0 | 0.105263 | 0 | 0 | 0.045911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.105263 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a4d5dc0a206a9e62122b41d58006db0189d36ac0 | 5,568 | py | Python | tests/eth2/conftest.py | g-r-a-n-t/trinity | f108b6cd34ed9aabfcf9e235badd91597650ecd5 | [
"MIT"
] | 14 | 2020-08-24T18:23:31.000Z | 2021-11-04T14:11:04.000Z | tests/eth2/conftest.py | g-r-a-n-t/trinity | f108b6cd34ed9aabfcf9e235badd91597650ecd5 | [
"MIT"
] | 19 | 2020-08-25T15:57:05.000Z | 2021-07-07T00:49:45.000Z | tests/eth2/conftest.py | g-r-a-n-t/trinity | f108b6cd34ed9aabfcf9e235badd91597650ecd5 | [
"MIT"
] | 7 | 2020-08-24T22:53:02.000Z | 2022-03-28T18:51:48.000Z | import functools
import eth_utils.toolz as toolz
import pytest
from eth2._utils.bls import bls
from eth2.beacon.tools.builder.initializer import generate_privkey_from_index
def _serialize_bls_pubkeys(key):
"""
The ``pytest`` cache wants a JSON encodable value.
Provide the hex-encoded ``key``.
"""
... | 29.151832 | 85 | 0.684806 | 724 | 5,568 | 4.921271 | 0.223757 | 0.03817 | 0.035363 | 0.033399 | 0.332866 | 0.242212 | 0.134437 | 0.090093 | 0.080831 | 0.034802 | 0 | 0.001173 | 0.234555 | 5,568 | 190 | 86 | 29.305263 | 0.834819 | 0.17421 | 0 | 0.201835 | 1 | 0 | 0.024357 | 0.009247 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229358 | false | 0 | 0.045872 | 0.055046 | 0.541284 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a4da56ef11f3c3ab05009dcad284331e8b6bcb66 | 209 | py | Python | backend/app/app.py | nerds-amp-mods/login-pack | c006f2c15317893d87ce9e1ff1701920680ce64f | [
"MIT"
] | 2 | 2020-10-10T12:58:11.000Z | 2020-11-07T02:44:32.000Z | backend/app/app.py | nerds-amp-mods/login-pack | c006f2c15317893d87ce9e1ff1701920680ce64f | [
"MIT"
] | 5 | 2020-11-14T16:28:39.000Z | 2020-11-14T16:41:06.000Z | backend/app/app.py | nerds-amp-mods/Hackathon-Starter-Pack | c006f2c15317893d87ce9e1ff1701920680ce64f | [
"MIT"
] | 1 | 2020-11-06T15:01:29.000Z | 2020-11-06T15:01:29.000Z | from typing import Any, Dict, Tuple
from flask import Flask
app = Flask(__name__)
@app.route("/")
def welcome_route() -> Tuple[Dict[str, Any], int]:
return {"response": "Welcome to Landing Page"}, 200
| 19 | 55 | 0.684211 | 30 | 209 | 4.6 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.167464 | 209 | 10 | 56 | 20.9 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0.15311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
350fa30134e058bdaac3a467a9a55cc51d47c4dc | 949 | py | Python | Controller/AbstractAction.py | dsandersAzure/python_cowbull_agent | 92f7802ebc63986b3622fe5db271fd50844459a2 | [
"Apache-2.0"
] | null | null | null | Controller/AbstractAction.py | dsandersAzure/python_cowbull_agent | 92f7802ebc63986b3622fe5db271fd50844459a2 | [
"Apache-2.0"
] | null | null | null | Controller/AbstractAction.py | dsandersAzure/python_cowbull_agent | 92f7802ebc63986b3622fe5db271fd50844459a2 | [
"Apache-2.0"
] | null | null | null | import abc
import logging
from abc import ABCMeta
class AbstractAction(object):
"""An abstract class to provide an interface to action fulfillment (and slot filling) for
API.ai webhooks.
Concrete classes must provide implementations of do_action (fulfillment) and do_slot (slot
filling).
NOTE: Th... | 28.757576 | 102 | 0.696523 | 129 | 949 | 5.031008 | 0.496124 | 0.078582 | 0.09245 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240253 | 949 | 32 | 103 | 29.65625 | 0.900139 | 0.563751 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0.214286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3536c984522a9b44fdfcd710ba19a0991fdb739e | 446 | py | Python | desafio_modulo_1/desafio_mod_5.py | Mlluiz39/bootcamp_igti | 44b2b4322eaf8693f5575f8c27776c0256c86e60 | [
"MIT"
] | null | null | null | desafio_modulo_1/desafio_mod_5.py | Mlluiz39/bootcamp_igti | 44b2b4322eaf8693f5575f8c27776c0256c86e60 | [
"MIT"
] | null | null | null | desafio_modulo_1/desafio_mod_5.py | Mlluiz39/bootcamp_igti | 44b2b4322eaf8693f5575f8c27776c0256c86e60 | [
"MIT"
] | null | null | null | class Classe_1:
def funcao_da_classe_1(self, string):
dicionario = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000}
valor = 0
for i in range(len(string)):
if i > 0 and dicionario[string[i]] > dicionario[string[i -1]]:
valor += dicionario[string[i]... | 44.6 | 86 | 0.5 | 60 | 446 | 3.65 | 0.55 | 0.365297 | 0.388128 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077703 | 0.336323 | 446 | 10 | 87 | 44.6 | 0.662162 | 0 | 0 | 0 | 0 | 0 | 0.01566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 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 |
3539761a9b183bdd247b32a6141748bc811857a0 | 2,313 | py | Python | transformers/nlp/text_readability_transformers.py | james94/driverlessai-recipes | 87c35460db59ffda8dc18ad82cb3a9b8291410e4 | [
"Apache-2.0"
] | 194 | 2019-04-23T10:25:13.000Z | 2022-03-29T04:19:28.000Z | transformers/nlp/text_readability_transformers.py | james94/driverlessai-recipes | 87c35460db59ffda8dc18ad82cb3a9b8291410e4 | [
"Apache-2.0"
] | 50 | 2019-06-24T20:17:51.000Z | 2022-03-16T20:05:37.000Z | transformers/nlp/text_readability_transformers.py | james94/driverlessai-recipes | 87c35460db59ffda8dc18ad82cb3a9b8291410e4 | [
"Apache-2.0"
] | 85 | 2019-03-27T12:26:43.000Z | 2022-01-27T13:15:37.000Z | """
Custom Recipe to extract Readability features from the text data
"""
from h2oaicore.transformer_utils import CustomTransformer
import datatable as dt
import numpy as np
import string
class ReadabilityTransformer:
_modules_needed_by_name = ['textstat==0.6.0']
_method = NotImplemented
_parallel_tas... | 28.9125 | 86 | 0.78556 | 215 | 2,313 | 8.167442 | 0.544186 | 0.266515 | 0.307517 | 0.082005 | 0.023918 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0.14224 | 2,313 | 79 | 87 | 29.278481 | 0.881048 | 0.043234 | 0 | 0.044444 | 0 | 0 | 0.111313 | 0.054521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.133333 | 0.066667 | 0.955556 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
354977131f32824548776ed9c24d086cc14e2c17 | 176 | py | Python | mod/srtp/config.py | HeraldStudio/HeraldWebserviceClient | 4441c013462d002de4ece2bc86b59ac3d144ae7c | [
"MIT"
] | null | null | null | mod/srtp/config.py | HeraldStudio/HeraldWebserviceClient | 4441c013462d002de4ece2bc86b59ac3d144ae7c | [
"MIT"
] | null | null | null | mod/srtp/config.py | HeraldStudio/HeraldWebserviceClient | 4441c013462d002de4ece2bc86b59ac3d144ae7c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Date : 2014-06-27 14:37:20
# @Author : xindervella@gamil.com
SRTP_URL = 'http://10.1.30.98:8080/srtp2/USerPages/SRTP/Report3.aspx'
TIME_OUT = 8
| 25.142857 | 69 | 0.647727 | 30 | 176 | 3.733333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192053 | 0.142045 | 176 | 6 | 70 | 29.333333 | 0.549669 | 0.482955 | 0 | 0 | 0 | 0.5 | 0.643678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1025a32638a34d0c4f7d3a3c712bc177addd7a75 | 385 | py | Python | other/dingding/dingtalk/api/rest/OapiRhinoCooperationCarrierGetRequest.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | other/dingding/dingtalk/api/rest/OapiRhinoCooperationCarrierGetRequest.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | other/dingding/dingtalk/api/rest/OapiRhinoCooperationCarrierGetRequest.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | '''
Created by auto_sdk on 2020.03.04
'''
from dingtalk.api.base import RestApi
class OapiRhinoCooperationCarrierGetRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.carrier_id = None
self.tenant_id = None
self.userid = None
def getHttpMethod(self):
return 'POST'
def getapina... | 22.647059 | 54 | 0.758442 | 52 | 385 | 5.403846 | 0.634615 | 0.05694 | 0.078292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023881 | 0.12987 | 385 | 16 | 55 | 24.0625 | 0.814925 | 0.085714 | 0 | 0 | 0 | 0 | 0.136628 | 0.125 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.181818 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
103f33094dbf6742961a2bbed19dc094cb759e7a | 85 | py | Python | codewof/programming/content/en/shout-it/solution.py | uccser-admin/programming-practice-prototype | 3af4c7d85308ac5bb35bb13be3ec18cac4eb8308 | [
"MIT"
] | 3 | 2019-08-29T04:11:22.000Z | 2021-06-22T16:05:51.000Z | codewof/programming/content/en/shout-it/solution.py | uccser-admin/programming-practice-prototype | 3af4c7d85308ac5bb35bb13be3ec18cac4eb8308 | [
"MIT"
] | 265 | 2019-05-30T03:51:46.000Z | 2022-03-31T01:05:12.000Z | codewof/programming/content/en/shout-it/solution.py | samuelsandri/codewof | c9b8b378c06b15a0c42ae863b8f46581de04fdfc | [
"MIT"
] | 7 | 2019-06-29T12:13:37.000Z | 2021-09-06T06:49:14.000Z | sentence = input("What would you like me to shout?")
print(sentence.upper() + '!!!')
| 28.333333 | 52 | 0.658824 | 12 | 85 | 4.666667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141176 | 85 | 2 | 53 | 42.5 | 0.767123 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 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 |
1042cef60988205231ecdcfebab67549774a5034 | 128 | py | Python | mailauth/contrib/user/apps.py | andytwoods/django-mail-auth | 40f14bbb912c6dda09eb2e6611bb4ac9c9fb8873 | [
"MIT"
] | null | null | null | mailauth/contrib/user/apps.py | andytwoods/django-mail-auth | 40f14bbb912c6dda09eb2e6611bb4ac9c9fb8873 | [
"MIT"
] | null | null | null | mailauth/contrib/user/apps.py | andytwoods/django-mail-auth | 40f14bbb912c6dda09eb2e6611bb4ac9c9fb8873 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AuthConfig(AppConfig):
name = 'mailauth.contrib.user'
label = 'mailauth_user'
| 18.285714 | 34 | 0.734375 | 15 | 128 | 6.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 128 | 6 | 35 | 21.333333 | 0.877358 | 0 | 0 | 0 | 0 | 0 | 0.265625 | 0.164063 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1046c5718f4bda0526b6a001559d7fdf20ca1f1d | 197 | py | Python | discordbot/src/automod/attachments.py | knabb215/discord-masz | a1b8434ca8e6e31cb61a8a6069338fdd34698ea2 | [
"MIT"
] | null | null | null | discordbot/src/automod/attachments.py | knabb215/discord-masz | a1b8434ca8e6e31cb61a8a6069338fdd34698ea2 | [
"MIT"
] | null | null | null | discordbot/src/automod/attachments.py | knabb215/discord-masz | a1b8434ca8e6e31cb61a8a6069338fdd34698ea2 | [
"MIT"
] | null | null | null | from discord import Message
def check_message(msg: Message, config) -> bool:
allowed = config["Limit"]
if allowed is None:
return False
return len(msg.attachments) > allowed
| 19.7 | 48 | 0.680203 | 25 | 197 | 5.32 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233503 | 197 | 9 | 49 | 21.888889 | 0.880795 | 0 | 0 | 0 | 0 | 0 | 0.025381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
104c3564ffa32aa2161e31720d7c2e25b904f95e | 333 | py | Python | output/models/ms_data/particles/particles_js001_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/particles/particles_js001_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/particles/particles_js001_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.particles.particles_js001_xsd.particles_js001 import (
B,
R,
Doc,
)
from output.models.ms_data.particles.particles_js001_xsd.particles_js001_imp import (
ExtRefType,
ImpElem1,
ImpElem2,
)
__all__ = [
"B",
"R",
"Doc",
"ExtRefType",
"ImpElem1",
"... | 16.65 | 85 | 0.651652 | 38 | 333 | 5.368421 | 0.447368 | 0.27451 | 0.156863 | 0.176471 | 0.607843 | 0.607843 | 0.607843 | 0.607843 | 0.607843 | 0.607843 | 0 | 0.062016 | 0.225225 | 333 | 19 | 86 | 17.526316 | 0.728682 | 0 | 0 | 0 | 0 | 0 | 0.093093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 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 |
106b7ccb154b1b1adb6d58e5d75e4b0b487ca553 | 272 | py | Python | ulang/parser/__init__.py | nint8835/ulang | 8ab74c79d104490a46c76f879374b3128b4b61d7 | [
"MIT"
] | null | null | null | ulang/parser/__init__.py | nint8835/ulang | 8ab74c79d104490a46c76f879374b3128b4b61d7 | [
"MIT"
] | null | null | null | ulang/parser/__init__.py | nint8835/ulang | 8ab74c79d104490a46c76f879374b3128b4b61d7 | [
"MIT"
] | null | null | null | from importlib.resources import read_text
from lark import Lark, Tree
from .transformer import LanguageTransformer
PARSER = Lark(read_text("ulang.parser", "ulang.lark"))
def parse(source: str) -> Tree:
return LanguageTransformer().transform(PARSER.parse(source))
| 22.666667 | 64 | 0.772059 | 34 | 272 | 6.117647 | 0.529412 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121324 | 272 | 11 | 65 | 24.727273 | 0.870293 | 0 | 0 | 0 | 0 | 0 | 0.080882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
10759e4a8fcbd696cfec70147d4fc8b58aac98bb | 144 | py | Python | access/apps.py | Siikakala/kompassi | 14cdcd966ab689d762cc885e28b6d15465c216f0 | [
"CC-BY-3.0"
] | null | null | null | access/apps.py | Siikakala/kompassi | 14cdcd966ab689d762cc885e28b6d15465c216f0 | [
"CC-BY-3.0"
] | null | null | null | access/apps.py | Siikakala/kompassi | 14cdcd966ab689d762cc885e28b6d15465c216f0 | [
"CC-BY-3.0"
] | null | null | null | # encoding: utf-8
from django.apps import AppConfig
class AccessAppConfig(AppConfig):
name = 'access'
verbose_name = 'Pääsynhallinta' | 18 | 35 | 0.736111 | 16 | 144 | 6.5625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.173611 | 144 | 8 | 35 | 18 | 0.87395 | 0.104167 | 0 | 0 | 0 | 0 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
108050cfb563807db6dbec4f0d81d9ff9ef31b67 | 923 | py | Python | tests/test_dataset.py | rwhitt2049/thyro | 0ba4337260906b9fc962b7d16653886bf9bf67b9 | [
"MIT"
] | null | null | null | tests/test_dataset.py | rwhitt2049/thyro | 0ba4337260906b9fc962b7d16653886bf9bf67b9 | [
"MIT"
] | 3 | 2017-04-12T05:16:41.000Z | 2017-04-15T02:30:04.000Z | tests/test_dataset.py | rwhitt2049/tiko | 0ba4337260906b9fc962b7d16653886bf9bf67b9 | [
"MIT"
] | null | null | null | from unittest import TestCase
import numpy as np
import numpy.testing as npt
from tiko.dataset import LabeledDataSet
from tests.testing_utils import (mock_feature_space, FEATURE_SPACE_RETURN,
TEST_FEATURE_NAMES, TEST_LABELS, TEST_TARGETS)
MOCKED_FEATURE_SPACE, MFS_RETURN_VALUES = moc... | 30.766667 | 92 | 0.738895 | 119 | 923 | 5.445378 | 0.361345 | 0.111111 | 0.074074 | 0.087963 | 0.080247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195016 | 923 | 29 | 93 | 31.827586 | 0.87214 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.157895 | 1 | 0.210526 | false | 0 | 0.263158 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
10890105473a89de7322a5c67e6b3b3cd8fb9e27 | 636 | py | Python | MobiliumServer/mobilium_server/message_processors/shell_message_processor.py | homersoft/Mobilium | 328329589edd83e67ba629d56867e46395cf8c24 | [
"MIT"
] | 14 | 2020-04-24T09:22:31.000Z | 2020-04-30T06:28:46.000Z | MobiliumServer/mobilium_server/message_processors/shell_message_processor.py | homersoft/Mobilium | 328329589edd83e67ba629d56867e46395cf8c24 | [
"MIT"
] | null | null | null | MobiliumServer/mobilium_server/message_processors/shell_message_processor.py | homersoft/Mobilium | 328329589edd83e67ba629d56867e46395cf8c24 | [
"MIT"
] | null | null | null | from typing import Optional
from abc import abstractmethod
from mobilium_proto_messages.message_processor import MessageProcessor
from mobilium_proto_messages.message_sender import MessageSender
from mobilium_server.utils.shell_executor import ShellExecutor
class ShellMessageProcessor(MessageProcessor):
def __i... | 33.473684 | 85 | 0.784591 | 66 | 636 | 7.227273 | 0.5 | 0.075472 | 0.071279 | 0.104822 | 0.134172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160377 | 636 | 18 | 86 | 35.333333 | 0.893258 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.384615 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
108a89cc71f807ca484ab15d771802bc190fcce3 | 120 | py | Python | drf_core/__init__.py | drf-tools/drf_core | b1501f97b486be8ebfa41519013f45927488fc9b | [
"MIT"
] | 2 | 2020-03-17T10:00:57.000Z | 2021-09-28T04:08:53.000Z | drf_core/__init__.py | drf-tools/drf_core | b1501f97b486be8ebfa41519013f45927488fc9b | [
"MIT"
] | 2 | 2020-03-17T10:30:31.000Z | 2020-03-24T02:01:57.000Z | drf_core/__init__.py | drf-tools/drf_core | b1501f97b486be8ebfa41519013f45927488fc9b | [
"MIT"
] | 1 | 2020-07-01T03:06:46.000Z | 2020-07-01T03:06:46.000Z | import logging
# Exports the log object to easily logging information to command line.
log = logging.getLogger('core')
| 24 | 71 | 0.783333 | 17 | 120 | 5.529412 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 120 | 4 | 72 | 30 | 0.921569 | 0.575 | 0 | 0 | 0 | 0 | 0.081633 | 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 |
10a9763fbdce31da50cd9941ac0c4c007700a037 | 171 | py | Python | elasticutils/_version.py | mythmon/elasticutils | bd64d60d2954643bff1313a68162005a1076cbd8 | [
"BSD-3-Clause"
] | null | null | null | elasticutils/_version.py | mythmon/elasticutils | bd64d60d2954643bff1313a68162005a1076cbd8 | [
"BSD-3-Clause"
] | null | null | null | elasticutils/_version.py | mythmon/elasticutils | bd64d60d2954643bff1313a68162005a1076cbd8 | [
"BSD-3-Clause"
] | null | null | null | # follow pep-386
# Examples:
# * 0.3 - released version
# * 0.3a1 - alpha version
# * 0.3.dev - version in developmentv
__version__ = '0.7.dev'
__releasedate__ = ''
| 21.375 | 37 | 0.643275 | 23 | 171 | 4.434783 | 0.652174 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 0.210526 | 171 | 7 | 38 | 24.428571 | 0.666667 | 0.672515 | 0 | 0 | 0 | 0 | 0.14 | 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 |
10b28228da821ce8f271a61e3d2901b84d68eded | 260 | py | Python | migration/migrator/migrations/system/20190816211332_php_ds.py | elihschiff/Submitty | 8b980997b6f1dfcd73eb4cf4cca43398e67f96dc | [
"BSD-3-Clause"
] | 411 | 2016-06-14T20:52:25.000Z | 2022-03-31T21:20:25.000Z | migration/migrator/migrations/system/20190816211332_php_ds.py | KaelanWillauer/Submitty | cf9b6ceda15ec0a661e2ca81ea7864790094c64a | [
"BSD-3-Clause"
] | 5,730 | 2016-05-23T21:04:32.000Z | 2022-03-31T10:08:06.000Z | migration/migrator/migrations/system/20190816211332_php_ds.py | KaelanWillauer/Submitty | cf9b6ceda15ec0a661e2ca81ea7864790094c64a | [
"BSD-3-Clause"
] | 423 | 2016-09-22T21:11:30.000Z | 2022-03-29T18:55:28.000Z | """Migration for the Submitty system."""
import os
def up(config):
"""
Run up migration.
:param config: Object holding configuration details about Submitty
:type config: migrator.config.Config
"""
os.system("apt install -qy php-ds")
| 20 | 70 | 0.669231 | 33 | 260 | 5.272727 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215385 | 260 | 12 | 71 | 21.666667 | 0.852941 | 0.603846 | 0 | 0 | 0 | 0 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
10b5b289cfbaf3eaaa3e60c6261f46d866b72bc1 | 324 | py | Python | epiapp/routes.py | matteoferla/Epistasis_Calculator | e178e4f1bd35d4a8b70ff6f732495f84a0b49f8b | [
"MIT"
] | null | null | null | epiapp/routes.py | matteoferla/Epistasis_Calculator | e178e4f1bd35d4a8b70ff6f732495f84a0b49f8b | [
"MIT"
] | null | null | null | epiapp/routes.py | matteoferla/Epistasis_Calculator | e178e4f1bd35d4a8b70ff6f732495f84a0b49f8b | [
"MIT"
] | null | null | null | def includeme(config):
config.add_static_view('static', 'static', cache_max_age=3600)
config.add_route('home', '/')
config.add_route('api', '/api')
config.add_route('download', '/download')
config.add_route('docs', '/docs')
config.add_route('create', '/create')
config.add_route('demo', '/dem... | 36 | 66 | 0.654321 | 42 | 324 | 4.809524 | 0.404762 | 0.311881 | 0.415842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014337 | 0.138889 | 324 | 8 | 67 | 40.5 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
52c876b62a1d7f5692f21f29d7444a88fc6b35e0 | 123 | py | Python | maps/urls.py | abrusebas1997/makewiki_v2 | 496b34ad31e43a8c6eb26ee24424d5fea00e0832 | [
"MIT"
] | null | null | null | maps/urls.py | abrusebas1997/makewiki_v2 | 496b34ad31e43a8c6eb26ee24424d5fea00e0832 | [
"MIT"
] | null | null | null | maps/urls.py | abrusebas1997/makewiki_v2 | 496b34ad31e43a8c6eb26ee24424d5fea00e0832 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('maps/', views.default_map, name='default'),
]
| 15.375 | 53 | 0.691057 | 16 | 123 | 5.25 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 123 | 7 | 54 | 17.571429 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
52e2000587520152db594dfb163ef2bf4435c0ad | 967 | py | Python | DWF-server/controller/db/elastic_worker.py | sed-inf-u-szeged/DeepWaterFramework | 30e9c0145300e24834a3d4a7dde25002c638dd5a | [
"Apache-2.0"
] | 6 | 2020-06-18T22:38:09.000Z | 2022-01-13T14:32:56.000Z | DWF-server/controller/db/elastic_worker.py | sed-inf-u-szeged/DeepWaterFramework | 30e9c0145300e24834a3d4a7dde25002c638dd5a | [
"Apache-2.0"
] | 18 | 2020-01-13T08:32:53.000Z | 2021-07-23T08:26:02.000Z | DWF-server/controller/db/elastic_worker.py | sed-inf-u-szeged/DeepWaterFramework | 30e9c0145300e24834a3d4a7dde25002c638dd5a | [
"Apache-2.0"
] | 2 | 2020-06-18T09:50:59.000Z | 2021-03-18T04:52:53.000Z | from . import elastic as es
from config import es_workers_index as w_idx
from model import Worker
from model.obj_flatten import flatten
def register_worker(worker):
return es.create_document(w_idx, worker.__dict__)
def get_worker_by_id(worker_id):
doc = es.get_document_by_id(w_idx, worker_id)
if doc:
... | 24.794872 | 102 | 0.724922 | 152 | 967 | 4.236842 | 0.289474 | 0.043478 | 0.055901 | 0.074534 | 0.07764 | 0.07764 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169597 | 967 | 38 | 103 | 25.447368 | 0.801993 | 0 | 0 | 0.083333 | 0 | 0 | 0.054809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.166667 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
52f8d91f98dc954a7f85f1fa68e5c0ed3caa3872 | 79 | py | Python | data/studio21_generated/interview/1891/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/1891/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/1891/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | class Solution:
def solveNQueens(self, n: int) -> List[List[str]]:
| 26.333333 | 54 | 0.594937 | 10 | 79 | 4.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253165 | 79 | 3 | 55 | 26.333333 | 0.79661 | 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 |
5e052aede3f6558fda5b5cbef00e3b817f5503ad | 216 | py | Python | AreRotations/Python/AreRotations.py | ArturMarekNowak/Random-Algorithms-Repository | bda0e18bed68d3ab1b61b445e693a5c3c03a1179 | [
"MIT"
] | 1 | 2022-02-12T14:57:48.000Z | 2022-02-12T14:57:48.000Z | AreRotations/Python/AreRotations.py | ArturMarekNowak/Random-Algorithms-Repository | bda0e18bed68d3ab1b61b445e693a5c3c03a1179 | [
"MIT"
] | null | null | null | AreRotations/Python/AreRotations.py | ArturMarekNowak/Random-Algorithms-Repository | bda0e18bed68d3ab1b61b445e693a5c3c03a1179 | [
"MIT"
] | null | null | null | def areRotations(someString, someSubstring):
tempString = 2 * someString
return tempString.find(someSubstring, 0, len(tempString))
print(areRotations("AACD", "ACDA"))
print(areRotations("AACD", "AADC"))
| 19.636364 | 61 | 0.722222 | 22 | 216 | 7.090909 | 0.636364 | 0.217949 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010695 | 0.134259 | 216 | 10 | 62 | 21.6 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.075117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0.4 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5e166db5de5c8bf79fbb976fdd49d968f56dcdb5 | 213 | py | Python | src/jk_vcard/__init__.py | jkpubsrc/python-module-jk-vcard | 3672d4d07b5f7977c7061a2c47ec2c75e9c4536f | [
"Apache-1.1"
] | null | null | null | src/jk_vcard/__init__.py | jkpubsrc/python-module-jk-vcard | 3672d4d07b5f7977c7061a2c47ec2c75e9c4536f | [
"Apache-1.1"
] | null | null | null | src/jk_vcard/__init__.py | jkpubsrc/python-module-jk-vcard | 3672d4d07b5f7977c7061a2c47ec2c75e9c4536f | [
"Apache-1.1"
] | null | null | null |
__version__ = "0.2020.9.21.1"
from .QuotedPrintable import QuotedPrintable
from .VCardItem import VCardItem
from .VCard import VCard
from .VCFParser import VCFParser
from .VCFEncoder import VCFEncoder
| 11.833333 | 44 | 0.779343 | 27 | 213 | 6.037037 | 0.518519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050279 | 0.159624 | 213 | 17 | 45 | 12.529412 | 0.854749 | 0 | 0 | 0 | 0 | 0 | 0.063725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.833333 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5e24b951b355968679f9592c5b2e33bb040173ea | 7,761 | py | Python | REM/Tool/IDA 7.3/python/ida_fpro.py | dodieboy/Np_class | af9ec993eda3c1e2bf70257c8384696bb64a5e9d | [
"MIT"
] | null | null | null | REM/Tool/IDA 7.3/python/ida_fpro.py | dodieboy/Np_class | af9ec993eda3c1e2bf70257c8384696bb64a5e9d | [
"MIT"
] | null | null | null | REM/Tool/IDA 7.3/python/ida_fpro.py | dodieboy/Np_class | af9ec993eda3c1e2bf70257c8384696bb64a5e9d | [
"MIT"
] | 2 | 2021-03-30T00:46:58.000Z | 2021-12-12T23:41:12.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
"""
IDA Plugin SDK API wrapper: fpro
"""
from sys import version_info
if version_info >= (2,6,0):
def swig_... | 24.48265 | 111 | 0.606881 | 1,010 | 7,761 | 4.330693 | 0.206931 | 0.064472 | 0.071331 | 0.077275 | 0.289438 | 0.21765 | 0.204847 | 0.147691 | 0.112026 | 0.095107 | 0 | 0.006101 | 0.281922 | 7,761 | 316 | 112 | 24.560127 | 0.778755 | 0.234764 | 0 | 0.161765 | 1 | 0 | 0.032221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.014706 | 0.088235 | 0.007353 | 0.617647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5e2e205ae27a4583384a7a6146c25a9bdbe1d129 | 118 | py | Python | doc/source/src/Example01.py | fujiehuang/ecto | fea744337aa1fad1397c9a3ba5baa143993cb5eb | [
"BSD-3-Clause"
] | 77 | 2015-01-30T15:45:43.000Z | 2022-03-03T02:29:37.000Z | doc/source/src/Example01.py | fujiehuang/ecto | fea744337aa1fad1397c9a3ba5baa143993cb5eb | [
"BSD-3-Clause"
] | 37 | 2015-01-18T21:04:36.000Z | 2021-07-09T08:24:54.000Z | doc/source/src/Example01.py | fujiehuang/ecto | fea744337aa1fad1397c9a3ba5baa143993cb5eb | [
"BSD-3-Clause"
] | 29 | 2015-02-17T14:37:18.000Z | 2021-11-16T07:46:26.000Z | #!/usr/bin/python
import ecto
from ecto.ecto_examples import Example01
ecell = Example01(value=17)
ecell.process()
| 14.75 | 40 | 0.771186 | 17 | 118 | 5.294118 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.118644 | 118 | 7 | 41 | 16.857143 | 0.807692 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
eac69292b28e459089c66d92ebe9c021aa532a9e | 405 | py | Python | plugins/outputs/excel/html/text.py | tidepool-org/reports | ee040478b18347026791c4f4217a9108a0dd3a81 | [
"BSD-2-Clause"
] | 5 | 2020-10-23T21:51:28.000Z | 2021-05-13T22:23:09.000Z | plugins/outputs/excel/html/text.py | tidepool-org/reports | ee040478b18347026791c4f4217a9108a0dd3a81 | [
"BSD-2-Clause"
] | 2 | 2021-06-04T22:48:30.000Z | 2021-06-04T22:48:38.000Z | plugins/outputs/excel/html/text.py | tidepool-org/reports | ee040478b18347026791c4f4217a9108a0dd3a81 | [
"BSD-2-Clause"
] | null | null | null | """
Copyright (c) 2020, Tidepool Project
All rights reserved.
"""
from .base_segment import BaseSegment
class Text(BaseSegment):
def __init__(self, text):
super().__init__()
self.text = text
def append(self, text):
self.text += text
@property
def is_empty(self):
return... | 18.409091 | 37 | 0.617284 | 49 | 405 | 4.897959 | 0.55102 | 0.2 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016892 | 0.269136 | 405 | 21 | 38 | 19.285714 | 0.793919 | 0.140741 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.153846 | 0.615385 | 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 |
ead3fe95f41b7fa6a51cb103efbad64aec5c6533 | 229 | py | Python | tests/test_array/test_unshift.py | natanfeitosa/pyfunctools | b5354e0d737542b03049eb3e347d6ca1ccceb164 | [
"MIT"
] | 4 | 2021-11-17T15:26:11.000Z | 2022-03-12T01:30:55.000Z | tests/test_array/test_unshift.py | natanfeitosa/pyfunctools | b5354e0d737542b03049eb3e347d6ca1ccceb164 | [
"MIT"
] | null | null | null | tests/test_array/test_unshift.py | natanfeitosa/pyfunctools | b5354e0d737542b03049eb3e347d6ca1ccceb164 | [
"MIT"
] | null | null | null | from pyfunctools import Array
def test_unshift():
a = Array(2, 3)
assert str(a.unshift(1)) == '[1, 2, 3]'
assert str(a.unshift(0)) == '[0, 1, 2, 3]'
assert str(a.unshift(10)) == '[10, 0, 1, 2, 3]'
| 20.818182 | 51 | 0.510917 | 38 | 229 | 3.052632 | 0.394737 | 0.068966 | 0.206897 | 0.284483 | 0.508621 | 0.508621 | 0.344828 | 0 | 0 | 0 | 0 | 0.114458 | 0.275109 | 229 | 11 | 52 | 20.818182 | 0.584337 | 0 | 0 | 0 | 0 | 0 | 0.16087 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eaf554a30cb0b92bcde9e22724ad56f7b6717d8c | 858 | py | Python | shared/utils.py | plusus/plus-tuto | 50505603304e6be09ed44bb017b5366715306b23 | [
"CC-BY-3.0"
] | null | null | null | shared/utils.py | plusus/plus-tuto | 50505603304e6be09ed44bb017b5366715306b23 | [
"CC-BY-3.0"
] | null | null | null | shared/utils.py | plusus/plus-tuto | 50505603304e6be09ed44bb017b5366715306b23 | [
"CC-BY-3.0"
] | null | null | null | import os
import sys
def project_root():
if getattr(sys, 'frozen', False):
# If the app is bundled, get the directory (using PyInstaller)
return sys._MEIPASS
else:
# Support both cases if the file was run directly or by the module
# folder
return os.path.dirname(__file_... | 29.586207 | 80 | 0.674825 | 125 | 858 | 4.44 | 0.408 | 0.036036 | 0.064865 | 0.059459 | 0.326126 | 0.313514 | 0.313514 | 0.313514 | 0.313514 | 0.313514 | 0 | 0.00152 | 0.2331 | 858 | 28 | 81 | 30.642857 | 0.841945 | 0.441725 | 0 | 0 | 0 | 0 | 0.031963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.181818 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d803be5cbf9b2eeb699bc7e1d416689b6bfad391 | 134 | py | Python | ifemun/conference/apps.py | phvash/ifemun | f2fe06ffe101500259a78d79d3b516bed15ef7e4 | [
"MIT"
] | 1 | 2018-02-17T23:49:36.000Z | 2018-02-17T23:49:36.000Z | ifemun/conference/apps.py | phvash/ifemun | f2fe06ffe101500259a78d79d3b516bed15ef7e4 | [
"MIT"
] | null | null | null | ifemun/conference/apps.py | phvash/ifemun | f2fe06ffe101500259a78d79d3b516bed15ef7e4 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ConferenceConfig(AppConfig):
name = 'ifemun.conference'
verbose_name = 'Conference'
| 19.142857 | 34 | 0.753731 | 14 | 134 | 7.142857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 134 | 6 | 35 | 22.333333 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0.201493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d80aacc459735c53f848d1f1f10e8d95266c3941 | 64 | py | Python | store/bestbuy/__init__.py | ARMcK-hub/bestbot | 76f44cd67dc050637c494488b118066139693acd | [
"MIT"
] | 1 | 2021-11-13T07:37:26.000Z | 2021-11-13T07:37:26.000Z | store/bestbuy/__init__.py | ARMcK-hub/BestBot | 6071041fc63e4a3fb453c7addc95987ecb8d2f30 | [
"MIT"
] | 2 | 2022-02-24T08:16:14.000Z | 2022-02-28T00:09:00.000Z | store/bestbuy/__init__.py | ARMcK-hub/bestbot | 76f44cd67dc050637c494488b118066139693acd | [
"MIT"
] | null | null | null | from .bestbuy_item import BestBuyItem
__all__ = ["BestBuyItem"] | 21.333333 | 37 | 0.796875 | 7 | 64 | 6.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 64 | 3 | 38 | 21.333333 | 0.807018 | 0 | 0 | 0 | 0 | 0 | 0.169231 | 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 |
d80aed8ab8ea763e3d36a7f49b89dc607e5ad661 | 55 | py | Python | crawler/crawler_instance/application_controller/application_enums.py | msmannan00/Genesis-Auto-Crawler | c0cf79a0fc7a12e056108ffc24faf0d3baa949ad | [
"MIT"
] | 1 | 2020-03-02T17:19:50.000Z | 2020-03-02T17:19:50.000Z | crawler/crawler_instance/application_controller/application_enums.py | msmannan00/Genesis-Auto-Crawler | c0cf79a0fc7a12e056108ffc24faf0d3baa949ad | [
"MIT"
] | null | null | null | crawler/crawler_instance/application_controller/application_enums.py | msmannan00/Genesis-Auto-Crawler | c0cf79a0fc7a12e056108ffc24faf0d3baa949ad | [
"MIT"
] | null | null | null | class APPICATION_COMMANDS:
S_START_APPLICATION = 1
| 18.333333 | 27 | 0.8 | 7 | 55 | 5.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.163636 | 55 | 2 | 28 | 27.5 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 |
d80f1914a8cae84413f55c199b003633902b7ac0 | 1,077 | py | Python | pygonito/information_extraction/multi_label.py | filipggg/pygonito | f4cd6c7c54790df05ef631a1f6c7320f3121fc24 | [
"Apache-2.0"
] | null | null | null | pygonito/information_extraction/multi_label.py | filipggg/pygonito | f4cd6c7c54790df05ef631a1f6c7320f3121fc24 | [
"Apache-2.0"
] | null | null | null | pygonito/information_extraction/multi_label.py | filipggg/pygonito | f4cd6c7c54790df05ef631a1f6c7320f3121fc24 | [
"Apache-2.0"
] | 1 | 2022-02-22T18:36:54.000Z | 2022-02-22T18:36:54.000Z |
from typing import Dict, Tuple
import regex as re
key_val_pair_regexp = re.compile(r'([^\s=]+)=(\S+)')
val_prob_regexp = re.compile(r'(.*):(\d+(?:\.\d*)?)$')
def quote_value(val: str) -> str:
return val.replace(' ', '_')
def unquote_value(val: str) -> str:
return val.replace('_', ' ')
def parse_probs(val:... | 26.268293 | 72 | 0.620241 | 173 | 1,077 | 3.676301 | 0.312139 | 0.062893 | 0.075472 | 0.075472 | 0.160377 | 0.103774 | 0.103774 | 0.103774 | 0 | 0 | 0 | 0.009164 | 0.189415 | 1,077 | 40 | 73 | 26.925 | 0.719359 | 0 | 0 | 0 | 0 | 0 | 0.070632 | 0.050186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.076923 | 0.153846 | 0.653846 | 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 |
d8341f36b23ab3f54aa3e41983a2edddadf0e327 | 441 | py | Python | stackexchange/api/__init__.py | sourcepirate/stackexchange | 0c8f3491d5ea527e4439c9926c9b5542261dae53 | [
"MIT"
] | 2 | 2015-08-22T02:52:24.000Z | 2015-11-04T17:57:01.000Z | stackexchange/api/__init__.py | plasmashadow/stackexchange | 0c8f3491d5ea527e4439c9926c9b5542261dae53 | [
"MIT"
] | 2 | 2018-09-28T03:13:00.000Z | 2020-10-18T02:24:46.000Z | stackexchange/api/__init__.py | plasmashadow/stackexchange | 0c8f3491d5ea527e4439c9926c9b5542261dae53 | [
"MIT"
] | 1 | 2018-09-26T08:05:08.000Z | 2018-09-26T08:05:08.000Z | __author__ = 'plasmashadow'
from ._api_request import _request
from ._api_base import _get, _post, _build_path
from ._api_reader import *
class Request(_request):
"""
Request Object is the Essential Object for all stackexchange
Api request
>>> r = Request("route", {'site': 'stackoverflow'})
... | 20.045455 | 66 | 0.673469 | 54 | 441 | 5.12963 | 0.62963 | 0.075812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231293 | 441 | 21 | 67 | 21 | 0.817109 | 0.426304 | 0 | 0 | 0 | 0 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
d839b702740e5ecef77ce1306ce82daa2f49238d | 200 | py | Python | doc/_i18n/jp/tutorials/advanced/new-robot/env_object.py | rohanpsingh/mc_rtc | 63918efc54f561650a8e93f449c40ec156a6feb4 | [
"BSD-2-Clause"
] | null | null | null | doc/_i18n/jp/tutorials/advanced/new-robot/env_object.py | rohanpsingh/mc_rtc | 63918efc54f561650a8e93f449c40ec156a6feb4 | [
"BSD-2-Clause"
] | null | null | null | doc/_i18n/jp/tutorials/advanced/new-robot/env_object.py | rohanpsingh/mc_rtc | 63918efc54f561650a8e93f449c40ec156a6feb4 | [
"BSD-2-Clause"
] | null | null | null | import mc_rbdyn
path = "/path/to/description"
name = "name"
env = mc_rbdyn.get_robot_module("env", path, name)
# オブジェクトによってロボットと浮遊ベースが読み込まれる
object = mc_rbdyn.get_robot_module("object", path, name)
| 22.222222 | 56 | 0.76 | 28 | 200 | 5.178571 | 0.464286 | 0.144828 | 0.137931 | 0.206897 | 0.289655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 200 | 8 | 57 | 25 | 0.814607 | 0.135 | 0 | 0 | 0 | 0 | 0.192982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc48eee0fd44a139039804c69e958d8feba19b18 | 47 | py | Python | thinc/about.py | TheVinhLuong102/thinc | 7b54f728ddec7765a1d8a5e553d4b4b90b9edaec | [
"MIT"
] | 1 | 2022-03-08T07:25:21.000Z | 2022-03-08T07:25:21.000Z | thinc/about.py | TheVinhLuong102/thinc | 7b54f728ddec7765a1d8a5e553d4b4b90b9edaec | [
"MIT"
] | 11 | 2021-10-04T16:36:43.000Z | 2021-12-21T16:39:36.000Z | thinc/about.py | TheVinhLuong102/thinc | 7b54f728ddec7765a1d8a5e553d4b4b90b9edaec | [
"MIT"
] | null | null | null | __version__ = "8.0.14.dev0"
__release__ = True
| 15.666667 | 27 | 0.723404 | 7 | 47 | 3.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 0.12766 | 47 | 2 | 28 | 23.5 | 0.512195 | 0 | 0 | 0 | 0 | 0 | 0.234043 | 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 |
dc4bf15baf3668bb67936879bdb8c954e1e5ddb3 | 7,351 | py | Python | test/integration/clinicaltrials.py | seanmacavaney/ir_datasets | a8e56f53bb06fcf11164fb0ffc4afc497a6e7507 | [
"Apache-2.0"
] | null | null | null | test/integration/clinicaltrials.py | seanmacavaney/ir_datasets | a8e56f53bb06fcf11164fb0ffc4afc497a6e7507 | [
"Apache-2.0"
] | null | null | null | test/integration/clinicaltrials.py | seanmacavaney/ir_datasets | a8e56f53bb06fcf11164fb0ffc4afc497a6e7507 | [
"Apache-2.0"
] | null | null | null | import re
import unittest
import ir_datasets
from ir_datasets.datasets.clinicaltrials import ClinicalTrialsDoc
from ir_datasets.datasets.medline import TrecPmQuery, TrecPm2017Query
from ir_datasets.formats import GenericQuery, TrecQrel
from .base import DatasetIntegrationTest
_logger = ir_datasets.log.easy()
class ... | 118.564516 | 890 | 0.644538 | 971 | 7,351 | 4.84552 | 0.38208 | 0.020829 | 0.02763 | 0.030393 | 0.245058 | 0.227418 | 0.166419 | 0.115622 | 0.100744 | 0.100744 | 0 | 0.078975 | 0.224867 | 7,351 | 61 | 891 | 120.508197 | 0.746753 | 0 | 0 | 0.148148 | 0 | 0.333333 | 0.672289 | 0.035641 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.12963 | 0 | 0.203704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dc543d6cbb9f87f39001031219bacfdb540fc4bb | 85 | py | Python | locale/pot/api/core/_autosummary/pyvista-DataObject-memory_address-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/core/_autosummary/pyvista-UnstructuredGrid-memory_address-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/core/_autosummary/pyvista-RectilinearGrid-memory_address-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | import pyvista
mesh = pyvista.Sphere()
mesh.memory_address
# Expected:
## 'Addr=...'
| 14.166667 | 23 | 0.705882 | 10 | 85 | 5.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 85 | 5 | 24 | 17 | 0.786667 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dc77e0de78431f571edfdc4382591d9a5466c960 | 653 | py | Python | lib/datasets/__init__.py | Fudan-Autonomous-Driving-Perception/HRNet-Semantic-Segmentation | 37a403e68047b29b03d564ee5c6df6c27b332c64 | [
"MIT"
] | null | null | null | lib/datasets/__init__.py | Fudan-Autonomous-Driving-Perception/HRNet-Semantic-Segmentation | 37a403e68047b29b03d564ee5c6df6c27b332c64 | [
"MIT"
] | null | null | null | lib/datasets/__init__.py | Fudan-Autonomous-Driving-Perception/HRNet-Semantic-Segmentation | 37a403e68047b29b03d564ee5c6df6c27b332c64 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Ke Sun (sunk@mail.ustc.edu.cn)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __future_... | 38.411765 | 80 | 0.614089 | 75 | 653 | 5.133333 | 0.453333 | 0.077922 | 0.124675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020761 | 0.114855 | 653 | 17 | 81 | 38.411765 | 0.645329 | 0.390505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dc9178efc608ba4755b5fd11bd8b9604722c9e8d | 125 | py | Python | main.py | realrootboy/hash-answer-discord-bot | f2a28f885632844a7f6b998da0503d1a5ba3e1a1 | [
"MIT"
] | null | null | null | main.py | realrootboy/hash-answer-discord-bot | f2a28f885632844a7f6b998da0503d1a5ba3e1a1 | [
"MIT"
] | null | null | null | main.py | realrootboy/hash-answer-discord-bot | f2a28f885632844a7f6b998da0503d1a5ba3e1a1 | [
"MIT"
] | null | null | null | from dotenv import load_dotenv
load_dotenv()
import bot
def main():
bot.start()
if __name__ == '__main__':
main()
| 11.363636 | 30 | 0.672 | 17 | 125 | 4.352941 | 0.588235 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208 | 125 | 10 | 31 | 12.5 | 0.747475 | 0 | 0 | 0 | 0 | 0 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dca8813269cf56675afc79874c44639b1e36c5ce | 1,401 | py | Python | angr/analyses/propagator/vex_vars.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 6,132 | 2015-08-06T23:24:47.000Z | 2022-03-31T21:49:34.000Z | angr/analyses/propagator/vex_vars.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 2,272 | 2015-08-10T08:40:07.000Z | 2022-03-31T23:46:44.000Z | angr/analyses/propagator/vex_vars.py | Kyle-Kyle/angr | 345b2131a7a67e3a6ffc7d9fd475146a3e12f837 | [
"BSD-2-Clause"
] | 1,155 | 2015-08-06T23:37:39.000Z | 2022-03-31T05:54:11.000Z |
# VEX Variables
class VEXVariable:
__slots__ = tuple()
def __hash__(self):
raise NotImplementedError()
def __eq__(self, other):
raise NotImplementedError()
class VEXMemVar:
__slots__ = ('addr', 'size', )
def __init__(self, addr, size):
self.addr = addr
self.s... | 21.227273 | 96 | 0.603141 | 173 | 1,401 | 4.468208 | 0.179191 | 0.072445 | 0.056921 | 0.072445 | 0.349288 | 0.322122 | 0.322122 | 0.322122 | 0.196636 | 0.100906 | 0 | 0 | 0.264811 | 1,401 | 65 | 97 | 21.553846 | 0.750485 | 0.009279 | 0 | 0.394737 | 0 | 0 | 0.043321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.368421 | false | 0 | 0 | 0.236842 | 0.815789 | 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 |
dca9bb93f7ff55a97bb310a142a1a686457eac93 | 154 | py | Python | python_aulas/desaf030_if_parouimpar.py | gilsonaureliano/Python-aulas | 64269872acd482bcf297941ba28d30f13f29c752 | [
"MIT"
] | 1 | 2021-08-05T13:52:12.000Z | 2021-08-05T13:52:12.000Z | python_aulas/desaf030_if_parouimpar.py | gilsonaureliano/Python-aulas | 64269872acd482bcf297941ba28d30f13f29c752 | [
"MIT"
] | null | null | null | python_aulas/desaf030_if_parouimpar.py | gilsonaureliano/Python-aulas | 64269872acd482bcf297941ba28d30f13f29c752 | [
"MIT"
] | null | null | null | n1 = int(input('Digite um numero inteiro: '))
if n1 % 2 == 0:
print('O numero {} e PAR'.format(n1))
else:
print('O numero {} é IMPAR'.format(n1))
| 25.666667 | 45 | 0.590909 | 26 | 154 | 3.5 | 0.692308 | 0.131868 | 0.263736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.207792 | 154 | 5 | 46 | 30.8 | 0.696721 | 0 | 0 | 0 | 0 | 0 | 0.402597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
f4b334c0edc49ff2cbd37e767a144be32bdc1317 | 65 | py | Python | intprim/constants.py | carlos-cardoso/intprim | cf6d83996e4a1ede3cda19c7906c6166ec5a6f6e | [
"MIT"
] | 49 | 2017-11-23T22:37:36.000Z | 2022-03-05T04:39:13.000Z | intprim/constants.py | souljaboy764/intprim | ecf905ce69dc14215230be3b3819d2236223e9ba | [
"MIT"
] | 5 | 2019-03-31T08:47:33.000Z | 2021-08-19T23:54:51.000Z | intprim/constants.py | souljaboy764/intprim | ecf905ce69dc14215230be3b3819d2236223e9ba | [
"MIT"
] | 20 | 2018-01-22T20:17:24.000Z | 2022-02-18T01:07:54.000Z | import numpy as np
DTYPE = np.float64
DEFAULT_NUM_SAMPLES = 100
| 13 | 25 | 0.784615 | 11 | 65 | 4.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 0.169231 | 65 | 4 | 26 | 16.25 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f4c224acf6a67745cab4640f3072df4b7bd0194d | 1,725 | py | Python | src/pyoffice/word/windows/Row.py | qq809326636/pyoffice | a3c036ef82f6b0438c1e38a7675eb1f06c61144d | [
"MIT"
] | 7 | 2020-06-19T03:11:48.000Z | 2020-11-18T06:14:21.000Z | src/pyoffice/word/windows/Row.py | qq809326636/pyoffice | a3c036ef82f6b0438c1e38a7675eb1f06c61144d | [
"MIT"
] | null | null | null | src/pyoffice/word/windows/Row.py | qq809326636/pyoffice | a3c036ef82f6b0438c1e38a7675eb1f06c61144d | [
"MIT"
] | null | null | null | from ._WinObject import _WinObject
from typing import Optional
from .constant import *
__all__ = ['Row']
class Row(_WinObject):
def __init__(self):
_WinObject.__init__(self)
def getCellList(self) -> list:
from .Cell import Cell
for item in self.impl.Cells:
... | 24.295775 | 91 | 0.542609 | 172 | 1,725 | 5.348837 | 0.331395 | 0.121739 | 0.121739 | 0.073913 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.368696 | 1,725 | 70 | 92 | 24.642857 | 0.844812 | 0 | 0 | 0 | 0 | 0 | 0.018127 | 0.016314 | 0 | 0 | 0 | 0 | 0 | 1 | 0.306122 | false | 0 | 0.102041 | 0.163265 | 0.612245 | 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 |
f4d0f5bfd4b1b4afe82f654ec9676b1264e92222 | 1,263 | py | Python | qcloudsdkscf/DeleteTriggerRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkscf/DeleteTriggerRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkscf/DeleteTriggerRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class DeleteTriggerRequest(Request):
def __init__(self):
super(DeleteTriggerRequest, self).__init__(
'scf', 'qcloudcliV1', 'DeleteTrigger', 'scf.api.qcloud.com')
def get_functionName(self):
return self.get_params()... | 27.456522 | 72 | 0.669042 | 145 | 1,263 | 5.606897 | 0.213793 | 0.04428 | 0.103321 | 0.125461 | 0.191882 | 0.191882 | 0 | 0 | 0 | 0 | 0 | 0.001986 | 0.202692 | 1,263 | 45 | 73 | 28.066667 | 0.805362 | 0.016627 | 0 | 0 | 0 | 0 | 0.123387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.448276 | false | 0 | 0.034483 | 0.206897 | 0.724138 | 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 |
f4e912a6bb9c6bfc47122ffc4d39c6fcfaa3daef | 2,020 | py | Python | tests/common/helpers/platform_api/psu_fan.py | Minkang-Tsai/sonic-mgmt | f4d2b82758ca36f50a367a7398f76df8219310fa | [
"Apache-2.0"
] | null | null | null | tests/common/helpers/platform_api/psu_fan.py | Minkang-Tsai/sonic-mgmt | f4d2b82758ca36f50a367a7398f76df8219310fa | [
"Apache-2.0"
] | 1 | 2020-02-05T16:51:53.000Z | 2020-02-05T16:51:53.000Z | tests/common/helpers/platform_api/psu_fan.py | Minkang-Tsai/sonic-mgmt | f4d2b82758ca36f50a367a7398f76df8219310fa | [
"Apache-2.0"
] | null | null | null | """ This module provides interface to interact with the fan of the DUT
via platform API remotely """
import json
import logging
logger = logging.getLogger(__name__)
def psu_fan_api(conn, psu_idx, fan_idx, name, args=None):
if args is None:
args = []
conn.request('POST', '/platform/chassis/psu/{}... | 27.297297 | 149 | 0.714356 | 337 | 2,020 | 3.937685 | 0.192878 | 0.12208 | 0.176338 | 0.235117 | 0.506405 | 0.479277 | 0.463451 | 0.463451 | 0.444612 | 0.444612 | 0 | 0 | 0.154455 | 2,020 | 73 | 150 | 27.671233 | 0.776932 | 0.082673 | 0 | 0 | 0 | 0 | 0.150245 | 0.018508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.371429 | false | 0 | 0.057143 | 0.342857 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
760300ef00cd751e29796ef1a26851f88d2f7005 | 1,282 | py | Python | tests/dags/test_sensor.py | holly-evans/airflow | 865406cbab4defd35c95afbf0a8d5987ff7788b1 | [
"Apache-2.0"
] | 3 | 2017-08-06T23:19:48.000Z | 2018-05-11T05:50:25.000Z | tests/dags/test_sensor.py | holly-evans/airflow | 865406cbab4defd35c95afbf0a8d5987ff7788b1 | [
"Apache-2.0"
] | 20 | 2016-11-21T22:54:28.000Z | 2018-10-28T20:03:13.000Z | tests/dags/test_sensor.py | holly-evans/airflow | 865406cbab4defd35c95afbf0a8d5987ff7788b1 | [
"Apache-2.0"
] | 3 | 2016-10-13T09:59:18.000Z | 2017-02-22T11:29:09.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 37.705882 | 108 | 0.764431 | 189 | 1,282 | 5.132275 | 0.57672 | 0.061856 | 0.026804 | 0.03299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011121 | 0.158346 | 1,282 | 33 | 109 | 38.848485 | 0.887859 | 0.586583 | 0 | 0 | 0 | 0 | 0.05653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.416667 | 0.083333 | 0.583333 | 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 |
7618f1b838889dba0c83cd1c15be674607ca316e | 1,846 | py | Python | src/tensordataclasses/size.py | leaprovenzano/tensordataclasses | a70637dfd30614d1b20e48817f1087f46d2a877f | [
"MIT"
] | null | null | null | src/tensordataclasses/size.py | leaprovenzano/tensordataclasses | a70637dfd30614d1b20e48817f1087f46d2a877f | [
"MIT"
] | null | null | null | src/tensordataclasses/size.py | leaprovenzano/tensordataclasses | a70637dfd30614d1b20e48817f1087f46d2a877f | [
"MIT"
] | null | null | null | from typing import Type, NamedTuple, ClassVar, TypeVar, Union, Tuple, Any
import torch
BaseT = TypeVar('BaseT', bound=NamedTuple)
SizeT = TypeVar('SizeT', bound='KeyedSize')
def as_size(x: Union[torch.Size, Tuple[int]]) -> torch.Size:
if isinstance(x, torch.Size):
return x
return torch.Size(x)
cla... | 29.774194 | 96 | 0.598592 | 240 | 1,846 | 4.491667 | 0.304167 | 0.075139 | 0.027829 | 0.012987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007305 | 0.258397 | 1,846 | 61 | 97 | 30.262295 | 0.780131 | 0.316901 | 0 | 0 | 0 | 0 | 0.023609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.074074 | 0.111111 | 0.703704 | 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 |
57fecab754ef325509638d62ac288b35b5a63b30 | 404 | py | Python | module_2/7_exception/calculator.py | esterfogaca/acelera-dev-loadsmart-women | 71aac82f3fe2667ee5acda1619ddf9c82b18319d | [
"MIT"
] | 8 | 2019-03-29T15:05:56.000Z | 2021-06-13T15:00:26.000Z | module_2/7_exception/calculator.py | esterfogaca/acelera-dev-loadsmart-women | 71aac82f3fe2667ee5acda1619ddf9c82b18319d | [
"MIT"
] | 12 | 2019-08-06T01:56:51.000Z | 2022-02-10T09:14:43.000Z | module_2/7_exception/calculator.py | esterfogaca/acelera-dev-loadsmart-women | 71aac82f3fe2667ee5acda1619ddf9c82b18319d | [
"MIT"
] | 1 | 2019-03-21T07:30:02.000Z | 2019-03-21T07:30:02.000Z | class Calculator:
def add(self, x, y):
return x + y
def subtract(self, x, y):
return x - y
def multiply(self, x, y):
return x * y
def divide(self, x, y):
try:
return x / y
except ZeroDivisionError:
print('Invalid operation. Division by 0... | 19.238095 | 53 | 0.561881 | 54 | 404 | 4.203704 | 0.407407 | 0.070485 | 0.105727 | 0.15859 | 0.22467 | 0.22467 | 0.22467 | 0 | 0 | 0 | 0 | 0.018382 | 0.326733 | 404 | 20 | 54 | 20.2 | 0.816176 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0.2 | 0.6 | 0.133333 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.