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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
020072fbf32b47e4e29d8253740b299d0dca9b97 | 152 | py | Python | demo_sites/simple_image_upload/apps.py | zhangyi886/django-aliyun-oss2-storage | f3dabae302d4c53f5da661bac77b551f4aa0a6c9 | [
"MIT"
] | 104 | 2016-03-09T08:40:29.000Z | 2021-07-29T02:35:26.000Z | demo_sites/simple_image_upload/apps.py | zhangyi886/django-aliyun-oss2-storage | f3dabae302d4c53f5da661bac77b551f4aa0a6c9 | [
"MIT"
] | 27 | 2016-04-03T03:06:23.000Z | 2020-01-14T13:25:56.000Z | demo_sites/simple_image_upload/apps.py | zhangyi886/django-aliyun-oss2-storage | f3dabae302d4c53f5da661bac77b551f4aa0a6c9 | [
"MIT"
] | 43 | 2016-08-25T05:07:34.000Z | 2022-02-09T03:28:10.000Z | from __future__ import unicode_literals
from django.apps import AppConfig
class SimpleImageUploadConfig(AppConfig):
name = 'simple_image_upload'
| 19 | 41 | 0.822368 | 17 | 152 | 6.941176 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 152 | 7 | 42 | 21.714286 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0233380c22e35d085e69efe51ac40e0bed6c3c23 | 83 | py | Python | app/admin.py | ErikBoesen/RDB | 6c993a39035fafadf56ba505fcb482f07f9cf6bd | [
"Unlicense",
"MIT"
] | 1 | 2021-04-22T18:16:03.000Z | 2021-04-22T18:16:03.000Z | app/admin.py | ErikBoesen/RDB | 6c993a39035fafadf56ba505fcb482f07f9cf6bd | [
"Unlicense",
"MIT"
] | 2 | 2021-01-26T20:30:37.000Z | 2021-04-22T18:41:45.000Z | app/admin.py | ErikBoesen/RDB | 6c993a39035fafadf56ba505fcb482f07f9cf6bd | [
"Unlicense",
"MIT"
] | 1 | 2021-04-22T18:16:08.000Z | 2021-04-22T18:16:08.000Z | from django.contrib import admin
from .models import Lab
admin.site.register(Lab)
| 16.6 | 32 | 0.807229 | 13 | 83 | 5.153846 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120482 | 83 | 4 | 33 | 20.75 | 0.917808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
023baf2e7240f26b3dc8882d269af33e60f5f206 | 603 | py | Python | annokey/hash.py | bjpop/annokey | 0a2f66203afb80376942e4b8d6d349297513a344 | [
"BSD-3-Clause"
] | 4 | 2016-06-22T19:50:31.000Z | 2020-12-27T07:26:31.000Z | annokey/hash.py | kroman4/annokey | 4141295626e97d6e34f19979501cef769c66dd89 | [
"BSD-3-Clause"
] | null | null | null | annokey/hash.py | kroman4/annokey | 4141295626e97d6e34f19979501cef769c66dd89 | [
"BSD-3-Clause"
] | 2 | 2019-08-19T20:35:02.000Z | 2019-08-19T20:40:30.000Z | '''
A stable hash function for strings.
The built-in hash function in Python is not guaranteed to
produce the same results over different versions of Python.
We use the hash function to generate file paths, so we need
a version which is stable across versions of Python.
'''
import hashlib
def stable_string_hash(strin... | 35.470588 | 78 | 0.756219 | 98 | 603 | 4.632653 | 0.591837 | 0.132159 | 0.066079 | 0.096916 | 0.096916 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008147 | 0.185738 | 603 | 16 | 79 | 37.6875 | 0.916497 | 0.779436 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
025e061048e917eab119935a0dbaccf35d920e8f | 40 | py | Python | cadastro.py | Sirleosanto/Teste | b01866d532b0e083f90fff7e41de1cd5702e9d3d | [
"Apache-2.0"
] | null | null | null | cadastro.py | Sirleosanto/Teste | b01866d532b0e083f90fff7e41de1cd5702e9d3d | [
"Apache-2.0"
] | null | null | null | cadastro.py | Sirleosanto/Teste | b01866d532b0e083f90fff7e41de1cd5702e9d3d | [
"Apache-2.0"
] | null | null | null | print ('test')
x=input('digite aqui: ')
| 13.333333 | 24 | 0.625 | 6 | 40 | 4.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 40 | 2 | 25 | 20 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
0276f5d81a4f098ec9ede653b98fe452dd41ec69 | 263 | py | Python | ABC/155/c.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/155/c.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/155/c.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | N = int(input())
S = ['a' for i in range(N)]
for i in range(N):
S[i] = str(input())
ans = [0 for i in range(N)]
for i in range(N):
for j in range(N):
if S[i] == S[j]:
ans[] += 1 # What are their indexes?
else:
ans[] = S[j] # What are ...? | 21.916667 | 42 | 0.494297 | 53 | 263 | 2.45283 | 0.377358 | 0.269231 | 0.307692 | 0.338462 | 0.392308 | 0.392308 | 0.369231 | 0.369231 | 0.369231 | 0.369231 | 0 | 0.010695 | 0.288973 | 263 | 12 | 43 | 21.916667 | 0.684492 | 0.140684 | 0 | 0.181818 | 0 | 0 | 0.004464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
02863daa41688174245d0599d733aaf9baacb30c | 1,093 | py | Python | barbers_accounts/migrations/0004_auto_20210921_1936.py | starsouf/Python-Django-web-app | 0af1a4f97a7b7583858bd3e487d8a1b502b4daa7 | [
"Unlicense"
] | null | null | null | barbers_accounts/migrations/0004_auto_20210921_1936.py | starsouf/Python-Django-web-app | 0af1a4f97a7b7583858bd3e487d8a1b502b4daa7 | [
"Unlicense"
] | null | null | null | barbers_accounts/migrations/0004_auto_20210921_1936.py | starsouf/Python-Django-web-app | 0af1a4f97a7b7583858bd3e487d8a1b502b4daa7 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.2 on 2021-09-21 23:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('barbers_accounts', '0003_auto_20210919_2328'),
]
operations = [
migrations.RemoveField(
model_name='website_salon_details',
... | 28.025641 | 56 | 0.600183 | 105 | 1,093 | 5.87619 | 0.419048 | 0.213938 | 0.181524 | 0.204214 | 0.620746 | 0.620746 | 0.620746 | 0.557536 | 0.557536 | 0.460292 | 0 | 0.045932 | 0.302836 | 1,093 | 38 | 57 | 28.763158 | 0.76378 | 0.041171 | 0 | 0.53125 | 1 | 0 | 0.281071 | 0.246654 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
65fd7dbe04f8ea2c6d6275fdef8324b61846bf1b | 4,748 | py | Python | twampy/constants.py | connectitnet/twampy | 4e240e39ad299e39e25cd65d758e71ce2bf21cdd | [
"BSD-3-Clause"
] | null | null | null | twampy/constants.py | connectitnet/twampy | 4e240e39ad299e39e25cd65d758e71ce2bf21cdd | [
"BSD-3-Clause"
] | null | null | null | twampy/constants.py | connectitnet/twampy | 4e240e39ad299e39e25cd65d758e71ce2bf21cdd | [
"BSD-3-Clause"
] | null | null | null | # Constants to convert between python timestamps and NTP 8B binary format [RFC1305]
TIMEOFFSET = 2208988800 # Time Difference from 1-JAN-1900 to 1-JAN-1970 in seconds
ALLBITS = int(0xFFFFFFFF) # To calculate 32bit fraction of the second
DSCP_TABLE = """
============================================================... | 46.54902 | 106 | 0.374684 | 536 | 4,748 | 3.291045 | 0.462687 | 0.004535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.47828 | 0.51032 | 4,748 | 102 | 107 | 46.54902 | 0.28043 | 0.039806 | 0 | 0.021978 | 0 | 0 | 0.799473 | 0.052713 | 0 | 0 | 0.003075 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5a13cd76447445187c47de50e2c1848044d6b5dd | 154 | py | Python | proto_2/ddq/topics/set_theory/membership.py | jadnohra/connect | 8eb21e6f122898094447bc3d5edb3053d5a2adf2 | [
"Unlicense"
] | null | null | null | proto_2/ddq/topics/set_theory/membership.py | jadnohra/connect | 8eb21e6f122898094447bc3d5edb3053d5a2adf2 | [
"Unlicense"
] | 6 | 2021-03-19T12:06:56.000Z | 2022-03-12T00:23:09.000Z | proto_2/ddq/topics/set_theory/membership.py | jadnohra/connect | 8eb21e6f122898094447bc3d5edb3053d5a2adf2 | [
"Unlicense"
] | null | null | null | from ddq.node import Node
from ddq.fol.predicate import Predicate
class Membership(Predicate):
def __init__(self):
super().__init__('∈', 2)
| 19.25 | 39 | 0.701299 | 21 | 154 | 4.809524 | 0.666667 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.181818 | 154 | 7 | 40 | 22 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | 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 | 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 | 4 |
5a2b865efe2bd732a970811346dad2b7349c580e | 897 | py | Python | Simulators/Microsoft Airsim Simulator/Sensors/Distance/distanceSensor.py | enesdoruk/Autonom-Vehicles-Projects | 0cf4de4fe10eb0f5c886eca8fb5117b0121ae53b | [
"MIT"
] | 2 | 2022-01-20T14:34:28.000Z | 2022-02-10T22:12:37.000Z | Simulators/Microsoft Airsim Simulator/Sensors/Distance/distanceSensor.py | enesdoruk/Autonom-Vehicles-Projects | 0cf4de4fe10eb0f5c886eca8fb5117b0121ae53b | [
"MIT"
] | null | null | null | Simulators/Microsoft Airsim Simulator/Sensors/Distance/distanceSensor.py | enesdoruk/Autonom-Vehicles-Projects | 0cf4de4fe10eb0f5c886eca8fb5117b0121ae53b | [
"MIT"
] | null | null | null | import setup_path
import airsim
import cv2
import numpy as np
import os
import time
def distance_front(client):
distance_sensor_data_front = client.getDistanceSensorData(distance_sensor_name = "Distance_on", vehicle_name = "")
print("Distance_sensor_front =====",distance_sensor_data_front.distance)
return ... | 40.772727 | 119 | 0.807135 | 111 | 897 | 6.081081 | 0.234234 | 0.311111 | 0.24 | 0.106667 | 0.668148 | 0.235556 | 0 | 0 | 0 | 0 | 0 | 0.001247 | 0.105909 | 897 | 21 | 120 | 42.714286 | 0.840399 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0.046823 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0.166667 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5a4b8650c93ff4b1e80ff02c7de6ac22ae1ba230 | 456 | py | Python | fairseq/data/encoders/wwm_phoneme.py | HugoLaurencon/fairseq | c6839d038a90e5b07601987061c69cefb6f1b2c1 | [
"MIT"
] | null | null | null | fairseq/data/encoders/wwm_phoneme.py | HugoLaurencon/fairseq | c6839d038a90e5b07601987061c69cefb6f1b2c1 | [
"MIT"
] | null | null | null | fairseq/data/encoders/wwm_phoneme.py | HugoLaurencon/fairseq | c6839d038a90e5b07601987061c69cefb6f1b2c1 | [
"MIT"
] | null | null | null | from fairseq.data.encoders import register_bpe
from fairseq.dataclass import FairseqDataclass
@register_bpe("wwm_phoneme", dataclass=FairseqDataclass)
class WwmphonemeBPE(object):
def __init__(self, cfg):
pass
def encode(self, x: str) -> str:
return x
def decode(self, x: str) -> str:
... | 24 | 56 | 0.64693 | 59 | 456 | 4.830508 | 0.576271 | 0.052632 | 0.084211 | 0.077193 | 0.147368 | 0.147368 | 0.147368 | 0 | 0 | 0 | 0 | 0.005917 | 0.258772 | 456 | 18 | 57 | 25.333333 | 0.837278 | 0 | 0 | 0.142857 | 0 | 0 | 0.024123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.071429 | 0.142857 | 0.142857 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
5a53cfb216b004c5f4f20d736bd3a28391feb4f5 | 133 | py | Python | sisjuridico/apps/seguridad/admin.py | AnthonyWainer/sistemaJuridico | 83acf42fd20793ea05d6bff57322e17355893fc9 | [
"MIT"
] | null | null | null | sisjuridico/apps/seguridad/admin.py | AnthonyWainer/sistemaJuridico | 83acf42fd20793ea05d6bff57322e17355893fc9 | [
"MIT"
] | null | null | null | sisjuridico/apps/seguridad/admin.py | AnthonyWainer/sistemaJuridico | 83acf42fd20793ea05d6bff57322e17355893fc9 | [
"MIT"
] | null | null | null | from django.contrib import admin
from apps.seguridad.models import modulos
# Register your models here.
admin.site.register(modulos) | 26.6 | 41 | 0.827068 | 19 | 133 | 5.789474 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 133 | 5 | 42 | 26.6 | 0.92437 | 0.195489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5a81dadf34a4f463200e423c6a12e9f73bdb72f4 | 205 | py | Python | test/test_del_all_groups.py | esemin83/python_training | 909d4d1e03f83f2c53a1e18f8ce88e51da5a626e | [
"Apache-2.0"
] | null | null | null | test/test_del_all_groups.py | esemin83/python_training | 909d4d1e03f83f2c53a1e18f8ce88e51da5a626e | [
"Apache-2.0"
] | null | null | null | test/test_del_all_groups.py | esemin83/python_training | 909d4d1e03f83f2c53a1e18f8ce88e51da5a626e | [
"Apache-2.0"
] | null | null | null |
def test_del_all_group(app, db):
all_group = db.get_group_list()
if len(all_group) == 0:
pass
else:
for x in range(len(all_group)):
app.group.delete_first_group()
| 20.5 | 42 | 0.6 | 32 | 205 | 3.53125 | 0.625 | 0.283186 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.287805 | 205 | 9 | 43 | 22.777778 | 0.767123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ce4b51db431e7624ce6dc18541d499055568b469 | 14,641 | py | Python | scame/tests/test_restructuredtext.py | chevah/scame | 952f682b375c1bc325ab821d7028c4f6cff93ece | [
"MIT"
] | null | null | null | scame/tests/test_restructuredtext.py | chevah/scame | 952f682b375c1bc325ab821d7028c4f6cff93ece | [
"MIT"
] | 9 | 2017-06-06T10:06:33.000Z | 2022-01-27T17:11:55.000Z | scame/tests/test_restructuredtext.py | chevah/scame | 952f682b375c1bc325ab821d7028c4f6cff93ece | [
"MIT"
] | null | null | null | """Tests for ReStructuredTextChecker."""
from scame.formatcheck import ReStructuredTextChecker
from scame.tests import CheckerTestCase
# This is a valid rst content.
# This comment is here so that the content starts at line 11
# and make it easier to identify errors in tests.
# Just add 10 to the reported line numbe... | 37.734536 | 87 | 0.630285 | 1,646 | 14,641 | 5.465371 | 0.143378 | 0.106714 | 0.011672 | 0.144731 | 0.762672 | 0.73944 | 0.710649 | 0.701979 | 0.680302 | 0.672855 | 0 | 0.00883 | 0.218769 | 14,641 | 387 | 88 | 37.832041 | 0.777671 | 0.031077 | 0 | 0.530744 | 0 | 0 | 0.2683 | 0.016306 | 0 | 0 | 0 | 0 | 0.18123 | 1 | 0.100324 | false | 0 | 0.006472 | 0 | 0.110032 | 0.003236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
ce647bee0b98103f71a8e8ab0697219b40ac3b1e | 588 | py | Python | api/models.py | vivekx01/voterdb-api | 768736f098c0659ba74edd421b8859a1a74a39fc | [
"MIT"
] | 1 | 2022-02-14T10:35:38.000Z | 2022-02-14T10:35:38.000Z | api/models.py | vivekx01/voterdb-api | 768736f098c0659ba74edd421b8859a1a74a39fc | [
"MIT"
] | null | null | null | api/models.py | vivekx01/voterdb-api | 768736f098c0659ba74edd421b8859a1a74a39fc | [
"MIT"
] | null | null | null | from typing_extensions import NotRequired
from django.db import models
import uuid
# Create your models here.
class Voterdb(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
Voter_id= models.CharField(max_length=10)
phone = models.CharField(max_length=13)
firstn... | 34.588235 | 79 | 0.770408 | 80 | 588 | 5.5125 | 0.525 | 0.204082 | 0.244898 | 0.326531 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031434 | 0.134354 | 588 | 16 | 80 | 36.75 | 0.834971 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ce70a4b03964bcf9aaf4b2055312e1c27960a087 | 27 | py | Python | crawlers/fiction/___readli.net.py | fostroll/ru_corner | defb681aa9311c2dd6ed98d1b934453c29e9a750 | [
"Apache-2.0"
] | null | null | null | crawlers/fiction/___readli.net.py | fostroll/ru_corner | defb681aa9311c2dd6ed98d1b934453c29e9a750 | [
"Apache-2.0"
] | null | null | null | crawlers/fiction/___readli.net.py | fostroll/ru_corner | defb681aa9311c2dd6ed98d1b934453c29e9a750 | [
"Apache-2.0"
] | null | null | null | https://readli.net/page/2/
| 13.5 | 26 | 0.703704 | 5 | 27 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.037037 | 27 | 1 | 27 | 27 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ce7c27d2e526cde9b304e7043e292bba38982f7d | 138,666 | py | Python | shopifier/admin/migrations/0002_auto_20161104_1606.py | vkuryachenko/Django-Shopy | 6acd4bdcd5d5ad6a3cdf8a12c1d4fe126e777f80 | [
"BSD-3-Clause"
] | 1 | 2016-09-04T06:42:47.000Z | 2016-09-04T06:42:47.000Z | shopifier/admin/migrations/0002_auto_20161104_1606.py | vkuryachenko/Django-Shopy | 6acd4bdcd5d5ad6a3cdf8a12c1d4fe126e777f80 | [
"BSD-3-Clause"
] | 3 | 2016-04-20T05:31:47.000Z | 2016-08-12T14:26:27.000Z | shopifier/admin/migrations/0002_auto_20161104_1606.py | vkuryachenko/Django-Shopy | 6acd4bdcd5d5ad6a3cdf8a12c1d4fe126e777f80 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-11-04 10:06
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import shopifier.admin.tags
class Migration(migrations.Migration):
dependencies = [
('sho... | 2,350.271186 | 129,444 | 0.554462 | 19,638 | 138,666 | 3.9116 | 0.376057 | 0.011456 | 0.003124 | 0.003046 | 0.017913 | 0.015518 | 0.012628 | 0.012211 | 0.011404 | 0.008332 | 0 | 0.070726 | 0.094551 | 138,666 | 58 | 129,445 | 2,390.793103 | 0.541086 | 0.000483 | 0 | 0.294118 | 1 | 0 | 0.610948 | 0.01381 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.019608 | 0.098039 | 0 | 0.156863 | 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 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ce8d9eeba59ddcbdd5fc595a46bda30fb6fa01e5 | 107 | py | Python | classpractice/classpracticeapp/apps.py | cs-fullstack-2019-fall/django-models3-ic-b-rjrobins16 | e06be244e5286e36a765e96da3d9e58ea19913ea | [
"Apache-2.0"
] | null | null | null | classpractice/classpracticeapp/apps.py | cs-fullstack-2019-fall/django-models3-ic-b-rjrobins16 | e06be244e5286e36a765e96da3d9e58ea19913ea | [
"Apache-2.0"
] | null | null | null | classpractice/classpracticeapp/apps.py | cs-fullstack-2019-fall/django-models3-ic-b-rjrobins16 | e06be244e5286e36a765e96da3d9e58ea19913ea | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class ClasspracticeappConfig(AppConfig):
name = 'classpracticeapp'
| 17.833333 | 40 | 0.794393 | 10 | 107 | 8.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 107 | 5 | 41 | 21.4 | 0.923913 | 0 | 0 | 0 | 0 | 0 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cec82d4a19822c84aae6e0278863bbb798f74480 | 247 | py | Python | Exercicios26_PrimeiraeUltimaOcorrenciaDeUmaString.py | icarogoggin/Exercitando_python | 718193e962cfcceebee0a643dd48e521ecda1133 | [
"MIT"
] | null | null | null | Exercicios26_PrimeiraeUltimaOcorrenciaDeUmaString.py | icarogoggin/Exercitando_python | 718193e962cfcceebee0a643dd48e521ecda1133 | [
"MIT"
] | null | null | null | Exercicios26_PrimeiraeUltimaOcorrenciaDeUmaString.py | icarogoggin/Exercitando_python | 718193e962cfcceebee0a643dd48e521ecda1133 | [
"MIT"
] | null | null | null | nome = input('Digite seu nome completo: ').strip().lower()
print(f'A letra a aparece {nome.count("a")} vezes')
print(f'A primeira letra A apareceu na posição {nome.find("a")+1}')
print(f'A primeira letra A apareceu na posição {nome.rfind("a")+1}') | 61.75 | 68 | 0.696356 | 44 | 247 | 3.909091 | 0.477273 | 0.104651 | 0.122093 | 0.174419 | 0.488372 | 0.488372 | 0.488372 | 0.488372 | 0.488372 | 0.488372 | 0 | 0.009132 | 0.11336 | 247 | 4 | 68 | 61.75 | 0.776256 | 0 | 0 | 0 | 0 | 0 | 0.733871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
0c674ac31590b43084eb499d6419f089fbf1c661 | 551 | py | Python | sanic/myapp/http/routes/v1/param.py | kanziw/learn-python | 28c100132648b84f10d7720b3eeb290a37863045 | [
"MIT"
] | null | null | null | sanic/myapp/http/routes/v1/param.py | kanziw/learn-python | 28c100132648b84f10d7720b3eeb290a37863045 | [
"MIT"
] | null | null | null | sanic/myapp/http/routes/v1/param.py | kanziw/learn-python | 28c100132648b84f10d7720b3eeb290a37863045 | [
"MIT"
] | null | null | null | from sanic import Blueprint
from sanic.response import text
bp = Blueprint("v1_param", url_prefix="/param", version="v1")
@bp.get("/")
def index(request):
return text(f"Hello, here is {request.url}")
@bp.get('/user/<user_id:int>')
def handle_request(request, user_id):
return text(f'Hello {user_id}!')
@bp... | 22.04 | 61 | 0.686025 | 88 | 551 | 4.136364 | 0.340909 | 0.131868 | 0.120879 | 0.175824 | 0.491758 | 0.258242 | 0.258242 | 0.258242 | 0.258242 | 0.258242 | 0 | 0.008264 | 0.121597 | 551 | 24 | 62 | 22.958333 | 0.743802 | 0 | 0 | 0.133333 | 0 | 0 | 0.30127 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.266667 | 0.666667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0c73c7f4478cb8c8f00464e2cc36738b135628d8 | 1,308 | py | Python | tests/unit/test_utils.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 13 | 2016-06-17T18:29:53.000Z | 2021-08-02T04:46:04.000Z | tests/unit/test_utils.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 1 | 2019-02-21T08:32:01.000Z | 2019-02-28T08:11:11.000Z | tests/unit/test_utils.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 8 | 2016-03-15T09:12:13.000Z | 2020-09-29T09:00:25.000Z | import unittest
from bastion_ssh.utils import command_parser
class TestCommandParser(unittest.TestCase):
def test_genernal_command_parser(self):
ps1_command = "0;vagrant@cyberivy-test-dev002-shjj:~[vagrant@cyberivy-test-dev002-shjj ~]$ ls"
self.assertEquals(command_parser(ps1_command), "ls")
d... | 48.444444 | 118 | 0.714832 | 172 | 1,308 | 5.19186 | 0.209302 | 0.18925 | 0.170213 | 0.223964 | 0.800672 | 0.776036 | 0.639418 | 0.591265 | 0.526316 | 0.526316 | 0 | 0.038844 | 0.15367 | 1,308 | 27 | 119 | 48.444444 | 0.767841 | 0 | 0 | 0 | 0 | 0.142857 | 0.315508 | 0.214668 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.095238 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0c754e2fc8f88c269f75a2952e79aa9b6a955183 | 531 | py | Python | external/netdef_models/netdef_slim/tensorflow/core/struct.py | zhuhu00/MOTSFusion_modify | 190224a7c3fbded69fedf9645a0ebbf08227fb6d | [
"MIT"
] | null | null | null | external/netdef_models/netdef_slim/tensorflow/core/struct.py | zhuhu00/MOTSFusion_modify | 190224a7c3fbded69fedf9645a0ebbf08227fb6d | [
"MIT"
] | null | null | null | external/netdef_models/netdef_slim/tensorflow/core/struct.py | zhuhu00/MOTSFusion_modify | 190224a7c3fbded69fedf9645a0ebbf08227fb6d | [
"MIT"
] | null | null | null | from netdef_slim.core.base_struct import BaseStruct
from netdef_slim.core.register import register_class
nothing = None
class _Struct(BaseStruct):
def __init__(self):
super().__init__()
def is_data(self, member):
return not self.is_struct(member)
def is_struct(self, member):
retu... | 23.086957 | 57 | 0.687382 | 69 | 531 | 4.956522 | 0.463768 | 0.05848 | 0.081871 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218456 | 531 | 23 | 58 | 23.086957 | 0.824096 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.0625 | 0.125 | 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 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
0cb0ba80454d5b53c9568c4be0a0e8c8163de32d | 147 | py | Python | metashare/wsgi.py | hpusset/ELRI | c4455cff3adb920627f014f37e740665342e9cee | [
"BSD-3-Clause"
] | 1 | 2017-07-10T08:15:07.000Z | 2017-07-10T08:15:07.000Z | metashare/wsgi.py | hpusset/ELRI | c4455cff3adb920627f014f37e740665342e9cee | [
"BSD-3-Clause"
] | null | null | null | metashare/wsgi.py | hpusset/ELRI | c4455cff3adb920627f014f37e740665342e9cee | [
"BSD-3-Clause"
] | 1 | 2018-07-03T07:55:56.000Z | 2018-07-03T07:55:56.000Z | import os
from django.core.wsgi import get_wsgi_application
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
application = get_wsgi_application() | 29.4 | 49 | 0.829932 | 20 | 147 | 5.8 | 0.55 | 0.12069 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 147 | 5 | 50 | 29.4 | 0.859259 | 0 | 0 | 0 | 0 | 0 | 0.202703 | 0.148649 | 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 | 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 | 4 |
0cc5e1393aeb34be343b6d47580af224f6840314 | 375 | py | Python | scripts/SleepTimer.py | TirolJPN/ngweight | 37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c | [
"MIT"
] | null | null | null | scripts/SleepTimer.py | TirolJPN/ngweight | 37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c | [
"MIT"
] | null | null | null | scripts/SleepTimer.py | TirolJPN/ngweight | 37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c | [
"MIT"
] | null | null | null | import time
class SleepTimer:
def __init__(self):
self.reset()
def reset(self):
self.time = time.time()
def sleep(self, sec=1):
passed = time.time() - self.time
# print('sleep time: %f' % (sec-passed))
if passed >= sec:
return
ti... | 20.833333 | 49 | 0.506667 | 44 | 375 | 4.227273 | 0.363636 | 0.215054 | 0.129032 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004184 | 0.362667 | 375 | 17 | 50 | 22.058824 | 0.774059 | 0.101333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.083333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
0ccc3d065e12f047a4b54d28d2322f138fbcfc39 | 226 | py | Python | pythogorem.py | Prathyusha16/learnpython | 399eb6839a576024823b2517332b19cb5d11f521 | [
"MIT"
] | null | null | null | pythogorem.py | Prathyusha16/learnpython | 399eb6839a576024823b2517332b19cb5d11f521 | [
"MIT"
] | null | null | null | pythogorem.py | Prathyusha16/learnpython | 399eb6839a576024823b2517332b19cb5d11f521 | [
"MIT"
] | null | null | null | x1=int(input("enter a x1 value:"))
x2=int(input("enter a x2 value:"))
y1=int(input("enter a y1 value:"))
y2=int(input("enter a y2 value:"))
result= ((((x2-x1)**2)+((y2-y1)**2))**0.5)
print("distance between two points",result) | 37.666667 | 43 | 0.641593 | 43 | 226 | 3.372093 | 0.418605 | 0.22069 | 0.358621 | 0.386207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078049 | 0.09292 | 226 | 6 | 43 | 37.666667 | 0.629268 | 0 | 0 | 0 | 0 | 0 | 0.418502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0cd424cb4619e978e303577f488ecc5c2633121d | 695 | py | Python | clients/python/multitranslateclient/models/__init__.py | Rested/multi-translate | 565ef2ac7e8b5f94595cecc78b4076a3bc9be45e | [
"MIT"
] | 1 | 2021-08-22T14:43:11.000Z | 2021-08-22T14:43:11.000Z | clients/python/multitranslateclient/models/__init__.py | Rested/multi-translate | 565ef2ac7e8b5f94595cecc78b4076a3bc9be45e | [
"MIT"
] | null | null | null | clients/python/multitranslateclient/models/__init__.py | Rested/multi-translate | 565ef2ac7e8b5f94595cecc78b4076a3bc9be45e | [
"MIT"
] | null | null | null | # coding: utf-8
# flake8: noqa
"""
multi-translate
Multi-Translate is a unified interface on top of various translate APIs providing optimal translations, persistence, fallback. # noqa: E501
The version of the OpenAPI document: 0.7.0
Generated by: https://openapi-generator.tech
"""
from __future__... | 33.095238 | 144 | 0.823022 | 80 | 695 | 7.025 | 0.65 | 0.170819 | 0.213523 | 0.145907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.12518 | 695 | 20 | 145 | 34.75 | 0.911184 | 0.441727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0cf10a0cd9c6a1dfc8d8a9437c8a7c446b34fe6c | 71 | wsgi | Python | index.wsgi | brandonxiang/weapp-handsome-backend | 13c82dbefc155c50d7e4b5684e87859803bcdd36 | [
"MIT"
] | null | null | null | index.wsgi | brandonxiang/weapp-handsome-backend | 13c82dbefc155c50d7e4b5684e87859803bcdd36 | [
"MIT"
] | null | null | null | index.wsgi | brandonxiang/weapp-handsome-backend | 13c82dbefc155c50d7e4b5684e87859803bcdd36 | [
"MIT"
] | null | null | null | import sae
from app import app
application = sae.create_wsgi_app(app) | 17.75 | 38 | 0.802817 | 12 | 71 | 4.583333 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140845 | 71 | 4 | 38 | 17.75 | 0.901639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0b3062bf4ada1b71adb4ee1a908da171c5fa8a41 | 4,775 | py | Python | temboo/core/Library/Delicious/AddBookmark.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/Delicious/AddBookmark.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/Delicious/AddBookmark.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | # -*- coding: utf-8 -*-
###############################################################################
#
# AddBookmark
# Adds a link bookmark to a Delicious account.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use ... | 40.466102 | 188 | 0.670157 | 587 | 4,775 | 5.369676 | 0.291312 | 0.015863 | 0.030457 | 0.038071 | 0.326142 | 0.241751 | 0.211294 | 0.09835 | 0.060279 | 0.032995 | 0 | 0.004777 | 0.21089 | 4,775 | 117 | 189 | 40.811966 | 0.831741 | 0.482094 | 0 | 0 | 0 | 0 | 0.044621 | 0.014874 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.051282 | 0.128205 | 0.128205 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
0b4b57f33c22d4cd96d87927aa033aead4ba55ac | 196 | py | Python | pronto/parsers/__init__.py | binaryflesh/pronto | cfc0ef218d9ad0da81a8c58e3aba7a5b16347e8b | [
"MIT"
] | 182 | 2016-07-23T00:04:30.000Z | 2022-03-31T13:42:03.000Z | pronto/parsers/__init__.py | binaryflesh/pronto | cfc0ef218d9ad0da81a8c58e3aba7a5b16347e8b | [
"MIT"
] | 160 | 2016-08-11T19:12:48.000Z | 2022-03-28T07:22:42.000Z | pronto/parsers/__init__.py | binaryflesh/pronto | cfc0ef218d9ad0da81a8c58e3aba7a5b16347e8b | [
"MIT"
] | 44 | 2016-11-02T10:57:06.000Z | 2021-11-05T11:30:23.000Z | from .base import BaseParser
from .obo import OboParser
from .obojson import OboJSONParser
from .rdfxml import RdfXMLParser
__all__ = ["BaseParser", "OboParser", "OboJSONParser", "RdfXMLParser"]
| 28 | 70 | 0.790816 | 21 | 196 | 7.190476 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117347 | 196 | 6 | 71 | 32.666667 | 0.872832 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 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 | 1 | 0 | 0 | 4 |
0b51da28ad0f7f381608043d0853069019a6a469 | 1,360 | py | Python | scrapers/tests/test_minagr_spider.py | rmaceissoft/django-manolo | 7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76 | [
"BSD-3-Clause"
] | null | null | null | scrapers/tests/test_minagr_spider.py | rmaceissoft/django-manolo | 7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76 | [
"BSD-3-Clause"
] | null | null | null | scrapers/tests/test_minagr_spider.py | rmaceissoft/django-manolo | 7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76 | [
"BSD-3-Clause"
] | null | null | null | import os
import unittest
from manolo_scraper.spiders.minagr import MinagrSpider
from utils import fake_response_from_file
class TestMinagrSpider(unittest.TestCase):
def setUp(self):
self.spider = MinagrSpider()
def test_parse_item(self):
filename = os.path.join('data/minagr', '18-08-2015.h... | 41.212121 | 110 | 0.675735 | 188 | 1,360 | 4.787234 | 0.457447 | 0.216667 | 0.253333 | 0.293333 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048214 | 0.176471 | 1,360 | 32 | 111 | 42.5 | 0.755357 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0.52 | 1 | 0.08 | false | 0 | 0.16 | 0 | 0.28 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0b54c9de468f827ac6eac27ab5e2e444f0bfdecc | 1,048 | py | Python | peoples_advisor/signal/signal.py | Wumphlett/Peoples-Advisor | a965a7547a546a48656832975bbb45c0c6e44f78 | [
"MIT"
] | null | null | null | peoples_advisor/signal/signal.py | Wumphlett/Peoples-Advisor | a965a7547a546a48656832975bbb45c0c6e44f78 | [
"MIT"
] | null | null | null | peoples_advisor/signal/signal.py | Wumphlett/Peoples-Advisor | a965a7547a546a48656832975bbb45c0c6e44f78 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Optional
from peoples_advisor.event.event import PriceEvent, SignalEvent
class SignalStrategy(ABC):
"""
The base SignalStrategy class that all user defined signal strategies must inherit.
See peoples_advisor/strategy for an example implementation
... | 33.806452 | 117 | 0.694656 | 145 | 1,048 | 4.951724 | 0.496552 | 0.050139 | 0.029248 | 0.041783 | 0.108635 | 0.108635 | 0.108635 | 0.108635 | 0.108635 | 0 | 0 | 0 | 0.257634 | 1,048 | 30 | 118 | 34.933333 | 0.922879 | 0.598282 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
0b877cdbef52e5ad97312826a14a74a03d53290e | 10,379 | py | Python | radio_funk/podcast/migrations/0001_initial.py | dark-codr/radiofunk | 2f5a7c7060deb4e9bd6bafb0fd2baf108b9eec22 | [
"MIT"
] | null | null | null | radio_funk/podcast/migrations/0001_initial.py | dark-codr/radiofunk | 2f5a7c7060deb4e9bd6bafb0fd2baf108b9eec22 | [
"MIT"
] | 7 | 2022-02-14T05:26:11.000Z | 2022-03-29T05:31:08.000Z | radio_funk/podcast/migrations/0001_initial.py | dark-codr/radiofunk | 2f5a7c7060deb4e9bd6bafb0fd2baf108b9eec22 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-03-18 00:06
import autoslug.fields
import django.contrib.gis.db.models.fields
import django.core.validators
from django.db import migrations, models
import django.utils.timezone
import model_utils.fields
import radio_funk.utils.fields
import radio_funk.utils.storages
import stdimag... | 81.724409 | 1,051 | 0.622025 | 1,161 | 10,379 | 5.459087 | 0.230835 | 0.0781 | 0.037867 | 0.045125 | 0.737299 | 0.729094 | 0.66835 | 0.630956 | 0.624487 | 0.624487 | 0 | 0.016964 | 0.250313 | 10,379 | 126 | 1,052 | 82.373016 | 0.797584 | 0.004432 | 0 | 0.495798 | 1 | 0.092437 | 0.344497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.084034 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0babcf4e8c2a06a81e268f0a9c57943b608bbd64 | 132 | py | Python | harmony/__init__.py | jterrace/pyharmony | 652b4d1de6a37bf00cd400416b46540e95021eb6 | [
"BSD-3-Clause"
] | 94 | 2015-01-04T10:13:26.000Z | 2022-02-15T10:48:01.000Z | harmony/__init__.py | jterrace/pyharmony | 652b4d1de6a37bf00cd400416b46540e95021eb6 | [
"BSD-3-Clause"
] | 8 | 2015-01-11T02:40:48.000Z | 2019-11-29T22:12:27.000Z | harmony/__init__.py | jterrace/pyharmony | 652b4d1de6a37bf00cd400416b46540e95021eb6 | [
"BSD-3-Clause"
] | 46 | 2015-01-10T14:20:20.000Z | 2020-05-07T20:52:16.000Z | # Copyright (c) 2013, Jeff Terrace
# All rights reserved.
"""Module for connecting to and controlling the Logitech Harmony Link"""
| 26.4 | 72 | 0.75 | 18 | 132 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.159091 | 132 | 4 | 73 | 33 | 0.855856 | 0.916667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0bbdd9134d1b725bd33b32af03f96c4eb7ee8f42 | 197 | py | Python | northstar_cloud/tests/base.py | hiteshwadekar/northstar-cloud | 0bdf829989c339e0c8a13638fa38024af2ef1a56 | [
"Apache-2.0"
] | 1 | 2022-03-14T00:13:24.000Z | 2022-03-14T00:13:24.000Z | northstar_cloud/tests/base.py | hiteshwadekar/northstar-cloud | 0bdf829989c339e0c8a13638fa38024af2ef1a56 | [
"Apache-2.0"
] | 2 | 2020-03-31T04:10:57.000Z | 2021-02-02T22:04:33.000Z | northstar_cloud/tests/base.py | hiteshwadekar/northstar-cloud | 0bdf829989c339e0c8a13638fa38024af2ef1a56 | [
"Apache-2.0"
] | 2 | 2019-07-03T00:27:11.000Z | 2019-07-27T01:26:54.000Z | from unittest import mock
from testtools import testcase
class BaseTest(testcase.TestCase):
def setUp(self):
super(BaseTest, self).setUp()
self.addCleanup(mock.patch.stopall)
| 21.888889 | 43 | 0.720812 | 24 | 197 | 5.916667 | 0.625 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187817 | 197 | 8 | 44 | 24.625 | 0.8875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
f000303dc8fa16a7f4b2aa63d4c537caed1371d4 | 259 | py | Python | boto3_exceptions/storagegateway.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | 2 | 2021-06-22T00:00:35.000Z | 2021-07-15T03:25:52.000Z | boto3_exceptions/storagegateway.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | boto3_exceptions/storagegateway.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | import boto3
exceptions = boto3.client('storagegateway').exceptions
InternalServerError = exceptions.InternalServerError
InvalidGatewayRequestException = exceptions.InvalidGatewayRequestException
ServiceUnavailableError = exceptions.ServiceUnavailableError
| 32.375 | 74 | 0.888031 | 16 | 259 | 14.375 | 0.5 | 0.252174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00823 | 0.061776 | 259 | 7 | 75 | 37 | 0.938272 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 1 | 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 | 4 |
f00e4713dacf20667dca95b522c35de315c7b95b | 290 | py | Python | account/urls.py | acdh-oeaw/totetiroler | 64d361d05eaa8b8513fce9d47eab3655257135a6 | [
"MIT"
] | null | null | null | account/urls.py | acdh-oeaw/totetiroler | 64d361d05eaa8b8513fce9d47eab3655257135a6 | [
"MIT"
] | null | null | null | account/urls.py | acdh-oeaw/totetiroler | 64d361d05eaa8b8513fce9d47eab3655257135a6 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.contrib.auth.views import login, logout
urlpatterns = [
url(r'^login/$', login, name='login', kwargs={'template_name': 'account/login.html'}),
url(r'^logout/$', logout, name='logout', kwargs={'template_name': 'account/logout.html'}),
]
| 36.25 | 94 | 0.693103 | 39 | 290 | 5.102564 | 0.461538 | 0.100503 | 0.180905 | 0.251256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110345 | 290 | 7 | 95 | 41.428571 | 0.771318 | 0 | 0 | 0 | 0 | 0 | 0.313793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f010cc9f9f6d13885e3ca7ee5cb5fc8e7b295522 | 4,419 | py | Python | lib/exabgp/bgp/message/update/attribute/bgpls/link/__init__.py | cloudscale-ch/exabgp | 55ee496dfbc3fce75c5107fae7a7d38567154d46 | [
"BSD-3-Clause"
] | 2 | 2018-02-07T14:49:11.000Z | 2021-09-08T15:31:51.000Z | lib/exabgp/bgp/message/update/attribute/bgpls/link/__init__.py | nembery/exabgp | 53cfff843ddde33bf1c437a1c4ce99de20c6bade | [
"BSD-3-Clause"
] | null | null | null | lib/exabgp/bgp/message/update/attribute/bgpls/link/__init__.py | nembery/exabgp | 53cfff843ddde33bf1c437a1c4ce99de20c6bade | [
"BSD-3-Clause"
] | 1 | 2018-12-19T18:02:59.000Z | 2018-12-19T18:02:59.000Z | """
node/__init__.py
Created by Evelio Vila on 2016-12-01.
Copyright (c) 2014-2017 Exa Networks. All rights reserved.
"""
from exabgp.bgp.message.update.attribute.bgpls.linkstate import LINKSTATE
# +-----------+---------------------+--------------+------------------+
# | TLV Code | Description | IS-IS TL... | 64.985294 | 88 | 0.448291 | 404 | 4,419 | 4.893564 | 0.356436 | 0.080931 | 0.10521 | 0.161861 | 0.4522 | 0.438037 | 0.404654 | 0.364188 | 0 | 0 | 0 | 0.074991 | 0.351211 | 4,419 | 67 | 89 | 65.955224 | 0.61458 | 0.698574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f02ff7713d35fc646f3900d0faf4d5fa07ce0a56 | 384 | py | Python | hcap/settings/general/__init__.py | fabiommendes/capacidade_hospitalar | 4f675b574573eb3f51e6be8a927ea230bf2712c7 | [
"MIT"
] | null | null | null | hcap/settings/general/__init__.py | fabiommendes/capacidade_hospitalar | 4f675b574573eb3f51e6be8a927ea230bf2712c7 | [
"MIT"
] | 31 | 2020-04-11T13:38:17.000Z | 2021-09-22T18:51:11.000Z | hcap/settings/general/__init__.py | fabiommendes/capacidade_hospitalar | 4f675b574573eb3f51e6be8a927ea230bf2712c7 | [
"MIT"
] | 1 | 2020-04-12T17:51:20.000Z | 2020-04-12T17:51:20.000Z | from .auth import *
from .cors import *
from .databases import *
from .email import *
from .grafana import *
from .i18n import *
from .installed_apps import *
from .middleware import *
from .paths import *
from .secrets import *
from .seed import *
from .server import *
from .sites import *
from .templates import *
fro... | 21.333333 | 29 | 0.734375 | 52 | 384 | 5.403846 | 0.384615 | 0.569395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.177083 | 384 | 17 | 30 | 22.588235 | 0.882911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f032d1a2b1bf54dcd26bbbf9b477df387e1cf829 | 40,599 | py | Python | tests/test_upload.py | ministryofjustice/money-to-prisoners-transaction-uploader | 91e871f7a12886edd46b16aec59be9e8a7e37f15 | [
"MIT"
] | 3 | 2016-01-05T12:21:51.000Z | 2020-03-10T10:38:27.000Z | tests/test_upload.py | ministryofjustice/money-to-prisoners-transaction-uploader | 91e871f7a12886edd46b16aec59be9e8a7e37f15 | [
"MIT"
] | 17 | 2015-10-08T10:32:59.000Z | 2022-02-01T17:36:25.000Z | tests/test_upload.py | ministryofjustice/money-to-prisoners-transaction-uploader | 91e871f7a12886edd46b16aec59be9e8a7e37f15 | [
"MIT"
] | 2 | 2017-01-07T14:22:11.000Z | 2021-04-11T06:24:03.000Z | from datetime import date
from unittest import mock, TestCase
from bankline_parser.data_services import parse
from bankline_parser.data_services.models import DataRecord
from mtp_transaction_uploader import upload
class CreditReferenceParsingTestCase(TestCase):
successful = {
'correct_format_1': ('A1234... | 42.246618 | 111 | 0.629671 | 4,664 | 40,599 | 5.245283 | 0.09434 | 0.08768 | 0.11147 | 0.036789 | 0.802404 | 0.761405 | 0.731279 | 0.68472 | 0.649444 | 0.620749 | 0 | 0.119107 | 0.241878 | 40,599 | 960 | 112 | 42.290625 | 0.67572 | 0.04271 | 0 | 0.583222 | 0 | 0 | 0.247129 | 0.123745 | 0 | 0 | 0 | 0 | 0.22237 | 1 | 0.063915 | false | 0 | 0.006658 | 0 | 0.086551 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 4 |
f07b49a82373c4e9f85e0bf904e05776c1397de5 | 698 | py | Python | configs/deepim/lmPbrSO/FlowNet512_1.5AugCosyAAEGray_AdamW_ClipGrad_AvgMaxMin_lmPbr_SO/FlowNet512_1.5AugCosyAAEGray_AdamW_ClipGrad_AvgMaxMin_Pbr_14_lamp.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 33 | 2021-12-15T07:11:47.000Z | 2022-03-29T08:58:32.000Z | configs/deepim/lmPbrSO/FlowNet512_1.5AugCosyAAEGray_AdamW_ClipGrad_AvgMaxMin_lmPbr_SO/FlowNet512_1.5AugCosyAAEGray_AdamW_ClipGrad_AvgMaxMin_Pbr_14_lamp.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 3 | 2021-12-15T11:39:54.000Z | 2022-03-29T07:24:23.000Z | configs/deepim/lmPbrSO/FlowNet512_1.5AugCosyAAEGray_AdamW_ClipGrad_AvgMaxMin_lmPbr_SO/FlowNet512_1.5AugCosyAAEGray_AdamW_ClipGrad_AvgMaxMin_Pbr_14_lamp.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | null | null | null | _base_ = "./FlowNet512_1.5AugCosyAAEGray_AdamW_ClipGrad_AvgMaxMin_Pbr_01_ape.py"
OUTPUT_DIR = "output/deepim/lmPbrSO/FlowNet512_1.5AugCosyAAEGray_AdamW_ClipGrad_AvgMaxMin_lmPbr_SO/lamp"
DATASETS = dict(TRAIN=("lm_pbr_lamp_train",), TEST=("lm_real_lamp_test",))
# rl3
# objects lamp Avg(1)
# ad_2 0.96 0.96
# ad... | 29.083333 | 104 | 0.643266 | 142 | 698 | 2.901408 | 0.366197 | 0.097087 | 0.072816 | 0.097087 | 0.417476 | 0.296117 | 0.063107 | 0 | 0 | 0 | 0 | 0.306542 | 0.233524 | 698 | 23 | 105 | 30.347826 | 0.463551 | 0.568768 | 0 | 0 | 0 | 0 | 0.683274 | 0.562278 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b2b5d06ad919e67ec69d16f41eb187a5091b5e8e | 700 | py | Python | python/splitlines_example.py | codevscolor/codevscolor | 35ef9042bdc86f45ef87795c35963b75fb64d5d7 | [
"Apache-2.0"
] | 6 | 2019-04-26T03:11:54.000Z | 2021-05-07T21:48:29.000Z | python/splitlines_example.py | akojif/codevscolor | 56db3dffeac8f8d76ff8fcf5656770f33765941f | [
"Apache-2.0"
] | null | null | null | python/splitlines_example.py | akojif/codevscolor | 56db3dffeac8f8d76ff8fcf5656770f33765941f | [
"Apache-2.0"
] | 26 | 2019-02-23T14:50:46.000Z | 2022-02-04T23:44:24.000Z | str_1 = "HelloWorld"
str_2 = "Hello World"
str_3 = "one\ntwo\rthree\r\nfour\vfive\x0bsix\fseven\x0ceight\x1cnine\x1dten\x1eeleven\x85twelve\u2028thirteen\u2029"
print("str_1 : ")
print(str_1.splitlines())
print(str_1.splitlines(keepends = True))
print("str_2 : ")
print(str_2.splitlines())
print(str_2.splitlines(kee... | 19.444444 | 117 | 0.717143 | 109 | 700 | 4.40367 | 0.266055 | 0.283333 | 0.20625 | 0.2375 | 0.51875 | 0.43125 | 0.4125 | 0.4125 | 0.4125 | 0.4125 | 0 | 0.061905 | 0.1 | 700 | 35 | 118 | 20 | 0.7 | 0.027143 | 0 | 0.5 | 0 | 0.045455 | 0.264012 | 0.157817 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.772727 | 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 | 1 | 0 | 4 |
b2b861a83c4c95fe21bb1ddcf2728a886202cbd6 | 1,717 | py | Python | sparkmagic/sparkmagic/livyclientlib/sendstringtosparkcommand.py | sciserver/sparkmagic | ac0852cbe88a41faa368cf1e1c89045a2de973bf | [
"RSA-MD"
] | 1,141 | 2015-09-21T20:52:00.000Z | 2022-03-31T14:15:51.000Z | sparkmagic/sparkmagic/livyclientlib/sendstringtosparkcommand.py | sciserver/sparkmagic | ac0852cbe88a41faa368cf1e1c89045a2de973bf | [
"RSA-MD"
] | 605 | 2015-09-23T23:27:43.000Z | 2022-03-16T07:46:52.000Z | sparkmagic/sparkmagic/livyclientlib/sendstringtosparkcommand.py | sciserver/sparkmagic | ac0852cbe88a41faa368cf1e1c89045a2de973bf | [
"RSA-MD"
] | 442 | 2015-09-23T21:31:28.000Z | 2022-03-13T15:19:57.000Z | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from sparkmagic.livyclientlib.sendtosparkcommand import SendToSparkCommand
from sparkmagic.livyclientlib.command import Command
from sparkmagic.livyclientlib.exceptions import BadUserDataException
class SendStringToSp... | 57.233333 | 123 | 0.771695 | 213 | 1,717 | 5.751174 | 0.267606 | 0.233469 | 0.205714 | 0.163265 | 0.444898 | 0.340408 | 0.340408 | 0.308571 | 0.308571 | 0.308571 | 0 | 0 | 0.136867 | 1,717 | 29 | 124 | 59.206897 | 0.826586 | 0.055911 | 0 | 0.142857 | 0 | 0 | 0.056242 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 1 | 0.190476 | false | 0 | 0.142857 | 0 | 0.52381 | 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 | 1 | 0 | 0 | 4 |
b2bd5537b4764009351a96b3e45d64758bc34b99 | 93 | py | Python | backend_rest/websocket/apps.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | null | null | null | backend_rest/websocket/apps.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | 33 | 2020-03-14T17:29:33.000Z | 2022-03-12T00:19:30.000Z | backend_rest/websocket/apps.py | ezrankayamba/twiga_sales | 78ea9a35db7e75f3492f03559662808cb3ad59f3 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class WebSocketConfig(AppConfig):
name = "websocket"
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b2dfb22ef940b3fff39342fdb6b530fabf48497d | 180 | py | Python | python/testData/inspections/PyMethodMayBeStaticInspection/propertyWithAlias.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyMethodMayBeStaticInspection/propertyWithAlias.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyMethodMayBeStaticInspection/propertyWithAlias.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from abc import abstractproperty as alias, ABCMeta
class MyAbsBase(object):
__metaclass__ = ABCMeta
@alias
def count(self): # <- false positive here
return | 22.5 | 50 | 0.683333 | 20 | 180 | 5.95 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 180 | 8 | 51 | 22.5 | 0.881481 | 0.127778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 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 | 1 | 1 | 0 | 0 | 4 |
b2ec9bcdd5f18cc335ac1b5888d5c578a0bcca36 | 61 | py | Python | 2232.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 6 | 2021-04-13T00:33:43.000Z | 2022-02-10T10:23:59.000Z | 2232.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | null | null | null | 2232.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 3 | 2021-03-23T18:42:24.000Z | 2022-02-10T10:24:07.000Z | for g in range(int(input())):
print(2 ** int(input()) -1)
| 20.333333 | 30 | 0.557377 | 11 | 61 | 3.090909 | 0.818182 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.180328 | 61 | 2 | 31 | 30.5 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
6508891797eee8c7982232d4b01035433dbfda96 | 1,268 | py | Python | tests/data/users/conftest.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | tests/data/users/conftest.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | 1 | 2021-10-09T20:42:03.000Z | 2021-10-09T20:42:03.000Z | tests/data/users/conftest.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | """Arquivo para fixtures""" # pylint: disable=E0401
from pytest import fixture
from tests.mocks import UserRepositorySpy
from mitmirror.data.security import PasswordHash
from mitmirror.data.users import (
RegisterUser,
GetUser,
GetUsers,
UpdateUser,
DeleteUser,
)
@fixture
def user_repository_spy(... | 23.481481 | 64 | 0.753155 | 151 | 1,268 | 6.145695 | 0.245033 | 0.165948 | 0.201509 | 0.116379 | 0.503233 | 0.419181 | 0.335129 | 0.335129 | 0.335129 | 0.335129 | 0 | 0.022535 | 0.160095 | 1,268 | 53 | 65 | 23.924528 | 0.848826 | 0.311514 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.107143 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
65175fe159c708e905f8f411be0ca5bfb46fee2b | 1,128 | py | Python | tests/test_system_parse.py | funtastix/pyrinnaitouch | 13dbec80306fb0880906f6bfb44a2a55b1f8a111 | [
"MIT"
] | null | null | null | tests/test_system_parse.py | funtastix/pyrinnaitouch | 13dbec80306fb0880906f6bfb44a2a55b1f8a111 | [
"MIT"
] | null | null | null | tests/test_system_parse.py | funtastix/pyrinnaitouch | 13dbec80306fb0880906f6bfb44a2a55b1f8a111 | [
"MIT"
] | null | null | null | from pyrinnaitouch.system import BrivisStatus, RinnaiSystem
def get_test_json():
"""Fixture to return a sample JSON response str"""
return '[{"SYST": {"CFG": {"MTSP": "N", "NC": "00", "DF": "N", "TU": "C", "CF": "1", "VR": "0183", "CV": "0010", "CC": "043", "ZA": " ", "ZB": " ", "ZC": " ", "ZD": " " }, "AVM": ... | 102.545455 | 828 | 0.416667 | 168 | 1,128 | 2.767857 | 0.589286 | 0.032258 | 0.053763 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050647 | 0.177305 | 1,128 | 10 | 829 | 112.8 | 0.450431 | 0.039007 | 0 | 0 | 0 | 0.142857 | 0.767161 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
652b3c21491ea33057dba806e5c7a2f7ad8f443e | 374 | py | Python | src/lgr_auth/forms.py | GuillaumeBlanchet/lgr-django | 429ca5ddb9311cfb1a7ddc906b32d57780585f40 | [
"BSD-3-Clause"
] | 1 | 2018-09-19T11:03:11.000Z | 2018-09-19T11:03:11.000Z | src/lgr_auth/forms.py | GuillaumeBlanchet/lgr-django | 429ca5ddb9311cfb1a7ddc906b32d57780585f40 | [
"BSD-3-Clause"
] | 15 | 2017-06-29T14:05:01.000Z | 2021-09-22T19:56:23.000Z | src/lgr_auth/forms.py | GuillaumeBlanchet/lgr-django | 429ca5ddb9311cfb1a7ddc906b32d57780585f40 | [
"BSD-3-Clause"
] | 7 | 2017-06-14T17:59:19.000Z | 2019-08-09T03:16:03.000Z | # -*- coding: utf-8 -*-
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import PasswordResetForm
class LgrPasswordResetForm(PasswordResetForm):
"""
Subclass PasswordResetForm to remove condition on user's is_active.
"""
def get_users(self, email):
return get_user... | 28.769231 | 76 | 0.751337 | 46 | 374 | 5.891304 | 0.695652 | 0.073801 | 0.125461 | 0.154982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003155 | 0.152406 | 374 | 12 | 77 | 31.166667 | 0.851735 | 0.240642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.4 | 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 | 1 | 1 | 1 | 1 | 0 | 0 | 4 |
653881beeb4bdcd421fb0016d8c77d977d64a7e8 | 87 | py | Python | iclone/apps.py | TechVictorKE/insta-clone | 3f0c5eb3aaaba234f711f39d9e693698d5e01cfe | [
"MIT"
] | null | null | null | iclone/apps.py | TechVictorKE/insta-clone | 3f0c5eb3aaaba234f711f39d9e693698d5e01cfe | [
"MIT"
] | null | null | null | iclone/apps.py | TechVictorKE/insta-clone | 3f0c5eb3aaaba234f711f39d9e693698d5e01cfe | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class IcloneConfig(AppConfig):
name = 'iclone'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
653dfb9199762a5980c61209f91fea7b6f0fa6d8 | 114 | py | Python | python/ql/test/experimental/dataflow/module-initialization/m1.py | madhurimamandal/codeql | 76bf8878da4d951ed98238b7239c199a3dfddf16 | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | python/ql/test/experimental/dataflow/module-initialization/m1.py | madhurimamandal/codeql | 76bf8878da4d951ed98238b7239c199a3dfddf16 | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | python/ql/test/experimental/dataflow/module-initialization/m1.py | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z | # constant
foo = 42
import base
def passOn(x):
return x
# depends on other constant
bar = passOn(base.foo)
| 10.363636 | 27 | 0.684211 | 18 | 114 | 4.333333 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.22807 | 114 | 10 | 28 | 11.4 | 0.863636 | 0.298246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.4 | 0.2 | 0.2 | 0.6 | 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 | 1 | 1 | 0 | 0 | 4 |
653fe16db6310eafc5b298d5719e3ef3293ef2cc | 115 | py | Python | backend/api/corona_tweet_analysis/apps.py | Bhavyalakshmi95/dashboard-for-socialmedia-trend | 9c8fdeb6cbd52a6b585f1dbd4983554df259ab35 | [
"MIT"
] | 2 | 2020-04-06T08:32:13.000Z | 2020-04-15T01:17:25.000Z | backend/api/corona_tweet_analysis/apps.py | Bhavyalakshmi95/dashboard-for-socialmedia-trend | 9c8fdeb6cbd52a6b585f1dbd4983554df259ab35 | [
"MIT"
] | 19 | 2020-04-01T13:31:32.000Z | 2022-02-27T02:43:01.000Z | backend/api/corona_tweet_analysis/apps.py | Bhavyalakshmi95/dashboard-for-socialmedia-trend | 9c8fdeb6cbd52a6b585f1dbd4983554df259ab35 | [
"MIT"
] | 5 | 2020-04-01T11:36:17.000Z | 2020-04-06T11:44:12.000Z | from django.apps import AppConfig
class CoronaTweetAnalysisConfig(AppConfig):
name = 'corona_tweet_analysis'
| 19.166667 | 43 | 0.808696 | 12 | 115 | 7.583333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 115 | 5 | 44 | 23 | 0.91 | 0 | 0 | 0 | 0 | 0 | 0.182609 | 0.182609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6541106638202c56810446fe52ef28d2766f0e56 | 258 | py | Python | xudo/commands/dbpw.py | Ostralyan/xudo | d4ab6ee01fef52e8799ff3e6a76234351620447e | [
"MIT"
] | 3 | 2017-04-05T17:30:13.000Z | 2018-09-18T02:14:40.000Z | xudo/commands/dbpw.py | Ostralyan/xudo | d4ab6ee01fef52e8799ff3e6a76234351620447e | [
"MIT"
] | null | null | null | xudo/commands/dbpw.py | Ostralyan/xudo | d4ab6ee01fef52e8799ff3e6a76234351620447e | [
"MIT"
] | 2 | 2017-05-30T17:42:31.000Z | 2017-12-14T20:14:31.000Z | from .base import Base
import os
class Dbpw(Base):
"""Generates Database PW from AWS"""
def run(self):
os.system("aws ssm get-parameter --name \"/local/CFG_MYSQL_MASTER_PASS\" --with-decryption --query 'Parameter.Value' --output text")
| 19.846154 | 140 | 0.674419 | 36 | 258 | 4.75 | 0.805556 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182171 | 258 | 12 | 141 | 21.5 | 0.810427 | 0.116279 | 0 | 0 | 1 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
e8fcb1939103737856b991e805328e2e575f62d3 | 271 | py | Python | ambra_sdk/service/entrypoints/filter.py | dicomgrid/sdk-python | bb12eed311bad73dfb863917df4dc5cbcd91a447 | [
"Apache-2.0"
] | 9 | 2020-04-20T23:45:44.000Z | 2021-04-18T11:22:17.000Z | ambra_sdk/service/entrypoints/filter.py | dicomgrid/sdk-python | bb12eed311bad73dfb863917df4dc5cbcd91a447 | [
"Apache-2.0"
] | 13 | 2020-02-08T16:15:05.000Z | 2021-09-13T22:55:28.000Z | ambra_sdk/service/entrypoints/filter.py | dicomgrid/sdk-python | bb12eed311bad73dfb863917df4dc5cbcd91a447 | [
"Apache-2.0"
] | 6 | 2020-03-25T17:47:45.000Z | 2021-04-18T11:22:19.000Z | from ambra_sdk.service.entrypoints.generated.filter import \
AsyncFilter as GAsyncFilter
from ambra_sdk.service.entrypoints.generated.filter import Filter as GFilter
class Filter(GFilter):
"""Filter."""
class AsyncFilter(GAsyncFilter):
"""AsyncFilter."""
| 22.583333 | 76 | 0.763838 | 30 | 271 | 6.833333 | 0.433333 | 0.087805 | 0.117073 | 0.185366 | 0.497561 | 0.497561 | 0.497561 | 0.497561 | 0 | 0 | 0 | 0 | 0.129151 | 271 | 11 | 77 | 24.636364 | 0.868644 | 0.073801 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3335f16dba7eaf71285c76fcafed61b6f1e02bff | 154 | py | Python | backend/local_basket/location/urls.py | localbasket/local_basket | 8c34cc25de95c9c0d9431b86546e94dd1c97280f | [
"MIT"
] | null | null | null | backend/local_basket/location/urls.py | localbasket/local_basket | 8c34cc25de95c9c0d9431b86546e94dd1c97280f | [
"MIT"
] | null | null | null | backend/local_basket/location/urls.py | localbasket/local_basket | 8c34cc25de95c9c0d9431b86546e94dd1c97280f | [
"MIT"
] | null | null | null | # urls file in location
from django.urls import path,include
from . import views
urlpatterns = [
path('', views.homepage, name='views_homepage'),
]
| 17.111111 | 52 | 0.714286 | 20 | 154 | 5.45 | 0.65 | 0.238532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 154 | 8 | 53 | 19.25 | 0.851563 | 0.136364 | 0 | 0 | 0 | 0 | 0.10687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
3340bc23740c69140098793d6c302dfa43f2c555 | 87 | py | Python | cashup/apps.py | remarkablerocket/cashup | 86ee12f20feab2edb383224126aaf824764be656 | [
"BSD-3-Clause"
] | null | null | null | cashup/apps.py | remarkablerocket/cashup | 86ee12f20feab2edb383224126aaf824764be656 | [
"BSD-3-Clause"
] | null | null | null | cashup/apps.py | remarkablerocket/cashup | 86ee12f20feab2edb383224126aaf824764be656 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
class CashupConfig(AppConfig):
name = 'cashup'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
336e43309d8342564d6be2a920c934a394d27268 | 149 | py | Python | clubadmin/__main__.py | rpmoseley/clubadmin | 35d0094ea5e97e8478ca021ab8e422cebbc26263 | [
"MIT"
] | null | null | null | clubadmin/__main__.py | rpmoseley/clubadmin | 35d0094ea5e97e8478ca021ab8e422cebbc26263 | [
"MIT"
] | null | null | null | clubadmin/__main__.py | rpmoseley/clubadmin | 35d0094ea5e97e8478ca021ab8e422cebbc26263 | [
"MIT"
] | null | null | null | '''
This is the main entry point for the clubadmin package as a whole and provides
the launching pad for the sub-packages that may be installed.
'''
| 29.8 | 78 | 0.765101 | 26 | 149 | 4.384615 | 0.846154 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181208 | 149 | 4 | 79 | 37.25 | 0.934426 | 0.939597 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
682a932f069074c0fef0dda533631f0b356cf3b5 | 189 | py | Python | p2p0mq/utils/lang.py | pyl1b/p2p0mq | c2d9e26f66c27e59d6c1e24a15996c54c5cfc0a2 | [
"MIT"
] | null | null | null | p2p0mq/utils/lang.py | pyl1b/p2p0mq | c2d9e26f66c27e59d6c1e24a15996c54c5cfc0a2 | [
"MIT"
] | 1 | 2019-12-06T21:19:09.000Z | 2019-12-06T21:19:09.000Z | p2p0mq/utils/lang.py | pyl1b/p2p0mq | c2d9e26f66c27e59d6c1e24a15996c54c5cfc0a2 | [
"MIT"
] | 1 | 2020-06-30T06:02:49.000Z | 2020-06-30T06:02:49.000Z | # -*- coding: utf-8 -*-
"""
"""
from __future__ import unicode_literals
from __future__ import print_function
import logging
logger = logging.getLogger('')
def _(text):
return text
| 13.5 | 39 | 0.703704 | 22 | 189 | 5.545455 | 0.727273 | 0.163934 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.169312 | 189 | 13 | 40 | 14.538462 | 0.770701 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.166667 | 0.833333 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 4 |
68354754f84e54b0107c239893be8db63243f93c | 206 | py | Python | pacientes/api/serializers.py | LombaAnderson/djangoAPI-clinica | 688e19c0f6afa887997531ab350b2357e273de03 | [
"MIT"
] | null | null | null | pacientes/api/serializers.py | LombaAnderson/djangoAPI-clinica | 688e19c0f6afa887997531ab350b2357e273de03 | [
"MIT"
] | 3 | 2021-12-09T04:56:37.000Z | 2021-12-09T04:59:53.000Z | pacientes/api/serializers.py | LombaAnderson/djangoAPI-clinica | 688e19c0f6afa887997531ab350b2357e273de03 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from pacientes.models import Pacientes
class PacientesSerializer(serializers.ModelSerializer):
class Meta:
model = Pacientes
fields = '__all__'
| 20.6 | 55 | 0.752427 | 20 | 206 | 7.5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199029 | 206 | 9 | 56 | 22.888889 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0.033981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 4 |
6838d3657c74edbdae4f273fcd84ff91857b928a | 140 | py | Python | src/11/creating_a_udp_server/client.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 14 | 2017-05-20T04:06:46.000Z | 2022-01-23T06:48:45.000Z | src/11/creating_a_udp_server/client.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 1 | 2021-06-10T20:17:55.000Z | 2021-06-10T20:17:55.000Z | src/11/creating_a_udp_server/client.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 15 | 2017-03-29T17:57:33.000Z | 2021-08-24T02:20:08.000Z | from socket import socket, AF_INET, SOCK_DGRAM
s = socket(AF_INET, SOCK_DGRAM)
s.sendto(b'', ('localhost', 20000))
print(s.recvfrom(8192))
| 23.333333 | 46 | 0.735714 | 23 | 140 | 4.304348 | 0.652174 | 0.161616 | 0.242424 | 0.323232 | 0.444444 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0.072 | 0.107143 | 140 | 5 | 47 | 28 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0.064286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6847b1ab634f1e8db49a1ccc4db09701f6a2edf7 | 291 | py | Python | plugins/apis/integration.py | Hironsan/mirumii | 13110fc0aeda4aa0369e479e5c7062beba1ae1bf | [
"MIT"
] | 12 | 2016-12-30T23:01:09.000Z | 2020-02-13T03:58:07.000Z | plugins/apis/integration.py | Hironsan/mirumii | 13110fc0aeda4aa0369e479e5c7062beba1ae1bf | [
"MIT"
] | 4 | 2016-11-03T12:24:52.000Z | 2016-11-09T14:09:12.000Z | plugins/apis/integration.py | Hironsan/mirumii | 13110fc0aeda4aa0369e479e5c7062beba1ae1bf | [
"MIT"
] | 7 | 2016-11-10T14:16:32.000Z | 2018-08-17T06:44:19.000Z | # -*- coding: utf-8 -*-
from .language import extract_required_entities
from .vision import detect_text
def extract_entities_from_img(img_path, access_token):
text = detect_text(img_path, access_token)
entities = extract_required_entities(text, access_token)
return entities
| 24.25 | 60 | 0.776632 | 39 | 291 | 5.435897 | 0.461538 | 0.15566 | 0.216981 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004016 | 0.14433 | 291 | 11 | 61 | 26.454545 | 0.84739 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 4 |
6862a34ec93bd7154fc582efccecb582b048648e | 125 | py | Python | filemanager/appengine_empty/main.py | sroettger/35c3ctf_chals | 3d64486e6adddb3a3f3d2c041242b88b50abdb8d | [
"Apache-2.0"
] | 15 | 2019-07-10T16:50:17.000Z | 2022-01-23T14:28:17.000Z | filemanager/appengine_empty/main.py | sroettger/35c3ctf_chals | 3d64486e6adddb3a3f3d2c041242b88b50abdb8d | [
"Apache-2.0"
] | 2 | 2020-01-18T11:19:04.000Z | 2021-04-27T13:30:33.000Z | filemanager/appengine_empty/main.py | sroettger/35c3ctf_chals | 3d64486e6adddb3a3f3d2c041242b88b50abdb8d | [
"Apache-2.0"
] | 4 | 2020-01-09T20:14:30.000Z | 2021-04-23T07:47:27.000Z | #!/usr/bin/env python2
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'hello world'
| 13.888889 | 24 | 0.672 | 18 | 125 | 4.444444 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.168 | 125 | 8 | 25 | 15.625 | 0.759615 | 0.168 | 0 | 0 | 0 | 0 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 1 | 1 | 0 | 0 | 4 |
686e7f31ac6158e760fecf23d0e8bb085b53e520 | 367 | py | Python | exhaust/common/management/commands/generate_secret_key.py | lewiscollard/exhaust | 510a66c97bec00576afe321e6bcff5476681bf8b | [
"WTFPL"
] | null | null | null | exhaust/common/management/commands/generate_secret_key.py | lewiscollard/exhaust | 510a66c97bec00576afe321e6bcff5476681bf8b | [
"WTFPL"
] | 5 | 2021-11-08T06:58:11.000Z | 2022-03-12T14:39:26.000Z | exhaust/common/management/commands/generate_secret_key.py | lewiscollard/exhaust | 510a66c97bec00576afe321e6bcff5476681bf8b | [
"WTFPL"
] | null | null | null | from django.conf import settings
from django.core.management.base import BaseCommand
from django.core.management.utils import get_random_secret_key
class Command(BaseCommand):
help = 'generates a new .secret_key file'
def handle(self, *args, **options):
with open(settings.SECRET_KEY_FILE, "w") as fd:... | 30.583333 | 62 | 0.73842 | 52 | 367 | 5.038462 | 0.615385 | 0.137405 | 0.10687 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168937 | 367 | 11 | 63 | 33.363636 | 0.859016 | 0 | 0 | 0 | 1 | 0 | 0.089918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
6870437c87f90bcf97598b36ecc12742384cad06 | 76 | py | Python | src/python/tests/testDrakeVisualizer.py | edrumwri/director | c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8 | [
"BSD-3-Clause"
] | 3 | 2017-05-25T01:13:06.000Z | 2019-07-21T09:04:51.000Z | src/python/tests/testDrakeVisualizer.py | edrumwri/director | c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8 | [
"BSD-3-Clause"
] | null | null | null | src/python/tests/testDrakeVisualizer.py | edrumwri/director | c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8 | [
"BSD-3-Clause"
] | 5 | 2017-02-22T17:56:52.000Z | 2019-07-21T09:04:53.000Z | from director import drakevisualizerapp
drakevisualizerapp.main(globals())
| 19 | 39 | 0.855263 | 7 | 76 | 9.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 76 | 3 | 40 | 25.333333 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6874346a9b0572e14c6578adf79edc03f3f999b7 | 81 | py | Python | hcp/tests/__init__.py | JohnGriffiths/mne-hcp | 7dc789f44033e9b57f875da5794202e3a5290971 | [
"BSD-3-Clause"
] | 27 | 2016-04-07T22:00:15.000Z | 2022-02-18T20:06:09.000Z | hcp/tests/__init__.py | JohnGriffiths/mne-hcp | 7dc789f44033e9b57f875da5794202e3a5290971 | [
"BSD-3-Clause"
] | 63 | 2016-04-06T22:31:01.000Z | 2022-03-07T06:06:33.000Z | hcp/tests/__init__.py | JohnGriffiths/mne-hcp | 7dc789f44033e9b57f875da5794202e3a5290971 | [
"BSD-3-Clause"
] | 20 | 2016-04-19T10:30:00.000Z | 2022-02-11T19:13:53.000Z | # Author: Denis A. Engemann <denis.engemann@gmail.com>
# License: BSD (3-clause)
| 27 | 54 | 0.716049 | 12 | 81 | 4.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.123457 | 81 | 2 | 55 | 40.5 | 0.802817 | 0.938272 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6884114cf5e11b27c4559f567dfc4dc1638a69c4 | 168 | py | Python | imdb_scripts/torch_util.py | maaario/nlp-slovak-universal-language-model | 3a0100fe2a803be7b145ff4d17e557c02d1147c6 | [
"MIT"
] | 1 | 2021-01-14T02:51:51.000Z | 2021-01-14T02:51:51.000Z | imdb_scripts/torch_util.py | maaario/nlp-slovak-universal-language-model | 3a0100fe2a803be7b145ff4d17e557c02d1147c6 | [
"MIT"
] | 3 | 2019-06-21T14:09:08.000Z | 2019-06-25T17:32:33.000Z | imdb_scripts/torch_util.py | maaario/nlp-slovak-universal-language-model | 3a0100fe2a803be7b145ff4d17e557c02d1147c6 | [
"MIT"
] | 1 | 2019-06-20T12:17:09.000Z | 2019-06-20T12:17:09.000Z | import torch
def make_cuda(tensor):
"""Turn the tensor into cuda if possible."""
if torch.cuda.is_available():
return tensor.cuda()
return tensor
| 18.666667 | 48 | 0.660714 | 23 | 168 | 4.73913 | 0.608696 | 0.220183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232143 | 168 | 8 | 49 | 21 | 0.844961 | 0.22619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 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 | 1 | 0 | 0 | 4 |
d7cc82d3f48b4b03da1836e8a6f4891991fb7ad1 | 287 | py | Python | 2019/08-Exes_and_Os/Exes_and_Ohs.py | erik-kristofer-anderson/codewars | fda780f40d1a2d8c5210cfd6ccf81148444bc9e8 | [
"MIT"
] | null | null | null | 2019/08-Exes_and_Os/Exes_and_Ohs.py | erik-kristofer-anderson/codewars | fda780f40d1a2d8c5210cfd6ccf81148444bc9e8 | [
"MIT"
] | 1 | 2019-07-27T15:42:25.000Z | 2019-07-27T15:42:25.000Z | 2019/08-Exes_and_Os/Exes_and_Ohs.py | erik-kristofer-anderson/Codewars | fda780f40d1a2d8c5210cfd6ccf81148444bc9e8 | [
"MIT"
] | null | null | null | # solution to a kata on codewars
# https://www.codewars.com/kata/exes-and-ohs/python
# idea is to determine whether there is an
# equal number of "x" and "o" in a string
# (count the total of both upper and lower case)
def xo(s):
return s.lower().count('x') == s.lower().count('o')
| 31.888889 | 55 | 0.682927 | 53 | 287 | 3.698113 | 0.698113 | 0.061224 | 0.112245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 287 | 8 | 56 | 35.875 | 0.823529 | 0.724739 | 0 | 0 | 0 | 0 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
d7ceee63ae713203bed3bbbc008f96478ccd0238 | 244 | py | Python | modin/engines/cloudburst/frame/data.py | alclol/modin | 91e89eafc71f6ef03eb44456d646a6c5971b1c4c | [
"Apache-2.0"
] | null | null | null | modin/engines/cloudburst/frame/data.py | alclol/modin | 91e89eafc71f6ef03eb44456d646a6c5971b1c4c | [
"Apache-2.0"
] | null | null | null | modin/engines/cloudburst/frame/data.py | alclol/modin | 91e89eafc71f6ef03eb44456d646a6c5971b1c4c | [
"Apache-2.0"
] | null | null | null | from modin.engines.cloudburst.frame.partition_manager import CloudburstFrameManager
from modin.engines.base.frame.data import BasePandasFrame
class PandasOnCloudburstFrame(BasePandasFrame):
_frame_mgr_cls = CloudburstFrameManager
| 30.5 | 84 | 0.840164 | 24 | 244 | 8.375 | 0.666667 | 0.089552 | 0.159204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110656 | 244 | 7 | 85 | 34.857143 | 0.926267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cc1c61af90d7aa17379c6453550be698c80ef83f | 12 | py | Python | resources/no_output.py | EdsonGermano/python-101 | b7a7bb8ecdbed0b89141a4ae09e941d0fe325f71 | [
"CC-BY-4.0"
] | null | null | null | resources/no_output.py | EdsonGermano/python-101 | b7a7bb8ecdbed0b89141a4ae09e941d0fe325f71 | [
"CC-BY-4.0"
] | null | null | null | resources/no_output.py | EdsonGermano/python-101 | b7a7bb8ecdbed0b89141a4ae09e941d0fe325f71 | [
"CC-BY-4.0"
] | null | null | null | x = 9
x * x
| 4 | 5 | 0.333333 | 4 | 12 | 1 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.5 | 12 | 2 | 6 | 6 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cc346ee56811070362acfed22bd1d74db3b21569 | 167 | py | Python | setup.py | BenedatLLC/CacheML | 0b01e0fe109d1307b429650432c055e47a25d90a | [
"Apache-2.0"
] | 1 | 2021-11-14T18:36:50.000Z | 2021-11-14T18:36:50.000Z | setup.py | BenedatLLC/CacheML | 0b01e0fe109d1307b429650432c055e47a25d90a | [
"Apache-2.0"
] | null | null | null | setup.py | BenedatLLC/CacheML | 0b01e0fe109d1307b429650432c055e47a25d90a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2021 Benedat LLC. Licensed under Apache 2.0. See LICENSE.txt.
import setuptools
if __name__ == "__main__":
setuptools.setup()
| 18.555556 | 73 | 0.724551 | 23 | 167 | 4.913043 | 0.956522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0.161677 | 167 | 8 | 74 | 20.875 | 0.764286 | 0.550898 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0bd879a4c680d83606a81710b996ee38e557fb80 | 83 | py | Python | unit/apps.py | alexhong121/ai_cupboard | 50baa791c969b951de5b47d980e19c0df3c04e7f | [
"MIT"
] | null | null | null | unit/apps.py | alexhong121/ai_cupboard | 50baa791c969b951de5b47d980e19c0df3c04e7f | [
"MIT"
] | 4 | 2021-03-19T02:37:45.000Z | 2022-02-10T11:18:04.000Z | unit/apps.py | alexhong121/ai_cupboard | 50baa791c969b951de5b47d980e19c0df3c04e7f | [
"MIT"
] | 1 | 2019-10-21T20:32:20.000Z | 2019-10-21T20:32:20.000Z | from django.apps import AppConfig
class UnitConfig(AppConfig):
name = 'unit'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0bf61e9f157beb74de5a2053dc00b2a403059761 | 87 | py | Python | Section_04_Imports/utils/__init__.py | rodrigoarenas456/CompletePythonGuide | 505ac20c33856a53f1ffe12809ad78161c78a325 | [
"MIT"
] | null | null | null | Section_04_Imports/utils/__init__.py | rodrigoarenas456/CompletePythonGuide | 505ac20c33856a53f1ffe12809ad78161c78a325 | [
"MIT"
] | null | null | null | Section_04_Imports/utils/__init__.py | rodrigoarenas456/CompletePythonGuide | 505ac20c33856a53f1ffe12809ad78161c78a325 | [
"MIT"
] | null | null | null | ##Archivo para que el código en file_operations.py pueda ser usado por fuera del folder | 87 | 87 | 0.816092 | 16 | 87 | 4.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149425 | 87 | 1 | 87 | 87 | 0.945946 | 0.977011 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0bfdfc5df02f309c7e594ec84cdd7ca7b9c9e6e9 | 21 | py | Python | giwerm/constants.py | nocotan/IGIWERM | 1179a949625190c892ecc2e231b76dfab54e1529 | [
"MIT"
] | null | null | null | giwerm/constants.py | nocotan/IGIWERM | 1179a949625190c892ecc2e231b76dfab54e1529 | [
"MIT"
] | null | null | null | giwerm/constants.py | nocotan/IGIWERM | 1179a949625190c892ecc2e231b76dfab54e1529 | [
"MIT"
] | 1 | 2022-01-27T05:26:51.000Z | 2022-01-27T05:26:51.000Z | EPS = 1e-9
INF = 1e9
| 7 | 10 | 0.571429 | 5 | 21 | 2.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 0.285714 | 21 | 2 | 11 | 10.5 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
0411a41582922e9128decf8c69d8204159ac8993 | 228 | py | Python | server/test_pygments.py | frankxu2004/tranX | a5fbfeb78d6265cdf3264c99f3146e03c333e37d | [
"Apache-2.0"
] | 1 | 2020-10-12T18:37:37.000Z | 2020-10-12T18:37:37.000Z | server/test_pygments.py | frankxu2004/tranX | a5fbfeb78d6265cdf3264c99f3146e03c333e37d | [
"Apache-2.0"
] | null | null | null | server/test_pygments.py | frankxu2004/tranX | a5fbfeb78d6265cdf3264c99f3146e03c333e37d | [
"Apache-2.0"
] | 1 | 2021-03-28T18:01:17.000Z | 2021-03-28T18:01:17.000Z | from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import HtmlFormatter
code = 'print "Hello World"'
print(highlight(code, PythonLexer(), HtmlFormatter(style='bw', noclasses=True)))
| 32.571429 | 80 | 0.807018 | 27 | 228 | 6.814815 | 0.592593 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096491 | 228 | 6 | 81 | 38 | 0.893204 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0.4 | 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 | 1 | 0 | 0 | 4 |
0414b2198ab386abcdb241dbb2f7eeb2acc8b3bc | 162 | py | Python | qcfractal/dashboard/app.py | dgasmith/QCFractal | 137cb91d4409a1395273239a9df668a314a1914b | [
"BSD-3-Clause"
] | null | null | null | qcfractal/dashboard/app.py | dgasmith/QCFractal | 137cb91d4409a1395273239a9df668a314a1914b | [
"BSD-3-Clause"
] | null | null | null | qcfractal/dashboard/app.py | dgasmith/QCFractal | 137cb91d4409a1395273239a9df668a314a1914b | [
"BSD-3-Clause"
] | null | null | null | import dash
app = dash.Dash(__name__)
app.scripts.config.serve_locally = True
app.css.config.serve_locally = True
app.config.suppress_callback_exceptions = True
| 23.142857 | 46 | 0.814815 | 24 | 162 | 5.166667 | 0.541667 | 0.177419 | 0.290323 | 0.354839 | 0.403226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 162 | 6 | 47 | 27 | 0.843537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
041b00663a3badd641c6b9d41796ab7d7eb8cb27 | 1,613 | py | Python | server/swagger_server/controllers/vouch_proxy_controller.py | fabric-testbed/vouch-proxy-oidc-demo | 486d1bc0fbecc323f7c1c37dce6946b5dfba3c34 | [
"MIT"
] | 1 | 2022-03-17T16:28:04.000Z | 2022-03-17T16:28:04.000Z | server/swagger_server/controllers/vouch_proxy_controller.py | fabric-testbed/vouch-proxy-oidc-demo | 486d1bc0fbecc323f7c1c37dce6946b5dfba3c34 | [
"MIT"
] | null | null | null | server/swagger_server/controllers/vouch_proxy_controller.py | fabric-testbed/vouch-proxy-oidc-demo | 486d1bc0fbecc323f7c1c37dce6946b5dfba3c34 | [
"MIT"
] | null | null | null | import connexion
import six
from swagger_server.models.api_cilogon_tokens import ApiCilogonTokens # noqa: E501
from swagger_server.models.api_cookie_encoded import ApiCookieEncoded # noqa: E501
from swagger_server.models.api_jwt_decoded import ApiJwtDecoded # noqa: E501
from swagger_server.models.api_jwt_fully_deco... | 28.803571 | 108 | 0.771234 | 212 | 1,613 | 5.603774 | 0.240566 | 0.094276 | 0.114478 | 0.116162 | 0.354377 | 0.143098 | 0.090909 | 0.06229 | 0 | 0 | 0 | 0.050445 | 0.16429 | 1,613 | 55 | 109 | 29.327273 | 0.830861 | 0.351519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | true | 0 | 0.555556 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
042e77dd753e45305e5ef0a6457d610e81c85a15 | 339 | py | Python | tests/test_device_type.py | freundTech/pykdeconnect | 3834c7196796e96259222c2d19c5e687f1e6bd9c | [
"MIT"
] | 1 | 2022-03-07T12:15:37.000Z | 2022-03-07T12:15:37.000Z | tests/test_device_type.py | freundTech/pykdeconnect | 3834c7196796e96259222c2d19c5e687f1e6bd9c | [
"MIT"
] | 13 | 2022-03-09T14:20:10.000Z | 2022-03-21T10:16:24.000Z | tests/test_device_type.py | freundTech/pykdeconnect | 3834c7196796e96259222c2d19c5e687f1e6bd9c | [
"MIT"
] | null | null | null | from pykdeconnect.const import KdeConnectDeviceType
def test_device_type_alias():
assert KdeConnectDeviceType("smartphone") == KdeConnectDeviceType.PHONE
assert KdeConnectDeviceType("phone") == KdeConnectDeviceType.PHONE
def test_device_type_unknown():
assert KdeConnectDeviceType("foobar") == KdeConnect... | 30.818182 | 75 | 0.811209 | 30 | 339 | 8.966667 | 0.5 | 0.289963 | 0.096654 | 0.126394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106195 | 339 | 10 | 76 | 33.9 | 0.887789 | 0 | 0 | 0 | 0 | 0 | 0.061947 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.333333 | true | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0437f6deaf398fcd44e1427f3278186b1bbf528c | 62 | py | Python | test.py | mutazag/cv | f5693772bda4e2611808d862756bd9234f02176e | [
"MIT"
] | 1 | 2020-08-06T12:03:40.000Z | 2020-08-06T12:03:40.000Z | test.py | mutazag/cv | f5693772bda4e2611808d862756bd9234f02176e | [
"MIT"
] | null | null | null | test.py | mutazag/cv | f5693772bda4e2611808d862756bd9234f02176e | [
"MIT"
] | 1 | 2020-08-10T07:56:24.000Z | 2020-08-10T07:56:24.000Z | import matplotlib.pyplot as plt
plt.plot([1,2,3])
plt.show() | 12.4 | 31 | 0.709677 | 12 | 62 | 3.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.112903 | 62 | 5 | 32 | 12.4 | 0.745455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0449675ee8369063da57998e0f8f191ff6bdac5c | 93 | py | Python | importing/apps.py | perimetro20/asiaticon | 40e833d9ad3e3d8a97803fa10fec64f69ca622cb | [
"MIT"
] | null | null | null | importing/apps.py | perimetro20/asiaticon | 40e833d9ad3e3d8a97803fa10fec64f69ca622cb | [
"MIT"
] | null | null | null | importing/apps.py | perimetro20/asiaticon | 40e833d9ad3e3d8a97803fa10fec64f69ca622cb | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ImportingConfig(AppConfig):
name = 'importing'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
044bb089557addd98ddee16100e0225ebf00ff09 | 247 | py | Python | curbd/__init__.py | ridecharge/curbd | 6c078296bff75b0b6666a4d45d2316c87a20a773 | [
"Apache-2.0"
] | null | null | null | curbd/__init__.py | ridecharge/curbd | 6c078296bff75b0b6666a4d45d2316c87a20a773 | [
"Apache-2.0"
] | null | null | null | curbd/__init__.py | ridecharge/curbd | 6c078296bff75b0b6666a4d45d2316c87a20a773 | [
"Apache-2.0"
] | null | null | null | from curbd.curbd import Curbd
from curbd.curbd import CurbdService
from consul import Consul
def new_curbd(options):
consul_conn = Consul(options.host, options.port)
service = CurbdService(consul_conn)
return Curbd(service, options)
| 24.7 | 52 | 0.777328 | 33 | 247 | 5.727273 | 0.393939 | 0.095238 | 0.148148 | 0.21164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 247 | 9 | 53 | 27.444444 | 0.904306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
044c223f7a2d0e300fbf3493df88379b682c8956 | 215 | py | Python | amfe/linalg/eigen.py | ma-kast/AMfe | 99686cc313fb8904a093fb42e6cf0b38f8cfd791 | [
"BSD-3-Clause"
] | null | null | null | amfe/linalg/eigen.py | ma-kast/AMfe | 99686cc313fb8904a093fb42e6cf0b38f8cfd791 | [
"BSD-3-Clause"
] | null | null | null | amfe/linalg/eigen.py | ma-kast/AMfe | 99686cc313fb8904a093fb42e6cf0b38f8cfd791 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2018, Lehrstuhl fuer Angewandte Mechanik, Technische
# Universitaet Muenchen.
#
# Distributed under BSD-3-Clause License. See LICENSE-File for more information
#
"""
Module contains eigensolvers
"""
| 23.888889 | 79 | 0.772093 | 25 | 215 | 6.64 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026882 | 0.134884 | 215 | 8 | 80 | 26.875 | 0.865591 | 0.916279 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
045c8d0d5d002df715162143948b86a4cfbac34c | 104 | py | Python | apps/message/settings/config.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 349 | 2020-08-04T10:21:01.000Z | 2022-03-23T08:31:29.000Z | apps/message/settings/config.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 2 | 2021-01-07T06:17:05.000Z | 2021-04-01T06:01:30.000Z | apps/message/settings/config.py | rainydaygit/testtcloudserver | 8037603efe4502726a4d794fb1fc0a3f3cc80137 | [
"MIT"
] | 70 | 2020-08-24T06:46:14.000Z | 2022-03-25T13:23:27.000Z | try:
from public_config import *
except ImportError:
pass
PORT = 9030
SERVICE_NAME = 'message'
| 13 | 31 | 0.711538 | 13 | 104 | 5.538462 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049383 | 0.221154 | 104 | 7 | 32 | 14.857143 | 0.839506 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
f092b33509fdc1658cde8a83c509161da61ccb5d | 419 | py | Python | challenges/fifo_animal_shelter/test_fifo_animal_shelter.py | seattlechem/data-structures-and-algorithms | 376e465c0a5529ea7c5c4e972a9852b6340251ff | [
"MIT"
] | null | null | null | challenges/fifo_animal_shelter/test_fifo_animal_shelter.py | seattlechem/data-structures-and-algorithms | 376e465c0a5529ea7c5c4e972a9852b6340251ff | [
"MIT"
] | null | null | null | challenges/fifo_animal_shelter/test_fifo_animal_shelter.py | seattlechem/data-structures-and-algorithms | 376e465c0a5529ea7c5c4e972a9852b6340251ff | [
"MIT"
] | null | null | null | import pytest
from .fifo_animal_shelter import AnimalShelter
from .cat import Cat
from .dog import Dog
@pytest.fixture
def empty_animalshelter():
return AnimalShelter()
def test_enqueue(empty_animalshelter):
new_dog = Dog('dog1')
# import pdb; pdb.set_trace()
empty_animalshelter.enqueue(new_dog)
... | 23.277778 | 60 | 0.756563 | 54 | 419 | 5.648148 | 0.425926 | 0.295082 | 0.163934 | 0.183607 | 0.203279 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002801 | 0.147971 | 419 | 17 | 61 | 24.647059 | 0.851541 | 0.064439 | 0 | 0.166667 | 0 | 0 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0 | 0.333333 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f09a3646422bde70b246cf769b7d7e44764e03d7 | 29 | py | Python | exercicios/ex001.py | AndradeLinux/Python | fef50a179b587b2e9a2031063ddb51210bba65b5 | [
"MIT"
] | null | null | null | exercicios/ex001.py | AndradeLinux/Python | fef50a179b587b2e9a2031063ddb51210bba65b5 | [
"MIT"
] | null | null | null | exercicios/ex001.py | AndradeLinux/Python | fef50a179b587b2e9a2031063ddb51210bba65b5 | [
"MIT"
] | null | null | null | msg='Olá, mundo!'
print(msg)
| 9.666667 | 17 | 0.655172 | 5 | 29 | 3.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 29 | 2 | 18 | 14.5 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
f0bc2cf405f16781f66b9d4c28f5d844826c1391 | 203 | py | Python | dotloop/loop_it.py | spentaur/dotloop-python | 5374ab5f5e16f9b826438a9c4f051a4be53d433b | [
"MIT"
] | null | null | null | dotloop/loop_it.py | spentaur/dotloop-python | 5374ab5f5e16f9b826438a9c4f051a4be53d433b | [
"MIT"
] | null | null | null | dotloop/loop_it.py | spentaur/dotloop-python | 5374ab5f5e16f9b826438a9c4f051a4be53d433b | [
"MIT"
] | 1 | 2021-07-28T14:28:17.000Z | 2021-07-28T14:28:17.000Z | from .bases import DotloopObject
class LoopIt(DotloopObject):
def post(self, **kwargs):
return self.fetch('post', json=kwargs, params={
'profile_id': self.profile_id
})
| 22.555556 | 55 | 0.630542 | 23 | 203 | 5.478261 | 0.695652 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246305 | 203 | 8 | 56 | 25.375 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
f0c18e787d631f2d9b83a81d6ad64e7814c3391e | 161 | py | Python | problems/even-occuring-element/even-occuring-element-answer.py | lhayhurst/interview-with-python | 8acf397cdd96cbf00334a567a837d6209507e41c | [
"MIT"
] | 201 | 2016-08-29T23:02:43.000Z | 2022-03-28T14:15:29.000Z | problems/even-occuring-element/even-occuring-element-answer.py | Akash1507/interview-with-python | b5ce31c8bdca754a76762d2734dcf494a302e487 | [
"MIT"
] | 5 | 2016-09-03T05:57:13.000Z | 2018-03-10T06:09:30.000Z | problems/even-occuring-element/even-occuring-element-answer.py | Akash1507/interview-with-python | b5ce31c8bdca754a76762d2734dcf494a302e487 | [
"MIT"
] | 85 | 2016-09-01T14:39:13.000Z | 2022-03-17T08:16:54.000Z | ##$$## ---------- TAGS ----------- ##$$##
##$$## even,occuring,element
##$$## --------- ENDTAGS --------- ##$$##
###### - Write your answer below - ######
| 26.833333 | 42 | 0.310559 | 9 | 161 | 5.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161491 | 161 | 5 | 43 | 32.2 | 0.37037 | 0.732919 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f0e3ea881cc1450ad26393bb40c683befacb60b2 | 213 | py | Python | py/cidoc_crm_types/properties/p165i_is_incorporated_in.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/properties/p165i_is_incorporated_in.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/properties/p165i_is_incorporated_in.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | from .p106i_forms_part_of import P106iFormsPartOf
from dataclasses import dataclass
@dataclass
class P165iIsIncorporatedIn(P106iFormsPartOf):
URI = "http://erlangen-crm.org/current/P165i_is_incorporated_in"
| 26.625 | 68 | 0.835681 | 25 | 213 | 6.88 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07772 | 0.093897 | 213 | 7 | 69 | 30.428571 | 0.813472 | 0 | 0 | 0 | 0 | 0 | 0.262911 | 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 | 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 | 4 |
f0fe98c9b5a72e9eaa12ce7e23ce33b1913a0396 | 167 | py | Python | __init__.py | Avgilles/houdini-project-manager | 83f2227df3983067efe32605debb891a595bc93c | [
"MIT"
] | null | null | null | __init__.py | Avgilles/houdini-project-manager | 83f2227df3983067efe32605debb891a595bc93c | [
"MIT"
] | null | null | null | __init__.py | Avgilles/houdini-project-manager | 83f2227df3983067efe32605debb891a595bc93c | [
"MIT"
] | null | null | null | # PYPANEL
# from importlib import reload
# from projectManager import project
#
# reload(project)
#
# def onCreateInterface():
# return project.onCreateInterface() | 20.875 | 40 | 0.754491 | 16 | 167 | 7.875 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149701 | 167 | 8 | 40 | 20.875 | 0.887324 | 0.904192 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0b139a0eac29e365178c86a19e28c1c4f15209e8 | 133 | py | Python | dvc/output/s3.py | farizrahman4u/dvc | a56c8bbab662c3792ae12aa7db6c40a42a23de50 | [
"Apache-2.0"
] | 1 | 2020-08-12T22:51:45.000Z | 2020-08-12T22:51:45.000Z | dvc/output/s3.py | farizrahman4u/dvc | a56c8bbab662c3792ae12aa7db6c40a42a23de50 | [
"Apache-2.0"
] | null | null | null | dvc/output/s3.py | farizrahman4u/dvc | a56c8bbab662c3792ae12aa7db6c40a42a23de50 | [
"Apache-2.0"
] | 1 | 2020-11-28T11:47:48.000Z | 2020-11-28T11:47:48.000Z | from dvc.output.base import BaseOutput
from ..tree.s3 import S3RemoteTree
class S3Output(BaseOutput):
TREE_CLS = S3RemoteTree
| 16.625 | 38 | 0.781955 | 17 | 133 | 6.058824 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0.150376 | 133 | 7 | 39 | 19 | 0.876106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9bd09d39fac70cecaeb2ae3560b776d201a376dc | 580 | py | Python | tests/test_101.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_101.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | tests/test_101.py | sungho-joo/leetcode2github | ce7730ef40f6051df23681dd3c0e1e657abba620 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
"""
Test 101. Symmetric Tree
"""
@pytest.fixture(scope="session")
def init_variables_101():
from src.leetcode_101_symmetric_tree import Solution
solution = Solution()
def _init_variables_101():
return solution
yield _init_variables_101
class TestClass... | 20.714286 | 80 | 0.701724 | 81 | 580 | 4.740741 | 0.419753 | 0.236979 | 0.291667 | 0.098958 | 0.291667 | 0.15625 | 0.15625 | 0 | 0 | 0 | 0 | 0.093418 | 0.187931 | 580 | 27 | 81 | 21.481481 | 0.721868 | 0.034483 | 0 | 0 | 0 | 0 | 0.013283 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.307692 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 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 | 1 | 0 | 0 | 4 |
9be4623859edee62880d8284b090db4a58eba242 | 128 | py | Python | api/basic/__init__.py | fras2560/mlsb-platform | 17aee2c1e220860b200662fd67d2fc697a3d8abb | [
"Apache-2.0"
] | 1 | 2016-05-06T15:37:35.000Z | 2016-05-06T15:37:35.000Z | api/basic/__init__.py | Major-League-Summer-Baseball/mlsb-platform | ecb2a6a15dcaa12c4e18a6d9c5d1b4caf83e05a4 | [
"Apache-2.0"
] | 42 | 2021-03-12T23:18:30.000Z | 2022-03-13T20:57:36.000Z | api/basic/__init__.py | Major-League-Summer-Baseball/mlsb-platform | ecb2a6a15dcaa12c4e18a6d9c5d1b4caf83e05a4 | [
"Apache-2.0"
] | 1 | 2019-04-21T23:24:54.000Z | 2019-04-21T23:24:54.000Z | '''
@author: Dallas Fraser
@date: 2016-04-12
@organization: MLSB API
@summary: The package containing all the basic methods
'''
| 18.285714 | 54 | 0.734375 | 18 | 128 | 5.222222 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0.140625 | 128 | 6 | 55 | 21.333333 | 0.781818 | 0.929688 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
500a9ad36f6157525aadae8df14c7d2f5d4cd788 | 696 | py | Python | App/handlers.py | gyankit/SacheFacts | ee2b383869acc7812dc6d80ea157390ab56a60d0 | [
"MIT"
] | null | null | null | App/handlers.py | gyankit/SacheFacts | ee2b383869acc7812dc6d80ea157390ab56a60d0 | [
"MIT"
] | 1 | 2021-09-23T05:48:08.000Z | 2021-09-23T05:48:08.000Z | App/handlers.py | gyankit/SacheFacts | ee2b383869acc7812dc6d80ea157390ab56a60d0 | [
"MIT"
] | null | null | null | from flask import render_template, request
from App import app
@app.errorhandler(403)
def unauthorised(e):
return render_template('errors/403.html', msg=e), 403
@app.errorhandler(404)
def page_not_found(e):
return render_template('errors/404.html', msg=e), 404
@app.errorhandler(405)
def method_not_allowed(... | 27.84 | 57 | 0.78592 | 106 | 696 | 4.924528 | 0.273585 | 0.1341 | 0.099617 | 0.16092 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076433 | 0.097701 | 696 | 25 | 58 | 27.84 | 0.754777 | 0 | 0 | 0 | 0 | 0 | 0.086083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
5011ae2a4c67186306a5461174537b99eb2ed1e6 | 1,467 | py | Python | code/python/third_party/Deadline/ConnectionProperty.py | mikeroberts3000/ml-hypersim | 75b363ee52fbdbd0cc9b554c34c1aadea404183e | [
"AML"
] | 10 | 2020-11-17T00:33:42.000Z | 2022-02-16T23:31:58.000Z | code/python/third_party/Deadline/ConnectionProperty.py | mikeroberts3000/ml-hypersim | 75b363ee52fbdbd0cc9b554c34c1aadea404183e | [
"AML"
] | null | null | null | code/python/third_party/Deadline/ConnectionProperty.py | mikeroberts3000/ml-hypersim | 75b363ee52fbdbd0cc9b554c34c1aadea404183e | [
"AML"
] | null | null | null | import sys
import subprocess
import os
import json
import traceback
from . import DeadlineSend
class ConnectionProperty:
def __init__(self, address, useAuth=False):
self.address = address
self.useAuth = useAuth
self.user = ""
self.password = ""
def GetAddress(self):
... | 29.938776 | 116 | 0.638037 | 148 | 1,467 | 6.189189 | 0.22973 | 0.108079 | 0.122271 | 0.131004 | 0.497817 | 0.472707 | 0.439956 | 0.286026 | 0.148472 | 0 | 0 | 0 | 0.272665 | 1,467 | 49 | 116 | 29.938776 | 0.858482 | 0 | 0 | 0.060606 | 0 | 0 | 0.010899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.242424 | 0.181818 | 0.212121 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
50190e532bbea46f5dfe666c4b0569515248a463 | 1,120 | py | Python | subeana/models.py | izumin2000/izuminapp | 3464cebe1d98c85c2cd95c6fac779ec1f42ef930 | [
"MIT"
] | null | null | null | subeana/models.py | izumin2000/izuminapp | 3464cebe1d98c85c2cd95c6fac779ec1f42ef930 | [
"MIT"
] | null | null | null | subeana/models.py | izumin2000/izuminapp | 3464cebe1d98c85c2cd95c6fac779ec1f42ef930 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Channel(models.Model) :
name = models.CharField(default = "", max_length = 50)
isexist = models.BooleanField(default = True)
url = models.CharField(default = "", max_length = 50, blank = True, null = True)
def __str__(self):
return ... | 40 | 131 | 0.675 | 138 | 1,120 | 5.289855 | 0.297101 | 0.123288 | 0.180822 | 0.205479 | 0.671233 | 0.550685 | 0.29589 | 0.29589 | 0.29589 | 0.29589 | 0 | 0.01566 | 0.201786 | 1,120 | 28 | 132 | 40 | 0.800895 | 0.021429 | 0 | 0.333333 | 0 | 0 | 0.031963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0.142857 | 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 | 1 | 1 | 0 | 0 | 4 |
5020e9345e8b5334285af92b4ac73fa35e018bf3 | 48 | py | Python | Modulo 2/Lista06/7.py | BelfortJoao/Programacao-1 | 2d463744379ad3e4b0f5882ad923aae7ff80197a | [
"MIT"
] | 2 | 2021-08-17T14:02:13.000Z | 2021-08-19T02:37:28.000Z | Modulo 2/Lista06/7.py | BelfortJoao/Programacao-1 | 2d463744379ad3e4b0f5882ad923aae7ff80197a | [
"MIT"
] | null | null | null | Modulo 2/Lista06/7.py | BelfortJoao/Programacao-1 | 2d463744379ad3e4b0f5882ad923aae7ff80197a | [
"MIT"
] | 1 | 2021-09-05T20:18:45.000Z | 2021-09-05T20:18:45.000Z | x = [int(x*x) for x in range(1, 20, 2)]
print(x) | 24 | 39 | 0.5625 | 13 | 48 | 2.076923 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 0.1875 | 48 | 2 | 40 | 24 | 0.589744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
5045d4a6c16d4e5419b8e6c57566af746ac2d143 | 212 | py | Python | src/catalog_engine/test/scraper_test.py | rxng8/Gettysburg-Course-Crawling-System | ba8a4d4b7beec0ed8554d8d9d8c57f26750463ec | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/catalog_engine/test/scraper_test.py | rxng8/Gettysburg-Course-Crawling-System | ba8a4d4b7beec0ed8554d8d9d8c57f26750463ec | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/catalog_engine/test/scraper_test.py | rxng8/Gettysburg-Course-Crawling-System | ba8a4d4b7beec0ed8554d8d9d8c57f26750463ec | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
from scraper import CourseURLScraper
def test_course_URL_scraper():
sc = CourseURLScraper()
print(sc)
# if __name__ == '__main__':
# print("Testing all method...\n")
# test_course_URL_scraper() | 21.2 | 38 | 0.693396 | 25 | 212 | 5.32 | 0.68 | 0.150376 | 0.195489 | 0.300752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183962 | 212 | 10 | 39 | 21.2 | 0.768786 | 0.438679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
504b7dd9fb088fd703022ed753bd525ec4e0fdd1 | 401 | py | Python | bob/db/base/script/db.py | bioidiap/bob.db.base | 714d2f7b605aa6480f447b92127678444971ca64 | [
"BSD-3-Clause"
] | null | null | null | bob/db/base/script/db.py | bioidiap/bob.db.base | 714d2f7b605aa6480f447b92127678444971ca64 | [
"BSD-3-Clause"
] | 4 | 2016-06-17T11:57:43.000Z | 2016-07-28T18:13:19.000Z | bob/db/base/script/db.py | bioidiap/bob.db.base | 714d2f7b605aa6480f447b92127678444971ca64 | [
"BSD-3-Clause"
] | 2 | 2016-03-08T11:14:51.000Z | 2016-07-28T16:12:55.000Z | """The main entry for bob.db (click-based) scripts.
This adds a ``db`` sub-command to the ``bob`` command.
"""
import click
import pkg_resources
from click_plugins import with_plugins
from bob.extension.scripts.click_helper import AliasedGroup
@with_plugins(pkg_resources.iter_entry_points('bob.db.cli'))
@click.gr... | 26.733333 | 60 | 0.750623 | 58 | 401 | 5.051724 | 0.586207 | 0.03413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127182 | 401 | 14 | 61 | 28.642857 | 0.837143 | 0.334165 | 0 | 0 | 0 | 0 | 0.039841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0.125 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
aca7fb456e43167f872d0ed4577dd17ebdb52b83 | 213 | py | Python | Programe something fun.py | NickYxy/JustPractice | d8b6eacf12da2bef2b3ff4e1f8bc8b53c00bb619 | [
"MIT"
] | null | null | null | Programe something fun.py | NickYxy/JustPractice | d8b6eacf12da2bef2b3ff4e1f8bc8b53c00bb619 | [
"MIT"
] | null | null | null | Programe something fun.py | NickYxy/JustPractice | d8b6eacf12da2bef2b3ff4e1f8bc8b53c00bb619 | [
"MIT"
] | null | null | null | from bottle import route, run, template
@route('/hello/<name>')
def index(name):
return template('<b>Hello {{name}}</b>', name=name)
#ajax('aaa.txt?t=' + new Date().getTime(), function(str){}, fucntion{})
| 21.3 | 71 | 0.633803 | 30 | 213 | 4.5 | 0.733333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126761 | 213 | 9 | 72 | 23.666667 | 0.725806 | 0.328639 | 0 | 0 | 0 | 0 | 0.241135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 0.75 | 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 | 1 | 0 | 0 | 4 |
acc30545ce261ac97f78b5cfaf626f49fa34cc30 | 135 | py | Python | conversion/test_conversion.py | sheecegardezi/PyRate-2.0 | 0acd4a27f2c16a012606e1078e3a5c44b86a276d | [
"Apache-2.0"
] | null | null | null | conversion/test_conversion.py | sheecegardezi/PyRate-2.0 | 0acd4a27f2c16a012606e1078e3a5c44b86a276d | [
"Apache-2.0"
] | null | null | null | conversion/test_conversion.py | sheecegardezi/PyRate-2.0 | 0acd4a27f2c16a012606e1078e3a5c44b86a276d | [
"Apache-2.0"
] | null | null | null | # get list of original dataset
# convert it using new script
# read newly created dataset
# read legacy dataset
# compare the results
| 19.285714 | 30 | 0.77037 | 20 | 135 | 5.2 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192593 | 135 | 6 | 31 | 22.5 | 0.954128 | 0.911111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
acc68fadb01abe3d8f5e9d98fc435e2ae84e88e5 | 368 | py | Python | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/tools/dcheck_macros.py | wterkaj/ApertusVR | 424ec5515ae08780542f33cc4841a8f9a96337b3 | [
"MIT"
] | 158 | 2016-11-17T19:37:51.000Z | 2022-03-21T19:57:55.000Z | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/tools/dcheck_macros.py | wterkaj/ApertusVR | 424ec5515ae08780542f33cc4841a8f9a96337b3 | [
"MIT"
] | 94 | 2016-11-18T09:55:57.000Z | 2021-01-14T08:50:40.000Z | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/tools/dcheck_macros.py | wterkaj/ApertusVR | 424ec5515ae08780542f33cc4841a8f9a96337b3 | [
"MIT"
] | 51 | 2017-05-24T10:20:25.000Z | 2022-03-17T15:07:02.000Z | macro DCHECK(x) = do { if (!(x)) (process._rawDebug("DCHECK: x == true"), process.abort()) } while (0);
macro DCHECK_EQ(a, b) = DCHECK((a) === (b));
macro DCHECK_GE(a, b) = DCHECK((a) >= (b));
macro DCHECK_GT(a, b) = DCHECK((a) > (b));
macro DCHECK_LE(a, b) = DCHECK((a) <= (b));
macro DCHECK_LT(a, b) = DCHECK((a) < (b)... | 46 | 103 | 0.559783 | 63 | 368 | 3.15873 | 0.301587 | 0.120603 | 0.241206 | 0.271357 | 0.577889 | 0.527638 | 0.527638 | 0 | 0 | 0 | 0 | 0.003215 | 0.154891 | 368 | 7 | 104 | 52.571429 | 0.636656 | 0 | 0 | 0 | 0 | 0 | 0.046196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
acdf09fb67299b2a4d7753647937cced709f649f | 1,225 | py | Python | imouto/magicroute.py | bakalab/imouto | 01944746d4f7530a741bcb082866e18c48d07f3a | [
"BSD-3-Clause"
] | 9 | 2017-06-18T06:03:00.000Z | 2019-05-07T10:06:22.000Z | imouto/magicroute.py | bakalab/imouto | 01944746d4f7530a741bcb082866e18c48d07f3a | [
"BSD-3-Clause"
] | 3 | 2017-08-05T08:01:42.000Z | 2017-12-08T01:58:33.000Z | imouto/magicroute.py | bakalab/imouto | 01944746d4f7530a741bcb082866e18c48d07f3a | [
"BSD-3-Clause"
] | null | null | null | from imouto.web import Application
from imouto.route import URLSpec
class MagicRoute:
__slots__ = ['_magic_route', 'get', 'post', 'head', 'put',
'patch', 'trace', 'options', 'connect', 'delete']
class Route:
def __init__(self, method, path):
self.method = method
self.path =... | 21.12069 | 66 | 0.623673 | 137 | 1,225 | 5.372263 | 0.394161 | 0.065217 | 0.1875 | 0.190217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267755 | 1,225 | 57 | 67 | 21.491228 | 0.820513 | 0.065306 | 0 | 0.176471 | 0 | 0 | 0.059545 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.088235 | false | 0.176471 | 0.058824 | 0.029412 | 0.470588 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4a195da4e4e59bef0f4858c98b8b3b635a85fd57 | 89 | py | Python | home_user/dj_iot/iotdata/apps.py | IoTree/IoTree42 | b7bb31f39add4e719a04e63cdd336983f8017137 | [
"MIT"
] | 4 | 2020-06-04T08:43:54.000Z | 2021-11-15T17:29:23.000Z | home_user/dj_iot/iotdata/apps.py | IoTree/IoTree42 | b7bb31f39add4e719a04e63cdd336983f8017137 | [
"MIT"
] | 3 | 2020-05-02T10:53:03.000Z | 2021-05-20T13:17:08.000Z | home_user/dj_iot/iotdata/apps.py | IoTree/IoTree42 | b7bb31f39add4e719a04e63cdd336983f8017137 | [
"MIT"
] | 3 | 2020-10-27T13:06:51.000Z | 2022-01-08T14:56:36.000Z | from django.apps import AppConfig
class IotdataConfig(AppConfig):
name = 'iotdata'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.