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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01af1f3edcc67f41e854f6ab1044b6731f94f913 | 1,139 | py | Python | src/Point.py | cburggie/dragon | d752f8d01ac1f64c9fc36a6f3f0e4665f0d719c9 | [
"MIT"
] | null | null | null | src/Point.py | cburggie/dragon | d752f8d01ac1f64c9fc36a6f3f0e4665f0d719c9 | [
"MIT"
] | null | null | null | src/Point.py | cburggie/dragon | d752f8d01ac1f64c9fc36a6f3f0e4665f0d719c9 | [
"MIT"
] | null | null | null |
#from const import cw
#from const import ccw
cw,ccw = 1,-1
class Point:
x = 0
y = 0
def __init__(self, x = 0, y = 0):
self.x = x
self.y = y
def __add__(self, p):
return Point(self.x + p.x, self.y + p.y)
def __sub__(self, p):
return Point(self.x - p.x,... | 22.333333 | 52 | 0.453029 | 171 | 1,139 | 2.923977 | 0.157895 | 0.16 | 0.132 | 0.1 | 0.472 | 0.344 | 0.296 | 0.296 | 0.296 | 0.296 | 0 | 0.008929 | 0.410009 | 1,139 | 50 | 53 | 22.78 | 0.735119 | 0.298507 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
01b42675efc79383ca5898ed3e879b790703c60a | 436 | py | Python | backend/youngun/youngun/apps/campaigns/renderers.py | aakashbajaj/Youngun-Campaign-Tracking | a3b4f283b22cefb92c72f7638ee2a9da72622de0 | [
"Apache-2.0"
] | null | null | null | backend/youngun/youngun/apps/campaigns/renderers.py | aakashbajaj/Youngun-Campaign-Tracking | a3b4f283b22cefb92c72f7638ee2a9da72622de0 | [
"Apache-2.0"
] | 1 | 2021-09-22T19:27:06.000Z | 2021-09-22T19:27:06.000Z | backend/youngun/youngun/apps/campaigns/renderers.py | aakashbajaj/Youngun-Campaign-Tracking | a3b4f283b22cefb92c72f7638ee2a9da72622de0 | [
"Apache-2.0"
] | null | null | null | from youngun.apps.core.renderers import YoungunJSONRenderer
class LiveCampaignMetricJSONRenderer(YoungunJSONRenderer):
object_label = 'campaign'
object_label_plural = 'campaigns'
class CampaignReportJSONRenderer(YoungunJSONRenderer):
object_label = 'campaign'
object_label_plural = 'campaigns'
class... | 27.25 | 59 | 0.800459 | 37 | 436 | 9.189189 | 0.432432 | 0.194118 | 0.264706 | 0.335294 | 0.594118 | 0.594118 | 0.594118 | 0.594118 | 0.405882 | 0 | 0 | 0 | 0.130734 | 436 | 15 | 60 | 29.066667 | 0.897098 | 0 | 0 | 0.6 | 0 | 0 | 0.116972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
01c4cadbcd6febfd86c63a1338faef309efc3d68 | 221 | py | Python | May3_runningSum().py | KachukwuOkoh/leets | 0c84dc1b4156c17b5a88cb981c177ac34d03d415 | [
"MIT"
] | null | null | null | May3_runningSum().py | KachukwuOkoh/leets | 0c84dc1b4156c17b5a88cb981c177ac34d03d415 | [
"MIT"
] | null | null | null | May3_runningSum().py | KachukwuOkoh/leets | 0c84dc1b4156c17b5a88cb981c177ac34d03d415 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue May 4 06:26:45 2021
@author: Oluchukwu Okoh
"""
class Solution(object):
def runningSum(nums):
return [sum(nums[:i+1]) for i in range(len(nums))]
| 17 | 59 | 0.561086 | 32 | 221 | 3.875 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080745 | 0.271493 | 221 | 12 | 60 | 18.416667 | 0.689441 | 0.375566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
01da2594b3ca2926124b16be66b86995bac8a08f | 161 | py | Python | backend/app/tests/test_main.py | CyberDAS-Dev/VK_marketplace | 3272bcb45c88d8c43e96a4e727600f7f1d4c86a4 | [
"MIT"
] | null | null | null | backend/app/tests/test_main.py | CyberDAS-Dev/VK_marketplace | 3272bcb45c88d8c43e96a4e727600f7f1d4c86a4 | [
"MIT"
] | 11 | 2021-10-10T16:30:22.000Z | 2022-01-21T07:59:36.000Z | backend/app/tests/test_main.py | CyberDAS-Dev/VK_marketplace | 3272bcb45c88d8c43e96a4e727600f7f1d4c86a4 | [
"MIT"
] | null | null | null | from fastapi.testclient import TestClient
def test_read_docs(client: TestClient):
response = client.get("/v1/docs")
assert response.status_code == 200
| 23 | 41 | 0.751553 | 21 | 161 | 5.619048 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.149068 | 161 | 6 | 42 | 26.833333 | 0.832117 | 0 | 0 | 0 | 0 | 0 | 0.049689 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
01e1e1353455ce9082c42b900b0f62b57d92d7e8 | 115 | py | Python | Python Programs/addtwonumbers.py | Chibi-Shem/Hacktoberfest2020-Expert | 324843464aec039e130e85a16e74b76d310f1497 | [
"MIT"
] | 77 | 2020-10-01T10:06:59.000Z | 2021-11-08T08:57:18.000Z | Python Programs/addtwonumbers.py | Chibi-Shem/Hacktoberfest2020-Expert | 324843464aec039e130e85a16e74b76d310f1497 | [
"MIT"
] | 46 | 2020-09-27T04:55:36.000Z | 2021-05-14T18:49:06.000Z | Python Programs/addtwonumbers.py | Chibi-Shem/Hacktoberfest2020-Expert | 324843464aec039e130e85a16e74b76d310f1497 | [
"MIT"
] | 327 | 2020-09-26T17:06:03.000Z | 2021-10-09T06:04:39.000Z | x = input("Type a number: ")
y = input("Type another number: ")
sum = int(x) + int(y)
print("The sum is: ", sum)
| 16.428571 | 34 | 0.582609 | 20 | 115 | 3.35 | 0.6 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208696 | 115 | 6 | 35 | 19.166667 | 0.736264 | 0 | 0 | 0 | 0 | 0 | 0.417391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
01e37b8109028ea517deb0b4061b608a9117a750 | 2,099 | py | Python | github/API_V3/commit_guru/orm/commit.py | ai-se/Data_Miner | 69a363703c91f95f9f296170bf23b0a01f344088 | [
"MIT"
] | 1 | 2022-03-18T02:33:49.000Z | 2022-03-18T02:33:49.000Z | github/API_V3/commit_guru/orm/commit.py | ai-se/Data_Miner | 69a363703c91f95f9f296170bf23b0a01f344088 | [
"MIT"
] | 1 | 2019-12-09T16:36:44.000Z | 2020-01-23T16:56:47.000Z | github/API_V3/commit_guru/orm/commit.py | ai-se/Data_Miner | 69a363703c91f95f9f296170bf23b0a01f344088 | [
"MIT"
] | null | null | null | """
file: commit.py
author: Ben Grawi <bjg1568@rit.edu>, Christoffer Rosen <cbr4830@rit.edu>
date: Novemeber 2013
description: Holds the commit abstraction class and ORM
"""
from db import *
#from sqlalchemy import *
class Commit(Base):
"""
Commit():
description: The SQLAlchemy ORM for the commits table
... | 33.31746 | 72 | 0.666031 | 259 | 2,099 | 5.258687 | 0.359073 | 0.153451 | 0.211454 | 0.226138 | 0.30837 | 0.30837 | 0 | 0 | 0 | 0 | 0 | 0.015739 | 0.212959 | 2,099 | 62 | 73 | 33.854839 | 0.808717 | 0.185803 | 0 | 0 | 0 | 0 | 0.025347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.026316 | 0.026316 | 0.868421 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
01ea89ad5a66c83f80576183f6d987f493422271 | 7,286 | py | Python | xsconnect/motherboards/StickIt_V321.py | xesscorp/xsconnect | b08b2e24e7a017d9f87ad4651f82915179f1fd52 | [
"MIT"
] | null | null | null | xsconnect/motherboards/StickIt_V321.py | xesscorp/xsconnect | b08b2e24e7a017d9f87ad4651f82915179f1fd52 | [
"MIT"
] | 1 | 2017-01-26T12:09:44.000Z | 2021-03-07T14:13:14.000Z | xsconnect/motherboards/StickIt_V321.py | xesscorp/xsconnect | b08b2e24e7a017d9f87ad4651f82915179f1fd52 | [
"MIT"
] | 1 | 2021-08-16T07:31:24.000Z | 2021-08-16T07:31:24.000Z | brd = {
'name': ('StickIt! V1', 'StickIt! V2', 'StickIt! V3'),
'port': {
'pmod' : {
'pm1' : {
'd0': 'ch15',
'd1': 'ch11',
'd2': 'chclk',
'd3': 'ch28',
'd4': 'ch16',
'd5': 'ch13',
... | 29.027888 | 59 | 0.192836 | 442 | 7,286 | 3.178733 | 0.165158 | 0.014235 | 0.019929 | 0.017082 | 0.40427 | 0.40427 | 0.40427 | 0.40427 | 0.40427 | 0.40427 | 0 | 0.219257 | 0.619407 | 7,286 | 250 | 60 | 29.144 | 0.287414 | 0 | 0 | 0.416 | 0 | 0 | 0.200966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
01fd8952a947a06a56de5afccaf7e17d348e17ab | 166 | py | Python | build_s3_filename_list.py | toddkarin/pvtools | 21f18988a7369568c8db3a43eee3170fb9fa198e | [
"BSD-3-Clause-LBNL"
] | 4 | 2020-07-31T16:30:33.000Z | 2021-09-07T10:14:11.000Z | build_s3_filename_list.py | toddkarin/pvtools | 21f18988a7369568c8db3a43eee3170fb9fa198e | [
"BSD-3-Clause-LBNL"
] | 2 | 2020-05-05T13:07:35.000Z | 2021-11-02T21:47:44.000Z | build_s3_filename_list.py | toddkarin/pvtools | 21f18988a7369568c8db3a43eee3170fb9fa198e | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-08-12T02:30:07.000Z | 2020-08-12T02:30:07.000Z | import pvtoolslib
# Build the s3 filename database and save to file.
pvtoolslib.build_s3_filename_list()
filedata = pvtoolslib.get_s3_filename_df()
print(filedata) | 20.75 | 50 | 0.819277 | 24 | 166 | 5.416667 | 0.666667 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.114458 | 166 | 8 | 51 | 20.75 | 0.863946 | 0.289157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bf0ad5ed782bca9e02725a28a2071a7e64cdd051 | 1,486 | py | Python | gamelayer/util/color.py | Windspar/Gamelayer | 65e1cf11548bc02bc49348eb265c209172c14844 | [
"MIT"
] | null | null | null | gamelayer/util/color.py | Windspar/Gamelayer | 65e1cf11548bc02bc49348eb265c209172c14844 | [
"MIT"
] | null | null | null | gamelayer/util/color.py | Windspar/Gamelayer | 65e1cf11548bc02bc49348eb265c209172c14844 | [
"MIT"
] | null | null | null | import operator
from pygame import Color as PygameColor
from pygame.color import THECOLORS
from types import SimpleNamespace
class Color(PygameColor):
minmax = lambda value: min(max(int(value), 0), 255)
def _math(self, op, color):
if isinstance(color, (int, float)):
return Color(Color.minm... | 34.55814 | 67 | 0.564603 | 180 | 1,486 | 4.533333 | 0.25 | 0.121324 | 0.143382 | 0.1875 | 0.504902 | 0.446078 | 0.125 | 0.125 | 0 | 0 | 0 | 0.006816 | 0.308883 | 1,486 | 42 | 68 | 35.380952 | 0.787731 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.117647 | 0.588235 | 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 | 1 | 1 | 0 | 0 | 3 |
bf0db63d9dfefa5dc669cb44ca7d4361e16a1cd6 | 349 | py | Python | karp/domain/constraints.py | spraakbanken/karp-backend-v6-tmp | e5b78157bd999df18c188973ae2a337015b6f35d | [
"MIT"
] | 1 | 2021-12-08T15:33:42.000Z | 2021-12-08T15:33:42.000Z | karp/domain/constraints.py | spraakbanken/karp-backend-v6-tmp | e5b78157bd999df18c188973ae2a337015b6f35d | [
"MIT"
] | null | null | null | karp/domain/constraints.py | spraakbanken/karp-backend-v6-tmp | e5b78157bd999df18c188973ae2a337015b6f35d | [
"MIT"
] | null | null | null | """Constraints."""
from karp.domain.errors import ConstraintsError
def length_gt_zero(attribute, value):
if len(value) == 0:
raise ConstraintsError(
f"'{attribute}' has to be non-empty. Got {attribute}='{value}'"
)
return value
def valid_resource_id(name: str):
return length_... | 23.266667 | 75 | 0.661891 | 44 | 349 | 5.090909 | 0.681818 | 0.071429 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003636 | 0.212034 | 349 | 14 | 76 | 24.928571 | 0.810909 | 0.034384 | 0 | 0 | 0 | 0 | 0.214502 | 0.063444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1713123ca323696e6bd07789db3d4f6ef9d0f695 | 314 | py | Python | pqcli/ui/curses/colors.py | tree-s/pq-cli | f5d0ed69a99c490a63f854442fba2b443e59a134 | [
"MIT"
] | 94 | 2018-11-17T22:40:16.000Z | 2022-03-28T05:09:16.000Z | pqcli/ui/curses/colors.py | tree-s/pq-cli | f5d0ed69a99c490a63f854442fba2b443e59a134 | [
"MIT"
] | 17 | 2019-04-10T18:06:46.000Z | 2022-03-03T03:25:08.000Z | pqcli/ui/curses/colors.py | tree-s/pq-cli | f5d0ed69a99c490a63f854442fba2b443e59a134 | [
"MIT"
] | 14 | 2019-04-10T21:33:14.000Z | 2022-02-16T14:42:56.000Z | _HAS_COLORS = False
COLOR_LOGO = 1
COLOR_LOGO_ALT = 2
COLOR_FOCUSED = 3
COLOR_SCROLLBAR_TRACK = 4
COLOR_SCROLLBAR_THUMB = 5
COLOR_PROGRESSBAR = 6
COLOR_HIGHLIGHT = 7
def has_colors() -> bool:
return _HAS_COLORS
def set_colors(has_colors: bool) -> None:
global _HAS_COLORS
_HAS_COLORS = has_colors
| 16.526316 | 41 | 0.754777 | 48 | 314 | 4.479167 | 0.520833 | 0.293023 | 0.209302 | 0.167442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027237 | 0.181529 | 314 | 18 | 42 | 17.444444 | 0.809339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.076923 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
172e1e2be92954a35d171a7a61542496d1f92511 | 2,842 | py | Python | communities/migrations/0001_initial.py | Fabrice-64/advocacy_project | 33eb8b71e057ea197be578020436defb015fa000 | [
"MIT"
] | null | null | null | communities/migrations/0001_initial.py | Fabrice-64/advocacy_project | 33eb8b71e057ea197be578020436defb015fa000 | [
"MIT"
] | null | null | null | communities/migrations/0001_initial.py | Fabrice-64/advocacy_project | 33eb8b71e057ea197be578020436defb015fa000 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-05-22 11:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Department',
fields=[
... | 42.41791 | 153 | 0.576707 | 270 | 2,842 | 5.944444 | 0.233333 | 0.089097 | 0.061059 | 0.09595 | 0.71028 | 0.71028 | 0.655452 | 0.655452 | 0.655452 | 0.655452 | 0 | 0.013705 | 0.28114 | 2,842 | 66 | 154 | 43.060606 | 0.771904 | 0.015834 | 0 | 0.559322 | 1 | 0 | 0.141682 | 0.015742 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.101695 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
172f4db6c7c5d6b2cc7977d8c697cee7d113642c | 1,312 | py | Python | file.py | samson0v/python_tb_rest_client_generator | 5aa07549620ca59eb936fc4cff6c40308db9fa4b | [
"Apache-2.0"
] | null | null | null | file.py | samson0v/python_tb_rest_client_generator | 5aa07549620ca59eb936fc4cff6c40308db9fa4b | [
"Apache-2.0"
] | null | null | null | file.py | samson0v/python_tb_rest_client_generator | 5aa07549620ca59eb936fc4cff6c40308db9fa4b | [
"Apache-2.0"
] | 1 | 2021-12-22T08:56:27.000Z | 2021-12-22T08:56:27.000Z | # coding: utf-8
# Copyright 2020. ThingsBoard
# #
# 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
# #
# Unl... | 28.521739 | 79 | 0.655488 | 171 | 1,312 | 4.865497 | 0.467836 | 0.072115 | 0.067308 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009336 | 0.265244 | 1,312 | 45 | 80 | 29.155556 | 0.853734 | 0.471799 | 0 | 0.173913 | 0 | 0 | 0.041543 | 0.041543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0 | 0.217391 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1782c45ae2656f9ff178237c1d0e562a955d799e | 218 | py | Python | account/admin.py | Hoofeycheng/Bookmarks | f2721633cd39393f0c92993579071679bb975ab0 | [
"MIT"
] | null | null | null | account/admin.py | Hoofeycheng/Bookmarks | f2721633cd39393f0c92993579071679bb975ab0 | [
"MIT"
] | null | null | null | account/admin.py | Hoofeycheng/Bookmarks | f2721633cd39393f0c92993579071679bb975ab0 | [
"MIT"
] | null | null | null | from django.contrib import admin
from account.models import Profile
# Register your models here.
@admin.register(Profile)
class ProfileAdmin(admin.ModelAdmin):
list_display = ("user","birth_date","photo")
| 13.625 | 48 | 0.747706 | 27 | 218 | 5.962963 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 218 | 15 | 49 | 14.533333 | 0.865591 | 0.119266 | 0 | 0 | 0 | 0 | 0.103825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1785595207dfe7303b301bac8cb71c02586d28dc | 173 | py | Python | Meiduo/Meiduo/apps/orders/urls.py | Taksirydq/MeiduoMall | cdf5d38787cf1f78bc37cf984c65f2c342325f2d | [
"MIT"
] | 1 | 2018-10-21T12:49:30.000Z | 2018-10-21T12:49:30.000Z | Meiduo/Meiduo/apps/orders/urls.py | Taksirydq/MeiduoMall | cdf5d38787cf1f78bc37cf984c65f2c342325f2d | [
"MIT"
] | null | null | null | Meiduo/Meiduo/apps/orders/urls.py | Taksirydq/MeiduoMall | cdf5d38787cf1f78bc37cf984c65f2c342325f2d | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url('^settlement/$', views.CartListView.as_view()),
url('^$', views.OrderCreateView.as_view())
] | 28.833333 | 55 | 0.693642 | 21 | 173 | 5.619048 | 0.619048 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132948 | 173 | 6 | 56 | 28.833333 | 0.786667 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
17a13ed0d8478c5f516f4334dc3b1f21387d20be | 1,790 | py | Python | cli/velcom_cli/config.py | IPDSnelting/velcom | 70d438cc6880105c4e7f7d299b382ce5b171349f | [
"MIT"
] | 8 | 2020-04-22T12:39:51.000Z | 2022-02-23T09:22:31.000Z | cli/velcom_cli/config.py | IPDSnelting/velcom | 70d438cc6880105c4e7f7d299b382ce5b171349f | [
"MIT"
] | 130 | 2020-06-06T14:46:14.000Z | 2022-03-28T08:59:50.000Z | cli/velcom_cli/config.py | IPDSnelting/velcom | 70d438cc6880105c4e7f7d299b382ce5b171349f | [
"MIT"
] | 1 | 2020-06-03T10:00:33.000Z | 2020-06-03T10:00:33.000Z | import configparser
from pathlib import Path
class Config:
DEFAULT = configparser.DEFAULTSECT
def __init__(self, args, parser):
self.args = args
self.parser = parser
@classmethod
def default_parser(cls):
config = configparser.ConfigParser()
config[cls.DEFAULT]["defaul... | 26.716418 | 76 | 0.586034 | 202 | 1,790 | 5.123762 | 0.257426 | 0.115942 | 0.092754 | 0.096618 | 0.302415 | 0.25314 | 0 | 0 | 0 | 0 | 0 | 0 | 0.286034 | 1,790 | 66 | 77 | 27.121212 | 0.809859 | 0.04581 | 0 | 0.133333 | 0 | 0 | 0.044153 | 0.016706 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.044444 | 0.111111 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
17a1ab7b0b3aa2eca1c9d4635ea866a783a622f0 | 240 | py | Python | openstates/openstates-master/experimental/bathawk/run.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/experimental/bathawk/run.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/experimental/bathawk/run.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | import sys
from bathawk import BathawkShell
from actions import Actions
def main(_, abbr):
actions = Actions(abbr)
shell = BathawkShell(actions, abbr)
shell.interact(banner='')
if __name__ == '__main__':
main(*sys.argv)
| 17.142857 | 39 | 0.7 | 29 | 240 | 5.482759 | 0.517241 | 0.138365 | 0.201258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191667 | 240 | 13 | 40 | 18.461538 | 0.819588 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bd5eaccefb9c7c26fb2ecd1de42dff8af05d8392 | 453 | py | Python | IMCTF 2021/misc/brute-force-gui/writeup.py | ShortArrow/how_to_solve_ctfs | 52dab945668a5b93d601898e40cd93769f0e900b | [
"MIT"
] | null | null | null | IMCTF 2021/misc/brute-force-gui/writeup.py | ShortArrow/how_to_solve_ctfs | 52dab945668a5b93d601898e40cd93769f0e900b | [
"MIT"
] | null | null | null | IMCTF 2021/misc/brute-force-gui/writeup.py | ShortArrow/how_to_solve_ctfs | 52dab945668a5b93d601898e40cd93769f0e900b | [
"MIT"
] | null | null | null | import time
import pyautogui
for item in range(5):
time.sleep(1)
print(item)
for item in range(0,100):
pyautogui.keyDown('tab')
pyautogui.keyDown('tab')
for charindex in range(len(str(item))):
pyautogui.keyDown(str(item)[charindex])
pyautogui.keyDown('tab')
pyautogui.press('sp... | 22.65 | 47 | 0.646799 | 61 | 453 | 4.803279 | 0.327869 | 0.327645 | 0.324232 | 0.382253 | 0.52901 | 0.52901 | 0.334471 | 0.334471 | 0.334471 | 0.334471 | 0 | 0.027624 | 0.200883 | 453 | 20 | 48 | 22.65 | 0.781768 | 0 | 0 | 0.529412 | 0 | 0 | 0.055066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.058824 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bd64660e02a9caed174dfbb3cd017ef937defd5a | 123 | py | Python | PPKomp 2021/Set A/06 Sequence Number (2A).py | jaredliw/ppkomp-python-solutions | ecb92f3de27100f37595ef31fd46eccd984b84f7 | [
"MIT"
] | 1 | 2021-04-09T13:58:03.000Z | 2021-04-09T13:58:03.000Z | PPKomp 2021/Set A/06 Sequence Number (2A).py | jaredliw/ppkomp-python-solutions | ecb92f3de27100f37595ef31fd46eccd984b84f7 | [
"MIT"
] | null | null | null | PPKomp 2021/Set A/06 Sequence Number (2A).py | jaredliw/ppkomp-python-solutions | ecb92f3de27100f37595ef31fd46eccd984b84f7 | [
"MIT"
] | null | null | null | # Every two consecutive numbers add up to 1
n = int(input())
if n % 2 == 0:
print(n // 2)
else:
print(n // 2 + -n)
| 17.571429 | 43 | 0.544715 | 23 | 123 | 2.913043 | 0.695652 | 0.089552 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056818 | 0.284553 | 123 | 6 | 44 | 20.5 | 0.704545 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bd6bdf0868d929839381b41218a2ce8352b005df | 712 | py | Python | tf2/test.py | lihebi/AdvAE | 56dea2a33c7da64bcc577b0c061a38406fdde101 | [
"MIT"
] | 1 | 2019-12-17T14:26:08.000Z | 2019-12-17T14:26:08.000Z | tf2/test.py | lihebi/AdvAE | 56dea2a33c7da64bcc577b0c061a38406fdde101 | [
"MIT"
] | null | null | null | tf2/test.py | lihebi/AdvAE | 56dea2a33c7da64bcc577b0c061a38406fdde101 | [
"MIT"
] | null | null | null | import sys
import os
import sys
import tarfile
from six.moves import urllib
import tensorflow as tf
sys.path.append('./tf_models')
# pip3 install --user git+https://www.github.com/keras-team/keras-contrib.git
# from keras_contrib.keras_contrib.applications.wide_resnet import WideResidualNetwork
# from keras_contrib.... | 29.666667 | 86 | 0.848315 | 99 | 712 | 5.919192 | 0.484848 | 0.102389 | 0.081911 | 0.117747 | 0.476109 | 0.476109 | 0.255973 | 0.255973 | 0.255973 | 0.255973 | 0 | 0.004644 | 0.092697 | 712 | 23 | 87 | 30.956522 | 0.902477 | 0.445225 | 0 | 0.181818 | 0 | 0 | 0.028351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.909091 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
bd6efa0457224126728917ebb5d5dd11632366d9 | 202 | py | Python | ui/spn/jayex/back.py | SuperNETorg/SuperNET-Lite-3 | a02251ad354d31cae0ef02e966b8bd0971e9335b | [
"MIT"
] | 8 | 2016-06-26T14:25:49.000Z | 2019-03-19T22:45:21.000Z | ui/spn/jayex/back.py | Tosch110/SuperNET-Lite-3 | a02251ad354d31cae0ef02e966b8bd0971e9335b | [
"MIT"
] | null | null | null | ui/spn/jayex/back.py | Tosch110/SuperNET-Lite-3 | a02251ad354d31cae0ef02e966b8bd0971e9335b | [
"MIT"
] | 8 | 2016-06-25T02:43:00.000Z | 2018-02-27T15:40:59.000Z | import json
import urllib2
import uuid
import random
import string
# send api call, must have NXT server running
def nxtapi(typ):
return json.load(urllib2.urlopen('http://jnxt.org:7876/nxt', typ));
| 18.363636 | 68 | 0.757426 | 32 | 202 | 4.78125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.138614 | 202 | 10 | 69 | 20.2 | 0.844828 | 0.212871 | 0 | 0 | 0 | 0 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.714286 | 0.142857 | 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 | 1 | 1 | 1 | 0 | 0 | 3 |
bd8018ad69bdcab80334cf6d8102b7ab671f41e4 | 167 | py | Python | settingweb/urls.py | jakaprima/django-api-framework-OPS | 3c85c70884112f74d73791b2d35a1fdcecf22a69 | [
"CC0-1.0"
] | null | null | null | settingweb/urls.py | jakaprima/django-api-framework-OPS | 3c85c70884112f74d73791b2d35a1fdcecf22a69 | [
"CC0-1.0"
] | null | null | null | settingweb/urls.py | jakaprima/django-api-framework-OPS | 3c85c70884112f74d73791b2d35a1fdcecf22a69 | [
"CC0-1.0"
] | null | null | null | from django.conf.urls import url, include
from .views import testing_api, setting_web
urlpatterns = [
url(r'^$', testing_api),
url(r'^settingweb/', setting_web),
] | 20.875 | 43 | 0.730539 | 24 | 167 | 4.916667 | 0.625 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125749 | 167 | 8 | 44 | 20.875 | 0.808219 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bde56e3e808649092872abd428cf709cc29b1089 | 252 | py | Python | tests/test_client.py | thomasmeeus/nefit-client-python | 0db278a2e4bdf54a4fa958ed91c43f8febfc52d5 | [
"MIT"
] | null | null | null | tests/test_client.py | thomasmeeus/nefit-client-python | 0db278a2e4bdf54a4fa958ed91c43f8febfc52d5 | [
"MIT"
] | null | null | null | tests/test_client.py | thomasmeeus/nefit-client-python | 0db278a2e4bdf54a4fa958ed91c43f8febfc52d5 | [
"MIT"
] | null | null | null | import unittest
from nefit import NefitClient
class AesTest(unittest.TestCase):
client = None
def setUp(self):
self.client = NefitClient(123456789, "abc1abc2abc3abc4", "passworddddd")
if __name__ == '__main__':
unittest.main()
| 18 | 80 | 0.706349 | 26 | 252 | 6.538462 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063725 | 0.190476 | 252 | 13 | 81 | 19.384615 | 0.769608 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.25 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
bdeb4c0aeb7275641fe85fe64fc65b8c64d17ef5 | 104 | py | Python | cli_translate/__init__.py | Insolita/cli_translate | 581526e3800aa4f1c0782f26e56dc47a56692b11 | [
"MIT"
] | 1 | 2018-05-23T14:32:31.000Z | 2018-05-23T14:32:31.000Z | cli_translate/__init__.py | Insolita/cli_translate | 581526e3800aa4f1c0782f26e56dc47a56692b11 | [
"MIT"
] | null | null | null | cli_translate/__init__.py | Insolita/cli_translate | 581526e3800aa4f1c0782f26e56dc47a56692b11 | [
"MIT"
] | null | null | null |
from __future__ import absolute_import
from .core import main
__all__ = ["main"]
__version__ = '0.0.5' | 17.333333 | 38 | 0.75 | 15 | 104 | 4.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033708 | 0.144231 | 104 | 6 | 39 | 17.333333 | 0.696629 | 0 | 0 | 0 | 0 | 0 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bdf49f543d247ff95d62f726db9691b37f1a9059 | 20 | py | Python | timeclock/__init__.py | geostyx/timeclock | 12111a487fd4ac31cded8cfe9a446347b91b530a | [
"MIT"
] | null | null | null | timeclock/__init__.py | geostyx/timeclock | 12111a487fd4ac31cded8cfe9a446347b91b530a | [
"MIT"
] | null | null | null | timeclock/__init__.py | geostyx/timeclock | 12111a487fd4ac31cded8cfe9a446347b91b530a | [
"MIT"
] | null | null | null | __author__ = 'Jacob' | 20 | 20 | 0.75 | 2 | 20 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 20 | 1 | 20 | 20 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bdfae5354b97ccc49f3ca56fc88040ddbededdd3 | 1,101 | py | Python | mysite/task/models.py | AntonBalmakov/Test_task_Planeks | ce501609622701e3f27af2f2f169bacf8d3ddf1c | [
"MIT"
] | null | null | null | mysite/task/models.py | AntonBalmakov/Test_task_Planeks | ce501609622701e3f27af2f2f169bacf8d3ddf1c | [
"MIT"
] | null | null | null | mysite/task/models.py | AntonBalmakov/Test_task_Planeks | ce501609622701e3f27af2f2f169bacf8d3ddf1c | [
"MIT"
] | null | null | null | from django.db import models
class FirstUserModel(models.Model):
TEXT = (
('Предложения', '1'),
('Предложения', '2'),
('Предложения', '3'),
('Предложения', '4'),
)
first_name = models.CharField(max_length=32, verbose_name="first name")
last_name = models.CharField(max_... | 39.321429 | 79 | 0.690282 | 137 | 1,101 | 5.321168 | 0.343066 | 0.165981 | 0.197531 | 0.263374 | 0.36214 | 0.326475 | 0.326475 | 0.224966 | 0 | 0 | 0 | 0.022026 | 0.175295 | 1,101 | 28 | 80 | 39.321429 | 0.780837 | 0 | 0 | 0 | 0 | 0 | 0.163339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0.043478 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
da06b6ca7dd17671e4547b5839be2430815cbf35 | 3,853 | py | Python | src/qasm_optimizer/optimizer.py | dstallenberg/In-Phase | 21ddfd089b6e4111cc54ae00607aea01fdc94329 | [
"MIT"
] | 2 | 2020-02-09T13:08:22.000Z | 2020-02-16T18:20:10.000Z | src/qasm_optimizer/optimizer.py | dstallenberg/In-Phase | 21ddfd089b6e4111cc54ae00607aea01fdc94329 | [
"MIT"
] | null | null | null | src/qasm_optimizer/optimizer.py | dstallenberg/In-Phase | 21ddfd089b6e4111cc54ae00607aea01fdc94329 | [
"MIT"
] | null | null | null | import re
single_operators = ['H', 'X', 'Y', 'Z', 'prep_x', 'prep_y', 'prep_z']
single_operators_arg = ['Rx', 'Ry', 'Rz']
double_operators = ['CNOT', 'CX', 'CY', 'CZ', 'SWAP']
def two_to_one(code):
parts = code.split('\n')
parts_1 = parts[0].split(',')
parts_2 = parts[1].split(',')
final_arg = flo... | 46.987805 | 252 | 0.491046 | 628 | 3,853 | 2.901274 | 0.103503 | 0.059276 | 0.039517 | 0.043908 | 0.768935 | 0.727772 | 0.727772 | 0.681669 | 0.648738 | 0.648738 | 0 | 0.003845 | 0.257462 | 3,853 | 81 | 253 | 47.567901 | 0.632995 | 0.017908 | 0 | 0.407407 | 0 | 0.185185 | 0.40291 | 0.006349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.018519 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
da4833dc93833534e5d473bb107a40e0e5f43957 | 6,416 | py | Python | charms/declarative/core/predicates.py | ajkavanagh/charms.declarative | 6905ee8f37955281b1a1f3be115d4bef69d1657c | [
"Apache-2.0"
] | null | null | null | charms/declarative/core/predicates.py | ajkavanagh/charms.declarative | 6905ee8f37955281b1a1f3be115d4bef69d1657c | [
"Apache-2.0"
] | null | null | null | charms/declarative/core/predicates.py | ajkavanagh/charms.declarative | 6905ee8f37955281b1a1f3be115d4bef69d1657c | [
"Apache-2.0"
] | null | null | null | from charms.declarative.core.ro_types import (
Callable,
)
class DeferredBasicStringComparitor(object):
"""Provides a class that will compare strings from an iterator type object.
(very similar to the BasicStringComparitor() in charm-helpers)
However, this version provides a deferred version, which r... | 33.416667 | 79 | 0.637001 | 820 | 6,416 | 4.769512 | 0.210976 | 0.057274 | 0.081821 | 0.052928 | 0.552544 | 0.5326 | 0.504475 | 0.504475 | 0.469189 | 0.422654 | 0 | 0 | 0.269327 | 6,416 | 191 | 80 | 33.591623 | 0.834258 | 0.406484 | 0 | 0.493827 | 0 | 0 | 0.055163 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 1 | 0.283951 | false | 0 | 0.012346 | 0.148148 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
da527f5537dd27572ac844ed2389d046e7cdb2bb | 32,882 | py | Python | pysnmp-with-texts/Nortel-Magellan-Passport-CallRedirectionMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/Nortel-Magellan-Passport-CallRedirectionMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/Nortel-Magellan-Passport-CallRedirectionMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Nortel-Magellan-Passport-CallRedirectionMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-CallRedirectionMIB
# Produced by pysmi-0.3.4 at Wed May 1 14:26:41 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by use... | 152.939535 | 3,306 | 0.794812 | 3,919 | 32,882 | 6.668793 | 0.118398 | 0.01079 | 0.098029 | 0.011479 | 0.536981 | 0.393687 | 0.3511 | 0.340693 | 0.322518 | 0.298297 | 0 | 0.055117 | 0.097865 | 32,882 | 214 | 3,307 | 153.654206 | 0.825917 | 0.011556 | 0 | 0 | 0 | 0.10628 | 0.362786 | 0.04284 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.082126 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
da612785c261ef50d58a9933bb93cfc8c216a04b | 168 | py | Python | problem0566.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0566.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0566.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #566 Cake Icing Puzzle - Project Euler
# https://projecteuler.net/problem=566
#
# Code by Kevin Marciniak
#
###########################
| 18.666667 | 40 | 0.47619 | 15 | 168 | 5.333333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.119048 | 168 | 8 | 41 | 21 | 0.5 | 0.583333 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
da6fc8cb31c01b1e920f08c7fe33c408fef21bf0 | 903 | py | Python | sdk/python/pulumi_azure_native/hybridnetwork/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/hybridnetwork/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/hybridnetwork/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from .. import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .device import *
from .get_device import... | 31.137931 | 99 | 0.785161 | 123 | 903 | 5.552846 | 0.495935 | 0.190337 | 0.095168 | 0.083455 | 0.228404 | 0.152269 | 0 | 0 | 0 | 0 | 0 | 0.042471 | 0.139535 | 903 | 28 | 100 | 32.25 | 0.836551 | 0.255814 | 0 | 0 | 1 | 0 | 0.075188 | 0.075188 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.9 | 0 | 0.9 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
da771745be2603bfbb953b0155efd7decc1f28fe | 2,245 | py | Python | chaospy/distributions/operators/arcsinh.py | krystophny/chaospy | e09f8e3f6dfc26145f15774edd5b03665140712f | [
"MIT"
] | 1 | 2019-12-20T00:32:44.000Z | 2019-12-20T00:32:44.000Z | chaospy/distributions/operators/arcsinh.py | QianWanghhu/chaospy | 18ff6c4fc56c632825e53fb24e17de51a7febd7d | [
"MIT"
] | null | null | null | chaospy/distributions/operators/arcsinh.py | QianWanghhu/chaospy | 18ff6c4fc56c632825e53fb24e17de51a7febd7d | [
"MIT"
] | null | null | null | """Arc-Sinus Hyperbolic."""
import numpy
from ..baseclass import Dist
from .. import evaluation, approximation
class Arcsinh(Dist):
"""
Arc-Sinus Hyperbolic.
Args:
dist (Dist): Distribution to perform transformation on.
Example:
>>> distribution = chaospy.Arcsinh(chaospy.Uniform(0, 1... | 32.071429 | 79 | 0.61069 | 292 | 2,245 | 4.55137 | 0.273973 | 0.047404 | 0.060196 | 0.105342 | 0.327314 | 0.266366 | 0.248307 | 0.139955 | 0.139955 | 0.139955 | 0 | 0.051795 | 0.243207 | 2,245 | 69 | 80 | 32.536232 | 0.73043 | 0.335412 | 0 | 0.181818 | 0 | 0 | 0.012876 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.30303 | false | 0 | 0.090909 | 0.181818 | 0.757576 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
da7b1d86f2202e137151fb870af470458088348b | 1,113 | py | Python | tests/test_api.py | steffex/pyPostcode | d8d4aa319136bf0fc9a002e4a0835c59bd3a0c3c | [
"MIT"
] | 3 | 2019-02-27T11:53:18.000Z | 2021-05-13T12:27:44.000Z | tests/test_api.py | steffex/pyPostcode | d8d4aa319136bf0fc9a002e4a0835c59bd3a0c3c | [
"MIT"
] | 13 | 2015-02-15T15:07:46.000Z | 2020-06-09T06:51:11.000Z | tests/test_api.py | steffex/pyPostcode | d8d4aa319136bf0fc9a002e4a0835c59bd3a0c3c | [
"MIT"
] | 11 | 2015-02-13T14:29:43.000Z | 2020-08-20T12:50:44.000Z | import unittest
import os
from pyPostcode import Api, pyPostcodeException
class TestAPI(unittest.TestCase):
def setUp(self) -> None:
self.api = Api(os.environ.get('POSTCODE_API_KEY'))
self.api.url = 'https://sandbox.postcodeapi.nu'
def test_api_key_is_required(self):
with self.assert... | 34.78125 | 68 | 0.683738 | 119 | 1,113 | 6.327731 | 0.436975 | 0.219124 | 0.321381 | 0.079681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031638 | 0.204852 | 1,113 | 31 | 69 | 35.903226 | 0.819209 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0.48 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
da7edb5f88dd20026bd43dd26fd221b107fafa89 | 27,346 | py | Python | NB-SVM-Classification/FMNIST-Article-Classifier/Q2.py | Vedant2311/Machine-Learning-Algorithms | 0aa0292cb531737190228ce9ea0fc059b2791e8c | [
"MIT"
] | null | null | null | NB-SVM-Classification/FMNIST-Article-Classifier/Q2.py | Vedant2311/Machine-Learning-Algorithms | 0aa0292cb531737190228ce9ea0fc059b2791e8c | [
"MIT"
] | null | null | null | NB-SVM-Classification/FMNIST-Article-Classifier/Q2.py | Vedant2311/Machine-Learning-Algorithms | 0aa0292cb531737190228ce9ea0fc059b2791e8c | [
"MIT"
] | null | null | null | ### Importing and Setting the basic Modules
import numpy as np
import math
import csv
import scipy
from cvxopt import matrix, solvers
import time
from sklearn.svm import SVC
from sklearn import metrics
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import train_test_split
## Function to read... | 33.146667 | 202 | 0.688071 | 4,340 | 27,346 | 4.161982 | 0.06659 | 0.045618 | 0.032276 | 0.032553 | 0.782871 | 0.74373 | 0.709461 | 0.678127 | 0.639872 | 0.629796 | 0 | 0.027273 | 0.129818 | 27,346 | 824 | 203 | 33.186893 | 0.731804 | 0.066079 | 0 | 0.401709 | 0 | 0 | 0.051997 | 0.020823 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.042735 | 0.008547 | 0.15812 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
da837f6254e171bdcb2a2036462608445c2b1b41 | 728 | py | Python | chart-generation/generate_vaccine_charts.py | maldins46/CovidTracker | 6a50e780935de62e07c691fae2363c290aae5795 | [
"MIT"
] | null | null | null | chart-generation/generate_vaccine_charts.py | maldins46/CovidTracker | 6a50e780935de62e07c691fae2363c290aae5795 | [
"MIT"
] | 13 | 2020-11-04T22:39:55.000Z | 2022-03-02T10:27:45.000Z | chart-generation/generate_vaccine_charts.py | maldins46/CovidTracker | 6a50e780935de62e07c691fae2363c290aae5795 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Generates all charts linked to the vaccines situation in italy.
@author: riccardomaldini
"""
from charts import vaccines as chrt_vac
from geocharts import vaccines as geoc_vac
from summaries import vaccines as summ_vac
from pathlib import Path
# Generate folder if no... | 28 | 63 | 0.817308 | 115 | 728 | 4.921739 | 0.443478 | 0.111307 | 0.160777 | 0.121908 | 0.305654 | 0.215548 | 0.09894 | 0 | 0 | 0 | 0 | 0.003012 | 0.087912 | 728 | 25 | 64 | 29.12 | 0.849398 | 0.223901 | 0 | 0 | 1 | 0 | 0.030631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.307692 | 0 | 0.307692 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
da8a2f89f1898927f868acaa67f70f2d6f48d184 | 160 | py | Python | pydigitalstrom/log.py | jtappolet/pydigitalstrom | b988a2c5f72920264ce5e008709aa287c3e6d631 | [
"MIT"
] | 3 | 2018-12-09T00:33:26.000Z | 2020-09-05T04:58:13.000Z | pydigitalstrom/log.py | jtappolet/pydigitalstrom | b988a2c5f72920264ce5e008709aa287c3e6d631 | [
"MIT"
] | null | null | null | pydigitalstrom/log.py | jtappolet/pydigitalstrom | b988a2c5f72920264ce5e008709aa287c3e6d631 | [
"MIT"
] | 4 | 2020-08-20T18:25:34.000Z | 2021-08-30T11:15:28.000Z | import logging
class DSLog:
logger = logging.getLogger("pydigitalstrom")
logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler())
| 20 | 48 | 0.75 | 16 | 160 | 7.5 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14375 | 160 | 7 | 49 | 22.857143 | 0.875912 | 0 | 0 | 0 | 0 | 0 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
da934bb3f759f77cc87ed79347df78cbc5ce34bb | 3,883 | py | Python | src/models/bpda.py | canbakiskan/neuro-inspired-defense | 3c323aa3fa797ac6ea69db2731995370ede26f2f | [
"Apache-2.0"
] | null | null | null | src/models/bpda.py | canbakiskan/neuro-inspired-defense | 3c323aa3fa797ac6ea69db2731995370ede26f2f | [
"Apache-2.0"
] | null | null | null | src/models/bpda.py | canbakiskan/neuro-inspired-defense | 3c323aa3fa797ac6ea69db2731995370ede26f2f | [
"Apache-2.0"
] | 1 | 2021-01-06T09:38:23.000Z | 2021-01-06T09:38:23.000Z | import torch
from .encoders import take_top_T, take_top_T_dropout
from torch.nn.functional import dropout
from .ablation.gaussian_blur import gaussian_blur
from types import SimpleNamespace
class take_top_T_dropout_BPDA_identity(torch.autograd.Function):
@staticmethod
def forward(ctx, x, T, p):
return... | 27.34507 | 78 | 0.660057 | 514 | 3,883 | 4.702335 | 0.184825 | 0.086885 | 0.00993 | 0.072404 | 0.581299 | 0.402979 | 0.295821 | 0.295821 | 0.278031 | 0.22259 | 0 | 0.012585 | 0.242853 | 3,883 | 141 | 79 | 27.539007 | 0.809524 | 0.081895 | 0 | 0.325843 | 0 | 0 | 0.001136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202247 | false | 0 | 0.05618 | 0.11236 | 0.52809 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
16f5b1c3b6b55d2a3b528d8fd37e93afa921abf1 | 173 | py | Python | Pseudocode.py | nmcoker/Bru | 837925eeda93e0b102b12cbf26d7f152b4dd9376 | [
"MIT"
] | null | null | null | Pseudocode.py | nmcoker/Bru | 837925eeda93e0b102b12cbf26d7f152b4dd9376 | [
"MIT"
] | null | null | null | Pseudocode.py | nmcoker/Bru | 837925eeda93e0b102b12cbf26d7f152b4dd9376 | [
"MIT"
] | null | null | null | '''import database'''
def brew()
''' reset door
push button 1
push button 2
global var = 0'''
while(true)
if(global var == 1)
brew()
else
'''wait'''
| 11.533333 | 21 | 0.549133 | 24 | 173 | 3.958333 | 0.75 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.283237 | 173 | 14 | 22 | 12.357143 | 0.733871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
16ff593f698b49c48b376232f5d42d066f7f1d5b | 166 | py | Python | src/main.py | miguel-martinr/Pycture | f174699f620244dd188cb1650e3455f553cb5090 | [
"MIT"
] | null | null | null | src/main.py | miguel-martinr/Pycture | f174699f620244dd188cb1650e3455f553cb5090 | [
"MIT"
] | 51 | 2021-10-06T02:40:17.000Z | 2022-01-13T12:45:43.000Z | src/main.py | miguel-martinr/Pycture | f174699f620244dd188cb1650e3455f553cb5090 | [
"MIT"
] | 1 | 2022-01-17T16:10:25.000Z | 2022-01-17T16:10:25.000Z | from sys import argv
from PyQt5.QtWidgets import QApplication
from pycture import MainWindow
app = QApplication(argv)
window = MainWindow()
window.show()
app.exec()
| 18.444444 | 40 | 0.795181 | 22 | 166 | 6 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.126506 | 166 | 8 | 41 | 20.75 | 0.903448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e525dca6d1022ee2f720089c7a4585ef47242cb2 | 527 | py | Python | scoring/views/import_m/import_data.py | alextenczar/3-julian-alex | 9f2aa71769dd6eb6e7dd9e63236c3e7874f02de7 | [
"MIT"
] | null | null | null | scoring/views/import_m/import_data.py | alextenczar/3-julian-alex | 9f2aa71769dd6eb6e7dd9e63236c3e7874f02de7 | [
"MIT"
] | 3 | 2021-06-09T19:34:38.000Z | 2022-02-10T12:25:27.000Z | scoring/views/import_m/import_data.py | alextenczar/3-julian-alex | 9f2aa71769dd6eb6e7dd9e63236c3e7874f02de7 | [
"MIT"
] | null | null | null | from openpyxl import load_workbook
from scoring.views.import_m.import_judge import import_judge
from scoring.views.import_m.import_student import import_student
from scoring.views.import_m.import_project import import_project
from scoring.views.import_m.import_judge_assignment import import_judge_assignment
def import... | 40.538462 | 82 | 0.829222 | 75 | 527 | 5.52 | 0.28 | 0.15942 | 0.154589 | 0.21256 | 0.304348 | 0.304348 | 0.164251 | 0 | 0 | 0 | 0 | 0 | 0.111954 | 527 | 13 | 83 | 40.538462 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.833333 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e55645e927a333d82cda5c8bdd8beda65e4a5e8e | 55 | py | Python | abbr/doacoes/__init__.py | dvl/abbr-doacoes | 37283918113dfb1deb07132b45183237f1bc1a45 | [
"MIT"
] | null | null | null | abbr/doacoes/__init__.py | dvl/abbr-doacoes | 37283918113dfb1deb07132b45183237f1bc1a45 | [
"MIT"
] | null | null | null | abbr/doacoes/__init__.py | dvl/abbr-doacoes | 37283918113dfb1deb07132b45183237f1bc1a45 | [
"MIT"
] | null | null | null | default_app_config = 'abbr.doacoes.apps.DoacoesConfig'
| 27.5 | 54 | 0.836364 | 7 | 55 | 6.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 55 | 1 | 55 | 55 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.563636 | 0.563636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5689a09a01c6b3d13d3903fcb68c51796ef9ac4 | 82 | py | Python | sparkdq/models/entity/ComparisonType.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | 1 | 2021-02-08T07:49:54.000Z | 2021-02-08T07:49:54.000Z | sparkdq/models/entity/ComparisonType.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | null | null | null | sparkdq/models/entity/ComparisonType.py | PasaLab/SparkDQ | 16d50210747ef7de03cf36d689ce26ff7445f63a | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class ComparisonType(Enum):
AND = "and"
OR = "or"
| 11.714286 | 27 | 0.621951 | 11 | 82 | 4.636364 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268293 | 82 | 6 | 28 | 13.666667 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e58c9be053702e8e75846f159700190bbfa45790 | 123 | py | Python | malib/optimizers/__init__.py | wwxFromTju/malib | 7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2 | [
"MIT"
] | 6 | 2021-05-19T10:25:36.000Z | 2021-12-27T03:30:33.000Z | malib/optimizers/__init__.py | wwxFromTju/malib | 7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2 | [
"MIT"
] | 1 | 2021-05-29T04:51:37.000Z | 2021-05-30T06:18:10.000Z | malib/optimizers/__init__.py | wwxFromTju/malib | 7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2 | [
"MIT"
] | 1 | 2021-06-30T10:53:03.000Z | 2021-06-30T10:53:03.000Z | # Created by yingwen at 2019-03-10
from malib.optimizers.sga import SymplecticOptimizer
__all__ = ["SymplecticOptimizer"]
| 24.6 | 52 | 0.804878 | 15 | 123 | 6.333333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073395 | 0.113821 | 123 | 4 | 53 | 30.75 | 0.798165 | 0.260163 | 0 | 0 | 0 | 0 | 0.213483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e5aba2233883663146bb865c839285f4a5ec6c38 | 4,394 | py | Python | tests/test_fms_api_event_list_parser.py | samuelcouch/the-blue-alliance | 8c7977071dbe9d9745ffdfbb03e37bd016792511 | [
"MIT"
] | null | null | null | tests/test_fms_api_event_list_parser.py | samuelcouch/the-blue-alliance | 8c7977071dbe9d9745ffdfbb03e37bd016792511 | [
"MIT"
] | null | null | null | tests/test_fms_api_event_list_parser.py | samuelcouch/the-blue-alliance | 8c7977071dbe9d9745ffdfbb03e37bd016792511 | [
"MIT"
] | null | null | null | import datetime
import json
import unittest2
from datafeeds.parsers.fms_api.fms_api_event_list_parser import FMSAPIEventListParser
from google.appengine.ext import ndb
from google.appengine.ext import testbed
from consts.district_type import DistrictType
from consts.event_type import EventType
from models.event impo... | 50.505747 | 123 | 0.682294 | 549 | 4,394 | 5.331512 | 0.242259 | 0.202255 | 0.258285 | 0.079945 | 0.646054 | 0.517253 | 0.517253 | 0.500171 | 0.497438 | 0.45644 | 0 | 0.038196 | 0.207556 | 4,394 | 86 | 124 | 51.093023 | 0.802412 | 0.016386 | 0 | 0.228571 | 0 | 0 | 0.111806 | 0.035185 | 0 | 0 | 0 | 0 | 0.542857 | 1 | 0.085714 | false | 0 | 0.128571 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5b7b4a437b4b6ee19b1935371997c7d2fbcf0fb | 76 | py | Python | supplai_client/version.py | rhenter/supplai-client | dbae2b7d1ced14137b0eac362177df850fb111e4 | [
"MIT"
] | null | null | null | supplai_client/version.py | rhenter/supplai-client | dbae2b7d1ced14137b0eac362177df850fb111e4 | [
"MIT"
] | null | null | null | supplai_client/version.py | rhenter/supplai-client | dbae2b7d1ced14137b0eac362177df850fb111e4 | [
"MIT"
] | null | null | null | """
Supplai Version: Generated by python setup.py
"""
__version__ = "0.4.0"
| 15.2 | 45 | 0.684211 | 11 | 76 | 4.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.144737 | 76 | 4 | 46 | 19 | 0.692308 | 0.592105 | 0 | 0 | 1 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5c19deec672346b883449b4de58c71eebf30a1c | 91 | py | Python | python/936.stamping-the-sequence.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/936.stamping-the-sequence.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/936.stamping-the-sequence.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def movesToStamp(self, stamp: str, target: str) -> List[int]:
| 22.75 | 65 | 0.615385 | 11 | 91 | 5.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252747 | 91 | 3 | 66 | 30.333333 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5d28136d2b7fe53709b1343f8724d3ddaeb6e98 | 48 | py | Python | bot/__init__.py | doxmx/bot | e1dad5ba1cf839920bc7dfaa6c7967a19567be36 | [
"MIT"
] | null | null | null | bot/__init__.py | doxmx/bot | e1dad5ba1cf839920bc7dfaa6c7967a19567be36 | [
"MIT"
] | null | null | null | bot/__init__.py | doxmx/bot | e1dad5ba1cf839920bc7dfaa6c7967a19567be36 | [
"MIT"
] | null | null | null | """A bot for Telegram"""
__version__ = "0.0.1"
| 12 | 24 | 0.604167 | 8 | 48 | 3.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.166667 | 48 | 3 | 25 | 16 | 0.55 | 0.375 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e5de20de6b05ab098d9cf63ffdcafcf17b7b44b5 | 247 | py | Python | lime/config_template/environment.py | toastwaffle/LiME | 7d529d9eaeb9de7a9aebe6aa373e1b3611bfd2ad | [
"MIT"
] | null | null | null | lime/config_template/environment.py | toastwaffle/LiME | 7d529d9eaeb9de7a9aebe6aa373e1b3611bfd2ad | [
"MIT"
] | 69 | 2018-02-04T15:08:07.000Z | 2020-03-19T22:04:16.000Z | lime/config_template/environment.py | toastwaffle/LiME | 7d529d9eaeb9de7a9aebe6aa373e1b3611bfd2ad | [
"MIT"
] | null | null | null | """An environment configuration."""
import logging
# General app config
LOG_LEVEL: int = logging.DEBUG
DEBUG: bool = True
# SQLAlchemy
SQLALCHEMY_DATABASE_URI: str = (
'postgresql+pygresql://<user>:<password>@localhost:5432/<database>'
)
| 16.466667 | 71 | 0.724696 | 28 | 247 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018779 | 0.137652 | 247 | 14 | 72 | 17.642857 | 0.807512 | 0.242915 | 0 | 0 | 0 | 0 | 0.361111 | 0.361111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e5e069ae88ad9c6554af7de696b24cfe31c84272 | 5,399 | py | Python | tf2onnx/tflite/ConcatEmbeddingsOptions.py | LoicDagnas/tensorflow-onnx | 6691850e79047d05d85017573170fd8240393b57 | [
"Apache-2.0"
] | 1,473 | 2018-03-16T02:47:33.000Z | 2022-03-31T03:43:52.000Z | tf2onnx/tflite/ConcatEmbeddingsOptions.py | LoicDagnas/tensorflow-onnx | 6691850e79047d05d85017573170fd8240393b57 | [
"Apache-2.0"
] | 1,208 | 2018-03-14T09:58:49.000Z | 2022-03-31T17:56:20.000Z | tf2onnx/tflite/ConcatEmbeddingsOptions.py | LoicDagnas/tensorflow-onnx | 6691850e79047d05d85017573170fd8240393b57 | [
"Apache-2.0"
] | 350 | 2018-04-03T03:48:40.000Z | 2022-03-30T11:23:55.000Z | # SPDX-License-Identifier: Apache-2.0
# automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class ConcatEmbeddingsOptions(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, b... | 44.619835 | 177 | 0.73847 | 556 | 5,399 | 7.061151 | 0.19964 | 0.03566 | 0.100866 | 0.115894 | 0.446001 | 0.445746 | 0.423841 | 0.387163 | 0.362201 | 0.323739 | 0 | 0.013622 | 0.170587 | 5,399 | 121 | 178 | 44.619835 | 0.863109 | 0.15151 | 0 | 0.421687 | 1 | 0 | 0.004416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.325301 | false | 0 | 0.036145 | 0.048193 | 0.698795 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e5e842f57ae586a425361a4693a501e8a601f965 | 171 | py | Python | study_sample/input.py | dantefung/Python-Codebase | 7e154100a1016ad79ec5d6adc7c11f096ec1966b | [
"MIT"
] | null | null | null | study_sample/input.py | dantefung/Python-Codebase | 7e154100a1016ad79ec5d6adc7c11f096ec1966b | [
"MIT"
] | 5 | 2021-04-30T21:18:36.000Z | 2022-03-12T00:55:18.000Z | study_sample/input.py | dantefung/Python-Codebase | 7e154100a1016ad79ec5d6adc7c11f096ec1966b | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:UTF-8 -*-
# input([prompt]) 函数和 raw_input([prompt]) 函数基本类似,但是 input 可以接收一个Python表达式作为输入,并将运算结果返回
str = input('请输入:')
print('您输入的内容为:',str)
| 24.428571 | 86 | 0.684211 | 23 | 171 | 5.043478 | 0.782609 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.099415 | 171 | 6 | 87 | 28.5 | 0.746753 | 0.71345 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e5f070cff27eb0f202ac754324e38745c5176621 | 80 | py | Python | oscar/lib/python3.6/site-packages/tox/version.py | Jean1508/ya-madoa | 1ffb1d11e15bf33e4c3a09698675a4357e887eaa | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python3.6/site-packages/tox/version.py | Jean1508/ya-madoa | 1ffb1d11e15bf33e4c3a09698675a4357e887eaa | [
"BSD-3-Clause"
] | 5 | 2021-05-28T19:38:28.000Z | 2022-03-12T00:45:39.000Z | oscar/lib/python3.6/site-packages/tox/version.py | Jean1508/ya-madoa | 1ffb1d11e15bf33e4c3a09698675a4357e887eaa | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals
__version__ = '3.14.6'
| 16 | 39 | 0.7625 | 12 | 80 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072464 | 0.1375 | 80 | 4 | 40 | 20 | 0.681159 | 0.1625 | 0 | 0 | 0 | 0 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e5ff162067cd1e3fa5f0ccaaca7ba7bb67c69b1b | 86 | py | Python | codigo/Live204/exemplo_00.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | 2 | 2017-06-05T23:32:00.000Z | 2017-06-08T01:01:35.000Z | codigo/Live204/exemplo_00.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | null | null | null | codigo/Live204/exemplo_00.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | null | null | null | from timeit import timeit
print(
timeit('"".join(str(x) for x in range(100))')
)
| 14.333333 | 49 | 0.639535 | 14 | 86 | 3.928571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0.186047 | 86 | 5 | 50 | 17.2 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0.406977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f909c7f1577afbdfa08c14785fbb0ff0cd1ad291 | 1,032 | py | Python | letsadd/csvexporter/models.py | richardcornish/addtwo | 7ac3845718b67e4bad7894f92b36d468b43fd350 | [
"BSD-3-Clause"
] | 1 | 2021-05-22T21:52:35.000Z | 2021-05-22T21:52:35.000Z | letsadd/csvexporter/models.py | richardcornish/letsadd | 7ac3845718b67e4bad7894f92b36d468b43fd350 | [
"BSD-3-Clause"
] | null | null | null | letsadd/csvexporter/models.py | richardcornish/letsadd | 7ac3845718b67e4bad7894f92b36d468b43fd350 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
class Customer(models.Model):
FLAG_CHOICES = [
('example', 'example'),
('Electoral', 'Electoral'),
('Existing Clients', 'Existing Clients'),
('Lapsed', 'Lapsed'),
('test', 'test'),
('WebOffer', 'WebOffer'),
]
forename = models.Ch... | 33.290323 | 84 | 0.656008 | 119 | 1,032 | 5.512605 | 0.369748 | 0.137195 | 0.246951 | 0.329268 | 0.36128 | 0.237805 | 0.237805 | 0.182927 | 0 | 0 | 0 | 0.03317 | 0.21124 | 1,032 | 30 | 85 | 34.4 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.11531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0.038462 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f90e8f495a6676ba487ffa71a1a983283c8fc23f | 161 | py | Python | PacoteDownload/ex014.py | NataliaNasu/cursoemvideo-python3 | 7c206a5ff347416cd83c7a665a7acaffe088f7e7 | [
"MIT"
] | null | null | null | PacoteDownload/ex014.py | NataliaNasu/cursoemvideo-python3 | 7c206a5ff347416cd83c7a665a7acaffe088f7e7 | [
"MIT"
] | null | null | null | PacoteDownload/ex014.py | NataliaNasu/cursoemvideo-python3 | 7c206a5ff347416cd83c7a665a7acaffe088f7e7 | [
"MIT"
] | null | null | null | celsius = float(input('Informe a temperatura em celsius: '))
fahrenheit = celsius * 9 / 5 + 32
print(f'A temperatura {celsius}ºC corresponde a {fahrenheit}ºF.')
| 40.25 | 65 | 0.726708 | 23 | 161 | 5.086957 | 0.695652 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.142857 | 161 | 3 | 66 | 53.666667 | 0.818841 | 0 | 0 | 0 | 0 | 0 | 0.552795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f9119ec9b059e1645883c9ae75c4a2ca0e9abb92 | 1,469 | py | Python | typing_pattern_exercises/topic1/typevar/example3.py | fbsamples/python-typing-tutorial | ffb90f87bb402d3d66d2e2eec4f56197da9f1c64 | [
"MIT"
] | null | null | null | typing_pattern_exercises/topic1/typevar/example3.py | fbsamples/python-typing-tutorial | ffb90f87bb402d3d66d2e2eec4f56197da9f1c64 | [
"MIT"
] | null | null | null | typing_pattern_exercises/topic1/typevar/example3.py | fbsamples/python-typing-tutorial | ffb90f87bb402d3d66d2e2eec4f56197da9f1c64 | [
"MIT"
] | null | null | null | # pyre-ignore-all-errors
# TODO: Change `pyre-ignore-all-errors` to `pyre-strict` on line 1, so we get
# to see all type errors in this file.
# TypeVars can also take a "bound" argument. Suppose we have a class hierachy like this:
class Pet:
name: str
def __init__(self, name: str) -> None:
self.nam... | 24.483333 | 88 | 0.696392 | 245 | 1,469 | 4.114286 | 0.473469 | 0.054563 | 0.025794 | 0.037698 | 0.051587 | 0.051587 | 0 | 0 | 0 | 0 | 0 | 0.000867 | 0.214432 | 1,469 | 59 | 89 | 24.898305 | 0.872617 | 0.654187 | 0 | 0.2 | 0 | 0 | 0.057026 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.25 | false | 0.1 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0077b4cda376f25afc5bdbeeb39eaa6c3b851bae | 164 | py | Python | 01_execute_python/answer_ex01.py | 0205-kurata/python_exercises | 267aeb8d7fd9b2507ed46129441e2701bc5aef83 | [
"MIT"
] | null | null | null | 01_execute_python/answer_ex01.py | 0205-kurata/python_exercises | 267aeb8d7fd9b2507ed46129441e2701bc5aef83 | [
"MIT"
] | null | null | null | 01_execute_python/answer_ex01.py | 0205-kurata/python_exercises | 267aeb8d7fd9b2507ed46129441e2701bc5aef83 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
def main():
one = plus(2,3)
print("Hello Python!:"&str(one))
def plus(x,y):
return x+y
if __name__ == "__main__":
main()
| 13.666667 | 36 | 0.530488 | 25 | 164 | 3.16 | 0.72 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0.243902 | 164 | 11 | 37 | 14.909091 | 0.612903 | 0.128049 | 0 | 0 | 0 | 0 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
0085b465102b852c061085341b4d215db9ac1e34 | 238 | py | Python | Ip2location.py | sakisma/gccthon19 | 923afd220bbb84a1b914ecb7b38a1b96b48e2997 | [
"MIT"
] | null | null | null | Ip2location.py | sakisma/gccthon19 | 923afd220bbb84a1b914ecb7b38a1b96b48e2997 | [
"MIT"
] | null | null | null | Ip2location.py | sakisma/gccthon19 | 923afd220bbb84a1b914ecb7b38a1b96b48e2997 | [
"MIT"
] | 1 | 2019-06-01T16:15:16.000Z | 2019-06-01T16:15:16.000Z | import urllib.request as url
import json
from functools import lru_cache
@lru_cache(maxsize=None)
def ip2loc(ip):
response = url.urlopen("http://extreme-ip-lookup.com/json/"+ip)
geo = json.load(response)
return geo['country']
| 26.444444 | 67 | 0.731092 | 36 | 238 | 4.777778 | 0.694444 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.138655 | 238 | 8 | 68 | 29.75 | 0.834146 | 0 | 0 | 0 | 0 | 0 | 0.172269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
008a3f3545de4a48e7c157f1e79041eb577defb7 | 486 | py | Python | tools/leetcode.038.Count and Say/leetcode.038.Count and Say.submission6.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.038.Count and Say/leetcode.038.Count and Say.submission6.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.038.Count and Say/leetcode.038.Count and Say.submission6.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution:
# @return a string
def countAndSay(self, n):
if n == 1: return '1'
res = '1.'
for i in range(n-1):
cnt = 0
temp = ''
common = res[0]
for i in res:
if common == i:
cnt +=1
e... | 486 | 486 | 0.337449 | 51 | 486 | 3.215686 | 0.431373 | 0.02439 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0.549383 | 486 | 1 | 486 | 486 | 0.707763 | 0.032922 | 0 | 0 | 0 | 0 | 0.012793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
00a9e49fa45dd0e311cdf0f5ad5a9262c4c953f4 | 213 | py | Python | api/database.py | nokia-wroclaw/innovativeproject-cross-app-links | 824b6f876df6a84d672c523b62a5142e2b4d6331 | [
"MIT"
] | 3 | 2017-03-07T08:22:03.000Z | 2017-03-29T12:08:18.000Z | api/database.py | nokia-wroclaw/innovativeproject-cross-app-links | 824b6f876df6a84d672c523b62a5142e2b4d6331 | [
"MIT"
] | null | null | null | api/database.py | nokia-wroclaw/innovativeproject-cross-app-links | 824b6f876df6a84d672c523b62a5142e2b4d6331 | [
"MIT"
] | 7 | 2017-03-13T17:22:23.000Z | 2020-02-03T19:10:08.000Z | from api import app
from flask_sqlalchemy import SQLAlchemy
import os
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['DATABASE_URL']
app.config['SQLALCHEMY_TRACK_MODIFICATIONS']= False
db = SQLAlchemy(app) | 21.3 | 66 | 0.807512 | 29 | 213 | 5.724138 | 0.551724 | 0.192771 | 0.228916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 213 | 10 | 67 | 21.3 | 0.864583 | 0 | 0 | 0 | 0 | 0 | 0.303738 | 0.247664 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
00b7c5111a3cde3a389d156ce7a37c0abb1c6619 | 2,858 | py | Python | aliyun-python-sdk-cloudwf/aliyunsdkcloudwf/request/v20170328/ShopSetredressRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-cloudwf/aliyunsdkcloudwf/request/v20170328/ShopSetredressRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-cloudwf/aliyunsdkcloudwf/request/v20170328/ShopSetredressRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 29.770833 | 81 | 0.745276 | 404 | 2,858 | 5.074257 | 0.262376 | 0.035122 | 0.081951 | 0.099512 | 0.181463 | 0.181463 | 0.181463 | 0 | 0 | 0 | 0 | 0.004894 | 0.142057 | 2,858 | 96 | 82 | 29.770833 | 0.831158 | 0.263821 | 0 | 0 | 0 | 0 | 0.107249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.480769 | false | 0 | 0.019231 | 0.230769 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
00cb0e4a13f9db40bdaebb95f2f1374b8c327812 | 2,818 | py | Python | Algorithm/Generator/Main.py | basecodes/MahjongAlgorithm | 42beeff1561b1865c21cc43cdb00b558841c2ed3 | [
"MIT"
] | 6 | 2019-03-26T14:52:28.000Z | 2022-03-19T19:02:10.000Z | Algorithm/Generator/Main.py | basecodes/MahjongAlgorithm | 42beeff1561b1865c21cc43cdb00b558841c2ed3 | [
"MIT"
] | 1 | 2019-11-28T15:55:52.000Z | 2019-11-28T15:55:52.000Z | Algorithm/Generator/Main.py | basecodes/MahjongAlgorithm | 42beeff1561b1865c21cc43cdb00b558841c2ed3 | [
"MIT"
] | 1 | 2020-06-06T21:13:47.000Z | 2020-06-06T21:13:47.000Z | # coding=utf8
import json
from Mahjong import *
from threading import *
def table(mahjong):
array = []
# ----------------------------------------
# [[1, 1, 1], [1, 1, 1], [1, 1, 1], [1, 1, 1], [2]]
array += mahjong.combination([[1, 1, 1], [1, 1, 1], [1, 1, 1], [1, 1, 1], [2]])
# [[1,1,1],[1,1,1]... | 26.584906 | 84 | 0.445351 | 382 | 2,818 | 3.259162 | 0.123037 | 0.163855 | 0.195181 | 0.192771 | 0.497189 | 0.495582 | 0.416867 | 0.378313 | 0.35502 | 0.35261 | 0 | 0.096189 | 0.217885 | 2,818 | 105 | 85 | 26.838095 | 0.468693 | 0.23137 | 0 | 0.176471 | 0 | 0 | 0.040597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.058824 | 0 | 0.196078 | 0.078431 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
daa67c568ecbf1e365442cd11b139df85d6ac7b8 | 4,168 | py | Python | src/detection/MediapipeFaceDetector.py | ShivangMathur1/Face-Recognition-System | 3a7eb1af8830d6c36218652ed30edd8a49b7bb4d | [
"MIT"
] | null | null | null | src/detection/MediapipeFaceDetector.py | ShivangMathur1/Face-Recognition-System | 3a7eb1af8830d6c36218652ed30edd8a49b7bb4d | [
"MIT"
] | 3 | 2022-01-15T06:46:26.000Z | 2022-02-23T11:14:03.000Z | src/detection/MediapipeFaceDetector.py | ShivangMathur1/Face-Recognition-System | 3a7eb1af8830d6c36218652ed30edd8a49b7bb4d | [
"MIT"
] | 3 | 2022-01-11T08:33:15.000Z | 2022-02-21T09:26:26.000Z | import cv2
import mediapipe as mp
class A:
def __init__(self):
print("Initializing mediapipe face detector")
self.face_detection = mp.solutions.face_detection.FaceDetection(
model_selection=1, min_detection_confidence=0.5
)
self.get_key_point = mp.solutions.face_detecti... | 36.884956 | 100 | 0.356766 | 259 | 4,168 | 5.509653 | 0.281853 | 0.156973 | 0.246671 | 0.291521 | 0.537491 | 0.537491 | 0.537491 | 0.308339 | 0 | 0 | 0 | 0.010532 | 0.567179 | 4,168 | 112 | 101 | 37.214286 | 0.780488 | 0.433541 | 0 | 0.3 | 0 | 0 | 0.015693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.175 | 0.025 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
dad5e4ca57525214583994140ebe949e04406dcb | 455 | py | Python | web/app/urls.py | huangchenyang/RedPacketDapp | f23f8430b1ad20f08829a0efb424c707add96178 | [
"MIT"
] | null | null | null | web/app/urls.py | huangchenyang/RedPacketDapp | f23f8430b1ad20f08829a0efb424c707add96178 | [
"MIT"
] | null | null | null | web/app/urls.py | huangchenyang/RedPacketDapp | f23f8430b1ad20f08829a0efb424c707add96178 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
handler500 = views.index
handler404 = views.index
urlpatterns = [
path(r'', views.index, name='index'),
path(r'give/', views.index, name='index'),
path(r'redeem', views.index, name='index'),
path(r'redeem', views.index, name='index'),
path(r'redeem... | 26.764706 | 54 | 0.650549 | 64 | 455 | 4.625 | 0.25 | 0.304054 | 0.331081 | 0.449324 | 0.64527 | 0.64527 | 0.564189 | 0.564189 | 0.564189 | 0.564189 | 0 | 0.015584 | 0.153846 | 455 | 16 | 55 | 28.4375 | 0.753247 | 0 | 0 | 0.153846 | 0 | 0 | 0.167033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
daed362670ef6749161455a9072ee5b5fb8af4a1 | 261 | py | Python | claf/model/sequence_classification/__init__.py | clovaai/claf | 97d5379b4c6014b527b894cac4e761ec8fec67a6 | [
"MIT"
] | 10 | 2019-06-11T00:59:51.000Z | 2021-11-06T09:58:30.000Z | claf/model/sequence_classification/__init__.py | clovaai/claf | 97d5379b4c6014b527b894cac4e761ec8fec67a6 | [
"MIT"
] | null | null | null | claf/model/sequence_classification/__init__.py | clovaai/claf | 97d5379b4c6014b527b894cac4e761ec8fec67a6 | [
"MIT"
] | 4 | 2019-08-16T20:44:31.000Z | 2020-10-29T11:03:15.000Z |
from claf.model.sequence_classification.bert_for_seq_cls import BertForSeqCls
from claf.model.sequence_classification.structured_self_attention import StructuredSelfAttention
# fmt: off
__all__ = [
"BertForSeqCls", "StructuredSelfAttention"
]
# fmt: on
| 21.75 | 96 | 0.823755 | 28 | 261 | 7.285714 | 0.678571 | 0.078431 | 0.127451 | 0.205882 | 0.343137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10728 | 261 | 11 | 97 | 23.727273 | 0.875536 | 0.061303 | 0 | 0 | 0 | 0 | 0.149378 | 0.095436 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
972485d343ce39e4de72293524c6ccc7f2c12c8b | 174 | py | Python | chapter-10/file_examples/file_reader.py | krastin/pp-cs3.0 | 502be9aac2d84215db176864e443c219e5e26591 | [
"MIT"
] | null | null | null | chapter-10/file_examples/file_reader.py | krastin/pp-cs3.0 | 502be9aac2d84215db176864e443c219e5e26591 | [
"MIT"
] | null | null | null | chapter-10/file_examples/file_reader.py | krastin/pp-cs3.0 | 502be9aac2d84215db176864e443c219e5e26591 | [
"MIT"
] | null | null | null | #file = open('sample.txt','r')
#contents = file.read()
#file.close()
#print(contents)
with open('file_example.txt', 'r') as file:
contents = file.read()
print(contents)
| 19.333333 | 43 | 0.66092 | 25 | 174 | 4.56 | 0.48 | 0.070175 | 0.280702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126437 | 174 | 8 | 44 | 21.75 | 0.75 | 0.448276 | 0 | 0 | 0 | 0 | 0.184783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
97353421bc325ab680e7d78258d6fa74ad84b7e3 | 136 | py | Python | Practice-Problems/Enormous-Input.py | ayushchauhan09/CodeChef-Solutions | 333e1167b7764bcfb8061c942329afe128c18284 | [
"MIT"
] | null | null | null | Practice-Problems/Enormous-Input.py | ayushchauhan09/CodeChef-Solutions | 333e1167b7764bcfb8061c942329afe128c18284 | [
"MIT"
] | null | null | null | Practice-Problems/Enormous-Input.py | ayushchauhan09/CodeChef-Solutions | 333e1167b7764bcfb8061c942329afe128c18284 | [
"MIT"
] | null | null | null | n, k = map(int, input().split())
count = 0
for _ in range(n):
a = int(input())
if a%k == 0:
count +=1
print(count) | 19.428571 | 33 | 0.485294 | 23 | 136 | 2.826087 | 0.652174 | 0.246154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.316176 | 136 | 7 | 34 | 19.428571 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
973ff9f75767b5b2448d982ba86abb9281de9df0 | 427 | py | Python | book_project/booktest/migrations/0002_auto_20200220_1131.py | czl0325/Django_start | 8da7bd177b68782550a5484f29e7bc377d88c25f | [
"Apache-2.0"
] | null | null | null | book_project/booktest/migrations/0002_auto_20200220_1131.py | czl0325/Django_start | 8da7bd177b68782550a5484f29e7bc377d88c25f | [
"Apache-2.0"
] | null | null | null | book_project/booktest/migrations/0002_auto_20200220_1131.py | czl0325/Django_start | 8da7bd177b68782550a5484f29e7bc377d88c25f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.3 on 2020-02-20 03:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('booktest', '0001_initial'),
]
operations = [
migrations.AlterModelTable(
name='bookinfo',
table='bookinfo',
),
... | 19.409091 | 47 | 0.555035 | 38 | 427 | 6.210526 | 0.710526 | 0.211864 | 0.245763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066434 | 0.330211 | 427 | 21 | 48 | 20.333333 | 0.758741 | 0.105386 | 0 | 0.266667 | 1 | 0 | 0.136842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9745e16e060e773e4a526981e82e66fee09fde21 | 1,243 | py | Python | 5.2_CUSTOM_LIBRARY/lsbit_custom_normalizer.py | pedroMoya/alaska_2_share | a5f958da45b97e8c8cdc0b868e4447dbc500c6f9 | [
"MIT"
] | null | null | null | 5.2_CUSTOM_LIBRARY/lsbit_custom_normalizer.py | pedroMoya/alaska_2_share | a5f958da45b97e8c8cdc0b868e4447dbc500c6f9 | [
"MIT"
] | null | null | null | 5.2_CUSTOM_LIBRARY/lsbit_custom_normalizer.py | pedroMoya/alaska_2_share | a5f958da45b97e8c8cdc0b868e4447dbc500c6f9 | [
"MIT"
] | null | null | null | # function that makes last pre-process step to images, preparing data for training the CNNs
# use vectorize and LSByte
import numpy as np
import itertools as it
import tensorflow as tf
import cv2
class lsbit_custom_image_normalizer():
def normalize(self, local_image_rgb):
local_image_rgb = cv2.cvtColor(l... | 46.037037 | 98 | 0.670957 | 195 | 1,243 | 3.958974 | 0.34359 | 0.142487 | 0.185233 | 0.072539 | 0.374352 | 0.369171 | 0.227979 | 0.185233 | 0.129534 | 0.129534 | 0 | 0.037525 | 0.206758 | 1,243 | 26 | 99 | 47.807692 | 0.745436 | 0.410298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
978082399e58f23a1b9f0aa7bc962ece4a17ca31 | 1,076 | py | Python | polundra/visual/screen.py | smgd/polundra | fc01eee36e5337dde2df8d67e7e9b670e9cf1e58 | [
"MIT"
] | 1 | 2021-09-26T19:40:36.000Z | 2021-09-26T19:40:36.000Z | polundra/visual/screen.py | smgd/polundra | fc01eee36e5337dde2df8d67e7e9b670e9cf1e58 | [
"MIT"
] | 2 | 2021-09-27T10:52:59.000Z | 2021-09-27T10:56:02.000Z | polundra/visual/screen.py | smgd/polundra | fc01eee36e5337dde2df8d67e7e9b670e9cf1e58 | [
"MIT"
] | null | null | null | from decimal import Decimal
from pathlib import Path
from typing import Type, Any
class FileVar:
def __init__(self, path: str, type_: Type[Any] = str) -> None:
self.path: Path = Path(path)
self.type_ = type_
def get(self):
return self.type_(self.path.read_text())
def set(self, va... | 25.619048 | 95 | 0.651487 | 137 | 1,076 | 4.934307 | 0.291971 | 0.047337 | 0.032544 | 0.079882 | 0.147929 | 0.147929 | 0.147929 | 0 | 0 | 0 | 0 | 0 | 0.233271 | 1,076 | 41 | 96 | 26.243902 | 0.819394 | 0 | 0 | 0 | 0 | 0 | 0.091078 | 0.091078 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.103448 | 0.103448 | 0.724138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9789201a06445e0e78e1fba284695e89d7590285 | 1,329 | py | Python | opaal/opaal/util.py | sen-uni-kn/tartar | 5148f8737ab39c09aa0ca4907b1af7c44cf8b8a0 | [
"MIT"
] | null | null | null | opaal/opaal/util.py | sen-uni-kn/tartar | 5148f8737ab39c09aa0ca4907b1af7c44cf8b8a0 | [
"MIT"
] | null | null | null | opaal/opaal/util.py | sen-uni-kn/tartar | 5148f8737ab39c09aa0ca4907b1af7c44cf8b8a0 | [
"MIT"
] | null | null | null | import traceback, sys
class Error(Exception):
pass
def emergencyExit(str):
traceback.print_exc(file=sys.stdout)
print """
Error:
%s
If you need help to solve this error please feel free to contact us at: mchro@cs.aau.dk and andrease@cs.aau.dk. Please attach the model the error message.""" % str
sys... | 40.272727 | 365 | 0.75696 | 205 | 1,329 | 4.897561 | 0.6 | 0.047809 | 0.013944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005455 | 0.17231 | 1,329 | 32 | 366 | 41.53125 | 0.907273 | 0.017306 | 0 | 0 | 0 | 0.130435 | 0.772239 | 0.016871 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.086957 | 0.043478 | null | null | 0.086957 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
979397bdd934dc4c20cd40d27a35f658ab2d1f56 | 1,460 | py | Python | metapredict/tests/test_graph_fasta.py | alexpmagalhaes/metapredict | 2041787a4f48d6d7c98fb3d396455d059e67a08e | [
"MIT"
] | 5 | 2021-06-02T16:32:13.000Z | 2022-02-02T13:18:35.000Z | metapredict/tests/test_graph_fasta.py | alexpmagalhaes/metapredict | 2041787a4f48d6d7c98fb3d396455d059e67a08e | [
"MIT"
] | 2 | 2021-08-31T13:13:39.000Z | 2022-02-15T22:32:46.000Z | metapredict/tests/test_graph_fasta.py | alexpmagalhaes/metapredict | 2041787a4f48d6d7c98fb3d396455d059e67a08e | [
"MIT"
] | 2 | 2021-09-21T23:45:56.000Z | 2022-02-02T12:01:59.000Z | import os
import pytest
import protfasta
import metapredict as meta
from metapredict.meta import MetapredictError
current_filepath = os.getcwd()
fasta_filepath = "{}/input_data/three_seqs.fasta".format(current_filepath)
def test_graph_fasta_png():
# can make PNGs
meta.graph_disorder_fasta(fasta_filepath, ... | 27.54717 | 91 | 0.744521 | 226 | 1,460 | 4.597345 | 0.216814 | 0.092397 | 0.138595 | 0.207892 | 0.774783 | 0.752647 | 0.622714 | 0.622714 | 0.549567 | 0.434071 | 0 | 0.031051 | 0.139726 | 1,460 | 52 | 92 | 28.076923 | 0.796178 | 0.037671 | 0 | 0 | 0 | 0 | 0.206429 | 0.093571 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.148148 | false | 0 | 0.185185 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
97b183ef7e0e2e17a8ac19b80ede3c558c0952d1 | 140 | py | Python | .vim/pythonx/snippet_helpers.py | ferpb/dotfiles | 8d56f7ede7152fa78cccef653d1e6e77b5f7b16e | [
"MIT"
] | null | null | null | .vim/pythonx/snippet_helpers.py | ferpb/dotfiles | 8d56f7ede7152fa78cccef653d1e6e77b5f7b16e | [
"MIT"
] | null | null | null | .vim/pythonx/snippet_helpers.py | ferpb/dotfiles | 8d56f7ede7152fa78cccef653d1e6e77b5f7b16e | [
"MIT"
] | null | null | null | def fraction(a, b):
try:
return "%.1f" % (float(a) / float(b))
except (ValueError, ZeroDivisionError):
return "ERR"
| 23.333333 | 45 | 0.557143 | 16 | 140 | 4.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.278571 | 140 | 5 | 46 | 28 | 0.762376 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8adaa21d9a1a48f4fdc2527b4f6286cc4af01fab | 303 | py | Python | trikit/tests/runner.py | lazysloth3/trikit | 5b2c8fb34bf88bef7e21f47df8f9099ec572da3e | [
"MIT"
] | null | null | null | trikit/tests/runner.py | lazysloth3/trikit | 5b2c8fb34bf88bef7e21f47df8f9099ec572da3e | [
"MIT"
] | null | null | null | trikit/tests/runner.py | lazysloth3/trikit | 5b2c8fb34bf88bef7e21f47df8f9099ec572da3e | [
"MIT"
] | null | null | null | import unittest
import triangle_ut
import chainladder_ut
import utils_ut
loader = unittest.TestLoader()
suite = unittest.TestSuite()
suite.addTests(loader.loadTestsFromModule(triangle_ut))
suite.addTests(loader.loadTestsFromModule(chainladder_ut))
suite.addTests(loader.loadTestsFromModule(utils_ut)) | 27.545455 | 58 | 0.851485 | 35 | 303 | 7.2 | 0.342857 | 0.154762 | 0.22619 | 0.452381 | 0.31746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062706 | 303 | 11 | 59 | 27.545455 | 0.887324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8adea16556d9d5f2a554552f143290ada5db7ff7 | 1,036 | py | Python | papermerge/core/migrations/0005_auto_20200419_0639.py | jcollie/papermerge-core | 5e277c26ab30f9fd8c4920ca293d8e1709318198 | [
"Apache-2.0"
] | 45 | 2021-01-10T14:33:52.000Z | 2022-03-27T14:02:56.000Z | papermerge/core/migrations/0005_auto_20200419_0639.py | jcollie/papermerge-core | 5e277c26ab30f9fd8c4920ca293d8e1709318198 | [
"Apache-2.0"
] | 8 | 2021-01-08T20:02:21.000Z | 2022-02-01T13:12:24.000Z | papermerge/core/migrations/0005_auto_20200419_0639.py | jcollie/papermerge-core | 5e277c26ab30f9fd8c4920ca293d8e1709318198 | [
"Apache-2.0"
] | 12 | 2021-01-07T20:03:07.000Z | 2022-03-24T04:07:51.000Z | # Generated by Django 3.0.2 on 2020-04-19 06:39
# import django.contrib.postgres.search
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0004_remove_document_celery_task_id'),
]
operations = [
# migrations.AddField(
# model_nam... | 29.6 | 79 | 0.59749 | 99 | 1,036 | 6.121212 | 0.434343 | 0.107261 | 0.173267 | 0.222772 | 0.653465 | 0.653465 | 0.556106 | 0.556106 | 0.556106 | 0.556106 | 0 | 0.025266 | 0.274131 | 1,036 | 34 | 80 | 30.470588 | 0.780585 | 0.777027 | 0 | 0 | 1 | 0 | 0.1875 | 0.168269 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8ae40c2f9bd881d8558a787962d0928ae1e13a48 | 618 | py | Python | Python Snippets with Documentation/07 Classes/06 Magic Methods.py | AhmedRaja1/Python-Beginner-s-Starter-Kit | 285cfbeb7207e6531954f21cae3a062f977ee5a0 | [
"MIT"
] | 1 | 2021-09-27T16:47:25.000Z | 2021-09-27T16:47:25.000Z | Python Snippets with Documentation/07 Classes/06 Magic Methods.py | AhmedRaja1/Python-Beginner-s-Starter-Kit | 285cfbeb7207e6531954f21cae3a062f977ee5a0 | [
"MIT"
] | null | null | null | Python Snippets with Documentation/07 Classes/06 Magic Methods.py | AhmedRaja1/Python-Beginner-s-Starter-Kit | 285cfbeb7207e6531954f21cae3a062f977ee5a0 | [
"MIT"
] | 1 | 2021-09-27T16:47:33.000Z | 2021-09-27T16:47:33.000Z | # 06 Magic Methods
# https://rszalski.github.io/magicmethods/
# Magiv Methods are called automaticly by Python interpreter, depending on how we use our object and class
class Point:
point_color = "Red"
@classmethod
def zero(cls):
return cls(0, 0, 0)
def __init__(self, x, y, z):
self... | 23.769231 | 106 | 0.616505 | 96 | 618 | 3.854167 | 0.5625 | 0.054054 | 0.048649 | 0.054054 | 0.081081 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.255663 | 618 | 26 | 107 | 23.769231 | 0.771739 | 0.338188 | 0 | 0 | 0 | 0 | 0.195062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0.133333 | 0.533333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8af7f1e73b65115df949514f484f9bde3511e199 | 59 | py | Python | dict.py | KowsalyaThiyagarajan/PythonLearing | 742c9480f4ab28fe22e271e923e6198262deb194 | [
"Apache-2.0"
] | 1 | 2021-10-05T08:14:39.000Z | 2021-10-05T08:14:39.000Z | dict.py | KowsalyaThiyagarajan/PythonLearing | 742c9480f4ab28fe22e271e923e6198262deb194 | [
"Apache-2.0"
] | null | null | null | dict.py | KowsalyaThiyagarajan/PythonLearing | 742c9480f4ab28fe22e271e923e6198262deb194 | [
"Apache-2.0"
] | null | null | null | c={"name":"kowsi","color":"blue"}
print(c)
print(type(c)) | 19.666667 | 34 | 0.59322 | 10 | 59 | 3.5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 59 | 3 | 35 | 19.666667 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8af8f42dc2c5f6202449b0a07fd5bd3fda249a83 | 4,711 | py | Python | tests/py_dss_interface/test_parser.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | 1 | 2022-03-21T20:40:08.000Z | 2022-03-21T20:40:08.000Z | tests/py_dss_interface/test_parser.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | null | null | null | tests/py_dss_interface/test_parser.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 8/26/2021 10:55 PM
# @Author : Rodolfo Londero
# @Email : rodolfpl@gmail.com
# @File : test_parser.py
# @Software: PyCharm
import pytest
# TODO: Error in all tests
class TestDSSParser13Bus:
@pytest.fixture(scope='function')
def dss(self, solve_snap_13bus):
... | 29.44375 | 73 | 0.506262 | 453 | 4,711 | 4.960265 | 0.1766 | 0.104139 | 0.11571 | 0.163774 | 0.719626 | 0.667112 | 0.610592 | 0.478861 | 0.380952 | 0.283934 | 0 | 0.011782 | 0.279346 | 4,711 | 159 | 74 | 29.628931 | 0.650074 | 0.5519 | 0 | 0.434783 | 0 | 0 | 0.003951 | 0 | 0 | 0 | 0 | 0.006289 | 0 | 1 | 0.456522 | false | 0 | 0.021739 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c1238c986953cdc0b45230ad7cba0961c0ced5d1 | 260 | py | Python | jcvi/projects/__main__.py | paradoxcell/jcvi | 3b161796234670ce1c4894974eaeb590d35cf2a2 | [
"BSD-2-Clause"
] | 517 | 2015-01-04T13:09:55.000Z | 2022-03-30T13:42:20.000Z | jcvi/projects/__main__.py | xuzhougeng/jcvi | 225a7f0375a2f8b31d3c44b8134d58b68befe3d6 | [
"BSD-2-Clause"
] | 342 | 2015-05-08T03:50:42.000Z | 2022-03-30T15:30:32.000Z | jcvi/projects/__main__.py | xuzhougeng/jcvi | 225a7f0375a2f8b31d3c44b8134d58b68befe3d6 | [
"BSD-2-Clause"
] | 171 | 2015-01-16T13:01:51.000Z | 2022-03-19T11:28:11.000Z | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Compilation of project specific scripts, used to execute specific analysis routines and generate publication-ready figures
"""
from jcvi.apps.base import dmain
if __name__ == "__main__":
dmain(__file__)
| 21.666667 | 122 | 0.726923 | 34 | 260 | 5.205882 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.153846 | 260 | 11 | 123 | 23.636364 | 0.8 | 0.634615 | 0 | 0 | 1 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c180a5c346ef3b9084c9346b38bdb810953eed0b | 171 | py | Python | test.py | Alantrivandrum/computer-vision-model | 09eaf983680ed83277db4f675f9f72c8d895361f | [
"MIT"
] | null | null | null | test.py | Alantrivandrum/computer-vision-model | 09eaf983680ed83277db4f675f9f72c8d895361f | [
"MIT"
] | 1 | 2021-04-07T03:35:58.000Z | 2021-04-09T00:53:10.000Z | test.py | Alantrivandrum/computer-vision-model | 09eaf983680ed83277db4f675f9f72c8d895361f | [
"MIT"
] | 4 | 2021-03-24T13:37:00.000Z | 2021-04-09T02:20:46.000Z | import os
import glob
import time
list_of_files =glob.glob('./data/video/*')
oldest_vid =max(list_of_files, key=os.path.getmtime)
print(oldest_vid)
#os.remove(oldest_vid)
| 21.375 | 52 | 0.783626 | 30 | 171 | 4.233333 | 0.566667 | 0.212598 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076023 | 171 | 7 | 53 | 24.428571 | 0.803797 | 0.122807 | 0 | 0 | 0 | 0 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c18f7eea4d369b79173f3e517e1897e916c44209 | 2,901 | py | Python | tests/fixtures/test_body_block_content_render/content_18_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 9 | 2015-04-16T08:13:31.000Z | 2020-05-18T14:03:06.000Z | tests/fixtures/test_body_block_content_render/content_18_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 310 | 2015-02-11T00:30:09.000Z | 2021-07-14T23:58:50.000Z | tests/fixtures/test_body_block_content_render/content_18_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 9 | 2015-02-04T01:21:28.000Z | 2021-06-15T12:50:47.000Z | from collections import OrderedDict
expected = [
OrderedDict(
[
(
"content",
[
OrderedDict(
[
("type", "paragraph"),
(
"text",
... | 37.675325 | 141 | 0.264392 | 131 | 2,901 | 5.854962 | 0.335878 | 0.136897 | 0.219035 | 0.255541 | 0.51369 | 0.47588 | 0.47588 | 0.47588 | 0.47588 | 0.47588 | 0 | 0.109056 | 0.645984 | 2,901 | 76 | 142 | 38.171053 | 0.63778 | 0 | 0 | 0.48 | 0 | 0.08 | 0.262323 | 0.104102 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013333 | 0 | 0.013333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
c19355ad2420cec064857b0031436ae8a4c54db4 | 6,672 | py | Python | pysnmp-with-texts/XYLAN-BASE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/XYLAN-BASE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/XYLAN-BASE-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module XYLAN-BASE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/XYLAN-BASE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:44:24 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | 91.39726 | 1,584 | 0.709532 | 928 | 6,672 | 5.101293 | 0.178879 | 0.024926 | 0.183777 | 0.196029 | 0.405577 | 0.363752 | 0.363752 | 0.363752 | 0.354457 | 0.179552 | 0 | 0.135344 | 0.12515 | 6,672 | 72 | 1,585 | 92.666667 | 0.67569 | 0.048261 | 0 | 0 | 0 | 0 | 0.073332 | 0.006939 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.092308 | 0 | 0.092308 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 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 | 3 |
c1a8399a0cab818a26a69e0d403579e94e854444 | 2,481 | py | Python | nestview/nv.py | wojcikk2903/nestview | 33b4a85774f23ddf78c77542410fb0769d036918 | [
"MIT"
] | null | null | null | nestview/nv.py | wojcikk2903/nestview | 33b4a85774f23ddf78c77542410fb0769d036918 | [
"MIT"
] | null | null | null | nestview/nv.py | wojcikk2903/nestview | 33b4a85774f23ddf78c77542410fb0769d036918 | [
"MIT"
] | null | null | null | from functools import singledispatch
@singledispatch
def val_it(obj):
raise NotImplementedError()
@val_it.register
def _(l: list):
return l
@val_it.register
def _(t: tuple):
return t
@val_it.register
def _(d: dict):
return d.values()
@val_it.register
def _(s: set):
return s
def count_mem... | 15.409938 | 88 | 0.623942 | 338 | 2,481 | 4.443787 | 0.174556 | 0.146471 | 0.069241 | 0.04261 | 0.28229 | 0.20506 | 0.109188 | 0.075899 | 0.075899 | 0.075899 | 0 | 0.0037 | 0.237404 | 2,481 | 160 | 89 | 15.50625 | 0.790169 | 0 | 0 | 0.431373 | 0 | 0 | 0.033454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.284314 | false | 0 | 0.009804 | 0.186275 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c1b086088b253fa44d9bae6be27b246392c1d0a5 | 267 | py | Python | {{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/users/models.py | jacobparra/cookiecutter-django-rest | fca57225f40dd34453795cd15de602fa6507eab2 | [
"MIT"
] | null | null | null | {{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/users/models.py | jacobparra/cookiecutter-django-rest | fca57225f40dd34453795cd15de602fa6507eab2 | [
"MIT"
] | 2 | 2021-03-19T23:56:23.000Z | 2021-06-10T23:17:37.000Z | {{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/users/models.py | jacobparra/cookiecutter-django-rest | fca57225f40dd34453795cd15de602fa6507eab2 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
# from django.db import models
# from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
def __unicode__(self):
return self.username
| 22.25 | 57 | 0.786517 | 34 | 267 | 5.852941 | 0.647059 | 0.150754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157303 | 267 | 11 | 58 | 24.272727 | 0.884444 | 0.314607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 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 | 1 | 1 | 1 | 0 | 0 | 3 |
c1bcbb4b0ac1412602891b7bb91cabe3d16a3672 | 714 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/DFX/multisample.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/DFX/multisample.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/raw/GL/DFX/multisample.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_... | 37.578947 | 112 | 0.816527 | 111 | 714 | 4.855856 | 0.45045 | 0.092764 | 0.051948 | 0.083488 | 0.120594 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044753 | 0.092437 | 714 | 18 | 113 | 39.666667 | 0.787037 | 0.140056 | 0 | 0 | 1 | 0 | 0.189769 | 0.074257 | 0 | 0 | 0.046205 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.461538 | 0.076923 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c1cf20279e7ae85f8ec7fc1a5ff6bb3930af4881 | 466 | py | Python | scalyr_agent/third_party/pysnmp/carrier/asyncore/dgram/udp.py | code-sauce/scalyr-agent-2 | 41023d5c1272186193dd02900782b150dda5f38e | [
"Apache-2.0"
] | 67 | 2015-02-03T00:35:33.000Z | 2022-03-23T10:14:26.000Z | scalyr_agent/third_party/pysnmp/carrier/asyncore/dgram/udp.py | code-sauce/scalyr-agent-2 | 41023d5c1272186193dd02900782b150dda5f38e | [
"Apache-2.0"
] | 578 | 2015-04-09T08:58:56.000Z | 2022-03-30T12:13:21.000Z | scalyr_agent/third_party/pysnmp/carrier/asyncore/dgram/udp.py | code-sauce/scalyr-agent-2 | 41023d5c1272186193dd02900782b150dda5f38e | [
"Apache-2.0"
] | 58 | 2015-01-15T22:00:43.000Z | 2022-02-18T15:48:31.000Z | # Implements asyncore-based UDP transport domain
from socket import AF_INET
from pysnmp.carrier.base import AbstractTransportAddress
from pysnmp.carrier.asyncore.dgram.base import DgramSocketTransport
domainName = snmpUDPDomain = (1, 3, 6, 1, 6, 1, 1)
class UdpTransportAddress(tuple, AbstractTransportAddress): pass
... | 31.066667 | 67 | 0.819742 | 49 | 466 | 7.755102 | 0.612245 | 0.031579 | 0.089474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017073 | 0.120172 | 466 | 14 | 68 | 33.285714 | 0.909756 | 0.098712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
c1e41de65a1b5721c71a0be812b1ee34e6b12b7b | 31 | py | Python | simpleml/utils/training/__init__.py | ptoman/SimpleML | a829ee05da01a75b64982d91a012e9274b6f7c6e | [
"BSD-3-Clause"
] | 15 | 2018-08-19T19:36:23.000Z | 2021-11-09T17:47:18.000Z | simpleml/utils/training/__init__.py | ptoman/SimpleML | a829ee05da01a75b64982d91a012e9274b6f7c6e | [
"BSD-3-Clause"
] | 75 | 2020-10-11T17:58:59.000Z | 2022-03-29T22:34:54.000Z | simpleml/utils/training/__init__.py | ptoman/SimpleML | a829ee05da01a75b64982d91a012e9274b6f7c6e | [
"BSD-3-Clause"
] | 4 | 2018-04-30T23:09:42.000Z | 2022-01-19T08:03:18.000Z | __author__ = 'Elisha Yadgaran'
| 15.5 | 30 | 0.774194 | 3 | 31 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a9d1d1604d81f17a5a169120dae58a3b59adb4e2 | 1,816 | py | Python | __init__.py | lllAlexanderlll/mycroft-momo | 74421f6d165136c2ad75b91990a8fc7d036fbfad | [
"Apache-2.0"
] | null | null | null | __init__.py | lllAlexanderlll/mycroft-momo | 74421f6d165136c2ad75b91990a8fc7d036fbfad | [
"Apache-2.0"
] | null | null | null | __init__.py | lllAlexanderlll/mycroft-momo | 74421f6d165136c2ad75b91990a8fc7d036fbfad | [
"Apache-2.0"
] | null | null | null | # TODO: Add an appropriate license to your skill before publishing. See
# the LICENSE file for more information.
# Below is the list of outside modules you'll be using in your skill.
# They might be built-in to Python, from mycroft-core or from external
# libraries. If you use an external library, be sure to include... | 37.061224 | 93 | 0.684471 | 244 | 1,816 | 4.983607 | 0.483607 | 0.026316 | 0.049342 | 0.032895 | 0.042763 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001393 | 0.209251 | 1,816 | 49 | 94 | 37.061224 | 0.845404 | 0.518722 | 0 | 0 | 0 | 0 | 0.115789 | 0.02807 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.315789 | false | 0 | 0.157895 | 0.052632 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a9d1de7dbd57029930a98e7cae1c2ef05f926634 | 330 | py | Python | tests/you_tube/goog_auth.py | kattekrab/veyepar | d7010e451b1b04e7eb7b5ee0239696958ada41d6 | [
"MIT"
] | 20 | 2015-02-01T23:37:03.000Z | 2021-12-07T16:32:41.000Z | tests/you_tube/goog_auth.py | yoe/veyepar | 440f7c0c907510a887c20f1dbddbc590d6065971 | [
"MIT"
] | 19 | 2015-01-03T05:19:33.000Z | 2020-06-05T17:27:41.000Z | tests/you_tube/goog_auth.py | yoe/veyepar | 440f7c0c907510a887c20f1dbddbc590d6065971 | [
"MIT"
] | 18 | 2015-01-17T12:19:09.000Z | 2021-11-20T19:03:08.000Z | # goog_auth.py
# tests authinticating to google
import gdata.youtube.service
from goog_auth_pw import pw
if __name__ == '__main__':
yt_service = gdata.youtube.service.YouTubeService()
yt_service.email = pw['email']
yt_service.password = pw['password']
yt_service.ProgrammaticLogin()
print yt_se... | 18.333333 | 55 | 0.727273 | 42 | 330 | 5.333333 | 0.52381 | 0.200893 | 0.169643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178788 | 330 | 17 | 56 | 19.411765 | 0.826568 | 0.130303 | 0 | 0 | 0 | 0 | 0.073944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.125 | 0.25 | null | null | 0.125 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e7042f1432ee27bb75d53b3964f3f5415d98bc16 | 431 | py | Python | api/models/shop.py | marcmelchor/english-shops | 5e74419cb699f34d0986cb48b88d4faf0d3e585d | [
"MIT"
] | null | null | null | api/models/shop.py | marcmelchor/english-shops | 5e74419cb699f34d0986cb48b88d4faf0d3e585d | [
"MIT"
] | 4 | 2019-12-04T22:27:02.000Z | 2021-02-28T11:44:11.000Z | api/models/shop.py | marcmelchor/english-shops | 5e74419cb699f34d0986cb48b88d4faf0d3e585d | [
"MIT"
] | null | null | null | from django.db import models
class Shop(models.Model):
_title = models.CharField(max_length=100, blank=True, default='')
def __str__(self):
return self._title
def __unicode__(self):
return '/%s/' % self._title
@property
def title(self):
return self._title
@title.set... | 20.52381 | 69 | 0.612529 | 54 | 431 | 4.62963 | 0.537037 | 0.144 | 0.112 | 0.152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.271462 | 431 | 20 | 70 | 21.55 | 0.77707 | 0 | 0 | 0.142857 | 0 | 0 | 0.025522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.214286 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e7118c05e742b875fe40262a3f95d497a9949401 | 862 | py | Python | docs/resource/streaming_response.py | keotl/jivago | 892dfb0cae773e36245083c3e56f0f8523145523 | [
"MIT"
] | 12 | 2018-03-19T20:57:44.000Z | 2020-01-27T14:11:24.000Z | docs/resource/streaming_response.py | keotl/jivago | 892dfb0cae773e36245083c3e56f0f8523145523 | [
"MIT"
] | 73 | 2018-04-20T22:26:00.000Z | 2021-12-01T14:17:37.000Z | docs/resource/streaming_response.py | keotl/jivago | 892dfb0cae773e36245083c3e56f0f8523145523 | [
"MIT"
] | 1 | 2019-02-28T13:33:45.000Z | 2019-02-28T13:33:45.000Z | from jivago.wsgi.annotations import Resource
from jivago.wsgi.methods import GET
from jivago.wsgi.request.headers import Headers
from jivago.wsgi.request.response import Response
from jivago.wsgi.request.streaming_response_body import StreamingResponseBody
@Resource("/stream")
class MyStreamingResource(object):
... | 35.916667 | 110 | 0.743619 | 107 | 862 | 5.925234 | 0.504673 | 0.078864 | 0.11041 | 0.099369 | 0.059937 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011348 | 0.182135 | 862 | 23 | 111 | 37.478261 | 0.887943 | 0.198376 | 0 | 0.125 | 0 | 0 | 0.021802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.3125 | 0.125 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
e71b2bf47ea2c0bc27b443e6b95d5632952e484e | 318 | py | Python | pymidicontroller/extensions/common.py | Kamaroth92/pymidicontroller | ee7e5cc4280fdb9e4482a8e1b2b98d1eb51e4138 | [
"MIT"
] | 25 | 2021-09-06T21:52:18.000Z | 2022-02-04T13:42:18.000Z | pymidicontroller/extensions/common.py | Kamaroth92/pymidicontroller | ee7e5cc4280fdb9e4482a8e1b2b98d1eb51e4138 | [
"MIT"
] | null | null | null | pymidicontroller/extensions/common.py | Kamaroth92/pymidicontroller | ee7e5cc4280fdb9e4482a8e1b2b98d1eb51e4138 | [
"MIT"
] | 2 | 2021-09-07T18:36:21.000Z | 2021-09-13T01:08:25.000Z | def translate(value, leftMin, leftMax, rightMin, rightMax):
leftSpan = leftMax - leftMin
rightSpan = rightMax - rightMin
valueScaled = float(value - leftMin) / float(leftSpan)
result = rightMin + (valueScaled * rightSpan)
return result
def reversed_iterator(iter):
return reversed(list(iter))
| 31.8 | 59 | 0.713836 | 33 | 318 | 6.848485 | 0.515152 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191824 | 318 | 9 | 60 | 35.333333 | 0.879377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e72493645598e31e0e87e651d6127afab2f3554c | 735 | py | Python | app/info/__init__.py | cromulus/check-list | 5e6d7f657ac14688dae181839d1bf38cedf6a232 | [
"MIT"
] | null | null | null | app/info/__init__.py | cromulus/check-list | 5e6d7f657ac14688dae181839d1bf38cedf6a232 | [
"MIT"
] | null | null | null | app/info/__init__.py | cromulus/check-list | 5e6d7f657ac14688dae181839d1bf38cedf6a232 | [
"MIT"
] | null | null | null | #********************************************************************************
#--------------------------------------------------------------------------------
#
# Significance Labs
# Brooklyn, NYC
#
# Author: Alexandra Berke (aberke)
# Written: Summer 2014
#
#
# Base file of info module
# /info/__init__.py
#
# ... | 25.344828 | 82 | 0.387755 | 54 | 735 | 5.037037 | 0.759259 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006006 | 0.093878 | 735 | 29 | 83 | 25.344828 | 0.402402 | 0.689796 | 0 | 0 | 0 | 0 | 0.156398 | 0.104265 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e725b89d0e4128251f556625f25c6514fbcaff9a | 4,979 | py | Python | vowpal_platypus/evaluation.py | jasco/vowpal_platypus | 528f5ee6e0eca9be1c99a7636750da8866e1cee1 | [
"Apache-2.0"
] | 23 | 2016-12-06T20:48:07.000Z | 2021-09-06T15:00:19.000Z | vowpal_platypus/evaluation.py | jasco/vowpal_platypus | 528f5ee6e0eca9be1c99a7636750da8866e1cee1 | [
"Apache-2.0"
] | 9 | 2016-12-06T21:18:07.000Z | 2021-03-20T20:45:34.000Z | vowpal_platypus/evaluation.py | jasco/vowpal_platypus | 528f5ee6e0eca9be1c99a7636750da8866e1cee1 | [
"Apache-2.0"
] | 8 | 2017-02-28T05:00:27.000Z | 2021-09-06T15:01:24.000Z | from math import sqrt, log
def log_loss(results):
predicted = [min([max([x, 1e-15]), 1-1e-15]) for x in map(lambda x: float(x[0]), results)]
target = [min([max([x, 1e-15]), 1-1e-15]) for x in map(lambda x: float(x[1]), results)]
return -(1.0 / len(target)) * sum([target[i] * log(predicted[i]) + (1.0 - t... | 38.596899 | 146 | 0.636473 | 724 | 4,979 | 4.281768 | 0.118785 | 0.227097 | 0.217742 | 0.09871 | 0.64129 | 0.542903 | 0.499677 | 0.458387 | 0.443548 | 0.43 | 0 | 0.033342 | 0.216911 | 4,979 | 128 | 147 | 38.898438 | 0.761734 | 0 | 0 | 0.285714 | 0 | 0 | 0.001607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209524 | false | 0 | 0.009524 | 0.095238 | 0.466667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e77520821328aad5d11073ada934ab6c688fffca | 187 | py | Python | bbbs/afisha/apps.py | AnnaKPolyakova/bbbs | e12b172e601d854291f4877a41ac20798388af4c | [
"MIT"
] | 2 | 2021-07-13T10:31:10.000Z | 2021-07-22T21:32:01.000Z | bbbs/afisha/apps.py | AnnaKPolyakova/bbbs | e12b172e601d854291f4877a41ac20798388af4c | [
"MIT"
] | 28 | 2021-06-12T23:31:04.000Z | 2021-07-19T05:51:42.000Z | bbbs/afisha/apps.py | AnnaKPolyakova/bbbs | e12b172e601d854291f4877a41ac20798388af4c | [
"MIT"
] | 5 | 2021-06-17T20:24:13.000Z | 2021-10-02T02:36:32.000Z | from django.apps import AppConfig
class AfishaConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "bbbs.afisha"
verbose_name = "Календарь"
| 23.375 | 57 | 0.716578 | 21 | 187 | 6.238095 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192513 | 187 | 7 | 58 | 26.714286 | 0.86755 | 0 | 0 | 0 | 0 | 0 | 0.272222 | 0.161111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e79810fae8532226f04e49cca3abb6be9cdaecc3 | 1,074 | py | Python | tests/codeutils/test_identifiersplitting.py | jdayton3/dpu-utils | 2245c761d4482653422b6b76711435e68d5b9633 | [
"MIT"
] | null | null | null | tests/codeutils/test_identifiersplitting.py | jdayton3/dpu-utils | 2245c761d4482653422b6b76711435e68d5b9633 | [
"MIT"
] | null | null | null | tests/codeutils/test_identifiersplitting.py | jdayton3/dpu-utils | 2245c761d4482653422b6b76711435e68d5b9633 | [
"MIT"
] | 1 | 2020-07-30T12:45:52.000Z | 2020-07-30T12:45:52.000Z | import unittest
import dpu_utils.codeutils.identifiersplitting as split
class TestSplitCamelCase(unittest.TestCase):
def run_test(self, identifier, expected):
actual = split.split_camelcase(identifier)
self.assertEqual(expected, actual)
def test_empty_string_returns_empty_list(self):
s... | 33.5625 | 77 | 0.678771 | 133 | 1,074 | 5.150376 | 0.368421 | 0.091971 | 0.128467 | 0.175182 | 0.280292 | 0.251095 | 0.183942 | 0.131387 | 0.131387 | 0.131387 | 0 | 0.006749 | 0.172253 | 1,074 | 31 | 78 | 34.645161 | 0.76378 | 0 | 0 | 0 | 0 | 0 | 0.13594 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.409091 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e79cc131f7425464451f735b84093610ff3643af | 43 | py | Python | app/config.py | techx/how-to-hack-2021 | b557ebf47a2cce35df41549055293e3800d7fef6 | [
"MIT"
] | 7 | 2021-09-14T22:34:31.000Z | 2021-09-17T03:38:34.000Z | app/config.py | techx/how-to-hack-2021 | b557ebf47a2cce35df41549055293e3800d7fef6 | [
"MIT"
] | null | null | null | app/config.py | techx/how-to-hack-2021 | b557ebf47a2cce35df41549055293e3800d7fef6 | [
"MIT"
] | null | null | null | FLASK_SECRET_KEY="hackmit_2021!"
DEBUG=True | 21.5 | 32 | 0.860465 | 7 | 43 | 4.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.023256 | 43 | 2 | 33 | 21.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.295455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7a0e294dc368c9ed3625a6166d55c9575d34d47 | 411 | py | Python | Dataset/Leetcode/valid/110/1033.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/110/1033.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/110/1033.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, root: TreeNode) -> bool:
if root==None:
return True
return abs(self.sumTreeHeight(root.left)-self.sumTreeHeight(root.right))<2 and self.XXX(root.left) and self.XXX(root.right)
def sumTreeHeight(self,root):
if root==None:
re... | 31.615385 | 131 | 0.63017 | 54 | 411 | 4.796296 | 0.388889 | 0.262548 | 0.324324 | 0.123552 | 0.393822 | 0.393822 | 0.393822 | 0.393822 | 0 | 0 | 0 | 0.009709 | 0.248175 | 411 | 12 | 132 | 34.25 | 0.828479 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7a17179e9ed14c0e834967bfdc65a2cac5e1553 | 188 | py | Python | snippets/test1.py | wollud1969/modbusmaster | bcc6229bb6119928ac156226f48da7ece0b76343 | [
"MIT"
] | null | null | null | snippets/test1.py | wollud1969/modbusmaster | bcc6229bb6119928ac156226f48da7ece0b76343 | [
"MIT"
] | null | null | null | snippets/test1.py | wollud1969/modbusmaster | bcc6229bb6119928ac156226f48da7ece0b76343 | [
"MIT"
] | null | null | null | import serial.rs485
ser=serial.rs485.RS485(port='/dev/ttyAMA0',baudrate=2400)
ser.rs485_mode = serial.rs485.RS485Settings(False, True)
while True:
ser.write('a test'.encode('utf-8'))
| 26.857143 | 57 | 0.744681 | 29 | 188 | 4.793103 | 0.689655 | 0.23741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 0.085106 | 188 | 6 | 58 | 31.333333 | 0.668605 | 0 | 0 | 0 | 0 | 0 | 0.122995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7b2747e9193a33e3bb1ef94d60a3c86d43897f3 | 156 | py | Python | mundo 1/ex014.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | 1 | 2021-08-04T13:21:22.000Z | 2021-08-04T13:21:22.000Z | mundo 1/ex014.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | mundo 1/ex014.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | celcius = float(input('informe a temperatura em ºC:'))
fahrenheit = (celcius*1.8)+32
print(f'A temperatura de {celcius}ºC corresponde a {fahrenheit}ºF!')
| 26 | 68 | 0.730769 | 24 | 156 | 4.75 | 0.708333 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.121795 | 156 | 5 | 69 | 31.2 | 0.80292 | 0 | 0 | 0 | 0 | 0 | 0.554839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7b519d9041a5bd66999f993cfb52aea92b800dc | 93 | py | Python | testes.py | pixelguff/ultrabutt | 24c4ae7a969a639ee802a5914a22800d620aa5ff | [
"MIT"
] | 3 | 2018-06-27T15:43:10.000Z | 2020-03-10T13:50:00.000Z | testes.py | pixelguff/ultrabutt | 24c4ae7a969a639ee802a5914a22800d620aa5ff | [
"MIT"
] | null | null | null | testes.py | pixelguff/ultrabutt | 24c4ae7a969a639ee802a5914a22800d620aa5ff | [
"MIT"
] | 1 | 2019-08-29T12:32:58.000Z | 2019-08-29T12:32:58.000Z | import sopel
@sopel.module.commands('plop')
def plop(bot, trigger):
bot.say('BADGER CUNT')
| 15.5 | 30 | 0.72043 | 14 | 93 | 4.785714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 93 | 5 | 31 | 18.6 | 0.807229 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.