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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01fef0c6d8ff99d7629e1f33bf38ef179d29a64f | 234 | py | Python | ex002.py | isabellahenriques/Python_Estudos | a6e8b829d01a7c9fa34223e096f6389c81f2085c | [
"MIT"
] | null | null | null | ex002.py | isabellahenriques/Python_Estudos | a6e8b829d01a7c9fa34223e096f6389c81f2085c | [
"MIT"
] | null | null | null | ex002.py | isabellahenriques/Python_Estudos | a6e8b829d01a7c9fa34223e096f6389c81f2085c | [
"MIT"
] | null | null | null | #Faça um programa que leia o dia, o Mês e o Ano de seu nascimento.
Dia = input("Que dia você nasceu = ")
Mes = input("De qual mês = ")
Ano = input("De qual ano = ")
print("Você nasceu no dia ",Dia, "de",Mes, "de", Ano, ". Correto?")
| 33.428571 | 67 | 0.628205 | 42 | 234 | 3.5 | 0.5 | 0.136054 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 234 | 6 | 68 | 39 | 0.790323 | 0.277778 | 0 | 0 | 0 | 0 | 0.497006 | 0 | 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 |
bf06a5a7e99308d5d1168370969f46a4409df962 | 669 | py | Python | src/compas/base.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | 235 | 2017-11-07T07:33:22.000Z | 2022-03-25T16:20:00.000Z | src/compas/base.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | 770 | 2017-09-22T13:42:06.000Z | 2022-03-31T21:26:45.000Z | src/compas/base.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | 99 | 2017-11-06T23:15:28.000Z | 2022-03-25T16:05:36.000Z | """
********************************************************************************
base
********************************************************************************
.. deprecated:: 1.5
Use `compas.data` instead
.. currentmodule:: compas.base
Classes
=======
.. autosummary::
:toctree: generated/
:n... | 16.725 | 80 | 0.526158 | 57 | 669 | 5.859649 | 0.526316 | 0.08982 | 0.143713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005319 | 0.156951 | 669 | 39 | 81 | 17.153846 | 0.586879 | 0.505232 | 0 | 0 | 0 | 0 | 0.192547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.071429 | 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 |
bf0737b9a2ff25facc77a9707294f460ae32d7cc | 311 | py | Python | conf.py | snowyxx/WeChatAgent | 46605d1debee74fb1be62ebc799de45661bbdb1d | [
"MIT"
] | null | null | null | conf.py | snowyxx/WeChatAgent | 46605d1debee74fb1be62ebc799de45661bbdb1d | [
"MIT"
] | null | null | null | conf.py | snowyxx/WeChatAgent | 46605d1debee74fb1be62ebc799de45661bbdb1d | [
"MIT"
] | null | null | null | # encoding=utf-8
WECHATGROUP = [u'运维告警',]
SDPURL = 'http://192.168.0.111:8050'
SDPAPIKEY = '5C45F603-DF68-4CC1-BB66-E923670EC2BD'
OPMURL = 'http://192.168.0.96:8060'
OPMAPIKEY = '67b287274fb1be2b449f1653508b7669'
LISTENERHOST = 'localhost'
LISTENERPORT = 6601
TULINGKEY = '8edce3ce905a4c1dbb965e6b35c3834d'
| 22.214286 | 50 | 0.755627 | 34 | 311 | 6.911765 | 0.882353 | 0.059574 | 0.085106 | 0.093617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327402 | 0.096463 | 311 | 13 | 51 | 23.923077 | 0.508897 | 0.045016 | 0 | 0 | 0 | 0 | 0.549153 | 0.338983 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf07b7e04f650a2d5d367fa805d5aa5ee20522cd | 847 | py | Python | blog/models.py | ManukumarNM/Django_Blog | 96c3d666c8bb897a2529c2bdb6ec5186d0e2d98c | [
"MIT"
] | null | null | null | blog/models.py | ManukumarNM/Django_Blog | 96c3d666c8bb897a2529c2bdb6ec5186d0e2d98c | [
"MIT"
] | null | null | null | blog/models.py | ManukumarNM/Django_Blog | 96c3d666c8bb897a2529c2bdb6ec5186d0e2d98c | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
from django.utils import timezone
from django.urls import reverse
# Author model with its fields
class Author(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
image = models.ImageField(defa... | 28.233333 | 91 | 0.708383 | 111 | 847 | 5.261261 | 0.513514 | 0.068493 | 0.041096 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007321 | 0.193625 | 847 | 29 | 92 | 29.206897 | 0.847731 | 0.079103 | 0 | 0.105263 | 0 | 0 | 0.102332 | 0.031088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.263158 | 0.157895 | 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 | 1 | 0 | 0 | 0 | 1 |
bf0becfc3bc03b345fe5fcb12303dce8cd2e7357 | 488 | py | Python | coa_map/coa_map.py | ahetland/D365pyTools | fd1508263cc7558cd461978e13033f264301738f | [
"MIT"
] | null | null | null | coa_map/coa_map.py | ahetland/D365pyTools | fd1508263cc7558cd461978e13033f264301738f | [
"MIT"
] | null | null | null | coa_map/coa_map.py | ahetland/D365pyTools | fd1508263cc7558cd461978e13033f264301738f | [
"MIT"
] | null | null | null | import csv
def read_map(file):
with open(file, newline='') as mapfile:
reader = csv.reader(mapfile, delimiter=',' quotechar='"')
for row in reader:
print(row)
def write_file(lst):
with open('out.csv', 'w', newline='') as csvfile:
fieldnames = ['A', 'B']
writer =... | 20.333333 | 65 | 0.577869 | 58 | 488 | 4.672414 | 0.603448 | 0.059041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.258197 | 488 | 23 | 66 | 21.217391 | 0.743094 | 0 | 0 | 0 | 0 | 0 | 0.045175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.071429 | 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 |
bf0da6391018565d5f5a2425f356bb2d96bbbbc6 | 5,336 | py | Python | Script/FishEngine/Transform.py | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-12-20T02:38:44.000Z | 2018-12-20T02:38:44.000Z | Script/FishEngine/Transform.py | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | null | null | null | Script/FishEngine/Transform.py | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-10-25T19:40:22.000Z | 2018-10-25T19:40:22.000Z | from . import Component, Vector3, Quaternion, Matrix4x4
# from . import FishEngineInternal
import FishEngineInternal
from enum import Enum, auto
# Transform = FishEngineInternal.Transform
# class RotationOrder(Enum):
# OrderXYZ = auto
# OrderXZY =
# OrderYZX,
# OrderYXZ,
# OrderZXY,
# OrderZYX... | 30.666667 | 107 | 0.668478 | 573 | 5,336 | 6.125654 | 0.22164 | 0.037607 | 0.02792 | 0.017949 | 0.153846 | 0.122507 | 0.071795 | 0.033618 | 0 | 0 | 0 | 0.008576 | 0.235195 | 5,336 | 174 | 108 | 30.666667 | 0.851507 | 0.26518 | 0 | 0.23301 | 0 | 0 | 0.004634 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 1 | 0.262136 | false | 0.038835 | 0.029126 | 0.087379 | 0.436893 | 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 |
bf0dd32f5c794afd011f453f9dd81bae2af811ce | 200 | py | Python | before-all/07_unpacking_arguments.py | JanoBourian/flask-practices | 45d12837ddcf6f9aa20c6a97401b2664c70fe974 | [
"MIT"
] | null | null | null | before-all/07_unpacking_arguments.py | JanoBourian/flask-practices | 45d12837ddcf6f9aa20c6a97401b2664c70fe974 | [
"MIT"
] | null | null | null | before-all/07_unpacking_arguments.py | JanoBourian/flask-practices | 45d12837ddcf6f9aa20c6a97401b2664c70fe974 | [
"MIT"
] | null | null | null | def information(*args):
for arg in args:
print(arg)
information(1, 3, 6, 7, "Abelardo")
def users(**kwargs):
for k in kwargs.values():
print(k)
users(name="bob", age=19)
| 13.333333 | 35 | 0.58 | 30 | 200 | 3.866667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040268 | 0.255 | 200 | 14 | 36 | 14.285714 | 0.738255 | 0 | 0 | 0 | 0 | 0 | 0.055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 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 |
bf1e5547330aadf85cc6a1969c57ba4250e2c420 | 965 | py | Python | wire.py | dordorcohen/Terminal-Animations | 6edaf47c8169dd19f7be5025a415edcc47f8eecc | [
"MIT"
] | null | null | null | wire.py | dordorcohen/Terminal-Animations | 6edaf47c8169dd19f7be5025a415edcc47f8eecc | [
"MIT"
] | null | null | null | wire.py | dordorcohen/Terminal-Animations | 6edaf47c8169dd19f7be5025a415edcc47f8eecc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import time
from random import randrange
import sys
import os
from sys import stdout
epsilon=0.001
rows, cols = os.popen('stty size', 'r').read().split()
rows = int(rows)
cols = int(cols)
##################################################################################
os.system("clear")
clean... | 20.104167 | 82 | 0.642487 | 139 | 965 | 4.460432 | 0.388489 | 0.141935 | 0.067742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.129534 | 965 | 48 | 83 | 20.104167 | 0.709524 | 0.071503 | 0 | 0.171429 | 0 | 0 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.057143 | 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 |
bf1e67268293bd4fb8bf1115bd09e359d0e205a0 | 503 | py | Python | packages/qt5svg/package.py | drbenmorgan/spack-supernemo | 40aefc7925bdb5f63db57b0ef47e27f650fbe6b8 | [
"MIT"
] | null | null | null | packages/qt5svg/package.py | drbenmorgan/spack-supernemo | 40aefc7925bdb5f63db57b0ef47e27f650fbe6b8 | [
"MIT"
] | null | null | null | packages/qt5svg/package.py | drbenmorgan/spack-supernemo | 40aefc7925bdb5f63db57b0ef47e27f650fbe6b8 | [
"MIT"
] | null | null | null | from spack import *
class Qt5svg(Package):
"""Qt5 SVG Library
"""
homepage = "http://qt-project.org/"
url = "http://download.qt.io/official_releases/qt/5.10/5.10.1/submodules/qtsvg-everywhere-src-5.10.1.tar.xz"
version('5.10.1', sha256="00e00c04abcc8363cf7d94ca8b16af61840995a4af23685d49fa4ccafa1c7... | 29.588235 | 112 | 0.671968 | 67 | 503 | 5.014925 | 0.701493 | 0.053571 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155294 | 0.15507 | 503 | 16 | 113 | 31.4375 | 0.635294 | 0.081511 | 0 | 0 | 0 | 0.111111 | 0.504386 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bf203925fe07692e29fe0cf43c1b6b6b9491f9a2 | 724 | py | Python | mir/lib/templating.py | drenglish/mir | c8d18df9fafabb23c8077764cfd15dfe18eab842 | [
"MIT"
] | null | null | null | mir/lib/templating.py | drenglish/mir | c8d18df9fafabb23c8077764cfd15dfe18eab842 | [
"MIT"
] | null | null | null | mir/lib/templating.py | drenglish/mir | c8d18df9fafabb23c8077764cfd15dfe18eab842 | [
"MIT"
] | null | null | null | import os
import json
import sys
from jinja2 import FileSystemLoader, Environment
# Utility Functions
# -------------------------------
def template_factory(data, template_file):
templates_dir = os.path.abspath(os.path.join(template_file, os.pardir))
helpers_file = os.path.join(templates_dir, 'plugins.py')
... | 27.846154 | 75 | 0.687845 | 89 | 724 | 5.404494 | 0.449438 | 0.06237 | 0.04158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003333 | 0.171271 | 724 | 25 | 76 | 28.96 | 0.798333 | 0.104972 | 0 | 0 | 0 | 0 | 0.037325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bf22bea1b0ced5ac12a531e18d10e7e1a7a3fc29 | 351 | py | Python | submit/security.py | xavierholt/submit-cs | 70724b5dbc02d87e4b0e06c4ca4593be104919d6 | [
"BSD-2-Clause"
] | 10 | 2015-02-09T12:09:35.000Z | 2021-07-20T00:44:09.000Z | submit/security.py | xavierholt/submit-cs | 70724b5dbc02d87e4b0e06c4ca4593be104919d6 | [
"BSD-2-Clause"
] | 20 | 2015-01-31T01:16:23.000Z | 2018-02-23T19:01:26.000Z | submit/security.py | xavierholt/submit-cs | 70724b5dbc02d87e4b0e06c4ca4593be104919d6 | [
"BSD-2-Clause"
] | 6 | 2015-02-09T12:09:35.000Z | 2021-05-04T03:03:48.000Z | from pyramid.security import unauthenticated_userid
from .models import User
def get_user(request):
user_id = unauthenticated_userid(request)
if user_id is not None:
return User.fetch_by_id(user_id)
def group_finder(user_id, request):
user = request.user
if user:
return ['admin'] if ... | 23.4 | 58 | 0.720798 | 51 | 351 | 4.745098 | 0.470588 | 0.099174 | 0.123967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19943 | 351 | 14 | 59 | 25.071429 | 0.86121 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 |
bf26ee389168925fe3f76fbf1945befafdeb9a0b | 647 | py | Python | django_data/src/save_eat/restaurant/migrations/0011_auto_20200414_1408.py | yuta-hidaka/save-eat | dfb09b89d1596ee85a0390d37d399aa00e2fcf44 | [
"MIT"
] | null | null | null | django_data/src/save_eat/restaurant/migrations/0011_auto_20200414_1408.py | yuta-hidaka/save-eat | dfb09b89d1596ee85a0390d37d399aa00e2fcf44 | [
"MIT"
] | 2 | 2020-04-09T11:53:53.000Z | 2021-03-10T14:26:37.000Z | django_data/src/save_eat/restaurant/migrations/0011_auto_20200414_1408.py | yuta-hidaka/save-eat | dfb09b89d1596ee85a0390d37d399aa00e2fcf44 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-14 05:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('restaurant', '0010_auto_20200414_1338'),
]
operations = [
migrations.AlterField(
model_name='restaurant',
name='emai... | 26.958333 | 111 | 0.601236 | 68 | 647 | 5.588235 | 0.661765 | 0.105263 | 0.131579 | 0.152632 | 0.226316 | 0.226316 | 0 | 0 | 0 | 0 | 0 | 0.078224 | 0.268934 | 647 | 23 | 112 | 28.130435 | 0.725159 | 0.069552 | 0 | 0.352941 | 1 | 0 | 0.13 | 0.038333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
bf2d92bbbd49e429548b660e0cabaa30df7b837e | 4,504 | py | Python | atlas/foundations_sdk/src/foundations/job_parameters/__init__.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 296 | 2020-03-16T19:55:00.000Z | 2022-01-10T19:46:05.000Z | atlas/foundations_sdk/src/foundations/job_parameters/__init__.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 57 | 2020-03-17T11:15:57.000Z | 2021-07-10T14:42:27.000Z | atlas/foundations_sdk/src/foundations/job_parameters/__init__.py | DeepLearnI/atlas | 8aca652d7e647b4e88530b93e265b536de7055ed | [
"Apache-2.0"
] | 38 | 2020-03-17T21:06:05.000Z | 2022-02-08T03:19:34.000Z |
def load_parameters(log_parameters=True):
try:
parameters = _parsed_json(_raw_json_from_parameters_file())
if log_parameters:
log_params(parameters)
return parameters
except FileNotFoundError:
return {}
def flatten_parameter_dictionary(param_dictionary):
flat... | 39.508772 | 146 | 0.778197 | 614 | 4,504 | 5.208469 | 0.162866 | 0.061914 | 0.047842 | 0.065041 | 0.472796 | 0.410569 | 0.389931 | 0.3596 | 0.331144 | 0.331144 | 0 | 0 | 0.14143 | 4,504 | 114 | 147 | 39.508772 | 0.826998 | 0 | 0 | 0.164557 | 0 | 0 | 0.049068 | 0.031083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21519 | false | 0 | 0.063291 | 0.025316 | 0.455696 | 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 |
bf2fc0793e83be9b7f0d314b03443ec7f4bf700a | 3,084 | py | Python | botdiscord.py | FrostBid/cummybot | f0467a4359faa484c98e2a052d131c91c7352013 | [
"MIT"
] | 4 | 2021-10-12T10:59:47.000Z | 2022-02-21T18:16:17.000Z | botdiscord.py | FrostBid/cummybot | f0467a4359faa484c98e2a052d131c91c7352013 | [
"MIT"
] | null | null | null | botdiscord.py | FrostBid/cummybot | f0467a4359faa484c98e2a052d131c91c7352013 | [
"MIT"
] | 1 | 2022-02-21T18:15:51.000Z | 2022-02-21T18:15:51.000Z | import praw
import asyncpraw
from time import sleep
from better_profanity import profanity
from datetime import datetime
import discord
import os
from badwords import badwords
from config import *
from nltk.sentiment.vader import SentimentIntensityAnalyzer as SIA
nltk.download('vader_lexicon')
# import nest_asyncio
# ... | 33.16129 | 134 | 0.630999 | 379 | 3,084 | 5.047493 | 0.37467 | 0.015682 | 0.02666 | 0.040774 | 0.170413 | 0.081547 | 0.081547 | 0.081547 | 0.081547 | 0.081547 | 0 | 0.007772 | 0.249027 | 3,084 | 93 | 135 | 33.16129 | 0.818221 | 0.139105 | 0 | 0.104478 | 0 | 0.014925 | 0.199167 | 0.037486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0.059701 | 0.149254 | 0 | 0.238806 | 0.104478 | 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 |
bf35520f744196b06f797074246930979d29c121 | 312 | py | Python | data/vispapers/preprocess.py | sonne-academic/solr-utils | ec3380e7492fa4d1f9682253674513800980b35f | [
"Apache-2.0"
] | null | null | null | data/vispapers/preprocess.py | sonne-academic/solr-utils | ec3380e7492fa4d1f9682253674513800980b35f | [
"Apache-2.0"
] | null | null | null | data/vispapers/preprocess.py | sonne-academic/solr-utils | ec3380e7492fa4d1f9682253674513800980b35f | [
"Apache-2.0"
] | null | null | null | from data.vispapers import read_all, DATA_FOLDER
import json
import gzip
def preprocess():
with gzip.open(DATA_FOLDER / 'vispapers.jsonl.gz', 'wt', encoding='utf-8') as file:
for document in read_all():
file.write(json.dumps(document)+'\n')
if __name__ == '__main__':
preprocess() | 24 | 87 | 0.673077 | 43 | 312 | 4.604651 | 0.697674 | 0.070707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003968 | 0.192308 | 312 | 13 | 88 | 24 | 0.781746 | 0 | 0 | 0 | 0 | 0 | 0.111821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bf38e3e23b93e92c5163a55ad4e4acdfc4bc1f46 | 4,874 | py | Python | test_index_bam_by_read.py | gantzgraf/index_bam_by_read_id | 801bc3c3f73a999ca65e4195927e9659ee2e64af | [
"MIT"
] | 1 | 2019-07-26T14:36:48.000Z | 2019-07-26T14:36:48.000Z | test_index_bam_by_read.py | david-a-parry/index_bam_by_read_id | 801bc3c3f73a999ca65e4195927e9659ee2e64af | [
"MIT"
] | null | null | null | test_index_bam_by_read.py | david-a-parry/index_bam_by_read_id | 801bc3c3f73a999ca65e4195927e9659ee2e64af | [
"MIT"
] | null | null | null | from nose.tools import *
import os
import pysam
from collections import OrderedDict
try:
from index_bam_by_read_id.index_bam_by_read_id import IndexByReadId,UnsortedBamError
except ImportError:
from index_bam_by_read_id import IndexByReadId,UnsortedBamError
_f = 'test_data/test.bam'
_s = "test_data/test_rid_... | 36.103704 | 89 | 0.663521 | 765 | 4,874 | 3.794771 | 0.244444 | 0.041337 | 0.022735 | 0.01929 | 0.354805 | 0.303135 | 0.245952 | 0.182225 | 0.147089 | 0.122976 | 0 | 0.208091 | 0.224046 | 4,874 | 134 | 90 | 36.373134 | 0.559492 | 0.017439 | 0 | 0.256198 | 0 | 0 | 0.2827 | 0.218972 | 0 | 0 | 0 | 0 | 0.14876 | 1 | 0.07438 | false | 0 | 0.057851 | 0 | 0.132231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
170df5523f6a2d7b5ffd53d065c98713e877bb38 | 3,570 | py | Python | tally_ho/libs/tests/views/reports/test_progress.py | crononauta/tally-ho | ba2207bfaef27bee3ff13a393983ca493f767238 | [
"Apache-2.0"
] | null | null | null | tally_ho/libs/tests/views/reports/test_progress.py | crononauta/tally-ho | ba2207bfaef27bee3ff13a393983ca493f767238 | [
"Apache-2.0"
] | null | null | null | tally_ho/libs/tests/views/reports/test_progress.py | crononauta/tally-ho | ba2207bfaef27bee3ff13a393983ca493f767238 | [
"Apache-2.0"
] | null | null | null | from django.core.exceptions import ImproperlyConfigured
from tally_ho.apps.tally.models.result_form import ResultForm
from tally_ho.libs.models.enums.form_state import FormState
from tally_ho.libs.tests.test_base import create_result_form, \
create_center, TestBase
from tally_ho.libs.reports import progress
clas... | 41.034483 | 77 | 0.705322 | 400 | 3,570 | 6.0825 | 0.205 | 0.135635 | 0.181258 | 0.094534 | 0.511714 | 0.374024 | 0.284834 | 0.284834 | 0.242088 | 0.135635 | 0 | 0.048496 | 0.208683 | 3,570 | 86 | 78 | 41.511628 | 0.812743 | 0 | 0 | 0.44 | 0 | 0 | 0.00028 | 0 | 0 | 0 | 0 | 0 | 0.32 | 1 | 0.12 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
171584463004eccdade3e902b3d4c32fccd78c7a | 1,032 | py | Python | robosat_pink/tools/info.py | chrisrtina/robosat.pink | 854a7baed2ee9037769d48e1252765b09ce5d669 | [
"MIT"
] | null | null | null | robosat_pink/tools/info.py | chrisrtina/robosat.pink | 854a7baed2ee9037769d48e1252765b09ce5d669 | [
"MIT"
] | null | null | null | robosat_pink/tools/info.py | chrisrtina/robosat.pink | 854a7baed2ee9037769d48e1252765b09ce5d669 | [
"MIT"
] | null | null | null | import os
import sys
import cv2
import torch
import rasterio
import robosat_pink as rsp
def add_parser(subparser, formatter_class):
parser = subparser.add_parser("info", help="Provide informations", formatter_class=formatter_class)
parser.set_defaults(func=main)
def main(args):
print("=================... | 33.290323 | 103 | 0.550388 | 109 | 1,032 | 4.972477 | 0.431193 | 0.110701 | 0.073801 | 0.073801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00348 | 0.164729 | 1,032 | 30 | 104 | 34.4 | 0.62529 | 0 | 0 | 0.16 | 0 | 0 | 0.256783 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.24 | 0 | 0.32 | 0.56 | 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 |
1718959323be037fabab1adf1baa16f9ffdad5fd | 197 | py | Python | Python/6.area of circle.py | mohitdhaundiyal/laravel_emtechtalks | a8274aa2d77f57e2c8e2686a023f7bdcf01db4ca | [
"MIT"
] | null | null | null | Python/6.area of circle.py | mohitdhaundiyal/laravel_emtechtalks | a8274aa2d77f57e2c8e2686a023f7bdcf01db4ca | [
"MIT"
] | 4 | 2021-02-02T21:27:12.000Z | 2022-02-27T09:14:45.000Z | Python/6.area of circle.py | mohitdhaundiyal/laravel_emtechtalks | a8274aa2d77f57e2c8e2686a023f7bdcf01db4ca | [
"MIT"
] | null | null | null | print('calculate area of a circle')
def circle():
radius = input('enter radius')
radius = float(radius)
area = 3.14*radius*radius
print ('area is ')
print (area)
circle()
| 17.909091 | 35 | 0.609137 | 26 | 197 | 4.615385 | 0.538462 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.253807 | 197 | 10 | 36 | 19.7 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0.233503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.375 | 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 |
1728b9439ea9f45f494845d7cb87cc69bfe1cab1 | 4,749 | py | Python | board.py | lucasma8795/chess | 2d8a1f6472dc12e83bace2eb7e8329358edb6b4c | [
"Unlicense"
] | null | null | null | board.py | lucasma8795/chess | 2d8a1f6472dc12e83bace2eb7e8329358edb6b4c | [
"Unlicense"
] | null | null | null | board.py | lucasma8795/chess | 2d8a1f6472dc12e83bace2eb7e8329358edb6b4c | [
"Unlicense"
] | null | null | null | from copy import deepcopy
from re import finditer
from operation import *
from pieces import *
from position import Pos
from pprint import pprint
white, black = 0, 1
class Board:
def __init__(self, board: list, turn: int=0, castling: list=[True for i in range(4)]):
"""A Board object containing chess pieces and ot... | 31.243421 | 118 | 0.671931 | 743 | 4,749 | 4.185734 | 0.215343 | 0.045016 | 0.058521 | 0.04373 | 0.370096 | 0.332154 | 0.203215 | 0.13955 | 0.118328 | 0.118328 | 0 | 0.026391 | 0.194146 | 4,749 | 151 | 119 | 31.450331 | 0.786256 | 0.256054 | 0 | 0.17 | 0 | 0 | 0.09944 | 0.018768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0.06 | 0.06 | 0.01 | 0.16 | 0.01 | 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 |
172bfe1c956ee0ef08fd80235631e86af77f4e0d | 11,268 | py | Python | src/programy/dialog.py | ItsPhant/program-y | c2b211fcaf8cedc7d6d95a8ea9470a913efa1622 | [
"MIT"
] | null | null | null | src/programy/dialog.py | ItsPhant/program-y | c2b211fcaf8cedc7d6d95a8ea9470a913efa1622 | [
"MIT"
] | null | null | null | src/programy/dialog.py | ItsPhant/program-y | c2b211fcaf8cedc7d6d95a8ea9470a913efa1622 | [
"MIT"
] | 1 | 2020-02-21T17:58:05.000Z | 2020-02-21T17:58:05.000Z | """
Copyright (c) 2016-17 Keith Sterling http://www.keithsterling.com
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 rights to use, copy, mod... | 37.188119 | 131 | 0.60978 | 1,275 | 11,268 | 5.218039 | 0.179608 | 0.025552 | 0.023448 | 0.049602 | 0.313693 | 0.277769 | 0.260183 | 0.242146 | 0.185029 | 0.159327 | 0 | 0.002157 | 0.300408 | 11,268 | 302 | 132 | 37.311258 | 0.841811 | 0.103656 | 0 | 0.342105 | 0 | 0 | 0.060363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201754 | false | 0 | 0.017544 | 0.061404 | 0.377193 | 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 |
172e4ba53256c5b8ffa3a4619fd54036d3281bd7 | 1,669 | py | Python | compare_robot_logs.py | antmicro/verilator-dynamic-scheduler-tests | aaecd07654b474d3f1fc1bd55d9789af2d1963d4 | [
"Apache-2.0"
] | 5 | 2020-12-08T21:36:21.000Z | 2022-03-04T14:23:15.000Z | compare_robot_logs.py | antmicro/verilator-dynamic-scheduler-tests | aaecd07654b474d3f1fc1bd55d9789af2d1963d4 | [
"Apache-2.0"
] | 16 | 2020-11-30T14:10:36.000Z | 2022-03-24T07:04:44.000Z | compare_robot_logs.py | antmicro/verilator-dynamic-scheduler-tests | aaecd07654b474d3f1fc1bd55d9789af2d1963d4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import xml.etree.ElementTree as et
import sys
def usage():
print(f"Usage: {sys.argv[0]} <base_output.xml> <new_output.xml>")
try:
base = et.parse(sys.argv[1])
new = et.parse(sys.argv[2])
except:
usage()
sys.exit(1)
def get_results(data):
test... | 21.397436 | 79 | 0.617735 | 265 | 1,669 | 3.750943 | 0.290566 | 0.021127 | 0.018109 | 0.028169 | 0.032193 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.22888 | 1,669 | 77 | 80 | 21.675325 | 0.765346 | 0.059317 | 0 | 0.038462 | 0 | 0 | 0.130907 | 0.01341 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0.076923 | 0.038462 | 0 | 0.115385 | 0.057692 | 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 |
172f5f017e99553b08f9ed5046756df340a3bc29 | 1,119 | py | Python | selenium/download_entire_page_videos.py | yeltayzhastay/FacebookApiParsing | 5e1dbcbb4e9a99a49f80333a50b65d708c36e378 | [
"MIT"
] | null | null | null | selenium/download_entire_page_videos.py | yeltayzhastay/FacebookApiParsing | 5e1dbcbb4e9a99a49f80333a50b65d708c36e378 | [
"MIT"
] | null | null | null | selenium/download_entire_page_videos.py | yeltayzhastay/FacebookApiParsing | 5e1dbcbb4e9a99a49f80333a50b65d708c36e378 | [
"MIT"
] | null | null | null | import argparse
import os
from typing import List
from scraper import EMAIL, PASSWORD, extract
def orchestrate_youtube_dl(path: str, links: List[str]):
for link in links:
os.system(
f'{path} --verbose --ignore-errors --id --username {EMAIL} --password {PASSWORD} {link}'
)
if __name_... | 39.964286 | 117 | 0.720286 | 153 | 1,119 | 5.03268 | 0.45098 | 0.058442 | 0.088312 | 0.097403 | 0.096104 | 0.096104 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159071 | 1,119 | 27 | 118 | 41.444444 | 0.818278 | 0 | 0 | 0 | 0 | 0.05 | 0.265416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.1 | 0.2 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
17357a4b57d27dfd60759d37946b25b8a3a7a73b | 1,108 | py | Python | openverse_api/catalog/api/migrations/0012_auto_20190102_2012.py | ritesh-pandey/openverse-api | 7456e9ec4dd45800d5527039e466aa50991b3812 | [
"MIT"
] | 122 | 2018-09-12T13:49:37.000Z | 2021-12-05T07:04:59.000Z | cccatalog-api/cccatalog/api/migrations/0012_auto_20190102_2012.py | senyor/cccatalog-api | a18f75fccdd7345beff820dff4ee69604cd53748 | [
"MIT"
] | 500 | 2018-04-30T15:26:43.000Z | 2021-06-07T16:28:44.000Z | cccatalog-api/cccatalog/api/migrations/0012_auto_20190102_2012.py | senyor/cccatalog-api | a18f75fccdd7345beff820dff4ee69604cd53748 | [
"MIT"
] | 144 | 2018-08-11T17:11:50.000Z | 2022-01-12T20:39:09.000Z | # Generated by Django 2.0.8 on 2019-01-02 20:12
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0011_auto_20181117_0029'),
]
operations = [
migrations.AlterUniqueTogether(
n... | 25.181818 | 88 | 0.544224 | 95 | 1,108 | 6.252632 | 0.536842 | 0.10101 | 0.131313 | 0.151515 | 0.447811 | 0.340067 | 0 | 0 | 0 | 0 | 0 | 0.042466 | 0.341155 | 1,108 | 43 | 89 | 25.767442 | 0.771233 | 0.040614 | 0 | 0.459459 | 1 | 0 | 0.097078 | 0.021678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.135135 | 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 |
1738048acb502d96f45ff8adca478e573b1e0f67 | 664 | py | Python | Contributions/Python/simple-SD.py | OluSure/Hacktoberfest2021-1 | ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea | [
"MIT"
] | 215 | 2021-10-01T08:18:16.000Z | 2022-03-29T04:12:03.000Z | Contributions/Python/simple-SD.py | OluSure/Hacktoberfest2021-1 | ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea | [
"MIT"
] | 51 | 2021-10-01T08:16:42.000Z | 2021-10-31T13:51:51.000Z | Contributions/Python/simple-SD.py | OluSure/Hacktoberfest2021-1 | ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea | [
"MIT"
] | 807 | 2021-10-01T08:11:45.000Z | 2021-11-21T18:57:09.000Z | # Hacktoberfest 2021
# Problem: House Prices
#
# You are given an array that represents house prices.
# Calculate and output the percentage of houses that are within one standard deviation from the mean.
# To calculate the percentage, divide the number of houses that satisfy the condition by the total number of h... | 36.888889 | 149 | 0.706325 | 106 | 664 | 4.424528 | 0.59434 | 0.051173 | 0.051173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205607 | 0.194277 | 664 | 18 | 150 | 36.888889 | 0.671028 | 0.513554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
173f4860bf8e6b8f88193e42687f6fa1ce716892 | 1,981 | py | Python | chat/models.py | vsananthu/alphatrader | d97af1182e16f8281651832afb8938f2adebf065 | [
"MIT"
] | 1 | 2021-08-19T05:37:50.000Z | 2021-08-19T05:37:50.000Z | chat/models.py | ajmal017/alphatrader | d97af1182e16f8281651832afb8938f2adebf065 | [
"MIT"
] | null | null | null | chat/models.py | ajmal017/alphatrader | d97af1182e16f8281651832afb8938f2adebf065 | [
"MIT"
] | 1 | 2021-08-19T05:37:47.000Z | 2021-08-19T05:37:47.000Z | from django.db import models
from django.utils.six import python_2_unicode_compatible
# from channels import Group
from .settings import MSG_TYPE_MESSAGE
from django.contrib.auth import get_user_model
User = get_user_model()
@python_2_unicode_compatible
class AlphaChannel(models.Model):
"""
A channel for people to ... | 30.953125 | 108 | 0.752145 | 285 | 1,981 | 5.101754 | 0.378947 | 0.024072 | 0.028886 | 0.035076 | 0.128611 | 0.087345 | 0.087345 | 0.0674 | 0.0674 | 0.0674 | 0 | 0.004667 | 0.13478 | 1,981 | 63 | 109 | 31.444444 | 0.843641 | 0.239778 | 0 | 0.055556 | 0 | 0 | 0.025239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.027778 | 0.722222 | 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 |
173f4f162966cf234048609e68f4dcad9eaea5fb | 9,272 | py | Python | zuc_optimized.py | a-l-r1/cryptography | b3d5d2300d8968b2b718a93b1641e87f95365b4b | [
"CC0-1.0"
] | null | null | null | zuc_optimized.py | a-l-r1/cryptography | b3d5d2300d8968b2b718a93b1641e87f95365b4b | [
"CC0-1.0"
] | null | null | null | zuc_optimized.py | a-l-r1/cryptography | b3d5d2300d8968b2b718a93b1641e87f95365b4b | [
"CC0-1.0"
] | null | null | null | import numpy as np
from typing import Iterable, Tuple, List, Union
_lfsr_length = 16
_key_length = 128 // 8
_iv_length = 128 // 8
_d_table = [
0b100010011010111, 0b010011010111100, 0b110001001101011, 0b001001101011110, 0b101011110001001,
0b011010111100010, 0b111000100110101, 0b000100110101111, 0b100110101111... | 34.857143 | 115 | 0.575712 | 1,324 | 9,272 | 3.812689 | 0.32855 | 0.022187 | 0.028328 | 0.030111 | 0.232964 | 0.194136 | 0.158875 | 0.125 | 0.10004 | 0.094097 | 0 | 0.260626 | 0.286993 | 9,272 | 265 | 116 | 34.988679 | 0.50295 | 0.04616 | 0 | 0.228723 | 0 | 0 | 0.011434 | 0.005434 | 0 | 0 | 0.252236 | 0 | 0 | 1 | 0.079787 | false | 0 | 0.010638 | 0.005319 | 0.148936 | 0.031915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
174754c4ac91f2c3ab2651e5b50cb0d3688bf1d5 | 451 | py | Python | python/204.py | kylekanos/project-euler-1 | af7089356a4cea90f8ef331cfdc65e696def6140 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | python/204.py | kylekanos/project-euler-1 | af7089356a4cea90f8ef331cfdc65e696def6140 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | python/204.py | kylekanos/project-euler-1 | af7089356a4cea90f8ef331cfdc65e696def6140 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-09-17T00:55:58.000Z | 2019-09-17T00:55:58.000Z | #!/usr/bin/env python
from itertools import count
N=100
M=10**9
prime = [True]*N
parr=[]
prime[0]=prime[1]=False
for i in count(2):
if i*i>=N: break
if not prime[i]: continue
for j in xrange(i*i,N,i):
prime[j]=False
for i in xrange(N):
if prime[i]: parr.append(i)
def porking(i,curval):
if... | 18.791667 | 58 | 0.625277 | 88 | 451 | 3.204545 | 0.409091 | 0.085106 | 0.06383 | 0.078014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.208426 | 451 | 23 | 59 | 19.608696 | 0.7507 | 0.044346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 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 |
1747f93f1fde25572e5a34e3e12f00b90367f462 | 5,156 | py | Python | main/Tester.py | kevinco27/attentional-similarity | 0041f2ddaad45fdf1c6b673fe91746b71d1e5427 | [
"MIT"
] | 26 | 2019-02-14T05:54:42.000Z | 2022-03-29T15:16:32.000Z | main/Tester.py | kevinco27/attentional-similarity | 0041f2ddaad45fdf1c6b673fe91746b71d1e5427 | [
"MIT"
] | 2 | 2019-09-28T09:11:07.000Z | 2020-03-23T02:59:35.000Z | main/Tester.py | kevinco27/attentional-similarity | 0041f2ddaad45fdf1c6b673fe91746b71d1e5427 | [
"MIT"
] | 4 | 2019-10-08T08:35:20.000Z | 2022-02-09T19:57:22.000Z | import os
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
import torch
import torch.optim as optim
import torch.nn.functional as F
from torch.autograd import Variable
import time
import sys
sys.path.append('./net')
from fun import *
from protnet_att import *
from loader import *
from data_gentor import *
class Tester:
... | 34.373333 | 109 | 0.508728 | 712 | 5,156 | 3.526685 | 0.214888 | 0.046595 | 0.019514 | 0.022302 | 0.411788 | 0.334528 | 0.297491 | 0.287137 | 0.287137 | 0.287137 | 0 | 0.034012 | 0.361327 | 5,156 | 149 | 110 | 34.604027 | 0.728515 | 0.050621 | 0 | 0.297297 | 0 | 0 | 0.041172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.099099 | null | null | 0.117117 | 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 |
17480a342704fd79ce1bee46e52329edda9a49a7 | 2,809 | py | Python | geodataset/models.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 5 | 2019-07-01T17:50:44.000Z | 2022-02-20T02:44:42.000Z | geodataset/models.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 3 | 2020-06-05T21:44:33.000Z | 2021-06-10T21:39:26.000Z | geodataset/models.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 1 | 2021-12-09T06:32:40.000Z | 2021-12-09T06:32:40.000Z | """Models for Geodataset"""
from django.db import models
from django.utils.functional import cached_property
from branding.mixins import OrganizationMixin
from everyvoter_common.utils.models import TimestampModel, UUIDModel
from everyvoter_common.utils.soft_delete import SoftDeleteModel, ActiveManager
class GeoDatas... | 32.287356 | 80 | 0.693841 | 298 | 2,809 | 6.40604 | 0.285235 | 0.046097 | 0.03143 | 0.039811 | 0.15715 | 0.15715 | 0.06286 | 0 | 0 | 0 | 0 | 0.003135 | 0.205055 | 2,809 | 86 | 81 | 32.662791 | 0.851769 | 0.179423 | 0 | 0.265306 | 0 | 0 | 0.123822 | 0.034993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.102041 | 0 | 0.734694 | 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 |
174d402ad018f76394bfbae6a325cf027742eaa5 | 270 | py | Python | src/features/multi_process.py | howewenann/fake_news | aa69c302c5b50fad08af321e1e116ed8506ebaf6 | [
"FTL"
] | null | null | null | src/features/multi_process.py | howewenann/fake_news | aa69c302c5b50fad08af321e1e116ed8506ebaf6 | [
"FTL"
] | 1 | 2021-05-31T05:58:04.000Z | 2021-05-31T05:58:04.000Z | src/features/multi_process.py | howewenann/long_texts | aa69c302c5b50fad08af321e1e116ed8506ebaf6 | [
"FTL"
] | null | null | null | from multiprocessing import Pool
def parallelize_dataframe(df, func, ncores=4):
df_split = np.array_split(df, ncores)
pool = Pool(ncores)
out = pd.concat(pool.map(func, df_split), ignore_index=True, sort=True)
pool.close()
pool.join()
return out | 30 | 75 | 0.7 | 40 | 270 | 4.6 | 0.625 | 0.076087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.181481 | 270 | 9 | 76 | 30 | 0.828054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 |
1753520d21d96ab1f746e484ecda0dff144a7e74 | 2,032 | py | Python | Chakravala/sqrt_approx.py | Rachiiit/Chakravala | feee7cf8b847ace583c5b102648659f67ae17372 | [
"CC0-1.0"
] | null | null | null | Chakravala/sqrt_approx.py | Rachiiit/Chakravala | feee7cf8b847ace583c5b102648659f67ae17372 | [
"CC0-1.0"
] | null | null | null | Chakravala/sqrt_approx.py | Rachiiit/Chakravala | feee7cf8b847ace583c5b102648659f67ae17372 | [
"CC0-1.0"
] | 1 | 2021-10-05T12:50:09.000Z | 2021-10-05T12:50:09.000Z | # -*- coding: utf-8 -*-
import math
from ._utils import compose
from .chakravala import chakravala_terno
def sqrt_approx(n, eps):
"""
Este método devolve um valor aproximado para a raíz quadrada de n usando
os valores do Python para os quadrados perfeitos e o método Chakravala
para os não-q... | 33.866667 | 79 | 0.592028 | 280 | 2,032 | 4.164286 | 0.357143 | 0.017153 | 0.030875 | 0.036021 | 0.38765 | 0.38765 | 0.349914 | 0.349914 | 0.329331 | 0.329331 | 0 | 0.083392 | 0.303642 | 2,032 | 60 | 80 | 33.866667 | 0.740636 | 0.545768 | 0 | 0.090909 | 0 | 0 | 0.116343 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.318182 | 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 |
1755030fcb632f3d56344b33c3d01176f21c2a4a | 245 | py | Python | CONTENT/Resources/guides/__UNSORTED/119.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 13 | 2021-03-11T00:25:22.000Z | 2022-03-19T00:19:23.000Z | CONTENT/Resources/guides/__UNSORTED/119.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 162 | 2021-03-09T01:52:11.000Z | 2022-03-12T01:09:07.000Z | CONTENT/Resources/guides/__UNSORTED/119.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 12 | 2021-04-26T19:43:01.000Z | 2022-01-31T08:36:29.000Z | class Solution:
def getRow(self, rowIndex: int) -> List[int]:
if rowIndex == 0:
return [1]
s = [1]
for i in range(1, rowIndex + 1):
s = [sum(x) for x in zip([0] + s, s + [0])]
return s
| 27.222222 | 55 | 0.44898 | 36 | 245 | 3.055556 | 0.555556 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.4 | 245 | 8 | 56 | 30.625 | 0.70068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1755579df570f604c061e9a8d7ee1ed4c88b0f87 | 1,356 | py | Python | django_thermostat/pypelib/persistence/backends/rawfile/RAWFile.py | jpardobl/django-thermostat | 184e398134f289eb0337ec2af33c650f9ee26a13 | [
"BSD-3-Clause"
] | null | null | null | django_thermostat/pypelib/persistence/backends/rawfile/RAWFile.py | jpardobl/django-thermostat | 184e398134f289eb0337ec2af33c650f9ee26a13 | [
"BSD-3-Clause"
] | null | null | null | django_thermostat/pypelib/persistence/backends/rawfile/RAWFile.py | jpardobl/django-thermostat | 184e398134f289eb0337ec2af33c650f9ee26a13 | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
import time
import copy
try:
import cPickle as pickle
except:
import pickle
from threading import Thread, Lock
from pypelib.resolver.Resolver import Resolver
'''
@author: lbergesio,omoya,cbermudo
@organization: i2CAT, OFELIA FP7
RAWFile
Implementes persistence ... | 22.983051 | 77 | 0.674041 | 167 | 1,356 | 5.431138 | 0.502994 | 0.046307 | 0.048512 | 0.052922 | 0.070562 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001898 | 0.222714 | 1,356 | 58 | 78 | 23.37931 | 0.858634 | 0.038348 | 0 | 0.263158 | 0 | 0 | 0.14539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.210526 | null | null | 0.026316 | 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 |
1756bae1a1e09a8f703d4f207045cc5a772413af | 431 | py | Python | setup.py | MrFunBarn/astrobudy-spec-tools | 037a449c3631f7220bd1cfc0562a59781bf87b56 | [
"BSD-3-Clause"
] | null | null | null | setup.py | MrFunBarn/astrobudy-spec-tools | 037a449c3631f7220bd1cfc0562a59781bf87b56 | [
"BSD-3-Clause"
] | 8 | 2015-09-11T07:04:09.000Z | 2015-09-22T23:57:31.000Z | setup.py | MrFunBarn/astrobudy-spec-tools | 037a449c3631f7220bd1cfc0562a59781bf87b56 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/python
from distutils.core import setup
setup(name='chiron-spec-tools',
version='1.0',
description='Some tools to view and normalize SMARTS 1.5m CHIRON data',
author='Brandon Bell',
author_email='bmbellat@gmail.com',
url='git://github.com/MrFunBarn/chiron-spec-tools.git',
... | 30.785714 | 77 | 0.670534 | 55 | 431 | 5.218182 | 0.745455 | 0.069686 | 0.10453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.174014 | 431 | 13 | 78 | 33.153846 | 0.794944 | 0.039443 | 0 | 0 | 0 | 0 | 0.513317 | 0.116223 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1758ca82c50056e545c257ea677642cb21c30ff4 | 1,232 | py | Python | busca-jogos/notebooks/visuals.py | IvanBrasilico/AI-NanoDegree | 531e63d99ae906b5908e064e9b716ebe22e48c8f | [
"MIT"
] | null | null | null | busca-jogos/notebooks/visuals.py | IvanBrasilico/AI-NanoDegree | 531e63d99ae906b5908e064e9b716ebe22e48c8f | [
"MIT"
] | null | null | null | busca-jogos/notebooks/visuals.py | IvanBrasilico/AI-NanoDegree | 531e63d99ae906b5908e064e9b716ebe22e48c8f | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
from matplotlib.collections import PatchCollection
from matplotlib.patches import Rectangle
from busca.classes import ALTURAS, COLUNAS
def plot_patio(patio, nome_pilha='0001'):
fig = plt.figure(figsize=(15, 5))
ax = plt.subplot(111)
passo_x = 1 / len(COLUNAS)
passo_y =... | 37.333333 | 87 | 0.576299 | 157 | 1,232 | 4.356688 | 0.477707 | 0.061404 | 0.030702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043275 | 0.306006 | 1,232 | 32 | 88 | 38.5 | 0.756725 | 0 | 0 | 0.074074 | 0 | 0 | 0.044643 | 0.040584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.259259 | 0.148148 | 0 | 0.185185 | 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 |
175cbea9180c9b976613acc8290cc47149763254 | 1,134 | py | Python | diskcollections/handlers.py | ectomancer/python-disk-collections | eff4e54c56cef3120a0ffda231b962880f279bda | [
"MIT"
] | 1 | 2018-12-10T15:08:33.000Z | 2018-12-10T15:08:33.000Z | diskcollections/handlers.py | ectomancer/python-disk-collections | eff4e54c56cef3120a0ffda231b962880f279bda | [
"MIT"
] | null | null | null | diskcollections/handlers.py | ectomancer/python-disk-collections | eff4e54c56cef3120a0ffda231b962880f279bda | [
"MIT"
] | null | null | null | import json
import pickle
import zlib
from diskcollections.interfaces import IHandler
class PickleHandler(IHandler):
dumps = staticmethod(pickle.dumps)
loads = staticmethod(pickle.loads)
class PickleZLibHandler(IHandler):
@staticmethod
def dumps(
obj,
protocol=pickle.HIGHEST_PROTOC... | 22.68 | 54 | 0.679894 | 115 | 1,134 | 6.66087 | 0.278261 | 0.078329 | 0.065274 | 0.073107 | 0.287206 | 0.133159 | 0.133159 | 0 | 0 | 0 | 0 | 0 | 0.23545 | 1,134 | 49 | 55 | 23.142857 | 0.883506 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
175dd9f52ad22832599faa0381b5c29e5b523793 | 2,574 | py | Python | run_example.py | hadyelsahar/RE-NLG-Dataset | 460d52d50e5dc302cdd879f1435bda45a4946202 | [
"MIT"
] | 44 | 2018-03-05T00:40:30.000Z | 2022-03-21T04:44:09.000Z | run_example.py | hadyelsahar/RE-NLG-Dataset | 460d52d50e5dc302cdd879f1435bda45a4946202 | [
"MIT"
] | 4 | 2018-11-08T15:32:46.000Z | 2020-10-24T14:32:10.000Z | run_example.py | hadyelsahar/RE-NLG-Dataset | 460d52d50e5dc302cdd879f1435bda45a4946202 | [
"MIT"
] | 10 | 2018-01-23T00:30:39.000Z | 2021-11-08T03:24:25.000Z | from pipeline.pipeline import *
from pipeline.entitylinker import *
from pipeline.triplealigner import *
from pipeline.datareader import DBpediaAbstractsDataReader
from pipeline.writer import *
from pipeline.coreference import *
from pipeline.placeholdertagger import *
from utils.triplereader import *
from utils.triple... | 33.428571 | 148 | 0.714064 | 321 | 2,574 | 5.607477 | 0.317757 | 0.035556 | 0.025 | 0.066667 | 0.143333 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0.008854 | 0.166278 | 2,574 | 76 | 149 | 33.868421 | 0.829916 | 0.110723 | 0 | 0.041667 | 0 | 0.020833 | 0.224857 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
175fd18b4620efdfb2a7b482d87eb16cceb1c2bb | 2,332 | py | Python | data/artists/artists_all.py | weiwang/munia | 9232b25c826bf86f568554dca9f77b09a58b9036 | [
"MIT"
] | null | null | null | data/artists/artists_all.py | weiwang/munia | 9232b25c826bf86f568554dca9f77b09a58b9036 | [
"MIT"
] | null | null | null | data/artists/artists_all.py | weiwang/munia | 9232b25c826bf86f568554dca9f77b09a58b9036 | [
"MIT"
] | null | null | null | import scraperwiki
import lxml.html
import urlparse
import urllib
import json
from rdflib import Graph, URIRef
from unidecode import unidecode
from geopy.geocoders import Nominatim
## Dbpedia for b and d dates
artists_url = [url.split('/')[-1] for url in json.load(open("wiki_dump.json")).keys()]
def unquote_uni(artist... | 37.015873 | 232 | 0.610206 | 299 | 2,332 | 4.675585 | 0.351171 | 0.040057 | 0.051502 | 0.021459 | 0.175966 | 0.111588 | 0.111588 | 0.111588 | 0.111588 | 0.111588 | 0 | 0.008219 | 0.21741 | 2,332 | 62 | 233 | 37.612903 | 0.757808 | 0.06518 | 0 | 0.150943 | 0 | 0 | 0.214914 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.150943 | null | null | 0.018868 | 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 |
176244d68276bd26ac3b2410ecb9de1224c785a3 | 1,350 | py | Python | database/views.py | dave8697/Health-Prediction-Apps | 42a9734fd5da9b32063f0bde6c13e01476038e42 | [
"MIT"
] | 1 | 2021-03-08T18:18:18.000Z | 2021-03-08T18:18:18.000Z | database/views.py | dave8697/Health-Prediction-Apps | 42a9734fd5da9b32063f0bde6c13e01476038e42 | [
"MIT"
] | null | null | null | database/views.py | dave8697/Health-Prediction-Apps | 42a9734fd5da9b32063f0bde6c13e01476038e42 | [
"MIT"
] | 2 | 2021-02-22T15:12:27.000Z | 2021-03-08T18:18:30.000Z | from django.shortcuts import redirect, render
from .models import userlist
# Create your views here.
def database():
return ()
def login_check(request):
if request.method == "POST":
uid = request.POST.get('email')
passwd = request.POST.get('pass')
context = {}
ulist = userlist.... | 37.5 | 157 | 0.592593 | 151 | 1,350 | 5.291391 | 0.384106 | 0.123905 | 0.157697 | 0.055069 | 0.142678 | 0.077597 | 0.077597 | 0 | 0 | 0 | 0 | 0.005 | 0.259259 | 1,350 | 36 | 158 | 37.5 | 0.794 | 0.017037 | 0 | 0.1875 | 0 | 0 | 0.082956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.125 | 0.0625 | 0.03125 | 0.28125 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
17659a096538ee4641cfb6f09cc810c4e2775973 | 1,333 | py | Python | model_based/dataengine/select_anno.py | vohoaiviet/tag-image-retrieval | 0a257560581f702cd394f3f28c9e0f6202827ce8 | [
"MIT"
] | 50 | 2015-11-04T15:53:09.000Z | 2022-01-03T14:46:17.000Z | model_based/dataengine/select_anno.py | vohoaiviet/tag-image-retrieval | 0a257560581f702cd394f3f28c9e0f6202827ce8 | [
"MIT"
] | 2 | 2018-03-07T09:51:50.000Z | 2018-10-13T11:05:13.000Z | model_based/dataengine/select_anno.py | vohoaiviet/tag-image-retrieval | 0a257560581f702cd394f3f28c9e0f6202827ce8 | [
"MIT"
] | 17 | 2015-10-26T03:41:49.000Z | 2021-08-23T08:11:05.000Z | import sys, os
from basic.common import checkToSkip, ROOT_PATH, makedirsforfile
from basic.annotationtable import readConcepts, readAnnotationsFrom, writeAnnotationsTo, writeConceptsTo
from basic.data import readImageSet
if __name__ == '__main__':
args = sys.argv[1:]
rootpath = '/var/scratch2/xirong/VisualSea... | 37.027778 | 138 | 0.705176 | 145 | 1,333 | 6.42069 | 0.42069 | 0.029001 | 0.019334 | 0.079484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009372 | 0.19955 | 1,333 | 35 | 139 | 38.085714 | 0.863168 | 0 | 0 | 0 | 0 | 0 | 0.057014 | 0.024756 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 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 |
1769478efa0ed1308435581b1c0ae8dbd14edb3e | 4,685 | py | Python | accounts/forms.py | vijayendra/django-angular-example | 5799795f5f687b0871f95658a93b1cf3a0fbe1cf | [
"MIT"
] | null | null | null | accounts/forms.py | vijayendra/django-angular-example | 5799795f5f687b0871f95658a93b1cf3a0fbe1cf | [
"MIT"
] | null | null | null | accounts/forms.py | vijayendra/django-angular-example | 5799795f5f687b0871f95658a93b1cf3a0fbe1cf | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django import forms
from django.contrib.auth import (
authenticate, get_user_model, password_validation,
)
from django.utils.translation import ugettext, ugettext_lazy as _
from django.utils.text import capfirst
from djng.styling.bootstrap3.forms import Bootstrap3Form, ... | 35.225564 | 96 | 0.645891 | 524 | 4,685 | 5.614504 | 0.30916 | 0.021754 | 0.03569 | 0.030591 | 0.190007 | 0.100612 | 0.057784 | 0.041468 | 0.041468 | 0 | 0 | 0.006393 | 0.265528 | 4,685 | 132 | 97 | 35.492424 | 0.848591 | 0.14984 | 0 | 0.079545 | 0 | 0 | 0.125714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079545 | false | 0.238636 | 0.090909 | 0.011364 | 0.386364 | 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 |
177a01051f720c749248effefead5ed391a6a1c9 | 4,278 | py | Python | moha/system/operator/base.py | ZhaoYilin/moha | d701fd921839474380982db1478e66f0dc8cbd98 | [
"MIT"
] | 12 | 2019-12-07T18:37:34.000Z | 2022-03-30T14:23:38.000Z | moha/system/operator/base.py | ZhaoYilin/moha | d701fd921839474380982db1478e66f0dc8cbd98 | [
"MIT"
] | null | null | null | moha/system/operator/base.py | ZhaoYilin/moha | d701fd921839474380982db1478e66f0dc8cbd98 | [
"MIT"
] | 2 | 2019-12-08T05:48:47.000Z | 2021-10-31T21:40:21.000Z | from abc import abstractmethod,abstractproperty
from moha.system.operator.abc import ABCOperator
import numpy as np
class BaseOperator(ABCOperator):
"""Base operator class.
Attributes
----------
name : str
Name of the operator.
nspatial : int
Number of the spatial orbitals.
... | 24.872093 | 84 | 0.568957 | 438 | 4,278 | 5.511416 | 0.175799 | 0.069594 | 0.036454 | 0.066694 | 0.641259 | 0.523198 | 0.440348 | 0.408451 | 0.318144 | 0.22121 | 0 | 0.001431 | 0.346424 | 4,278 | 171 | 85 | 25.017544 | 0.861946 | 0.501403 | 0 | 0.058824 | 0 | 0 | 0.147201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.088235 | 0 | 0.352941 | 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 |
177d418203242ae53830ab11a407ff31462b654d | 764 | py | Python | utils/config_parser.py | kulShah/Tensorflow-Project-Template | 005e1de8f00b78218dca39360ff51fe9eead5828 | [
"Apache-2.0"
] | null | null | null | utils/config_parser.py | kulShah/Tensorflow-Project-Template | 005e1de8f00b78218dca39360ff51fe9eead5828 | [
"Apache-2.0"
] | null | null | null | utils/config_parser.py | kulShah/Tensorflow-Project-Template | 005e1de8f00b78218dca39360ff51fe9eead5828 | [
"Apache-2.0"
] | null | null | null | import json
import os
from bunch import Bunch
def get_config_from_json(json_file):
"""
Get the config from a JSON file
param: json_file
return: config(namespace) or config(dictionary)
"""
# parse the configs from the config json file provided
with open(json_file, 'r') as config_file:
... | 30.56 | 91 | 0.715969 | 108 | 764 | 4.851852 | 0.361111 | 0.10687 | 0.049618 | 0.064886 | 0.236641 | 0.236641 | 0.141221 | 0.141221 | 0 | 0 | 0 | 0 | 0.189791 | 764 | 25 | 92 | 30.56 | 0.846527 | 0.267016 | 0 | 0 | 0 | 0 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
177d8d4c39d982f5a8aa5cf753f8917454171815 | 1,202 | py | Python | data/data_conv/create_lda.py | huonw/nmslib | 2e424ef7c6eff10ecaf47392fd99f93f645e752f | [
"Apache-2.0"
] | 2,031 | 2018-03-29T00:59:55.000Z | 2022-03-31T23:54:33.000Z | data/data_conv/create_lda.py | huonw/nmslib | 2e424ef7c6eff10ecaf47392fd99f93f645e752f | [
"Apache-2.0"
] | 262 | 2018-03-29T17:44:53.000Z | 2022-03-31T02:56:40.000Z | data/data_conv/create_lda.py | huonw/nmslib | 2e424ef7c6eff10ecaf47392fd99f93f645e752f | [
"Apache-2.0"
] | 281 | 2018-03-29T13:12:50.000Z | 2022-03-28T15:18:31.000Z | #!/usr/bin/env python
import logging, gensim, bz2, sys
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
# load id->word mapping (the dictionary), one of the results of step 2 above
id2word = gensim.corpora.Dictionary.load_from_text('sparse_wiki_wordids.txt')
# load corpus ite... | 34.342857 | 117 | 0.742928 | 184 | 1,202 | 4.755435 | 0.48913 | 0.059429 | 0.072 | 0.054857 | 0.249143 | 0.196571 | 0.196571 | 0.105143 | 0 | 0 | 0 | 0.020619 | 0.112313 | 1,202 | 34 | 118 | 35.352941 | 0.799438 | 0.096506 | 0 | 0 | 0 | 0 | 0.255083 | 0.07671 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.045455 | 0.045455 | null | null | 0.227273 | 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 |
179020fdda536c1864d8165d8e2dcb0beb40edf7 | 7,711 | py | Python | datasrc/compile.py | noother/ddracemax_old | f383b56de7827b6f1de7cff70dad836768e07d76 | [
"Zlib"
] | 2 | 2017-09-30T22:06:07.000Z | 2021-07-20T23:50:33.000Z | datasrc/compile.py | floff/ddracemax_old | f1356177c49a3bc20632df9a84a51bc491c37f7d | [
"Zlib"
] | 1 | 2017-11-22T15:10:02.000Z | 2019-06-21T05:13:30.000Z | datasrc/compile.py | floff/ddracemax_old | f1356177c49a3bc20632df9a84a51bc491c37f7d | [
"Zlib"
] | 3 | 2018-05-12T00:10:43.000Z | 2021-07-16T13:25:57.000Z | import os, imp, sys
from datatypes import *
import content
import network
def create_enum_table(names, num):
lines = []
lines += ["enum", "{"]
lines += ["\t%s=0,"%names[0]]
for name in names[1:]:
lines += ["\t%s,"%name]
lines += ["\t%s" % num, "};"]
return lines
def create_flags_table(names):
lines = []
lin... | 31.218623 | 115 | 0.661912 | 1,086 | 7,711 | 4.494475 | 0.137201 | 0.043024 | 0.029502 | 0.014751 | 0.439459 | 0.337226 | 0.252612 | 0.192583 | 0.158984 | 0.108584 | 0 | 0.00538 | 0.1564 | 7,711 | 246 | 116 | 31.345528 | 0.744965 | 0.012709 | 0 | 0.292929 | 0 | 0.005051 | 0.391847 | 0.075871 | 0 | 0 | 0.001315 | 0 | 0 | 0 | null | null | 0 | 0.020202 | null | null | 0.237374 | 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 |
17a0b45b04422d4443c919df8122faa0f7aaacda | 1,067 | py | Python | setup.py | zevbaker/py_win_keyboard_layout | b229e3415d3525c933bb29350a0e55f6bfc14830 | [
"MIT"
] | 5 | 2018-11-29T15:31:33.000Z | 2021-11-16T05:19:46.000Z | setup.py | zevbaker/py_win_keyboard_layout | b229e3415d3525c933bb29350a0e55f6bfc14830 | [
"MIT"
] | 2 | 2018-11-28T09:58:49.000Z | 2020-10-08T12:38:26.000Z | setup.py | zevbaker/py_win_keyboard_layout | b229e3415d3525c933bb29350a0e55f6bfc14830 | [
"MIT"
] | 5 | 2019-11-22T02:34:43.000Z | 2022-02-18T09:58:09.000Z | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='py_win_keyboard_layout',
version='0.2',
description='Interaction with keyboard layout on windows',
long_description=readme(),
classifiers=[
'Development Status ::... | 32.333333 | 81 | 0.56701 | 105 | 1,067 | 5.628571 | 0.685714 | 0.118443 | 0.06599 | 0.096447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020216 | 0.304592 | 1,067 | 32 | 82 | 33.34375 | 0.77628 | 0 | 0 | 0.071429 | 0 | 0 | 0.460169 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | true | 0 | 0.035714 | 0 | 0.107143 | 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 |
bd5aa0d3fbae4502e0e4e035a4b2ddfede904ce3 | 997 | py | Python | flashcards/migrations/0002_auto_20220111_2058.py | YellowAndGreen/Anki2 | 53165465b94ce4d27f3683e030564c8f4289f57f | [
"MIT"
] | null | null | null | flashcards/migrations/0002_auto_20220111_2058.py | YellowAndGreen/Anki2 | 53165465b94ce4d27f3683e030564c8f4289f57f | [
"MIT"
] | null | null | null | flashcards/migrations/0002_auto_20220111_2058.py | YellowAndGreen/Anki2 | 53165465b94ce4d27f3683e030564c8f4289f57f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2022-01-11 12:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('flashcards', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name... | 32.16129 | 115 | 0.548646 | 94 | 997 | 5.723404 | 0.62766 | 0.04461 | 0.052045 | 0.081784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.312939 | 997 | 30 | 116 | 33.233333 | 0.756204 | 0.045135 | 0 | 0.083333 | 1 | 0 | 0.111957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 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 |
bd5b406d3ff3d80a1ec274c79ef5f4f303dc0d84 | 367 | py | Python | lang/py/cookbook/v2/source/cb2_19_16_exm_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_19_16_exm_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_19_16_exm_3.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | def partfast(n):
# base case of the recursion: zero is the sum of the empty tuple
if n == 0:
yield []
return
# modify the partitions of n-1 to form the partitions of n
for p in partfast(n-1):
p.append(1)
yield p
p.pop()
if p and (len(p) < 2 or p[-2] > p[-1... | 26.214286 | 68 | 0.493188 | 62 | 367 | 2.919355 | 0.5 | 0.099448 | 0.165746 | 0.176796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040724 | 0.39782 | 367 | 13 | 69 | 28.230769 | 0.778281 | 0.324251 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 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 |
bd5dd8b769f1f86858b5364dae8a5d555292a6e9 | 1,874 | py | Python | discretize/mixins/__init__.py | bluetyson/discretize | a4ead91d6a1f84658ab20946da5fa86dc9ccc831 | [
"MIT"
] | null | null | null | discretize/mixins/__init__.py | bluetyson/discretize | a4ead91d6a1f84658ab20946da5fa86dc9ccc831 | [
"MIT"
] | null | null | null | discretize/mixins/__init__.py | bluetyson/discretize | a4ead91d6a1f84658ab20946da5fa86dc9ccc831 | [
"MIT"
] | null | null | null | """
The ``mixins`` module provides a set of tools for interfacing ``discretize``
with external libraries such as VTK and OMF. These modules are only imported if
those external packages are available in the active Python environment and
provide extra functionality that different finite volume meshes can inherrit.
"""
A... | 34.703704 | 79 | 0.714514 | 238 | 1,874 | 5.537815 | 0.407563 | 0.106222 | 0.159332 | 0.057663 | 0.490895 | 0.420334 | 0.31563 | 0.31563 | 0.31563 | 0.31563 | 0 | 0.007509 | 0.21825 | 1,874 | 53 | 80 | 35.358491 | 0.89215 | 0.576307 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.238095 | 0.190476 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bd64dbe23e4357cee2cc1c0908e712b8cbb811c3 | 3,914 | py | Python | vott_to_yolo.py | huang475/cv_utils | dcfbb696bd19985962f60375fcb30a560b67b0ef | [
"MIT"
] | null | null | null | vott_to_yolo.py | huang475/cv_utils | dcfbb696bd19985962f60375fcb30a560b67b0ef | [
"MIT"
] | null | null | null | vott_to_yolo.py | huang475/cv_utils | dcfbb696bd19985962f60375fcb30a560b67b0ef | [
"MIT"
] | null | null | null | from os import path, listdir, remove
from functools import reduce
import pandas as pd
import numpy as np
import PIL.Image as Image
def generate_names(vott_annotation_file, names_file):
annotations = read_annotations(vott_annotation_file)
labels = sorted(list(set([d['label'] for d in annotations])))
with o... | 37.634615 | 96 | 0.64742 | 540 | 3,914 | 4.414815 | 0.224074 | 0.09396 | 0.067953 | 0.038591 | 0.284396 | 0.222315 | 0.020134 | 0 | 0 | 0 | 0 | 0.012846 | 0.224323 | 3,914 | 103 | 97 | 38 | 0.772398 | 0.049821 | 0 | 0.051948 | 1 | 0 | 0.059521 | 0.028818 | 0 | 0 | 0 | 0 | 0.012987 | 1 | 0.077922 | false | 0 | 0.064935 | 0.012987 | 0.194805 | 0.012987 | 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 |
bd69240cb83b66ece1496897f1f7b64c176b9e4b | 9,254 | py | Python | telas/tela_editar_livro.py | Gas-Helio/CRUD-Biblioteca | 61c8d68f1a4746b3d3a03bd33a87772bbd34ecfb | [
"MIT"
] | null | null | null | telas/tela_editar_livro.py | Gas-Helio/CRUD-Biblioteca | 61c8d68f1a4746b3d3a03bd33a87772bbd34ecfb | [
"MIT"
] | null | null | null | telas/tela_editar_livro.py | Gas-Helio/CRUD-Biblioteca | 61c8d68f1a4746b3d3a03bd33a87772bbd34ecfb | [
"MIT"
] | 1 | 2020-12-25T04:42:46.000Z | 2020-12-25T04:42:46.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'telas/tela_editar_livro.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Tela_Editar_Livro(object):
def setupUi(self, Tela... | 50.293478 | 138 | 0.69678 | 1,088 | 9,254 | 5.706801 | 0.170037 | 0.07618 | 0.084555 | 0.05798 | 0.357546 | 0.264133 | 0.123208 | 0.10678 | 0.0823 | 0.022226 | 0 | 0.043253 | 0.188027 | 9,254 | 183 | 139 | 50.568306 | 0.783072 | 0.021288 | 0 | 0.129412 | 1 | 0 | 0.094475 | 0.018674 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011765 | false | 0 | 0.005882 | 0 | 0.023529 | 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 |
bd6ec3b212bac9e9abe02bb0834c091e970c9b18 | 2,510 | py | Python | testing/test_gates.py | Abzinger/MAXENT3D_PID | 8cc69a96311e00027caa6d3085615ac5a4ee6203 | [
"Apache-2.0"
] | 4 | 2019-02-03T07:46:16.000Z | 2021-11-16T14:14:49.000Z | testing/test_gates.py | Abzinger/MAXENT3D_PID | 8cc69a96311e00027caa6d3085615ac5a4ee6203 | [
"Apache-2.0"
] | null | null | null | testing/test_gates.py | Abzinger/MAXENT3D_PID | 8cc69a96311e00027caa6d3085615ac5a4ee6203 | [
"Apache-2.0"
] | null | null | null | # test_gates.py
from MAXENT3D_PID import pid, MAXENT3D_PID_Exception
# AND gate
andgate = dict()
andgate[ (0,0,0,0) ] = .125
andgate[ (0,0,0,1) ] = .125
andgate[ (0,0,1,0) ] = .125
andgate[ (0,1,0,0) ] = .125
andgate[ (0,0,1,1) ] = .125
andgate[ (0,1,0,1) ] = .125
andgate[ (0,1,1,0) ] = .125
andgate[ (1,1,1,1) ] = .1... | 27.282609 | 100 | 0.527092 | 444 | 2,510 | 2.970721 | 0.09009 | 0.042456 | 0.027293 | 0.090978 | 0.652767 | 0.442002 | 0.35254 | 0.300986 | 0.257013 | 0.087187 | 0 | 0.143604 | 0.162151 | 2,510 | 91 | 101 | 27.582418 | 0.483595 | 0.098008 | 0 | 0.149254 | 0 | 0 | 0.167111 | 0.029778 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014925 | 0 | 0.014925 | 0.358209 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bd6eecd541c23e0886604014bc68f681d705d68c | 2,091 | py | Python | Python3/480.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | Python3/480.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | Python3/480.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 120 ms submission
class Solution:
def medianSlidingWindow(self, nums: List[int], k: int) -> List[float]:
window = sorted(nums[:k])
res = []
if k % 2 == 0:
res.append((window[... | 34.278689 | 98 | 0.530368 | 226 | 2,091 | 3.60177 | 0.230089 | 0.039312 | 0.058968 | 0.081081 | 0.486486 | 0.486486 | 0.486486 | 0.486486 | 0.486486 | 0.486486 | 0 | 0.030147 | 0.349594 | 2,091 | 60 | 99 | 34.85 | 0.568382 | 0 | 0 | 0.517857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bd74ff7917830903bb718116cf3918743e0c03b6 | 443 | py | Python | test/light_sensor_test.py | ataffe/smartGarden | 31f9004daa788d4ff8ce74df56169b56c70bb4c3 | [
"MIT"
] | 4 | 2020-09-22T05:14:07.000Z | 2021-08-25T08:51:37.000Z | test/light_sensor_test.py | ataffe/smartGarden | 31f9004daa788d4ff8ce74df56169b56c70bb4c3 | [
"MIT"
] | 3 | 2020-02-26T02:20:50.000Z | 2021-06-21T10:51:49.000Z | test/light_sensor_test.py | ataffe/smartGarden | 31f9004daa788d4ff8ce74df56169b56c70bb4c3 | [
"MIT"
] | null | null | null | import board
import busio
import adafruit_tsl2561
import time
i2c = busio.I2C(board.SCL, board.SDA)
sensor = adafruit_tsl2561.TSL2561(i2c)
sensor.gain = 0
while True:
print('Lux: {}'.format(sensor.lux))
print('Broadband: {}'.format(sensor.broadband))
print('Infrared: {}'.format(sensor.infrared... | 26.058824 | 56 | 0.670429 | 55 | 443 | 5.363636 | 0.418182 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045946 | 0.164786 | 443 | 16 | 57 | 27.6875 | 0.751351 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.357143 | 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 |
bd750b626cdf3cb389d337a07206422afb98cac3 | 1,030 | py | Python | central_erros/accounts/tests/test_login_view.py | MarioGN/aceleradev-python-central-de-erros | 02da65a2dd40c943be42d2e8c91797aaa09eb2f4 | [
"MIT"
] | 1 | 2020-06-09T21:25:34.000Z | 2020-06-09T21:25:34.000Z | central_erros/accounts/tests/test_login_view.py | MarioGN/aceleradev-python-central-de-erros | 02da65a2dd40c943be42d2e8c91797aaa09eb2f4 | [
"MIT"
] | 3 | 2021-03-30T13:38:57.000Z | 2021-09-22T19:09:21.000Z | central_erros/accounts/tests/test_login_view.py | MarioGN/aceleradev-python-central-de-erros | 02da65a2dd40c943be42d2e8c91797aaa09eb2f4 | [
"MIT"
] | null | null | null | from django.urls import reverse
from django.test import TestCase
from django.contrib.auth import get_user_model
from rest_framework import status
from rest_framework.test import APIClient
User = get_user_model()
class JWTLoginWithEmailAndPasswordTestCase(TestCase):
def setUp(self):
self.data = {'userna... | 38.148148 | 98 | 0.748544 | 134 | 1,030 | 5.485075 | 0.402985 | 0.054422 | 0.032653 | 0.046259 | 0.321088 | 0.321088 | 0.321088 | 0.321088 | 0.321088 | 0.195918 | 0 | 0.019406 | 0.149515 | 1,030 | 26 | 99 | 39.615385 | 0.819635 | 0 | 0 | 0.105263 | 0 | 0 | 0.093204 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.157895 | false | 0.263158 | 0.263158 | 0 | 0.473684 | 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 |
bd859bd639d866fb5a90be3d8bdb9457b8371a64 | 2,545 | py | Python | src/ndn/bin/nfdc/cmd_get_route.py | tianyuan129/python-ndn | f390b3122d2a233a9a22a1ee9468b1241c46ef86 | [
"Apache-2.0"
] | 5 | 2019-10-03T01:26:43.000Z | 2020-07-07T15:21:52.000Z | src/ndn/bin/nfdc/cmd_get_route.py | tianyuan129/python-ndn | f390b3122d2a233a9a22a1ee9468b1241c46ef86 | [
"Apache-2.0"
] | 12 | 2019-10-28T03:17:16.000Z | 2020-08-26T22:10:52.000Z | src/ndn/bin/nfdc/cmd_get_route.py | tianyuan129/python-ndn | f390b3122d2a233a9a22a1ee9468b1241c46ef86 | [
"Apache-2.0"
] | 10 | 2019-10-18T21:16:43.000Z | 2021-06-24T07:26:22.000Z | # -----------------------------------------------------------------------------
# Copyright (C) 2019-2021 The python-ndn authors
#
# This file is part of python-ndn.
#
# 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 ... | 39.765625 | 111 | 0.584283 | 315 | 2,545 | 4.638095 | 0.469841 | 0.041068 | 0.017796 | 0.021903 | 0.210815 | 0.210815 | 0.210815 | 0.157426 | 0.157426 | 0.157426 | 0 | 0.009023 | 0.259725 | 2,545 | 63 | 112 | 40.396825 | 0.766454 | 0.323379 | 0 | 0.205128 | 0 | 0.025641 | 0.163829 | 0.067528 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.051282 | false | 0 | 0.128205 | 0 | 0.179487 | 0.179487 | 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 |
bd88ee9ebacb9a56380a386af5383d08c8a872de | 431 | py | Python | app/v0/middleware/cors/options.py | ojhermann/property_bids | 588df29122cec402e065a3ca3f346cad4becb105 | [
"MIT"
] | null | null | null | app/v0/middleware/cors/options.py | ojhermann/property_bids | 588df29122cec402e065a3ca3f346cad4becb105 | [
"MIT"
] | 4 | 2021-07-07T12:43:12.000Z | 2021-07-15T13:56:10.000Z | app/v0/middleware/cors/options.py | ojhermann/property_bids | 588df29122cec402e065a3ca3f346cad4becb105 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
load_dotenv()
allowed_origins: dict[str, list[str]] = dict(
development=["http://localhost:8000"],
staging=["https://staging.url"],
production=["https://production.url"],
)
cors_options: dict[str, list[str]] = dict(
allow_origins=allowed_origins[os.getenv("WHI... | 23.944444 | 58 | 0.677494 | 53 | 431 | 5.320755 | 0.584906 | 0.070922 | 0.078014 | 0.099291 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.136891 | 431 | 17 | 59 | 25.352941 | 0.747312 | 0 | 0 | 0 | 0 | 0 | 0.197216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 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 |
bd91cafc27a9431ab1e376edcb5e9af196d636e1 | 529 | py | Python | containernet/scenarios/packetcapture.py | moonfalir/QuicSim-Docker | edf67c930f4d728e01f19fbb43fc3f0762a1e5bd | [
"MIT"
] | 2 | 2020-09-24T09:52:33.000Z | 2021-02-16T17:10:43.000Z | containernet/scenarios/packetcapture.py | moonfalir/QuicSim-Docker | edf67c930f4d728e01f19fbb43fc3f0762a1e5bd | [
"MIT"
] | 1 | 2019-12-17T12:27:14.000Z | 2019-12-17T12:27:14.000Z | containernet/scenarios/packetcapture.py | moonfalir/QuicSim-Docker | edf67c930f4d728e01f19fbb43fc3f0762a1e5bd | [
"MIT"
] | 1 | 2021-06-18T07:21:14.000Z | 2021-06-18T07:21:14.000Z | import subprocess
class PacketCapture:
_clientint = "s1-eth2"
_serverint = "s2-eth2"
_clientcapture = None
_servercapture = None
def startCapture(self):
self._clientcapture = subprocess.Popen(["tcpdump", "-i", self._clientint, "-w", "/logs/trace_node_clients.pcap"])
self._serverc... | 33.0625 | 122 | 0.674858 | 54 | 529 | 6.351852 | 0.5 | 0.046647 | 0.122449 | 0.134111 | 0.157434 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.183365 | 529 | 16 | 123 | 33.0625 | 0.784722 | 0 | 0 | 0 | 0 | 0 | 0.177358 | 0.109434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bd9e2010e76c6381bd7dc913e6fbc18f5a5370b4 | 664 | py | Python | workspaces/migrations/0007_auto_20200427_1435.py | ralphleyga/sleeknotes | b92c8dd12021eb0bfddcdf5dc046b8173930b68b | [
"MIT"
] | null | null | null | workspaces/migrations/0007_auto_20200427_1435.py | ralphleyga/sleeknotes | b92c8dd12021eb0bfddcdf5dc046b8173930b68b | [
"MIT"
] | 4 | 2021-03-19T02:32:55.000Z | 2021-06-10T19:03:45.000Z | workspaces/migrations/0007_auto_20200427_1435.py | ralphleyga/sleeknotes | b92c8dd12021eb0bfddcdf5dc046b8173930b68b | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-27 14:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('socialaccount', '0003_extra_data_default_dict'),
('workspaces', '0006_workspaceuserconnect'),
]
operations ... | 27.666667 | 138 | 0.649096 | 67 | 664 | 6.313433 | 0.686567 | 0.056738 | 0.066194 | 0.104019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045365 | 0.236446 | 664 | 23 | 139 | 28.869565 | 0.788955 | 0.067771 | 0 | 0.117647 | 1 | 0 | 0.236629 | 0.12966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
bda074bd635ce4dbdade80e18c8c89ee80d03ca1 | 1,722 | py | Python | Server/test/__init__.py | devArtoria/-Awesome-GraphQL- | db13f235b2d1e6aeee6e858a2c682b7f86bd7062 | [
"MIT"
] | 27 | 2019-03-20T14:13:09.000Z | 2022-03-18T20:36:39.000Z | Server/test/__init__.py | devArtoria/-Awesome-GraphQL- | db13f235b2d1e6aeee6e858a2c682b7f86bd7062 | [
"MIT"
] | 5 | 2018-04-17T10:54:13.000Z | 2018-09-25T10:30:29.000Z | Server/test/__init__.py | devArtoria/-Awesome-GraphQL- | db13f235b2d1e6aeee6e858a2c682b7f86bd7062 | [
"MIT"
] | 14 | 2019-02-26T05:43:39.000Z | 2022-03-01T15:39:26.000Z | import unittest
from config import dev
from Server import create_app
import json
app = create_app(dev.DevConfig)
class BasicTestCase(unittest.TestCase):
def __init__(self, *args, **kwargs):
unittest.TestCase.__init__(self, *args, **kwargs)
app.testing = True
self.tester = app.test_clien... | 30.75 | 113 | 0.454704 | 148 | 1,722 | 5.128378 | 0.452703 | 0.039526 | 0.055336 | 0.047431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002066 | 0.437863 | 1,722 | 55 | 114 | 31.309091 | 0.782025 | 0.026713 | 0 | 0.05 | 0 | 0 | 0.300658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.075 | 0.1 | 0 | 0.3 | 0.025 | 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 |
bda57c87f5b8ab80ef79a482da71077ad586ad01 | 10,924 | py | Python | rls/envs/unity/wrappers/wrappers.py | StepNeverStop/RLs | 25cc97c96cbb19fe859c9387b7547cbada2c89f2 | [
"Apache-2.0"
] | 371 | 2019-04-26T00:37:33.000Z | 2022-03-31T07:33:12.000Z | rls/envs/unity/wrappers/wrappers.py | BlueFisher/RLs | 25cc97c96cbb19fe859c9387b7547cbada2c89f2 | [
"Apache-2.0"
] | 47 | 2019-07-21T11:51:57.000Z | 2021-08-31T08:45:22.000Z | rls/envs/unity/wrappers/wrappers.py | BlueFisher/RLs | 25cc97c96cbb19fe859c9387b7547cbada2c89f2 | [
"Apache-2.0"
] | 102 | 2019-06-29T13:11:15.000Z | 2022-03-28T13:51:04.000Z | #!/usr/bin/env python3
# encoding: utf-8
from collections import defaultdict
from copy import deepcopy
from typing import Dict, List
import numpy as np
from mlagents_envs.environment import UnityEnvironment
from mlagents_envs.side_channel.engine_configuration_channel import \
EngineConfigurationChannel
... | 39.436823 | 113 | 0.553735 | 1,209 | 10,924 | 4.698098 | 0.210918 | 0.012324 | 0.025176 | 0.013556 | 0.194894 | 0.144542 | 0.096127 | 0.071655 | 0.064437 | 0.052817 | 0 | 0.005401 | 0.355914 | 10,924 | 276 | 114 | 39.57971 | 0.801876 | 0.045313 | 0 | 0.102326 | 0 | 0 | 0.045818 | 0.007886 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.055814 | false | 0 | 0.055814 | 0.013953 | 0.167442 | 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 |
bdb4d96a45757db192a477872270aacfca9f1e64 | 1,300 | py | Python | pclib/cl/InValRdyRandStallAdapter.py | belang/pymtl | 4a96738724b007cbd684753aed0ac3de5b5dbebb | [
"BSD-3-Clause"
] | 206 | 2015-01-05T21:53:56.000Z | 2022-03-14T08:04:49.000Z | pclib/cl/InValRdyRandStallAdapter.py | belang/pymtl | 4a96738724b007cbd684753aed0ac3de5b5dbebb | [
"BSD-3-Clause"
] | 84 | 2015-01-25T19:57:33.000Z | 2021-05-11T15:46:56.000Z | pclib/cl/InValRdyRandStallAdapter.py | belang/pymtl | 4a96738724b007cbd684753aed0ac3de5b5dbebb | [
"BSD-3-Clause"
] | 99 | 2015-02-17T17:43:44.000Z | 2022-02-14T17:58:18.000Z | #=========================================================================
# InValRdyRandStallAdapter
#=========================================================================
# Randomly stalls an input interface.
from copy import deepcopy
from random import Random
from pymtl import *
#------------... | 26.530612 | 78 | 0.490769 | 144 | 1,300 | 4.3125 | 0.430556 | 0.033816 | 0.057971 | 0.057971 | 0.101449 | 0.067633 | 0 | 0 | 0 | 0 | 0 | 0.006783 | 0.206154 | 1,300 | 48 | 79 | 27.083333 | 0.594961 | 0.424615 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013569 | 0 | 0.041667 | 1 | 0.208333 | false | 0 | 0.125 | 0.083333 | 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 |
bdb4f3b38743c638394a244002b09a2c1c9dcc3a | 889 | py | Python | example.py | matt-larsen-sld/wptools | aa995898f02a484cb00500a3cbfd03aae37403ee | [
"MIT"
] | null | null | null | example.py | matt-larsen-sld/wptools | aa995898f02a484cb00500a3cbfd03aae37403ee | [
"MIT"
] | null | null | null | example.py | matt-larsen-sld/wptools | aa995898f02a484cb00500a3cbfd03aae37403ee | [
"MIT"
] | null | null | null | import os
from wptools.PhpVariableExtractor import Extractor
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
WP_CONFIG_FILE = "wp-config.php"
wp_config_file = os.path.join(BASE_PATH, WP_CONFIG_FILE)
print("with file handle")
with open(wp_config_file, "r") as handle:
variables = Extractor.extract(handle)
... | 28.677419 | 56 | 0.725534 | 138 | 889 | 4.333333 | 0.246377 | 0.093645 | 0.100334 | 0.120401 | 0.344482 | 0.294314 | 0.090301 | 0 | 0 | 0 | 0 | 0 | 0.124859 | 889 | 30 | 57 | 29.633333 | 0.768638 | 0 | 0 | 0 | 0 | 0 | 0.202475 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bdc252e27c48de28064aab58a73bdf45bc28b76a | 13,929 | py | Python | adi_study_watch/nrf5_sdk_15.2.0/validation/test_scripts/ecg_test.py | ArrowElectronics/Vital-Signs-Monitoring | ba43fe9a116d94170561433910fd7bffba5726e7 | [
"Unlicense"
] | 5 | 2021-06-13T17:11:19.000Z | 2021-12-01T18:20:38.000Z | adi_study_watch/nrf5_sdk_15.2.0/validation/test_scripts/ecg_test.py | ArrowElectronics/Vital-Signs-Monitoring | ba43fe9a116d94170561433910fd7bffba5726e7 | [
"Unlicense"
] | null | null | null | adi_study_watch/nrf5_sdk_15.2.0/validation/test_scripts/ecg_test.py | ArrowElectronics/Vital-Signs-Monitoring | ba43fe9a116d94170561433910fd7bffba5726e7 | [
"Unlicense"
] | 1 | 2022-01-08T15:01:44.000Z | 2022-01-08T15:01:44.000Z | import time
# **************** Added for robot file execution ***************** #
import sys
import os
sys.path.insert(0, os.path.join(os.path.abspath(__file__), '../../'))
# **************** ****************************** ***************** #
import common
from common import ConditionCheckFailure
from utils import meas... | 40.257225 | 121 | 0.655108 | 1,973 | 13,929 | 4.387734 | 0.133806 | 0.037426 | 0.062377 | 0.048516 | 0.695391 | 0.674137 | 0.630819 | 0.580917 | 0.509645 | 0.489777 | 0 | 0.031515 | 0.220906 | 13,929 | 345 | 122 | 40.373913 | 0.766218 | 0.279417 | 0 | 0.56872 | 0 | 0 | 0.147653 | 0 | 0 | 0 | 0 | 0.011594 | 0.014218 | 1 | 0.033175 | false | 0.047393 | 0.028436 | 0 | 0.061611 | 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 |
bdc5ebd08aca1db83a725ddd3345b8b38302135d | 554 | py | Python | RecoMuon/MuonRechitClusterProducer/python/rechitCluster_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 2 | 2020-10-26T18:40:32.000Z | 2021-04-10T16:33:25.000Z | RecoMuon/MuonRechitClusterProducer/python/rechitCluster_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 25 | 2016-06-24T20:55:32.000Z | 2022-02-01T19:24:45.000Z | RecoMuon/MuonRechitClusterProducer/python/rechitCluster_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 8 | 2016-03-25T07:17:43.000Z | 2021-07-08T17:11:21.000Z | import FWCore.ParameterSet.Config as cms
import RecoMuon.MuonRechitClusterProducer.cscRechitClusterProducer_cfi as CSCcluster
import RecoMuon.MuonRechitClusterProducer.dtRechitClusterProducer_cfi as DTcluster
ca4CSCrechitClusters= CSCcluster.cscRechitClusterProducer.clone(
recHitLabel = "csc2DRecHits",
nRech... | 29.157895 | 85 | 0.759928 | 46 | 554 | 9.108696 | 0.565217 | 0.066826 | 0.186158 | 0.090692 | 0.167064 | 0.167064 | 0.167064 | 0 | 0 | 0 | 0 | 0.034858 | 0.17148 | 554 | 18 | 86 | 30.777778 | 0.877996 | 0 | 0 | 0.4 | 0 | 0 | 0.041591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
bdc600284be8d4b36bb96198f47aa160be5cf67c | 1,099 | py | Python | tests/test_admin.py | KonstantinaStoikou/invenio-access | 85891eb80f98ed0d0ed71fa22830d18d2b98c98c | [
"MIT"
] | null | null | null | tests/test_admin.py | KonstantinaStoikou/invenio-access | 85891eb80f98ed0d0ed71fa22830d18d2b98c98c | [
"MIT"
] | null | null | null | tests/test_admin.py | KonstantinaStoikou/invenio-access | 85891eb80f98ed0d0ed71fa22830d18d2b98c98c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Test for admin view."""
from flask import current_app
from invenio_accounts impor... | 31.4 | 72 | 0.77707 | 146 | 1,099 | 5.616438 | 0.431507 | 0.136585 | 0.097561 | 0.126829 | 0.342683 | 0.090244 | 0 | 0 | 0 | 0 | 0 | 0.009657 | 0.151956 | 1,099 | 34 | 73 | 32.323529 | 0.870172 | 0.243858 | 0 | 0 | 0 | 0 | 0.061425 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bdd60cfbe9ec05a24c66074a9f7ff481b4ebd6bd | 1,617 | py | Python | MA/gui/tree_evts.py | highvelcty/MediaArchivist | 2c496d032cbe4a56455f7862ffce4f82d4589a5b | [
"MIT"
] | null | null | null | MA/gui/tree_evts.py | highvelcty/MediaArchivist | 2c496d032cbe4a56455f7862ffce4f82d4589a5b | [
"MIT"
] | null | null | null | MA/gui/tree_evts.py | highvelcty/MediaArchivist | 2c496d032cbe4a56455f7862ffce4f82d4589a5b | [
"MIT"
] | null | null | null | # === Imports ======================================================================================
# Standard library
import tkinter as tk
from enum import Enum
from typing import Callable
# === Enumerations =================================================================================
class TreeEvt(Enum):
pa... | 41.461538 | 100 | 0.581323 | 191 | 1,617 | 4.780105 | 0.434555 | 0.084337 | 0.032859 | 0.030668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196042 | 1,617 | 38 | 101 | 42.552632 | 0.702308 | 0.547928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.166667 | 0 | 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 |
bde06acf86db126a269e4ceb4ff0902423e0a327 | 1,015 | py | Python | project/app/crud/crud_genre.py | sbaezamella/videoclub-backend | ebf24a3c5b7f2c2ed3f3060109917daa2758b3a0 | [
"MIT"
] | null | null | null | project/app/crud/crud_genre.py | sbaezamella/videoclub-backend | ebf24a3c5b7f2c2ed3f3060109917daa2758b3a0 | [
"MIT"
] | null | null | null | project/app/crud/crud_genre.py | sbaezamella/videoclub-backend | ebf24a3c5b7f2c2ed3f3060109917daa2758b3a0 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import List, Union
from app.models import Genre
from app.schemas import GenreCreate, GenreUpdate
async def get_all() -> List:
genres = await Genre.all().values()
return genres
async def post(payload: GenreCreate) -> Genre:
datetime_now = datetime.now()
new_... | 24.166667 | 66 | 0.66601 | 139 | 1,015 | 4.791367 | 0.316547 | 0.09009 | 0.112613 | 0.126126 | 0.255255 | 0.255255 | 0.108108 | 0.108108 | 0 | 0 | 0 | 0.002528 | 0.22069 | 1,015 | 41 | 67 | 24.756098 | 0.839444 | 0.030542 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.37931 | 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 |
bdefedc51c818f02f72c2c6906303fb4b5a662e7 | 295 | py | Python | setup.py | huudi001/uber-like | 8af92c224ab4d8644d793aac9e77d7b3647712f8 | [
"MIT"
] | null | null | null | setup.py | huudi001/uber-like | 8af92c224ab4d8644d793aac9e77d7b3647712f8 | [
"MIT"
] | null | null | null | setup.py | huudi001/uber-like | 8af92c224ab4d8644d793aac9e77d7b3647712f8 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='Carpool',
version='1.0.0',
packages=['app', 'app.migrations', 'Carpool'],
url='og.pythonanywhere.com',
license='MIT',
author='khalid,
author_email='abuuanas30@hotmail.com',
description='Carpool Django Application'
)
| 22.692308 | 50 | 0.664407 | 34 | 295 | 5.735294 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020492 | 0.172881 | 295 | 12 | 51 | 24.583333 | 0.778689 | 0 | 0 | 0 | 0 | 0 | 0.366102 | 0.145763 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | 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 |
bdf513476c98ec6e50d4269f56b819a795e3809a | 883 | py | Python | lab5/e5.py | daem-uni/dagdim-lab-informatica | 9a5c3f829e8372ef994efb28e81a2f7d77c88681 | [
"MIT"
] | null | null | null | lab5/e5.py | daem-uni/dagdim-lab-informatica | 9a5c3f829e8372ef994efb28e81a2f7d77c88681 | [
"MIT"
] | null | null | null | lab5/e5.py | daem-uni/dagdim-lab-informatica | 9a5c3f829e8372ef994efb28e81a2f7d77c88681 | [
"MIT"
] | 1 | 2020-12-03T15:17:29.000Z | 2020-12-03T15:17:29.000Z | A = float(input("Inserire il valore A: ")) # 0.1
B = float(input("Inserire il valore B: ")) # 0.01
C = float(input("Inserire il valore C: ")) # 0.01
D = float(input("Inserire il valore D: ")) # 0.00002
prey_old = int(input("Inserire il valore di prede iniziali: ")) # 1000
pred_old = int(input("Inserire il numero di pr... | 33.961538 | 76 | 0.670442 | 139 | 883 | 4.143885 | 0.302158 | 0.135417 | 0.15625 | 0.182292 | 0.350694 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032123 | 0.189128 | 883 | 26 | 77 | 33.961538 | 0.772346 | 0.032843 | 0 | 0 | 0 | 0 | 0.417453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.368421 | 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 |
bdf913658a46df15961d0cc63be61e44f8d13fee | 429 | py | Python | coax/_base/mixins/_copy.py | coax-dev/coax | 7553ab11b0f709e69d8d70d1d3b4326296b0b479 | [
"MIT"
] | 81 | 2021-03-11T06:10:25.000Z | 2022-03-18T18:00:10.000Z | coax/_base/mixins/_copy.py | coax-dev/coax | 7553ab11b0f709e69d8d70d1d3b4326296b0b479 | [
"MIT"
] | 12 | 2021-05-27T12:21:54.000Z | 2022-02-07T16:12:54.000Z | coax/_base/mixins/_copy.py | coax-dev/coax | 7553ab11b0f709e69d8d70d1d3b4326296b0b479 | [
"MIT"
] | 2 | 2021-08-10T06:03:22.000Z | 2022-03-14T06:05:33.000Z | from copy import deepcopy, copy
class CopyMixin:
def copy(self, deep=False):
r"""
Create a copy of the current instance.
Parameters
----------
deep : bool, optional
Whether the copy should be a deep copy.
Returns
-------
copy
... | 17.875 | 53 | 0.524476 | 49 | 429 | 4.591837 | 0.55102 | 0.071111 | 0.08 | 0.142222 | 0.213333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 429 | 23 | 54 | 18.652174 | 0.852273 | 0.447552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
bdf99ae3094d35cf1c6e5d44dffd775d1525ad7b | 14,564 | py | Python | lamina/neurons/baseneuron.py | neurokernel/lamina | 487cce5535db03330a2c7130a785521a9a323f46 | [
"BSD-3-Clause"
] | 2 | 2015-12-07T13:58:52.000Z | 2019-11-05T05:02:16.000Z | lamina/neurons/baseneuron.py | neurokernel/lamina | 487cce5535db03330a2c7130a785521a9a323f46 | [
"BSD-3-Clause"
] | null | null | null | lamina/neurons/baseneuron.py | neurokernel/lamina | 487cce5535db03330a2c7130a785521a9a323f46 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
Base neuron class used by LPU.
"""
import warnings
from abc import ABCMeta, abstractmethod
import os.path
import numpy as np
import pycuda.gpuarray as garray
from pycuda.compiler import SourceModule
from neurokernel.LPU.utils.simpleio import *
class BaseNeuron(object):
__metaclass__ =... | 35.960494 | 90 | 0.532889 | 1,669 | 14,564 | 4.376872 | 0.179149 | 0.033265 | 0.037372 | 0.024641 | 0.516632 | 0.448734 | 0.409993 | 0.395619 | 0.368241 | 0.338398 | 0 | 0.015815 | 0.379154 | 14,564 | 404 | 91 | 36.049505 | 0.792081 | 0.006592 | 0 | 0.434109 | 0 | 0.003876 | 0.468898 | 0.008554 | 0 | 0 | 0 | 0 | 0.007752 | 0 | null | null | 0.007752 | 0.027132 | 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 |
bdfcdf06c3d2a2cc767767818686608648a87791 | 286 | py | Python | datetime.py | wy1157497582/arcpy | c7b67505a3e2d47bdbcfdbef7e54f1b0b0a23d02 | [
"Apache-2.0"
] | 1 | 2019-07-07T17:49:28.000Z | 2019-07-07T17:49:28.000Z | datetime.py | wy1157497582/arcpy | c7b67505a3e2d47bdbcfdbef7e54f1b0b0a23d02 | [
"Apache-2.0"
] | null | null | null | datetime.py | wy1157497582/arcpy | c7b67505a3e2d47bdbcfdbef7e54f1b0b0a23d02 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8-*-
import arcpy
import time
# import datetime
try:
cursor = arcpy.da.InsertCursor(r'E:\苍穹软件\20171030_房屋\xy.shp', "SHAPE@")
for x in range(0, 25):
cursor.insertRow([x])
del cursor
except arcpy.ExecuteError:
print arcpy.GetMessages()
| 20.428571 | 75 | 0.63986 | 40 | 286 | 4.575 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053333 | 0.213287 | 286 | 14 | 76 | 20.428571 | 0.755556 | 0.122378 | 0 | 0 | 0 | 0 | 0.129032 | 0.104839 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.111111 | 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 |
da05748c2ae045354cc5d54b46080f4e82174798 | 698 | py | Python | jiukuaijiy/cart/migrations/0001_initial.py | lizhao215/django_learning | 2760c809bbd8b6e3d2387611103a656ddd829f47 | [
"MTLL"
] | 1 | 2020-03-05T13:52:04.000Z | 2020-03-05T13:52:04.000Z | jiukuaijiy/cart/migrations/0001_initial.py | lizhao215/django_learning | 2760c809bbd8b6e3d2387611103a656ddd829f47 | [
"MTLL"
] | null | null | null | jiukuaijiy/cart/migrations/0001_initial.py | lizhao215/django_learning | 2760c809bbd8b6e3d2387611103a656ddd829f47 | [
"MTLL"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-20 03:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CartIt... | 25.851852 | 114 | 0.563037 | 65 | 698 | 5.923077 | 0.707692 | 0.187013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034908 | 0.302292 | 698 | 26 | 115 | 26.846154 | 0.755647 | 0.097421 | 0 | 0 | 1 | 0 | 0.059011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 |
da076d3b66cb41421b7b3234a5e495ae55aef73c | 1,214 | py | Python | backend/memdb/quota.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 7 | 2018-05-20T08:56:08.000Z | 2022-03-11T15:50:54.000Z | backend/memdb/quota.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 2 | 2021-06-08T21:12:51.000Z | 2022-01-13T01:25:27.000Z | backend/memdb/quota.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 5 | 2016-10-09T14:52:09.000Z | 2020-12-25T01:04:35.000Z | import conf
import logbook
import msgpack
from memdb import MemDbModel
from collections import namedtuple
Quota = namedtuple('Quota', ['used', 'ttl', 'fresh', 'live_time'])
class QuotaCache(MemDbModel):
""" Used for storing customer used quotas.
"""
_prefix = "quota:"
def key(self, customer):
... | 25.829787 | 88 | 0.629325 | 149 | 1,214 | 5.067114 | 0.375839 | 0.042384 | 0.047682 | 0.063576 | 0.13245 | 0.066225 | 0 | 0 | 0 | 0 | 0 | 0.001112 | 0.259473 | 1,214 | 46 | 89 | 26.391304 | 0.83871 | 0.031301 | 0 | 0.125 | 0 | 0 | 0.062715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.15625 | 0.09375 | 0.5625 | 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 |
da1dcb956c5ffdafad111afb2b9cfcddcd97170f | 521 | py | Python | setup.py | GT-melee/custom-minigrid | 4b518f029dd074f3086b9aa1d741bd43de8a093f | [
"MIT"
] | null | null | null | setup.py | GT-melee/custom-minigrid | 4b518f029dd074f3086b9aa1d741bd43de8a093f | [
"MIT"
] | null | null | null | setup.py | GT-melee/custom-minigrid | 4b518f029dd074f3086b9aa1d741bd43de8a093f | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='custom_minigrid',
version='0.1',
description='Extension to gym-minigrid which supports simple custom generation of environments',
packages=['custom_minigrid'], #['gym_minigrid', 'gym_minigrid.envs'],
# packages=find_packages(),
zip_safe=Fals... | 30.647059 | 100 | 0.662188 | 70 | 521 | 4.8 | 0.657143 | 0.130952 | 0.113095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042959 | 0.195777 | 521 | 16 | 101 | 32.5625 | 0.75895 | 0.232246 | 0 | 0 | 0 | 0 | 0.40806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da1fa5abcaabe52a7acba57f247679f461b03a03 | 518 | py | Python | andonpy/lib/voice_speech.py | booktay/internship_andon | e421fa41ee0ea0d3522441b93350ee0758b42a4e | [
"MIT"
] | null | null | null | andonpy/lib/voice_speech.py | booktay/internship_andon | e421fa41ee0ea0d3522441b93350ee0758b42a4e | [
"MIT"
] | null | null | null | andonpy/lib/voice_speech.py | booktay/internship_andon | e421fa41ee0ea0d3522441b93350ee0758b42a4e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Siwanont Sittinam
# Speech
# Import management linux system module
import sys as sys
import os as os
import speech_recognition as sr
from utility import Utility
class VoiceSpeech:
def __init__(self):
r = sr.Recognizer()
with sr.Microphone() as source:
print("Sa... | 23.545455 | 60 | 0.592664 | 60 | 518 | 5.016667 | 0.683333 | 0.07309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.324324 | 518 | 22 | 61 | 23.545455 | 0.86 | 0.160232 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.266667 | 0 | 0.4 | 0.2 | 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 |
da24379854208bf5e71067a9f118e34b37e81d94 | 454 | py | Python | algorithmic-questions/subsets.py | emil45/python-computer-science | 4e5a75a529acaae0304748d48d88a319ef2e6a9c | [
"Apache-2.0"
] | 2 | 2021-01-31T06:43:16.000Z | 2021-01-31T16:02:34.000Z | algorithmic-questions/subsets.py | emil45/python-computer-science | 4e5a75a529acaae0304748d48d88a319ef2e6a9c | [
"Apache-2.0"
] | null | null | null | algorithmic-questions/subsets.py | emil45/python-computer-science | 4e5a75a529acaae0304748d48d88a319ef2e6a9c | [
"Apache-2.0"
] | null | null | null | def subsets(l):
if not l:
return [[]]
else:
all_subsets = []
for i in range(len(l)):
sub_subsets = subsets(l[:i] + l[i + 1:])
[all_subsets.append(subset) for subset in sub_subsets if subset not in all_subsets]
if l not in all_subsets:
a... | 26.705882 | 95 | 0.544053 | 63 | 454 | 3.650794 | 0.365079 | 0.304348 | 0.13913 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.339207 | 454 | 16 | 96 | 28.375 | 0.753333 | 0 | 0 | 0 | 0 | 0 | 0.017621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0.071429 | 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 |
da2c24ae59e1efdec860aba4dd89473c7552c12c | 1,342 | py | Python | aioqiwi/wallet/urls.py | Derad6709/aioqiwi | 5ecee5e5454772d32c4814e0aab1cd3e5c94ca38 | [
"MIT"
] | 33 | 2019-05-26T09:31:29.000Z | 2021-11-26T12:38:01.000Z | aioqiwi/wallet/urls.py | Derad6709/aioqiwi | 5ecee5e5454772d32c4814e0aab1cd3e5c94ca38 | [
"MIT"
] | 15 | 2019-05-22T11:55:05.000Z | 2020-06-17T17:48:34.000Z | aioqiwi/wallet/urls.py | Derad6709/aioqiwi | 5ecee5e5454772d32c4814e0aab1cd3e5c94ca38 | [
"MIT"
] | 12 | 2019-06-02T17:16:54.000Z | 2021-03-21T11:57:29.000Z | from ..core.tooling.htstrings import HeadTailString
class WalletURL(HeadTailString):
__head__ = "https://edge.qiwi.com/"
class urls:
me = WalletURL("person-profile/v1/profile/current")
identification = WalletURL("identification/v1/persons/{}/identification")
history = WalletURL("payment-history/v2/p... | 40.666667 | 80 | 0.681073 | 139 | 1,342 | 6.503597 | 0.42446 | 0.106195 | 0.127212 | 0.082965 | 0.196903 | 0.196903 | 0.108407 | 0 | 0 | 0 | 0 | 0.008889 | 0.161699 | 1,342 | 32 | 81 | 41.9375 | 0.794667 | 0 | 0 | 0 | 0 | 0 | 0.368852 | 0.298808 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.56 | 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 |
da32ab2c691f6e534aae3edc539b54336edcf08f | 749 | py | Python | course/migrations/0007_auto_20200603_0823.py | BuildForSDG/dijiElimu | 514a90d6f0480516aa209891224cf9dfe6be1607 | [
"MIT"
] | null | null | null | course/migrations/0007_auto_20200603_0823.py | BuildForSDG/dijiElimu | 514a90d6f0480516aa209891224cf9dfe6be1607 | [
"MIT"
] | 20 | 2020-05-12T12:11:01.000Z | 2022-03-12T00:33:12.000Z | course/migrations/0007_auto_20200603_0823.py | BuildForSDG/dijiElimu | 514a90d6f0480516aa209891224cf9dfe6be1607 | [
"MIT"
] | 4 | 2020-05-06T03:57:04.000Z | 2020-05-20T06:30:28.000Z | # Generated by Django 3.0.6 on 2020-06-03 08:23
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('course', '0006_auto_20200601_1325'),
]
operation... | 25.827586 | 102 | 0.610147 | 75 | 749 | 5.906667 | 0.6 | 0.060948 | 0.10158 | 0.128668 | 0.24605 | 0.180587 | 0 | 0 | 0 | 0 | 0 | 0.057836 | 0.284379 | 749 | 28 | 103 | 26.75 | 0.768657 | 0.06008 | 0 | 0.454545 | 1 | 0 | 0.125356 | 0.032764 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 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 |
da3308211d893a517afe9f611adea061a5044db6 | 1,200 | py | Python | profiles/migrations/New folder/0003_auto_20200924_1528.py | Rxavio/link | a0aa34b89a769cfaa20a92a04980e142e42eaa10 | [
"MIT"
] | null | null | null | profiles/migrations/New folder/0003_auto_20200924_1528.py | Rxavio/link | a0aa34b89a769cfaa20a92a04980e142e42eaa10 | [
"MIT"
] | null | null | null | profiles/migrations/New folder/0003_auto_20200924_1528.py | Rxavio/link | a0aa34b89a769cfaa20a92a04980e142e42eaa10 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-09-24 13:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('profiles', '0002_auto_20200924_1523'),
]
operations = [
migrations.RemoveField(
model_name='pro... | 30.769231 | 132 | 0.5975 | 118 | 1,200 | 5.957627 | 0.466102 | 0.064011 | 0.059744 | 0.093883 | 0.440967 | 0.440967 | 0.204836 | 0.204836 | 0.204836 | 0.204836 | 0 | 0.039261 | 0.278333 | 1,200 | 38 | 133 | 31.578947 | 0.772517 | 0.0375 | 0 | 0.4375 | 1 | 0 | 0.149176 | 0.019948 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 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 |
da4f55e98779cb0a1c46886bca473c4e952d93d1 | 20,984 | py | Python | dlk/tests/test_optimizer.py | toohsk/blueoil | 596922caa939db9c5ecbac3286fbf6f703865ee6 | [
"Apache-2.0"
] | null | null | null | dlk/tests/test_optimizer.py | toohsk/blueoil | 596922caa939db9c5ecbac3286fbf6f703865ee6 | [
"Apache-2.0"
] | 1 | 2018-11-21T07:06:17.000Z | 2018-11-21T07:06:17.000Z | dlk/tests/test_optimizer.py | toohsk/blueoil | 596922caa939db9c5ecbac3286fbf6f703865ee6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2018 The Blueoil Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | 23.263858 | 110 | 0.419891 | 2,068 | 20,984 | 4.147002 | 0.118472 | 0.048507 | 0.010844 | 0.010728 | 0.727029 | 0.67479 | 0.643657 | 0.630014 | 0.622785 | 0.590019 | 0 | 0.079976 | 0.448818 | 20,984 | 901 | 111 | 23.289678 | 0.661508 | 0.080776 | 0 | 0.753602 | 0 | 0 | 0.058447 | 0 | 0 | 0 | 0 | 0 | 0.010086 | 1 | 0.017291 | false | 0.005764 | 0.012968 | 0.001441 | 0.043228 | 0.005764 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da5760b55776f13cf500bef6711718537a50cba6 | 18,854 | py | Python | api/views.py | pjuradopueyo/taco | 2997527d3046700bcf2cf8ec80c2a9985528075a | [
"MIT"
] | null | null | null | api/views.py | pjuradopueyo/taco | 2997527d3046700bcf2cf8ec80c2a9985528075a | [
"MIT"
] | 9 | 2021-03-19T01:18:50.000Z | 2022-03-12T00:20:49.000Z | api/views.py | pjuradopueyo/taco | 2997527d3046700bcf2cf8ec80c2a9985528075a | [
"MIT"
] | null | null | null |
from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse, JsonResponse
from django.template import loader
from django.core.paginator import Paginator, EmptyPage
from django.core import serializers
from django.db.models import Q
from django.contrib.auth.decorators import log... | 37.26087 | 226 | 0.667445 | 1,984 | 18,854 | 6.226815 | 0.116935 | 0.040958 | 0.063299 | 0.042496 | 0.674437 | 0.645864 | 0.620285 | 0.575117 | 0.568885 | 0.532702 | 0 | 0.009462 | 0.226424 | 18,854 | 506 | 227 | 37.26087 | 0.837573 | 0.043015 | 0 | 0.621387 | 0 | 0 | 0.013779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144509 | false | 0 | 0.083815 | 0.060694 | 0.540462 | 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 |
da58fbd38374e580c2ee7908c365e8091ff25d8f | 1,114 | py | Python | holidays/migrations/0005_publicholiday.py | callmewind/djworkplace | c0acd386ce7ecc43312b1c18e57b90414013ce8e | [
"MIT"
] | null | null | null | holidays/migrations/0005_publicholiday.py | callmewind/djworkplace | c0acd386ce7ecc43312b1c18e57b90414013ce8e | [
"MIT"
] | null | null | null | holidays/migrations/0005_publicholiday.py | callmewind/djworkplace | c0acd386ce7ecc43312b1c18e57b90414013ce8e | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-05-07 22:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('staff', '0005_auto_20190507_2135'),
('holidays', '0004_auto_20190507_2131'),
]
operations = [
migrati... | 35.935484 | 162 | 0.584381 | 111 | 1,114 | 5.702703 | 0.54955 | 0.121643 | 0.044234 | 0.06951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060494 | 0.27289 | 1,114 | 30 | 163 | 37.133333 | 0.720988 | 0.0386 | 0 | 0 | 1 | 0 | 0.199252 | 0.043031 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 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 |
da616216bc3d3a68c4275416f063262f9bbe942d | 2,661 | py | Python | out.py | angelsave/reverse_enginering | 3d6b46e898535ed162cdcb1b03a90761dcb3bce4 | [
"MIT"
] | 7 | 2018-05-04T08:28:58.000Z | 2019-11-06T08:49:02.000Z | out.py | angelsave/reverse_enginering | 3d6b46e898535ed162cdcb1b03a90761dcb3bce4 | [
"MIT"
] | 1 | 2019-09-21T07:29:50.000Z | 2019-09-22T16:53:04.000Z | out.py | angelsave/reverse_enginering | 3d6b46e898535ed162cdcb1b03a90761dcb3bce4 | [
"MIT"
] | 8 | 2018-05-04T08:28:59.000Z | 2020-09-27T17:21:28.000Z | # uncompyle6 version 3.1.3
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.4.3 (default, Aug 9 2016, 15:36:17)
# [GCC 5.3.1 20160406 (Red Hat 5.3.1-6)]
# Embedded file name: <script>
# Compiled at: 2018-02-25 14:25:47
import marshal, platform
from py_compile import compile as com
from sys import argv as D
f... | 25.103774 | 212 | 0.506201 | 441 | 2,661 | 3.049887 | 0.346939 | 0.01487 | 0.022305 | 0.022305 | 0.063941 | 0.025279 | 0.025279 | 0 | 0 | 0 | 0 | 0.0545 | 0.248403 | 2,661 | 105 | 213 | 25.342857 | 0.618 | 0.090192 | 0 | 0.25 | 0 | 0.0375 | 0.333195 | 0.064235 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1125 | null | null | 0.0125 | 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 |
da65532fbdde3fcf929941042ab91fed7d752a79 | 659 | py | Python | hacker/goose_sis/sis/list.py | sanyueyuxincao/web-crawling | dc134bd6e23572a3ebfd851d0ffb6dd84cb16c1f | [
"MIT"
] | null | null | null | hacker/goose_sis/sis/list.py | sanyueyuxincao/web-crawling | dc134bd6e23572a3ebfd851d0ffb6dd84cb16c1f | [
"MIT"
] | null | null | null | hacker/goose_sis/sis/list.py | sanyueyuxincao/web-crawling | dc134bd6e23572a3ebfd851d0ffb6dd84cb16c1f | [
"MIT"
] | 2 | 2019-05-19T08:12:45.000Z | 2021-08-28T07:16:42.000Z | from pprint import pprint
from goose import Goose
from goose.text import StopWordsChinese
import re
source_file = open('url_list.md','r')
source_data = source_file.read()
source_array = re.split('--', source_data)
def getUrl(item):
url_name = re.split('&&', item)
url = url_name[1]
name = url_name[0]
print url
pr... | 21.258065 | 49 | 0.720789 | 104 | 659 | 4.403846 | 0.413462 | 0.045852 | 0.061135 | 0.065502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005282 | 0.138088 | 659 | 30 | 50 | 21.966667 | 0.801056 | 0.138088 | 0 | 0 | 0 | 0 | 0.065719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | 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 |
da69bc4c3375bcd35f4c904640718a6cc5171cc0 | 245 | py | Python | tests/test_version.py | 0x6f736f646f/sdk-py | 9b9be4d512c94783d973ebe0910b81da636ff7ad | [
"Apache-2.0"
] | 4 | 2021-11-29T01:50:53.000Z | 2021-12-28T15:18:54.000Z | tests/test_version.py | 0x6f736f646f/sdk-py | 9b9be4d512c94783d973ebe0910b81da636ff7ad | [
"Apache-2.0"
] | 25 | 2021-08-09T13:29:20.000Z | 2022-01-21T20:33:42.000Z | tests/test_version.py | mainflux/sdk-py | 53699a41aa39ff82bc7a3d2dc45724a9fd357845 | [
"Apache-2.0"
] | 3 | 2021-07-22T09:17:10.000Z | 2022-01-07T12:01:14.000Z | from lib import sdk
import json, requests_mock
s = sdk.SDK()
def test_version(requests_mock):
requests_mock.get("http://localhost/version", json='{"version":"0.15.0"}')
v = s.version()
assert "0.15.0" == json.loads(v)["version"]
| 20.416667 | 78 | 0.657143 | 38 | 245 | 4.131579 | 0.5 | 0.229299 | 0.050955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.15102 | 245 | 11 | 79 | 22.272727 | 0.716346 | 0 | 0 | 0 | 0 | 0 | 0.232653 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 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 |
da720fb4620c151b70abac9834ae1ee9ccb6992b | 316 | py | Python | pyrosim/inertiaurdf.py | kawseribn/SimoBot | 2d91077eb152635b50fa215a077f0871788c7cda | [
"MIT"
] | null | null | null | pyrosim/inertiaurdf.py | kawseribn/SimoBot | 2d91077eb152635b50fa215a077f0871788c7cda | [
"MIT"
] | null | null | null | pyrosim/inertiaurdf.py | kawseribn/SimoBot | 2d91077eb152635b50fa215a077f0871788c7cda | [
"MIT"
] | null | null | null | from pyrosim.commonFunctions import Save_Whitespace
class INERTIA_URDF:
def __init__(self):
self.depth = 3
self.string1 = '<inertia ixx="100" ixy="0" ixz="0" iyy="100" iyz="0" izz="100" />'
def Save(self,f):
Save_Whitespace(self.depth,f)
f.write(self.string1 + '\n')
| 19.75 | 90 | 0.607595 | 44 | 316 | 4.204545 | 0.590909 | 0.151351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.240506 | 316 | 15 | 91 | 21.066667 | 0.708333 | 0 | 0 | 0 | 0 | 0.125 | 0.212025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 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 |
da77a82e9a497d8d81acfb2688cb3313589b469e | 504 | py | Python | ge_kitchen/const.py | Treygec/ha_components | f9ca0c0bca7950b47d2198116a64dae4955a16db | [
"MIT"
] | 12 | 2020-08-25T00:20:37.000Z | 2021-09-19T23:25:19.000Z | ge_kitchen/const.py | Treygec/ha_components | f9ca0c0bca7950b47d2198116a64dae4955a16db | [
"MIT"
] | 8 | 2020-11-13T02:37:21.000Z | 2021-06-24T03:16:21.000Z | ge_kitchen/const.py | Treygec/ha_components | f9ca0c0bca7950b47d2198116a64dae4955a16db | [
"MIT"
] | 13 | 2020-12-17T22:42:51.000Z | 2022-03-10T00:38:34.000Z | """Constants for the ge_kitchen integration."""
from gekitchen.const import LOGIN_URL
DOMAIN = "ge_kitchen"
# TODO Update with your own urls
# OAUTH2_AUTHORIZE = f"{LOGIN_URL}/oauth2/auth"
OAUTH2_AUTH_URL = f"{LOGIN_URL}/oauth2/auth"
OAUTH2_TOKEN_URL = f"{LOGIN_URL}/oauth2/token"
AUTH_HANDLER = "auth_handler"
EVENT_... | 26.526316 | 51 | 0.787698 | 72 | 504 | 5.166667 | 0.513889 | 0.086022 | 0.072581 | 0.120968 | 0.19086 | 0.134409 | 0 | 0 | 0 | 0 | 0 | 0.017778 | 0.107143 | 504 | 18 | 52 | 28 | 0.808889 | 0.236111 | 0 | 0 | 0 | 0 | 0.335979 | 0.124339 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
da83dd12acccc14086d702b52420f0003727233a | 5,078 | py | Python | auraxium/models/_weapon.py | leonhard-s/auraxium | 8a1b7fb6e6e1b11334d69875df032ccc6da330bf | [
"MIT"
] | 23 | 2018-12-04T12:47:11.000Z | 2022-02-08T05:46:21.000Z | auraxium/models/_weapon.py | brhumphe/auraxium | 8a1b7fb6e6e1b11334d69875df032ccc6da330bf | [
"MIT"
] | 50 | 2020-04-15T10:55:30.000Z | 2022-02-20T11:14:01.000Z | auraxium/models/_weapon.py | brhumphe/auraxium | 8a1b7fb6e6e1b11334d69875df032ccc6da330bf | [
"MIT"
] | 6 | 2018-12-02T11:55:03.000Z | 2020-10-06T05:15:36.000Z | """Data classes for :mod:`auraxium.ps2._weapon`."""
from typing import Optional
from .base import RESTPayload
from ..types import LocaleData
__all__ = [
'WeaponAmmoSlot',
'WeaponData',
'WeaponDatasheet'
]
# pylint: disable=too-few-public-methods
class WeaponAmmoSlot(RESTPayload):
"""Data class for... | 22.174672 | 71 | 0.642379 | 662 | 5,078 | 4.765861 | 0.238671 | 0.044374 | 0.060856 | 0.095087 | 0.383201 | 0.336609 | 0.243423 | 0.180032 | 0.08748 | 0.08748 | 0 | 0.001361 | 0.276684 | 5,078 | 228 | 72 | 22.27193 | 0.85761 | 0.62052 | 0 | 0.115385 | 0 | 0 | 0.025811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057692 | 0 | 0.903846 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
da84cb7cd9a27bd9aaeb9232e2bd2f7a290ef01d | 602 | py | Python | envergo/evaluations/migrations/0034_alter_evaluation_request.py | MTES-MCT/envergo | 8bb6e4ffa15a39edda51b39401db6cc12e73ad0a | [
"MIT"
] | null | null | null | envergo/evaluations/migrations/0034_alter_evaluation_request.py | MTES-MCT/envergo | 8bb6e4ffa15a39edda51b39401db6cc12e73ad0a | [
"MIT"
] | 6 | 2021-07-12T14:33:18.000Z | 2022-02-14T10:36:09.000Z | envergo/evaluations/migrations/0034_alter_evaluation_request.py | MTES-MCT/envergo | 8bb6e4ffa15a39edda51b39401db6cc12e73ad0a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-10-11 13:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('evaluations', '0033_copy_contact_email'),
]
operations = [
migrations.AlterField(
model_name='e... | 30.1 | 224 | 0.677741 | 72 | 602 | 5.555556 | 0.666667 | 0.06 | 0.07 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039832 | 0.207641 | 602 | 19 | 225 | 31.684211 | 0.798742 | 0.074751 | 0 | 0 | 1 | 0 | 0.232432 | 0.041441 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da93f1e8e30d31a17fe7334878b1b5b7a7225946 | 7,874 | py | Python | api/bii_service.py | bowlofstew/bii-server | 9abc558b1ba9722088e22a4937a224cfcc3c5f22 | [
"MIT"
] | 27 | 2015-04-15T09:40:26.000Z | 2020-04-29T06:24:06.000Z | api/bii_service.py | bowlofstew/bii-server | 9abc558b1ba9722088e22a4937a224cfcc3c5f22 | [
"MIT"
] | 2 | 2015-06-03T20:19:51.000Z | 2015-06-30T20:40:14.000Z | api/bii_service.py | bowlofstew/bii-server | 9abc558b1ba9722088e22a4937a224cfcc3c5f22 | [
"MIT"
] | 10 | 2015-08-06T08:17:28.000Z | 2020-09-29T17:02:57.000Z | from biicode.common.api.biiapi import BiiAPI
############# Functional Collaborators #############################
from biicode.server.publish.publish_service import PublishService
from biicode.common.exception import (ForbiddenException, NotFoundException, NotInStoreException,
Not... | 47.149701 | 103 | 0.678181 | 964 | 7,874 | 5.357884 | 0.252075 | 0.0697 | 0.023233 | 0.02304 | 0.303582 | 0.256341 | 0.226137 | 0.197483 | 0.161084 | 0.092546 | 0 | 0.001511 | 0.243332 | 7,874 | 166 | 104 | 47.433735 | 0.865391 | 0.2159 | 0 | 0.225225 | 0 | 0 | 0.055184 | 0 | 0 | 0 | 0 | 0.012048 | 0.054054 | 1 | 0.126126 | false | 0.018018 | 0.126126 | 0 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16f8c42336d2601bbe48c9d297a530872b0279ea | 1,013 | py | Python | examples/tutorial/3D Views/tmi_as_3d_relief.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 25 | 2017-07-14T06:39:37.000Z | 2022-03-09T21:39:51.000Z | examples/tutorial/3D Views/tmi_as_3d_relief.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 100 | 2016-12-13T17:30:41.000Z | 2021-08-01T20:21:13.000Z | examples/tutorial/3D Views/tmi_as_3d_relief.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 28 | 2016-12-12T17:34:40.000Z | 2022-03-16T15:39:39.000Z | import geosoft.gxpy.gx as gx
import geosoft.gxpy.view as gxview
import geosoft.gxpy.group as gxgroup
import geosoft.gxpy.agg as gxagg
import geosoft.gxpy.grid as gxgrd
import geosoft.gxpy.viewer as gxviewer
gxc = gx.GXpy()
grid_file = 'Wittichica Creek Residual Total Field.grd'
# create a 3D view
with gxview.View_3d... | 33.766667 | 105 | 0.721619 | 157 | 1,013 | 4.509554 | 0.433121 | 0.110169 | 0.144068 | 0.048023 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012315 | 0.198421 | 1,013 | 29 | 106 | 34.931034 | 0.859606 | 0.189536 | 0 | 0 | 0 | 0 | 0.079657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 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 |
16fd0769fa239e5709700c7d6fa0d37970359951 | 9,677 | py | Python | app/db_process.py | ptdriscoll/klrn-passport-analytics-database | 7c1637b8816650dd8dd49b9f42e6ffa9bc005625 | [
"MIT"
] | null | null | null | app/db_process.py | ptdriscoll/klrn-passport-analytics-database | 7c1637b8816650dd8dd49b9f42e6ffa9bc005625 | [
"MIT"
] | null | null | null | app/db_process.py | ptdriscoll/klrn-passport-analytics-database | 7c1637b8816650dd8dd49b9f42e6ffa9bc005625 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sqlite3
import shutil
import zipfile
import os
import pandas as pd
import numpy as np
from helpers import *
from db_backup import database_backup, delete_old_backups
'''
settings
'''
#prepare list of files for processing
#these files must be in a folder called downloads
#multiple fi... | 30.240625 | 114 | 0.583445 | 1,174 | 9,677 | 4.674617 | 0.23339 | 0.024235 | 0.02551 | 0.014577 | 0.124636 | 0.098397 | 0.053754 | 0.036443 | 0.029883 | 0 | 0 | 0.008743 | 0.290793 | 9,677 | 319 | 115 | 30.335423 | 0.790908 | 0.183528 | 0 | 0.11039 | 0 | 0.006494 | 0.435187 | 0.052942 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051948 | null | null | 0.045455 | 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 |
e5226df55dc5be7efd37b5f297367275ed0ea8dd | 736 | py | Python | mitmirror/data/security/password_hash.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | mitmirror/data/security/password_hash.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | 1 | 2021-10-09T20:42:03.000Z | 2021-10-09T20:42:03.000Z | mitmirror/data/security/password_hash.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | """Caso de uso: PasswordHash"""
import bcrypt
from mitmirror.domain.usecases import PasswordHashInterface
class PasswordHash(PasswordHashInterface):
"""Classe responsavel por realizar o hash de senhas de usuarios"""
@staticmethod
def hash(password: str) -> str:
"""Realiza o procesos de hash da se... | 28.307692 | 86 | 0.672554 | 84 | 736 | 5.833333 | 0.52381 | 0.085714 | 0.073469 | 0.106122 | 0.146939 | 0.146939 | 0 | 0 | 0 | 0 | 0 | 0.003521 | 0.228261 | 736 | 25 | 87 | 29.44 | 0.859155 | 0.262228 | 0 | 0.153846 | 0 | 0 | 0.015326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.461538 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e52f60b5e5dab57c1af10b6bef990b221ad2ac9a | 2,107 | py | Python | common/middleware/keystone.py | escudocloud/encswift_server | 90a5a999c06b40da89d5f785795f80bd9d990640 | [
"Apache-2.0"
] | null | null | null | common/middleware/keystone.py | escudocloud/encswift_server | 90a5a999c06b40da89d5f785795f80bd9d990640 | [
"Apache-2.0"
] | null | null | null | common/middleware/keystone.py | escudocloud/encswift_server | 90a5a999c06b40da89d5f785795f80bd9d990640 | [
"Apache-2.0"
] | 1 | 2016-09-27T09:08:24.000Z | 2016-09-27T09:08:24.000Z | #!/usr/bin/env python
from keystoneclient.exceptions import NotFound, Conflict
import keystoneclient.v2_0.client as kc
import logging
# set logger info to INFO
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
ch = logging.StreamHandler()
ch.setLevel(logging.INFO)
logger.addHandler(ch)
class SimpleK... | 37.625 | 79 | 0.623636 | 261 | 2,107 | 4.8659 | 0.237548 | 0.062992 | 0.075591 | 0.040157 | 0.129134 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00129 | 0.264357 | 2,107 | 55 | 80 | 38.309091 | 0.818065 | 0.020883 | 0 | 0.159091 | 0 | 0 | 0.092718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0.113636 | 0.068182 | 0 | 0.272727 | 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 |
e5326ec234e917f8557c9dcebbc7cb4738682741 | 576 | py | Python | MarsRover2/test_mars_rover.py | kelesi/coedcop | 2bdbac207cf6f81de70b92c644c40663bbea8c8a | [
"MIT"
] | 1 | 2017-12-08T15:55:17.000Z | 2017-12-08T15:55:17.000Z | MarsRover2/test_mars_rover.py | kelesi/coedcop | 2bdbac207cf6f81de70b92c644c40663bbea8c8a | [
"MIT"
] | null | null | null | MarsRover2/test_mars_rover.py | kelesi/coedcop | 2bdbac207cf6f81de70b92c644c40663bbea8c8a | [
"MIT"
] | null | null | null | import unittest
from parameterized import parameterized
import mock
class TestPlanetaryRovingVehicle(unittest.TestCase):
@parameterized.expand([
[{'start': [[0, 0], 'N'], 'step': 1, 'expected': [0, 1]}],
])
def test_move_vehicle_forward(self, vehicle_test_parameters):
vehicle_starting_pos... | 36 | 72 | 0.729167 | 63 | 576 | 6.31746 | 0.428571 | 0.138191 | 0.263819 | 0.145729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014433 | 0.157986 | 576 | 15 | 73 | 38.4 | 0.806186 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 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 |
e53c967c79ebdbd244a3fdd07cd22deb907b78dd | 1,142 | py | Python | pylarky/tests/test_integration.py | criloz/starlarky | 1e90e5e83189cda0210f486b3a39bbd2836c9013 | [
"Apache-2.0"
] | null | null | null | pylarky/tests/test_integration.py | criloz/starlarky | 1e90e5e83189cda0210f486b3a39bbd2836c9013 | [
"Apache-2.0"
] | null | null | null | pylarky/tests/test_integration.py | criloz/starlarky | 1e90e5e83189cda0210f486b3a39bbd2836c9013 | [
"Apache-2.0"
] | null | null | null | import tempfile
import pytest
from pylarky.starlarky import evaluate, FailedEvaluation
def test_evaluation():
starlark_script = """
def modify():
return {"body": ctx["body"], "headers": {"accept": "json", "content": "still-json"}}
modify()
"""
script_file = tempfile.NamedTemporaryFile(mode='w+')
scri... | 30.052632 | 110 | 0.628722 | 119 | 1,142 | 5.890756 | 0.319328 | 0.114123 | 0.072753 | 0.10271 | 0.669044 | 0.669044 | 0.621969 | 0.621969 | 0.621969 | 0.621969 | 0 | 0 | 0.184764 | 1,142 | 37 | 111 | 30.864865 | 0.752954 | 0 | 0 | 0.571429 | 0 | 0.178571 | 0.41944 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e546b5346c9c14b56a708432c2196b87120cdb5d | 1,943 | py | Python | backend/minemaphelper/minemap/migrations/0001_initial.py | jawsper/minemaphelper | d67cffa80cb349a48c5ebc86c6d9d064d50d01a2 | [
"MIT"
] | null | null | null | backend/minemaphelper/minemap/migrations/0001_initial.py | jawsper/minemaphelper | d67cffa80cb349a48c5ebc86c6d9d064d50d01a2 | [
"MIT"
] | 17 | 2020-08-01T16:23:03.000Z | 2022-02-19T02:12:45.000Z | backend/minemaphelper/minemap/migrations/0001_initial.py | jawsper/minemaphelper | d67cffa80cb349a48c5ebc86c6d9d064d50d01a2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-22 12:55
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),
]
ope... | 38.098039 | 134 | 0.559959 | 185 | 1,943 | 5.762162 | 0.4 | 0.030019 | 0.0394 | 0.061914 | 0.415572 | 0.364916 | 0.364916 | 0.364916 | 0.364916 | 0.364916 | 0 | 0.015284 | 0.292846 | 1,943 | 50 | 135 | 38.86 | 0.760553 | 0.02316 | 0 | 0.348837 | 1 | 0 | 0.078059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069767 | 0 | 0.162791 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.