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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
05016b174e7dfcf5f1c0055d5770a21b1a32994c | 347 | py | Python | project-euler/completed/first-attempt/euler5.py | davidxmoody/kata | d88569584c2390da0e8127258d8751f8a47b7d83 | [
"MIT"
] | null | null | null | project-euler/completed/first-attempt/euler5.py | davidxmoody/kata | d88569584c2390da0e8127258d8751f8a47b7d83 | [
"MIT"
] | null | null | null | project-euler/completed/first-attempt/euler5.py | davidxmoody/kata | d88569584c2390da0e8127258d8751f8a47b7d83 | [
"MIT"
] | null | null | null | def prod(xs):
total = 1
for x in xs: total *= x
return total
def is_div_by_all(num, xs):
for x in xs:
if num%x!=0: return False
return True
nums = range(1, 21)
index = 0
while index<len(nums):
sublist = nums[:index] + nums[index+1:]
if is_div_by_all(prod(sublist), range(1, 21)):
nums = sublist
else: ind... | 15.086957 | 47 | 0.651297 | 66 | 347 | 3.333333 | 0.409091 | 0.063636 | 0.054545 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.207493 | 347 | 22 | 48 | 15.772727 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0505ee312fef5ae3043886f5d6eaeb46c50dfd3f | 804 | py | Python | Acmicpc/Python/BOJ10800.py | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | 1 | 2020-07-08T23:16:19.000Z | 2020-07-08T23:16:19.000Z | Acmicpc/Python/BOJ10800.py | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | 1 | 2020-05-16T03:12:24.000Z | 2020-05-16T03:14:42.000Z | Acmicpc/Python/BOJ10800.py | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | 2 | 2020-05-16T03:25:16.000Z | 2021-02-10T16:51:25.000Z | import sys
# sys.stdin = open("input.txt", "r")
n = int(input())
sumArr = [0 for i in range(n)]
arr = []
memo = [0 for i in range(n)]
res = [0 for i in range(n)]
for i in range(n):
a, b = map(int, sys.stdin.readline().split())
arr.append([b, a, i])
arr.sort(key=lambda x: (x[0], x[1]))
equ = 0
sam = 0
for i i... | 23.647059 | 64 | 0.44403 | 147 | 804 | 2.428571 | 0.251701 | 0.123249 | 0.10084 | 0.184874 | 0.280112 | 0.145658 | 0 | 0 | 0 | 0 | 0 | 0.049724 | 0.324627 | 804 | 33 | 65 | 24.363636 | 0.607735 | 0.042289 | 0 | 0.344828 | 0 | 0 | 0.002604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05075d001f4a003843cc1594913525967c7fad6e | 1,431 | py | Python | ECG_Evaluation/Controllers/WFDBController.py | huydinhquang/BIS2019_MasterThesis | 9ed4d3e9ed61453b03bf49268048b9a276d811ed | [
"MIT"
] | null | null | null | ECG_Evaluation/Controllers/WFDBController.py | huydinhquang/BIS2019_MasterThesis | 9ed4d3e9ed61453b03bf49268048b9a276d811ed | [
"MIT"
] | null | null | null | ECG_Evaluation/Controllers/WFDBController.py | huydinhquang/BIS2019_MasterThesis | 9ed4d3e9ed61453b03bf49268048b9a276d811ed | [
"MIT"
] | null | null | null | from ECGController import ECGController
import streamlit as st
from Controllers.ECGModel import ECG
import wfdb
import Controllers.Constants as cons
import os
from pathlib import Path
import shutil
import numpy as np
import matplotlib.pyplot as plt
class WFDBController(ECGController):
def __init__(self, dir_name, ... | 36.692308 | 117 | 0.659679 | 190 | 1,431 | 4.789474 | 0.468421 | 0.052747 | 0.036264 | 0.049451 | 0.050549 | 0.050549 | 0 | 0 | 0 | 0 | 0 | 0.001887 | 0.259259 | 1,431 | 38 | 118 | 37.657895 | 0.856604 | 0.171209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.30303 | 0 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
050de6113e93a215430807e52745fa92bf4942b4 | 295 | py | Python | Code Forces/Problem Set/B/jzzhu_and_children.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 2 | 2020-06-25T21:10:32.000Z | 2020-12-10T06:53:45.000Z | Code Forces/Problem Set/B/jzzhu_and_children.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | null | null | null | Code Forces/Problem Set/B/jzzhu_and_children.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 3 | 2020-05-15T14:17:09.000Z | 2021-07-25T13:18:20.000Z | from collections import deque
n,m = map(int,input().split())
a = list(map(int,input().split()))
queue = deque()
for i in range(n):
queue.append([a[i],i])
last = None
while queue:
c = queue.popleft()
if c[0] > m:
c[0] = c[0] - m
queue.append(c)
print(c[1]+1)
| 15.526316 | 34 | 0.549153 | 51 | 295 | 3.176471 | 0.529412 | 0.037037 | 0.135802 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022624 | 0.250847 | 295 | 18 | 35 | 16.388889 | 0.710407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
051dd5033bf0100d394b5a4d3652a9346a291aff | 393 | py | Python | neighs/migrations/0003_profile_name.py | claudiahW/Neighbourhood | 60e062ad53379fad397c76518973332ba9ad3329 | [
"MIT"
] | null | null | null | neighs/migrations/0003_profile_name.py | claudiahW/Neighbourhood | 60e062ad53379fad397c76518973332ba9ad3329 | [
"MIT"
] | null | null | null | neighs/migrations/0003_profile_name.py | claudiahW/Neighbourhood | 60e062ad53379fad397c76518973332ba9ad3329 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2022-01-03 09:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('neighs', '0002_auto_20211222_2211'),
]
operations = [
migrations.AddField(
model_name='profile',
name='name',
... | 20.684211 | 61 | 0.597964 | 44 | 393 | 5.227273 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117438 | 0.284987 | 393 | 18 | 62 | 21.833333 | 0.701068 | 0.114504 | 0 | 0 | 1 | 0 | 0.115607 | 0.066474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05289b3da16b99767164b61bb71a7fa1c706b8e3 | 5,682 | py | Python | Lib/httplib.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 1 | 2019-10-25T21:41:07.000Z | 2019-10-25T21:41:07.000Z | Lib/httplib.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | Lib/httplib.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | """HTTP client class
See the following URL for a description of the HTTP/1.0 protocol:
http://www.w3.org/hypertext/WWW/Protocols/
(I actually implemented it from a much earlier draft.)
Example:
>>> from httplib import HTTP
>>> h = HTTP('www.python.org')
>>> h.putrequest('GET', '/index.html')
>>> h.putheader('Accept'... | 29.28866 | 77 | 0.581661 | 749 | 5,682 | 4.377837 | 0.272363 | 0.019518 | 0.018298 | 0.018298 | 0.089052 | 0.046966 | 0.046966 | 0.022568 | 0 | 0 | 0 | 0.009301 | 0.299894 | 5,682 | 193 | 78 | 29.440415 | 0.814982 | 0 | 0 | 0.153846 | 0 | 0 | 0.042058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054945 | null | null | 0.098901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05302f3379774ea7b05f9410a896c94814c74f78 | 9,621 | py | Python | cerbes/tests/test_views.py | Yo-main/akingbee.com | 144940df99900226073eb4bf721a6ab407a3911d | [
"MIT"
] | null | null | null | cerbes/tests/test_views.py | Yo-main/akingbee.com | 144940df99900226073eb4bf721a6ab407a3911d | [
"MIT"
] | 20 | 2019-10-06T20:24:49.000Z | 2022-02-28T01:55:49.000Z | cerbes/tests/test_views.py | yo-main/akingbee | a8b4b307e2262f98eb93459c6dd4207e707cee1e | [
"MIT"
] | null | null | null | # pylint: disable=redefined-outer-name,unused-import
import base64
import jwt
import uuid
import time
import pytest
from gaea.models import Users, Permissions
from gaea.rbmq import RBMQPublisher
from gaea.rbmq.utils.tests import MockRBMQConnectionManager
from cerbes.helpers import generate_jwt
@pytest.mark.paramet... | 35.371324 | 88 | 0.646502 | 1,140 | 9,621 | 5.29386 | 0.148246 | 0.041756 | 0.069594 | 0.095443 | 0.601657 | 0.531234 | 0.474896 | 0.369677 | 0.312676 | 0.282519 | 0 | 0.027495 | 0.194782 | 9,621 | 271 | 89 | 35.501845 | 0.751517 | 0.018605 | 0 | 0.28436 | 0 | 0 | 0.246529 | 0.025437 | 0 | 0 | 0 | 0 | 0.184834 | 1 | 0.037915 | false | 0.061611 | 0.042654 | 0 | 0.080569 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
05311383501609612e71fc5929c01f1166155651 | 281 | py | Python | Desafios/desafio019.py | ward910/Python-Aprendizado | b7af1d270a522fbac03f3f680d558c2552f2b60b | [
"MIT"
] | 2 | 2021-08-30T20:21:16.000Z | 2022-02-11T21:51:37.000Z | Desafios/desafio019.py | ward910/Python-Aprendizado | b7af1d270a522fbac03f3f680d558c2552f2b60b | [
"MIT"
] | null | null | null | Desafios/desafio019.py | ward910/Python-Aprendizado | b7af1d270a522fbac03f3f680d558c2552f2b60b | [
"MIT"
] | null | null | null | from random import choice
aluno01 = str(input('Primeiro aluno: '))
aluno02 = str(input('Segundo aluno: '))
aluno03 = str(input('Terceiro aluno: '))
aluno04 = str(input('Quarto aluno: '))
lista = [aluno01, aluno02, aluno03, aluno04]
print(f'O aluno escolhido foi {choice(lista)}') | 31.222222 | 47 | 0.708185 | 37 | 281 | 5.378378 | 0.567568 | 0.160804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065306 | 0.128114 | 281 | 9 | 47 | 31.222222 | 0.746939 | 0 | 0 | 0 | 0 | 0 | 0.347518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05320146d99565bd220d61f34a0b1719b4666f77 | 6,391 | py | Python | tests/test_decorators.py | mardix/Mocha | bce481cb31a0972061dd99bc548701411dcb9de3 | [
"MIT"
] | 7 | 2017-05-14T02:21:48.000Z | 2020-11-07T20:12:01.000Z | tests/test_decorators.py | mardix/Mocha | bce481cb31a0972061dd99bc548701411dcb9de3 | [
"MIT"
] | 6 | 2019-11-04T02:52:17.000Z | 2021-05-06T19:00:33.000Z | tests/test_decorators.py | mardix/Mocha | bce481cb31a0972061dd99bc548701411dcb9de3 | [
"MIT"
] | null | null | null |
from flask import Flask
import harambe.decorators as decorators
import harambe.core as core
#===============================================================================
# EXTENDS
def test_extends():
def plugin(view, **kwargs):
class SubView(object):
def inner(self):
pass
... | 22.114187 | 80 | 0.523705 | 721 | 6,391 | 4.50208 | 0.135922 | 0.049291 | 0.029575 | 0.024646 | 0.481516 | 0.37215 | 0.326556 | 0.326556 | 0.313925 | 0.313925 | 0 | 0.009759 | 0.278517 | 6,391 | 288 | 81 | 22.190972 | 0.69421 | 0.067439 | 0 | 0.512195 | 0 | 0 | 0.120524 | 0.007732 | 0 | 0 | 0 | 0 | 0.141463 | 1 | 0.190244 | false | 0.126829 | 0.019512 | 0.02439 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
05340b2710697fe5068413241618562a3fe77979 | 3,056 | py | Python | infer.py | sragain/pcmc-nips | f5579d3eb95bb964109271ebda9672f23c8d0b64 | [
"MIT"
] | 9 | 2016-12-13T18:38:00.000Z | 2021-07-25T01:40:47.000Z | infer.py | sragain/pcmc-nips | f5579d3eb95bb964109271ebda9672f23c8d0b64 | [
"MIT"
] | null | null | null | infer.py | sragain/pcmc-nips | f5579d3eb95bb964109271ebda9672f23c8d0b64 | [
"MIT"
] | 1 | 2017-12-12T22:47:26.000Z | 2017-12-12T22:47:26.000Z | import numpy as np
import matplotlib.pyplot as plt
from random import random
import lib.mnl_utils,lib.mmnl_utils,lib.pcmc_utils
import pickle
import os,sys
def split_samples(samples,nep,split=.25,alpha=.1):
"""splits a list of samples into nep dictionaries containing their summary
statistics
Arguments:
samples- ... | 33.217391 | 91 | 0.727749 | 513 | 3,056 | 4.235867 | 0.278752 | 0.022089 | 0.022089 | 0.011045 | 0.146341 | 0.034054 | 0 | 0 | 0 | 0 | 0 | 0.01373 | 0.142016 | 3,056 | 91 | 92 | 33.582418 | 0.815027 | 0.057264 | 0 | 0 | 0 | 0 | 0.043643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0535dfb45e45c964e0538cb160423d63cf189882 | 1,071 | py | Python | app/models.py | coaalst/fatman-db-service | 7754766e003afe6ecb9328957e789d3e950faead | [
"MIT"
] | null | null | null | app/models.py | coaalst/fatman-db-service | 7754766e003afe6ecb9328957e789d3e950faead | [
"MIT"
] | null | null | null | app/models.py | coaalst/fatman-db-service | 7754766e003afe6ecb9328957e789d3e950faead | [
"MIT"
] | null | null | null | from app import db
from datetime import datetime
class Entry(db.Model):
__tablename__ = 'entries'
id = db.Column(db.Integer, primary_key = True)
humidity = db.Column(db.String(255))
temp = db.Column(db.String(255))
date = db.Column(db.DateTime, nullable=False,
default=datetime.utcnow)
f... | 29.75 | 75 | 0.608777 | 136 | 1,071 | 4.558824 | 0.301471 | 0.090323 | 0.112903 | 0.072581 | 0.241935 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007742 | 0.276377 | 1,071 | 36 | 76 | 29.75 | 0.792258 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.064516 | 0.064516 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
053d53264c9028f473213e70948362aa4794a67b | 1,873 | py | Python | docs/source/conf.py | JrVerbiest/TRIPOD | 323365e9a620ea89b309c8191e3fd6a3d5ff9d33 | [
"MIT"
] | 1 | 2021-11-29T20:56:27.000Z | 2021-11-29T20:56:27.000Z | docs/source/conf.py | JrVerbiest/TRIPOD | 323365e9a620ea89b309c8191e3fd6a3d5ff9d33 | [
"MIT"
] | null | null | null | docs/source/conf.py | JrVerbiest/TRIPOD | 323365e9a620ea89b309c8191e3fd6a3d5ff9d33 | [
"MIT"
] | 2 | 2022-02-08T12:28:37.000Z | 2022-03-22T08:57:29.000Z | # Configuration file for the Sphinx documentation builder.
#
# For a full option list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in anoth... | 35.339623 | 85 | 0.662573 | 238 | 1,873 | 5.193277 | 0.542017 | 0.038835 | 0.031553 | 0.022654 | 0.108414 | 0.043689 | 0.043689 | 0 | 0 | 0 | 0 | 0.004911 | 0.130272 | 1,873 | 52 | 86 | 36.019231 | 0.753837 | 0.708489 | 0 | 0 | 0 | 0 | 0.328215 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
053e5178a2a4f8b0f475442c8d7f58290cc38518 | 1,192 | py | Python | dvc/utils/stream.py | antonpirker/dvc | bfcc8f877cf3ac6239ede6f4de65c807090c61c0 | [
"Apache-2.0"
] | null | null | null | dvc/utils/stream.py | antonpirker/dvc | bfcc8f877cf3ac6239ede6f4de65c807090c61c0 | [
"Apache-2.0"
] | 66 | 2021-03-29T09:02:26.000Z | 2022-03-30T13:09:33.000Z | dvc/utils/stream.py | antonpirker/dvc | bfcc8f877cf3ac6239ede6f4de65c807090c61c0 | [
"Apache-2.0"
] | null | null | null | import hashlib
import io
from funcy import cached_property
from dvc.hash_info import HashInfo
from dvc.istextfile import DEFAULT_CHUNK_SIZE, istextblock
from dvc.utils import dos2unix
class HashedStreamReader(io.IOBase):
PARAM_CHECKSUM = "md5"
def __init__(self, fobj):
self.fobj = fobj
sel... | 22.490566 | 75 | 0.61745 | 151 | 1,192 | 4.668874 | 0.337748 | 0.068085 | 0.056738 | 0.079433 | 0.110638 | 0.065248 | 0 | 0 | 0 | 0 | 0 | 0.013064 | 0.293624 | 1,192 | 52 | 76 | 22.923077 | 0.824228 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
054ce3c1819a341b6e9cb3b0b8e13cb687eb2c81 | 794 | py | Python | api/serializers.py | Radi-dev/Class-Enrollment | 453c13d85ce259a832ab7ac28eb047b3629e7303 | [
"MIT"
] | null | null | null | api/serializers.py | Radi-dev/Class-Enrollment | 453c13d85ce259a832ab7ac28eb047b3629e7303 | [
"MIT"
] | null | null | null | api/serializers.py | Radi-dev/Class-Enrollment | 453c13d85ce259a832ab7ac28eb047b3629e7303 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from schema.models import Applicant, Tutor, Course, Outline
class TutorSerializer(serializers.ModelSerializer):
class Meta:
model = Tutor
fields = '__all__'
class OutlineSerializer(serializers.ModelSerializer):
class Meta:
model = Outline
... | 24.8125 | 75 | 0.70403 | 76 | 794 | 7.144737 | 0.381579 | 0.191529 | 0.103131 | 0.128913 | 0.220994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210327 | 794 | 31 | 76 | 25.612903 | 0.866029 | 0.153652 | 0 | 0.368421 | 0 | 0 | 0.064275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
054ec4e3ece19b285de51dad2ef362c6ae9e7117 | 1,091 | py | Python | gem/migrations/0012_partner_credit.py | praekeltfoundation/Molo-Merge-CMS-Scratchpad | cad49b4fa57028e473af134851b95112a885b8b2 | [
"BSD-2-Clause"
] | 3 | 2017-08-03T22:37:13.000Z | 2018-06-14T15:36:01.000Z | gem/migrations/0012_partner_credit.py | praekeltfoundation/Molo-Merge-CMS-Scratchpad | cad49b4fa57028e473af134851b95112a885b8b2 | [
"BSD-2-Clause"
] | 635 | 2016-01-12T07:23:46.000Z | 2018-11-16T07:43:13.000Z | gem/migrations/0012_partner_credit.py | praekeltfoundation/Molo-Merge-CMS-Scratchpad | cad49b4fa57028e473af134851b95112a885b8b2 | [
"BSD-2-Clause"
] | 6 | 2017-05-11T09:50:34.000Z | 2018-11-16T10:42:56.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-12-22 11:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gem', '0011_auto_20161019_1335'),
]
operations = [
migrations.AddField(
... | 35.193548 | 154 | 0.638863 | 134 | 1,091 | 5.052239 | 0.529851 | 0.115214 | 0.10192 | 0.119645 | 0.369276 | 0.369276 | 0.369276 | 0.369276 | 0.121123 | 0 | 0 | 0.039168 | 0.251146 | 1,091 | 30 | 155 | 36.366667 | 0.789474 | 0.061412 | 0 | 0.391304 | 1 | 0.043478 | 0.335945 | 0.047992 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0559bc12942003f9d57a78c6bf370e0d2de13c01 | 1,527 | py | Python | blinkenlights/blinkenlights.py | fayoh/KSP-Control | 6ec04b1d699cd921824df49558db0fe798f36213 | [
"MIT"
] | null | null | null | blinkenlights/blinkenlights.py | fayoh/KSP-Control | 6ec04b1d699cd921824df49558db0fe798f36213 | [
"MIT"
] | 5 | 2018-12-07T13:11:37.000Z | 2021-06-25T15:17:14.000Z | blinkenlights/blinkenlights.py | fayoh/KSP-Control | 6ec04b1d699cd921824df49558db0fe798f36213 | [
"MIT"
] | null | null | null | import asyncio
import configparser
import logging
import blink.blinkgenerator
import blinkenio.controller
import common.protocol as protocol
from common.service import AbstractService
from common.coordinatorclient import CoordinatorClient
class Blinkenlights(AbstractService):
def __init__(self, config):
se... | 30.54 | 72 | 0.672561 | 151 | 1,527 | 6.582781 | 0.350993 | 0.072435 | 0.024145 | 0.028169 | 0.177062 | 0.177062 | 0.177062 | 0.177062 | 0.177062 | 0.177062 | 0 | 0.000867 | 0.24427 | 1,527 | 49 | 73 | 31.163265 | 0.860485 | 0 | 0 | 0.179487 | 0 | 0 | 0.029489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0.076923 | 0.205128 | 0 | 0.410256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
055e80c05552bd038ab105ddccd7ad285cd20870 | 586 | py | Python | tests/test_content_maps.py | xDBio-Inc/xD-CWL-utils | a7c602e221f3711aeea41a68e868eb13b37550c5 | [
"Apache-2.0"
] | null | null | null | tests/test_content_maps.py | xDBio-Inc/xD-CWL-utils | a7c602e221f3711aeea41a68e868eb13b37550c5 | [
"Apache-2.0"
] | 1 | 2019-12-16T17:06:44.000Z | 2019-12-16T17:06:44.000Z | tests/test_content_maps.py | xDBio-Inc/xD-CWL-utils | a7c602e221f3711aeea41a68e868eb13b37550c5 | [
"Apache-2.0"
] | 1 | 2020-06-15T18:29:18.000Z | 2020-06-15T18:29:18.000Z | import os
import tempfile
from tests.test_base import TestBase
from capanno_utils.repo_config import config
from capanno_utils.content_maps import make_tools_map, make_script_maps
class TestToolMaps(TestBase):
def test_make_tools_map(self):
make_tools_map(tempfile.NamedTemporaryFile().name)
retur... | 27.904762 | 79 | 0.773038 | 77 | 586 | 5.519481 | 0.38961 | 0.105882 | 0.141176 | 0.075294 | 0.305882 | 0.216471 | 0.216471 | 0 | 0 | 0 | 0 | 0 | 0.165529 | 586 | 20 | 80 | 29.3 | 0.869121 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
05610fdac46f9be6793749a9b5b8766fd6d5b164 | 16,318 | py | Python | seriesplugin/src/SeriesPlugin.py | Haehnchen/enigma2-plugins | 23007eb0b78665cd3a2faf98d1d6145b4f0ada3f | [
"OLDAP-2.3"
] | null | null | null | seriesplugin/src/SeriesPlugin.py | Haehnchen/enigma2-plugins | 23007eb0b78665cd3a2faf98d1d6145b4f0ada3f | [
"OLDAP-2.3"
] | null | null | null | seriesplugin/src/SeriesPlugin.py | Haehnchen/enigma2-plugins | 23007eb0b78665cd3a2faf98d1d6145b4f0ada3f | [
"OLDAP-2.3"
] | null | null | null | # -*- coding: utf-8 -*-
# by betonme @2012
import re
import os, sys, traceback
from time import localtime, strftime
from datetime import datetime
# Localization
from . import _
from datetime import datetime
from Components.config import config
from enigma import eServiceReference, iServiceInformation, eServiceCe... | 31.320537 | 183 | 0.687891 | 2,010 | 16,318 | 5.492537 | 0.172139 | 0.029167 | 0.072464 | 0.028986 | 0.572101 | 0.527264 | 0.475543 | 0.459601 | 0.441033 | 0.441033 | 0 | 0.007751 | 0.169812 | 16,318 | 520 | 184 | 31.380769 | 0.80719 | 0.16203 | 0 | 0.530259 | 0 | 0 | 0.117269 | 0.003321 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011527 | 0.083573 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0561bf07eebb63662f6945fae6dff4899e3d0275 | 14,346 | py | Python | universe/blog/views.py | charlesDavid009/library_app | f0ae16bb4eb3e18e5cb6e7ea88d54dbc11767bb2 | [
"MIT"
] | 3 | 2021-03-12T19:53:09.000Z | 2021-04-08T21:46:21.000Z | universe/blog/views.py | charlesDavid009/library_app | f0ae16bb4eb3e18e5cb6e7ea88d54dbc11767bb2 | [
"MIT"
] | null | null | null | universe/blog/views.py | charlesDavid009/library_app | f0ae16bb4eb3e18e5cb6e7ea88d54dbc11767bb2 | [
"MIT"
] | 1 | 2021-04-08T21:28:56.000Z | 2021-04-08T21:28:56.000Z | from django.shortcuts import render
from rest_framework import status
from rest_framework.response import Response
from .serializers import(
CreateBlogSerializer,
BlogSerializer,
CreateCommentSerializer,
CommentSerializer,
CreateSubCommentSerializer,
SubCommentSerializer,
ActionBlogSerializ... | 31.668874 | 183 | 0.632162 | 1,417 | 14,346 | 6.292872 | 0.153846 | 0.028373 | 0.071773 | 0.034316 | 0.571268 | 0.553998 | 0.5337 | 0.514411 | 0.430638 | 0.395985 | 0 | 0.003199 | 0.280915 | 14,346 | 452 | 184 | 31.738938 | 0.861187 | 0.149658 | 0 | 0.61597 | 0 | 0 | 0.010934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091255 | false | 0 | 0.053232 | 0.030418 | 0.56654 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0567988bf16f36e48e67dd3b46cccb4cbbd9831a | 1,476 | py | Python | y-cruncher/src/lib/ParseCruncherValidation.py | greghogan/benchmark | 8d7197b565aa45304a087dd03d315073a6ada5df | [
"Apache-2.0"
] | null | null | null | y-cruncher/src/lib/ParseCruncherValidation.py | greghogan/benchmark | 8d7197b565aa45304a087dd03d315073a6ada5df | [
"Apache-2.0"
] | null | null | null | y-cruncher/src/lib/ParseCruncherValidation.py | greghogan/benchmark | 8d7197b565aa45304a087dd03d315073a6ada5df | [
"Apache-2.0"
] | null | null | null | import re
class ParseCruncherValidation:
re_platform_instance = re.compile(r'User:\s+(.*)\s+\((.*)\)')
re_constant = re.compile(r'Constant:\s+(?:Custom - )?(.*)')
re_algorithm = re.compile(r'Algorithm : "(.*)"')
re_name_short = re.compile(r'NameShort : "(.*)"')
re_name_long = re.compile(r'NameLong... | 46.125 | 126 | 0.659214 | 171 | 1,476 | 5.48538 | 0.263158 | 0.21322 | 0.085288 | 0.08742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.189702 | 1,476 | 31 | 127 | 47.612903 | 0.773411 | 0 | 0 | 0 | 0 | 0 | 0.137534 | 0.02981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0568a846bc0c23512e360c32ee1b018fc1761ca6 | 4,027 | py | Python | pytorch/diora/net/vision_models.py | TRUMANCFY/VL-DIORA | cef398e05842d4a30345260d8e27d1c362671834 | [
"Apache-2.0"
] | null | null | null | pytorch/diora/net/vision_models.py | TRUMANCFY/VL-DIORA | cef398e05842d4a30345260d8e27d1c362671834 | [
"Apache-2.0"
] | null | null | null | pytorch/diora/net/vision_models.py | TRUMANCFY/VL-DIORA | cef398e05842d4a30345260d8e27d1c362671834 | [
"Apache-2.0"
] | null | null | null | """
Authors: Wouter Van Gansbeke, Simon Vandenhende
Licensed under the CC BY-NC 4.0 license (https://creativecommons.org/licenses/by-nc/4.0/)
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
import os
import torchvision.models as models
TYPE_CLASSES = {
'chair': {'num_classes': 13, 'num_heads... | 35.955357 | 114 | 0.639434 | 494 | 4,027 | 5.04251 | 0.275304 | 0.07226 | 0.042152 | 0.040145 | 0.312726 | 0.27499 | 0.228422 | 0.201124 | 0.201124 | 0.201124 | 0 | 0.019805 | 0.235163 | 4,027 | 112 | 115 | 35.955357 | 0.788961 | 0.03402 | 0 | 0.141176 | 0 | 0 | 0.102241 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 1 | 0.082353 | false | 0.082353 | 0.058824 | 0 | 0.223529 | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
05724c84a3ff654d4d139aea348533e918fb11fa | 2,161 | py | Python | Gse/examples/table_test.py | lydiaxing/fprime | f6b3e03f89e9aca1614243c9896d4a72aa0cc726 | [
"Apache-2.0"
] | 2 | 2020-09-08T05:39:05.000Z | 2021-05-04T14:58:51.000Z | Gse/examples/table_test.py | JPLOpenSource/fprime-sw-Rel1.0 | 18364596c24fa369c938ef8758e5aa945ecc6a9b | [
"Apache-2.0"
] | 2 | 2019-02-27T03:17:15.000Z | 2019-03-01T22:34:30.000Z | Gse/examples/table_test.py | JPLOpenSource/fprime-sw-Rel1.0 | 18364596c24fa369c938ef8758e5aa945ecc6a9b | [
"Apache-2.0"
] | 3 | 2019-02-17T20:41:15.000Z | 2019-02-26T21:06:50.000Z |
import time
import Tkinter
from tkintertable.Tables import TableCanvas
from tkintertable.TableModels import TableModel
master = Tkinter.Tk()
tframe = Tkinter.Frame(master)
tframe.pack()
table = TableCanvas(tframe)
table.createTableFrame()
# Create a model from data and init.
model = TableModel()
table = TableCanvas(... | 23.236559 | 90 | 0.730217 | 324 | 2,161 | 4.83642 | 0.395062 | 0.056158 | 0.021059 | 0.026803 | 0.085514 | 0.059987 | 0.028079 | 0 | 0 | 0 | 0 | 0.033762 | 0.136511 | 2,161 | 92 | 91 | 23.48913 | 0.806002 | 0.234614 | 0 | 0.152542 | 0 | 0 | 0.215027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084746 | null | null | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
058337d1e18fef6c2208c16b39af697a64eb9aac | 2,290 | py | Python | historisation/historisation/storages/ftp.py | etienneburdet/ods-cookbook | 37b16e304e6c70ab0fd5a32eab2803598a266047 | [
"MIT"
] | 20 | 2015-08-19T23:36:43.000Z | 2022-01-12T19:16:36.000Z | historisation/historisation/storages/ftp.py | gennaweber/ods-cookbook | 45a49ba041c6869ce8fd838e6de1cc69b9d8c84a | [
"MIT"
] | 3 | 2015-12-15T08:17:26.000Z | 2020-03-28T00:43:56.000Z | historisation/historisation/storages/ftp.py | gennaweber/ods-cookbook | 45a49ba041c6869ce8fd838e6de1cc69b9d8c84a | [
"MIT"
] | 5 | 2015-11-28T14:59:50.000Z | 2022-01-07T17:17:13.000Z | from ftplib import FTP, error_perm, all_errors, error_temp
import io
import logging
from ..storage import Storage
logger = logging.getLogger(__name__)
class FTPStorage(Storage):
def __init__(self, root_dir='/historisation', host='localhost', username=None, password=None):
super(Storage, self).__init__()... | 24.623656 | 98 | 0.561135 | 288 | 2,290 | 4.232639 | 0.274306 | 0.063167 | 0.057424 | 0.074651 | 0.205086 | 0.153404 | 0.100082 | 0.100082 | 0.055783 | 0 | 0 | 0.002608 | 0.330131 | 2,290 | 92 | 99 | 24.891304 | 0.792047 | 0 | 0 | 0.315068 | 0 | 0 | 0.020524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178082 | false | 0.068493 | 0.054795 | 0.013699 | 0.410959 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
05859539e6089c9dc75ca1ea5240a8999463da4b | 9,972 | py | Python | hearthstone/training/pytorch/hearthstone_state_encoder.py | dianarvp/stone_ground_hearth_battles | 450e70eaef21b543be579a6d696676fb148a99b0 | [
"Apache-2.0"
] | null | null | null | hearthstone/training/pytorch/hearthstone_state_encoder.py | dianarvp/stone_ground_hearth_battles | 450e70eaef21b543be579a6d696676fb148a99b0 | [
"Apache-2.0"
] | null | null | null | hearthstone/training/pytorch/hearthstone_state_encoder.py | dianarvp/stone_ground_hearth_battles | 450e70eaef21b543be579a6d696676fb148a99b0 | [
"Apache-2.0"
] | null | null | null | import copy
import enum
from collections import namedtuple
from typing import Callable, List, Any, Optional, Dict
import torch
from hearthstone.agent import TripleRewardsAction, TavernUpgradeAction, RerollAction, \
EndPhaseAction, SummonAction, BuyAction, SellFromBoardAction, SellFromHandAction, Action
from heart... | 31.657143 | 139 | 0.676093 | 1,226 | 9,972 | 5.284666 | 0.126427 | 0.031949 | 0.020837 | 0.021608 | 0.409322 | 0.329989 | 0.237845 | 0.195555 | 0.155271 | 0.116993 | 0 | 0.004991 | 0.216406 | 9,972 | 314 | 140 | 31.757962 | 0.824162 | 0.020257 | 0 | 0.248826 | 0 | 0 | 0.023055 | 0 | 0 | 0 | 0 | 0 | 0.018779 | 1 | 0.206573 | false | 0.014085 | 0.042254 | 0.070423 | 0.450704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0587b0d01951318a2e4d216cbc5d0f5ac172df26 | 3,939 | py | Python | CursoPython/dia 2/ejercicio01.py | hamfree/PYTHON | 2df83c1da393f05cadf0fe3f8d3173d4420eda60 | [
"Apache-2.0"
] | null | null | null | CursoPython/dia 2/ejercicio01.py | hamfree/PYTHON | 2df83c1da393f05cadf0fe3f8d3173d4420eda60 | [
"Apache-2.0"
] | null | null | null | CursoPython/dia 2/ejercicio01.py | hamfree/PYTHON | 2df83c1da393f05cadf0fe3f8d3173d4420eda60 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# pylint: disable=E1601
"""
Crea un diccionario en el que almacenes los datos de varias personas usando el dni como clave y como
valor, una lista con el resto de datos (usa como base el del ejercicio 1)
"""
# Muestra de datos
def muestraPersonas(dpers):
if len(dpers) > ... | 31.766129 | 102 | 0.532876 | 454 | 3,939 | 4.590308 | 0.319383 | 0.026871 | 0.035988 | 0.021593 | 0.09357 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023901 | 0.341457 | 3,939 | 123 | 103 | 32.02439 | 0.779491 | 0.051282 | 0 | 0.171717 | 0 | 0 | 0.209322 | 0.044915 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0588d985b5c95992929cb4298b35a0c5374c2412 | 1,149 | py | Python | examples/app.py | johntmyers/falcon-rpc | e2b892ae0243dbbaac77ee8e5dcf97ca8759055d | [
"Apache-2.0"
] | 4 | 2019-03-08T02:56:28.000Z | 2020-01-29T01:33:22.000Z | examples/app.py | johntmyers/falcon-rpc | e2b892ae0243dbbaac77ee8e5dcf97ca8759055d | [
"Apache-2.0"
] | null | null | null | examples/app.py | johntmyers/falcon-rpc | e2b892ae0243dbbaac77ee8e5dcf97ca8759055d | [
"Apache-2.0"
] | null | null | null | import falcon_rpc
class Test:
"""``test`` method family """
def ok(self, req):
# /test.ok
req.resp_body = {'foo': 'bar'}
def error(self, req):
# /test.error
# can raise an error at anytime
raise falcon_rpc.RPCError('dummy_error_code')
def fatal(self, req):
... | 23.9375 | 90 | 0.5953 | 152 | 1,149 | 4.355263 | 0.493421 | 0.074018 | 0.099698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002404 | 0.275892 | 1,149 | 47 | 91 | 24.446809 | 0.793269 | 0.247171 | 0 | 0 | 0 | 0 | 0.109541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.041667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
058ed10a89463821d3e64262d7b402f57b0c768e | 8,554 | py | Python | src/paql_eval/cardinality_pruning.py | ahmadchatha/Scalable-PaQL-Queries | 01a93f671d4b43310867321fc9e36539ec2871de | [
"MIT"
] | 6 | 2016-10-04T05:35:24.000Z | 2020-11-12T09:31:42.000Z | src/paql_eval/cardinality_pruning.py | matteo-brucato/Scalable-PaQL-Queries | 993733f6d8afb607e2789d7b5ffb6535e0b5c8ce | [
"MIT"
] | null | null | null | src/paql_eval/cardinality_pruning.py | matteo-brucato/Scalable-PaQL-Queries | 993733f6d8afb607e2789d7b5ffb6535e0b5c8ce | [
"MIT"
] | 3 | 2017-08-02T23:55:23.000Z | 2020-05-17T19:46:04.000Z | from logging import debug
import math
import time
import sys
from src.utils.utils import n_of_subsets
from ..dbms.db import DBConnection
def create_sorted_table(db, table_name, attribute_name):
# This is a sort of materialized view, very fastly computed by postgres
# It is temporary, as it will be destroyed ... | 32.401515 | 118 | 0.633388 | 1,275 | 8,554 | 4.047059 | 0.174118 | 0.045349 | 0.076744 | 0.093798 | 0.537985 | 0.489922 | 0.441667 | 0.387209 | 0.328876 | 0.318411 | 0 | 0.026563 | 0.251812 | 8,554 | 263 | 119 | 32.524715 | 0.779688 | 0.075988 | 0 | 0.306818 | 0 | 0.017045 | 0.157362 | 0 | 0 | 0 | 0 | 0.003802 | 0.005682 | 0 | null | null | 0.005682 | 0.034091 | null | null | 0.147727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
058f8af9893f76583f4c0934b1a48a73af8a02c8 | 5,380 | py | Python | cmdb-backend/resources/login.py | kayoon/starsea | 98d7ef8a1e2f2fd5cb112bf5fc14d1c55732e15f | [
"MIT"
] | 20 | 2017-06-30T01:44:15.000Z | 2020-09-21T10:51:37.000Z | cmdb-backend/resources/login.py | Paul-Pcd/starsea | 98d7ef8a1e2f2fd5cb112bf5fc14d1c55732e15f | [
"MIT"
] | null | null | null | cmdb-backend/resources/login.py | Paul-Pcd/starsea | 98d7ef8a1e2f2fd5cb112bf5fc14d1c55732e15f | [
"MIT"
] | 11 | 2017-08-09T13:03:57.000Z | 2021-08-21T06:54:23.000Z | from flask import Flask, request, render_template, redirect, url_for, session, g, abort, flash,make_response
from datetime import timedelta
#from models import User, db
from common.utility import hashpass, login_required
from common.restful import Serialization
from common.token_manage import Token_Manager
from app ... | 31.461988 | 117 | 0.589033 | 599 | 5,380 | 5.196995 | 0.240401 | 0.042403 | 0.035978 | 0.034693 | 0.350787 | 0.231931 | 0.160938 | 0.160938 | 0.07035 | 0.07035 | 0 | 0.011017 | 0.274535 | 5,380 | 170 | 118 | 31.647059 | 0.786574 | 0.027138 | 0 | 0.111111 | 0 | 0 | 0.115237 | 0.034571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.083333 | 0.166667 | 0.055556 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
05915e332fa224468d6d4494e531d75ed821380b | 6,741 | py | Python | src/utils/utils.py | AppleTechy/audit-radius | d828e82b129a349f6dd98dcd7ffbdb04e0230350 | [
"MIT"
] | null | null | null | src/utils/utils.py | AppleTechy/audit-radius | d828e82b129a349f6dd98dcd7ffbdb04e0230350 | [
"MIT"
] | null | null | null | src/utils/utils.py | AppleTechy/audit-radius | d828e82b129a349f6dd98dcd7ffbdb04e0230350 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Contains helper functions.
"""
from pyroute2 import iwutil
with iwutil.IW() as IW:
...
from pyroute2 import IPRoute,IPDB
from pyroute2.netlink.exceptions import NetlinkError
#from pyroute2 import iproute
#with iproute.RAWIPRoute as RawIPRoute:
...
#from src.utils.log import g_exce... | 23.989324 | 80 | 0.6502 | 806 | 6,741 | 5.205955 | 0.191067 | 0.040515 | 0.064824 | 0.077455 | 0.474261 | 0.434223 | 0.418017 | 0.367493 | 0.359152 | 0.319113 | 0 | 0.010903 | 0.27889 | 6,741 | 280 | 81 | 24.075 | 0.852294 | 0.0448 | 0 | 0.516779 | 0 | 0 | 0.033561 | 0 | 0 | 0 | 0.005119 | 0 | 0 | 0 | null | null | 0 | 0.020134 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
059187c21620acf8ff88bec8981c66837a5ecbb7 | 3,332 | py | Python | m2k/python/precision_adc_tutorial/ad7124_setup_example.py | mthoren-adi/education_tools | e99d47d0d6b56e05c8ed6692d57fa8518d610630 | [
"CC-BY-4.0"
] | 17 | 2018-11-11T03:08:57.000Z | 2022-02-15T22:37:59.000Z | m2k/python/precision_adc_tutorial/ad7124_setup_example.py | chensi007/education_tools | 3b4280308eb34bcafbd50035ea780a269883f2f7 | [
"CC-BY-4.0"
] | 6 | 2019-07-31T13:05:36.000Z | 2021-07-06T06:51:11.000Z | m2k/python/precision_adc_tutorial/ad7124_setup_example.py | chensi007/education_tools | 3b4280308eb34bcafbd50035ea780a269883f2f7 | [
"CC-BY-4.0"
] | 18 | 2018-10-29T20:11:36.000Z | 2022-01-24T00:42:10.000Z | # Copyright (C) 2019 Analog Devices, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
# - Redistributions of source code must retain the above copyright
# notice, this list of cond... | 53.741935 | 97 | 0.747299 | 496 | 3,332 | 4.971774 | 0.497984 | 0.035685 | 0.016221 | 0.018654 | 0.128143 | 0.072993 | 0.05515 | 0.05515 | 0.05515 | 0.05515 | 0 | 0.040566 | 0.193577 | 3,332 | 62 | 98 | 53.741935 | 0.877186 | 0.818127 | 0 | 0 | 0 | 0 | 0.110307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0591d7db0a58005358e5f50037e4a53a4bf871d8 | 2,428 | py | Python | library_api/util.py | SousaPedro11/loan-books-api | 584e75a82109eb477f6c510d5744a1977f3b6baf | [
"MIT"
] | null | null | null | library_api/util.py | SousaPedro11/loan-books-api | 584e75a82109eb477f6c510d5744a1977f3b6baf | [
"MIT"
] | null | null | null | library_api/util.py | SousaPedro11/loan-books-api | 584e75a82109eb477f6c510d5744a1977f3b6baf | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from decimal import Decimal
class Tax:
__metaclass__ = ABCMeta
TAX_LESS_THREE_DAYS = None
TAX_OVER_THREE_DAYS = None
TAX_OVER_FIVE_DAYS = None
def __init__(self, days):
self.loan_days = days
@abstractmethod
def calculate(self, **kwargs):
... | 35.705882 | 101 | 0.672982 | 336 | 2,428 | 4.473214 | 0.136905 | 0.101796 | 0.087824 | 0.106454 | 0.608117 | 0.537591 | 0.497006 | 0.453759 | 0.430472 | 0.430472 | 0 | 0.020142 | 0.24341 | 2,428 | 67 | 102 | 36.238806 | 0.79804 | 0 | 0 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132075 | false | 0.018868 | 0.037736 | 0.037736 | 0.509434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0596bb14a38cd4342dd2ff2f2fd1718bbc9a6296 | 22,047 | py | Python | miniworld/management/network/manager/NetworkManager.py | miniworld-project/miniworld_core | c591bad232b78eae99e8f55cb1b907c1e228484b | [
"MIT"
] | 5 | 2019-05-11T14:57:15.000Z | 2021-07-05T00:35:25.000Z | miniworld/management/network/manager/NetworkManager.py | miniworld-project/miniworld_core | c591bad232b78eae99e8f55cb1b907c1e228484b | [
"MIT"
] | 27 | 2017-03-17T07:11:02.000Z | 2019-05-26T23:36:56.000Z | miniworld/management/network/manager/NetworkManager.py | miniworld-project/miniworld_core | c591bad232b78eae99e8f55cb1b907c1e228484b | [
"MIT"
] | 6 | 2017-05-03T12:11:33.000Z | 2020-04-03T11:44:27.000Z | from collections import defaultdict, OrderedDict
from pprint import pformat
from dictdiffer import DictDiffer
from miniworld.model.network.linkqualitymodels import LinkQualityConstants
from miniworld import singletons
from miniworld.Scenario import scenario_config
from miniworld.log import log
from miniworld.manageme... | 44.094 | 161 | 0.644124 | 2,411 | 22,047 | 5.509332 | 0.137287 | 0.046375 | 0.023188 | 0.032899 | 0.51788 | 0.47143 | 0.399533 | 0.368064 | 0.340285 | 0.290296 | 0 | 0.002273 | 0.261714 | 22,047 | 499 | 162 | 44.182365 | 0.813786 | 0.212138 | 0 | 0.192308 | 0 | 0 | 0.017944 | 0.001598 | 0 | 0 | 0 | 0.012024 | 0 | 1 | 0.123932 | false | 0.004274 | 0.081197 | 0.047009 | 0.32906 | 0.008547 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0599443e8e4f280aa428ff06707449e1fa0bc27a | 56,455 | py | Python | cast/pp_Parser.py | scottfrazer/cAST | a947e20cd76a9cf41b7a5e4998fe1eec31183655 | [
"MIT"
] | 6 | 2017-03-26T05:37:36.000Z | 2021-11-06T15:25:01.000Z | cast/pp_Parser.py | scottfrazer/cAST | a947e20cd76a9cf41b7a5e4998fe1eec31183655 | [
"MIT"
] | null | null | null | cast/pp_Parser.py | scottfrazer/cAST | a947e20cd76a9cf41b7a5e4998fe1eec31183655 | [
"MIT"
] | 3 | 2015-04-22T11:47:51.000Z | 2019-01-20T09:14:43.000Z | import sys, inspect
from cast.ParserCommon import *
def whoami():
return inspect.stack()[1][3]
def whosdaddy():
return inspect.stack()[2][3]
def parse( iterator, entry ):
p = pp_Parser()
return p.parse(iterator, entry)
class pp_ExpressionParser__expr:
def __init__(self, parent):
self.__dict__.update(local... | 37.536569 | 321 | 0.559773 | 8,036 | 56,455 | 3.880164 | 0.047661 | 0.117187 | 0.166544 | 0.211796 | 0.70729 | 0.696514 | 0.670601 | 0.498733 | 0.452231 | 0.368429 | 0 | 0.105065 | 0.255832 | 56,455 | 1,503 | 322 | 37.561544 | 0.637127 | 0.019396 | 0 | 0.455333 | 0 | 0 | 0.068193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031333 | false | 0 | 0.001333 | 0.004 | 0.203333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55307f316a2aab0473f7715df011665a338b70c3 | 624 | py | Python | django_sqlalchemy/views.py | Waixi00008/django_tutorial | 2d6b26022c70c0e2332a146aeda39be1e99f7f39 | [
"MIT"
] | 1 | 2021-12-03T04:19:56.000Z | 2021-12-03T04:19:56.000Z | django_sqlalchemy/views.py | Waixi00008/django_tutorial | 2d6b26022c70c0e2332a146aeda39be1e99f7f39 | [
"MIT"
] | 1 | 2020-10-16T09:22:51.000Z | 2020-10-16T09:22:51.000Z | django_sqlalchemy/views.py | Waixi00008/django_tutorial | 2d6b26022c70c0e2332a146aeda39be1e99f7f39 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from .sqlalchemy import db_session,User
def insert(request):
user = User(name="waixi")
db_session.add(user)
db_session.commit()
db_session.close()
return HttpResponse('增')
def update(request):
user = db_session.query(User).first()
user.name="xiaobing"
... | 24 | 41 | 0.690705 | 82 | 624 | 5.134146 | 0.341463 | 0.213777 | 0.154394 | 0.142518 | 0.39905 | 0.24228 | 0.24228 | 0 | 0 | 0 | 0 | 0 | 0.177885 | 624 | 26 | 42 | 24 | 0.820663 | 0 | 0 | 0.272727 | 0 | 0 | 0.0272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 0.045455 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55356aed29c68f3f51fa93597ccc0083cd9ffdfc | 454 | py | Python | numpan/pan07.py | jaywoong/python | 99daedd5a9418b72b2d5c3b800080e730eb9b3ea | [
"Apache-2.0"
] | null | null | null | numpan/pan07.py | jaywoong/python | 99daedd5a9418b72b2d5c3b800080e730eb9b3ea | [
"Apache-2.0"
] | 1 | 2021-11-07T04:54:55.000Z | 2021-11-07T04:54:55.000Z | numpan/pan07.py | jaywoong/learn_pandas | 972ad015c142d5e88ea821694b7a95e6aeb4e172 | [
"Apache-2.0"
] | null | null | null | import pandas as pd;
import numpy as np;
data = {'subject' : ['math', 'comp', 'phys', 'chem'], 'score': [100, 90, 85, 95], 'students': [94, 32, 83, 17]};
df = pd.DataFrame(data);
print(df);
df2 = df[df['score'] > 90];
print(df2[['score','students']]);
print(df.loc[df['score'] > 90,['score','students']]);
print('-... | 20.636364 | 112 | 0.513216 | 62 | 454 | 3.758065 | 0.483871 | 0.090129 | 0.077253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083756 | 0.132159 | 454 | 21 | 113 | 21.619048 | 0.507614 | 0 | 0 | 0.153846 | 0 | 0 | 0.278761 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
554726c77d15e720227106f22ff4bed3b76c1ff6 | 398 | py | Python | vehiculo/migrations/0003_carro_dueno.py | gusanare1/site1 | 97508d84cb964eaf92166434e53febb67e595589 | [
"Apache-2.0"
] | null | null | null | vehiculo/migrations/0003_carro_dueno.py | gusanare1/site1 | 97508d84cb964eaf92166434e53febb67e595589 | [
"Apache-2.0"
] | null | null | null | vehiculo/migrations/0003_carro_dueno.py | gusanare1/site1 | 97508d84cb964eaf92166434e53febb67e595589 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.5 on 2018-05-21 20:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vehiculo', '0002_auto_20180521_1253'),
]
operations = [
migrations.AddField(
model_name='carro',
name='dueno',
... | 20.947368 | 65 | 0.59799 | 44 | 398 | 5.295455 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118881 | 0.281407 | 398 | 18 | 66 | 22.111111 | 0.695804 | 0.113065 | 0 | 0 | 1 | 0 | 0.122507 | 0.065527 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
554a8c46378f2860165f0c587807dd0e232a8dd8 | 1,331 | py | Python | src/python/Problem100.py | mchrzanowski/ProjectEuler | 06a24cadbd2c38fb42c3935779fc7ffb6de4e1b5 | [
"MIT"
] | null | null | null | src/python/Problem100.py | mchrzanowski/ProjectEuler | 06a24cadbd2c38fb42c3935779fc7ffb6de4e1b5 | [
"MIT"
] | null | null | null | src/python/Problem100.py | mchrzanowski/ProjectEuler | 06a24cadbd2c38fb42c3935779fc7ffb6de4e1b5 | [
"MIT"
] | null | null | null | '''
Created on Mar 8, 2012
@author: mchrzanowski
'''
from Problem066 import getConvergentPair
from decimal import Decimal
from time import time
def getPositiveRoot(x):
''' get the positive root of the second-order diophantine equation
x ** 2 - x - y ** 2 + y - 2 * x * y = 0
where x is given.
'''
... | 22.559322 | 70 | 0.525169 | 175 | 1,331 | 3.948571 | 0.434286 | 0.011577 | 0.028944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.353118 | 1,331 | 59 | 71 | 22.559322 | 0.753775 | 0.041322 | 0 | 0 | 0 | 0 | 0.042038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
554c690eb1fd47fc5eca316db76362b165cb3722 | 2,976 | py | Python | src/helpers/music/player.py | alejandrodlsp/grogu-bot | d35a504ee550fede4e8ea20e799079f8e8b2887b | [
"MIT"
] | 1 | 2021-04-15T13:47:32.000Z | 2021-04-15T13:47:32.000Z | src/helpers/music/player.py | alejandrodlsp/razer-bot | d35a504ee550fede4e8ea20e799079f8e8b2887b | [
"MIT"
] | null | null | null | src/helpers/music/player.py | alejandrodlsp/razer-bot | d35a504ee550fede4e8ea20e799079f8e8b2887b | [
"MIT"
] | null | null | null | import asyncio
import discord
import wavelink
from discord.ext import commands
from src.embeds.music.choose_track_embed import ChooseTrackEmbed, ChooseTrackOptions
from src.helpers.music.queue import Queue, QueueIsEmptyError
from src.text import get_text
class AlreadyConnectedToChannelError(commands.CommandError):
... | 29.76 | 101 | 0.612231 | 330 | 2,976 | 5.4 | 0.293939 | 0.035354 | 0.053872 | 0.065095 | 0.133558 | 0.1156 | 0.1156 | 0.1156 | 0.072952 | 0.072952 | 0 | 0.004325 | 0.300739 | 2,976 | 100 | 102 | 29.76 | 0.851994 | 0 | 0 | 0.240506 | 0 | 0 | 0.028888 | 0.02217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025316 | false | 0.075949 | 0.088608 | 0.012658 | 0.21519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
554cfb6924f431d795f69224e9ae3a46c8be5218 | 6,560 | py | Python | trac/Lib/site-packages/tracnumberedheadlinesplugin-0.4_r10976-py2.7.egg/tracnumberedheadlines/plugin.py | thinkbase/PortableTrac | 9ea0210f6b88f135ef73f370b48127af0495b2d7 | [
"BSD-3-Clause"
] | 2 | 2015-08-06T04:19:21.000Z | 2020-04-29T23:52:10.000Z | trac/Lib/site-packages/tracnumberedheadlinesplugin-0.4_r10976-py2.7.egg/tracnumberedheadlines/plugin.py | thinkbase/PortableTrac | 9ea0210f6b88f135ef73f370b48127af0495b2d7 | [
"BSD-3-Clause"
] | null | null | null | trac/Lib/site-packages/tracnumberedheadlinesplugin-0.4_r10976-py2.7.egg/tracnumberedheadlines/plugin.py | thinkbase/PortableTrac | 9ea0210f6b88f135ef73f370b48127af0495b2d7 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
""" Copyright (c) 2008 Martin Scharrer <martin@scharrer-online.de>
$Id: plugin.py 8551 2010-08-30 21:57:52Z martin_s $
$URL: http://trac-hacks.org/svn/numberedheadlinesplugin/0.11/tracnumberedheadlines/plugin.py $
This is Free Software under the BSD license.
Contributors... | 35.268817 | 120 | 0.58811 | 787 | 6,560 | 4.787802 | 0.321474 | 0.021231 | 0.015924 | 0.019904 | 0.147824 | 0.115711 | 0.109342 | 0.097665 | 0.097665 | 0.097665 | 0 | 0.024957 | 0.297561 | 6,560 | 185 | 121 | 35.459459 | 0.792752 | 0.087652 | 0 | 0.144068 | 0 | 0.025424 | 0.130531 | 0.031724 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016949 | 0.101695 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55501e43142223e86f11dcdd4ed67aebcb992f8e | 980 | py | Python | pj_blog/blog/views.py | TeddyGlass/WebDrugManager | 08181b3b824b5de18257ad25c31e4b5a4a594353 | [
"MIT"
] | null | null | null | pj_blog/blog/views.py | TeddyGlass/WebDrugManager | 08181b3b824b5de18257ad25c31e4b5a4a594353 | [
"MIT"
] | null | null | null | pj_blog/blog/views.py | TeddyGlass/WebDrugManager | 08181b3b824b5de18257ad25c31e4b5a4a594353 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic import ListView, DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from .models import Post
## viewはtemplate_name(表示先のhtmlのファイル名≠URL)を指定する&表示する変数を指定する
## urlsはviewとurlを紐付ける(これで間接的にhtmlとurlと表示したい内容が融合する)
## 汎用ビューを用いると、templa... | 25.128205 | 83 | 0.757143 | 90 | 980 | 8.211111 | 0.588889 | 0.060893 | 0.040595 | 0.05954 | 0.086604 | 0.086604 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144898 | 980 | 38 | 84 | 25.789474 | 0.880668 | 0.413265 | 0 | 0.411765 | 0 | 0 | 0.076649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
555bddc6d81a3851c5c7b84575d82cde9fb2715a | 7,678 | py | Python | starter/backend/flaskr/__init__.py | ahmedsalahacc/trivia-api | 5bf8c072e6098bddc6867ee90a4d2c0f1e0d2548 | [
"MIT"
] | null | null | null | starter/backend/flaskr/__init__.py | ahmedsalahacc/trivia-api | 5bf8c072e6098bddc6867ee90a4d2c0f1e0d2548 | [
"MIT"
] | null | null | null | starter/backend/flaskr/__init__.py | ahmedsalahacc/trivia-api | 5bf8c072e6098bddc6867ee90a4d2c0f1e0d2548 | [
"MIT"
] | null | null | null | import os
from flask import Flask, request, abort, jsonify
from flask_sqlalchemy import SQLAlchemy
from flask_cors import CORS
from flaskr.errors import EmptySelection
import random
from models import setup_db, Question, Category
QUESTIONS_PER_PAGE = 10
# used to paginate selection
def paginate(selection,request = r... | 29.875486 | 130 | 0.66671 | 974 | 7,678 | 5.176591 | 0.229979 | 0.023205 | 0.023602 | 0.030543 | 0.229472 | 0.188219 | 0.166799 | 0.152916 | 0.152717 | 0.083895 | 0 | 0.010496 | 0.230659 | 7,678 | 257 | 131 | 29.875486 | 0.843068 | 0.019406 | 0 | 0.451389 | 0 | 0 | 0.14621 | 0.029043 | 0 | 0 | 0 | 0.038911 | 0 | 1 | 0.083333 | false | 0 | 0.048611 | 0.013889 | 0.215278 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
555d2c7df5b5acc71ebe03d7b3dd3799989afd91 | 3,922 | py | Python | members/admin/member.py | Vayel/django-nsigma | f607547c8e977d2d8253f46b6a97272f1848db3d | [
"MIT"
] | null | null | null | members/admin/member.py | Vayel/django-nsigma | f607547c8e977d2d8253f46b6a97272f1848db3d | [
"MIT"
] | 17 | 2017-03-13T21:47:44.000Z | 2017-03-23T12:43:06.000Z | members/admin/member.py | Vayel/django-nsigma-members | f607547c8e977d2d8253f46b6a97272f1848db3d | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from inline_actions.admin import InlineActionsModelAdminMixin
from . import tools as admin_tools
from . import document
from .. import models
from .. import tools
class WasRegisteredListFilter(admin.SimpleListFilter):
title... | 32.147541 | 88 | 0.67797 | 434 | 3,922 | 5.834101 | 0.228111 | 0.022117 | 0.029621 | 0.041074 | 0.299763 | 0.25079 | 0.231833 | 0.231833 | 0.173776 | 0.136651 | 0 | 0.001314 | 0.22412 | 3,922 | 121 | 89 | 32.413223 | 0.830759 | 0 | 0 | 0.089888 | 0 | 0 | 0.110658 | 0.017593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123596 | false | 0 | 0.078652 | 0.067416 | 0.595506 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
55621bc571af8b999dc4987aedfb08bb70812de5 | 1,308 | py | Python | tests/test_fixture_sample.py | ddk50/upfg_rina | c6808ffec6dd8c84ab1c02721ab2b57f29a5283b | [
"MIT"
] | null | null | null | tests/test_fixture_sample.py | ddk50/upfg_rina | c6808ffec6dd8c84ab1c02721ab2b57f29a5283b | [
"MIT"
] | null | null | null | tests/test_fixture_sample.py | ddk50/upfg_rina | c6808ffec6dd8c84ab1c02721ab2b57f29a5283b | [
"MIT"
] | null | null | null | import pytest
from .context import Notifications
from .context import Msg
@pytest.fixture
def init():
notifi = Notifications()
return notifi
def test_one(init):
assert init.size() == 15
def test_parse_with_valid_cmd(init):
r = Notifications.parse('/rina notify "hello world" 20 30')
assert r == '... | 26.16 | 69 | 0.679664 | 200 | 1,308 | 4.265 | 0.27 | 0.073857 | 0.084408 | 0.112544 | 0.499414 | 0.297773 | 0.247362 | 0.192263 | 0.192263 | 0 | 0 | 0.04901 | 0.188838 | 1,308 | 49 | 70 | 26.693878 | 0.754948 | 0 | 0 | 0.083333 | 0 | 0 | 0.228593 | 0.019878 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.277778 | false | 0 | 0.083333 | 0 | 0.388889 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5577f9457fbf954145d7e3da543eb19147d32f48 | 1,906 | py | Python | parsec/commands/utils/cmp.py | simonbray/parsec | c0e123cbf7cb1289ec722357a6262f716575e4d9 | [
"Apache-2.0"
] | null | null | null | parsec/commands/utils/cmp.py | simonbray/parsec | c0e123cbf7cb1289ec722357a6262f716575e4d9 | [
"Apache-2.0"
] | null | null | null | parsec/commands/utils/cmp.py | simonbray/parsec | c0e123cbf7cb1289ec722357a6262f716575e4d9 | [
"Apache-2.0"
] | null | null | null | import sys
import click
from parsec.cli import pass_context
from parsec.decorators import custom_exception
@click.command('cmp')
@click.argument("method", type=str, required=True)
@click.argument("cmp_with", type=str, required=True)
@pass_context
@custom_exception
def cli(ctx, method, cmp_with):
"""comparison too... | 35.296296 | 118 | 0.586569 | 289 | 1,906 | 3.795848 | 0.262976 | 0.108478 | 0.120328 | 0.054695 | 0.412033 | 0.412033 | 0.373747 | 0.373747 | 0.373747 | 0.373747 | 0 | 0.016511 | 0.26915 | 1,906 | 53 | 119 | 35.962264 | 0.770998 | 0.242392 | 0 | 0.294118 | 0 | 0 | 0.067664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.058824 | 0.117647 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
558c760ac159ce21d6980ad5686505055f626153 | 295 | py | Python | cellphonedb/tools/app.py | BioTuring-Notebooks/CellphoneDB | 9ab48d8888f11259bb3030c8d149d7bc7cdaf6e1 | [
"MIT"
] | 278 | 2018-10-03T22:12:09.000Z | 2022-03-28T15:33:17.000Z | cellphonedb/tools/app.py | BioTuring-Notebooks/CellphoneDB | 9ab48d8888f11259bb3030c8d149d7bc7cdaf6e1 | [
"MIT"
] | 263 | 2018-11-16T14:41:31.000Z | 2022-03-30T08:38:26.000Z | cellphonedb/tools/app.py | BioTuring-Notebooks/CellphoneDB | 9ab48d8888f11259bb3030c8d149d7bc7cdaf6e1 | [
"MIT"
] | 106 | 2018-10-18T15:11:57.000Z | 2022-03-14T19:50:27.000Z | import os
from flask import Flask
this_file_dir = os.path.dirname(os.path.realpath(__file__))
data_dir = '{}/data'.format(this_file_dir)
output_dir = '{}/out'.format(this_file_dir)
downloads_dir = '{}/downloads'.format(data_dir)
def create_app():
app = Flask(__name__)
return app
| 17.352941 | 59 | 0.722034 | 44 | 295 | 4.409091 | 0.454545 | 0.123711 | 0.170103 | 0.175258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 295 | 16 | 60 | 18.4375 | 0.760784 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55915e0639b2507e4ca0b5eec193db07dfb5294c | 8,347 | py | Python | scripts/GEM/dtest.py | kmcquinn/match | e92a23de28eab13b6b01c5d8fc48086bc1551bd7 | [
"MIT"
] | null | null | null | scripts/GEM/dtest.py | kmcquinn/match | e92a23de28eab13b6b01c5d8fc48086bc1551bd7 | [
"MIT"
] | null | null | null | scripts/GEM/dtest.py | kmcquinn/match | e92a23de28eab13b6b01c5d8fc48086bc1551bd7 | [
"MIT"
] | null | null | null | import subprocess as sp
import sys
from shutil import copyfile
import re
import subprocess as sp
import multiprocessing as mp
## HOW TO RUN DTEST ##
# python dtest.py [name of galaxy directory] -phot=[path to phot file from galaxy's metals_proc directory] -pars=[path to parameter file from metals_proc] -fake=[path to ... | 31.379699 | 222 | 0.665988 | 1,293 | 8,347 | 4.266048 | 0.246713 | 0.011603 | 0.017404 | 0.011421 | 0.201233 | 0.138325 | 0.112944 | 0.08702 | 0.083394 | 0.06599 | 0 | 0.013353 | 0.20151 | 8,347 | 265 | 223 | 31.498113 | 0.814254 | 0.351384 | 0 | 0.17033 | 0 | 0 | 0.133321 | 0.008601 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032967 | null | null | 0.027473 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55a3ca5847fa329110ad5b10100bfdaece305784 | 395 | py | Python | tools/newLine.py | Aeocp/Traffic_SpeedDetect_YOLOX | c1c4e7bf4515394d36610456bd34ac7d32021bdc | [
"Apache-2.0"
] | null | null | null | tools/newLine.py | Aeocp/Traffic_SpeedDetect_YOLOX | c1c4e7bf4515394d36610456bd34ac7d32021bdc | [
"Apache-2.0"
] | null | null | null | tools/newLine.py | Aeocp/Traffic_SpeedDetect_YOLOX | c1c4e7bf4515394d36610456bd34ac7d32021bdc | [
"Apache-2.0"
] | null | null | null | def createLineSpeed():
x1 = []
y1 = []
x2 = []
y2 = []
print("Enter the beginning and ending of two line (0-1) (xb1,yb1,xe1,ye1,xb2,yb2,xe2,ye2)")
Bp = input("Enter line position :").split(",")
x1.append((Bp[0]))
y1.append((Bp[1]))
x1.append((Bp[2]))
y1.append((Bp[3]))
x2.append((Bp[4]))
y2.appe... | 23.235294 | 93 | 0.564557 | 68 | 395 | 3.279412 | 0.544118 | 0.286996 | 0.053812 | 0.071749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104615 | 0.177215 | 395 | 16 | 94 | 24.6875 | 0.581538 | 0 | 0 | 0 | 0 | 0.0625 | 0.263291 | 0.083544 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55aa7f0ea3530df9a6dc0d1ea201ca4e0ffa692d | 2,410 | py | Python | test/unit/dependencies/test_email.py | robzzy/users-service | 78d4fb4935e006be76e96e9b4be65e06ea1d0394 | [
"MIT"
] | null | null | null | test/unit/dependencies/test_email.py | robzzy/users-service | 78d4fb4935e006be76e96e9b4be65e06ea1d0394 | [
"MIT"
] | null | null | null | test/unit/dependencies/test_email.py | robzzy/users-service | 78d4fb4935e006be76e96e9b4be65e06ea1d0394 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from smtplib import SMTPException
import pytest
from mock import patch, call
from nameko import config
from users.dependencies.email import EmailDependency
from users.exceptions import EmailSendError
class TestEmailDependency:
@config.patch({
"MAIL_HOST": "163.com",
"EM... | 32.133333 | 78 | 0.649793 | 258 | 2,410 | 5.794574 | 0.27907 | 0.058863 | 0.056187 | 0.038127 | 0.634114 | 0.634114 | 0.634114 | 0.634114 | 0.57592 | 0.57592 | 0 | 0.007065 | 0.236515 | 2,410 | 74 | 79 | 32.567568 | 0.805435 | 0.008714 | 0 | 0.581818 | 0 | 0 | 0.27566 | 0.05111 | 0 | 0 | 0 | 0 | 0.036364 | 1 | 0.054545 | false | 0.054545 | 0.109091 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
55baff71c3488b766e66d065958f91a619b09ca8 | 4,051 | py | Python | home_application/celery_tasks.py | wsc-sky/blueKing-demo1 | 394035c2b67e4e69ac2eed738567b234315624dd | [
"Apache-2.0"
] | null | null | null | home_application/celery_tasks.py | wsc-sky/blueKing-demo1 | 394035c2b67e4e69ac2eed738567b234315624dd | [
"Apache-2.0"
] | null | null | null | home_application/celery_tasks.py | wsc-sky/blueKing-demo1 | 394035c2b67e4e69ac2eed738567b234315624dd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obt... | 31.897638 | 141 | 0.643298 | 533 | 4,051 | 4.731707 | 0.405253 | 0.021412 | 0.038858 | 0.025377 | 0.180412 | 0.180412 | 0.156622 | 0.143933 | 0.13521 | 0.100714 | 0 | 0.017679 | 0.232041 | 4,051 | 127 | 142 | 31.897638 | 0.792993 | 0.010615 | 0 | 0.134328 | 0 | 0 | 0.148414 | 0.029079 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.119403 | null | null | 0.074627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55bc93f1f28a4d3cfdbf2ceae0689c9e65f3b7d4 | 10,760 | py | Python | cmdb/models.py | proffalken/edison | 5bfa941f8876cb8698cd8009c4514bc03d24c109 | [
"BSD-3-Clause"
] | 3 | 2015-11-05T07:29:00.000Z | 2021-06-17T23:44:17.000Z | cmdb/models.py | proffalken/edison | 5bfa941f8876cb8698cd8009c4514bc03d24c109 | [
"BSD-3-Clause"
] | 1 | 2016-05-04T10:54:48.000Z | 2016-05-04T10:54:56.000Z | cmdb/models.py | proffalken/edison | 5bfa941f8876cb8698cd8009c4514bc03d24c109 | [
"BSD-3-Clause"
] | null | null | null | # This file is part of the Edison Project.
# Please refer to the LICENSE document that was supplied with this software for information on how it can be used.
from django.db import models
from django.contrib.auth.models import User
# These are the models required for the basic CMDB
# First, Define our list of countrie... | 34.15873 | 205 | 0.683922 | 1,211 | 10,760 | 5.925681 | 0.232865 | 0.057692 | 0.10786 | 0.143813 | 0.397854 | 0.295847 | 0.258361 | 0.199136 | 0.099498 | 0.070234 | 0 | 0.013533 | 0.210223 | 10,760 | 314 | 206 | 34.267516 | 0.830901 | 0.099907 | 0 | 0.283784 | 0 | 0.004505 | 0.114875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009009 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55bd1d4fded28d8085a832ba511d6424a4a7da93 | 520 | py | Python | mistral/actions/openstack/evacuate_vm_action.py | rocky11030/mistral | fe18ebda9441b513bae9741b7b99db5556ccbbba | [
"Apache-2.0"
] | null | null | null | mistral/actions/openstack/evacuate_vm_action.py | rocky11030/mistral | fe18ebda9441b513bae9741b7b99db5556ccbbba | [
"Apache-2.0"
] | null | null | null | mistral/actions/openstack/evacuate_vm_action.py | rocky11030/mistral | fe18ebda9441b513bae9741b7b99db5556ccbbba | [
"Apache-2.0"
] | null | null | null | from mistral.actions.openstack.actions import NovaAction
from mistral.workflow.utils import Result
class EvacuateVmAction(NovaAction):
def __init__(self, uuid, on_shared_storage, evacuate):
self._uuid = uuid
self._on_shared_storage = on_shared_storage
self._evacuate = evacuate
def ru... | 28.888889 | 78 | 0.671154 | 59 | 520 | 5.542373 | 0.40678 | 0.122324 | 0.229358 | 0.097859 | 0.140673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257692 | 520 | 17 | 79 | 30.588235 | 0.84715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e94cd8ba0ce8f1986e29d5fbd0f9fc28aa53efe2 | 1,107 | py | Python | bluebottle/initiatives/migrations/0014_auto_20190628_1656.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/initiatives/migrations/0014_auto_20190628_1656.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/initiatives/migrations/0014_auto_20190628_1656.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-06-28 14:56
from __future__ import unicode_literals
import bluebottle.fsm
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migra... | 36.9 | 216 | 0.674797 | 128 | 1,107 | 5.65625 | 0.5625 | 0.033149 | 0.078729 | 0.060773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040223 | 0.191509 | 1,107 | 29 | 217 | 38.172414 | 0.768715 | 0.062331 | 0 | 0.181818 | 1 | 0 | 0.194203 | 0.049275 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.227273 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e94e873d3bb4eb4867e34449de00c902229dd1fc | 230 | py | Python | CodeWars/8 Kyu/A wolf in sheep's clothing.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | CodeWars/8 Kyu/A wolf in sheep's clothing.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | CodeWars/8 Kyu/A wolf in sheep's clothing.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | def warn_the_sheep(queue):
if queue[-1]=="wolf":
return 'Pls go away and stop eating my sheep'
else:
return "Oi! Sheep number "+str(len(queue)-queue.index("wolf")-1)+"! You are about to be eaten by a wolf!" | 46 | 113 | 0.630435 | 39 | 230 | 3.666667 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.221739 | 230 | 5 | 113 | 46 | 0.78771 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e94f53e0039a48e111b4fb0c22bf2408d4135ac0 | 216 | py | Python | tests/utils.py | marselester/lenddo | 11be31ac5f508a9a99466ec16bfd9a9969473113 | [
"MIT"
] | null | null | null | tests/utils.py | marselester/lenddo | 11be31ac5f508a9a99466ec16bfd9a9969473113 | [
"MIT"
] | null | null | null | tests/utils.py | marselester/lenddo | 11be31ac5f508a9a99466ec16bfd9a9969473113 | [
"MIT"
] | null | null | null | import os
import json
TEST_DIR = os.path.dirname(__file__)
def json_from_file(filename):
path_to_file = os.path.join(TEST_DIR, 'json', filename)
with open(path_to_file) as fh:
return json.load(fh)
| 19.636364 | 59 | 0.712963 | 36 | 216 | 3.944444 | 0.527778 | 0.098592 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180556 | 216 | 10 | 60 | 21.6 | 0.80226 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e95630ffb3dee010a31caef3cb45145a0790a149 | 738 | py | Python | schemas/response/park_response_schema.py | borko81/parking_system_with_flask | 0ff10422cd1892bcb8c4c6958a159b08c1da919b | [
"MIT"
] | 1 | 2022-01-14T15:31:11.000Z | 2022-01-14T15:31:11.000Z | schemas/response/park_response_schema.py | borko81/parking_system_with_flask | 0ff10422cd1892bcb8c4c6958a159b08c1da919b | [
"MIT"
] | 5 | 2021-12-03T13:27:44.000Z | 2021-12-05T11:46:08.000Z | schemas/response/park_response_schema.py | borko81/parking_system_with_flask | 0ff10422cd1892bcb8c4c6958a159b08c1da919b | [
"MIT"
] | null | null | null | from marshmallow import fields
from schemas.request.park_request_schema import ParkRequestSchema
from schemas.response.transaction_response_schema import TransactionsSchema
class ParkResponseSchema(ParkRequestSchema):
id = fields.Integer()
card = fields.String()
income = fields.String()
outcome = fie... | 28.384615 | 75 | 0.730352 | 77 | 738 | 6.909091 | 0.376623 | 0.135338 | 0.112782 | 0.120301 | 0.511278 | 0.511278 | 0.511278 | 0.511278 | 0.511278 | 0.511278 | 0 | 0 | 0.172087 | 738 | 25 | 76 | 29.52 | 0.870704 | 0 | 0 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e9586e3dd3539547ebe55e243faf63911c841ec5 | 445 | py | Python | Search/hash_tables.py | anand722000/algo_ds_101 | b3e25ce2b2e47e53024f8d349232b04de2837ce3 | [
"MIT"
] | 175 | 2019-12-08T19:48:20.000Z | 2022-03-24T07:38:08.000Z | Search/hash_tables.py | anand722000/algo_ds_101 | b3e25ce2b2e47e53024f8d349232b04de2837ce3 | [
"MIT"
] | 40 | 2019-12-07T08:11:41.000Z | 2020-10-09T08:11:22.000Z | Search/hash_tables.py | anand722000/algo_ds_101 | b3e25ce2b2e47e53024f8d349232b04de2837ce3 | [
"MIT"
] | 95 | 2019-12-07T06:25:31.000Z | 2022-03-03T20:12:45.000Z | #!/bin/python3
import math
import os
import random
import re
import sys
def flavors(m,a):
prices = {}
for idx, p in enumerate(a):
if m-p in prices:
return prices[m-p], idx
prices[p] = idx
return None
t = int(input().strip())
for a0 in range(t):
m = int(input().strip())
... | 18.541667 | 50 | 0.557303 | 72 | 445 | 3.444444 | 0.486111 | 0.129032 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024615 | 0.269663 | 445 | 23 | 51 | 19.347826 | 0.738462 | 0.029213 | 0 | 0 | 0 | 0 | 0.002326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0 | 0.421053 | 0.052632 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e96177d568f972c0396bda415e7751e4d759070a | 1,276 | py | Python | notebooks/__code/mcp_chips_corrector/__init__.py | mabrahamdevops/python_notebooks | 6d5e7383b60cc7fd476f6e85ab93e239c9c32330 | [
"BSD-3-Clause"
] | null | null | null | notebooks/__code/mcp_chips_corrector/__init__.py | mabrahamdevops/python_notebooks | 6d5e7383b60cc7fd476f6e85ab93e239c9c32330 | [
"BSD-3-Clause"
] | null | null | null | notebooks/__code/mcp_chips_corrector/__init__.py | mabrahamdevops/python_notebooks | 6d5e7383b60cc7fd476f6e85ab93e239c9c32330 | [
"BSD-3-Clause"
] | null | null | null | from qtpy.QtGui import QColor
CHIP_CORRECTION = {'low': {1: {'xoffset': 0,
'yoffset': 0},
2: {'xoffset': 2,
'yoffset': 0},
3: {'xoffset': 0,
'yoffset': 3},
... | 32.717949 | 47 | 0.312696 | 101 | 1,276 | 3.792079 | 0.386139 | 0.083551 | 0.156658 | 0.083551 | 0.360313 | 0.255875 | 0.130548 | 0 | 0 | 0 | 0 | 0.11449 | 0.561912 | 1,276 | 38 | 48 | 33.578947 | 0.570662 | 0.003919 | 0 | 0.30303 | 0 | 0 | 0.140268 | 0.018913 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e962d3218816f411f9f74250485c75a2cbb837d2 | 242 | py | Python | ex010.py | pachecora/CursoPython | d3e7d2950133c290075aa3866b0cd7c8a24e3184 | [
"MIT"
] | 1 | 2021-02-18T21:12:29.000Z | 2021-02-18T21:12:29.000Z | ex010.py | pachecora/CursoPython | d3e7d2950133c290075aa3866b0cd7c8a24e3184 | [
"MIT"
] | null | null | null | ex010.py | pachecora/CursoPython | d3e7d2950133c290075aa3866b0cd7c8a24e3184 | [
"MIT"
] | null | null | null | # Conversor de moedas
carteira = float(input("Quanto dinheiro você tem na carteira?R$ "))
preço_dolar = 5.16
valor_convertido = carteira / preço_dolar
print(f"A quantia de R${carteira:.2f} em moeda americana dá US${valor_convertido:.2f}")
| 26.888889 | 87 | 0.747934 | 38 | 242 | 4.657895 | 0.736842 | 0.112994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023923 | 0.136364 | 242 | 8 | 88 | 30.25 | 0.822967 | 0.078512 | 0 | 0 | 0 | 0 | 0.529412 | 0.113122 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e96733f3a5f12180f2b97370c03a561d992c7ab4 | 1,052 | py | Python | habitat/datasets/registration.py | dhruvbatra/habitat-api | 00a0d51c714c3cc64e0214390daeff9ab390f289 | [
"MIT"
] | 2 | 2020-03-03T02:37:00.000Z | 2021-07-09T08:32:07.000Z | habitat/datasets/registration.py | dhruvbatra/habitat-api | 00a0d51c714c3cc64e0214390daeff9ab390f289 | [
"MIT"
] | null | null | null | habitat/datasets/registration.py | dhruvbatra/habitat-api | 00a0d51c714c3cc64e0214390daeff9ab390f289 | [
"MIT"
] | 2 | 2019-06-18T01:46:54.000Z | 2019-06-25T18:08:57.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from habitat.core.registry import Registry, Spec
class DatasetSpec(Spec):
def __init__(self, id_dataset, entry_poi... | 26.974359 | 79 | 0.693916 | 132 | 1,052 | 5.287879 | 0.439394 | 0.167622 | 0.12894 | 0.054441 | 0.08596 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001211 | 0.214829 | 1,052 | 38 | 80 | 27.684211 | 0.843826 | 0.180608 | 0 | 0 | 0 | 0 | 0.061772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0.1 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e96839e90fbad19d6f5998c7d3db894b2d04341a | 2,074 | py | Python | app/routers/login.py | JRubics/fastapi-boilerplate | 62abe978d937e162dec1f3ecc5c7cb5869a7e81e | [
"BSD-3-Clause"
] | null | null | null | app/routers/login.py | JRubics/fastapi-boilerplate | 62abe978d937e162dec1f3ecc5c7cb5869a7e81e | [
"BSD-3-Clause"
] | null | null | null | app/routers/login.py | JRubics/fastapi-boilerplate | 62abe978d937e162dec1f3ecc5c7cb5869a7e81e | [
"BSD-3-Clause"
] | null | null | null | import jwt
from passlib.context import CryptContext
from fastapi import APIRouter, Depends, HTTPException, status
from fastapi.security import OAuth2PasswordRequestForm
from datetime import datetime, timedelta
from sqlalchemy.orm import Session
from .. import crud, schemas, settings
from ..database import SessionL... | 29.211268 | 97 | 0.720829 | 248 | 2,074 | 5.822581 | 0.370968 | 0.060942 | 0.026316 | 0.037396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004142 | 0.185149 | 2,074 | 70 | 98 | 29.628571 | 0.850296 | 0 | 0 | 0.078431 | 0 | 0 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0.215686 | 0.156863 | 0.039216 | 0.392157 | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e968babe63037af0e4a441c9fdc5fc39d39891f4 | 15,407 | py | Python | extensions/uarm.py | fdraeger/uArmSwiftPro_InkscapePlugin | 3d4a3e7b69ec8245bd60a3ae982711d35b67a108 | [
"MIT"
] | 3 | 2017-07-01T16:27:53.000Z | 2017-07-06T09:11:17.000Z | extensions/uarm.py | fdraeger/uArmSwiftPro_InkscapePlugin | 3d4a3e7b69ec8245bd60a3ae982711d35b67a108 | [
"MIT"
] | null | null | null | extensions/uarm.py | fdraeger/uArmSwiftPro_InkscapePlugin | 3d4a3e7b69ec8245bd60a3ae982711d35b67a108 | [
"MIT"
] | 1 | 2021-10-10T14:56:53.000Z | 2021-10-10T14:56:53.000Z | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
MIT License
Copyright (c) 2017 Frank Dräger
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the r... | 45.718101 | 214 | 0.660414 | 2,197 | 15,407 | 4.573509 | 0.214838 | 0.027369 | 0.045382 | 0.059713 | 0.403861 | 0.328822 | 0.284435 | 0.24791 | 0.244029 | 0.237759 | 0 | 0.045182 | 0.156747 | 15,407 | 336 | 215 | 45.854167 | 0.728217 | 0.078601 | 0 | 0.07732 | 0 | 0.025773 | 0.33917 | 0.045623 | 0 | 0 | 0 | 0.002976 | 0 | 0 | null | null | 0 | 0.025773 | null | null | 0.015464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e96d8dd355e0020dac95ece84ce02ca72ed32850 | 3,169 | py | Python | examples/counters.py | justinfay/dbkit | 2aef6376a60965d7820c91692046f4bcf7d43640 | [
"MIT"
] | 4 | 2016-02-08T05:43:39.000Z | 2020-08-25T21:37:55.000Z | examples/counters.py | justinfay/dbkit | 2aef6376a60965d7820c91692046f4bcf7d43640 | [
"MIT"
] | 8 | 2015-04-24T13:39:42.000Z | 2016-04-07T01:58:53.000Z | examples/counters.py | justinfay/dbkit | 2aef6376a60965d7820c91692046f4bcf7d43640 | [
"MIT"
] | null | null | null | """
A counter management tool.
"""
from contextlib import closing
from os import path
import sqlite3
import sys
from dbkit import (
connect,
execute,
query,
query_column,
query_value,
transactional,
)
def get_counter(counter):
"""
Get the value of a counter.
"""
print query_v... | 23.301471 | 75 | 0.60934 | 401 | 3,169 | 4.715711 | 0.329177 | 0.033316 | 0.019038 | 0.02221 | 0.105235 | 0.053411 | 0.042306 | 0.042306 | 0.042306 | 0.042306 | 0 | 0.007315 | 0.266646 | 3,169 | 135 | 76 | 23.474074 | 0.806368 | 0.121489 | 0 | 0.142857 | 0 | 0 | 0.144444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e96e605f29c137357bfd255ce2ad70cc20ed38dd | 389 | py | Python | src/3rdparty/pythonqt/examples/PyCPPWrapperExample/example.py | aliakseis/FVD | 8d549834fcf9e8fdd5ebecdcaf9410074876b2ed | [
"MIT"
] | null | null | null | src/3rdparty/pythonqt/examples/PyCPPWrapperExample/example.py | aliakseis/FVD | 8d549834fcf9e8fdd5ebecdcaf9410074876b2ed | [
"MIT"
] | null | null | null | src/3rdparty/pythonqt/examples/PyCPPWrapperExample/example.py | aliakseis/FVD | 8d549834fcf9e8fdd5ebecdcaf9410074876b2ed | [
"MIT"
] | null | null | null | from PythonQt.example import *
print("CustomObject wrapped by decorators")
# create a new object
custom = CustomObject("John","Doe")
# print the object (to see how it is wrapped)
print (custom)
# print the methods available
print (dir(custom))
# set a name
custom.setFirstName("Mike")
custom.setLastName("Michels")
... | 19.45 | 52 | 0.724936 | 52 | 389 | 5.423077 | 0.653846 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1491 | 389 | 19 | 53 | 20.473684 | 0.851964 | 0.29563 | 0 | 0 | 0 | 0 | 0.197761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e96f673483f2fd9a0289c184af8cd9fc6c68e9ba | 992 | py | Python | 155-min-stack/155-min-stack.py | Dawit-Getachew/A2SV_Practice | 2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61 | [
"MIT"
] | null | null | null | 155-min-stack/155-min-stack.py | Dawit-Getachew/A2SV_Practice | 2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61 | [
"MIT"
] | null | null | null | 155-min-stack/155-min-stack.py | Dawit-Getachew/A2SV_Practice | 2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61 | [
"MIT"
] | null | null | null | class MinStack:
def __init__(self):
self.L = []
self.min_stack = []
def push(self, val: int) -> None:
self.L.append(val)
if not self.min_stack:
self.min_stack.append(val)
else:
if val <= self.min_stack[-1]:
self.min_stack.... | 23.619048 | 63 | 0.481855 | 128 | 992 | 3.609375 | 0.28125 | 0.151515 | 0.25974 | 0.084416 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010084 | 0.400202 | 992 | 42 | 64 | 23.619048 | 0.766387 | 0.146169 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e97803961ecd53cf742a37e745905abd011e7e37 | 1,303 | py | Python | openFlow/generateInstructions.py | wsharif/thesis | 96a9bd6c86ed027c3eeee231b2eae1c14394d728 | [
"MIT"
] | null | null | null | openFlow/generateInstructions.py | wsharif/thesis | 96a9bd6c86ed027c3eeee231b2eae1c14394d728 | [
"MIT"
] | null | null | null | openFlow/generateInstructions.py | wsharif/thesis | 96a9bd6c86ed027c3eeee231b2eae1c14394d728 | [
"MIT"
] | null | null | null | from generateActions import generateActions
from os import urandom
from random import choice, randint, shuffle
from struct import Struct
def generateInstructions(maxLength):
instructions = []
while True:
instructionLength = randint(24, maxLength - len(''.join(instructions)))
type = choice([1, 2, 3, 4, 5, ... | 24.584906 | 97 | 0.685342 | 147 | 1,303 | 6.07483 | 0.333333 | 0.071669 | 0.06383 | 0.044793 | 0.071669 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037178 | 0.194935 | 1,303 | 53 | 98 | 24.584906 | 0.814109 | 0 | 0 | 0.102564 | 1 | 0 | 0.004601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.102564 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e97e6e458cc836ea980c06e00b05944dd7bc369f | 641 | py | Python | fix_pod_install.py | cubie-api/cubie-sdk-ios | 5d9fba13d0c43f340698855f14cdc00fa58367f6 | [
"Apache-2.0"
] | 1 | 2020-07-31T04:29:09.000Z | 2020-07-31T04:29:09.000Z | fix_pod_install.py | cubie-api/cubie-sdk-ios | 5d9fba13d0c43f340698855f14cdc00fa58367f6 | [
"Apache-2.0"
] | null | null | null | fix_pod_install.py | cubie-api/cubie-sdk-ios | 5d9fba13d0c43f340698855f14cdc00fa58367f6 | [
"Apache-2.0"
] | null | null | null | from xml.dom.minidom import parse, parseString
import os
path = os.path.join(os.path.dirname(__file__), 'sdk.xcodeproj', 'project.pbxproj')
dom = parse(path)
ref= [e.previousSibling.previousSibling.childNodes[0].data \
for e in dom.getElementsByTagName('dict')[3:] \
if e.toxml().find('libPods.a') != -1][0]
refref= ... | 42.733333 | 108 | 0.692668 | 95 | 641 | 4.631579 | 0.473684 | 0.040909 | 0.068182 | 0.186364 | 0.418182 | 0.418182 | 0.418182 | 0.418182 | 0.418182 | 0.418182 | 0 | 0.017331 | 0.099844 | 641 | 14 | 109 | 45.785714 | 0.745234 | 0 | 0 | 0.166667 | 0 | 0 | 0.106084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9800bc138159cb81fc1b3a6e89c241c528bda6a | 2,090 | py | Python | myexample/myapp/views.py | jorrete/django-cache-helpers | ceeecba478326a333d8021721e58321b43cfd400 | [
"MIT"
] | 1 | 2020-05-19T12:57:24.000Z | 2020-05-19T12:57:24.000Z | myexample/myapp/views.py | jorrete/django-cache-helpers | ceeecba478326a333d8021721e58321b43cfd400 | [
"MIT"
] | null | null | null | myexample/myapp/views.py | jorrete/django-cache-helpers | ceeecba478326a333d8021721e58321b43cfd400 | [
"MIT"
] | null | null | null | import time
from django.views.generic import TemplateView
from django.utils.decorators import method_decorator
from django.shortcuts import render
from django.views.decorators.cache import never_cache
from cache_helpers.decorators import cache_page_forever, cache_result
from cache_helpers.views import CachePageMixin
... | 26.125 | 69 | 0.661722 | 255 | 2,090 | 5.235294 | 0.290196 | 0.052434 | 0.056929 | 0.049438 | 0.297378 | 0.235955 | 0.235955 | 0.235955 | 0.203745 | 0.203745 | 0 | 0.005491 | 0.215789 | 2,090 | 79 | 70 | 26.455696 | 0.80903 | 0.015311 | 0 | 0.271186 | 0 | 0 | 0.111868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0 | 0.135593 | 0.033898 | 0.525424 | 0.101695 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e98249d95b320cb88f791b762a20ce230de0d3c6 | 1,462 | py | Python | test_blog/blog/migrations/0002_auto_20201027_2200.py | VsevolodOkhrimenko/blog-test | 5fc8a4335bccce941c9ee6470c70fd9daee2b687 | [
"MIT"
] | null | null | null | test_blog/blog/migrations/0002_auto_20201027_2200.py | VsevolodOkhrimenko/blog-test | 5fc8a4335bccce941c9ee6470c70fd9daee2b687 | [
"MIT"
] | null | null | null | test_blog/blog/migrations/0002_auto_20201027_2200.py | VsevolodOkhrimenko/blog-test | 5fc8a4335bccce941c9ee6470c70fd9daee2b687 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.10 on 2020-10-27 22:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('blo... | 33.227273 | 137 | 0.627223 | 161 | 1,462 | 5.52795 | 0.310559 | 0.067416 | 0.089888 | 0.117978 | 0.537079 | 0.537079 | 0.497753 | 0.342697 | 0.342697 | 0.342697 | 0 | 0.018382 | 0.255814 | 1,462 | 43 | 138 | 34 | 0.799632 | 0.031464 | 0 | 0.444444 | 1 | 0 | 0.080622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e983d086ca3dde71520ac766ebc9c6b19901596e | 836 | py | Python | DQMOffline/Trigger/python/DiDispStaMuonMonitor_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | DQMOffline/Trigger/python/DiDispStaMuonMonitor_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | DQMOffline/Trigger/python/DiDispStaMuonMonitor_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:16:05.000Z | 2021-11-30T16:16:05.000Z | import FWCore.ParameterSet.Config as cms
from DQMOffline.Trigger.DiDispStaMuonMonitor_cfi import hltDiDispStaMuonMonitoring
hltDiDispStaMuonCosmicMonitoring = hltDiDispStaMuonMonitoring.clone(
FolderName = 'HLT/EXO/DiDispStaMuon/DoubleL2Mu23NoVtx_2Cha_CosmicSeed/',
numGenericTriggerEventPSet = dict(hltPaths ... | 39.809524 | 116 | 0.842105 | 61 | 836 | 11.262295 | 0.508197 | 0.16885 | 0.11936 | 0.128093 | 0.174672 | 0.174672 | 0 | 0 | 0 | 0 | 0 | 0.036842 | 0.090909 | 836 | 20 | 117 | 41.8 | 0.867105 | 0.035885 | 0 | 0 | 0 | 0 | 0.251244 | 0.251244 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e984a169dd882219f79b80ecd4071a24b77c0fd6 | 1,233 | py | Python | examples/print_users_from_same_organization_or_country/main.py | ericbrandwein/CodeforcesAPI | 12ae641910a3308033584dc518bb2fc0173e56f3 | [
"MIT"
] | 26 | 2015-06-21T16:19:44.000Z | 2021-11-15T12:32:25.000Z | examples/print_users_from_same_organization_or_country/main.py | ericbrandwein/CodeforcesAPI | 12ae641910a3308033584dc518bb2fc0173e56f3 | [
"MIT"
] | 5 | 2015-03-10T06:00:52.000Z | 2020-01-18T12:59:25.000Z | examples/print_users_from_same_organization_or_country/main.py | ericbrandwein/CodeforcesAPI | 12ae641910a3308033584dc518bb2fc0173e56f3 | [
"MIT"
] | 12 | 2015-04-24T17:16:50.000Z | 2022-01-04T14:21:25.000Z | #!/usr/bin/env python3
from codeforces import CodeforcesAPI
def get_all_user_handles(ranklist_rows):
return set(m.handle for row in ranklist_rows for m in row.party.members)
def filter_by_organization(ranklist_row, handle_to_user_mapping, organization):
return (r for r in ranklist_row if handle_to_user_map... | 31.615385 | 118 | 0.725061 | 180 | 1,233 | 4.711111 | 0.283333 | 0.099057 | 0.056604 | 0.089623 | 0.462264 | 0.424528 | 0.285377 | 0.285377 | 0.285377 | 0.285377 | 0 | 0.010567 | 0.155718 | 1,233 | 38 | 119 | 32.447368 | 0.804035 | 0.017032 | 0 | 0.095238 | 0 | 0 | 0.099092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.047619 | 0.142857 | 0.380952 | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
e9859ff3cfacaa5b46fee18cb9eedc7a51ebf4fc | 1,023 | py | Python | project-management-env/backend/project_budget/migrations/0002_alter_resourcespending_budget_and_more.py | paolo-demagistris-polito/pm-lab-polito-EnvForDigitalProjectDelivery | 07e121a6613398bf3a8fbb9ec6831720bfcf2c33 | [
"MIT"
] | 1 | 2022-03-03T14:22:47.000Z | 2022-03-03T14:22:47.000Z | project-management-env/backend/project_budget/migrations/0002_alter_resourcespending_budget_and_more.py | paolo-demagistris-polito/pm-lab-polito-EnvForDigitalProjectDelivery | 07e121a6613398bf3a8fbb9ec6831720bfcf2c33 | [
"MIT"
] | 3 | 2022-01-20T05:22:52.000Z | 2022-01-28T09:34:19.000Z | project-management-env/pm_env/backend/project_budget/migrations/0002_alter_resourcespending_budget_and_more.py | pm-lab-polito/EnvForDigitalProjectDelivery | 0bda402f70160eccb8959ffac3d9baeccce60781 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-05-15 18:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('project_resources', '0001_initial'),
('projects', '0001_initial'),
('project_budget', '0001_initial'),
]... | 31.96875 | 116 | 0.632454 | 102 | 1,023 | 6.215686 | 0.382353 | 0.063091 | 0.088328 | 0.138801 | 0.537855 | 0.537855 | 0.305994 | 0.305994 | 0.305994 | 0.305994 | 0 | 0.034929 | 0.244379 | 1,023 | 31 | 117 | 33 | 0.785252 | 0.043988 | 0 | 0.36 | 1 | 0 | 0.219262 | 0.055328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e98b4a8277c0ddfd799cd8677a49f623681e475a | 1,198 | py | Python | alipay/aop/api/response/AlipayOpenMiniAmpeMobileappBatchqueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayOpenMiniAmpeMobileappBatchqueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayOpenMiniAmpeMobileappBatchqueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.MobileAppInfo import MobileAppInfo
class AlipayOpenMiniAmpeMobileappBatchqueryResponse(AlipayResponse):
def __init__(self):
super(AlipayOpenMiniAmpeMobil... | 36.30303 | 118 | 0.712855 | 136 | 1,198 | 5.882353 | 0.308824 | 0.12375 | 0.17875 | 0.23375 | 0.2325 | 0.1275 | 0 | 0 | 0 | 0 | 0 | 0.001057 | 0.210351 | 1,198 | 32 | 119 | 37.4375 | 0.844609 | 0.035058 | 0 | 0 | 0 | 0 | 0.034662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.130435 | 0.043478 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9912de26335f8988f2d7b95db03b4908729ab38 | 1,215 | py | Python | evaluate_models.py | AndresPMD/Clip_CMR | f9f12afd9cb59bb2305e0bd346e120fbe084c256 | [
"Apache-2.0"
] | 4 | 2021-08-30T08:33:12.000Z | 2022-02-14T09:14:35.000Z | evaluate_models.py | AndresPMD/Clip_CMR | f9f12afd9cb59bb2305e0bd346e120fbe084c256 | [
"Apache-2.0"
] | 1 | 2021-10-12T07:00:53.000Z | 2021-10-12T07:00:53.000Z | evaluate_models.py | AndresPMD/Clip_CMR | f9f12afd9cb59bb2305e0bd346e120fbe084c256 | [
"Apache-2.0"
] | null | null | null | import torch
import evaluation_models
import argparse
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--data_name', default='wiki', help="{coco, f30k, wiki}")
parser.add_argument('--cnn', default='ViT-B/16', help='[RN50, RN101, RN50x4, RN50x16, ViT-B/32, ViT-B/16]')
parser.add_arg... | 43.392857 | 120 | 0.674074 | 159 | 1,215 | 4.974843 | 0.522013 | 0.102402 | 0.193426 | 0.040455 | 0.060683 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030572 | 0.165432 | 1,215 | 27 | 121 | 45 | 0.749507 | 0 | 0 | 0 | 0 | 0.045455 | 0.376132 | 0.031276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e991525b8ede3e0c5337c997bb68888cddd8c859 | 301 | py | Python | game/logs.py | Michael78912/SMNW | da5a7278cf1a14e2af2e9c291a5f53ba21f265e2 | [
"MIT"
] | 1 | 2018-12-11T23:42:57.000Z | 2018-12-11T23:42:57.000Z | game/logs.py | Michael78912/SMNW | da5a7278cf1a14e2af2e9c291a5f53ba21f265e2 | [
"MIT"
] | null | null | null | game/logs.py | Michael78912/SMNW | da5a7278cf1a14e2af2e9c291a5f53ba21f265e2 | [
"MIT"
] | null | null | null | """logs the current running process of SMNW."""
import logging
def init():
logging.basicConfig(level=logging.DEBUG,
filename="SMNW.log",
filemode="w",
format="%(name)s:%(asctime)s -- %(levelname)s -- %(message)s"
)
| 27.363636 | 81 | 0.498339 | 30 | 301 | 5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.352159 | 301 | 10 | 82 | 30.1 | 0.769231 | 0.136213 | 0 | 0 | 0 | 0 | 0.240157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9919e178f3640ef0d5b4cf2d42d45f0a9af2ddf | 1,511 | py | Python | Toolkits/VCS/repology__repology-api/repology/parser/distrowatch.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | Toolkits/VCS/repology__repology-api/repology/parser/distrowatch.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | Toolkits/VCS/repology__repology-api/repology/parser/distrowatch.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | # Copyright (C) 2017 Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# This file is part of repology
#
# repology is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | 30.22 | 115 | 0.626737 | 205 | 1,511 | 4.6 | 0.546341 | 0.015907 | 0.041357 | 0.060445 | 0.161188 | 0.133616 | 0.074231 | 0.074231 | 0 | 0 | 0 | 0.013405 | 0.259431 | 1,511 | 49 | 116 | 30.836735 | 0.829312 | 0.471873 | 0 | 0 | 0 | 0 | 0.104113 | 0.029563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.105263 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e9935ac7b1fe0fd16b2181f2238aac55a682dd3d | 6,652 | py | Python | src/Scripts/config.py | ApexRMS/carmove | 340a20ec253d202227e23a5b1dbecc6b89fc1947 | [
"MIT"
] | null | null | null | src/Scripts/config.py | ApexRMS/carmove | 340a20ec253d202227e23a5b1dbecc6b89fc1947 | [
"MIT"
] | null | null | null | src/Scripts/config.py | ApexRMS/carmove | 340a20ec253d202227e23a5b1dbecc6b89fc1947 | [
"MIT"
] | null | null | null | import os
import sys
from caribouUtils import createDevIDAttr
__author__ = 'Tom'
class Config:
def __init__(self, db, scenarioId):
self.db = db
self.scenarioId = scenarioId
# Lets load up the various runtime parameters needed to run the Movement model script
dsDevelopmentI... | 40.315152 | 123 | 0.674083 | 622 | 6,652 | 7.184887 | 0.300643 | 0.022824 | 0.017901 | 0.034236 | 0.137615 | 0.096218 | 0.074961 | 0.030432 | 0.030432 | 0.030432 | 0 | 0.006158 | 0.243235 | 6,652 | 164 | 124 | 40.560976 | 0.881406 | 0.06374 | 0 | 0.084112 | 0 | 0 | 0.204249 | 0.05408 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028037 | null | null | 0.009346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e999d277e9d1b97c686914a0ff239991577e4cfc | 2,881 | py | Python | gtorch_utils/datasets/generic.py | giussepi/gtorch_utils | 8dfe502b2ef2d7c082354b9f546db5248815af09 | [
"MIT"
] | null | null | null | gtorch_utils/datasets/generic.py | giussepi/gtorch_utils | 8dfe502b2ef2d7c082354b9f546db5248815af09 | [
"MIT"
] | null | null | null | gtorch_utils/datasets/generic.py | giussepi/gtorch_utils | 8dfe502b2ef2d7c082354b9f546db5248815af09 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" gtorch_utils/datasets/generic """
from torch.utils.data import Dataset
from gtorch_utils.constants import DB
# from gutils.numpy_.numpy_ import LabelMatrixManager
# from sklearn.model_selection import train_test_split
class BaseDataset(Dataset):
""" Base dataset template """
def... | 33.5 | 100 | 0.530024 | 288 | 2,881 | 5.107639 | 0.315972 | 0.095173 | 0.053025 | 0.051666 | 0.398368 | 0.39293 | 0.368457 | 0.368457 | 0.368457 | 0.368457 | 0 | 0.004861 | 0.286012 | 2,881 | 85 | 101 | 33.894118 | 0.710258 | 0.59042 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.307692 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e99eed6c5102a31bb5e0f27a0ca6e37849fc4ce2 | 2,355 | py | Python | aston/trace/baseline.py | bovee/Aston | 315871346df72b3e8fcfa9943e8a3519e60299ff | [
"BSD-3-Clause"
] | 13 | 2015-07-16T19:02:50.000Z | 2022-03-29T08:17:51.000Z | aston/trace/baseline.py | larsyunker/Aston | 315871346df72b3e8fcfa9943e8a3519e60299ff | [
"BSD-3-Clause"
] | 13 | 2015-12-16T05:17:35.000Z | 2021-06-07T10:45:53.000Z | aston/trace/baseline.py | larsyunker/Aston | 315871346df72b3e8fcfa9943e8a3519e60299ff | [
"BSD-3-Clause"
] | 6 | 2017-03-24T20:18:26.000Z | 2021-12-01T04:16:59.000Z | import numpy as np
from scipy.stats import gaussian_kde
from scipy.optimize import fmin, brentq
from aston.trace.trace import Trace
from aston.trace.math_traces import savitzkygolay
def base(s, slope_tol='5.0', off_tol='5.0'):
ic = savitzkygolay(s, 5, 3)[0]
slopes = np.diff(ic) / np.diff(s.index)
wind = n... | 41.315789 | 110 | 0.586837 | 406 | 2,355 | 3.302956 | 0.285714 | 0.032811 | 0.022371 | 0.02088 | 0.239374 | 0.198359 | 0.158091 | 0.132737 | 0.034303 | 0.034303 | 0 | 0.031861 | 0.24034 | 2,355 | 56 | 111 | 42.053571 | 0.717719 | 0.100637 | 0 | 0 | 0 | 0 | 0.009488 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.046512 | false | 0 | 0.116279 | 0 | 0.186047 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9a0e29df35b3ffe0a4198b5d598dc524ab45678 | 1,665 | py | Python | proteuslib/edb/tests/test_db_api.py | adam-a-a/proteuslib | d60d9a140b1af51ad667bdc1a9b876231e216303 | [
"BSD-3-Clause-LBNL"
] | null | null | null | proteuslib/edb/tests/test_db_api.py | adam-a-a/proteuslib | d60d9a140b1af51ad667bdc1a9b876231e216303 | [
"BSD-3-Clause-LBNL"
] | null | null | null | proteuslib/edb/tests/test_db_api.py | adam-a-a/proteuslib | d60d9a140b1af51ad667bdc1a9b876231e216303 | [
"BSD-3-Clause-LBNL"
] | null | null | null | ###############################################################################
# ProteusLib Copyright (c) 2021, The Regents of the University of California,
# through Lawrence Berkeley National Laboratory, Oak Ridge National
# Laboratory, National Renewable Energy Laboratory, and National Energy
# Technology Laborator... | 25.227273 | 81 | 0.683483 | 207 | 1,665 | 5.371981 | 0.497585 | 0.058453 | 0.068345 | 0.097122 | 0.205036 | 0.163669 | 0.163669 | 0.163669 | 0.125899 | 0 | 0 | 0.005646 | 0.148949 | 1,665 | 65 | 82 | 25.615385 | 0.779111 | 0.355556 | 0 | 0.305556 | 0 | 0 | 0.112598 | 0.0301 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.138889 | false | 0.083333 | 0.083333 | 0.027778 | 0.25 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e9a2d1f43a7a3d110a52f6bc5399bdefff9dd9a2 | 2,258 | py | Python | qharv/field/sugar.py | Paul-St-Young/harvest_qmcpack | e86e478653642dcb615a893375014fbaca0d9753 | [
"MIT"
] | 2 | 2018-04-04T17:45:36.000Z | 2020-08-13T23:32:01.000Z | qharv/field/sugar.py | Paul-St-Young/harvest_qmcpack | e86e478653642dcb615a893375014fbaca0d9753 | [
"MIT"
] | null | null | null | qharv/field/sugar.py | Paul-St-Young/harvest_qmcpack | e86e478653642dcb615a893375014fbaca0d9753 | [
"MIT"
] | 1 | 2021-11-10T21:49:31.000Z | 2021-11-10T21:49:31.000Z | # Author: Yubo "Paul" Yang
# Email: yubo.paul.yang@gmail.com
# Python candy i.e. decorators
import os
import subprocess as sp
def check_dir_before(mkdir):
def wrapper(dirname):
if not os.path.isdir(dirname):
mkdir(dirname)
return wrapper
@check_dir_before
def mkdir(x):
sp.check_call(['mkdir', '-p', x]... | 27.204819 | 77 | 0.64659 | 307 | 2,258 | 4.638436 | 0.348534 | 0.05618 | 0.039326 | 0.015449 | 0.179775 | 0.129213 | 0.089888 | 0.043539 | 0 | 0 | 0 | 0.005272 | 0.244021 | 2,258 | 82 | 78 | 27.536585 | 0.82894 | 0.154119 | 0 | 0.296875 | 0 | 0 | 0.01226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203125 | false | 0 | 0.078125 | 0 | 0.4375 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9a426ffddc96cff8156c3f0ae174deb24d9e3e7 | 815 | py | Python | reportportal_client/__init__.py | epam/ReportPortal-Python-Client | 6dbacfe14414c75e15bdbbb0a168736fc49afc3a | [
"Apache-2.0"
] | 1 | 2016-09-14T16:42:46.000Z | 2016-09-14T16:42:46.000Z | reportportal_client/__init__.py | epam/ReportPortal-Python-Client | 6dbacfe14414c75e15bdbbb0a168736fc49afc3a | [
"Apache-2.0"
] | null | null | null | reportportal_client/__init__.py | epam/ReportPortal-Python-Client | 6dbacfe14414c75e15bdbbb0a168736fc49afc3a | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2022 https://reportportal.io .
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... | 28.103448 | 72 | 0.759509 | 115 | 815 | 5.33913 | 0.66087 | 0.09772 | 0.042345 | 0.052117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011782 | 0.166871 | 815 | 28 | 73 | 29.107143 | 0.892489 | 0.694479 | 0 | 0 | 0 | 0 | 0.207469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e9adc23ce8cef21901d93bb73e115cf6dd018921 | 1,895 | py | Python | tests/python-playground/max_softmax_epigraph_0.py | marcocannici/scs | 799a4f7daed4294cd98c73df71676195e6c63de4 | [
"MIT"
] | 25 | 2017-06-30T15:31:33.000Z | 2021-04-21T20:12:18.000Z | tests/python-playground/max_softmax_epigraph_0.py | marcocannici/scs | 799a4f7daed4294cd98c73df71676195e6c63de4 | [
"MIT"
] | 34 | 2017-06-07T01:18:17.000Z | 2021-04-24T09:44:00.000Z | tests/python-playground/max_softmax_epigraph_0.py | marcocannici/scs | 799a4f7daed4294cd98c73df71676195e6c63de4 | [
"MIT"
] | 13 | 2017-06-07T01:16:09.000Z | 2021-06-07T09:12:56.000Z | # This is automatically-generated code.
# Uses the jinja2 library for templating.
import cvxpy as cp
import numpy as np
import scipy as sp
# setup
problemID = "max_softmax_epigraph_0"
prob = None
opt_val = None
problemID = problemID + "_epigraph"
# Variable declarations
import scipy.sparse as sps
def norma... | 20.597826 | 82 | 0.614776 | 294 | 1,895 | 3.867347 | 0.391156 | 0.026385 | 0.01759 | 0.024626 | 0.038698 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.221108 | 1,895 | 91 | 83 | 20.824176 | 0.754065 | 0.12876 | 0 | 0 | 1 | 0 | 0.071603 | 0.013464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.075472 | 0 | 0.169811 | 0.113208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9b59157b56029a40755c30597f364eff9ae61b3 | 1,446 | py | Python | src/generic/utils.py | svleeuwen/dont-be-late-appengine | 5c8870e49b7ddbae96696efbe46f54524a0ba325 | [
"MIT"
] | null | null | null | src/generic/utils.py | svleeuwen/dont-be-late-appengine | 5c8870e49b7ddbae96696efbe46f54524a0ba325 | [
"MIT"
] | null | null | null | src/generic/utils.py | svleeuwen/dont-be-late-appengine | 5c8870e49b7ddbae96696efbe46f54524a0ba325 | [
"MIT"
] | null | null | null | import datetime
import re
import unicodedata
import pytz
from dontbelate import settings
MAX_DEEPLINK_LENGTH = 40
def generate_slug(s_in):
s = unicode(s_in)
s = unicodedata.normalize('NFD', s).encode('ascii', 'ignore')
s = re.sub(r'[^a-zA-Z0-9\ \-_]', '', s.lower()) # strip non alphanumeric
s = re... | 24.931034 | 79 | 0.642462 | 204 | 1,446 | 4.411765 | 0.392157 | 0.053333 | 0.037778 | 0.015556 | 0.097778 | 0.097778 | 0.097778 | 0.097778 | 0.097778 | 0 | 0 | 0.00722 | 0.233748 | 1,446 | 58 | 80 | 24.931034 | 0.805054 | 0.253804 | 0 | 0.074074 | 1 | 0 | 0.072206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.185185 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9b6df3fde3a344dedc65c9860b5ab639c68d70f | 1,112 | py | Python | sparkquantum/math/util.py | alfabr90/sparkquantum | e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a | [
"MIT"
] | 2 | 2020-04-07T18:25:03.000Z | 2020-04-07T18:25:21.000Z | sparkquantum/math/util.py | alfabr90/sparkquantum | e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a | [
"MIT"
] | null | null | null | sparkquantum/math/util.py | alfabr90/sparkquantum | e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a | [
"MIT"
] | null | null | null | from pyspark import RDD
from sparkquantum import constants
__all__ = ['is_scalar', 'is_shape']
def is_scalar(obj):
"""Check if an object is a scalar (number), i.e., an int, a float or a complex.
Parameters
----------
obj
Any python object.
Returns
-------
bool
True if a... | 20.218182 | 98 | 0.586331 | 154 | 1,112 | 4.181818 | 0.38961 | 0.023292 | 0.037267 | 0.046584 | 0.142857 | 0.142857 | 0.086957 | 0 | 0 | 0 | 0 | 0.002601 | 0.308453 | 1,112 | 54 | 99 | 20.592593 | 0.83485 | 0.47482 | 0 | 0.25 | 0 | 0 | 0.034765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e9bf78d5c92ca4ff5fdd25138cf6042f82ec5c53 | 1,488 | py | Python | 240_Search-a-2D-Matrix-II.py | Coalin/Daily-LeetCode-Exercise | a064dcdc3a82314be4571d342c4807291a24f69f | [
"MIT"
] | 3 | 2018-07-05T05:51:10.000Z | 2019-05-04T08:35:44.000Z | 240_Search-a-2D-Matrix-II.py | Coalin/Daily-LeetCode-Exercise | a064dcdc3a82314be4571d342c4807291a24f69f | [
"MIT"
] | null | null | null | 240_Search-a-2D-Matrix-II.py | Coalin/Daily-LeetCode-Exercise | a064dcdc3a82314be4571d342c4807291a24f69f | [
"MIT"
] | null | null | null | class Solution:
def searchMatrix(self, matrix, target):
"""
:type matrix: List[List[int]]
:type target: int
:rtype: bool
"""
if not matrix:
return False
if not matrix[0]:
return False
left = up = 0
right = len(m... | 23.619048 | 43 | 0.400538 | 161 | 1,488 | 3.701863 | 0.236025 | 0.110738 | 0.073826 | 0.09396 | 0.496644 | 0.442953 | 0.442953 | 0.442953 | 0.442953 | 0.442953 | 0 | 0.025641 | 0.502016 | 1,488 | 62 | 44 | 24 | 0.778677 | 0.090726 | 0 | 0.475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9c1919b2791c0364f721d39a49080f081751a5e | 15,701 | py | Python | malchive/utilities/superstrings.py | 6un9-h0-Dan/malchive | 1d150430559a307cdfee49d47799c95caea47415 | [
"Apache-2.0"
] | 59 | 2021-01-29T15:58:43.000Z | 2022-02-11T20:15:04.000Z | malchive/utilities/superstrings.py | 6un9-h0-Dan/malchive | 1d150430559a307cdfee49d47799c95caea47415 | [
"Apache-2.0"
] | 1 | 2021-04-09T13:53:47.000Z | 2021-04-09T13:53:47.000Z | malchive/utilities/superstrings.py | 6un9-h0-Dan/malchive | 1d150430559a307cdfee49d47799c95caea47415 | [
"Apache-2.0"
] | 10 | 2021-01-29T19:35:45.000Z | 2021-07-18T21:07:40.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(c) 2021 The MITRE Corporation. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# You may obtain a copy of the License at:
# http://www.apache.org/lice... | 42.093834 | 1,122 | 0.525635 | 2,083 | 15,701 | 3.892943 | 0.235718 | 0.006906 | 0.013565 | 0.016278 | 0.260205 | 0.234184 | 0.189049 | 0.157973 | 0.144654 | 0.144654 | 0 | 0.070701 | 0.318069 | 15,701 | 372 | 1,123 | 42.206989 | 0.686654 | 0.212916 | 0 | 0.132743 | 0 | 0.035398 | 0.289889 | 0.150755 | 0.004425 | 0 | 0 | 0.002688 | 0 | 1 | 0.039823 | false | 0 | 0.030973 | 0 | 0.128319 | 0.017699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9c4213bbccc85378805cba06d49c918bdd24e2a | 4,162 | py | Python | acceptance_tests/features/steps/external_conversation.py | ONSdigital/ras-integration-tests | ac31b8c2e79fec70e1475731edabc5acd54e8874 | [
"MIT"
] | 2 | 2017-11-03T13:10:46.000Z | 2018-01-29T13:12:12.000Z | acceptance_tests/features/steps/external_conversation.py | ONSdigital/rasrm-acceptance-tests | ac31b8c2e79fec70e1475731edabc5acd54e8874 | [
"MIT"
] | 99 | 2018-02-23T10:52:22.000Z | 2021-02-03T11:35:54.000Z | acceptance_tests/features/steps/external_conversation.py | ONSdigital/ras-integration-tests | ac31b8c2e79fec70e1475731edabc5acd54e8874 | [
"MIT"
] | 1 | 2021-04-11T07:55:47.000Z | 2021-04-11T07:55:47.000Z | from behave import given, when, then
from acceptance_tests import browser
from acceptance_tests.features.pages import create_message_internal, external_conversation, inbox_internal, \
internal_conversation_view
from controllers.messages_controller import create_and_close_message_internal_to_external
@given('the ... | 36.831858 | 136 | 0.806103 | 582 | 4,162 | 5.414089 | 0.225086 | 0.088861 | 0.024437 | 0.030149 | 0.382736 | 0.301492 | 0.167883 | 0.090765 | 0.069819 | 0.043796 | 0 | 0.004631 | 0.117972 | 4,162 | 112 | 137 | 37.160714 | 0.853718 | 0.000961 | 0 | 0.027397 | 0 | 0.013699 | 0.31256 | 0.010587 | 0 | 0 | 0 | 0 | 0.219178 | 1 | 0.260274 | false | 0.013699 | 0.054795 | 0 | 0.315068 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9ce9576b3689b9078144a22f30133900c5bedd9 | 260 | py | Python | 01_Language/01_Functions/python/join.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 3 | 2020-06-28T07:42:51.000Z | 2021-01-15T10:32:11.000Z | 01_Language/01_Functions/python/join.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 9 | 2021-03-10T22:45:40.000Z | 2022-02-27T06:53:20.000Z | 01_Language/01_Functions/python/join.py | cliff363825/TwentyFour | 09df59bd5d275e66463e343647f46027397d1233 | [
"MIT"
] | 1 | 2021-01-15T10:51:24.000Z | 2021-01-15T10:51:24.000Z | # coding: utf-8
import functools
def join(glue, pieces):
return str(glue).join(pieces)
if __name__ == '__main__':
arr = ['lastname', 'email', 'phone']
print(join(',', arr))
print(functools.reduce(lambda x, y: str(x) + ',' + str(y), arr))
| 17.333333 | 68 | 0.596154 | 35 | 260 | 4.2 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.2 | 260 | 14 | 69 | 18.571429 | 0.701923 | 0.05 | 0 | 0 | 0 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
e9cf6e1f3f72a5c6c694102419a53c7bdba7cb55 | 1,740 | py | Python | app.py | sheriffolaoye/gallery-website-python | 5ad792fc506249ce67eb372c982125ef19188396 | [
"MIT"
] | null | null | null | app.py | sheriffolaoye/gallery-website-python | 5ad792fc506249ce67eb372c982125ef19188396 | [
"MIT"
] | null | null | null | app.py | sheriffolaoye/gallery-website-python | 5ad792fc506249ce67eb372c982125ef19188396 | [
"MIT"
] | null | null | null | #import required modules
from flask import Flask, render_template, request, redirect, flash, url_for
from database import *
import datetime
app = Flask(__name__)
# define urls for pages
not_found = 'no_result.html'
upload = 'upload_image.html'
search_result = 'search_result.html'
error_404 = "404.html"
er... | 24.166667 | 76 | 0.705172 | 230 | 1,740 | 5.117391 | 0.282609 | 0.130841 | 0.169924 | 0.043331 | 0.169924 | 0.122345 | 0.061172 | 0 | 0 | 0 | 0 | 0.01645 | 0.161494 | 1,740 | 72 | 77 | 24.166667 | 0.790267 | 0.182759 | 0 | 0.088889 | 0 | 0 | 0.14574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155556 | false | 0 | 0.066667 | 0.111111 | 0.422222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
e9d0ffd57f104140f7a2793f41b6bc8ea2ea16cd | 738 | py | Python | chapter-5/hooks/use_hook.py | Carl-Ty/Modular-Programming-with-Python | efe1c725602b2148fdeb530e89381895c3e7f696 | [
"MIT"
] | null | null | null | chapter-5/hooks/use_hook.py | Carl-Ty/Modular-Programming-with-Python | efe1c725602b2148fdeb530e89381895c3e7f696 | [
"MIT"
] | null | null | null | chapter-5/hooks/use_hook.py | Carl-Ty/Modular-Programming-with-Python | efe1c725602b2148fdeb530e89381895c3e7f696 | [
"MIT"
] | null | null | null | import login_module
def my_login_hook(username):
"""
If there are messages for the user return them
:param username:
:type username: str
:return: None
:rtype: None
"""
if user_has_messages(username):
show_messages(username)
def user_has_messages(name):
"""
Stub for te... | 18 | 50 | 0.642276 | 99 | 738 | 4.626263 | 0.434343 | 0.072052 | 0.048035 | 0.078603 | 0.189956 | 0.113537 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256098 | 738 | 40 | 51 | 18.45 | 0.834244 | 0.411924 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9d83714809a02eb41c0ce36990054a5c64d5cf0 | 1,397 | py | Python | alipay/aop/api/response/ZhimaCreditContractBorrowQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/ZhimaCreditContractBorrowQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/ZhimaCreditContractBorrowQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class ZhimaCreditContractBorrowQueryResponse(AlipayResponse):
def __init__(self):
super(ZhimaCreditContractBorrowQueryResponse, self).__init__()
self._status = None
... | 30.369565 | 111 | 0.700787 | 142 | 1,397 | 6.605634 | 0.239437 | 0.153518 | 0.085288 | 0.051173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000916 | 0.218325 | 1,397 | 45 | 112 | 31.044444 | 0.858059 | 0.030064 | 0 | 0.088235 | 0 | 0 | 0.059128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.088235 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9db4b86126a755f7eaa4738dd7628720ece504d | 7,404 | py | Python | test_synch/exp6.py | mgricci/am_cdbn_mirror | 6e7539da0a550550b8510bcc84c7063fc90fc701 | [
"MIT"
] | 1 | 2021-01-05T06:36:23.000Z | 2021-01-05T06:36:23.000Z | test_synch/exp6.py | mgricci/am_cdbn_mirror | 6e7539da0a550550b8510bcc84c7063fc90fc701 | [
"MIT"
] | null | null | null | test_synch/exp6.py | mgricci/am_cdbn_mirror | 6e7539da0a550550b8510bcc84c7063fc90fc701 | [
"MIT"
] | null | null | null | import numpy as np
from numpy.random import vonmises as vm
from scipy.special import expit as sigmoid
from scipy.special import i0 as bessel
from scipy.signal import convolve2d as conv
import skimage.util as imx
from test_utils import save_cplx_anim, generate_shape_img, generate_bars_img
import ipdb
# SHAPES BARS EXPER... | 44.60241 | 168 | 0.69611 | 1,239 | 7,404 | 3.945117 | 0.208232 | 0.026187 | 0.03437 | 0.024345 | 0.219313 | 0.17901 | 0.11784 | 0.087357 | 0.057488 | 0.011252 | 0 | 0.026184 | 0.164371 | 7,404 | 165 | 169 | 44.872727 | 0.76386 | 0.152755 | 0 | 0.016129 | 0 | 0 | 0.056211 | 0.015991 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.048387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9e0eb399b366b16762c3e9fd3f009ba079f3910 | 361 | py | Python | lex.py | slotrans/sqlformatter | 2bc57391b875cfd6864d55c68f9df2421a00353f | [
"MIT"
] | 1 | 2020-08-10T02:10:57.000Z | 2020-08-10T02:10:57.000Z | lex.py | slotrans/sqlformatter | 2bc57391b875cfd6864d55c68f9df2421a00353f | [
"MIT"
] | null | null | null | lex.py | slotrans/sqlformatter | 2bc57391b875cfd6864d55c68f9df2421a00353f | [
"MIT"
] | null | null | null | import sys
import pygments
from pygments.lexers import get_lexer_by_name
from pygments.token import Token
if __name__ == '__main__':
unformatted_code = sys.stdin.read()
lexer = get_lexer_by_name("postgres", stripall=True)
tokens = list(lexer.get_tokens(unformatted_code))
print(f'count={len(tokens)}... | 21.235294 | 56 | 0.717452 | 51 | 361 | 4.745098 | 0.54902 | 0.099174 | 0.082645 | 0.115702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180055 | 361 | 16 | 57 | 22.5625 | 0.817568 | 0 | 0 | 0 | 0 | 0 | 0.096953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7565b6beca5fb8772276cb1f01f117792c69a10d | 423 | py | Python | models/user.py | pythononwheels/pow3 | add1013c2de3f16a751e2fe5fb0fd690fffdb7e8 | [
"Apache-2.0"
] | null | null | null | models/user.py | pythononwheels/pow3 | add1013c2de3f16a751e2fe5fb0fd690fffdb7e8 | [
"Apache-2.0"
] | null | null | null | models/user.py | pythononwheels/pow3 | add1013c2de3f16a751e2fe5fb0fd690fffdb7e8 | [
"Apache-2.0"
] | null | null | null | #
# Model
#
from pow3.db import Base,engine, Session
from sqlalchemy import Column, Integer, String, Sequence
from pow3.powlib import relation
from pow3.models.post import Post
@relation.has_many(Post)
class User(Base):
#__tablename__ = "users"
#id = Column(Integer, primary_key=True)
#id = Column(Integer, ... | 28.2 | 68 | 0.737589 | 57 | 423 | 5.315789 | 0.526316 | 0.079208 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00838 | 0.153664 | 423 | 15 | 69 | 28.2 | 0.837989 | 0.304965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7576ed26901e888b6a971d2e76b97815291cc5f3 | 709 | py | Python | src/input.py | tolgaparlan/anki_generator | 11d5d9bc5ccca5e0e5f1ed86caa39d6f0a637114 | [
"MIT"
] | 2 | 2020-05-29T13:04:27.000Z | 2020-06-01T18:01:00.000Z | src/input.py | tolgaparlan/anki_generator | 11d5d9bc5ccca5e0e5f1ed86caa39d6f0a637114 | [
"MIT"
] | 1 | 2020-06-01T13:50:10.000Z | 2020-06-01T13:50:10.000Z | src/input.py | tolgaparlan/Anki-Dutch-Generator | 11d5d9bc5ccca5e0e5f1ed86caa39d6f0a637114 | [
"MIT"
] | null | null | null | class InputReader:
"""Handles reading the input"""
def __init__(self, mode, filename):
self.filename = filename
self.mode = mode
def get_next_word(self) -> str:
"""
Returns one word at a time from the input document
:return: The next word
"""
# The ... | 26.259259 | 58 | 0.544429 | 86 | 709 | 4.325581 | 0.534884 | 0.064516 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.359662 | 709 | 26 | 59 | 27.269231 | 0.819383 | 0.253879 | 0 | 0 | 0 | 0 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7577ef7db8f6c2059315bf5a64c9b27cc01773c4 | 768 | py | Python | project0001api/user/migrations/0005_auto_20201121_1529.py | Hir0v0/SNS-API | 7616494ccb59bd94e0999bb40ee576557d2cc4f2 | [
"MIT"
] | null | null | null | project0001api/user/migrations/0005_auto_20201121_1529.py | Hir0v0/SNS-API | 7616494ccb59bd94e0999bb40ee576557d2cc4f2 | [
"MIT"
] | null | null | null | project0001api/user/migrations/0005_auto_20201121_1529.py | Hir0v0/SNS-API | 7616494ccb59bd94e0999bb40ee576557d2cc4f2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.11 on 2020-11-21 15:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0004_auto_20201116_0140'),
]
operations = [
migrations.CreateModel(
name='Badge',
fields=[
... | 28.444444 | 114 | 0.570313 | 78 | 768 | 5.461538 | 0.679487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062731 | 0.294271 | 768 | 26 | 115 | 29.538462 | 0.723247 | 0.059896 | 0 | 0.1 | 1 | 0 | 0.123611 | 0.031944 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
757ff8bafe877c7c2f02037ef3ea3f861dd1ef60 | 1,529 | py | Python | tests/cogctl/cli/bundle/test_enable.py | operable/cogctl | bec66471189376e0c33be88edb68f3af8797fc8c | [
"Apache-2.0"
] | 3 | 2016-05-09T23:14:47.000Z | 2017-01-15T20:41:25.000Z | tests/cogctl/cli/bundle/test_enable.py | operable/cogctl | bec66471189376e0c33be88edb68f3af8797fc8c | [
"Apache-2.0"
] | 59 | 2016-03-10T20:53:04.000Z | 2021-09-03T17:26:02.000Z | tests/cogctl/cli/bundle/test_enable.py | operable/cogctl | bec66471189376e0c33be88edb68f3af8797fc8c | [
"Apache-2.0"
] | 7 | 2016-03-09T21:43:33.000Z | 2019-01-24T15:44:06.000Z | import pytest
import cogctl.cli.bundle.enable as bundle # TODO: Eww, this import
pytestmark = pytest.mark.usefixtures("mocks")
# TODO: What happens when you try to enable a bundle that's already enabled?
def test_enable_no_version_enables_latest(cogctl):
result = cogctl(bundle.enable, ["disabled_bundle"])
... | 25.483333 | 84 | 0.710922 | 212 | 1,529 | 4.962264 | 0.301887 | 0.114068 | 0.061787 | 0.114068 | 0.605513 | 0.56749 | 0.560837 | 0.477186 | 0.382129 | 0.382129 | 0 | 0.021044 | 0.160889 | 1,529 | 59 | 85 | 25.915254 | 0.798909 | 0.070634 | 0 | 0.5 | 0 | 0.027778 | 0.366972 | 0 | 0 | 0 | 0 | 0.016949 | 0.277778 | 1 | 0.138889 | false | 0 | 0.055556 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
758b74a9895fb84aa14670d3de53163c253522b1 | 269 | py | Python | substratum/__init__.py | zatoichi-labs/substratum | b72e2b11f0cd3d75d914d296c660ae6053ef87c2 | [
"MIT"
] | null | null | null | substratum/__init__.py | zatoichi-labs/substratum | b72e2b11f0cd3d75d914d296c660ae6053ef87c2 | [
"MIT"
] | null | null | null | substratum/__init__.py | zatoichi-labs/substratum | b72e2b11f0cd3d75d914d296c660ae6053ef87c2 | [
"MIT"
] | null | null | null | import pkg_resources
from substratum.main import (
Substratum,
)
from substratum.providers.rpc import (
HTTPProvider,
)
__version__ = pkg_resources.get_distribution("substratum").version
__all__ = [
"__version__",
"Substratum",
"HTTPProvider",
]
| 15.823529 | 66 | 0.72119 | 25 | 269 | 7.16 | 0.52 | 0.134078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174721 | 269 | 16 | 67 | 16.8125 | 0.806306 | 0 | 0 | 0 | 0 | 0 | 0.159851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
758ceb9630607ef249b0014ec77e82af15c7ca29 | 930 | py | Python | historical_exercises/api-scripts.completed/import_workflow.py | mvdbeek/bioblend-tutorial | 4b5a254e05bbdc1c376eb4840167796374efce0e | [
"MIT"
] | 12 | 2015-07-07T13:24:55.000Z | 2020-07-18T19:03:45.000Z | historical_exercises/api-scripts.completed/import_workflow.py | mvdbeek/bioblend-tutorial | 4b5a254e05bbdc1c376eb4840167796374efce0e | [
"MIT"
] | 3 | 2015-11-01T20:54:05.000Z | 2020-07-15T18:48:16.000Z | historical_exercises/api-scripts.completed/import_workflow.py | mvdbeek/bioblend-tutorial | 4b5a254e05bbdc1c376eb4840167796374efce0e | [
"MIT"
] | 13 | 2015-07-06T08:27:22.000Z | 2021-05-28T13:08:04.000Z | #!/usr/bin/env python
import sys
import json
import output
import requests
BASE_URL = 'http://localhost:8080'
# -----------------------------------------------------------------------------
def import_workflow( filepath ):
# http://galaxy-central.readthedocs.org/en/latest/lib/galaxy.webapps.galaxy.api.html#galax... | 33.214286 | 167 | 0.575269 | 96 | 930 | 5.354167 | 0.489583 | 0.075875 | 0.110895 | 0.128405 | 0.175097 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.150538 | 930 | 27 | 168 | 34.444444 | 0.644304 | 0.435484 | 0 | 0 | 0 | 0 | 0.132948 | 0.040462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7590b3db72223a0e484eab3a81aa4d92a1d3bd6b | 946 | py | Python | open_humans/wsgi.py | danamlewis/open-humans | 9b08310cf151f49032b66ddd005bbd47d466cc4e | [
"MIT"
] | 57 | 2016-09-01T21:55:52.000Z | 2022-03-27T22:15:32.000Z | open_humans/wsgi.py | danamlewis/open-humans | 9b08310cf151f49032b66ddd005bbd47d466cc4e | [
"MIT"
] | 464 | 2015-03-23T18:08:28.000Z | 2016-08-25T04:57:36.000Z | open_humans/wsgi.py | danamlewis/open-humans | 9b08310cf151f49032b66ddd005bbd47d466cc4e | [
"MIT"
] | 25 | 2017-01-24T16:23:27.000Z | 2021-11-07T01:51:42.000Z | """
WSGI config for open_humans project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""
import logging
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "open_humans.settin... | 29.5625 | 78 | 0.788584 | 127 | 946 | 5.748032 | 0.590551 | 0.054795 | 0.038356 | 0.049315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008284 | 0.106765 | 946 | 31 | 79 | 30.516129 | 0.855621 | 0.362579 | 0 | 0 | 0 | 0 | 0.186441 | 0.037288 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.