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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
86e6d41d29273e5297599c91ae9db866fbe231ed | 4,246 | py | Python | monitor_sdk/api/translate/translate_client.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | monitor_sdk/api/translate/translate_client.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | monitor_sdk/api/translate/translate_client.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import monitor_sdk.api.translate.list_translate_data_pb2
import monitor_sdk.api.translate.list_translate_rule_pb2
import monitor_sdk.utils.http_util
import google.protobuf.json_format
class TranslateClient(object):
def __init__(self, server_ip="", server_port=0, se... | 38.252252 | 186 | 0.647197 | 467 | 4,246 | 5.554604 | 0.231263 | 0.049345 | 0.050116 | 0.084811 | 0.71357 | 0.704703 | 0.687741 | 0.683115 | 0.645335 | 0.537394 | 0 | 0.006392 | 0.263071 | 4,246 | 110 | 187 | 38.6 | 0.822627 | 0.253179 | 0 | 0.636364 | 0 | 0 | 0.075326 | 0.057248 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86e6e9e94a6555a570d7b87fc215d423a9879534 | 5,252 | py | Python | drones/views.py | Zoki92/Drone | 7c637220d1c085ec804d72f148b1c98b088799df | [
"MIT"
] | null | null | null | drones/views.py | Zoki92/Drone | 7c637220d1c085ec804d72f148b1c98b088799df | [
"MIT"
] | null | null | null | drones/views.py | Zoki92/Drone | 7c637220d1c085ec804d72f148b1c98b088799df | [
"MIT"
] | null | null | null | from rest_framework import generics
from rest_framework.response import Response
from rest_framework.reverse import reverse
from .models import Drone, DroneCategory, Pilot, Competition
from .serializers import (DroneCategorySerializer,
DroneSerializer,
PilotSerializer... | 34.103896 | 66 | 0.663366 | 438 | 5,252 | 7.710046 | 0.242009 | 0.026651 | 0.033166 | 0.059224 | 0.47024 | 0.44655 | 0.358898 | 0.313296 | 0.313296 | 0.212023 | 0 | 0 | 0.255712 | 5,252 | 153 | 67 | 34.326797 | 0.863904 | 0.016184 | 0 | 0.346457 | 0 | 0 | 0.114833 | 0.01859 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015748 | false | 0 | 0.086614 | 0.007874 | 0.637795 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
86e7abce07c10ff6311fbeab3732a5cb141b9bc8 | 538 | py | Python | SBR/Tools.py | Bobtron/ArbFinder | 3c86a3837a423efa4e9d049a967afa07f675f660 | [
"MIT"
] | null | null | null | SBR/Tools.py | Bobtron/ArbFinder | 3c86a3837a423efa4e9d049a967afa07f675f660 | [
"MIT"
] | null | null | null | SBR/Tools.py | Bobtron/ArbFinder | 3c86a3837a423efa4e9d049a967afa07f675f660 | [
"MIT"
] | null | null | null |
def calculate_nearest_5(percentage_list: list[float]):
total_errors = 0
for i in range(5, 100):
portions = [i * j for j in percentage_list]
errors = [j % 5 for j in portions]
adj_ports = [ for j, k in zip(portions, errors)]
"""
Make a matched bet calculator
Add in options for
1) No... | 28.315789 | 101 | 0.693309 | 93 | 538 | 3.946237 | 0.623656 | 0.032698 | 0.032698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02451 | 0.241636 | 538 | 18 | 102 | 29.888889 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ebbc67660595806d9e9d1da3cb3087978c35fb | 297 | py | Python | 6.00.1x/pset1/p2.py | NicholasAsimov/courses | d60981f25816445578eb9e89bbbeef2d38eaf014 | [
"MIT"
] | null | null | null | 6.00.1x/pset1/p2.py | NicholasAsimov/courses | d60981f25816445578eb9e89bbbeef2d38eaf014 | [
"MIT"
] | null | null | null | 6.00.1x/pset1/p2.py | NicholasAsimov/courses | d60981f25816445578eb9e89bbbeef2d38eaf014 | [
"MIT"
] | null | null | null | # s is predefined string of characters
s = 'azcbobobegghakl'
bob_counter = 0
idx = 0
while True:
bob_idx = s.find('bob', idx)
if bob_idx != -1:
bob_counter += 1
idx = bob_idx + 1
else:
break
print "Number of times bob occurs is:", bob_counter
| 18.5625 | 52 | 0.579125 | 43 | 297 | 3.860465 | 0.511628 | 0.144578 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.329966 | 297 | 15 | 53 | 19.8 | 0.809045 | 0.121212 | 0 | 0 | 0 | 0 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
86ed7d1746b11f95601ae86e434ea68603205b00 | 19,375 | py | Python | americangut/results_utils.py | JWDebelius/American-Gut | ed2479a5951946ed977a5916444b51c34c48e60c | [
"BSD-3-Clause-Clear"
] | 92 | 2015-02-25T18:33:56.000Z | 2021-12-10T07:47:40.000Z | americangut/results_utils.py | JWDebelius/American-Gut | ed2479a5951946ed977a5916444b51c34c48e60c | [
"BSD-3-Clause-Clear"
] | 96 | 2015-02-24T17:21:58.000Z | 2018-12-10T19:40:53.000Z | americangut/results_utils.py | JWDebelius/American-Gut | ed2479a5951946ed977a5916444b51c34c48e60c | [
"BSD-3-Clause-Clear"
] | 67 | 2015-02-25T20:53:16.000Z | 2022-03-11T14:02:16.000Z | #!/usr/bin/env python
import os
import shutil
import zipfile
from itertools import izip
from collections import defaultdict
from functools import partial
from biom.parse import parse_biom_table
from americangut.util import check_file
# These are the data files in the American-Gut repository that are used for
# resu... | 32.399666 | 79 | 0.633084 | 2,739 | 19,375 | 4.258489 | 0.15188 | 0.021433 | 0.01749 | 0.018947 | 0.280778 | 0.193501 | 0.166238 | 0.133573 | 0.102795 | 0.090364 | 0 | 0.008724 | 0.26049 | 19,375 | 597 | 80 | 32.453936 | 0.805346 | 0.052542 | 0 | 0.159341 | 0 | 0 | 0.094501 | 0.008038 | 0 | 0 | 0 | 0 | 0.002747 | 0 | null | null | 0.008242 | 0.021978 | null | null | 0.03022 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
810102955bfbae6391056edb5650a9adb878c0c4 | 2,237 | py | Python | tiletool/data_groups.py | NCEAS/cdstool | 0c40a0ff620528c7750e27e8b00fbd22962a824c | [
"Apache-2.0"
] | null | null | null | tiletool/data_groups.py | NCEAS/cdstool | 0c40a0ff620528c7750e27e8b00fbd22962a824c | [
"Apache-2.0"
] | null | null | null | tiletool/data_groups.py | NCEAS/cdstool | 0c40a0ff620528c7750e27e8b00fbd22962a824c | [
"Apache-2.0"
] | null | null | null | from generate_HWITW_stats import (
do_temp_dp,
do_wind,
do_precip,
do_cloud_cover
)
from gen_extra_stats import (
do_runoff,
do_drought,
do_ocean_temp,
do_waves,
do_cloud_ceiling
)
# the variables we are interested, long name and short name.
# short name is used inside the netcdf fi... | 49.711111 | 196 | 0.705856 | 301 | 2,237 | 4.820598 | 0.292359 | 0.07581 | 0.02481 | 0.02481 | 0.039972 | 0.039972 | 0 | 0 | 0 | 0 | 0 | 0.017409 | 0.126956 | 2,237 | 45 | 197 | 49.711111 | 0.72555 | 0.060349 | 0 | 0 | 1 | 0 | 0.353025 | 0.103859 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8101141df05eba42d8bc22d54a39c8b871e5dfc9 | 436 | py | Python | [Kaleido-subs]/Movies & OVAs/Kud Wafter [BD]/ac_KudWafterBD_01.py | LightArrowsEXE/Encoding-Projects | 4ea96a5b25a7710f615ada5ff25949c496492b53 | [
"MIT"
] | 57 | 2019-01-31T17:32:46.000Z | 2022-03-23T05:46:51.000Z | [Kaleido-subs]/Movies & OVAs/Kud Wafter [BD]/ac_KudWafterBD_01.py | LightArrowsEXE/Encoding-Projects | 4ea96a5b25a7710f615ada5ff25949c496492b53 | [
"MIT"
] | null | null | null | [Kaleido-subs]/Movies & OVAs/Kud Wafter [BD]/ac_KudWafterBD_01.py | LightArrowsEXE/Encoding-Projects | 4ea96a5b25a7710f615ada5ff25949c496492b53 | [
"MIT"
] | 12 | 2019-04-30T06:16:13.000Z | 2022-03-14T16:15:07.000Z | #!/usr/bin/env python3
import ntpath
import lvsfunc as lvf
from acsuite import eztrim
path = f'BDMV/AKUDWAFTER/BDMV/STREAM/00002.m2ts'
src = lvf.src(path)
if __name__ == "__main__":
# Twice because there's both a 2.0 and a 5.1 track
eztrim(src, (24, -24), f"{path[:-5]}_1.wav", f"{ntpath.basename(__file__)[3:... | 31.142857 | 97 | 0.669725 | 78 | 436 | 3.461538 | 0.551282 | 0.014815 | 0.081481 | 0.096296 | 0.318519 | 0.318519 | 0.318519 | 0 | 0 | 0 | 0 | 0.082011 | 0.133028 | 436 | 13 | 98 | 33.538462 | 0.632275 | 0.16055 | 0 | 0 | 0 | 0 | 0.461538 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 0 | 1 |
81022679dd7a9c4a4a2d8b57474212e054405211 | 447 | py | Python | app/maintainer/urls.py | Dhruv-Sachdev1313/macports-webapp | ed3d8efceac4cfb694a51241cf81023ed10aade6 | [
"BSD-2-Clause"
] | 39 | 2018-05-09T02:14:52.000Z | 2022-03-07T20:31:44.000Z | app/maintainer/urls.py | Dhruv-Sachdev1313/macports-webapp | ed3d8efceac4cfb694a51241cf81023ed10aade6 | [
"BSD-2-Clause"
] | 337 | 2018-05-07T20:09:07.000Z | 2022-03-31T14:16:01.000Z | app/maintainer/urls.py | Dhruv-Sachdev1313/macports-webapp | ed3d8efceac4cfb694a51241cf81023ed10aade6 | [
"BSD-2-Clause"
] | 28 | 2018-05-09T18:03:07.000Z | 2022-03-30T02:21:56.000Z | from django.conf.urls import url
from django.urls import path
from rest_framework import routers
from maintainer import views
router = routers.DefaultRouter()
router.register("autocomplete/maintainer", views.MaintainerAutocompleteView, basename="maintainer_autocomplete")
router.register('maintainer', views.Maintainer... | 31.928571 | 112 | 0.778523 | 52 | 447 | 6.634615 | 0.538462 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.087248 | 447 | 13 | 113 | 34.384615 | 0.840686 | 0 | 0 | 0 | 0 | 0 | 0.225951 | 0.158837 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 1 |
8102d4dc4723216b698e4dc99669625128e8e505 | 1,592 | py | Python | models.py | OpnTec/open-event-scraper | 0a9b772e42abb5d871633551e21e0d553e335e46 | [
"MIT"
] | 1,946 | 2017-11-23T00:40:06.000Z | 2022-03-08T13:59:27.000Z | models.py | OpnTec/open-event-scraper | 0a9b772e42abb5d871633551e21e0d553e335e46 | [
"MIT"
] | 21 | 2016-04-26T06:56:44.000Z | 2016-06-06T06:40:22.000Z | models.py | OpenTechSummit/open-event-scraper | 0a9b772e42abb5d871633551e21e0d553e335e46 | [
"MIT"
] | 12 | 2016-04-24T21:58:25.000Z | 2016-06-08T12:35:51.000Z | class Track(object):
id = 0
header_line = 1
filename = ""
key_color = "#FF4D55"
name = ""
description = ""
track_image_url = "http://lorempixel.com/400/200"
location = ""
gid = ""
order = -1
def __init__(self, id, name, header_line, key_color, location, gid, order):
... | 21.513514 | 79 | 0.601131 | 193 | 1,592 | 4.481865 | 0.202073 | 0.101734 | 0.101734 | 0.098266 | 0.312139 | 0.184971 | 0.138728 | 0.083237 | 0 | 0 | 0 | 0.016522 | 0.277638 | 1,592 | 73 | 80 | 21.808219 | 0.735652 | 0 | 0 | 0.166667 | 0 | 0 | 0.040829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0 | 0 | 0.592593 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
81098ff5ab40348b3ad7698f271a1b57f059099c | 1,304 | py | Python | tests/test_interactive_prompt.py | patrickglass/creoconfig | fcc37e8e70dbce23a54eaf867e34ef35b8d44d7d | [
"MIT"
] | 1 | 2019-04-12T08:59:29.000Z | 2019-04-12T08:59:29.000Z | tests/test_interactive_prompt.py | patrickglass/creoconfig | fcc37e8e70dbce23a54eaf867e34ef35b8d44d7d | [
"MIT"
] | null | null | null | tests/test_interactive_prompt.py | patrickglass/creoconfig | fcc37e8e70dbce23a54eaf867e34ef35b8d44d7d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Module test_interactive_prompt
"""
import os
import sys
sys.path.append(os.path.realpath('.'))
from creoconfig import Config
from creoconfig.exceptions import *
def interactive_prompt():
c = Config()
c.add_option('strkey',
prefix='Please enter string',
help='This is ... | 24.603774 | 69 | 0.619632 | 178 | 1,304 | 4.38764 | 0.460674 | 0.020487 | 0.051216 | 0.056338 | 0.225352 | 0.176697 | 0.089629 | 0 | 0 | 0 | 0 | 0.008188 | 0.250767 | 1,304 | 52 | 70 | 25.076923 | 0.791198 | 0.042178 | 0 | 0 | 0 | 0 | 0.320099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.184211 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
810eed8050902bdbe44fc83437eac8b82e462e84 | 1,031 | py | Python | l8z1.py | hubieva-a/lab8 | e6f551dcd9f456ba0789af4e02f56c04461f763a | [
"MIT"
] | null | null | null | l8z1.py | hubieva-a/lab8 | e6f551dcd9f456ba0789af4e02f56c04461f763a | [
"MIT"
] | null | null | null | l8z1.py | hubieva-a/lab8 | e6f551dcd9f456ba0789af4e02f56c04461f763a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
if __name__ == '__main__':
students_list = []
while True:
command = input("Add, list, exit: ").lower()
if command == 'exit':
break
elif command == 'add':
last_name = input('Your last name^ ')
class_name = input('... | 25.775 | 79 | 0.447139 | 100 | 1,031 | 4.41 | 0.4 | 0.217687 | 0.058957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008651 | 0.439379 | 1,031 | 39 | 80 | 26.435897 | 0.754325 | 0.020369 | 0 | 0 | 0 | 0 | 0.102484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81197f79e6b7d3b2ea676de06b6d98ec4f9fee92 | 3,190 | py | Python | pylark/api_service_contact_employee_type_enums_update.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 7 | 2021-08-18T00:42:05.000Z | 2022-03-14T09:49:15.000Z | pylark/api_service_contact_employee_type_enums_update.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | null | null | null | pylark/api_service_contact_employee_type_enums_update.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 1 | 2022-03-14T09:49:20.000Z | 2022-03-14T09:49:20.000Z | # Code generated by lark_sdk_gen. DO NOT EDIT.
from pylark.lark_request import RawRequestReq, _new_method_option
from pylark import lark_type, lark_type_sheet, lark_type_approval
import attr
import typing
import io
@attr.s
class UpdateEmployeeTypeEnumPatchReqI18nContent(object):
locale: str = attr.ib(
de... | 35.842697 | 87 | 0.638871 | 371 | 3,190 | 5.312668 | 0.266846 | 0.048706 | 0.10553 | 0.144597 | 0.496702 | 0.496702 | 0.496702 | 0.474378 | 0.474378 | 0.454592 | 0 | 0.017194 | 0.197806 | 3,190 | 88 | 88 | 36.25 | 0.753029 | 0.108464 | 0 | 0.391892 | 1 | 0 | 0.173744 | 0.009554 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013514 | false | 0 | 0.067568 | 0.013514 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
811dc6f95e0371dd9151175f214edb14c262a94b | 3,775 | py | Python | hop/deploy/aws.py | denismo/hopper | af9d141f665199b58d5b6fc2a9dd46e8a930d38d | [
"Apache-2.0"
] | null | null | null | hop/deploy/aws.py | denismo/hopper | af9d141f665199b58d5b6fc2a9dd46e8a930d38d | [
"Apache-2.0"
] | 8 | 2016-09-29T10:35:03.000Z | 2016-10-05T09:27:16.000Z | hop/deploy/aws.py | denismo/hopper | af9d141f665199b58d5b6fc2a9dd46e8a930d38d | [
"Apache-2.0"
] | null | null | null | import boto3
import logging
def _updateTrigger(cfg, enabled=False):
"""Disables Kinesis/Lambda trigger"""
triggerID = _getTriggerID(cfg)
if triggerID is not None:
awslambda = boto3.client("lambda", region_name=cfg.get('region'))
awslambda.update_event_source_mapping(
UUID=trigge... | 40.159574 | 168 | 0.592848 | 373 | 3,775 | 5.898123 | 0.316354 | 0.065455 | 0.049091 | 0.050909 | 0.442727 | 0.417273 | 0.318636 | 0.260909 | 0.181818 | 0.16 | 0 | 0.008711 | 0.270199 | 3,775 | 94 | 169 | 40.159574 | 0.789837 | 0.041589 | 0 | 0.222222 | 0 | 0 | 0.197317 | 0.017328 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024691 | null | null | 0.012346 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81247f2b6ed65d4f6f1b76a08cc8c729ac29f26e | 1,866 | py | Python | intranet/home/tests.py | TechnoConserve/intranet | 3de4c553c8f4169c0d772d36e7a5710966918bd5 | [
"Apache-2.0"
] | null | null | null | intranet/home/tests.py | TechnoConserve/intranet | 3de4c553c8f4169c0d772d36e7a5710966918bd5 | [
"Apache-2.0"
] | 18 | 2020-06-05T19:16:00.000Z | 2022-03-01T17:55:00.000Z | intranet/home/tests.py | TechnoConserve/intranet | 3de4c553c8f4169c0d772d36e7a5710966918bd5 | [
"Apache-2.0"
] | 1 | 2020-07-01T20:55:16.000Z | 2020-07-01T20:55:16.000Z | import pytest
from pytest_django.asserts import assertContains, assertNotContains
@pytest.mark.django_db
def test_search_view_summary(client):
# Search based on summary should return two posts
response = client.get('/search/', {'query': 'normal'})
assert response.status_code == 200
assertContains(res... | 39.702128 | 84 | 0.744373 | 220 | 1,866 | 6.163636 | 0.3 | 0.123894 | 0.05531 | 0.073746 | 0.457965 | 0.359882 | 0.359882 | 0.287611 | 0.171091 | 0.171091 | 0 | 0.009506 | 0.154341 | 1,866 | 46 | 85 | 40.565217 | 0.84981 | 0.197749 | 0 | 0.37931 | 0 | 0 | 0.138795 | 0 | 0 | 0 | 0 | 0 | 0.551724 | 1 | 0.103448 | false | 0.034483 | 0.068966 | 0 | 0.172414 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
812555b5fbe80993fe5ee8000010d7a5a9814059 | 256 | py | Python | pacote-download/Python3CursoEmVideo/utilidadesCeV/dado/__init__.py | JoaoP-Rodrigues/CursoPython3-Aulas | 24d884eaa67485a12c8c3629c7f0fa5b8606a798 | [
"MIT"
] | null | null | null | pacote-download/Python3CursoEmVideo/utilidadesCeV/dado/__init__.py | JoaoP-Rodrigues/CursoPython3-Aulas | 24d884eaa67485a12c8c3629c7f0fa5b8606a798 | [
"MIT"
] | null | null | null | pacote-download/Python3CursoEmVideo/utilidadesCeV/dado/__init__.py | JoaoP-Rodrigues/CursoPython3-Aulas | 24d884eaa67485a12c8c3629c7f0fa5b8606a798 | [
"MIT"
] | null | null | null | def validacao(p):
ok = False
while not ok:
n = str(input(p)).replace(',', '.').strip()
if n.isalpha() or n == '':
print(f'ERRO! "{n}" é um preço inválido!')
else:
ok = True
return float(n)
| 25.6 | 53 | 0.445313 | 33 | 256 | 3.454545 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.378906 | 256 | 9 | 54 | 28.444444 | 0.716981 | 0 | 0 | 0 | 0 | 0 | 0.132813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8127caf7ec6e19703f007a1052437a50e4b67ddd | 825 | py | Python | accounts/urls.py | presola/onetable | 9c7798b08403657e34416885259d3eff3bc7aa50 | [
"Apache-2.0"
] | 2 | 2021-05-24T14:25:59.000Z | 2022-01-11T05:42:50.000Z | accounts/urls.py | presola/onetable | 9c7798b08403657e34416885259d3eff3bc7aa50 | [
"Apache-2.0"
] | 7 | 2021-02-14T17:20:58.000Z | 2021-02-16T17:29:59.000Z | accounts/urls.py | presola/onetable | 9c7798b08403657e34416885259d3eff3bc7aa50 | [
"Apache-2.0"
] | 3 | 2021-02-15T01:02:08.000Z | 2021-12-24T12:19:43.000Z | from django.urls import path
from .views import UserProfileView, UpdateProfilePassword, UserRegistrationView, VerifyUserLinkView, LoginView, \
ResetPasswordView, CreateNewPasswordView
urlpatterns = [
path('login/', LoginView.as_view(), name='login'),
path('register/', UserRegistrationView.as_view(), name='... | 55 | 113 | 0.751515 | 84 | 825 | 7.190476 | 0.321429 | 0.07947 | 0.13245 | 0.092715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09697 | 825 | 14 | 114 | 58.928571 | 0.810738 | 0 | 0 | 0 | 0 | 0 | 0.241212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.461538 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
812954e177dcb00edbc94c891b66d31fee265a2d | 436 | py | Python | cid/backends/sqlite3/base.py | managedbyq/cid | 211d57700e9d9e10d3688cd1874f9e2de3fe6059 | [
"BSD-3-Clause"
] | null | null | null | cid/backends/sqlite3/base.py | managedbyq/cid | 211d57700e9d9e10d3688cd1874f9e2de3fe6059 | [
"BSD-3-Clause"
] | null | null | null | cid/backends/sqlite3/base.py | managedbyq/cid | 211d57700e9d9e10d3688cd1874f9e2de3fe6059 | [
"BSD-3-Clause"
] | null | null | null | from django.db.backends.sqlite3.base import (
DatabaseWrapper as BaseSqliteWrapper
)
from ...cursor import CidCursorWrapper
class DatabaseWrapper(BaseSqliteWrapper):
def create_cursor(self, name=None):
if name:
base_cursor = super(DatabaseWrapper, self).create_cursor(name)
else:
... | 27.25 | 74 | 0.713303 | 45 | 436 | 6.777778 | 0.488889 | 0.118033 | 0.098361 | 0.196721 | 0.301639 | 0.301639 | 0.301639 | 0 | 0 | 0 | 0 | 0.00289 | 0.206422 | 436 | 15 | 75 | 29.066667 | 0.878613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
813727fc5c703ec461b96acba8972364420e8f0c | 1,657 | py | Python | Ch16/MRF.py | jason-168/MLCode | 429c17e004fb41ba16c371416c8f73833ab8fc1d | [
"Xnet",
"X11"
] | 146 | 2016-05-24T02:55:53.000Z | 2022-03-23T14:54:42.000Z | Ch16/MRF.py | coky/MarslandMLAlgo | 4277b24db88c4cb70d6b249921c5d21bc8f86eb4 | [
"Xnet",
"X11"
] | 1 | 2017-08-17T23:07:39.000Z | 2017-08-18T08:27:19.000Z | Ch16/MRF.py | coky/MarslandMLAlgo | 4277b24db88c4cb70d6b249921c5d21bc8f86eb4 | [
"Xnet",
"X11"
] | 94 | 2016-05-06T12:34:33.000Z | 2022-03-30T03:31:04.000Z |
# Code from Chapter 16 of Machine Learning: An Algorithmic Perspective (2nd Edition)
# by Stephen Marsland (http://stephenmonika.net)
# You are free to use, change, or redistribute the code in any way you wish for
# non-commercial purposes, but please maintain the name of the original author.
# This code comes with n... | 26.301587 | 84 | 0.557031 | 284 | 1,657 | 3.25 | 0.369718 | 0.023835 | 0.022752 | 0.017335 | 0.150596 | 0.147346 | 0.147346 | 0.106176 | 0.106176 | 0.106176 | 0 | 0.032534 | 0.295112 | 1,657 | 62 | 85 | 26.725806 | 0.757705 | 0.257695 | 0 | 0.340426 | 0 | 0 | 0.04095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042553 | null | null | 0.021277 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
813a7d8a5a93893175cd84781e5516beaa684027 | 394 | py | Python | ExplainAsync/templates.py | jjangsangy/ExplainAsync | 2bc291e0b355994857f3aa22fb8ca206da192d02 | [
"Apache-2.0"
] | 1 | 2021-12-13T18:13:58.000Z | 2021-12-13T18:13:58.000Z | ExplainAsync/templates.py | nimaarek/ExplainAsync | 2bc291e0b355994857f3aa22fb8ca206da192d02 | [
"Apache-2.0"
] | null | null | null | ExplainAsync/templates.py | nimaarek/ExplainAsync | 2bc291e0b355994857f3aa22fb8ca206da192d02 | [
"Apache-2.0"
] | 2 | 2017-12-17T17:04:25.000Z | 2021-12-13T18:13:23.000Z | from sanic_jinja2 import SanicJinja2
from dateutil.parser import parser as dateparser
__all__ = 'create_template_env', 'datetimefilter'
def datetimefilter(value, format='%Y/%m/%d %H:%M'):
p = dateparser()
dt = p.parse(value)
return dt.strftime(format)
def create_template_env():
jinja = SanicJinja2()
... | 26.266667 | 56 | 0.725888 | 49 | 394 | 5.653061 | 0.571429 | 0.101083 | 0.122744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009063 | 0.159898 | 394 | 14 | 57 | 28.142857 | 0.827795 | 0 | 0 | 0 | 0 | 0 | 0.154822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
813b8d066f2e832cfe9136de25ec58835107dc81 | 3,495 | py | Python | indicators/candlestickpatterns.py | webclinic017/pyStock-1 | 4ed6bf20130dcfc37d542bd5b3aec505a12f3106 | [
"MIT"
] | 45 | 2020-01-29T18:17:02.000Z | 2022-02-13T04:52:46.000Z | indicators/candlestickpatterns.py | webclinic017/pyStock-1 | 4ed6bf20130dcfc37d542bd5b3aec505a12f3106 | [
"MIT"
] | 27 | 2020-04-29T12:11:14.000Z | 2021-03-13T08:54:33.000Z | indicators/candlestickpatterns.py | webclinic017/pyStock-1 | 4ed6bf20130dcfc37d542bd5b3aec505a12f3106 | [
"MIT"
] | 8 | 2020-02-15T10:59:35.000Z | 2020-12-04T20:01:55.000Z | # Add import from parent directory possible
import matplotlib.pyplot as plt
from core.indicator import indicator
from indicators.candlestick import candlestick
class CandlestickPatterns(indicator):
def __init__(self, dataframe):
''' Constructor '''
indicator.__init__(self, 'CandlestickPatterns',
... | 41.607143 | 106 | 0.620315 | 354 | 3,495 | 6.011299 | 0.319209 | 0.129699 | 0.177632 | 0.286184 | 0.56156 | 0.541353 | 0.541353 | 0.494361 | 0.174812 | 0.06109 | 0 | 0.004985 | 0.253791 | 3,495 | 83 | 107 | 42.108434 | 0.810966 | 0.053219 | 0 | 0.242424 | 0 | 0 | 0.067196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075758 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
813c2390837fed187705db0d42f3dd38b50a820c | 1,382 | py | Python | 6.00 Introduction to Computer Science and Programming/handout/person.py | xmac1/mit-ocw | b2978cb39686f8fc3781d00378468c7b5867d676 | [
"Apache-2.0"
] | null | null | null | 6.00 Introduction to Computer Science and Programming/handout/person.py | xmac1/mit-ocw | b2978cb39686f8fc3781d00378468c7b5867d676 | [
"Apache-2.0"
] | null | null | null | 6.00 Introduction to Computer Science and Programming/handout/person.py | xmac1/mit-ocw | b2978cb39686f8fc3781d00378468c7b5867d676 | [
"Apache-2.0"
] | null | null | null | import datetime
class Person(object):
def __init__(self, name):
"""create a person with name name"""
self.name = name
try:
lastBlank = name.rindex(' ')
self.lastName = name[lastBlank+1:]
except:
self.lastName = name
self.bit... | 33.707317 | 59 | 0.589725 | 161 | 1,382 | 4.987578 | 0.440994 | 0.07472 | 0.052304 | 0.03736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014523 | 0.30246 | 1,382 | 40 | 60 | 34.55 | 0.818465 | 0 | 0 | 0 | 0 | 0 | 0.041502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.033333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
813c33d951cdb86716b0479a24350ef5f0dae3f5 | 1,878 | py | Python | examples/Cnb_test/TCUtil.py | zhangkunliang/BayesOptimization | 6d78c9e9f96239b0dbb85650a0d878e9410158ec | [
"MIT"
] | null | null | null | examples/Cnb_test/TCUtil.py | zhangkunliang/BayesOptimization | 6d78c9e9f96239b0dbb85650a0d878e9410158ec | [
"MIT"
] | null | null | null | examples/Cnb_test/TCUtil.py | zhangkunliang/BayesOptimization | 6d78c9e9f96239b0dbb85650a0d878e9410158ec | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
import xlrd
from xlutils.copy import copy as xl_copy
path = r'/examples/1.xlsx'
bookname = r"D:\ProgramFiles\MyProject\combo\examples\grain_bound\data\1.xlsx"
sheetname = "Sheet1"
class test:
def read_excel(self,bookname, sheetname):
# 打开Excel文件
wb = xlrd.open_workbook(boo... | 28.892308 | 78 | 0.50213 | 258 | 1,878 | 3.565891 | 0.337209 | 0.03913 | 0.026087 | 0.03913 | 0.306522 | 0.26087 | 0.16087 | 0.16087 | 0.115217 | 0.115217 | 0 | 0.029711 | 0.372737 | 1,878 | 64 | 79 | 29.34375 | 0.751273 | 0.158147 | 0 | 0.130435 | 0 | 0 | 0.063259 | 0.040895 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.021739 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
813d4888df9d47f25ac9be38775e83f4e8baa582 | 2,865 | py | Python | qualcoder/GUI/ui_dialog_view_image.py | ericbrasiln/QualCoder | 46108a0e43034bdeed77319bb09dc1a3227a8c3a | [
"MIT"
] | 150 | 2019-02-08T17:18:43.000Z | 2022-03-29T21:48:18.000Z | qualcoder/GUI/ui_dialog_view_image.py | ericbrasiln/QualCoder | 46108a0e43034bdeed77319bb09dc1a3227a8c3a | [
"MIT"
] | 568 | 2019-02-08T17:20:51.000Z | 2022-03-31T21:45:17.000Z | qualcoder/GUI/ui_dialog_view_image.py | ericbrasiln/QualCoder | 46108a0e43034bdeed77319bb09dc1a3227a8c3a | [
"MIT"
] | 41 | 2019-02-11T13:22:09.000Z | 2022-03-20T13:14:25.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_dialog_view_image.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog_view_image(object):
def setupUi(self, Dialog_... | 45.47619 | 113 | 0.733682 | 310 | 2,865 | 6.590323 | 0.341935 | 0.092511 | 0.146843 | 0.0372 | 0.0837 | 0.044053 | 0 | 0 | 0 | 0 | 0 | 0.024614 | 0.163351 | 2,865 | 62 | 114 | 46.209677 | 0.827701 | 0.067714 | 0 | 0 | 1 | 0 | 0.078829 | 0.025526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.042553 | 0 | 0.106383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4905032257ce411836ed5e05309dd85c7c39bca | 229 | py | Python | matrix-tools/subset_matrix.py | illoxian/pBWT-gaps | 5e1cbacc76250532ad01b71a17867f8fae86f3b6 | [
"MIT"
] | null | null | null | matrix-tools/subset_matrix.py | illoxian/pBWT-gaps | 5e1cbacc76250532ad01b71a17867f8fae86f3b6 | [
"MIT"
] | null | null | null | matrix-tools/subset_matrix.py | illoxian/pBWT-gaps | 5e1cbacc76250532ad01b71a17867f8fae86f3b6 | [
"MIT"
] | null | null | null | import sys
x = int(sys.argv[1])
y = int(sys.argv[2])
dx = int(sys.argv[3])
dy = int(sys.argv[4])
for i, l in enumerate(sys.stdin):
if i < y:
continue
if i >= y + dy:
break
print(l[x:x+dx].rstrip())
| 15.266667 | 33 | 0.532751 | 44 | 229 | 2.772727 | 0.522727 | 0.196721 | 0.327869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.275109 | 229 | 14 | 34 | 16.357143 | 0.710843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d49bfd1426aa96b31c65452cdf4203b3f1251538 | 1,370 | py | Python | py/delete.py | StefanLazea/servy | 02002c0a5b16342e379503af94bbd31517fb8664 | [
"MIT"
] | null | null | null | py/delete.py | StefanLazea/servy | 02002c0a5b16342e379503af94bbd31517fb8664 | [
"MIT"
] | 1 | 2019-12-10T15:30:57.000Z | 2019-12-10T15:30:57.000Z | py/delete.py | StefanLazea/servy | 02002c0a5b16342e379503af94bbd31517fb8664 | [
"MIT"
] | null | null | null | import sys
from utils import get_argument, display_loading_message, hide_loading_message_with_error, write_error
from drive import get_users_last_row, get_worksheet, delete_row
def delete_command(user, is_sudo):
ws = get_worksheet()
if "-r" in sys.argv:
row = int(get_argument(sys.argv, "-r"))
... | 37.027027 | 101 | 0.591241 | 162 | 1,370 | 4.666667 | 0.345679 | 0.166667 | 0.142857 | 0.174603 | 0.407407 | 0.371693 | 0.248677 | 0.248677 | 0 | 0 | 0 | 0.0044 | 0.336496 | 1,370 | 36 | 102 | 38.055556 | 0.827283 | 0 | 0 | 0.322581 | 0 | 0 | 0.120438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d49d2215e751af9b000abbe3dfecd5047ff91d3b | 354 | py | Python | tests/test_blobxfer.py | amishra-dev/blobxfer | ce226392f0ede609a0a82d7b9c0e3a959e1e089f | [
"MIT"
] | 147 | 2016-07-27T06:24:38.000Z | 2022-03-12T05:43:30.000Z | tests/test_blobxfer.py | amishra-dev/blobxfer | ce226392f0ede609a0a82d7b9c0e3a959e1e089f | [
"MIT"
] | 127 | 2016-09-01T08:06:51.000Z | 2022-02-18T02:52:42.000Z | tests/test_blobxfer.py | amishra-dev/blobxfer | ce226392f0ede609a0a82d7b9c0e3a959e1e089f | [
"MIT"
] | 47 | 2016-07-25T16:19:01.000Z | 2022-01-25T17:59:49.000Z | # coding=utf-8
"""Tests for miscellaneous"""
# stdlib imports
# non-stdlib imports
import azure.storage.common
# module under test
import blobxfer.version
def test_user_agent_monkey_patch():
verstr = 'blobxfer/{}'.format(blobxfer.version.__version__)
assert azure.storage.common._constants.USER_AGENT_STRING_P... | 23.6 | 79 | 0.765537 | 44 | 354 | 5.886364 | 0.681818 | 0.100386 | 0.138996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.129944 | 354 | 14 | 80 | 25.285714 | 0.837662 | 0.251412 | 0 | 0 | 0 | 0 | 0.042969 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d49e148900d748235b958dbefa767387970d8c5d | 1,329 | py | Python | examples/quickstatrt.py | h1ght1me/dataclass-coder | 916e07ca189f255ed7ee9e85bc4bfdbd42debffe | [
"MIT"
] | null | null | null | examples/quickstatrt.py | h1ght1me/dataclass-coder | 916e07ca189f255ed7ee9e85bc4bfdbd42debffe | [
"MIT"
] | null | null | null | examples/quickstatrt.py | h1ght1me/dataclass-coder | 916e07ca189f255ed7ee9e85bc4bfdbd42debffe | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from datetime import date
from decimal import Decimal
from typing import Optional
from dataclass_coder import DataclassCoder
@dataclass
class NestedField:
name: str
decimal_value: Decimal
@dataclass
class Person:
name: str
age: int
birthday: date
nested_fie... | 34.973684 | 161 | 0.681716 | 171 | 1,329 | 5.140351 | 0.251462 | 0.081911 | 0.086462 | 0.068259 | 0.357224 | 0.357224 | 0.357224 | 0.357224 | 0.275313 | 0.275313 | 0 | 0.043088 | 0.161776 | 1,329 | 37 | 162 | 35.918919 | 0.745961 | 0.297968 | 0 | 0.16 | 0 | 0.04 | 0.148547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.52 | 0.12 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
d49f5e4dfb89e8177276b8a99bb5e49eac8d2e54 | 3,287 | py | Python | python/neuroglancer/tool/save_meshes.py | janelia-cosem/neuroglancer | add6885da32498a1cfd1075a4c19aae8ffb5a6f2 | [
"Apache-2.0"
] | 2 | 2016-06-16T15:52:55.000Z | 2017-09-05T22:46:26.000Z | python/neuroglancer/tool/save_meshes.py | janelia-cosem/neuroglancer | add6885da32498a1cfd1075a4c19aae8ffb5a6f2 | [
"Apache-2.0"
] | 13 | 2020-11-20T20:08:36.000Z | 2021-05-26T18:11:31.000Z | python/neuroglancer/tool/save_meshes.py | janelia-cosem/neuroglancer | add6885da32498a1cfd1075a4c19aae8ffb5a6f2 | [
"Apache-2.0"
] | 1 | 2021-06-14T19:51:42.000Z | 2021-06-14T19:51:42.000Z | #!/usr/bin/env python
# @license
# Copyright 2020 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 47.637681 | 1,019 | 0.718588 | 476 | 3,287 | 4.884454 | 0.441176 | 0.015484 | 0.009032 | 0.011613 | 0.074839 | 0.074839 | 0.074839 | 0.067957 | 0.052473 | 0.052473 | 0 | 0.135125 | 0.151202 | 3,287 | 68 | 1,020 | 48.338235 | 0.698208 | 0.509887 | 0 | 0.052632 | 0 | 0 | 0.108805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.184211 | 0 | 0.263158 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d49fd73354c8b2e9c55ea4024d1314ff9b02021f | 1,443 | py | Python | probability.py | wrongu/modularity | 9186744916aa4b2ef808e6ee542b18e73ba5c9e1 | [
"MIT"
] | null | null | null | probability.py | wrongu/modularity | 9186744916aa4b2ef808e6ee542b18e73ba5c9e1 | [
"MIT"
] | null | null | null | probability.py | wrongu/modularity | 9186744916aa4b2ef808e6ee542b18e73ba5c9e1 | [
"MIT"
] | null | null | null | import torch
from math import log
def log_normalize(logp):
return logp - torch.logsumexp(logp.flatten(), dim=-1)
def log2prob(logp):
return torch.exp(log_normalize(logp))
def temperature(logp, temp):
return log_normalize(logp/temp)
def discrete_entropy(logp):
logp = log_normalize(logp)
plogp... | 34.357143 | 117 | 0.672904 | 233 | 1,443 | 3.935622 | 0.296137 | 0.065431 | 0.045802 | 0.02181 | 0.176663 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020282 | 0.214137 | 1,443 | 41 | 118 | 35.195122 | 0.78836 | 0.107415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.068966 | 0.103448 | 0.413793 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
d4a3f167bfbce7d822afe25b6f543eb7d6bc30f6 | 9,993 | py | Python | playground/itchat/itchat_message_echo.py | hcchengithub/peforth | 8141daab5529d9dbb06e67eb815e7b42c684811c | [
"MIT"
] | 27 | 2017-09-06T05:38:11.000Z | 2022-01-01T21:43:57.000Z | playground/itchat/itchat_message_echo.py | andrewtholt/peforth | 110feaf77e8fc1dc3e45b835c3e0e5a8abd3bf34 | [
"MIT"
] | 5 | 2018-06-29T08:42:11.000Z | 2020-12-16T10:39:52.000Z | playground/itchat/itchat_message_echo.py | andrewtholt/peforth | 110feaf77e8fc1dc3e45b835c3e0e5a8abd3bf34 | [
"MIT"
] | 4 | 2018-03-31T00:55:20.000Z | 2021-02-04T23:55:35.000Z | import peforth;peforth.ok(loc=locals(),cmd='include xray.f')
import itchat
@itchat.msg_register(itchat.content.TEXT)
def text_reply(msg):
peforth.ok('11> ',glo=globals(),loc=locals(),cmd='constant bp11 ." --- breakpoint 11 ---" cr')
return msg.text
itchat.auto_login()
itchat.run()
'''
Login successfully a... | 48.985294 | 1,857 | 0.578305 | 778 | 9,993 | 7.241645 | 0.303342 | 0.009762 | 0.01278 | 0.013845 | 0.627973 | 0.602236 | 0.602236 | 0.589812 | 0.589812 | 0.589812 | 0 | 0.15957 | 0.236165 | 9,993 | 203 | 1,858 | 49.226601 | 0.578541 | 0 | 0 | 0 | 0 | 0 | 0.205479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4a554a9933ee781da653c1e49acecd2c4c46584 | 531 | py | Python | journey11/src/lib/pubsubenv.py | parrisma/AI-intuition | 3b081696b1d226815e029cbb536fac5e4d3de9a7 | [
"MIT"
] | null | null | null | journey11/src/lib/pubsubenv.py | parrisma/AI-intuition | 3b081696b1d226815e029cbb536fac5e4d3de9a7 | [
"MIT"
] | 4 | 2020-04-26T18:18:22.000Z | 2020-05-16T14:47:32.000Z | journey11/src/lib/pubsubenv.py | parrisma/AI-intuition | 3b081696b1d226815e029cbb536fac5e4d3de9a7 | [
"MIT"
] | null | null | null | import logging
from pubsub import pub
class PubSubEnv:
_singleton_init = False
class PubSubEnvExceptionHandler(pub.IListenerExcHandler):
def __call__(self, listener_id, topic_obj):
logging.info("Listener Id [{}] raised an exception".format(listener_id))
return
def __init_... | 29.5 | 84 | 0.691149 | 53 | 531 | 6.603774 | 0.584906 | 0.111429 | 0.097143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237288 | 531 | 17 | 85 | 31.235294 | 0.864198 | 0.06968 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d4a80f5defad1d2a6664949131c01cdb173b0f55 | 530 | py | Python | modules/PIGPIO/setup.py | daniego/rover-engine | 9254e28b3548f24448a078813ab0b0268abcf17a | [
"Apache-2.0"
] | null | null | null | modules/PIGPIO/setup.py | daniego/rover-engine | 9254e28b3548f24448a078813ab0b0268abcf17a | [
"Apache-2.0"
] | null | null | null | modules/PIGPIO/setup.py | daniego/rover-engine | 9254e28b3548f24448a078813ab0b0268abcf17a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name='pigpio',
version='1.33',
author='joan',
author_email='joan@abyz.co.uk',
maintainer='joan',
maintainer_email='joan@abyz.co.uk',
url='http://abyz.co.uk/rpi/pigpio/python.html/',
description='Raspberry gpio modul... | 29.444444 | 77 | 0.650943 | 70 | 530 | 4.857143 | 0.585714 | 0.070588 | 0.094118 | 0.088235 | 0.241176 | 0.141176 | 0.141176 | 0 | 0 | 0 | 0 | 0.006993 | 0.190566 | 530 | 17 | 78 | 31.176471 | 0.785548 | 0.037736 | 0 | 0 | 0 | 0 | 0.430255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
d4ab7f7bb4e91b07de8934d9fb16d40db5571f94 | 701 | py | Python | antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/allocation/allocation.py | AntaresSimulatorTeam/antaREST | d686d2a86a52737c211ae67f3cee591f559909f2 | [
"Apache-2.0"
] | 2 | 2020-09-30T11:40:22.000Z | 2020-11-09T09:06:30.000Z | antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/allocation/allocation.py | AntaresSimulatorTeam/antaREST | d686d2a86a52737c211ae67f3cee591f559909f2 | [
"Apache-2.0"
] | 542 | 2021-01-11T13:23:47.000Z | 2022-03-31T15:38:10.000Z | antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/allocation/allocation.py | AntaresSimulatorTeam/antaREST | d686d2a86a52737c211ae67f3cee591f559909f2 | [
"Apache-2.0"
] | 1 | 2020-10-01T12:18:15.000Z | 2020-10-01T12:18:15.000Z | from antarest.study.storage.rawstudy.model.filesystem.config.model import (
FileStudyTreeConfig,
)
from antarest.study.storage.rawstudy.model.filesystem.folder_node import (
FolderNode,
)
from antarest.study.storage.rawstudy.model.filesystem.inode import TREE
from antarest.study.storage.rawstudy.model.filesyste... | 31.863636 | 95 | 0.701854 | 77 | 701 | 6.350649 | 0.480519 | 0.09816 | 0.139059 | 0.196319 | 0.384458 | 0.384458 | 0.384458 | 0 | 0 | 0 | 0 | 0 | 0.198288 | 701 | 21 | 96 | 33.380952 | 0.870107 | 0 | 0 | 0 | 0 | 0 | 0.009986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4ae339b73577ad1ced1b610247f0b14e8383e9f | 7,829 | py | Python | hw1/run_expert_pytorch.py | zjzijielu/CS294-homework | 1e42152acd7dd22eba657be546efdffb406c008e | [
"MIT"
] | null | null | null | hw1/run_expert_pytorch.py | zjzijielu/CS294-homework | 1e42152acd7dd22eba657be546efdffb406c008e | [
"MIT"
] | null | null | null | hw1/run_expert_pytorch.py | zjzijielu/CS294-homework | 1e42152acd7dd22eba657be546efdffb406c008e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Code to load an expert policy and generate roll-out data for behavioral cloning.
Example usage:
python run_expert_pytorch.py experts/Humanoid-v1.pkl Humanoid-v2 --render \
--num_rollouts 20
Author of this script and included expert policies: Jonathan Ho (hoj@openai.com)
"""
... | 29.322097 | 115 | 0.65615 | 1,087 | 7,829 | 4.558418 | 0.206992 | 0.028254 | 0.030272 | 0.00888 | 0.383249 | 0.301514 | 0.282947 | 0.261554 | 0.227245 | 0.227245 | 0 | 0.014673 | 0.207817 | 7,829 | 266 | 116 | 29.432331 | 0.784263 | 0.116107 | 0 | 0.336957 | 1 | 0 | 0.089418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.081522 | 0 | 0.157609 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4b3889e30d98a731546d71a722440ee1d136207 | 1,409 | py | Python | delta/utils/postprocess/postprocess_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | 1 | 2019-07-15T11:42:38.000Z | 2019-07-15T11:42:38.000Z | delta/utils/postprocess/postprocess_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | null | null | null | delta/utils/postprocess/postprocess_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | 33.547619 | 80 | 0.677786 | 207 | 1,409 | 4.497585 | 0.550725 | 0.064447 | 0.029001 | 0.034372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010399 | 0.180979 | 1,409 | 41 | 81 | 34.365854 | 0.79636 | 0.574166 | 0 | 0 | 0 | 0 | 0.033628 | 0 | 0 | 0 | 0 | 0.02439 | 0.0625 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4b41d3acd9ded0e438de3156041b471212d60bd | 472 | py | Python | education_platform/apps/courses/admin.py | elifnurkarakoc/django-education-platform | a8430e436c0bc7ac95be51a0b54e7c726576e38c | [
"MIT"
] | null | null | null | education_platform/apps/courses/admin.py | elifnurkarakoc/django-education-platform | a8430e436c0bc7ac95be51a0b54e7c726576e38c | [
"MIT"
] | null | null | null | education_platform/apps/courses/admin.py | elifnurkarakoc/django-education-platform | a8430e436c0bc7ac95be51a0b54e7c726576e38c | [
"MIT"
] | 1 | 2021-09-02T19:06:56.000Z | 2021-09-02T19:06:56.000Z | from django.contrib import admin
from .models import Course,Category,Tag
@admin.register(Course)
class CourseAdmin(admin.ModelAdmin):
list_display = ('name','available','teacher')
list_filter = ('available',)
search_fields = ('name','description')
@admin.register(Category)
class CategoryAdmin(admin.Model... | 26.222222 | 49 | 0.726695 | 52 | 472 | 6.5 | 0.5 | 0.115385 | 0.159763 | 0.195266 | 0.242604 | 0.242604 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114407 | 472 | 18 | 50 | 26.222222 | 0.808612 | 0 | 0 | 0.153846 | 0 | 0 | 0.12685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4b82895bc3b51b8f8830701dfa09be9721c3604 | 396 | py | Python | microsoft/gestures/finger_pose.py | dany74q/python-microsoft-project-prague-sdk | abfea98d75e16c2d8862973e61970d99122f9cec | [
"MIT"
] | 1 | 2017-07-30T10:17:38.000Z | 2017-07-30T10:17:38.000Z | microsoft/gestures/finger_pose.py | dany74q/python-microsoft-project-prague-sdk | abfea98d75e16c2d8862973e61970d99122f9cec | [
"MIT"
] | null | null | null | microsoft/gestures/finger_pose.py | dany74q/python-microsoft-project-prague-sdk | abfea98d75e16c2d8862973e61970d99122f9cec | [
"MIT"
] | null | null | null | from microsoft.gestures.pose_direction import PoseDirection
import collections
class FingerPose(object):
def __init__(self, fingers, finger_flexion, pose_direction=PoseDirection.Undefined):
self._context = fingers if isinstance(fingers, collections.Iterable) or not fingers else [fingers]
self._fin... | 39.6 | 106 | 0.785354 | 45 | 396 | 6.6 | 0.577778 | 0.175084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 396 | 9 | 107 | 44 | 0.883929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4b9e9843f6087032d6faa5daa4ee473b15834bd | 1,055 | py | Python | test/test_translations.py | uscheller/android-frameit | c413d273a87f139c4135e02c7f7e9d7a6b965e63 | [
"Apache-2.0"
] | null | null | null | test/test_translations.py | uscheller/android-frameit | c413d273a87f139c4135e02c7f7e9d7a6b965e63 | [
"Apache-2.0"
] | 4 | 2021-06-25T15:50:09.000Z | 2021-10-05T20:28:04.000Z | test/test_translations.py | uscheller/android-frameit | c413d273a87f139c4135e02c7f7e9d7a6b965e63 | [
"Apache-2.0"
] | null | null | null | import unittest
from translations import Translations
class TranslationsTest(unittest.TestCase):
def test_translations(self):
translations = Translations() \
.add("screen1", "de-DE", "Titel", "Text") \
.add("screen1", "en-GB", "Title", "Message")
self.assertEqual(translatio... | 45.869565 | 117 | 0.68436 | 128 | 1,055 | 5.5 | 0.296875 | 0.127841 | 0.09375 | 0.213068 | 0.50142 | 0.50142 | 0.50142 | 0.50142 | 0.208807 | 0.153409 | 0 | 0.006674 | 0.147867 | 1,055 | 22 | 118 | 47.954545 | 0.776418 | 0 | 0 | 0 | 0 | 0 | 0.305213 | 0.136493 | 0 | 0 | 0 | 0 | 0.352941 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4bc49c7f6ecb41671fb2fb7e3d151a44368fb49 | 2,183 | py | Python | pygeoapi/__init__.py | plant99/pygeoapi | 4dfbe42a7ddecc04e76cbcfe5e7c376318919d9e | [
"MIT"
] | 2 | 2020-10-08T12:41:02.000Z | 2020-10-30T02:04:17.000Z | pygeoapi/__init__.py | plant99/pygeoapi | 4dfbe42a7ddecc04e76cbcfe5e7c376318919d9e | [
"MIT"
] | null | null | null | pygeoapi/__init__.py | plant99/pygeoapi | 4dfbe42a7ddecc04e76cbcfe5e7c376318919d9e | [
"MIT"
] | 1 | 2020-11-16T12:17:27.000Z | 2020-11-16T12:17:27.000Z | # =================================================================
#
# Authors: Tom Kralidis <tomkralidis@gmail.com>
#
# Copyright (c) 2018 Tom Kralidis
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in ... | 35.209677 | 76 | 0.698122 | 287 | 2,183 | 5.222997 | 0.480836 | 0.058706 | 0.017345 | 0.021348 | 0.028019 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004372 | 0.161704 | 2,183 | 61 | 77 | 35.786885 | 0.814754 | 0.594595 | 0 | 0 | 0 | 0 | 0.115023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.086957 | 0.173913 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d4c3835f6be2e5badf8ad65e858d5d4815298532 | 1,851 | py | Python | pyfilter/timeseries/models/random_walk.py | tingiskhan/pyfilter | 2d7ef0638c0c0fe70d8e01d6bcf8131d901144fd | [
"MIT"
] | 61 | 2018-07-12T17:17:37.000Z | 2022-03-19T17:37:59.000Z | pyfilter/timeseries/models/random_walk.py | tingiskhan/pyfilter | 2d7ef0638c0c0fe70d8e01d6bcf8131d901144fd | [
"MIT"
] | 12 | 2018-08-26T20:01:03.000Z | 2021-12-04T16:42:48.000Z | pyfilter/timeseries/models/random_walk.py | tingiskhan/pyfilter | 2d7ef0638c0c0fe70d8e01d6bcf8131d901144fd | [
"MIT"
] | 9 | 2019-01-20T16:31:03.000Z | 2021-12-24T07:10:04.000Z | from torch.distributions import Distribution, Normal, Independent, AffineTransform, TransformedDistribution
import torch
from numbers import Number
from ..affine import AffineProcess
from ...distributions import DistributionWrapper
from ...typing import ArrayType
def _f(x, s, _):
return x.values
def _g(x, s, _)... | 32.473684 | 117 | 0.63101 | 224 | 1,851 | 5.075893 | 0.40625 | 0.058047 | 0.014072 | 0.021108 | 0.082674 | 0.082674 | 0.082674 | 0.082674 | 0.082674 | 0.082674 | 0 | 0.010167 | 0.256078 | 1,851 | 56 | 118 | 33.053571 | 0.815541 | 0.256618 | 0 | 0.148148 | 0 | 0 | 0.007806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.222222 | 0.074074 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d4cd7ac33e038341f14a38ee99883a6e04fd952e | 2,404 | py | Python | oscar_news/cms_plugins.py | okfish/django-oscar-news | c511e8a522d8ed200fd4df55152865b8ed8e84d6 | [
"BSD-3-Clause"
] | 2 | 2016-04-18T15:57:37.000Z | 2016-07-08T21:37:34.000Z | oscar_news/cms_plugins.py | okfish/django-oscar-news | c511e8a522d8ed200fd4df55152865b8ed8e84d6 | [
"BSD-3-Clause"
] | 1 | 2016-08-06T22:57:36.000Z | 2016-10-05T19:35:20.000Z | oscar_news/cms_plugins.py | okfish/django-oscar-news | c511e8a522d8ed200fd4df55152865b8ed8e84d6 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os.path
from django.utils.translation import ugettext_lazy as _
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from .forms import LatestEntriesForm
from .models import NewsCateg... | 33.859155 | 93 | 0.732945 | 259 | 2,404 | 6.602317 | 0.370656 | 0.061404 | 0.106433 | 0.096491 | 0.223977 | 0.202924 | 0.096491 | 0.096491 | 0.096491 | 0 | 0 | 0.000505 | 0.176789 | 2,404 | 70 | 94 | 34.342857 | 0.863567 | 0.049085 | 0 | 0.166667 | 0 | 0 | 0.096646 | 0.022948 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.020833 | 0.708333 | 0.020833 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
d4d7556518669b520df6c98bacd03b1010c2ce86 | 13,067 | py | Python | www/src/Lib/test/test_abc.py | stefanhoelzl/brython | 433d272e7bb0e3c0994392f8f265bc39e87854f7 | [
"BSD-3-Clause"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | www/src/Lib/test/test_abc.py | SungBeom/BBAM_Brython | 107036ad20a94af1d43e5ce5bd7c73e6a470d687 | [
"BSD-3-Clause"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | check-python33-manual/samples/standard_library_337/Lib/test/test_abc.py | DaveKaretnyk/parsing-utils2 | 40085bbd399fa605f2f2a4708d385a64ffc907de | [
"MIT"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | # Copyright 2007 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Unit tests for abc.py."""
import unittest
from test import support
import abc
from inspect import isabstract
class TestLegacyAPI(unittest.TestCase):
def test_abstractproperty_basics(self):
@abc.abstr... | 33.249364 | 78 | 0.568225 | 1,378 | 13,067 | 5.245283 | 0.115385 | 0.073603 | 0.086331 | 0.051882 | 0.65938 | 0.535556 | 0.491284 | 0.480769 | 0.45047 | 0.390149 | 0 | 0.006326 | 0.322568 | 13,067 | 392 | 79 | 33.334184 | 0.810212 | 0.043927 | 0 | 0.646724 | 0 | 0 | 0.019811 | 0 | 0 | 0 | 0 | 0 | 0.321937 | 1 | 0.190883 | false | 0.14245 | 0.011396 | 0.05698 | 0.373219 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d4d796f4ebd692803cb13829747232120ebd2d36 | 1,320 | py | Python | aim/db/migration/alembic_migrations/versions/88a419c00e59_add_path_mode.py | timeu/aci-integration-module | 20d1d0a7a51f3fb1c71c77e9e1e0b063e23b9b06 | [
"Apache-2.0"
] | 7 | 2017-11-20T12:45:36.000Z | 2021-11-14T12:52:48.000Z | aim/db/migration/alembic_migrations/versions/88a419c00e59_add_path_mode.py | timeu/aci-integration-module | 20d1d0a7a51f3fb1c71c77e9e1e0b063e23b9b06 | [
"Apache-2.0"
] | 92 | 2016-03-30T04:48:18.000Z | 2022-01-19T21:25:27.000Z | aim/db/migration/alembic_migrations/versions/88a419c00e59_add_path_mode.py | timeu/aci-integration-module | 20d1d0a7a51f3fb1c71c77e9e1e0b063e23b9b06 | [
"Apache-2.0"
] | 11 | 2017-12-23T15:55:24.000Z | 2021-08-03T12:59:33.000Z | # Copyright (c) 2019 Cisco Systems
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 27.5 | 78 | 0.708333 | 182 | 1,320 | 5.071429 | 0.681319 | 0.065005 | 0.028169 | 0.03467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059217 | 0.206818 | 1,320 | 47 | 79 | 28.085106 | 0.82235 | 0.575758 | 0 | 0 | 0 | 0 | 0.16171 | 0.057621 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.1875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d4dbcabef88185eb7c4d12a793ff00f5dfbfc148 | 3,224 | py | Python | base/views.py | elduha/python2-ass1 | 1baf7c5f1769436eabe5d5c03f2adcbc6e773bfe | [
"MIT"
] | null | null | null | base/views.py | elduha/python2-ass1 | 1baf7c5f1769436eabe5d5c03f2adcbc6e773bfe | [
"MIT"
] | null | null | null | base/views.py | elduha/python2-ass1 | 1baf7c5f1769436eabe5d5c03f2adcbc6e773bfe | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView, FormView
from django.urls import reverse_lazy
from django.contrib.auth.views import LoginView
from dj... | 29.851852 | 82 | 0.698821 | 374 | 3,224 | 5.885027 | 0.272727 | 0.054521 | 0.043617 | 0.038164 | 0.192185 | 0.129487 | 0.08905 | 0.08905 | 0.08905 | 0.08905 | 0 | 0 | 0.197891 | 3,224 | 107 | 83 | 30.130841 | 0.851121 | 0.029777 | 0 | 0.223684 | 0 | 0 | 0.064661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0 | 0.184211 | 0.013158 | 0.763158 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
d4e4702c32845dbe2f2fd66c8c8066d47ec4f61e | 661 | py | Python | longclaw/basket/forms.py | MstatiliS/longclaw | 874e35ece3710d1c30ebdadfec9708caa9b6553f | [
"MIT"
] | null | null | null | longclaw/basket/forms.py | MstatiliS/longclaw | 874e35ece3710d1c30ebdadfec9708caa9b6553f | [
"MIT"
] | null | null | null | longclaw/basket/forms.py | MstatiliS/longclaw | 874e35ece3710d1c30ebdadfec9708caa9b6553f | [
"MIT"
] | null | null | null | from django import forms
class AddToBasketForm(forms.Form):
quantity = forms.IntegerField()
product_slug = forms.CharField(widget=forms.HiddenInput())
variant_ref = forms.CharField(widget=forms.HiddenInput())
def __init__(self, request=None, *args, **kwargs):
self.request = request
... | 33.05 | 72 | 0.642965 | 71 | 661 | 5.802817 | 0.605634 | 0.106796 | 0.097087 | 0.121359 | 0.174757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251135 | 661 | 19 | 73 | 34.789474 | 0.832323 | 0.045386 | 0 | 0 | 0 | 0 | 0.040268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d4e65647d273c69bb22e11d0b87624def0185d47 | 2,210 | py | Python | lizard_apps/models.py | lizardsystem/lizard-apps | 1ae2f753dae092563f325fac31f2b006543dcced | [
"MIT"
] | null | null | null | lizard_apps/models.py | lizardsystem/lizard-apps | 1ae2f753dae092563f325fac31f2b006543dcced | [
"MIT"
] | 4 | 2016-02-10T09:59:25.000Z | 2020-03-05T12:27:01.000Z | lizard_apps/models.py | lizardsystem/lizard-apps | 1ae2f753dae092563f325fac31f2b006543dcced | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# (c) Nelen & Schuurmans, see LICENSE.rst.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from django.db import models
from lizard_apps import managers
class Application(models.Model):
"... | 25.697674 | 74 | 0.679186 | 259 | 2,210 | 5.602317 | 0.432432 | 0.041351 | 0.057891 | 0.033081 | 0.097174 | 0.055824 | 0 | 0 | 0 | 0 | 0 | 0.002907 | 0.221719 | 2,210 | 85 | 75 | 26 | 0.840698 | 0.199095 | 0 | 0.1875 | 0 | 0 | 0.079907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.729167 | 0.020833 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
d4e93a4ee418261adfa9ea11ec7f3768fff5ddcd | 386 | py | Python | tests/integration/test_admin.py | affiliprint/python-intercom | d7d9de8deba3db1acc3a779c6f258d47620c16f4 | [
"MIT"
] | 77 | 2018-01-12T20:14:37.000Z | 2022-03-21T04:57:24.000Z | tests/integration/test_admin.py | affiliprint/python-intercom | d7d9de8deba3db1acc3a779c6f258d47620c16f4 | [
"MIT"
] | 40 | 2018-01-11T01:43:37.000Z | 2022-02-16T19:24:35.000Z | tests/integration/test_admin.py | affiliprint/python-intercom | d7d9de8deba3db1acc3a779c6f258d47620c16f4 | [
"MIT"
] | 60 | 2018-03-20T00:38:56.000Z | 2022-02-22T15:49:24.000Z | # -*- coding: utf-8 -*-
import os
import unittest
from intercom.client import Client
intercom = Client(
os.environ.get('INTERCOM_PERSONAL_ACCESS_TOKEN'))
class AdminTest(unittest.TestCase):
def test(self):
# Iterate over all admins
for admin in intercom.admins.all():
self.assert... | 21.444444 | 53 | 0.676166 | 46 | 386 | 5.608696 | 0.652174 | 0.108527 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003322 | 0.220207 | 386 | 17 | 54 | 22.705882 | 0.853821 | 0.11658 | 0 | 0 | 0 | 0 | 0.088757 | 0.088757 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4eb282c32ff0ef56f667d2183131875a72c0ddb | 234 | py | Python | spa/blog/urls.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | spa/blog/urls.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | spa/blog/urls.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | from django.conf.urls import patterns, url
urlpatterns = patterns(
'',
url(r'^blog/(?P<slug>[\w\d_.-]+)/?$', 'spa.blog.views.entry', name='blog_entry_slug'),
url(r'^$', 'spa.blog.views.index', name='blog_index')
)
| 29.25 | 91 | 0.602564 | 33 | 234 | 4.151515 | 0.575758 | 0.160584 | 0.175182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 234 | 7 | 92 | 33.428571 | 0.691919 | 0 | 0 | 0 | 0 | 0 | 0.422907 | 0.127753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4eb9846cee51c4df9077c25738bb51314b64afd | 1,851 | py | Python | utility/sprocket_utility.py | m95music/yukarin | 87e4e813e1b846720ef7a89162edf1c379700619 | [
"MIT"
] | 139 | 2018-02-24T21:33:47.000Z | 2022-03-19T03:59:05.000Z | utility/sprocket_utility.py | m95music/yukarin | 87e4e813e1b846720ef7a89162edf1c379700619 | [
"MIT"
] | 73 | 2018-02-17T14:27:11.000Z | 2021-06-05T18:11:09.000Z | utility/sprocket_utility.py | m95music/yukarin | 87e4e813e1b846720ef7a89162edf1c379700619 | [
"MIT"
] | 31 | 2018-03-05T18:08:18.000Z | 2022-03-28T05:23:16.000Z | import yaml
from scipy.signal import firwin, lfilter
class SpeakerYML(object):
def __init__(self, ymlf):
# open yml file
with open(ymlf) as yf:
conf = yaml.safe_load(yf)
# read parameter from yml file
self.wav_fs = conf['wav']['fs']
self.wav_bit = conf['wav']['... | 28.921875 | 83 | 0.591572 | 258 | 1,851 | 4.011628 | 0.290698 | 0.054106 | 0.042512 | 0.034783 | 0.193237 | 0.127536 | 0.127536 | 0.127536 | 0.127536 | 0.127536 | 0 | 0.015086 | 0.247974 | 1,851 | 63 | 84 | 29.380952 | 0.728448 | 0.038358 | 0 | 0.195122 | 0 | 0 | 0.140282 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.121951 | false | 0.073171 | 0.04878 | 0 | 0.243902 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d4ec97281d243804bc14a059478b5ea3d8abf810 | 2,129 | py | Python | test.py | sthagen/boisgera-bitstream | 9de5d780e70ef46f53275844bc7043631a902b84 | [
"MIT"
] | 88 | 2015-06-25T08:13:57.000Z | 2021-09-28T15:11:48.000Z | test.py | sthagen/bitstream | 9de5d780e70ef46f53275844bc7043631a902b84 | [
"MIT"
] | 22 | 2017-02-16T14:59:12.000Z | 2022-01-15T19:51:22.000Z | test.py | sthagen/bitstream | 9de5d780e70ef46f53275844bc7043631a902b84 | [
"MIT"
] | 14 | 2015-03-30T17:40:58.000Z | 2022-03-09T01:13:27.000Z | #!/usr/bin/env python
# Python Standard Library
from __future__ import print_function
import doctest
import sys
# Third-Party Libraries
import yaml
# Doctest Helper
# ------------------------------------------------------------------------------
# The issue: b'A' displays as b'A' in Python 3 but as 'A' in Python 2.... | 31.776119 | 80 | 0.636919 | 258 | 2,129 | 5.108527 | 0.46124 | 0.045524 | 0.013657 | 0.044006 | 0.050076 | 0.050076 | 0 | 0 | 0 | 0 | 0 | 0.010011 | 0.155472 | 2,129 | 66 | 81 | 32.257576 | 0.723026 | 0.352748 | 0 | 0.057143 | 0 | 0 | 0.080088 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.028571 | false | 0 | 0.114286 | 0 | 0.2 | 0.171429 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4f03bd1727a9c7d1c5c90fb86db5e48f091f8ad | 4,474 | py | Python | testScripts/testMultiOffboard.py | Open-UAV/Firmware | 800b7552315a06dd453d310c8904659c01cf44b4 | [
"MIT"
] | 8 | 2018-07-30T17:44:08.000Z | 2021-01-22T07:42:21.000Z | testScripts/testMultiOffboard.py | Open-UAV/Firmware | 800b7552315a06dd453d310c8904659c01cf44b4 | [
"MIT"
] | 12 | 2017-10-16T02:07:46.000Z | 2018-10-08T18:40:28.000Z | testScripts/testMultiOffboard.py | Open-UAV/Firmware | 800b7552315a06dd453d310c8904659c01cf44b4 | [
"MIT"
] | 13 | 2017-08-04T02:07:58.000Z | 2021-01-05T07:26:24.000Z | """
testing offboard positon control with a simple takeoff script
"""
import rospy
from mavros_msgs.msg import State
from geometry_msgs.msg import PoseStamped, Point, Quaternion
import math
import numpy
from mavros_msgs.srv import CommandBool, CommandTOL, SetMode
from std_msgs.msg import Float64
import sys
class ... | 32.897059 | 139 | 0.600358 | 589 | 4,474 | 4.388795 | 0.220713 | 0.013927 | 0.011605 | 0.081238 | 0.328433 | 0.090135 | 0.076209 | 0.076209 | 0.076209 | 0.076209 | 0 | 0.035714 | 0.286544 | 4,474 | 135 | 140 | 33.140741 | 0.774123 | 0.061913 | 0 | 0.147368 | 0 | 0 | 0.072383 | 0.014088 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084211 | null | null | 0.126316 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4f1210c59f9b022ebe044b4e6c94790cedb9f25 | 1,967 | py | Python | python/graphscope/analytical/app/pagerank_nx.py | LI-Mingyu/GraphScope-MY | 942060983d3f7f8d3a3377467386e27aba285b33 | [
"Apache-2.0"
] | 1,521 | 2020-10-28T03:20:24.000Z | 2022-03-31T12:42:51.000Z | python/graphscope/analytical/app/pagerank_nx.py | LI-Mingyu/GraphScope-MY | 942060983d3f7f8d3a3377467386e27aba285b33 | [
"Apache-2.0"
] | 850 | 2020-12-15T03:17:32.000Z | 2022-03-31T11:40:13.000Z | python/graphscope/analytical/app/pagerank_nx.py | LI-Mingyu/GraphScope-MY | 942060983d3f7f8d3a3377467386e27aba285b33 | [
"Apache-2.0"
] | 180 | 2020-11-10T03:43:21.000Z | 2022-03-28T11:13:31.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache... | 33.338983 | 97 | 0.699542 | 271 | 1,967 | 4.98893 | 0.553506 | 0.044379 | 0.051036 | 0.057692 | 0.093195 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01912 | 0.202339 | 1,967 | 58 | 98 | 33.913793 | 0.842575 | 0.69395 | 0 | 0 | 0 | 0 | 0.123529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.166667 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d4fa624eab5a6e7e15ff39dd064d0d8cb74851ab | 4,125 | py | Python | v1.0.0.test/toontown/coghq/CountryClubRoom.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-01T15:46:43.000Z | 2021-07-23T16:26:48.000Z | v1.0.0.test/toontown/coghq/CountryClubRoom.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 1 | 2019-06-29T03:40:05.000Z | 2021-06-13T01:15:16.000Z | v1.0.0.test/toontown/coghq/CountryClubRoom.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-28T21:18:46.000Z | 2021-02-25T06:37:25.000Z | from panda3d.core import *
from direct.showbase import DirectObject
from direct.fsm import ClassicFSM, State
from toontown.toonbase import ToontownGlobals
from toontown.coghq import CountryClubRoomSpecs
from direct.directnotify import DirectNotifyGlobal
import random
class CountryClubRoom(DirectObject.DirectObject):
... | 33.536585 | 351 | 0.642182 | 384 | 4,125 | 6.848958 | 0.341146 | 0.022814 | 0.034221 | 0.020532 | 0.024335 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006831 | 0.254788 | 4,125 | 123 | 352 | 33.536585 | 0.848731 | 0 | 0 | 0.089109 | 0 | 0 | 0.078284 | 0.015996 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188119 | false | 0.059406 | 0.079208 | 0.049505 | 0.386139 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d4fabf5a86c9ec4e647067425b812c3349cbe6ce | 16,977 | py | Python | Old Friar stuff/Friars_Simulator.py | Aenimus/Pythonic-Simulators | d74233e82c66dc814244da14ec24cb477e337926 | [
"MIT"
] | 1 | 2020-02-07T13:21:51.000Z | 2020-02-07T13:21:51.000Z | Old Friar stuff/Friars_Simulator.py | Aenimus/Pythonic-Simulators | d74233e82c66dc814244da14ec24cb477e337926 | [
"MIT"
] | null | null | null | Old Friar stuff/Friars_Simulator.py | Aenimus/Pythonic-Simulators | d74233e82c66dc814244da14ec24cb477e337926 | [
"MIT"
] | null | null | null | import collections
import random
import math
import statistics
class Utils():
def log(message):
print(message)
class Simulator():
def do_quest(self, player_state):
heart = FriarLoc()
neck = FriarLoc()
elbow = FriarLoc()
while heart.progress < 4: #1 progress for each ... | 33.954 | 193 | 0.611121 | 2,073 | 16,977 | 4.767004 | 0.111433 | 0.066788 | 0.031168 | 0.016393 | 0.371382 | 0.328577 | 0.281016 | 0.249241 | 0.226068 | 0.202591 | 0 | 0.013244 | 0.301761 | 16,977 | 499 | 194 | 34.022044 | 0.820398 | 0.070154 | 0 | 0.260204 | 0 | 0.002551 | 0.031014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.010204 | 0.076531 | 0.403061 | 0.002551 | 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 | 0 | 0 | 0 | 0 | 1 |
d4fad0d237fbbae9608de79175da62fb3d348e66 | 50,530 | py | Python | statsmodels/tsa/vector_ar/var_model.py | escheffel/statsmodels | bc70147c4c7ea00b6ac7256bbaf107902983c189 | [
"BSD-3-Clause"
] | 2 | 2017-01-05T22:44:37.000Z | 2018-04-26T08:34:00.000Z | statsmodels/tsa/vector_ar/var_model.py | escheffel/statsmodels | bc70147c4c7ea00b6ac7256bbaf107902983c189 | [
"BSD-3-Clause"
] | null | null | null | statsmodels/tsa/vector_ar/var_model.py | escheffel/statsmodels | bc70147c4c7ea00b6ac7256bbaf107902983c189 | [
"BSD-3-Clause"
] | null | null | null | """
Vector Autoregression (VAR) processes
References
----------
Lutkepohl (2005) New Introduction to Multiple Time Series Analysis
"""
from __future__ import division
from collections import defaultdict
from cStringIO import StringIO
import numpy as np
import numpy.linalg as npl
from numpy.linalg import cholesky as... | 29.566998 | 111 | 0.556422 | 6,486 | 50,530 | 4.220321 | 0.135831 | 0.012275 | 0.006941 | 0.001754 | 0.235159 | 0.182296 | 0.150221 | 0.135645 | 0.110328 | 0.100975 | 0 | 0.01315 | 0.322759 | 50,530 | 1,708 | 112 | 29.584309 | 0.786739 | 0.060024 | 0 | 0.188889 | 0 | 0 | 0.044656 | 0 | 0 | 0 | 0 | 0.001756 | 0.002778 | 0 | null | null | 0.001389 | 0.033333 | null | null | 0.018056 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4fc867b22fec5186ad24040c096836edbc846c2 | 4,953 | py | Python | generate_mnli_training_directory.py | ljzc/syntactic-augmentation-nli | d2724a2f580d0e5dfeb0f854e5d138247ff19d24 | [
"MIT"
] | null | null | null | generate_mnli_training_directory.py | ljzc/syntactic-augmentation-nli | d2724a2f580d0e5dfeb0f854e5d138247ff19d24 | [
"MIT"
] | null | null | null | generate_mnli_training_directory.py | ljzc/syntactic-augmentation-nli | d2724a2f580d0e5dfeb0f854e5d138247ff19d24 | [
"MIT"
] | null | null | null | import os
import shutil
import time
from generate_all import origin_training_dir
from generate_all import augmentation_training_set_dir as output_dir
from generate_all import augmentation_output_dir as augmentation_set_dir
from generate_all import path_to_bert_base_modle
from generate_all import path_to_bert_train_cod... | 36.419118 | 301 | 0.747224 | 742 | 4,953 | 4.52965 | 0.169811 | 0.088367 | 0.041654 | 0.043737 | 0.514133 | 0.428444 | 0.342458 | 0.214817 | 0.198155 | 0.198155 | 0 | 0.003647 | 0.114274 | 4,953 | 136 | 302 | 36.419118 | 0.76248 | 0 | 0 | 0.171171 | 1 | 0 | 0.405935 | 0.186314 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018018 | false | 0.036036 | 0.09009 | 0 | 0.126126 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be08bd25b0d891be5f0307473bf49570ffaa74fb | 28,035 | py | Python | feature_selection.py | vsuomi/fibroid-classification | 749e77af4dbd28b00184a9aa9e32b9d891493bd4 | [
"MIT"
] | null | null | null | feature_selection.py | vsuomi/fibroid-classification | 749e77af4dbd28b00184a9aa9e32b9d891493bd4 | [
"MIT"
] | null | null | null | feature_selection.py | vsuomi/fibroid-classification | 749e77af4dbd28b00184a9aa9e32b9d891493bd4 | [
"MIT"
] | 1 | 2020-04-09T01:46:50.000Z | 2020-04-09T01:46:50.000Z | # -*- coding: utf-8 -*-
'''
Created on Fri Jan 18 10:59:43 2019
@author:
Visa Suomi
Turku University Hospital
January 2019
@description:
This code is used for feature selection for different classification models
'''
#%% clear variables
%reset -f
%clear
#%% import necessary libra... | 37.034346 | 124 | 0.613198 | 3,148 | 28,035 | 5.212834 | 0.149301 | 0.02925 | 0.020475 | 0.012188 | 0.596161 | 0.566362 | 0.490494 | 0.440707 | 0.410299 | 0.395125 | 0 | 0.013793 | 0.281077 | 28,035 | 756 | 125 | 37.083333 | 0.800397 | 0.090601 | 0 | 0.290948 | 0 | 0 | 0.111173 | 0.006512 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056034 | null | null | 0.008621 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be08fe4a53eede689dfd349352f0407634aac89e | 2,940 | py | Python | spacebodies/spacebody.py | PredictTheSky/spacebodies | a861f786a1bca0bcabef0131fb13f658fa8c735c | [
"MIT"
] | 14 | 2015-01-08T12:39:06.000Z | 2018-10-15T06:03:40.000Z | spacebodies/spacebody.py | PredictTheSky/spacebodies | a861f786a1bca0bcabef0131fb13f658fa8c735c | [
"MIT"
] | 4 | 2015-02-16T22:16:47.000Z | 2018-07-28T08:59:20.000Z | spacebodies/spacebody.py | PredictTheSky/spacebodies | a861f786a1bca0bcabef0131fb13f658fa8c735c | [
"MIT"
] | 4 | 2015-02-13T20:27:25.000Z | 2019-03-07T09:46:17.000Z | # -*- coding: utf-8 -*-
"""
spacebodies.spacebody
---------------------
This module provides the Abstract Base Class which is used for implementing
space bodies in the library. You should subclass this to add more bodies/
event types.
"""
import abc
import datetime
import ephem
from .forecast import Forecast
from .... | 33.033708 | 78 | 0.62449 | 379 | 2,940 | 4.704485 | 0.379947 | 0.035895 | 0.022434 | 0.016826 | 0.030286 | 0.030286 | 0 | 0 | 0 | 0 | 0 | 0.004308 | 0.289456 | 2,940 | 88 | 79 | 33.409091 | 0.84921 | 0.272789 | 0 | 0 | 0 | 0 | 0.005635 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.106383 | false | 0.042553 | 0.12766 | 0.021277 | 0.340426 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be09fc90fc79d93e0ce388dabc02e245ef765bc9 | 3,716 | py | Python | nipype/interfaces/niftyfit/tests/test_auto_FitQt1.py | dPys/nipype | 75030b29297808e7c9a9e91b411b685154dff60b | [
"Apache-2.0"
] | 1 | 2020-02-24T15:44:50.000Z | 2020-02-24T15:44:50.000Z | nipype/interfaces/niftyfit/tests/test_auto_FitQt1.py | dPys/nipype | 75030b29297808e7c9a9e91b411b685154dff60b | [
"Apache-2.0"
] | 1 | 2017-01-05T01:24:33.000Z | 2017-01-05T01:24:33.000Z | nipype/interfaces/niftyfit/tests/test_auto_FitQt1.py | wtriplett/nipype | 388f140fceaf55438a987e9cdfa2a8e995428afd | [
"Apache-2.0"
] | 1 | 2020-12-16T16:36:48.000Z | 2020-12-16T16:36:48.000Z | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..qt1 import FitQt1
def test_FitQt1_inputs():
input_map = dict(
acceptance=dict(argstr="-acceptance %f",),
args=dict(argstr="%s",),
b1map=dict(argstr="-b1map %s", extensions=None,),
comp_file=dict(
argstr="-comp... | 36.431373 | 77 | 0.556781 | 439 | 3,716 | 4.567198 | 0.236902 | 0.169576 | 0.112219 | 0.066334 | 0.273317 | 0.246384 | 0.222444 | 0.222444 | 0.222444 | 0.222444 | 0 | 0.015236 | 0.275834 | 3,716 | 101 | 78 | 36.792079 | 0.72984 | 0.013724 | 0 | 0.255319 | 1 | 0 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.021277 | false | 0 | 0.010638 | 0 | 0.031915 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be0b4e67dfe83402052af427249236ee27ba556b | 6,858 | py | Python | citlab_article_separation_measure/baseline_measure.py | CITlabRostock/article-separation-measure | 66eb3a2a3695e79b897958ae2412dc4c7dc88058 | [
"Apache-2.0"
] | 8 | 2021-05-03T11:53:25.000Z | 2022-03-31T13:07:42.000Z | article_separation_measure/baseline_measure.py | CITlabRostock/citlab-article-separation-new | 814364bf81552eefbe0ce60bbb9ec9e8ca63baf4 | [
"OLDAP-2.7"
] | null | null | null | article_separation_measure/baseline_measure.py | CITlabRostock/citlab-article-separation-new | 814364bf81552eefbe0ce60bbb9ec9e8ca63baf4 | [
"OLDAP-2.7"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
class BaselineMeasureResult(object):
def __init__(self):
self.page_wise_per_dist_tol_tick_per_line_recall = []
self.page_wise_per_dist_tol_tick_recall = []
self.page_wise_recall = []
self.recall = 0.0
self.page_wise_per_dist_tol_t... | 48.638298 | 119 | 0.721202 | 1,035 | 6,858 | 4.311111 | 0.105314 | 0.090991 | 0.129987 | 0.181981 | 0.796728 | 0.679516 | 0.634245 | 0.555132 | 0.481174 | 0.404975 | 0 | 0.007691 | 0.203704 | 6,858 | 140 | 120 | 48.985714 | 0.809376 | 0.127588 | 0 | 0.142857 | 0 | 0 | 0.069134 | 0.034819 | 0 | 0 | 0 | 0.007143 | 0.10989 | 1 | 0.098901 | false | 0 | 0.010989 | 0 | 0.164835 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be1089caae4805d5ff2a5c3417df5aa77629e825 | 91,365 | py | Python | pattern/vector/__init__.py | aesmin/pattern | 673e77a71d77e6017d24511872e1450b1b0357df | [
"BSD-3-Clause"
] | 1 | 2017-07-10T01:18:44.000Z | 2017-07-10T01:18:44.000Z | pattern/vector/__init__.py | aesmin/pattern | 673e77a71d77e6017d24511872e1450b1b0357df | [
"BSD-3-Clause"
] | null | null | null | pattern/vector/__init__.py | aesmin/pattern | 673e77a71d77e6017d24511872e1450b1b0357df | [
"BSD-3-Clause"
] | null | null | null | #### PATTERN | VECTOR ##############################################################################
# -*- coding: utf-8 -*-
# Copyright (c) 2010 University of Antwerp, Belgium
# Author: Tom De Smedt <tom@organisms.be>
# License: BSD (see LICENSE.txt for details).
# http://www.clips.ua.ac.be/pages/pattern
############... | 41.987592 | 114 | 0.5707 | 12,078 | 91,365 | 4.258569 | 0.103163 | 0.006766 | 0.002916 | 0.003111 | 0.226363 | 0.170584 | 0.121824 | 0.093924 | 0.081423 | 0.069544 | 0 | 0.016652 | 0.298035 | 91,365 | 2,175 | 115 | 42.006897 | 0.78525 | 0.205013 | 0 | 0.252891 | 0 | 0.000771 | 0.020259 | 0.001523 | 0 | 0 | 0 | 0 | 0.000771 | 0 | null | null | 0.003855 | 0.017733 | null | null | 0.000771 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be14072266634e5001af3776bf921283eaa98ca8 | 4,226 | py | Python | tests/test_cavity.py | tkarabela/ensight-reader | bb92ffe42e1b3c72c6f6964e08df5b2fde1fadcc | [
"MIT"
] | null | null | null | tests/test_cavity.py | tkarabela/ensight-reader | bb92ffe42e1b3c72c6f6964e08df5b2fde1fadcc | [
"MIT"
] | null | null | null | tests/test_cavity.py | tkarabela/ensight-reader | bb92ffe42e1b3c72c6f6964e08df5b2fde1fadcc | [
"MIT"
] | 1 | 2022-03-26T22:26:34.000Z | 2022-03-26T22:26:34.000Z | import numpy as np
import tempfile
import os.path as op
from ensight2obj import ensight2obj
from ensight2vtk import ensight2vtk
from ensightreader import read_case, EnsightGeometryFile, GeometryPart, IdHandling, ElementType, VariableLocation, \
VariableType
ENSIGHT_CASE_PATH = "./data/cavity/cavity.case"
def te... | 39.12963 | 116 | 0.713914 | 528 | 4,226 | 5.435606 | 0.223485 | 0.045296 | 0.031359 | 0.016725 | 0.316376 | 0.176307 | 0.098955 | 0.045296 | 0.045296 | 0.045296 | 0 | 0.027621 | 0.203266 | 4,226 | 107 | 117 | 39.495327 | 0.82477 | 0.037151 | 0 | 0.105263 | 0 | 0 | 0.039892 | 0.006156 | 0 | 0 | 0 | 0.009346 | 0.473684 | 1 | 0.039474 | false | 0 | 0.078947 | 0 | 0.118421 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be1432a424fbc6a4e0381bdee40119cd7c68a2b4 | 583 | py | Python | software/python/hex_split.py | Jowjowf/iob-soc | f2b79ca862e6bd2dbd4555b588117cc01a040119 | [
"MIT"
] | 2 | 2021-03-17T22:33:45.000Z | 2021-07-31T09:17:34.000Z | software/python/hex_split.py | Jowjowf/iob-soc | f2b79ca862e6bd2dbd4555b588117cc01a040119 | [
"MIT"
] | 1 | 2020-10-21T11:05:33.000Z | 2020-10-21T11:05:33.000Z | software/python/hex_split.py | Jowjowf/iob-soc | f2b79ca862e6bd2dbd4555b588117cc01a040119 | [
"MIT"
] | 2 | 2020-08-30T10:52:34.000Z | 2021-11-14T20:03:51.000Z | #!/usr/bin/python
import string
from sys import argv
firmware = argv[1]
f0 = open(firmware+"_0.hex", "w");
f1 = open(firmware+"_1.hex", "w");
f2 = open(firmware+"_2.hex", "w");
f3 = open(firmware+"_3.hex", "w");
main_file = open(firmware+".hex", "r");
text = main_file.readlines();
for line in text:
if(line ==... | 20.821429 | 39 | 0.511149 | 95 | 583 | 3.073684 | 0.368421 | 0.205479 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066964 | 0.231561 | 583 | 27 | 40 | 21.592593 | 0.584821 | 0.027444 | 0 | 0 | 0 | 0 | 0.09894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be1703f201ae6d3cd02fc6931f14cbd3c4c8a998 | 845 | py | Python | tests/unit/nn/misc.py | brando90/learn2learn | 515731b3c96334e857050c9479740b8d4be125a4 | [
"MIT"
] | 2 | 2022-01-08T19:03:57.000Z | 2022-01-10T13:36:41.000Z | tests/unit/nn/misc.py | brando90/learn2learn | 515731b3c96334e857050c9479740b8d4be125a4 | [
"MIT"
] | null | null | null | tests/unit/nn/misc.py | brando90/learn2learn | 515731b3c96334e857050c9479740b8d4be125a4 | [
"MIT"
] | 2 | 2022-02-28T10:28:40.000Z | 2022-02-28T10:58:14.000Z | #!/usr/bin/env python3
import unittest
import torch
import learn2learn as l2l
def close(x, y):
return (x - y).norm(p=2) <= 1e-8
class NNMiscTests(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def _get_scale_shape(self, shape):
if isinstance(shape, int)... | 22.837838 | 63 | 0.526627 | 110 | 845 | 3.909091 | 0.436364 | 0.069767 | 0.051163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037234 | 0.332544 | 845 | 36 | 64 | 23.472222 | 0.725177 | 0.024852 | 0 | 0.08 | 0 | 0 | 0.009721 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.2 | false | 0.08 | 0.12 | 0.04 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
be1b51cf7b293406e70aee8458aae4ca8f2764ad | 666 | py | Python | day05/naughty_tester.py | JulienCote/advent_of_code_2015 | 567a589c6b1c161ebfba8dcf1b9f3bc1bf6e0d00 | [
"MIT"
] | null | null | null | day05/naughty_tester.py | JulienCote/advent_of_code_2015 | 567a589c6b1c161ebfba8dcf1b9f3bc1bf6e0d00 | [
"MIT"
] | null | null | null | day05/naughty_tester.py | JulienCote/advent_of_code_2015 | 567a589c6b1c161ebfba8dcf1b9f3bc1bf6e0d00 | [
"MIT"
] | null | null | null | #!/usr/bin/python2.7
nice_string_counter = 0
with open('input.txt') as fp:
for line in fp:
previous_char = ''
vowel_count = 0
double_char = False
evil_chars = False
for char in line:
last_2_char = previous_char + char
if ((last_2_char == 'ab') or (last_2_char == 'cd') or (last_2_char == 'pq') or (... | 20.8125 | 105 | 0.633634 | 109 | 666 | 3.605505 | 0.40367 | 0.063613 | 0.114504 | 0.083969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.234234 | 666 | 31 | 106 | 21.483871 | 0.747059 | 0.028529 | 0 | 0 | 0 | 0 | 0.034215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be1c4b847be6a237e9722647daa2548782499059 | 114 | py | Python | melt/config.py | jabbalaci/melt | 9edc9e5de5d6d809ee2313fce457790036c6f608 | [
"MIT"
] | 5 | 2019-10-20T15:43:07.000Z | 2022-02-27T19:21:09.000Z | melt/config.py | jabbalaci/melt | 9edc9e5de5d6d809ee2313fce457790036c6f608 | [
"MIT"
] | 1 | 2019-10-21T11:37:43.000Z | 2020-04-11T19:27:38.000Z | melt/config.py | jabbalaci/melt | 9edc9e5de5d6d809ee2313fce457790036c6f608 | [
"MIT"
] | 1 | 2019-10-23T22:23:20.000Z | 2019-10-23T22:23:20.000Z | """
Some constants.
"""
VERSION = "0.1.0"
BAT = "bat"
LIGHT_THEME = "GitHub"
LEFT_SIDE, RIGHT_SIDE = range(2)
| 9.5 | 32 | 0.622807 | 17 | 114 | 4 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.184211 | 114 | 11 | 33 | 10.363636 | 0.688172 | 0.131579 | 0 | 0 | 0 | 0 | 0.153846 | 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 | 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 | 1 |
be1edc0db001578fae64212c696b1ebf1a1f51c0 | 1,299 | py | Python | src/db/sql_create.py | huoyinghui/awesome-web | 4c5576b42872a83b17931086b89ab23960f27051 | [
"MIT"
] | null | null | null | src/db/sql_create.py | huoyinghui/awesome-web | 4c5576b42872a83b17931086b89ab23960f27051 | [
"MIT"
] | 9 | 2018-06-03T07:56:22.000Z | 2018-06-04T04:31:15.000Z | src/db/sql_create.py | huoyinghui/awesome-web | 4c5576b42872a83b17931086b89ab23960f27051 | [
"MIT"
] | null | null | null | # 1 - imports
from datetime import date
from base import Session, engine, Base
# from actor import Actor
# from contact_details import ContactDetails
# from movie import Movie
# from stuntman import Stuntman
from user import User
from blog import Blog
from comment import Comment
# from address import Address
from fake... | 29.522727 | 143 | 0.726713 | 202 | 1,299 | 4.529703 | 0.331683 | 0.032787 | 0.02623 | 0.048087 | 0.115847 | 0.115847 | 0.115847 | 0.115847 | 0.115847 | 0.08306 | 0 | 0.016144 | 0.141647 | 1,299 | 44 | 144 | 29.522727 | 0.804484 | 0.256351 | 0 | 0 | 0 | 0 | 0.018848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.043478 | 0.304348 | 0 | 0.304348 | 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 | 0 | 0 | 0 | 0 | 1 |
be26f9134e88c4506316760097f2fc31e59a3a4e | 6,977 | py | Python | Analytic/FDM_SubHalo_Potential.py | benvchurch/project-eva | 38e3e61ec1913fb2d94fbb8a5db53b90ec32ed66 | [
"Unlicense"
] | 1 | 2017-07-27T19:02:16.000Z | 2017-07-27T19:02:16.000Z | Analytic/FDM_SubHalo_Potential.py | benvchurch/project-eva | 38e3e61ec1913fb2d94fbb8a5db53b90ec32ed66 | [
"Unlicense"
] | null | null | null | Analytic/FDM_SubHalo_Potential.py | benvchurch/project-eva | 38e3e61ec1913fb2d94fbb8a5db53b90ec32ed66 | [
"Unlicense"
] | null | null | null | from __future__ import division
import numpy as np
from numpy import pi, log10, sqrt
from shared import *
import cosmolopy
import hmf_module_sharpk as modhmf
import hmf_module_sharpk_analyt as modhmf_a
m22 = 1
ksol = 7.2978749 * 10**11
def cutoff(axion_mass):
return 10**8.7 * pow(axion_mass, -3/2)
def SolitonM... | 33.066351 | 161 | 0.570876 | 1,258 | 6,977 | 3.13275 | 0.126391 | 0.01421 | 0.01218 | 0.018269 | 0.525755 | 0.494291 | 0.481096 | 0.46714 | 0.450393 | 0.431109 | 0 | 0.08642 | 0.222159 | 6,977 | 210 | 162 | 33.22381 | 0.639764 | 0.00903 | 0 | 0.448485 | 0 | 0 | 0.011143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042424 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be2776ff641031ce0791d3430be49198539cbc07 | 1,642 | py | Python | src/compas_rhino/uninstall_plugin.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | 1 | 2019-03-27T22:46:29.000Z | 2019-03-27T22:46:29.000Z | src/compas_rhino/uninstall_plugin.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | null | null | null | src/compas_rhino/uninstall_plugin.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import os
import compas_rhino
from compas._os import remove_symlink
__all__ = ['uninstall_plugin']
def uninstall_plugin(plugin, version=None):
"""Uninstall a Rhino Python Command Plugin.
Paramete... | 24.147059 | 91 | 0.612667 | 183 | 1,642 | 5.240437 | 0.420765 | 0.062565 | 0.050052 | 0.035454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020301 | 0.190012 | 1,642 | 67 | 92 | 24.507463 | 0.700752 | 0.356273 | 0 | 0 | 0 | 0 | 0.16616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.347826 | 0.130435 | 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 | 0 | 0 | 0 | 0 | 1 |
be27e36e6a09aa4ff35ed61eb425d399a6208774 | 6,124 | py | Python | itests/asgard/backends/test_users_backend.py | pabarros/asgard-api | 3c10d5f99f584df5e8011558cf42e8b201d567e9 | [
"MIT"
] | 3 | 2020-01-10T02:16:09.000Z | 2020-02-19T18:42:37.000Z | itests/asgard/backends/test_users_backend.py | pabarros/asgard-api | 3c10d5f99f584df5e8011558cf42e8b201d567e9 | [
"MIT"
] | 13 | 2020-01-15T18:22:35.000Z | 2021-03-31T19:21:54.000Z | itests/asgard/backends/test_users_backend.py | rockerbacon/asgard-api | 1c1eb19225ace4bbecb06b65b1b9c4ab131eb24a | [
"MIT"
] | 6 | 2020-03-07T09:49:19.000Z | 2021-07-25T03:14:10.000Z | import asgard.services.users
from asgard.backends.users import UsersBackend
from asgard.exceptions import DuplicateEntity
from asgard.models.account import Account
from asgard.models.user import User
from itests.util import (
BaseTestCase,
USER_WITH_MULTIPLE_ACCOUNTS_DICT,
USER_WITH_MULTIPLE_ACCOUNTS_ID,
... | 36.023529 | 95 | 0.676682 | 754 | 6,124 | 5.095491 | 0.122016 | 0.079125 | 0.074961 | 0.074961 | 0.79646 | 0.726184 | 0.646018 | 0.609058 | 0.578345 | 0.507028 | 0 | 0.001945 | 0.244285 | 6,124 | 169 | 96 | 36.236686 | 0.82822 | 0 | 0 | 0.471429 | 0 | 0 | 0.01214 | 0 | 0 | 0 | 0 | 0.005917 | 0.178571 | 1 | 0 | false | 0 | 0.042857 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be29dac785e25d92b4a9b3b3b8e763ee91d2a158 | 623 | py | Python | flamingo/default_settings.py | ejoerns/flamingo | 1d61c99c9ad34dd0a2a652f80783226051e07238 | [
"Apache-2.0"
] | null | null | null | flamingo/default_settings.py | ejoerns/flamingo | 1d61c99c9ad34dd0a2a652f80783226051e07238 | [
"Apache-2.0"
] | null | null | null | flamingo/default_settings.py | ejoerns/flamingo | 1d61c99c9ad34dd0a2a652f80783226051e07238 | [
"Apache-2.0"
] | null | null | null | import flamingo
# plugins
CORE_PLUGINS = [
'flamingo.core.plugins.MetaDataProcessor',
]
DEFAULT_PLUGINS = [
'flamingo.core.plugins.HTML',
'flamingo.core.plugins.reStructuredText',
'flamingo.core.plugins.rstImage',
'flamingo.core.plugins.rstFile',
]
PLUGINS = []
# templating
TEMPLATING_ENGINE = '... | 16.394737 | 53 | 0.725522 | 68 | 623 | 6.441176 | 0.352941 | 0.150685 | 0.216895 | 0.118721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.147673 | 623 | 37 | 54 | 16.837838 | 0.819209 | 0.05297 | 0 | 0 | 0 | 0 | 0.410256 | 0.329915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
be2a181d73b4dc62d28bd4da1bdb352372233dae | 390 | py | Python | src/q0504.py | mirzadm/ctci-5th-py | ba2f4de0aba4c7c04d7e0ddf3120ce312d9e5d66 | [
"MIT"
] | null | null | null | src/q0504.py | mirzadm/ctci-5th-py | ba2f4de0aba4c7c04d7e0ddf3120ce312d9e5d66 | [
"MIT"
] | 1 | 2018-07-04T23:10:20.000Z | 2018-07-04T23:10:20.000Z | src/q0504.py | mirzadm/ctci-5th-py | ba2f4de0aba4c7c04d7e0ddf3120ce312d9e5d66 | [
"MIT"
] | null | null | null | """Chapter 5: Question 4.
A simple condition to check if a number is power of 2: n & (n-1) == 0
Example:
n = 1000
1000 & (1000 - 1)) = 1000 & 0111 = 0000 = 0
"""
def is_power_of_two(n):
"""Checks if n is a power of 2.
Args:
n: Non-negative integer.
"""
if n < 0:
raise Valu... | 19.5 | 72 | 0.533333 | 64 | 390 | 3.203125 | 0.5625 | 0.102439 | 0.087805 | 0.039024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136882 | 0.325641 | 390 | 19 | 73 | 20.526316 | 0.642586 | 0.592308 | 0 | 0 | 0 | 0 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
076ff7f288ae3e101b0b411debeee5fea728fdf5 | 2,265 | py | Python | find_other_frameworks_usage.py | koreyou/chainer-usage-analysis | f394b7e38f0608110a4e70e04c0fc91449a4351b | [
"CC0-1.0"
] | null | null | null | find_other_frameworks_usage.py | koreyou/chainer-usage-analysis | f394b7e38f0608110a4e70e04c0fc91449a4351b | [
"CC0-1.0"
] | null | null | null | find_other_frameworks_usage.py | koreyou/chainer-usage-analysis | f394b7e38f0608110a4e70e04c0fc91449a4351b | [
"CC0-1.0"
] | null | null | null | import requests
import re
import time
import datetime
import numpy as np
"""
Prerequisite: Create access tokens
You need private access token to have full access to Github search
API.
Generate your access token in [here](https://github.com/settings/tokens)
you don't need to tick on any access permission because you ar... | 31.027397 | 134 | 0.658278 | 324 | 2,265 | 4.478395 | 0.42284 | 0.041351 | 0.039283 | 0.02481 | 0.045486 | 0.045486 | 0.045486 | 0.045486 | 0.045486 | 0.045486 | 0 | 0.034444 | 0.218102 | 2,265 | 72 | 135 | 31.458333 | 0.784867 | 0.033113 | 0 | 0.085106 | 1 | 0 | 0.160507 | 0.06283 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.106383 | 0.021277 | 0.234043 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07737be3dc16c5dece138cef2a706ea2dc81cc2e | 239 | py | Python | python/tests/test_insertion_sort.py | bjgman12/data-structures-and-algorithms | 802dbf70c38275b3842697f81788d81313810946 | [
"MIT"
] | null | null | null | python/tests/test_insertion_sort.py | bjgman12/data-structures-and-algorithms | 802dbf70c38275b3842697f81788d81313810946 | [
"MIT"
] | 1 | 2020-12-15T07:10:56.000Z | 2020-12-15T07:10:56.000Z | python/tests/test_insertion_sort.py | bjgman12/data-structures-and-algorithms | 802dbf70c38275b3842697f81788d81313810946 | [
"MIT"
] | null | null | null | from code_challenges.insertion_sort.insertion_sort import insert_sort
def test_sorting_functionality():
test_list = [8,4,23,42,16,15]
actual = insert_sort(test_list)
expected = [4,8,15,16,23,42]
assert actual == expected
| 26.555556 | 69 | 0.736402 | 37 | 239 | 4.513514 | 0.567568 | 0.155689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09901 | 0.154812 | 239 | 8 | 70 | 29.875 | 0.727723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0774f6a492c050616c4cd5f70f87a4e77da0ea53 | 20,679 | py | Python | composition_stats/tests/test_composition.py | ntessore/composition | b37b419508ee60de8f9d28124a6e7ab1b05daa09 | [
"BSD-3-Clause"
] | 5 | 2021-03-23T04:01:45.000Z | 2022-03-08T16:47:52.000Z | composition_stats/tests/test_composition.py | ntessore/composition | b37b419508ee60de8f9d28124a6e7ab1b05daa09 | [
"BSD-3-Clause"
] | 1 | 2021-10-09T10:36:59.000Z | 2021-10-10T08:38:25.000Z | composition_stats/tests/test_composition.py | ntessore/composition_stats | b37b419508ee60de8f9d28124a6e7ab1b05daa09 | [
"BSD-3-Clause"
] | null | null | null | # The following parts are originally part of scikit-bio, with copyright notice
# as reproduced below. The original COPYING.txt file can be found under
# licenses/scikit-bio.txt.
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distr... | 43.718816 | 78 | 0.475893 | 2,525 | 20,679 | 3.819406 | 0.096238 | 0.01742 | 0.018664 | 0.01825 | 0.77022 | 0.706657 | 0.655952 | 0.628577 | 0.561282 | 0.532663 | 0 | 0.170469 | 0.372504 | 20,679 | 472 | 79 | 43.811441 | 0.57275 | 0.077808 | 0 | 0.51105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185083 | 1 | 0.066298 | false | 0 | 0.01105 | 0 | 0.080111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0775068fa6a2045362ab9b452acd6e8ee2402a97 | 1,245 | py | Python | apps/account/charts/exercise_history.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | 1 | 2020-08-12T17:53:37.000Z | 2020-08-12T17:53:37.000Z | apps/account/charts/exercise_history.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | 12 | 2020-07-03T03:52:00.000Z | 2021-09-22T18:00:44.000Z | apps/account/charts/exercise_history.py | martinlehoux/django_bike | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | [
"MIT"
] | null | null | null | from datetime import datetime
from django.db.models import IntegerField, Sum, functions
from django.utils import timezone
from plotly import graph_objs as go
from apps.track.models import Track
from . import time_range_query
from .base import BaseChart
class ExerciseHistoryChart(BaseChart):
name = "Exercise Hi... | 31.923077 | 86 | 0.691566 | 157 | 1,245 | 5.273885 | 0.375796 | 0.086957 | 0.050725 | 0.041063 | 0.205314 | 0.205314 | 0.205314 | 0.205314 | 0.205314 | 0.205314 | 0 | 0.00409 | 0.214458 | 1,245 | 38 | 87 | 32.763158 | 0.842536 | 0 | 0 | 0 | 0 | 0 | 0.027309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.225806 | 0 | 0.516129 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
07754aec89d47e40bda921be6c58bb0ce6799c63 | 2,183 | py | Python | src/test_netlink.py | ZirakZaheer/ZeroTrust-Ebpf | b0f1968e5c9fa307a84b62a76f02847845a458db | [
"Apache-2.0"
] | 2 | 2018-11-17T08:16:47.000Z | 2022-01-21T16:45:46.000Z | src/test_netlink.py | ZirakZaheer/ZeroTrust-Ebpf | b0f1968e5c9fa307a84b62a76f02847845a458db | [
"Apache-2.0"
] | null | null | null | src/test_netlink.py | ZirakZaheer/ZeroTrust-Ebpf | b0f1968e5c9fa307a84b62a76f02847845a458db | [
"Apache-2.0"
] | null | null | null | from bcc import BPF,table, libbcc
from pyroute2 import IPDB
import ctypes as ct
ipdb = IPDB()
from libnl.linux_private.rtnetlink import RTA_DATA, RTA_NEXT, RTA_OK, RTM_GETLINK, ifinfomsg, rtgenmsg
from libnl.msg import nlmsg_data, nlmsg_hdr
from subprocess import check_output
import pprint
import json
pp = pprint.Prett... | 35.209677 | 113 | 0.731104 | 308 | 2,183 | 5.006494 | 0.405844 | 0.027237 | 0.033074 | 0.029831 | 0.145266 | 0.055772 | 0.055772 | 0.055772 | 0 | 0 | 0 | 0.009204 | 0.153917 | 2,183 | 61 | 114 | 35.786885 | 0.825663 | 0.272103 | 0 | 0 | 0 | 0 | 0.14676 | 0.020966 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.243902 | null | null | 0.121951 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0775f7a37c26174d5a181b855da47a2dce6449e8 | 1,530 | py | Python | invenio_vocabularies/resources/serializer.py | diegodelemos/invenio-vocabularies | 2426872be4045945d6e4bde4abe829eccd3a5932 | [
"MIT"
] | null | null | null | invenio_vocabularies/resources/serializer.py | diegodelemos/invenio-vocabularies | 2426872be4045945d6e4bde4abe829eccd3a5932 | [
"MIT"
] | null | null | null | invenio_vocabularies/resources/serializer.py | diegodelemos/invenio-vocabularies | 2426872be4045945d6e4bde4abe829eccd3a5932 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2021 CERN.
#
# Invenio-Vocabularies is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
# details.
"""Localization serializer for Vocabularies."""
from functools import partial
from flask import current_a... | 28.867925 | 79 | 0.708497 | 193 | 1,530 | 5.466321 | 0.481865 | 0.049289 | 0.045498 | 0.060664 | 0.045498 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.180392 | 1,530 | 52 | 80 | 29.423077 | 0.826156 | 0.263399 | 0 | 0 | 0 | 0 | 0.080439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.76 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
078903e8de383b60b97236baea0fbd5daa9a6d47 | 4,732 | py | Python | actions.py | Oneledger/python-sdk | 733d5c14857298b0f44213d4d81e774084b8f6f4 | [
"Apache-2.0"
] | 1 | 2020-05-04T17:55:09.000Z | 2020-05-04T17:55:09.000Z | actions.py | Oneledger/python-sdk | 733d5c14857298b0f44213d4d81e774084b8f6f4 | [
"Apache-2.0"
] | null | null | null | actions.py | Oneledger/python-sdk | 733d5c14857298b0f44213d4d81e774084b8f6f4 | [
"Apache-2.0"
] | null | null | null | from rpc_call import rpc_call, converBigInt
import json
def send(frm, to, amt, cur):
resp = rpc_call('tx.CreateRawSend', {
"from": frm,
"to": to,
"amount": {
"currency": cur,
"value": converBigInt(amt),
},
"gasPrice": {
"currency": "OLT",... | 23.082927 | 66 | 0.498732 | 442 | 4,732 | 5.18552 | 0.174208 | 0.059337 | 0.111693 | 0.051047 | 0.705497 | 0.65445 | 0.544939 | 0.507417 | 0.472513 | 0.472513 | 0 | 0.044566 | 0.340871 | 4,732 | 204 | 67 | 23.196078 | 0.690285 | 0 | 0 | 0.630058 | 0 | 0 | 0.233728 | 0.029797 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011561 | null | null | 0.023121 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0789a580975997ac37c825fa1ce915af1b52be85 | 793 | py | Python | tltorch/functional/linear.py | colehawkins/torch | 914bdb8acad64d93a612e46f47ce1df507016b1b | [
"BSD-3-Clause"
] | 27 | 2020-12-15T21:34:48.000Z | 2022-02-24T09:56:13.000Z | tltorch/functional/linear.py | colehawkins/torch | 914bdb8acad64d93a612e46f47ce1df507016b1b | [
"BSD-3-Clause"
] | 15 | 2020-12-23T05:10:31.000Z | 2022-03-03T00:10:10.000Z | tltorch/functional/linear.py | colehawkins/torch | 914bdb8acad64d93a612e46f47ce1df507016b1b | [
"BSD-3-Clause"
] | 12 | 2020-12-23T04:26:41.000Z | 2021-12-15T02:39:30.000Z | import numpy as np
import torch
import torch.nn.functional as F
from ..factorized_tensors import TensorizedTensor
import tensorly as tl
tl.set_backend('pytorch')
# Author: Jean Kossaifi
# License: BSD 3 clause
def factorized_linear(x, weight, bias=None, in_features=None):
"""Linear layer with a dense input x an... | 27.344828 | 75 | 0.679697 | 112 | 793 | 4.705357 | 0.535714 | 0.094877 | 0.053131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004862 | 0.221942 | 793 | 28 | 76 | 28.321429 | 0.849271 | 0.253468 | 0 | 0 | 0 | 0 | 0.012007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 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 | 0 | 0 | 0 | 0 | 1 |
0789f1e646752f5f8698351af35a22d77999c4cf | 1,553 | py | Python | bin/api_connector_splunk/jsonschema/compat.py | CyberGRX/api-connector-splunk | 7f1db1cecb7ae367c1882c3188dc9f8bcb6bc4c6 | [
"MIT"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | bin/api_connector_splunk/jsonschema/compat.py | CyberGRX/api-connector-splunk | 7f1db1cecb7ae367c1882c3188dc9f8bcb6bc4c6 | [
"MIT"
] | 54 | 2016-08-11T14:22:30.000Z | 2020-08-07T22:14:55.000Z | bin/api_connector_splunk/jsonschema/compat.py | CyberGRX/api-connector-splunk | 7f1db1cecb7ae367c1882c3188dc9f8bcb6bc4c6 | [
"MIT"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | import operator
import sys
try:
from collections import MutableMapping, Sequence # noqa
except ImportError:
from collections.abc import MutableMapping, Sequence # noqa
PY3 = sys.version_info[0] >= 3
PY26 = sys.version_info[:2] == (2, 6)
if PY3:
zip = zip
from functools import lru_cache
from io... | 25.459016 | 73 | 0.659369 | 194 | 1,553 | 5.216495 | 0.417526 | 0.02668 | 0.041502 | 0.063241 | 0.148221 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0.015598 | 0.256922 | 1,553 | 60 | 74 | 25.883333 | 0.861352 | 0.073406 | 0 | 0.06383 | 0 | 0 | 0.011888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.340426 | 0 | 0.425532 | 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 | 0 | 0 | 0 | 0 | 1 |
078c582cc75d2c144d6282a23daf1cc43dcaa321 | 5,114 | py | Python | cov19/functions.py | emdemor/modelling-sars-covid19 | 957df384e9c0017a7c944bd184bf2b0d388c2dc3 | [
"MIT"
] | null | null | null | cov19/functions.py | emdemor/modelling-sars-covid19 | 957df384e9c0017a7c944bd184bf2b0d388c2dc3 | [
"MIT"
] | null | null | null | cov19/functions.py | emdemor/modelling-sars-covid19 | 957df384e9c0017a7c944bd184bf2b0d388c2dc3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Description
----------
This module gives general functions
----------
Author: Eduardo M. de Morais
Maintainer:
Email: emdemor415@gmail.com
Copyright:
Credits:
License:
Version:
Status: in development
"""
import os, pygtc, config... | 30.993939 | 91 | 0.555534 | 583 | 5,114 | 4.67753 | 0.281304 | 0.10231 | 0.170517 | 0.20462 | 0.386139 | 0.325266 | 0.158783 | 0.108544 | 0.060139 | 0.060139 | 0 | 0.004184 | 0.298983 | 5,114 | 165 | 92 | 30.993939 | 0.756485 | 0.209425 | 0 | 0.030303 | 0 | 0 | 0.220957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.19697 | 0.015152 | 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 | 0 | 0 | 0 | 0 | 1 |
0791b7cc411acd4674dc5f2b3f06a6e4d8633310 | 5,075 | py | Python | fastapi/openapi/docs.py | sebastianschramm/fastapi | e2fadcbc90fcffadfb4384396cfbd3b121053948 | [
"MIT"
] | null | null | null | fastapi/openapi/docs.py | sebastianschramm/fastapi | e2fadcbc90fcffadfb4384396cfbd3b121053948 | [
"MIT"
] | null | null | null | fastapi/openapi/docs.py | sebastianschramm/fastapi | e2fadcbc90fcffadfb4384396cfbd3b121053948 | [
"MIT"
] | null | null | null | from typing import Optional
from starlette.responses import HTMLResponse
def get_swagger_ui_html(
*,
openapi_url: str,
title: str,
swagger_js_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.js",
swagger_css_url: str = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/sw... | 31.918239 | 144 | 0.52 | 504 | 5,075 | 5.142857 | 0.355159 | 0.027778 | 0.021219 | 0.016204 | 0.287037 | 0.229938 | 0.185185 | 0.157407 | 0.112654 | 0.07716 | 0 | 0.014231 | 0.335369 | 5,075 | 158 | 145 | 32.120253 | 0.754225 | 0 | 0 | 0.34507 | 0 | 0.056338 | 0.854187 | 0.132808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021127 | false | 0.007042 | 0.014085 | 0 | 0.06338 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
079282f68d3896b84b8247d526041a5efacbde24 | 497 | py | Python | words/views.py | mujeeb91/wordstop-web | 5a57e02416705dd719df59e8e3a6ab1749091ed8 | [
"Apache-2.0"
] | null | null | null | words/views.py | mujeeb91/wordstop-web | 5a57e02416705dd719df59e8e3a6ab1749091ed8 | [
"Apache-2.0"
] | 1 | 2021-10-11T17:33:57.000Z | 2021-10-12T03:47:20.000Z | words/views.py | mujeeb91/wordstop-web | 5a57e02416705dd719df59e8e3a6ab1749091ed8 | [
"Apache-2.0"
] | 2 | 2017-05-08T11:38:57.000Z | 2021-10-11T16:28:34.000Z | import logging
from django.views.generic import ListView, DetailView
from .models import Book, Word
logger = logging.getLogger(__name__)
class BookList(ListView):
model = Book
class BookDetail(DetailView):
model = Book
pk_url_kwarg = 'id'
def get_context_data(self, **kwargs):
context = sup... | 23.666667 | 104 | 0.704225 | 62 | 497 | 5.451613 | 0.596774 | 0.053254 | 0.08284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181087 | 497 | 20 | 105 | 24.85 | 0.830467 | 0.008048 | 0 | 0.153846 | 0 | 0 | 0.038697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
079f09a0ed8d3980b7b1f6788d077983715857a1 | 47,212 | py | Python | parlai/tasks/wizard_of_wikipedia/agents.py | Misterion777/ParlAI | 1a6849d643a30a9a981825d9f50470b6512817c5 | [
"MIT"
] | null | null | null | parlai/tasks/wizard_of_wikipedia/agents.py | Misterion777/ParlAI | 1a6849d643a30a9a981825d9f50470b6512817c5 | [
"MIT"
] | null | null | null | parlai/tasks/wizard_of_wikipedia/agents.py | Misterion777/ParlAI | 1a6849d643a30a9a981825d9f50470b6512817c5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
A dataset with conversations directly grounded with knowledge retrieved from Wikipedia.
Contains 201k utterances from... | 35.497744 | 125 | 0.545116 | 5,099 | 47,212 | 4.838596 | 0.112767 | 0.019172 | 0.010376 | 0.00689 | 0.371676 | 0.312014 | 0.281128 | 0.256242 | 0.229248 | 0.211171 | 0 | 0.007131 | 0.343557 | 47,212 | 1,329 | 126 | 35.524454 | 0.788946 | 0.14221 | 0 | 0.33502 | 0 | 0 | 0.162607 | 0.022439 | 0 | 0 | 0 | 0 | 0.003036 | 1 | 0.054656 | false | 0.066802 | 0.023279 | 0.006073 | 0.140688 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07a4d5da3c8b6c70ac58dfbd07eaaa75853b3505 | 946 | py | Python | Demo/common/example_random_file.py | quecpython/EC100Y-SDK | 712c7eb7b54a3971009d94f6d6b21a6011d56f68 | [
"MIT"
] | 4 | 2021-01-28T01:30:59.000Z | 2021-06-15T07:13:41.000Z | Demo/common/example_random_file.py | QuePython/EC100Y-SDK | 712c7eb7b54a3971009d94f6d6b21a6011d56f68 | [
"MIT"
] | null | null | null | Demo/common/example_random_file.py | QuePython/EC100Y-SDK | 712c7eb7b54a3971009d94f6d6b21a6011d56f68 | [
"MIT"
] | 3 | 2021-04-07T09:55:59.000Z | 2022-01-08T15:15:23.000Z | '''
@Author: Baron
@Date: 2020-06-22
@LastEditTime: 2020-06-22 17:16:20
@Description: example for module urandom
@FilePath: example_urandom_file.py
'''
import urandom as random
import log
log.basicConfig(level=log.INFO)
random_log = log.getLogger("random")
#urandom.randint(start, end)
# 随机1 ~ 4之间
num = random.ran... | 20.565217 | 57 | 0.739958 | 150 | 946 | 4.6 | 0.406667 | 0.081159 | 0.131884 | 0.162319 | 0.301449 | 0.127536 | 0.127536 | 0.127536 | 0.127536 | 0 | 0 | 0.07619 | 0.112051 | 946 | 46 | 58 | 20.565217 | 0.745238 | 0.478858 | 0 | 0.388889 | 0 | 0 | 0.033684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07ad1371b769e6b95e15bc2c108978d051e72cae | 903 | py | Python | clustering/silhouette-score.py | pedrohma/python-ai-study | 362a33aaaf3e334c3e669458dec34a4fcf15029c | [
"MIT"
] | 1 | 2021-09-26T01:28:28.000Z | 2021-09-26T01:28:28.000Z | clustering/silhouette-score.py | pedrohma/python-ai-study | 362a33aaaf3e334c3e669458dec34a4fcf15029c | [
"MIT"
] | null | null | null | clustering/silhouette-score.py | pedrohma/python-ai-study | 362a33aaaf3e334c3e669458dec34a4fcf15029c | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import seaborn as sns; sns.set()
import numpy as np
from sklearn.cluster import KMeans
from sklearn.metrics import silhouette_score
from sklearn.datasets.samples_generator import make_blobs
X, y_true = make_blobs(n_samples = 500, centers = 4, cluster_std = 0.40, random_state = 0)
scor... | 32.25 | 100 | 0.75526 | 136 | 903 | 4.882353 | 0.522059 | 0.082831 | 0.085843 | 0.057229 | 0.081325 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018135 | 0.145072 | 903 | 27 | 101 | 33.444444 | 0.841969 | 0.140642 | 0 | 0 | 0 | 0 | 0.111255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 1 |
07b0d291511d1a212263ee8842f4e1041fa8f761 | 658 | py | Python | galaxia/game/casting/banner.py | Eugenespace/cse210-09 | 9268051d63a91834d1a54a6f4c5f3b50a5960a81 | [
"RSA-MD"
] | null | null | null | galaxia/game/casting/banner.py | Eugenespace/cse210-09 | 9268051d63a91834d1a54a6f4c5f3b50a5960a81 | [
"RSA-MD"
] | 16 | 2022-03-23T19:29:21.000Z | 2022-03-31T22:50:41.000Z | galaxia/game/casting/banner.py | Eugenespace/cse210-09 | 9268051d63a91834d1a54a6f4c5f3b50a5960a81 | [
"RSA-MD"
] | 4 | 2022-03-16T15:59:32.000Z | 2022-03-24T15:15:47.000Z | from game.casting.actor import Actor
import pygame
class Banner(Actor):
def __init__(self, pos, text = 'Text', font_size = 32):
pygame.font.init()
self._position = pos
self._font_size = font_size
self._font = pygame.font.Font('freesansbold.ttf', font_size)
self._text_imag... | 26.32 | 71 | 0.647416 | 94 | 658 | 4.244681 | 0.276596 | 0.120301 | 0.090226 | 0.085213 | 0.250627 | 0.250627 | 0.250627 | 0.250627 | 0.250627 | 0.250627 | 0 | 0.039683 | 0.234043 | 658 | 25 | 72 | 26.32 | 0.751984 | 0 | 0 | 0.117647 | 0 | 0 | 0.030349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.117647 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07b3e359ec6ee0757332dd16e844066c5da1913d | 514 | py | Python | tests/test_pitches.py | BenardBett/Pitch | 576a4ee3d04f5a94565986100c07665701e07bc0 | [
"Unlicense",
"MIT"
] | null | null | null | tests/test_pitches.py | BenardBett/Pitch | 576a4ee3d04f5a94565986100c07665701e07bc0 | [
"Unlicense",
"MIT"
] | null | null | null | tests/test_pitches.py | BenardBett/Pitch | 576a4ee3d04f5a94565986100c07665701e07bc0 | [
"Unlicense",
"MIT"
] | null | null | null | import unittest
from app.models import Pitch
from app import db
class PitchTest(unittest.TestCase):
"""
Test class to test the behaviour of the Pitch
"""
def setUp(self):
"""
Set up method that will run before every Test
"""
self.new_pitch = Pitch(0000, 'name','... | 24.47619 | 58 | 0.603113 | 62 | 514 | 4.951613 | 0.612903 | 0.045603 | 0.078176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.299611 | 514 | 21 | 59 | 24.47619 | 0.841667 | 0.177043 | 0 | 0 | 0 | 0 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.272727 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07b6be22694049a0a54e2ce97267f753edd5e91e | 2,133 | py | Python | CONTENT/PYTHON/PythonDataScienceHandbook/tools/add_navigation.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 11 | 2021-02-18T04:53:44.000Z | 2022-01-16T10:57:39.000Z | CONTENT/PYTHON/PythonDataScienceHandbook/tools/add_navigation.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 162 | 2021-03-09T01:52:11.000Z | 2022-03-12T01:09:07.000Z | CONTENT/PYTHON/PythonDataScienceHandbook/tools/add_navigation.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 8 | 2021-02-18T05:12:34.000Z | 2022-03-06T19:02:14.000Z | import os
import itertools
from ipykernel import kernelspec as ks
import nbformat
from nbformat.v4.nbbase import new_markdown_cell
from generate_contents import NOTEBOOK_DIR, REG, iter_notebooks, get_notebook_title
def prev_this_next(it):
a, b, c = itertools.tee(it, 3)
next(c)
return zip(itertools.chain... | 31.367647 | 280 | 0.650258 | 286 | 2,133 | 4.629371 | 0.353147 | 0.031722 | 0.024169 | 0.036254 | 0.237915 | 0.156344 | 0.043807 | 0.043807 | 0 | 0 | 0 | 0.006002 | 0.21894 | 2,133 | 67 | 281 | 31.835821 | 0.788715 | 0 | 0 | 0.040816 | 1 | 0.020408 | 0.199719 | 0.010783 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.122449 | 0 | 0.204082 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07bb76dcb8959a6bde48e5d2779d6a45d7d8a4f4 | 1,904 | py | Python | conlo/serializer/errors.py | kira607/config_loader | 024f33d48fee1635dfa9ed286f84bb96f22c134a | [
"MIT"
] | null | null | null | conlo/serializer/errors.py | kira607/config_loader | 024f33d48fee1635dfa9ed286f84bb96f22c134a | [
"MIT"
] | null | null | null | conlo/serializer/errors.py | kira607/config_loader | 024f33d48fee1635dfa9ed286f84bb96f22c134a | [
"MIT"
] | null | null | null | from enum import Enum, auto
from typing import Any, Tuple
from .types import Serializable, Deserializable, is_serializer_generic_instance
class _ErrorRoot(Enum):
TYPE_ERROR = auto()
EMPTY_ERROR = auto()
OTHER_ERROR = auto()
class _SerializerError(Exception):
'''Base exception for serialization erro... | 28.848485 | 102 | 0.678046 | 208 | 1,904 | 5.802885 | 0.254808 | 0.067109 | 0.074565 | 0.044739 | 0.114333 | 0.053024 | 0 | 0 | 0 | 0 | 0 | 0.000684 | 0.232143 | 1,904 | 65 | 103 | 29.292308 | 0.824897 | 0.054622 | 0 | 0.044444 | 0 | 0 | 0.113292 | 0.02636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.066667 | 0.044444 | 0.622222 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
07bcacbbff46b7ba54bd1b19f5ad47a24aa0550e | 7,313 | py | Python | Src/StdLib/Lib/site-packages/win32comext/axscript/client/debug.py | cwensley/ironpython2 | f854444e1e08afc8850cb7c1a739a7dd2d10d32a | [
"Apache-2.0"
] | 1,078 | 2016-07-19T02:48:30.000Z | 2022-03-30T21:22:34.000Z | Src/StdLib/Lib/site-packages/win32comext/axscript/client/debug.py | cwensley/ironpython2 | f854444e1e08afc8850cb7c1a739a7dd2d10d32a | [
"Apache-2.0"
] | 576 | 2017-05-21T12:36:48.000Z | 2022-03-30T13:47:03.000Z | Src/StdLib/Lib/site-packages/win32comext/axscript/client/debug.py | cwensley/ironpython2 | f854444e1e08afc8850cb7c1a739a7dd2d10d32a | [
"Apache-2.0"
] | 269 | 2017-05-21T04:44:47.000Z | 2022-03-31T16:18:13.000Z | import traceback, sys, string
import win32com.server.util
from win32com.util import IIDToInterfaceName
from win32com.client.util import Enumerator
from win32com.server.exception import COMException
import pythoncom
from framework import trace
from win32com.axdebug import axdebug, gateways, contexts, stackframe, docume... | 34.990431 | 145 | 0.774238 | 825 | 7,313 | 6.772121 | 0.315152 | 0.050116 | 0.009665 | 0.016646 | 0.122606 | 0.091999 | 0.091999 | 0.058708 | 0.036155 | 0.036155 | 0 | 0.004309 | 0.14317 | 7,313 | 209 | 146 | 34.990431 | 0.887328 | 0.127034 | 0 | 0.203947 | 0 | 0 | 0.066555 | 0.021345 | 0 | 0 | 0 | 0 | 0.006579 | 0 | null | null | 0 | 0.085526 | null | null | 0.019737 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07bf7ae307956c60091a3f0c7b3591dd7b3f344e | 524 | py | Python | test_package/minimal/conanfile.py | grisumbras/b2-helper | ab3f166237db8d7bc1c113ef7f9caa9c593e0a1b | [
"BSL-1.0"
] | null | null | null | test_package/minimal/conanfile.py | grisumbras/b2-helper | ab3f166237db8d7bc1c113ef7f9caa9c593e0a1b | [
"BSL-1.0"
] | null | null | null | test_package/minimal/conanfile.py | grisumbras/b2-helper | ab3f166237db8d7bc1c113ef7f9caa9c593e0a1b | [
"BSL-1.0"
] | null | null | null | # Copyright (c) 2019 Dmitry Arkhipov <grisumbras@gmail.com>
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
from conans import ConanFile
from get_helper_package import package_ref
class MyConan(ConanFile):
"""This i... | 29.111111 | 78 | 0.73855 | 72 | 524 | 5.222222 | 0.75 | 0.010638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022676 | 0.158397 | 524 | 17 | 79 | 30.823529 | 0.829932 | 0.482824 | 0 | 0 | 0 | 0 | 0.118321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
07c848c7635b6b77e70ed76f07f4e882188402b6 | 1,981 | py | Python | nautobot/ipam/graphql/types.py | Kircheneer/nautobot | 2d305a2edaebd590b1d0e8c09394e123b8f7b61f | [
"Apache-2.0"
] | null | null | null | nautobot/ipam/graphql/types.py | Kircheneer/nautobot | 2d305a2edaebd590b1d0e8c09394e123b8f7b61f | [
"Apache-2.0"
] | null | null | null | nautobot/ipam/graphql/types.py | Kircheneer/nautobot | 2d305a2edaebd590b1d0e8c09394e123b8f7b61f | [
"Apache-2.0"
] | null | null | null | import graphene
from graphene_django import DjangoObjectType
from nautobot.dcim.graphql.types import InterfaceType
from nautobot.ipam import models, filters
from nautobot.extras.graphql.types import TagType # noqa: F401
from nautobot.virtualization.graphql.types import VMInterfaceType
class AggregateType(DjangoObje... | 30.015152 | 89 | 0.714286 | 203 | 1,981 | 6.817734 | 0.285714 | 0.080925 | 0.078035 | 0.057803 | 0.302023 | 0.196532 | 0.147399 | 0.147399 | 0.08237 | 0.08237 | 0 | 0.001902 | 0.203937 | 1,981 | 65 | 90 | 30.476923 | 0.875713 | 0.095911 | 0 | 0.261905 | 0 | 0 | 0.075706 | 0.053107 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
07c85430526e18b1f7deeea41896daf714cb5c52 | 519 | py | Python | home/pi/GrovePi/Software/Python/others/grove_accelerometer_16g/example.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | home/pi/GrovePi/Software/Python/others/grove_accelerometer_16g/example.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | null | null | null | home/pi/GrovePi/Software/Python/others/grove_accelerometer_16g/example.py | lupyuen/RaspberryPiImage | 664e8a74b4628d710feab5582ef59b344b9ffddd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | # ADXL345 Python example
#
# author: Jonathan Williamson
# license: BSD, see LICENSE.txt included in this package
#
# This is an example to show you how to use our ADXL345 Python library
# http://shop.pimoroni.com/products/adafruit-triple-axis-accelerometer
from adxl345 import ADXL345
adxl345 = ADXL345()
ax... | 28.833333 | 70 | 0.657033 | 71 | 519 | 4.802817 | 0.633803 | 0.061584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073634 | 0.188825 | 519 | 17 | 71 | 30.529412 | 0.736342 | 0.473988 | 0 | 0 | 0 | 0 | 0.237736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.571429 | 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 | 0 | 0 | 0 | 1 | 0 | 1 |
07cdb21d817b0360db8374fe66c410b85f860640 | 1,460 | py | Python | spopt/tests/test_ward.py | pedrocamargo/spopt | 21fca2166001b774f8dfb75b0ce33c522f9ead67 | [
"BSD-3-Clause"
] | null | null | null | spopt/tests/test_ward.py | pedrocamargo/spopt | 21fca2166001b774f8dfb75b0ce33c522f9ead67 | [
"BSD-3-Clause"
] | 8 | 2021-12-13T21:51:55.000Z | 2022-03-31T01:39:04.000Z | spopt/tests/test_ward.py | pedrocamargo/spopt | 21fca2166001b774f8dfb75b0ce33c522f9ead67 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import libpysal
import geopandas as gpd
import os
import sys
from spopt.region import WardSpatial
import unittest
class TestWard(unittest.TestCase):
def setUp(self):
self.pth = libpysal.examples.get_path("mexicojoin.shp")
self.mexico = gpd.read_file(self.pth)
self.mexi... | 23.174603 | 87 | 0.399315 | 143 | 1,460 | 3.979021 | 0.447552 | 0.052724 | 0.057996 | 0.056239 | 0.042179 | 0.040422 | 0.01406 | 0 | 0 | 0 | 0 | 0.0699 | 0.519863 | 1,460 | 62 | 88 | 23.548387 | 0.741797 | 0 | 0 | 0.535714 | 0 | 0 | 0.020548 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 1 | 0.035714 | false | 0 | 0.125 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
07d242eac16e18e84f5172401e246515592a7b52 | 9,462 | py | Python | sdk/python/pulumi_akamai/get_app_sec_wap_selected_hostnames.py | pulumi/pulumi-akamai | 85f933ccf2f61738b3074a13fa718132280f8364 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2021-01-21T15:22:12.000Z | 2021-08-25T14:15:29.000Z | sdk/python/pulumi_akamai/get_app_sec_wap_selected_hostnames.py | pulumi/pulumi-akamai | 85f933ccf2f61738b3074a13fa718132280f8364 | [
"ECL-2.0",
"Apache-2.0"
] | 59 | 2020-08-13T14:39:36.000Z | 2022-03-31T15:19:48.000Z | sdk/python/pulumi_akamai/get_app_sec_wap_selected_hostnames.py | pulumi/pulumi-akamai | 85f933ccf2f61738b3074a13fa718132280f8364 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 43.603687 | 191 | 0.716128 | 1,101 | 9,462 | 5.877384 | 0.158946 | 0.062741 | 0.046979 | 0.041725 | 0.580745 | 0.530212 | 0.466698 | 0.432236 | 0.388812 | 0.388812 | 0 | 0.001994 | 0.204925 | 9,462 | 216 | 192 | 43.805556 | 0.858168 | 0.363877 | 0 | 0.094017 | 1 | 0 | 0.161548 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.042735 | 0.068376 | 0.264957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
07d3f23fb757a705cb8f5d436c9dae5672bf40ba | 7,177 | py | Python | flexget/components/notify/notifiers/email.py | metaMMA/Flexget | a38986422461d7935ead1e2b4ed4c88bcd0a90f5 | [
"MIT"
] | null | null | null | flexget/components/notify/notifiers/email.py | metaMMA/Flexget | a38986422461d7935ead1e2b4ed4c88bcd0a90f5 | [
"MIT"
] | 1 | 2017-10-09T23:06:44.000Z | 2017-10-09T23:06:44.000Z | flexget/components/notify/notifiers/email.py | metaMMA/Flexget | a38986422461d7935ead1e2b4ed4c88bcd0a90f5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, division, absolute_import
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin
from future.utils import text_to_native_str
import logging
import smtplib
import socket
import getpass
from email.mime.multipart import MIMEMultipart
from email.mime.text i... | 34.839806 | 96 | 0.545214 | 761 | 7,177 | 5.001314 | 0.237845 | 0.031529 | 0.036784 | 0.022333 | 0.21072 | 0.129532 | 0.099842 | 0.074094 | 0.050972 | 0.033631 | 0 | 0.002479 | 0.325484 | 7,177 | 205 | 97 | 35.009756 | 0.783722 | 0.328828 | 0 | 0.084112 | 0 | 0 | 0.15969 | 0.00598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037383 | false | 0.074766 | 0.140187 | 0 | 0.196262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
07d42d50e8078feac4011dd30a7f0a12f1c54a34 | 774 | py | Python | DesignPatterns/07_state/2_state/check_out.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | DesignPatterns/07_state/2_state/check_out.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | DesignPatterns/07_state/2_state/check_out.py | eduardormonteiro/PythonPersonalLibrary | 561733bb8305c4e25a08f99c28b60ec77251ad67 | [
"MIT"
] | null | null | null | from abstract_state import AbstractState
class AtCheckOut(AbstractState):
def add_item(self):
print("You can't add items at the check out counter.")
def remove_item(self):
self._cart.items -= 1
if self._cart.items:
print('You now have %s items in your cart.' % self._cart.i... | 28.666667 | 75 | 0.612403 | 108 | 774 | 4.240741 | 0.37963 | 0.19214 | 0.141921 | 0.111354 | 0.268559 | 0.222707 | 0 | 0 | 0 | 0 | 0 | 0.003584 | 0.27907 | 774 | 26 | 76 | 29.769231 | 0.817204 | 0 | 0 | 0.1 | 0 | 0 | 0.231266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0 | 0.35 | 0.3 | 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 | 0 | 0 | 0 | 0 | 1 |
07d4d267075ad6ba535267796f5b7e0cec0b5c15 | 652 | py | Python | exec/kmsauth-request.py | imma/kmsauth | ae013d59a91fbcd774289a13b9cf66bb0a43e935 | [
"Apache-2.0"
] | null | null | null | exec/kmsauth-request.py | imma/kmsauth | ae013d59a91fbcd774289a13b9cf66bb0a43e935 | [
"Apache-2.0"
] | null | null | null | exec/kmsauth-request.py | imma/kmsauth | ae013d59a91fbcd774289a13b9cf66bb0a43e935 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import kmsauth
import sys
import os
# user to service authentication
generator = kmsauth.KMSTokenGenerator(
# KMS key to use for authentication
sys.argv[1],
# Encryption context to use
{
# We're authenticating to this service
'to': sys.argv[2],
# It's from... | 24.148148 | 81 | 0.642638 | 92 | 652 | 4.48913 | 0.51087 | 0.050847 | 0.072639 | 0.087167 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008048 | 0.23773 | 652 | 26 | 82 | 25.076923 | 0.822938 | 0.345092 | 0 | 0 | 0 | 0 | 0.145585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.