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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
013c4fb306411e4299bc53f9a104c56ba9d36105 | 1,705 | py | Python | pypub/scrapers/jneuroscience.py | ScholarTools/pypub | 1fcdf895d4777aea7882a1812fef307255702a80 | [
"MIT"
] | 1 | 2016-07-03T17:53:54.000Z | 2016-07-03T17:53:54.000Z | pypub/scrapers/jneuroscience.py | ScholarTools/pypub | 1fcdf895d4777aea7882a1812fef307255702a80 | [
"MIT"
] | 8 | 2015-12-28T19:53:36.000Z | 2021-12-13T19:41:39.000Z | pypub/scrapers/jneuroscience.py | ScholarTools/pypub | 1fcdf895d4777aea7882a1812fef307255702a80 | [
"MIT"
] | 1 | 2016-06-21T15:08:46.000Z | 2016-06-21T15:08:46.000Z | # -*- coding: utf-8 -*-
"""
For an example page see:
http://www.jneurosci.org/content/23/10/4355.long#ref-list-1
Note that JNeuroscience seems to be part of a consortium with J Physiology,
J Neurophysiology, PNS, etc
perhaps check out HighWire Press?
"""
import requests
from bs4 import BeautifulSoup
class JNeuros... | 31.574074 | 100 | 0.649853 | 258 | 1,705 | 4.263566 | 0.534884 | 0.08 | 0.076364 | 0.058182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032166 | 0.179472 | 1,705 | 54 | 101 | 31.574074 | 0.75268 | 0.144868 | 0 | 0.153846 | 0 | 0 | 0.06326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.153846 | 0.230769 | 0 | 0.461538 | 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 |
013ea56ed2c4a516c4e4235a0ba8239ea63b5e56 | 2,639 | py | Python | gnuradio-3.7.13.4/gr-filter/python/filter/design/api_object.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | 1 | 2021-03-09T07:32:37.000Z | 2021-03-09T07:32:37.000Z | gnuradio-3.7.13.4/gr-filter/python/filter/design/api_object.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | gnuradio-3.7.13.4/gr-filter/python/filter/design/api_object.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2012 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# G... | 32.9875 | 70 | 0.635847 | 347 | 2,639 | 4.801153 | 0.354467 | 0.108043 | 0.05042 | 0.096639 | 0.307923 | 0.253301 | 0.180072 | 0.141657 | 0.141657 | 0.062425 | 0 | 0.015144 | 0.274346 | 2,639 | 79 | 71 | 33.405063 | 0.85483 | 0.326639 | 0 | 0.354839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290323 | false | 0 | 0 | 0.032258 | 0.451613 | 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 |
013fd9370c82568c8a3976632bf333b9c95292c6 | 938 | py | Python | coupons/models.py | sLeeNguyen/sales-support | 3f0a6977c8c26743373a70b4296516b7a71ccf4a | [
"Apache-2.0"
] | 1 | 2021-03-22T14:07:30.000Z | 2021-03-22T14:07:30.000Z | coupons/models.py | sLeeNguyen/sales-support | 3f0a6977c8c26743373a70b4296516b7a71ccf4a | [
"Apache-2.0"
] | null | null | null | coupons/models.py | sLeeNguyen/sales-support | 3f0a6977c8c26743373a70b4296516b7a71ccf4a | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.utils import timezone
from stores.models import Store
class Coupon(models.Model):
SCOPE_CHOICES = [
('I', 'Toàn bộ hoá đơn'),
('P', 'Sản phẩm'),
]
BENEFICIARY_CHOICES = [
('E', 'Mọi khách hàng'),
('N', 'Khách hàng hệ thống'),
... | 33.5 | 90 | 0.686567 | 116 | 938 | 5.448276 | 0.525862 | 0.042722 | 0.066456 | 0.09019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005242 | 0.186567 | 938 | 27 | 91 | 34.740741 | 0.823067 | 0 | 0 | 0 | 0 | 0 | 0.081023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.681818 | 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 |
014ad83f5b068ba0e043359ccb1ae8ec77fba56c | 1,201 | py | Python | lfs/manage/views/criteria.py | michael-hahn/django-lfs | 26c3471a8f8d88269c84f714f507b952dfdb6397 | [
"BSD-3-Clause"
] | 345 | 2015-01-03T19:19:27.000Z | 2022-03-20T11:00:50.000Z | lfs/manage/views/criteria.py | mxins/django-lfs | bf42ed80ce0e1ec96db6ab985adcc614ea79dfc8 | [
"BSD-3-Clause"
] | 73 | 2015-01-06T14:54:02.000Z | 2022-03-11T23:11:34.000Z | lfs/manage/views/criteria.py | mxins/django-lfs | bf42ed80ce0e1ec96db6ab985adcc614ea79dfc8 | [
"BSD-3-Clause"
] | 148 | 2015-01-07T16:30:08.000Z | 2022-03-25T21:20:58.000Z | # django imports
from django.conf import settings
from django.contrib.auth.decorators import permission_required
from django.http import HttpResponse
# lfs imports
from lfs.core.utils import import_symbol
@permission_required("core.manage_shop")
def add_criterion(request):
"""
Adds a new criterion form.
... | 27.295455 | 77 | 0.717735 | 149 | 1,201 | 5.637584 | 0.416107 | 0.152381 | 0.075 | 0.066667 | 0.439286 | 0.439286 | 0.280952 | 0.280952 | 0.280952 | 0.280952 | 0 | 0.01134 | 0.19234 | 1,201 | 43 | 78 | 27.930233 | 0.854639 | 0.199833 | 0 | 0.454545 | 0 | 0 | 0.04476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
014b1316bbc807d3a6c4e323a2ddb1f35250a147 | 428 | py | Python | components/studio/apps/migrations/0055_appinstance_access.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 25 | 2020-05-08T22:24:54.000Z | 2022-03-11T18:16:58.000Z | components/studio/apps/migrations/0055_appinstance_access.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 75 | 2020-05-08T22:15:59.000Z | 2021-11-22T10:00:04.000Z | components/studio/apps/migrations/0055_appinstance_access.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 12 | 2020-11-04T13:09:46.000Z | 2022-03-14T16:22:40.000Z | # Generated by Django 3.1.7 on 2021-05-26 12:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('apps', '0054_auto_20210525_1114'),
]
operations = [
migrations.AddField(
model_name='appinstance',
name='access',
... | 22.526316 | 92 | 0.61215 | 48 | 428 | 5.354167 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105096 | 0.266355 | 428 | 18 | 93 | 23.777778 | 0.713376 | 0.10514 | 0 | 0 | 1 | 0 | 0.133858 | 0.060367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
014c661b4ee9f1765fe9a71fd14a56e7f1881ebd | 1,512 | py | Python | modulo-3/aulas/funcao_2.py | Luis-Felipe-N/curso-em-video-python | 09ff58ae31ae0360ebec74de609011d527956065 | [
"MIT"
] | null | null | null | modulo-3/aulas/funcao_2.py | Luis-Felipe-N/curso-em-video-python | 09ff58ae31ae0360ebec74de609011d527956065 | [
"MIT"
] | null | null | null | modulo-3/aulas/funcao_2.py | Luis-Felipe-N/curso-em-video-python | 09ff58ae31ae0360ebec74de609011d527956065 | [
"MIT"
] | null | null | null | # COMO TRABALHAMOS MUITO COM ROTINAS, CRIAR UMA FUNÇÃO E CHAMA-LA NO CÓDIGO FACILITA MUITO NÃO TER QUE ESCREVER A MESMA LINHA VÁRIAS VEZES
# USAMOS O COMANDO DEF PARA DECLARAR UMA FUNCAO, DEPOIS UM NOME PARA A FUNÇÃO EX:
# def nomeDaFuncao():
# # BLOCO COM O CÓDIGO QUE DESEJA QUE SEJÁ EXECULTADO NA CHAMADA DA FUNÇ... | 22.909091 | 138 | 0.671958 | 239 | 1,512 | 4.251046 | 0.485356 | 0.029528 | 0.027559 | 0.029528 | 0.037402 | 0.037402 | 0 | 0 | 0 | 0 | 0 | 0.018723 | 0.222884 | 1,512 | 65 | 139 | 23.261538 | 0.845957 | 0.633598 | 0 | 0.166667 | 0 | 0 | 0.014085 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.208333 | 0.291667 | 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 |
014e3e728d1d9378b4810966f0de08c19709bfa8 | 822 | py | Python | archived_lectures/Fall_2019/common_python/common_python/tests/tellurium/test_util.py | ModelEngineering/topics-course | cd0d73e4056663d170465669ecd699e8e74e35a0 | [
"MIT"
] | 2 | 2018-10-24T21:31:30.000Z | 2019-10-23T20:29:22.000Z | archived_lectures/Fall_2019/common_python/common_python/tests/tellurium/test_util.py | ModelEngineering/topics-course | cd0d73e4056663d170465669ecd699e8e74e35a0 | [
"MIT"
] | 1 | 2019-05-31T21:59:30.000Z | 2019-05-31T21:59:30.000Z | archived_lectures/Fall_2019/common_python/common_python/tests/tellurium/test_util.py | ModelEngineering/topics-course | cd0d73e4056663d170465669ecd699e8e74e35a0 | [
"MIT"
] | 9 | 2018-10-31T20:48:42.000Z | 2019-11-20T21:47:43.000Z | from common_python.tellurium import util
import pandas as pd
import numpy as np
import unittest
class TestFunctions(unittest.TestCase):
def testDfToSer(self):
data = range(5)
df = pd.DataFrame({'a': data, 'b': [2*d for d in data]})
ser = util.dfToSer(df)
assert(len(ser) == len(df.columns)*len(df))... | 25.6875 | 60 | 0.656934 | 122 | 822 | 4.352459 | 0.385246 | 0.037665 | 0.107345 | 0.19209 | 0.606403 | 0.397363 | 0.397363 | 0.397363 | 0.397363 | 0.397363 | 0 | 0.019374 | 0.183698 | 822 | 31 | 61 | 26.516129 | 0.771982 | 0 | 0 | 0.434783 | 0 | 0 | 0.014599 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.130435 | false | 0 | 0.173913 | 0 | 0.347826 | 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 |
015472fb9c391cf927e9fc40a91f9c791db806b8 | 3,646 | py | Python | scripts/server2ros.py | wjvanderlip/radbot_nuke | 7ea4bf049f4249ddbe033bd6453d80a4d6a604e2 | [
"MIT"
] | null | null | null | scripts/server2ros.py | wjvanderlip/radbot_nuke | 7ea4bf049f4249ddbe033bd6453d80a4d6a604e2 | [
"MIT"
] | null | null | null | scripts/server2ros.py | wjvanderlip/radbot_nuke | 7ea4bf049f4249ddbe033bd6453d80a4d6a604e2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
import numpy as np
import pickle
import time
import socket
from rospy.numpy_msg import numpy_msg
from radbot_nuke.msg import detector_msg
rospy.init_node('detServer', anonymous=False)
pub = rospy.Publisher('/detector_data', detector_msg, queue_size=10)
def send_ros_msg(ts, adc, de... | 33.145455 | 159 | 0.626166 | 523 | 3,646 | 4.208413 | 0.395794 | 0.043617 | 0.012267 | 0.009087 | 0.02726 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034314 | 0.272628 | 3,646 | 109 | 160 | 33.449541 | 0.795626 | 0.118486 | 0 | 0.058824 | 0 | 0 | 0.066146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102941 | null | null | 0.044118 | 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 |
015a6e13245e57ce78b8a86522e4aae0bd1d03bc | 381 | py | Python | 1030.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 6 | 2021-04-13T00:33:43.000Z | 2022-02-10T10:23:59.000Z | 1030.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | null | null | null | 1030.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 3 | 2021-03-23T18:42:24.000Z | 2022-02-10T10:24:07.000Z | for g in range(int(input())):
n, k = [int(x) for x in input().split()]
v = [1 for x in range(1, n+1)]
m = 0
i = p = 1
while (m < n-1):
if v[i] == 1: p += 1
if p == k:
v[i] = 0
m += 1
p = 0
i += 1
if i == n: i = 0
i = 0
while... | 22.411765 | 44 | 0.333333 | 71 | 381 | 1.788732 | 0.295775 | 0.062992 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087805 | 0.461942 | 381 | 16 | 45 | 23.8125 | 0.531707 | 0 | 0 | 0 | 0 | 0 | 0.028871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
015b648e126b7003dc4ab0b7712ea0d4e285061d | 6,762 | py | Python | projects/Graphing_and_DataEntry/graphing_calculator.py | DavidsonNext/WWW | cf486e641e19d0b8c3823cceafc5389f0b3d6bb7 | [
"Apache-2.0"
] | null | null | null | projects/Graphing_and_DataEntry/graphing_calculator.py | DavidsonNext/WWW | cf486e641e19d0b8c3823cceafc5389f0b3d6bb7 | [
"Apache-2.0"
] | null | null | null | projects/Graphing_and_DataEntry/graphing_calculator.py | DavidsonNext/WWW | cf486e641e19d0b8c3823cceafc5389f0b3d6bb7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
from IPython.display import HTML
# <markdowncell>
# #Graphing Calculator - inspired by AP Calculus
# Graphing calculators are permitted for use during "calculator active" problems on AP exams. Here we attempt to provide open access to those functionali... | 40.981818 | 184 | 0.484028 | 668 | 6,762 | 4.88024 | 0.321856 | 0.033742 | 0.016564 | 0.018405 | 0.42546 | 0.388344 | 0.342945 | 0.306748 | 0.306748 | 0.279141 | 0 | 0.015802 | 0.372967 | 6,762 | 164 | 185 | 41.231707 | 0.753066 | 0 | 0 | 0.300885 | 0 | 0.026549 | 0.136875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00885 | 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 |
015f0c33210496779ba5007e68d3fe09693fe4a9 | 1,666 | py | Python | visualizeSIM.py | Jhko725/ProteinStructureReconstruction.jl | 18ec2f5a63e3c07d4498da363a8befc86e7ad68c | [
"MIT"
] | null | null | null | visualizeSIM.py | Jhko725/ProteinStructureReconstruction.jl | 18ec2f5a63e3c07d4498da363a8befc86e7ad68c | [
"MIT"
] | null | null | null | visualizeSIM.py | Jhko725/ProteinStructureReconstruction.jl | 18ec2f5a63e3c07d4498da363a8befc86e7ad68c | [
"MIT"
] | null | null | null | from typing import Optional
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.axis import Axis
from matplotlib.patches import Rectangle
from superresolution import SIM_3D_Data
def make_axis_if_none(ax: Optional[Axis]) -> Axis:
if ax is None:
_, ax = plt.subplots(1, 1, figsize = (10, 10))... | 36.217391 | 124 | 0.696279 | 268 | 1,666 | 4.119403 | 0.36194 | 0.036232 | 0.024457 | 0.025362 | 0.088768 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016248 | 0.187275 | 1,666 | 45 | 125 | 37.022222 | 0.799114 | 0.098439 | 0 | 0.088235 | 0 | 0 | 0.028686 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01628e3852b55e9865865ff86cdf3e6ad3323fe8 | 1,097 | py | Python | misc/disablepasscomplexity.py | brianfinley/confluent | 6458eac93b1e3c6d45e26a7ddb434d692b5cdff2 | [
"Apache-2.0"
] | 27 | 2015-02-11T13:56:46.000Z | 2021-12-28T14:17:20.000Z | misc/disablepasscomplexity.py | brianfinley/confluent | 6458eac93b1e3c6d45e26a7ddb434d692b5cdff2 | [
"Apache-2.0"
] | 32 | 2015-09-23T13:19:04.000Z | 2022-03-15T13:50:45.000Z | misc/disablepasscomplexity.py | brianfinley/confluent | 6458eac93b1e3c6d45e26a7ddb434d692b5cdff2 | [
"Apache-2.0"
] | 24 | 2015-07-14T20:41:55.000Z | 2021-07-15T04:18:51.000Z | #!/usr/bin/python2
import pyghmi.util.webclient as webclient
import json
import os
import sys
missingargs = False
if 'XCCUSER' not in os.environ:
print('Must set XCCUSER environment variable')
missingargs = True
if 'XCCPASS' not in os.environ:
print('Must set XCCPASS environment variable')
missingargs ... | 33.242424 | 90 | 0.688241 | 143 | 1,097 | 5.202797 | 0.503497 | 0.048387 | 0.040323 | 0.037634 | 0.239247 | 0.069892 | 0.069892 | 0 | 0 | 0 | 0 | 0.010799 | 0.15588 | 1,097 | 32 | 91 | 34.28125 | 0.792657 | 0.015497 | 0 | 0.071429 | 0 | 0 | 0.293791 | 0.027804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 0.107143 | 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 |
01685654bd4a20e989dd7468c19a080303cdaf20 | 1,846 | py | Python | learn-python/basics/basicCommands.py | pradeep-charism/python-projects | 5933bbbc309e6e271701ac2643a657e0928e7090 | [
"MIT"
] | null | null | null | learn-python/basics/basicCommands.py | pradeep-charism/python-projects | 5933bbbc309e6e271701ac2643a657e0928e7090 | [
"MIT"
] | null | null | null | learn-python/basics/basicCommands.py | pradeep-charism/python-projects | 5933bbbc309e6e271701ac2643a657e0928e7090 | [
"MIT"
] | null | null | null | print("Thank you Jesus")
# Read a value from standard input a value
# input("Thank you")
# Evaluate expression
x = 1
print(x)
x += 3
print(x)
# loops
if x > 1:
print("great than 1")
else:
print("less than 1")
n = 3
while n > 1:
print(n)
n -= 1
# Arithmetic operator
print({100 % 3}, {100 / 3})
z =... | 15.644068 | 97 | 0.583965 | 306 | 1,846 | 3.496732 | 0.46732 | 0.011215 | 0.008411 | 0.020561 | 0.04486 | 0.035514 | 0.035514 | 0 | 0 | 0 | 0 | 0.046251 | 0.226977 | 1,846 | 117 | 98 | 15.777778 | 0.703574 | 0.337486 | 0 | 0.19403 | 0 | 0 | 0.164589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.014925 | 0 | 0.044776 | 0.477612 | 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 |
0169e02b946dc8b1102bf51029d535f9fe1e7d2d | 15,883 | py | Python | build/lib/scrapper/settings.py | guilhermeKodama/Closetinn | 44d6792cfb0db9cce56db83f2e8c4b8777530f68 | [
"MIT"
] | null | null | null | build/lib/scrapper/settings.py | guilhermeKodama/Closetinn | 44d6792cfb0db9cce56db83f2e8c4b8777530f68 | [
"MIT"
] | null | null | null | build/lib/scrapper/settings.py | guilhermeKodama/Closetinn | 44d6792cfb0db9cce56db83f2e8c4b8777530f68 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Scrapy settings for scrapper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/lates... | 43.634615 | 109 | 0.661021 | 1,497 | 15,883 | 6.970608 | 0.217101 | 0.049641 | 0.071682 | 0.016291 | 0.117873 | 0.081936 | 0.080019 | 0.044082 | 0.031912 | 0.029516 | 0 | 0.005687 | 0.136498 | 15,883 | 363 | 110 | 43.754821 | 0.755159 | 0.222691 | 0 | 0.046875 | 0 | 0 | 0.623634 | 0.022264 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.007813 | 0.003906 | 0 | 0.003906 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
016e32f2a963118067a022a4358ef9d531d71194 | 280 | py | Python | aml/__init__.py | ArvinSKushwaha/AML | 3594a861cfe1733d6a92a293bf7737e2ec2be5df | [
"MIT"
] | null | null | null | aml/__init__.py | ArvinSKushwaha/AML | 3594a861cfe1733d6a92a293bf7737e2ec2be5df | [
"MIT"
] | null | null | null | aml/__init__.py | ArvinSKushwaha/AML | 3594a861cfe1733d6a92a293bf7737e2ec2be5df | [
"MIT"
] | null | null | null | from .core import (
mean,
sum,
exp,
sin,
cos,
tan,
log,
tensor,
grad_tensor,
zeros,
ones,
randn,
rand,
Tensor,
argmax,
)
from .linear import Linear
from .model import Module, Sequential
from .sampler import TensorSample
| 13.333333 | 37 | 0.589286 | 32 | 280 | 5.125 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.332143 | 280 | 20 | 38 | 14 | 0.877005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0170f03d5c6113a721972e11f7d310051390f158 | 557 | py | Python | train_flickr.py | raph-m/pytorch-CycleGAN-and-pix2pix | 41891a12fb4f92ebef60e82fe533110c2d5a6311 | [
"BSD-3-Clause"
] | null | null | null | train_flickr.py | raph-m/pytorch-CycleGAN-and-pix2pix | 41891a12fb4f92ebef60e82fe533110c2d5a6311 | [
"BSD-3-Clause"
] | null | null | null | train_flickr.py | raph-m/pytorch-CycleGAN-and-pix2pix | 41891a12fb4f92ebef60e82fe533110c2d5a6311 | [
"BSD-3-Clause"
] | null | null | null | import sys
from utils import my_train, flickr_train_params, flickr_params, my_test, copy_networks
if __name__ == "__main__":
do_import = True
first_arg = sys.argv[0]
if do_import:
copy_networks(model_to_import="celeba_cycle", iter="2")
flickr_train_params["continue_train"] = True
... | 25.318182 | 86 | 0.721724 | 76 | 557 | 4.815789 | 0.407895 | 0.120219 | 0.139344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004376 | 0.179533 | 557 | 21 | 87 | 26.52381 | 0.796499 | 0 | 0 | 0 | 0 | 0 | 0.124324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 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 |
01747966cb8b478038f5ca30657c325c98657e48 | 3,614 | py | Python | park_piper.py | skarplab/park_piper | 6f51fdb21fa8f7e53a731fb118370b50270788f8 | [
"MIT"
] | null | null | null | park_piper.py | skarplab/park_piper | 6f51fdb21fa8f7e53a731fb118370b50270788f8 | [
"MIT"
] | 1 | 2019-11-05T19:06:51.000Z | 2019-11-05T19:06:51.000Z | park_piper.py | skarplab/park_piper | 6f51fdb21fa8f7e53a731fb118370b50270788f8 | [
"MIT"
] | null | null | null | ###############
## LIBRARIES ##
###############
import click
from copy import deepcopy
from pprint import pprint
from arcgis.gis import GIS
from arcgis import features
import geopandas as gpd
##################
## FUNCTION(S) ##
##################
def agol_to_gdf(fset):
gdf = gpd.read_file(fset.to_geojson)
g... | 48.186667 | 280 | 0.710017 | 508 | 3,614 | 4.740157 | 0.232283 | 0.041113 | 0.059801 | 0.055233 | 0.329734 | 0.285299 | 0.261213 | 0.261213 | 0.232143 | 0.160714 | 0 | 0.003617 | 0.15855 | 3,614 | 75 | 281 | 48.186667 | 0.788228 | 0.060321 | 0 | 0 | 0 | 0 | 0.179487 | 0.026848 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0.076923 | 0.115385 | 0 | 0.192308 | 0.096154 | 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 |
0174e0a9353f91cac1b89d08d2f7d7e33badec5b | 1,646 | py | Python | programs/mv.py | RaInta/PyOS | 0e38faba3f3b9958316f77b2163118ec8eb8845f | [
"MIT"
] | null | null | null | programs/mv.py | RaInta/PyOS | 0e38faba3f3b9958316f77b2163118ec8eb8845f | [
"MIT"
] | null | null | null | programs/mv.py | RaInta/PyOS | 0e38faba3f3b9958316f77b2163118ec8eb8845f | [
"MIT"
] | null | null | null | # PyOS
# Made for Python 2.7
# programs/mv.py
# Import Libraries
# PyOS Scripts
import internal.extra
import os
from programs.cp import displayCwdFiles, getFileOrigin
def app():
print(internal.extra.colors.OKGREEN + "Moving (renaming) files: " + internal.extra.colors.ENDC)
print(internal.extra.colors.BOLD + ... | 44.486486 | 133 | 0.669502 | 215 | 1,646 | 4.995349 | 0.325581 | 0.157356 | 0.212291 | 0.128492 | 0.260708 | 0.099628 | 0 | 0 | 0 | 0 | 0 | 0.004601 | 0.207776 | 1,646 | 36 | 134 | 45.722222 | 0.819018 | 0.059538 | 0 | 0.074074 | 0 | 0 | 0.182998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.148148 | 0.185185 | 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 |
0174f77e9de6cf1e78caa97b728122d68f161063 | 3,003 | py | Python | tests/subscriptions/test_store.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | tests/subscriptions/test_store.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | tests/subscriptions/test_store.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | from datetime import timedelta
from uuid import uuid1
from snuba.redis import redis_client
from snuba.subscriptions.data import SubscriptionData
from snuba.subscriptions.store import RedisSubscriptionDataStore
from tests.subscriptions import BaseSubscriptionTest
class TestRedisSubscriptionStore(BaseSubscriptionTest)... | 39 | 74 | 0.640027 | 302 | 3,003 | 6.15894 | 0.182119 | 0.158065 | 0.096774 | 0.16129 | 0.618817 | 0.572581 | 0.548387 | 0.501075 | 0.438172 | 0.406989 | 0 | 0.013549 | 0.238095 | 3,003 | 76 | 75 | 39.513158 | 0.799388 | 0 | 0 | 0.477612 | 0 | 0 | 0.02664 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 1 | 0.089552 | false | 0 | 0.089552 | 0.029851 | 0.223881 | 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 |
017eb9741cc803273ee726ff5eb9f25a88afc42c | 1,124 | py | Python | tests/test_comment.py | githaefrancis/fluent-exchange | 1bf2597f3baba79c36c816146992842fcc85a08f | [
"MIT"
] | null | null | null | tests/test_comment.py | githaefrancis/fluent-exchange | 1bf2597f3baba79c36c816146992842fcc85a08f | [
"MIT"
] | null | null | null | tests/test_comment.py | githaefrancis/fluent-exchange | 1bf2597f3baba79c36c816146992842fcc85a08f | [
"MIT"
] | null | null | null | import unittest
from app.models import User,Role,Post,Comment
class CommentModelTest(unittest.TestCase):
def setUp(self):
self.new_user=User(name="Francis Githae",username='fgithae',password='password',email="francis@gmail.com",role=Role.query.filter_by(id=1).first())
self.new_post=Post(user=self.new_user,t... | 40.142857 | 168 | 0.758897 | 166 | 1,124 | 4.987952 | 0.391566 | 0.118357 | 0.118357 | 0.111111 | 0.310386 | 0.060386 | 0 | 0 | 0 | 0 | 0 | 0.002991 | 0.107651 | 1,124 | 28 | 169 | 40.142857 | 0.822532 | 0 | 0 | 0 | 0 | 0 | 0.160889 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1 | 0.238095 | false | 0.047619 | 0.095238 | 0 | 0.380952 | 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 |
017fe9e609d95e7d2936358460f2c94dafdfc951 | 1,429 | py | Python | Homework/HW3/src/solution.py | fuadaghazada/X-WORD | 9d2f1f23e3bda31a27e038c90fc9ee30b73f5539 | [
"MIT"
] | 2 | 2019-06-12T08:32:12.000Z | 2020-04-03T13:09:54.000Z | Homework/HW3/src/solution.py | fuadaghazada/X-WORD | 9d2f1f23e3bda31a27e038c90fc9ee30b73f5539 | [
"MIT"
] | null | null | null | Homework/HW3/src/solution.py | fuadaghazada/X-WORD | 9d2f1f23e3bda31a27e038c90fc9ee30b73f5539 | [
"MIT"
] | 2 | 2019-05-31T08:56:03.000Z | 2019-12-17T01:58:20.000Z | from state import print_solution_path
from search import BBS, A_star_search
from puzzle import generate
from write_to_file import write_to_csv, write_to_txt
'''
CS461 - Artificial Intelligence Homework 3
Group members:
* Fuad Aghazada
* Can Özgürel
* Çağatay Sel
* Utku Mert Top... | 21.984615 | 77 | 0.686494 | 201 | 1,429 | 4.696517 | 0.447761 | 0.111229 | 0.036017 | 0.027542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015469 | 0.230931 | 1,429 | 64 | 78 | 22.328125 | 0.843494 | 0.130861 | 0 | 0 | 1 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.24 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0184348ba0c172bce71500036c4f9c8c8e4b28b8 | 449 | py | Python | src/leagues/migrations/0015_rotomultileagues_domain.py | sfernandezf/analytics-yahoofantasy | 6242599b903e4b8a7f9c56892ba26591a441b8fb | [
"Apache-2.0"
] | null | null | null | src/leagues/migrations/0015_rotomultileagues_domain.py | sfernandezf/analytics-yahoofantasy | 6242599b903e4b8a7f9c56892ba26591a441b8fb | [
"Apache-2.0"
] | 6 | 2020-03-15T03:32:06.000Z | 2022-01-13T03:46:05.000Z | src/leagues/migrations/0015_rotomultileagues_domain.py | sfernandezf/analytics-yahoofantasy | 6242599b903e4b8a7f9c56892ba26591a441b8fb | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.3 on 2021-05-07 01:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leagues', '0014_rotomultileagues_is_active'),
]
operations = [
migrations.AddField(
model_name='rotomultileagues',
n... | 23.631579 | 97 | 0.63029 | 49 | 449 | 5.653061 | 0.77551 | 0.072202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065672 | 0.253898 | 449 | 18 | 98 | 24.944444 | 0.761194 | 0.100223 | 0 | 0 | 1 | 0 | 0.164179 | 0.077114 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01858b30db6e28ba009ea21f05772bc48958908b | 7,329 | py | Python | ThingiBrowser/api/AbstractApiClient.py | BohunkG4mer/ThingiBrowser | 1cb541a6798b125231f64699a13f7bbc25d2b0f0 | [
"MIT"
] | 1 | 2019-11-15T20:06:16.000Z | 2019-11-15T20:06:16.000Z | ThingiBrowser/api/AbstractApiClient.py | BohunkG4mer/ThingiBrowser | 1cb541a6798b125231f64699a13f7bbc25d2b0f0 | [
"MIT"
] | null | null | null | ThingiBrowser/api/AbstractApiClient.py | BohunkG4mer/ThingiBrowser | 1cb541a6798b125231f64699a13f7bbc25d2b0f0 | [
"MIT"
] | null | null | null | # Copyright (c) 2020 Chris ter Beke.
# Thingiverse plugin is released under the terms of the LGPLv3 or higher.
import logging
from typing import List, Callable, Any, Tuple, Optional
from abc import ABC, abstractmethod
from PyQt5.QtCore import QUrl
from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkReply, QNetw... | 41.88 | 116 | 0.669532 | 801 | 7,329 | 6.044944 | 0.253433 | 0.056175 | 0.056175 | 0.089632 | 0.29843 | 0.184634 | 0.173482 | 0.160264 | 0.160264 | 0.139612 | 0 | 0.002361 | 0.248601 | 7,329 | 174 | 117 | 42.12069 | 0.876884 | 0.287625 | 0 | 0.238636 | 0 | 0 | 0.13251 | 0.029726 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215909 | false | 0 | 0.090909 | 0 | 0.352273 | 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 |
01886702340a7e2614a1ba8467c3b9e447627ac9 | 2,545 | py | Python | test/prettifier.py | ZachJHansen/Dist_Mem_GAPBS | 4c7d702c641e860e6a28f2957cec1509ce5f9893 | [
"BSD-3-Clause"
] | null | null | null | test/prettifier.py | ZachJHansen/Dist_Mem_GAPBS | 4c7d702c641e860e6a28f2957cec1509ce5f9893 | [
"BSD-3-Clause"
] | 3 | 2021-08-15T18:49:36.000Z | 2021-08-15T18:56:21.000Z | test/prettifier.py | ZachJHansen/Dist_Mem_GAPBS | 4c7d702c641e860e6a28f2957cec1509ce5f9893 | [
"BSD-3-Clause"
] | null | null | null | import subprocess
import time
import os
import sys
def generate_el_commands(kernel):
commands = []
if (kernel == "TC"):
sym_test = [True]
else:
sym_test = [True, False]
for symmetrize in sym_test:
for npes in range(2,6):
for v in [9,14]:
for e in [8,9,11,... | 34.863014 | 127 | 0.502554 | 313 | 2,545 | 4.031949 | 0.28754 | 0.012678 | 0.019017 | 0.035658 | 0.454041 | 0.251189 | 0.200475 | 0.169572 | 0.169572 | 0.169572 | 0 | 0.024669 | 0.346955 | 2,545 | 72 | 128 | 35.347222 | 0.734657 | 0 | 0 | 0.242424 | 1 | 0 | 0.14499 | 0.028291 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.060606 | 0 | 0.166667 | 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 |
018ea4db5dccbf0d3e4ad515400df46535657771 | 1,295 | py | Python | tests/test_structural/test_proxy.py | TrendingTechnology/python-patterns-1 | 426482f58b86a0a7525e303444338e9bb73698de | [
"BSD-3-Clause"
] | 2 | 2021-09-23T16:41:42.000Z | 2021-11-20T11:54:42.000Z | tests/test_structural/test_proxy.py | TrendingTechnology/python-patterns-1 | 426482f58b86a0a7525e303444338e9bb73698de | [
"BSD-3-Clause"
] | null | null | null | tests/test_structural/test_proxy.py | TrendingTechnology/python-patterns-1 | 426482f58b86a0a7525e303444338e9bb73698de | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ********************************************************
# Author and developer: Aleksandr Suvorov
# --------------------------------------------------------
# Licensed: BSD 3-Clause License (see LICENSE for details)
# --------------------------------------------------------
# Url: https://git... | 38.088235 | 62 | 0.467954 | 131 | 1,295 | 4.496183 | 0.419847 | 0.237691 | 0.142615 | 0.101868 | 0.383701 | 0.224109 | 0.142615 | 0.142615 | 0.142615 | 0.142615 | 0 | 0.018605 | 0.169884 | 1,295 | 33 | 63 | 39.242424 | 0.528372 | 0.44556 | 0 | 0.352941 | 0 | 0 | 0.120567 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.176471 | false | 0 | 0 | 0 | 0.235294 | 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 |
019038b5e29201ae48ff890d61729392b8611ea1 | 1,050 | py | Python | Backend/clother/admin/utils.py | t3ddyss/Clother | ca7bfd2a830cb36cf7ba62782498636e58f9ea17 | [
"MIT"
] | 21 | 2021-04-21T10:36:12.000Z | 2021-10-18T10:23:38.000Z | Backend/clother/admin/utils.py | t3ddyss/Clother | ca7bfd2a830cb36cf7ba62782498636e58f9ea17 | [
"MIT"
] | 1 | 2021-06-04T15:19:35.000Z | 2021-06-04T15:19:35.000Z | Backend/clother/admin/utils.py | t3ddyss/Clother | ca7bfd2a830cb36cf7ba62782498636e58f9ea17 | [
"MIT"
] | 1 | 2022-03-03T02:50:37.000Z | 2022-03-03T02:50:37.000Z | import datetime
import math
import random
import time
from ..users.models import User
def generate_random_time():
min_time = datetime.datetime(year=2021, month=1, day=1)
max_time = datetime.datetime(year=2021, month=3, day=31)
min_time_ts = int(time.mktime(min_time.timetuple()))
max_time_ts = int(ti... | 26.25 | 81 | 0.662857 | 172 | 1,050 | 3.889535 | 0.430233 | 0.041854 | 0.050822 | 0.071749 | 0.155456 | 0.098655 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.185714 | 1,050 | 39 | 82 | 26.923077 | 0.715789 | 0 | 0 | 0 | 1 | 0 | 0.006667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.192308 | 0.038462 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01949a8453b27509b378298375545c88dd880612 | 525 | py | Python | vkmodels/objects/addresses.py | deknowny/vk-api-py-models | 6760c9395b39efd2a987251893b418a61eefbdca | [
"MIT"
] | null | null | null | vkmodels/objects/addresses.py | deknowny/vk-api-py-models | 6760c9395b39efd2a987251893b418a61eefbdca | [
"MIT"
] | null | null | null | vkmodels/objects/addresses.py | deknowny/vk-api-py-models | 6760c9395b39efd2a987251893b418a61eefbdca | [
"MIT"
] | null | null | null | import dataclasses
import enum
import typing
from vkmodels.bases.object import ObjectBase
class Fields(str, enum.Enum):
ID = "id"
TITLE = "title"
ADDRESS = "address"
ADDITIONAL_ADDRESS = "additional_address"
COUNTRY_ID = "country_id"
CITY_ID = "city_id"
METRO_STATION_ID = "metro_station_i... | 22.826087 | 45 | 0.689524 | 61 | 525 | 5.672131 | 0.491803 | 0.098266 | 0.138728 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217143 | 525 | 22 | 46 | 23.863636 | 0.841849 | 0 | 0 | 0 | 0 | 0 | 0.249524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0196af5b9fce69fa6d92fe89461a5b8fdf7588ed | 3,413 | py | Python | test/test_caching.py | ORNL/curifactory | f8be235b7fa7b91cc86f61d610d7093075b89d1f | [
"BSD-3-Clause"
] | 4 | 2022-01-25T18:27:49.000Z | 2022-03-30T22:57:04.000Z | test/test_caching.py | ORNL/curifactory | f8be235b7fa7b91cc86f61d610d7093075b89d1f | [
"BSD-3-Clause"
] | 1 | 2022-03-05T19:10:42.000Z | 2022-03-07T18:00:49.000Z | test/test_caching.py | ORNL/curifactory | f8be235b7fa7b91cc86f61d610d7093075b89d1f | [
"BSD-3-Clause"
] | null | null | null | import curifactory as cf
import json
import os
import pytest
from stages.cache_stages import filerefcacher_stage, filerefcacher_stage_multifile
# TODO: necessary? configured_test_manager already does this
@pytest.fixture()
def clear_stage_run(configured_test_manager):
ran_path = os.path.join(configured_test_mana... | 32.504762 | 105 | 0.714914 | 431 | 3,413 | 5.345708 | 0.206497 | 0.121528 | 0.182292 | 0.069444 | 0.720052 | 0.69401 | 0.648438 | 0.648438 | 0.532552 | 0.530816 | 0 | 0.004019 | 0.198066 | 3,413 | 104 | 106 | 32.817308 | 0.837779 | 0.093173 | 0 | 0.5875 | 0 | 0 | 0.110101 | 0.092887 | 0 | 0 | 0 | 0.009615 | 0.0875 | 1 | 0.0625 | false | 0.025 | 0.0625 | 0 | 0.125 | 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 |
0199b3ed945c2771be748d98e1dc7b130caca848 | 2,961 | py | Python | ngram.py | lojikil/lojifacts | 88e2318e0b6c6cb5eb270002abc4b4195e5b85b1 | [
"0BSD"
] | null | null | null | ngram.py | lojikil/lojifacts | 88e2318e0b6c6cb5eb270002abc4b4195e5b85b1 | [
"0BSD"
] | null | null | null | ngram.py | lojikil/lojifacts | 88e2318e0b6c6cb5eb270002abc4b4195e5b85b1 | [
"0BSD"
] | null | null | null | import json
import re
import random
def stopfilter(word):
if word[0] == '@' or word.startswith('http'):
return False
return True
class NGram(object):
__slots__ = ['wordindex', 'size', 'punct', 'chain']
def __init__(self, size=2):
self.wordindex = {}
self.chain = {}
... | 25.09322 | 73 | 0.549814 | 356 | 2,961 | 4.426966 | 0.269663 | 0.039975 | 0.030457 | 0.030457 | 0.074239 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022037 | 0.310368 | 2,961 | 117 | 74 | 25.307692 | 0.749755 | 0.009119 | 0 | 0.025 | 0 | 0 | 0.031797 | 0.012862 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0375 | null | null | 0.15 | 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 |
6d6893d2b301e5ade9e14d6da20a25931ea35482 | 416 | py | Python | pretix_eventparts/migrations/0007_alter_eventpart_category.py | bockstaller/pretix-eventparts | b5cb8f89cb86677facc0509f9a36cf9359c94534 | [
"Apache-2.0"
] | null | null | null | pretix_eventparts/migrations/0007_alter_eventpart_category.py | bockstaller/pretix-eventparts | b5cb8f89cb86677facc0509f9a36cf9359c94534 | [
"Apache-2.0"
] | null | null | null | pretix_eventparts/migrations/0007_alter_eventpart_category.py | bockstaller/pretix-eventparts | b5cb8f89cb86677facc0509f9a36cf9359c94534 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-31 23:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("pretix_eventparts", "0006_alter_eventpart_name"),
]
operations = [
migrations.AlterField(
model_name="eventpart",
na... | 21.894737 | 63 | 0.615385 | 44 | 416 | 5.681818 | 0.818182 | 0.104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072368 | 0.269231 | 416 | 18 | 64 | 23.111111 | 0.75 | 0.108173 | 0 | 0 | 1 | 0 | 0.159892 | 0.067751 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d739c512a7425dd3bf1c30daa1d7ca1dc743fab | 377 | py | Python | slidingWindow/maximumSubarrayOfSizeK.py | YasinEhsan/interview-prep | ed9f95af5a37b05304e45b41511068b6f72533e7 | [
"Apache-2.0"
] | 11 | 2019-05-02T22:27:01.000Z | 2020-10-30T08:43:02.000Z | slidingWindow/maximumSubarrayOfSizeK.py | YasinEhsan/interview-prep | ed9f95af5a37b05304e45b41511068b6f72533e7 | [
"Apache-2.0"
] | null | null | null | slidingWindow/maximumSubarrayOfSizeK.py | YasinEhsan/interview-prep | ed9f95af5a37b05304e45b41511068b6f72533e7 | [
"Apache-2.0"
] | 3 | 2019-11-01T01:35:01.000Z | 2020-01-11T18:00:39.000Z | # may 30 20
def max_sub_array_of_size_k(k, arr):
# TODO: Write your code here
windowStart, currSum, maxSum = 0,0,0
for endIndex in range(len(arr)):
currSum += arr[endIndex]
if endIndex - windowStart + 1 > k:
currSum -= arr[windowStart]
windowStart+=1
# had this in while...most cases its... | 23.5625 | 46 | 0.657825 | 56 | 377 | 4.339286 | 0.625 | 0.016461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031359 | 0.238727 | 377 | 15 | 47 | 25.133333 | 0.815331 | 0.204244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 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 |
6d769b7ba35986193281813c7384ebbac51f27b4 | 1,547 | py | Python | src/config.py | shousper/pancake-hipchat-bot | a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71 | [
"MIT"
] | null | null | null | src/config.py | shousper/pancake-hipchat-bot | a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71 | [
"MIT"
] | null | null | null | src/config.py | shousper/pancake-hipchat-bot | a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
import ConfigParser
import os
import inspect
class Settings():
__default_conf_name = 'example.conf'
__conf = {}
def __init__(self, filename=False):
"""
Create config object, read config data from file and make
friendly format ot access to config d... | 27.625 | 108 | 0.550743 | 174 | 1,547 | 4.724138 | 0.396552 | 0.068127 | 0.040146 | 0.046229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006783 | 0.332902 | 1,547 | 55 | 109 | 28.127273 | 0.789729 | 0.013575 | 0 | 0.058824 | 0 | 0 | 0.041877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088235 | 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 |
6d816723bee564519a5e4db1c3f8cf7df4142b1b | 760 | py | Python | Scripts5/Script38.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | 1 | 2020-09-05T22:25:36.000Z | 2020-09-05T22:25:36.000Z | Scripts5/Script38.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | null | null | null | Scripts5/Script38.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | null | null | null | '''Faça um programa que receba dois números, compare e diga quem é maior. Mostrando a msn qual valor é maior ou menor. OU diga que os valores são iguais.'''
print('=+=+=+=+=+=+=+=+='*3)
titulo = 'COMPARANDO NÚMEROS MAIOR, MENOR E IGUAL'
print('{:^51}'.format(titulo))
print('-----------------'*3)
num1 = float(input('Dig... | 44.705882 | 156 | 0.626316 | 113 | 760 | 4.212389 | 0.469027 | 0.084034 | 0.081933 | 0.071429 | 0.180672 | 0.180672 | 0.180672 | 0.180672 | 0.180672 | 0.180672 | 0 | 0.057276 | 0.15 | 760 | 16 | 157 | 47.5 | 0.679567 | 0.197368 | 0 | 0.133333 | 0 | 0 | 0.514901 | 0.069536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.533333 | 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 |
6d98732be2adda89107919e11c0da39aeeb1518a | 294 | py | Python | rules.py | ravewillow6383/game-of-greed | 50a1f67b17382efc431dc64903c42c99799b1451 | [
"MIT"
] | null | null | null | rules.py | ravewillow6383/game-of-greed | 50a1f67b17382efc431dc64903c42c99799b1451 | [
"MIT"
] | null | null | null | rules.py | ravewillow6383/game-of-greed | 50a1f67b17382efc431dc64903c42c99799b1451 | [
"MIT"
] | null | null | null | class Rules:
def __init__(self):
self.ONE_ONE_SCORE = 100
self.ONE_FIVE_SCORE = 50
self.STRAIGHT_SCORE = 1500
self.THREE_PAIR_SCORE = 1000
class Alternate(Rules):
def __init__(self):
self.STRAIGHT_SCORE = 2500
self.THREE_PAIR_SCORE = 2000
| 24.5 | 35 | 0.64966 | 39 | 294 | 4.435897 | 0.461538 | 0.092486 | 0.138728 | 0.184971 | 0.231214 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 0.27551 | 294 | 12 | 36 | 24.5 | 0.713615 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 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 |
6dab7808e0549ea0483294aef2b69179d291af86 | 12,991 | py | Python | nvidia_clara/grpc/metrics_pb2.py | KavinKrishnan/clara-platform-python-client | 05c873b93022de15902adc656cf9735639d57a73 | [
"Apache-2.0"
] | 8 | 2020-10-30T22:45:07.000Z | 2021-09-23T18:22:30.000Z | nvidia_clara/grpc/metrics_pb2.py | KavinKrishnan/clara-platform-python-client | 05c873b93022de15902adc656cf9735639d57a73 | [
"Apache-2.0"
] | 1 | 2020-12-29T23:42:27.000Z | 2020-12-29T23:42:27.000Z | nvidia_clara/grpc/metrics_pb2.py | KavinKrishnan/clara-platform-python-client | 05c873b93022de15902adc656cf9735639d57a73 | [
"Apache-2.0"
] | 4 | 2020-11-03T18:31:49.000Z | 2021-11-09T17:47:12.000Z | # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 44.489726 | 1,331 | 0.760065 | 1,591 | 12,991 | 5.921433 | 0.159019 | 0.051375 | 0.084704 | 0.089163 | 0.621484 | 0.591869 | 0.551003 | 0.535718 | 0.480735 | 0.467572 | 0 | 0.032712 | 0.12932 | 12,991 | 291 | 1,332 | 44.642612 | 0.800195 | 0.089908 | 0 | 0.584362 | 0 | 0.00823 | 0.277696 | 0.251629 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028807 | 0 | 0.028807 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6dacede88291ab910c867a7b6ae2bd99b6b5522e | 1,564 | py | Python | scrape/views.py | naydeenmonzon/Maritime_Web_Tool | bc8203b9e62b19eaa93bc018f719004269b2eaee | [
"CC0-1.0"
] | null | null | null | scrape/views.py | naydeenmonzon/Maritime_Web_Tool | bc8203b9e62b19eaa93bc018f719004269b2eaee | [
"CC0-1.0"
] | null | null | null | scrape/views.py | naydeenmonzon/Maritime_Web_Tool | bc8203b9e62b19eaa93bc018f719004269b2eaee | [
"CC0-1.0"
] | null | null | null | from datetime import datetime
from django.views.generic.base import TemplateView
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from .models import MONTH_DICT, MONTH_LIST, YEARS,CARRIER_LIST
from .forms import BSfilterForm
from .main import _init_SCRAPER
class HomePageView(T... | 22.028169 | 65 | 0.680307 | 179 | 1,564 | 5.832402 | 0.357542 | 0.045977 | 0.072797 | 0.095785 | 0.061303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002439 | 0.213555 | 1,564 | 70 | 66 | 22.342857 | 0.846341 | 0.070972 | 0 | 0.04878 | 0 | 0 | 0.111188 | 0.048343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.170732 | 0.04878 | 0.512195 | 0.02439 | 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 |
6dae00c3441df190db00ecff9c3e1288ac41b72a | 2,971 | py | Python | deleteAllJobs.py | prelert/engine-python | 7a8721fcf718a641acd945300ad9ba95d7cb8e52 | [
"Apache-2.0"
] | 36 | 2015-01-31T22:01:52.000Z | 2019-04-15T14:29:30.000Z | deleteAllJobs.py | prelert/engine-python | 7a8721fcf718a641acd945300ad9ba95d7cb8e52 | [
"Apache-2.0"
] | 2 | 2016-01-13T01:00:58.000Z | 2016-01-13T01:05:44.000Z | deleteAllJobs.py | prelert/engine-python | 7a8721fcf718a641acd945300ad9ba95d7cb8e52 | [
"Apache-2.0"
] | 18 | 2015-03-19T18:43:46.000Z | 2020-05-05T12:28:02.000Z | #!/usr/bin/env python
############################################################################
# #
# Copyright 2014 Prelert Ltd #
# ... | 34.546512 | 81 | 0.492763 | 297 | 2,971 | 4.835017 | 0.478114 | 0.041783 | 0.058496 | 0.022284 | 0.155989 | 0.123955 | 0.076602 | 0.076602 | 0.076602 | 0.076602 | 0 | 0.010923 | 0.383709 | 2,971 | 85 | 82 | 34.952941 | 0.773348 | 0.39246 | 0 | 0.146341 | 0 | 0 | 0.11465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.146341 | null | null | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6db755c6b9c7ae3c58a95da2aa5e9301523ca9e8 | 632 | py | Python | src/models/discord_users.py | KirtusJ/BirdBot | 4440364caefa6ec9acf1bc7cf38605b1d90de20e | [
"MIT"
] | null | null | null | src/models/discord_users.py | KirtusJ/BirdBot | 4440364caefa6ec9acf1bc7cf38605b1d90de20e | [
"MIT"
] | null | null | null | src/models/discord_users.py | KirtusJ/BirdBot | 4440364caefa6ec9acf1bc7cf38605b1d90de20e | [
"MIT"
] | null | null | null | from sqlalchemy.sql import func
from sqlalchemy import Column, BigInteger, String, DateTime, Boolean
from .model import database
class DiscordUser(database.Base):
__tablename__='discord_users'
id = Column(BigInteger, primary_key=True, unique=True, nullable=False, autoincrement=False)
created = Column(DateTime(time... | 39.5 | 92 | 0.783228 | 80 | 632 | 6.05 | 0.5 | 0.080579 | 0.117769 | 0.14876 | 0.223141 | 0.223141 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102848 | 632 | 16 | 93 | 39.5 | 0.853616 | 0 | 0 | 0 | 0 | 0 | 0.034755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6db800ff348f905ec48118d311341bb879f2f4fd | 2,036 | py | Python | algorithms/timer.py | terratenff/vrp-gen-alg | 3910ff7977a84b03e14c4f500909bcb86e6dd608 | [
"MIT"
] | null | null | null | algorithms/timer.py | terratenff/vrp-gen-alg | 3910ff7977a84b03e14c4f500909bcb86e6dd608 | [
"MIT"
] | null | null | null | algorithms/timer.py | terratenff/vrp-gen-alg | 3910ff7977a84b03e14c4f500909bcb86e6dd608 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
timer.py:
Implementation of a CPU timer that is used as a part of stopping criteria.
"""
import time
def _time():
"""
Convenience function that returns current process time as milliseconds.
"""
return time.process_time() * 1000
class Timer:
"""
Captures CPU time ... | 22.130435 | 81 | 0.562868 | 239 | 2,036 | 4.661088 | 0.343096 | 0.122083 | 0.081688 | 0.061041 | 0.222621 | 0.140934 | 0.094255 | 0.068223 | 0.068223 | 0.068223 | 0 | 0.005236 | 0.34332 | 2,036 | 91 | 82 | 22.373626 | 0.827973 | 0.332024 | 0 | 0.352941 | 0 | 0 | 0.002629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.029412 | 0 | 0.470588 | 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 |
6dbe230462ef91543db856cb4ff084f41755ca26 | 1,320 | py | Python | src/wa_kat/db/downloader.py | WebArchivCZ/WA-KAT | 719f7607222f5a4d917c535b2da6371184222101 | [
"MIT"
] | 3 | 2017-03-23T12:59:21.000Z | 2017-11-22T08:23:14.000Z | src/wa_kat/db/downloader.py | WebArchivCZ/WA-KAT | 719f7607222f5a4d917c535b2da6371184222101 | [
"MIT"
] | 89 | 2015-06-28T22:10:28.000Z | 2017-01-30T16:06:05.000Z | src/wa_kat/db/downloader.py | WebarchivCZ/WA-KAT | 719f7607222f5a4d917c535b2da6371184222101 | [
"MIT"
] | 1 | 2015-12-17T02:56:59.000Z | 2015-12-17T02:56:59.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Interpreter version: python 2.7
#
# Imports =====================================================================
import requests
from ..settings import USER_AGENT
from ..settings import REQUEST_TIMEOUT
# Functions & classes =========================================... | 25.882353 | 79 | 0.537879 | 133 | 1,320 | 5.263158 | 0.601504 | 0.078571 | 0.051429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017672 | 0.271212 | 1,320 | 50 | 80 | 26.4 | 0.709979 | 0.175 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038462 | 0.115385 | 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 |
6dc7ac77f93802122ddb1e47bec4538126c006a2 | 500 | py | Python | gcpy/functions/HTTPFunction.py | MaximBazarov/gcpy | 92c1d31a8133e19a5d2b27dc8f2e0b7e8fe1d609 | [
"MIT"
] | 1 | 2020-07-29T11:20:35.000Z | 2020-07-29T11:20:35.000Z | gcpy/functions/HTTPFunction.py | MaximBazarov/gcpy | 92c1d31a8133e19a5d2b27dc8f2e0b7e8fe1d609 | [
"MIT"
] | null | null | null | gcpy/functions/HTTPFunction.py | MaximBazarov/gcpy | 92c1d31a8133e19a5d2b27dc8f2e0b7e8fe1d609 | [
"MIT"
] | null | null | null | from gcpy.functions.CloudFunction import CloudFunctionTrigger, CloudFunction
from gcpy.utils.binary import binary_decode
class HTTPTrigger(CloudFunctionTrigger):
pass
class HTTPFunction(CloudFunction):
name = 'function_public_name'
trigger = HTTPTrigger()
def handle(self, request):
print('H... | 22.727273 | 76 | 0.7 | 50 | 500 | 6.92 | 0.62 | 0.046243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222 | 500 | 21 | 77 | 23.809524 | 0.88946 | 0 | 0 | 0 | 0 | 0 | 0.062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.133333 | 0 | 0.6 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6dcd1f0147fa6de6eaa3f0bce8b1c9dccea62eb4 | 1,305 | py | Python | The HackerRank Interview Preparation Kit/6 - Greedy Algorithms/Reverse Shuffle Merge.py | sohammanjrekar/HackerRank | 1f5010133a1ac1e765e855a086053c97d9e958be | [
"MIT"
] | null | null | null | The HackerRank Interview Preparation Kit/6 - Greedy Algorithms/Reverse Shuffle Merge.py | sohammanjrekar/HackerRank | 1f5010133a1ac1e765e855a086053c97d9e958be | [
"MIT"
] | null | null | null | The HackerRank Interview Preparation Kit/6 - Greedy Algorithms/Reverse Shuffle Merge.py | sohammanjrekar/HackerRank | 1f5010133a1ac1e765e855a086053c97d9e958be | [
"MIT"
] | null | null | null | #
# Complete the 'reverseShuffleMerge' function below.
#
# The function is expected to return a STRING.
# The function accepts STRING s as parameter.
#
import os
from collections import defaultdict
def frequency(s):
result = defaultdict(int)
for char in s:
result[char] += 1
retur... | 24.166667 | 73 | 0.596169 | 159 | 1,305 | 4.710692 | 0.377358 | 0.072096 | 0.052069 | 0.048064 | 0.053405 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010905 | 0.297318 | 1,305 | 53 | 74 | 24.622642 | 0.805889 | 0.122605 | 0 | 0 | 0 | 0 | 0.020295 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0.03125 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6dd2944b2ee1fbe92298d2147e16828378aa049e | 2,794 | py | Python | sonypyapi.py | Johannes-Vitt/sonypiapi | 74c347d8bdb05fe8955dd4478ecfdc19cfd4ec03 | [
"MIT"
] | 2 | 2017-05-12T11:23:48.000Z | 2021-06-12T09:38:24.000Z | sonypyapi.py | Johannes-Vitt/sonypiapi | 74c347d8bdb05fe8955dd4478ecfdc19cfd4ec03 | [
"MIT"
] | null | null | null | sonypyapi.py | Johannes-Vitt/sonypiapi | 74c347d8bdb05fe8955dd4478ecfdc19cfd4ec03 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import json
import urllib2
import collections
url = "http://192.168.122.1:8080/sony/"
camera_url = url+"camera"
avContent_url = url+"avContent"
def create_params_dict(method,params=[],id_=1,version="1.0"):
params = collections.OrderedDict([
("method", method),
("p... | 29.410526 | 89 | 0.586256 | 370 | 2,794 | 4.186486 | 0.213514 | 0.049709 | 0.038735 | 0.051646 | 0.31827 | 0.273725 | 0.236281 | 0.236281 | 0.236281 | 0.236281 | 0 | 0.020782 | 0.276664 | 2,794 | 94 | 90 | 29.723404 | 0.74567 | 0.20544 | 0 | 0.076923 | 0 | 0 | 0.075523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061538 | null | null | 0.015385 | 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 |
6dd3236b3617415b5e5c4905e33da2de283601a4 | 3,151 | py | Python | FindJenkins.py | realsanjay/DomainRecon_old | 936f66404c1a4163b119afc06dca03e588c0756e | [
"MIT"
] | 100 | 2018-04-06T13:50:57.000Z | 2018-10-01T14:33:46.000Z | FindJenkins.py | realsanjay/DomainRecon_old | 936f66404c1a4163b119afc06dca03e588c0756e | [
"MIT"
] | 3 | 2018-12-06T04:54:24.000Z | 2021-02-25T14:59:21.000Z | FindJenkins.py | realsanjay/DomainRecon_old | 936f66404c1a4163b119afc06dca03e588c0756e | [
"MIT"
] | 16 | 2018-10-09T13:50:14.000Z | 2021-09-01T06:53:34.000Z | import sys
import re
import requests
import requests.cookies
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
from time import sleep
from GlobalVariables import *
class FindJenkins(object):
def __init__(self):
super(FindJenkin... | 53.40678 | 369 | 0.679467 | 402 | 3,151 | 5.303483 | 0.365672 | 0.062383 | 0.028143 | 0.06379 | 0.426829 | 0.303002 | 0.245779 | 0.245779 | 0.245779 | 0.245779 | 0 | 0.046381 | 0.096795 | 3,151 | 59 | 370 | 53.40678 | 0.702741 | 0.029514 | 0 | 0.196078 | 0 | 0.058824 | 0.3293 | 0.112819 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137255 | null | null | 0.098039 | 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 |
6dda593a7a7bdfb7cf3bae36d8a8315e4135dc5a | 230 | py | Python | OMS/helpers/idgenerator.py | RumaisaHabib/orphan-management-system | 4671f40fb2a979e54dec4d12cc522829c2aa739e | [
"MIT"
] | 1 | 2021-12-24T18:14:35.000Z | 2021-12-24T18:14:35.000Z | OMS/helpers/idgenerator.py | RumaisaHabib/orphan-management-system | 4671f40fb2a979e54dec4d12cc522829c2aa739e | [
"MIT"
] | null | null | null | OMS/helpers/idgenerator.py | RumaisaHabib/orphan-management-system | 4671f40fb2a979e54dec4d12cc522829c2aa739e | [
"MIT"
] | null | null | null | import random
def randomStr():
l = [x for x in range(9)]
l += [chr(x) for x in range(65, 65+26)]
string = ""
for x in range(32):
string += str(l[random.randint(0, len(l) - 1)])
return string
| 19.166667 | 63 | 0.521739 | 38 | 230 | 3.157895 | 0.552632 | 0.1 | 0.15 | 0.275 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070064 | 0.317391 | 230 | 11 | 64 | 20.909091 | 0.694268 | 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 | 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 |
6dde7cdccad8c45c7dc62586357016b68fc1ea28 | 2,044 | py | Python | mwlib/serve.py | h4ck3rm1k3/mwlib | 11475c6ad7480e35a4a59f276c47f6a5203435cc | [
"Unlicense"
] | 1 | 2019-04-27T20:14:53.000Z | 2019-04-27T20:14:53.000Z | mwlib/serve.py | h4ck3rm1k3/mwlib | 11475c6ad7480e35a4a59f276c47f6a5203435cc | [
"Unlicense"
] | null | null | null | mwlib/serve.py | h4ck3rm1k3/mwlib | 11475c6ad7480e35a4a59f276c47f6a5203435cc | [
"Unlicense"
] | null | null | null | #! /usr/bin/env python
"""WSGI server interface to mw-render and mw-zip/mw-post"""
import sys, os, time, re, shutil, StringIO
from hashlib import md5
from mwlib import myjson as json
from mwlib import log, _version
from mwlib.metabook import calc_checksum
log = log.Log('mwlib.serve')
collection_id_rex = re.compile(... | 28.788732 | 114 | 0.629159 | 280 | 2,044 | 4.446429 | 0.489286 | 0.04498 | 0.024096 | 0.035341 | 0.040161 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.251468 | 2,044 | 70 | 115 | 29.2 | 0.807843 | 0.010274 | 0 | 0 | 0 | 0 | 0.144311 | 0.041916 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108696 | null | null | 0.043478 | 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 |
6ddf53b03344bb1f12510f5ef0a187bb6b91724f | 1,589 | py | Python | linear_regression.py | michael-golfi/comp551_assignment1 | a4eb73bae4280d5934165ee8b8400dd1c24e9758 | [
"MIT"
] | null | null | null | linear_regression.py | michael-golfi/comp551_assignment1 | a4eb73bae4280d5934165ee8b8400dd1c24e9758 | [
"MIT"
] | null | null | null | linear_regression.py | michael-golfi/comp551_assignment1 | a4eb73bae4280d5934165ee8b8400dd1c24e9758 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import math
import csv
import datetime
AGE = "Age Category"
SEX = "Sex"
TIME = "Time"
OUTPUT_BASE = "output/"
COLS_X = [AGE, SEX, TIME, "TotalRaces"]
COLS_Y = [TIME]
#training data
TRAIN_X = "output/Y2X_train.csv"
TRAIN_Y = "output/Y2Y_train.csv"... | 17.086022 | 84 | 0.69163 | 302 | 1,589 | 3.407285 | 0.261589 | 0.062196 | 0.043732 | 0.034985 | 0.271137 | 0.145773 | 0.099125 | 0.062196 | 0.062196 | 0 | 0 | 0.033186 | 0.146633 | 1,589 | 92 | 85 | 17.271739 | 0.725664 | 0.072373 | 0 | 0.042553 | 0 | 0 | 0.111034 | 0.014483 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12766 | null | null | 0.12766 | 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 |
6de715d666507e3f3849eece5131f4cb5a8c80e7 | 1,187 | py | Python | main.py | brunofornazari/tcc | 57990d68ca196b4da7791faab717d67cfe5497d3 | [
"Unlicense"
] | null | null | null | main.py | brunofornazari/tcc | 57990d68ca196b4da7791faab717d67cfe5497d3 | [
"Unlicense"
] | null | null | null | main.py | brunofornazari/tcc | 57990d68ca196b4da7791faab717d67cfe5497d3 | [
"Unlicense"
] | null | null | null | """
main.py
Main.py é responsável por iniciar o processo o programa completamente, através de duas threads, uma para manter o
servidor de aplicação via flask para poder receber requisições e comunicar com o cliente, seus processos estão
detalhados em server.py e outra thread para manter o fluxo da aplicação, baseado n... | 40.931034 | 117 | 0.795282 | 180 | 1,187 | 5.194444 | 0.6 | 0.012834 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002016 | 0.16428 | 1,187 | 29 | 118 | 40.931034 | 0.940524 | 0.767481 | 0 | 0 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6dec0625c10c417a63b087f29b4b429210299d04 | 752 | py | Python | lcd/interrupts/interrupt2.py | BornToDebug/homeStruction | 354e03c05cb363d8397d0e2d7afeb78a029266f9 | [
"Apache-2.0"
] | 6 | 2016-08-31T16:46:54.000Z | 2017-09-15T19:34:30.000Z | lcd/interrupts/interrupt2.py | BornToDebug/homeStruction | 354e03c05cb363d8397d0e2d7afeb78a029266f9 | [
"Apache-2.0"
] | 4 | 2016-09-02T09:18:41.000Z | 2016-09-02T09:24:08.000Z | lcd/interrupts/interrupt2.py | BornToDebug/homeStruction | 354e03c05cb363d8397d0e2d7afeb78a029266f9 | [
"Apache-2.0"
] | null | null | null | import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(24, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
#now we'll define the threaded callback function
#this will run in another threadwhen our event is detected
def my_callback(channel):
print "Rising edge detected on po... | 30.08 | 76 | 0.772606 | 128 | 752 | 4.4375 | 0.554688 | 0.03169 | 0.035211 | 0.042254 | 0.080986 | 0.080986 | 0.080986 | 0 | 0 | 0 | 0 | 0.023006 | 0.132979 | 752 | 24 | 77 | 31.333333 | 0.84816 | 0.138298 | 0 | 0.125 | 0 | 0 | 0.359133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a30096d1e64ea75464caa5c47e07ed034748bbc2 | 3,680 | py | Python | src/imephu/utils.py | saltastroops/imephu | 0c302a73d01fe3ad018e7adf4b91e0beaecc6709 | [
"MIT"
] | null | null | null | src/imephu/utils.py | saltastroops/imephu | 0c302a73d01fe3ad018e7adf4b91e0beaecc6709 | [
"MIT"
] | 3 | 2022-02-02T20:51:05.000Z | 2022-02-03T21:13:27.000Z | src/imephu/utils.py | saltastroops/imephu | 0c302a73d01fe3ad018e7adf4b91e0beaecc6709 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from datetime import datetime
from typing import List, Optional
from astropy.coordinates import SkyCoord
@dataclass
class MagnitudeRange:
"""A magnitude range.
Attributes
----------
bandpass: `str`
The bandpass for which the magnitudes are given.
min_mag... | 31.186441 | 88 | 0.664402 | 426 | 3,680 | 5.640845 | 0.232394 | 0.093217 | 0.067 | 0.019975 | 0.159384 | 0.063254 | 0.063254 | 0.029963 | 0 | 0 | 0 | 0.001824 | 0.255163 | 3,680 | 117 | 89 | 31.452991 | 0.874863 | 0.4 | 0 | 0.122449 | 0 | 0 | 0.05005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0.163265 | 0.081633 | 0 | 0.367347 | 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 |
a304b175c7cbd222a910af9551f6a774a35e4ab2 | 4,642 | py | Python | pydatajson/catalog_readme.py | datosgobar/pydatajson | f26e3d5928ce9d455485e03fa63a8d8741588b7a | [
"MIT"
] | 13 | 2017-05-17T13:33:43.000Z | 2021-08-10T18:42:59.000Z | pydatajson/catalog_readme.py | datosgobar/pydatajson | f26e3d5928ce9d455485e03fa63a8d8741588b7a | [
"MIT"
] | 296 | 2016-11-29T14:01:09.000Z | 2020-10-27T22:42:26.000Z | pydatajson/catalog_readme.py | datosgobar/pydatajson | f26e3d5928ce9d455485e03fa63a8d8741588b7a | [
"MIT"
] | 11 | 2017-07-06T17:02:31.000Z | 2021-07-19T14:46:51.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import with_statement
import io
import logging
import os
from six import string_types
from pydatajson.helpers import traverse_dict
from pydatajson.indicators import generate_ca... | 40.365217 | 79 | 0.667816 | 531 | 4,642 | 5.580038 | 0.352166 | 0.051637 | 0.042524 | 0.0216 | 0.195073 | 0.130948 | 0.130948 | 0.082011 | 0.082011 | 0.082011 | 0 | 0.003665 | 0.23589 | 4,642 | 114 | 80 | 40.719298 | 0.831689 | 0.232443 | 0 | 0.112676 | 0 | 0 | 0.190092 | 0.084677 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.028169 | false | 0 | 0.15493 | 0 | 0.211268 | 0.014085 | 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 |
a305196df6eec0820f9171fbedc0fc320734bad3 | 8,354 | py | Python | pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/sisf/get.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | 1 | 2022-01-16T10:00:24.000Z | 2022-01-16T10:00:24.000Z | pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/sisf/get.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | null | null | null | pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/sisf/get.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | null | null | null | """Common get functions for sisf"""
# Python
import logging
import re
# Genie
from genie.metaparser.util.exceptions import SchemaEmptyParserError
log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG)
def get_device_tracking_policy_name_configurations(device, policy):
""" Get device-tracking policy conf... | 30.268116 | 169 | 0.556739 | 1,068 | 8,354 | 4.257491 | 0.154494 | 0.007477 | 0.007917 | 0.012096 | 0.709479 | 0.692984 | 0.6468 | 0.631845 | 0.626567 | 0.615351 | 0 | 0.02688 | 0.296385 | 8,354 | 276 | 170 | 30.268116 | 0.746683 | 0.228034 | 0 | 0.58042 | 0 | 0.055944 | 0.293787 | 0.115745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055944 | false | 0 | 0.020979 | 0 | 0.188811 | 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 |
096bb429411e96f2d66472cdc1c72183b691a5bc | 3,521 | py | Python | backend/routes/todolist.py | BurnySc2/sanic-react-typescript-template | 02b1722c9230018402e4c5ffbb11204a0343e73b | [
"MIT"
] | 1 | 2020-12-20T16:09:46.000Z | 2020-12-20T16:09:46.000Z | backend/routes/todolist.py | BurnySc2/sanic-react-typescript-template | 02b1722c9230018402e4c5ffbb11204a0343e73b | [
"MIT"
] | null | null | null | backend/routes/todolist.py | BurnySc2/sanic-react-typescript-template | 02b1722c9230018402e4c5ffbb11204a0343e73b | [
"MIT"
] | null | null | null | import os
import sqlite3
from dataclasses import dataclass
from pathlib import Path
from typing import Dict, List, Optional
from fastapi import Request
from fastapi.routing import APIRouter
from loguru import logger
ENV = os.environ.copy()
USE_MONGO_DB: bool = ENV.get('USE_MONGO_DB', 'True') == 'True'
USE_POSTGRES_DB... | 32.302752 | 90 | 0.672536 | 478 | 3,521 | 4.788703 | 0.276151 | 0.065531 | 0.036697 | 0.036697 | 0.321538 | 0.244211 | 0.244211 | 0.217562 | 0.173001 | 0.155526 | 0 | 0.004631 | 0.202783 | 3,521 | 108 | 91 | 32.601852 | 0.81083 | 0.11474 | 0 | 0.169014 | 0 | 0 | 0.230632 | 0.016423 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.028169 | false | 0 | 0.112676 | 0.014085 | 0.197183 | 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 |
096e0f5dcdfc6d12aa8ec7627807b41fbeb0e3df | 48,070 | py | Python | tests/test_integ_squash.py | pombredanne/docker-scripts | ecee9f921b22cd44943197635875572185dd015d | [
"MIT"
] | 513 | 2016-04-04T21:44:14.000Z | 2022-03-27T06:18:26.000Z | tests/test_integ_squash.py | pombredanne/docker-scripts | ecee9f921b22cd44943197635875572185dd015d | [
"MIT"
] | 106 | 2016-04-01T11:53:20.000Z | 2022-03-31T00:35:31.000Z | tests/test_integ_squash.py | pombredanne/docker-scripts | ecee9f921b22cd44943197635875572185dd015d | [
"MIT"
] | 75 | 2016-05-11T01:08:47.000Z | 2022-03-25T01:20:06.000Z | import unittest
import mock
import six
import codecs
import os
import json
import logging
import shutil
import tarfile
import io
from io import BytesIO
import uuid
from docker_squash.squash import Squash
from docker_squash.errors import SquashError, SquashUnnecessaryError
from docker_squash.lib import common
if not s... | 41.872822 | 319 | 0.608924 | 5,456 | 48,070 | 5.21206 | 0.085044 | 0.070401 | 0.035201 | 0.031543 | 0.762246 | 0.706509 | 0.65777 | 0.605479 | 0.574885 | 0.560467 | 0 | 0.009522 | 0.294362 | 48,070 | 1,147 | 320 | 41.909329 | 0.828833 | 0.060599 | 0 | 0.606539 | 0 | 0.012401 | 0.232415 | 0.042391 | 0 | 0 | 0 | 0.000872 | 0.235626 | 1 | 0.078918 | false | 0.012401 | 0.018038 | 0 | 0.120631 | 0.002255 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0971b6f1115e89b5d0376e06557390d061de5c54 | 566 | py | Python | bocce/__init__.py | brianjpetersen/bocce | 20a4845400e8759173c5391ce52f18dafbf4c678 | [
"MIT"
] | null | null | null | bocce/__init__.py | brianjpetersen/bocce | 20a4845400e8759173c5391ce52f18dafbf4c678 | [
"MIT"
] | null | null | null | bocce/__init__.py | brianjpetersen/bocce | 20a4845400e8759173c5391ce52f18dafbf4c678 | [
"MIT"
] | null | null | null | # standard libraries
import os
# third party libraries
pass
# first party libraries
from . import (application, routing, static, surly, requests, responses,
utils, cookies, exceptions, middleware, )
__where__ = os.path.dirname(os.path.abspath(__file__))
__all__ = ('Application', 'application', 'routin... | 26.952381 | 73 | 0.715548 | 60 | 566 | 6.55 | 0.5 | 0.167939 | 0.091603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162544 | 566 | 20 | 74 | 28.3 | 0.829114 | 0.109541 | 0 | 0 | 0 | 0 | 0.146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0979c9e1fe818ea6f9a20142144fdc173a453a83 | 1,328 | py | Python | session04/movie.py | heawon99/Repository-NEXT_HW_new | e73fac56469b7518034322f0d2fefe5f95c8c164 | [
"MIT"
] | null | null | null | session04/movie.py | heawon99/Repository-NEXT_HW_new | e73fac56469b7518034322f0d2fefe5f95c8c164 | [
"MIT"
] | null | null | null | session04/movie.py | heawon99/Repository-NEXT_HW_new | e73fac56469b7518034322f0d2fefe5f95c8c164 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
notebook_html = requests.get('https://search.shopping.naver.com/search/all?pagingIndex=2&pagingSize=80&query=노트북')
notebook_soup = BeautifulSoup(notebook_html.text,"html.parser")
notebook_list_box = notebook_soup.find("ul", {"class" : "list_basis"})
notebook_list = noteboo... | 47.428571 | 286 | 0.745482 | 185 | 1,328 | 4.935135 | 0.356757 | 0.070099 | 0.065717 | 0.043812 | 0.488499 | 0.424973 | 0.424973 | 0.424973 | 0.424973 | 0.424973 | 0 | 0.03234 | 0.115211 | 1,328 | 27 | 287 | 49.185185 | 0.744681 | 0.213102 | 0 | 0 | 0 | 0.117647 | 0.455159 | 0.218901 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.058824 | 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 |
097bf627e47851400865727fdcce309364d45996 | 530 | py | Python | import random.py | joelkalonji/PasswordGeerator | 0f9ae4208f0c228c0b1e85241501f5d95b2b5013 | [
"MIT"
] | null | null | null | import random.py | joelkalonji/PasswordGeerator | 0f9ae4208f0c228c0b1e85241501f5d95b2b5013 | [
"MIT"
] | null | null | null | import random.py | joelkalonji/PasswordGeerator | 0f9ae4208f0c228c0b1e85241501f5d95b2b5013 | [
"MIT"
] | null | null | null | import random
uppercase_letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
lowercase_letters = "abcdefghijklmnopqrstuvwxyz"
digits = "0123456789"
symbols = "!@#$%^&*()_+-=[]{}|;':,./<>?"
upper, lower, digit, symbol = True, True, True, True
all = ""
if upper :
all += uppercase_letters
if lower :
all += lo... | 20.384615 | 53 | 0.620755 | 55 | 530 | 5.890909 | 0.509091 | 0.074074 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034398 | 0.232075 | 530 | 26 | 54 | 20.384615 | 0.761671 | 0 | 0 | 0 | 0 | 0 | 0.177866 | 0.158103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.05 | 0 | 0.05 | 0.05 | 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 |
0989772d33a2049d0a4c7626cd1168ceea9a9af6 | 726 | py | Python | main.py | Code-Cecilia/DownloadArr | c61940e1e4c2ade9d1da4f2467b72dc8b24abcfd | [
"MIT"
] | 1 | 2022-01-30T15:28:19.000Z | 2022-01-30T15:28:19.000Z | main.py | Code-Cecilia/DownloadArr | c61940e1e4c2ade9d1da4f2467b72dc8b24abcfd | [
"MIT"
] | null | null | null | main.py | Code-Cecilia/DownloadArr | c61940e1e4c2ade9d1da4f2467b72dc8b24abcfd | [
"MIT"
] | null | null | null | import sys
import qbittorrentapi
import json
from ui import UI
print("Connecting to qBittorrent WebUI...")
with open('config.json') as json_file:
config = json.load(json_file)
host = config['host']
username = config['username']
password = config['password']
if not host:
host = inp... | 22 | 88 | 0.673554 | 92 | 726 | 5.23913 | 0.413043 | 0.03112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001748 | 0.212121 | 726 | 32 | 89 | 22.6875 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.182997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 0.083333 | 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 |
0990ac9875cade50ef8fa38605b20f842216c59c | 516 | py | Python | main/migrations/0023_auto_20200114_2019.py | Ducolnd/SQ37 | 2323c3bd07124f082f1bb018c6ae5ee4cb7c94d1 | [
"Apache-2.0"
] | null | null | null | main/migrations/0023_auto_20200114_2019.py | Ducolnd/SQ37 | 2323c3bd07124f082f1bb018c6ae5ee4cb7c94d1 | [
"Apache-2.0"
] | null | null | null | main/migrations/0023_auto_20200114_2019.py | Ducolnd/SQ37 | 2323c3bd07124f082f1bb018c6ae5ee4cb7c94d1 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.1 on 2020-01-14 19:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0022_auto_20200111_2058'),
]
operations = [
migrations.RemoveField(
model_name='users',
name='expires_at',
... | 22.434783 | 74 | 0.581395 | 53 | 516 | 5.509434 | 0.716981 | 0.061644 | 0.09589 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 0.302326 | 516 | 22 | 75 | 23.454545 | 0.722222 | 0.087209 | 0 | 0.25 | 1 | 0 | 0.142857 | 0.049041 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
099172de3e642bdeca5a27c254f8bd00fc1bca12 | 393 | py | Python | agendamentos/migrations/0002_rename_ponto_agendamentos.py | afnmachado/univesp_pi_1 | e6f2b545faaf53d14d17f751d2fb32e6618885b7 | [
"MIT"
] | null | null | null | agendamentos/migrations/0002_rename_ponto_agendamentos.py | afnmachado/univesp_pi_1 | e6f2b545faaf53d14d17f751d2fb32e6618885b7 | [
"MIT"
] | null | null | null | agendamentos/migrations/0002_rename_ponto_agendamentos.py | afnmachado/univesp_pi_1 | e6f2b545faaf53d14d17f751d2fb32e6618885b7 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-15 20:32
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('usuarios', '0005_rename_ponto_id_funcionario_ponto'),
('agendamentos', '0001_initial'),
]
operations = [
migrations.RenameModel(
... | 20.684211 | 63 | 0.613232 | 41 | 393 | 5.682927 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08042 | 0.272265 | 393 | 18 | 64 | 21.833333 | 0.734266 | 0.114504 | 0 | 0 | 1 | 0 | 0.251445 | 0.109827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
099616993ba496a5f298e789a5f964e19fc3db1f | 663 | py | Python | tests/test_handler.py | jbasko/hookery | 5638de2999ad533f83bc9a03110f85e5a0404257 | [
"MIT"
] | 3 | 2017-06-25T22:52:03.000Z | 2018-08-11T22:43:49.000Z | tests/test_handler.py | jbasko/hookery | 5638de2999ad533f83bc9a03110f85e5a0404257 | [
"MIT"
] | null | null | null | tests/test_handler.py | jbasko/hookery | 5638de2999ad533f83bc9a03110f85e5a0404257 | [
"MIT"
] | 1 | 2018-06-05T02:56:28.000Z | 2018-06-05T02:56:28.000Z | from hookery import Handler, Hook
def test_handler_from_func():
def f(a, b):
return a - b
h = Handler(f, Hook('hook1'))
assert callable(h)
assert h.__name__ == 'f'
assert h.name == 'f'
assert h.hook_name == 'hook1'
assert not h.is_generator
assert h(c=8, b=10, a=25) == 15
... | 22.1 | 66 | 0.641026 | 105 | 663 | 3.819048 | 0.304762 | 0.087282 | 0.104738 | 0.112219 | 0.311721 | 0.311721 | 0.089776 | 0.089776 | 0 | 0 | 0 | 0.037773 | 0.241327 | 663 | 29 | 67 | 22.862069 | 0.759443 | 0 | 0 | 0.2 | 0 | 0 | 0.030166 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.2 | false | 0 | 0.05 | 0.1 | 0.35 | 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 |
099a7200287e3918106aa13022ec6083c9f7a764 | 867 | py | Python | app/models.py | KhaledHamoul/nbo_cs_dashboard | 0fc5a3479da4346d3b8f5cf44b19292ea2b99b10 | [
"MIT"
] | null | null | null | app/models.py | KhaledHamoul/nbo_cs_dashboard | 0fc5a3479da4346d3b8f5cf44b19292ea2b99b10 | [
"MIT"
] | null | null | null | app/models.py | KhaledHamoul/nbo_cs_dashboard | 0fc5a3479da4346d3b8f5cf44b19292ea2b99b10 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
import json
class Attribute(models.Model):
name = models.CharField(max_length=200, unique=True)
label = models.CharField(max_length=200)
description = models.TextField()
attribute_type = models.CharField(max_length=30)
class Reco... | 29.896552 | 81 | 0.730104 | 108 | 867 | 5.740741 | 0.509259 | 0.072581 | 0.116129 | 0.154839 | 0.214516 | 0.170968 | 0.170968 | 0.170968 | 0 | 0 | 0 | 0.020747 | 0.16609 | 867 | 28 | 82 | 30.964286 | 0.836791 | 0.013841 | 0 | 0 | 0 | 0 | 0.008235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0.05 | 0.95 | 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 |
099d22378abb2c23fd159020197e09cb83d9cba8 | 440 | py | Python | geotrek/common/utils/translation.py | GeotrekCE/Geotrek | c1393925c1940ac795ab7fc04819cd8c78bc79fb | [
"BSD-2-Clause"
] | null | null | null | geotrek/common/utils/translation.py | GeotrekCE/Geotrek | c1393925c1940ac795ab7fc04819cd8c78bc79fb | [
"BSD-2-Clause"
] | null | null | null | geotrek/common/utils/translation.py | GeotrekCE/Geotrek | c1393925c1940ac795ab7fc04819cd8c78bc79fb | [
"BSD-2-Clause"
] | null | null | null | from django.conf import settings
if 'modeltranslation' in settings.INSTALLED_APPS:
from modeltranslation.translator import translator, NotRegistered
def get_translated_fields(model):
"""Get translated fields from a model"""
try:
mto = translator.get_options_for_model(model)
except NotRegister... | 27.5 | 69 | 0.731818 | 49 | 440 | 6.387755 | 0.530612 | 0.255591 | 0.121406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197727 | 440 | 15 | 70 | 29.333333 | 0.886686 | 0.077273 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 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 |
099e97710e96accac9ae6950fc54a6209ae97168 | 821 | py | Python | lintcode/NineChapters/06/remove-duplicates-from-sorted-list-ii.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | lintcode/NineChapters/06/remove-duplicates-from-sorted-list-ii.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | lintcode/NineChapters/06/remove-duplicates-from-sorted-list-ii.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | __author__ = 'yinjun'
"""
Definition of ListNode
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
"""
class Solution:
"""
@param head: A ListNode
@return: A ListNode
"""
def deleteDuplicates(self, head):
# write your code here
... | 22.805556 | 61 | 0.504263 | 110 | 821 | 3.690909 | 0.309091 | 0.172414 | 0.078818 | 0.118227 | 0.270936 | 0.214286 | 0.214286 | 0.123153 | 0.123153 | 0 | 0 | 0.001965 | 0.380024 | 821 | 35 | 62 | 23.457143 | 0.795678 | 0.079172 | 0 | 0.111111 | 0 | 0 | 0.010135 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.166667 | 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 |
09a1a281f097af89e78698b2962835021fca03c7 | 7,794 | py | Python | ratatosk/lib/tools/picard.py | SciLifeLab/ratatosk | 4e9c9d8dc868b19a7c70eb7b326422c87bc3d7c0 | [
"Apache-2.0"
] | null | null | null | ratatosk/lib/tools/picard.py | SciLifeLab/ratatosk | 4e9c9d8dc868b19a7c70eb7b326422c87bc3d7c0 | [
"Apache-2.0"
] | null | null | null | ratatosk/lib/tools/picard.py | SciLifeLab/ratatosk | 4e9c9d8dc868b19a7c70eb7b326422c87bc3d7c0 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013 Per Unneberg
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 41.903226 | 186 | 0.673723 | 926 | 7,794 | 5.553996 | 0.25486 | 0.054443 | 0.081664 | 0.036749 | 0.343379 | 0.309741 | 0.234688 | 0.202994 | 0.165079 | 0.130857 | 0 | 0.006384 | 0.196048 | 7,794 | 185 | 187 | 42.12973 | 0.814395 | 0.112138 | 0 | 0.20438 | 0 | 0 | 0.135453 | 0.032085 | 0 | 0 | 0 | 0.005405 | 0 | 1 | 0.138686 | false | 0.007299 | 0.065693 | 0.087591 | 0.693431 | 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 |
09aba896248f30069fcb0a73d80efae7ce718e1a | 975 | py | Python | class1/exercise6&7.py | linkdebian/pynet_course | e0de498078ab914b3535fa2ea5c2e71d6e3799fb | [
"Apache-2.0"
] | null | null | null | class1/exercise6&7.py | linkdebian/pynet_course | e0de498078ab914b3535fa2ea5c2e71d6e3799fb | [
"Apache-2.0"
] | null | null | null | class1/exercise6&7.py | linkdebian/pynet_course | e0de498078ab914b3535fa2ea5c2e71d6e3799fb | [
"Apache-2.0"
] | null | null | null | import yaml
import json
from pprint import pprint as pp
my_list = []
while True:
x = raw_input("Enter num or text to add to list or press enter to finish: ")
if not x: break
my_list.append(x)
my_list.append({})
while True:
y = raw_input("Enter the name of the key in the list or press enter to finish... | 20.744681 | 85 | 0.58359 | 148 | 975 | 3.72973 | 0.351351 | 0.086957 | 0.070652 | 0.076087 | 0.505435 | 0.505435 | 0.235507 | 0.144928 | 0.144928 | 0 | 0 | 0.001259 | 0.185641 | 975 | 46 | 86 | 21.195652 | 0.693955 | 0 | 0 | 0.222222 | 0 | 0 | 0.437435 | 0.162358 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.185185 | null | null | 0.296296 | 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 |
09af767430017771c3139a9ce09339ca19b87b16 | 2,741 | py | Python | samples/flat_sample/test.py | benlindsay/job_tree | 0cdb293fd166d8d1cd50e54ab090264029adf978 | [
"MIT"
] | null | null | null | samples/flat_sample/test.py | benlindsay/job_tree | 0cdb293fd166d8d1cd50e54ab090264029adf978 | [
"MIT"
] | null | null | null | samples/flat_sample/test.py | benlindsay/job_tree | 0cdb293fd166d8d1cd50e54ab090264029adf978 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 Ben Lindsay <benjlindsay@gmail.com>
from job_tree import job_tree
# Tier 1 is 3 values of VAR_1 (1, 2, and 3) found in 'tier_1.csv'
tier_1_csv_file = 'tier_1.csv'
# Tier 2 is 2 values of VAR_2 for each VAR_1, defined as a function of VAR_1
def tier... | 24.256637 | 79 | 0.549435 | 423 | 2,741 | 3.444444 | 0.274232 | 0.113246 | 0.134523 | 0.153741 | 0.25326 | 0.21208 | 0.195607 | 0.178449 | 0 | 0 | 0 | 0.187529 | 0.221817 | 2,741 | 112 | 80 | 24.473214 | 0.495546 | 0.793506 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 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 |
09bffb272321cfeba42574b90d3f77c2507d62be | 3,648 | py | Python | libcity/utils/GPS_utils.py | moghadas76/test_bigcity | 607b9602c5b1113b23e1830455e174b0901d7558 | [
"Apache-2.0"
] | 221 | 2021-09-06T03:33:31.000Z | 2022-03-28T05:36:49.000Z | libcity/utils/GPS_utils.py | moghadas76/test_bigcity | 607b9602c5b1113b23e1830455e174b0901d7558 | [
"Apache-2.0"
] | 43 | 2021-09-19T16:12:28.000Z | 2022-03-31T16:29:03.000Z | libcity/utils/GPS_utils.py | moghadas76/test_bigcity | 607b9602c5b1113b23e1830455e174b0901d7558 | [
"Apache-2.0"
] | 64 | 2021-09-06T07:56:10.000Z | 2022-03-25T08:48:35.000Z | import math
R_EARTH = 6371000 # meter
def angle2radian(angle):
"""
convert from an angle to a radian
:param angle: (float)
:return: radian (float)
"""
return math.radians(angle)
def radian2angle(radian):
return math.degrees(radian)
def spherical_law_of_cosines(phi1, lambda1, phi2, la... | 32.283186 | 111 | 0.654331 | 495 | 3,648 | 4.769697 | 0.19596 | 0.044473 | 0.063532 | 0.093181 | 0.566709 | 0.453621 | 0.384583 | 0.128759 | 0.051673 | 0.051673 | 0 | 0.043726 | 0.228893 | 3,648 | 113 | 112 | 32.283186 | 0.795592 | 0.367599 | 0 | 0.045455 | 0 | 0 | 0.008629 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 1 | 0.204545 | false | 0 | 0.022727 | 0.022727 | 0.477273 | 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 |
09c01d1c28ae990e8cd5cd83a9d33b741fa6c805 | 1,154 | py | Python | python/docstring/__init__.py | liguohao96/template | 31648c4334bdce50cadcfc707c5f64c483e1abce | [
"MIT"
] | null | null | null | python/docstring/__init__.py | liguohao96/template | 31648c4334bdce50cadcfc707c5f64c483e1abce | [
"MIT"
] | null | null | null | python/docstring/__init__.py | liguohao96/template | 31648c4334bdce50cadcfc707c5f64c483e1abce | [
"MIT"
] | null | null | null | """
Python Template for docstring
-----------------------------
python.docstring is a package cotaining TEMPLATE for docstring in python.
usage:
>>> from python import docstring
>>> help(docstring)
>>> print(docstring.module_.__doc__)
>>> print(docstring.class_.__doc__)
>>> print(docstrin... | 31.189189 | 90 | 0.714905 | 144 | 1,154 | 5.1875 | 0.229167 | 0.104418 | 0.068273 | 0.084337 | 0.461847 | 0.461847 | 0.461847 | 0.204819 | 0.204819 | 0.204819 | 0 | 0 | 0.135182 | 1,154 | 36 | 91 | 32.055556 | 0.748497 | 0.280763 | 0 | 0.157895 | 0 | 0 | 0.05598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.473684 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
09c1d29d541d96d593332dafbd24a6cf449f04ba | 20,705 | py | Python | bin/scripts/findsnps_refalt.py | smozaffari/ASE | ad0013daf8505227d1818ba8f9e4ea6cc1fd0f4b | [
"Apache-2.0"
] | null | null | null | bin/scripts/findsnps_refalt.py | smozaffari/ASE | ad0013daf8505227d1818ba8f9e4ea6cc1fd0f4b | [
"Apache-2.0"
] | null | null | null | bin/scripts/findsnps_refalt.py | smozaffari/ASE | ad0013daf8505227d1818ba8f9e4ea6cc1fd0f4b | [
"Apache-2.0"
] | 1 | 2016-01-26T07:15:50.000Z | 2016-01-26T07:15:50.000Z |
import sys
import os
import gzip
import argparse
import numpy as np
import pysam
import util
import snptable
import tables
MAX_SEQS_DEFAULT = 64
MAX_SNPS_DEFAULT = 6
class DataFiles(object):
"""Object to hold names and filehandles for all input / output
datafiles"""
def __init__(self, bam_filen... | 40.203883 | 205 | 0.543009 | 2,417 | 20,705 | 4.468349 | 0.158461 | 0.012222 | 0.020741 | 0.007778 | 0.230093 | 0.176574 | 0.134352 | 0.078333 | 0.078333 | 0.072222 | 0 | 0.006601 | 0.378073 | 20,705 | 514 | 206 | 40.282101 | 0.832104 | 0.158754 | 0 | 0.114286 | 0 | 0 | 0.207091 | 0 | 0 | 0 | 0 | 0.003891 | 0 | 0 | null | null | 0 | 0.028571 | null | null | 0.012698 | 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 |
09c1f3727d6933c8c847df8d0be18f6dbfa8e1a9 | 25,145 | py | Python | bungieapi/generated/clients/group_v2.py | itemmanager/bungieapi | 0c4326f88ea0f28a1dcab683dc08c8d21c940fc1 | [
"MIT"
] | 5 | 2022-01-06T21:05:53.000Z | 2022-02-12T19:58:11.000Z | bungieapi/generated/clients/group_v2.py | itemmanager/bungieapi | 0c4326f88ea0f28a1dcab683dc08c8d21c940fc1 | [
"MIT"
] | 8 | 2021-12-25T02:40:56.000Z | 2022-03-28T03:31:41.000Z | bungieapi/generated/clients/group_v2.py | itemmanager/bungieapi | 0c4326f88ea0f28a1dcab683dc08c8d21c940fc1 | [
"MIT"
] | 1 | 2022-01-30T23:53:25.000Z | 2022-01-30T23:53:25.000Z | # generated by update to not change manually
import typing as t
from bungieapi.base import BaseClient, clean_query_value
from bungieapi.forge import forge
from bungieapi.generated.components.responses import (
CEListOfGroupOptionalConversationClientResponse,
DictionaryOfint32AndstringClientResponse,
ListOf... | 36.923642 | 197 | 0.643786 | 2,602 | 25,145 | 6.076095 | 0.120292 | 0.035421 | 0.055977 | 0.041746 | 0.636812 | 0.60272 | 0.585136 | 0.562492 | 0.507084 | 0.46129 | 0 | 0.00543 | 0.282243 | 25,145 | 680 | 198 | 36.977941 | 0.870567 | 0.00167 | 0 | 0.57931 | 1 | 0.006897 | 0.209043 | 0.1849 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016092 | 0 | 0.096552 | 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 |
09c2c4fe16627c25f8121510a450845e41ae70cc | 1,713 | py | Python | python/analysis/simulations/replot_as_bar.py | UKPLab/tacl2018-preference-convincing | 65eb1cd3bf76f8068889880e0f80178e790350ce | [
"Apache-2.0"
] | 13 | 2019-03-01T19:40:23.000Z | 2022-01-10T05:53:47.000Z | python/analysis/simulations/replot_as_bar.py | UKPLab/tacl2018-preference-convincing | 65eb1cd3bf76f8068889880e0f80178e790350ce | [
"Apache-2.0"
] | 12 | 2020-11-13T17:54:01.000Z | 2022-02-09T23:39:11.000Z | python/analysis/simulations/replot_as_bar.py | UKPLab/tacl2018-preference-convincing | 65eb1cd3bf76f8068889880e0f80178e790350ce | [
"Apache-2.0"
] | 5 | 2019-02-06T12:08:20.000Z | 2022-01-10T20:40:22.000Z | '''
Generate a bar chart with error bars -- might be easier to read than a line graph with error bars.
'''
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
def plot_result(idx, filename, xlabel, ylabel, linelabel, fig=None):
if fig is None:
fig = plt.figure(figsize=(5, 4))
else:
... | 32.320755 | 119 | 0.624051 | 231 | 1,713 | 4.471861 | 0.47619 | 0.085189 | 0.03485 | 0.040658 | 0.294288 | 0.294288 | 0.181994 | 0.181994 | 0.181994 | 0.181994 | 0 | 0.016999 | 0.210158 | 1,713 | 53 | 120 | 32.320755 | 0.746489 | 0.300642 | 0 | 0 | 1 | 0 | 0.178752 | 0.069983 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.178571 | 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 |
09c6c74d8c24c276c440f25295526d610514d57d | 468 | py | Python | python-lab-file/78_tkintermenu.py | zshashz/py1729 | 3281ae2a20c665ebcc0d53840cc95143cbe6861b | [
"MIT"
] | 1 | 2021-01-22T09:03:59.000Z | 2021-01-22T09:03:59.000Z | python-lab-file/78_tkintermenu.py | zshashz/py1729 | 3281ae2a20c665ebcc0d53840cc95143cbe6861b | [
"MIT"
] | null | null | null | python-lab-file/78_tkintermenu.py | zshashz/py1729 | 3281ae2a20c665ebcc0d53840cc95143cbe6861b | [
"MIT"
] | 2 | 2021-05-04T11:29:38.000Z | 2021-11-03T13:09:48.000Z | # Program 77 : make Tkinter menu
from tkinter import *
from tkinter import *
root = Tk()
menu = Menu(root)
root.config(menu=menu)
filemenu = Menu(menu)
menu.add_cascade(label='File', menu=filemenu)
filemenu.add_command(label='New')
filemenu.add_command(label='Open...')
filemenu.add_separator()
filemenu.add_command(... | 23.4 | 53 | 0.75641 | 67 | 468 | 5.179104 | 0.373134 | 0.138329 | 0.172911 | 0.198847 | 0.15562 | 0.15562 | 0 | 0 | 0 | 0 | 0 | 0.004706 | 0.09188 | 468 | 19 | 54 | 24.631579 | 0.811765 | 0.064103 | 0 | 0.133333 | 0 | 0 | 0.061927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
09d449514e9039bc5c41cf98d5932b80f0321669 | 898 | py | Python | TestSourceCode_Store/PIM_example_resize.py | leejaymin/QDroid | 13ff9d26932378513a7c9f0038eb59b922ed06eb | [
"Apache-2.0"
] | null | null | null | TestSourceCode_Store/PIM_example_resize.py | leejaymin/QDroid | 13ff9d26932378513a7c9f0038eb59b922ed06eb | [
"Apache-2.0"
] | null | null | null | TestSourceCode_Store/PIM_example_resize.py | leejaymin/QDroid | 13ff9d26932378513a7c9f0038eb59b922ed06eb | [
"Apache-2.0"
] | null | null | null | import sys
from PIL import Image
#import ImageChops
#import numpy as np
#import ImageChops
if __name__ == '__main__':
srcList = []
targetList = []
colorRate = []
avgColorRate = 0.0
sumColorRate = 0
validCount = 0
# image_src = '/root/Android_Application_source/recomended/0.png'
fir... | 26.411765 | 85 | 0.680401 | 106 | 898 | 5.509434 | 0.518868 | 0.047945 | 0.075342 | 0.09589 | 0.133562 | 0.133562 | 0 | 0 | 0 | 0 | 0 | 0.023578 | 0.197105 | 898 | 33 | 86 | 27.212121 | 0.786408 | 0.478842 | 0 | 0 | 0 | 0 | 0.225383 | 0.201313 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09da5fe1886cdd50f1983ad7996a351fe7c5c4f5 | 257 | py | Python | setup.py | luphord/australian-housing-exercise | 441b8700cfe6d50742945b33d4f123dc6c497e5a | [
"MIT"
] | null | null | null | setup.py | luphord/australian-housing-exercise | 441b8700cfe6d50742945b33d4f123dc6c497e5a | [
"MIT"
] | null | null | null | setup.py | luphord/australian-housing-exercise | 441b8700cfe6d50742945b33d4f123dc6c497e5a | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='australian_housing',
packages=find_packages(),
version='0.2.1',
description='"A data science exercise on Australian house approvements"',
author='"luphord"',
license='MIT',
)
| 23.363636 | 77 | 0.696498 | 30 | 257 | 5.866667 | 0.833333 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.175097 | 257 | 10 | 78 | 25.7 | 0.816038 | 0 | 0 | 0 | 0 | 0 | 0.361868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 |
09e83bd920be035d9c74e3803047761cd01ba2d9 | 583 | py | Python | glycan_profiling/database/prebuilt/__init__.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | 4 | 2019-04-26T15:47:57.000Z | 2021-04-20T22:53:58.000Z | glycan_profiling/database/prebuilt/__init__.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | 8 | 2017-11-22T19:20:20.000Z | 2022-02-14T01:49:58.000Z | glycan_profiling/database/prebuilt/__init__.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | 3 | 2017-11-21T18:05:28.000Z | 2021-09-23T18:38:33.000Z | from .utils import hypothesis_register
from . import heparin
from . import combinatorial_mammalian_n_linked
from . import glycosaminoglycan_linkers
from . import combinatorial_human_n_linked
from . import biosynthesis_human_n_linked
from . import biosynthesis_mammalian_n_linked
from . import human_mucin_o_linked
__al... | 27.761905 | 46 | 0.806175 | 68 | 583 | 6.352941 | 0.25 | 0.12963 | 0.148148 | 0.157407 | 0.277778 | 0.157407 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133791 | 583 | 20 | 47 | 29.15 | 0.855446 | 0 | 0 | 0 | 0 | 0 | 0.324185 | 0.245283 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 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 |
09e9f3d9309a9df34ab48cce11c67316c012a978 | 272 | py | Python | project/web/utils/docx_files.py | sirodeneko/pyProject | 02cd67df26decf7b0ec20d86a2bbb5bce9f4e369 | [
"MIT"
] | null | null | null | project/web/utils/docx_files.py | sirodeneko/pyProject | 02cd67df26decf7b0ec20d86a2bbb5bce9f4e369 | [
"MIT"
] | 1 | 2020-11-30T09:35:15.000Z | 2020-11-30T09:35:15.000Z | project/web/utils/docx_files.py | sirodeneko/pyProject | 02cd67df26decf7b0ec20d86a2bbb5bce9f4e369 | [
"MIT"
] | 1 | 2020-11-30T09:33:24.000Z | 2020-11-30T09:33:24.000Z | import json
import os
import re
import urllib.request
def docx_files_names():
file_path = './static/reports/'
files = os.listdir(file_path)
names = []
for item in files:
if item.endswith('.docx'):
names.append(item)
return names
| 17 | 35 | 0.632353 | 36 | 272 | 4.666667 | 0.611111 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261029 | 272 | 15 | 36 | 18.133333 | 0.835821 | 0 | 0 | 0 | 0 | 0 | 0.081181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
09f23dc12e2bcbc1428ea1ce895f4e644cb3aca4 | 2,449 | py | Python | utils/ion.py | karlstratos/EntityQuestions | c4969aa6ca464773c2c35ab0569ba5924320d8d9 | [
"MIT"
] | 103 | 2021-09-16T18:19:49.000Z | 2022-03-29T03:18:50.000Z | utils/ion.py | karlstratos/EntityQuestions | c4969aa6ca464773c2c35ab0569ba5924320d8d9 | [
"MIT"
] | 8 | 2021-09-25T00:00:37.000Z | 2022-03-24T01:01:35.000Z | utils/ion.py | karlstratos/EntityQuestions | c4969aa6ca464773c2c35ab0569ba5924320d8d9 | [
"MIT"
] | 10 | 2021-09-19T08:12:53.000Z | 2022-03-23T09:09:23.000Z | """
General framework for reading/writing data from/to files on
the local system.
"""
import json
import random
from pathlib import Path
###############################################################################
# FILE READING #################################################
####################... | 31 | 79 | 0.475704 | 263 | 2,449 | 4.296578 | 0.288973 | 0.049558 | 0.057522 | 0.067257 | 0.337168 | 0.337168 | 0.29115 | 0.133628 | 0.133628 | 0.092035 | 0 | 0.001985 | 0.177215 | 2,449 | 78 | 80 | 31.397436 | 0.558809 | 0.061658 | 0 | 0.227273 | 0 | 0 | 0.032063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.068182 | 0 | 0.386364 | 0.136364 | 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 |
09fa8917e01388a6694109a784fa133ce2d71a48 | 774 | py | Python | lianxi/abc.py | xuguoqiang1/qiang | a95f105897462a630d8312eabea6a0f905c3e3e1 | [
"MIT"
] | null | null | null | lianxi/abc.py | xuguoqiang1/qiang | a95f105897462a630d8312eabea6a0f905c3e3e1 | [
"MIT"
] | null | null | null | lianxi/abc.py | xuguoqiang1/qiang | a95f105897462a630d8312eabea6a0f905c3e3e1 | [
"MIT"
] | null | null | null | # coding=utf-8
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from config import Config
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(app)
class Role(db.Model):
# 定义表名
__tablename__ = 'roles'
# 定义列对象
id = db.Column(db.Integer, primary_key=True)
name = db.C... | 24.967742 | 62 | 0.682171 | 113 | 774 | 4.442478 | 0.371681 | 0.111554 | 0.139442 | 0.12749 | 0.388446 | 0.314741 | 0.314741 | 0.258964 | 0.258964 | 0.258964 | 0 | 0.014063 | 0.173127 | 774 | 31 | 63 | 24.967742 | 0.770313 | 0.029716 | 0 | 0.095238 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
61cd45cf1541403e9fd5c523d38b1e30cb5cbcc0 | 1,640 | py | Python | scraper.py | mikeku1116/python-accupass-scraper | ad3301fde373ce68e55459ba5af0273599d25e37 | [
"MIT"
] | null | null | null | scraper.py | mikeku1116/python-accupass-scraper | ad3301fde373ce68e55459ba5af0273599d25e37 | [
"MIT"
] | null | null | null | scraper.py | mikeku1116/python-accupass-scraper | ad3301fde373ce68e55459ba5af0273599d25e37 | [
"MIT"
] | null | null | null | from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from bs4 import BeautifulSoup
import pandas as pd
# 安裝Chrome驅動程式及建立Chrome物件
browser = webdriver.Chrome(ChromeDriverManager().install())
browser.get(
"https://old.accupass.com/search/r/0/0/0/0/4/0/00010101/99991231?q=python")
... | 30.943396 | 111 | 0.65 | 199 | 1,640 | 5.306533 | 0.477387 | 0.056818 | 0.068182 | 0.0625 | 0.200758 | 0.200758 | 0.136364 | 0.136364 | 0.136364 | 0.136364 | 0 | 0.017937 | 0.184146 | 1,640 | 52 | 112 | 31.538462 | 0.7713 | 0.079878 | 0 | 0.064516 | 0 | 0.032258 | 0.293725 | 0.081442 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.064516 | 0.129032 | 0 | 0.129032 | 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 |
61cec369b3732fca5135012a654d9aa0eab32326 | 7,944 | py | Python | MTVulnerability/utils/losses_pytorch.py | yamizi/taskaugment | 8393e15d7ae16f267592edf1d67e20368aeeb1b5 | [
"MIT"
] | null | null | null | MTVulnerability/utils/losses_pytorch.py | yamizi/taskaugment | 8393e15d7ae16f267592edf1d67e20368aeeb1b5 | [
"MIT"
] | null | null | null | MTVulnerability/utils/losses_pytorch.py | yamizi/taskaugment | 8393e15d7ae16f267592edf1d67e20368aeeb1b5 | [
"MIT"
] | null | null | null | import sys, os
sys.path.append("./midlevel-reps")
from visualpriors.taskonomy_network import TaskonomyDecoder
import torch
import torch.nn.functional as F
import torch.nn as nn
SMOOTH = 1e-6
CHANNELS_TO_TASKS = {
1: ['colorization', 'edge_texture', 'edge_occlusion', 'keypoints3d', 'keypoints2d', 'reshading', 'd... | 45.136364 | 276 | 0.656596 | 1,089 | 7,944 | 4.639118 | 0.188246 | 0.030483 | 0.025337 | 0.015439 | 0.676564 | 0.672605 | 0.672605 | 0.649644 | 0.618963 | 0.618963 | 0 | 0.022304 | 0.215509 | 7,944 | 175 | 277 | 45.394286 | 0.78835 | 0.124874 | 0 | 0.586777 | 0 | 0 | 0.108526 | 0 | 0 | 0 | 0 | 0 | 0.099174 | 1 | 0.107438 | false | 0 | 0.041322 | 0 | 0.289256 | 0.016529 | 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 |
61db9a4dde565ed6cc9ccd45b6a858a56b15b618 | 515 | py | Python | brummi/config.py | fredreichbier/brummi | d833e6dc0b74c8bddea225c785b3cba463b13ecd | [
"MIT"
] | 1 | 2015-11-05T04:35:07.000Z | 2015-11-05T04:35:07.000Z | brummi/config.py | fredreichbier/brummi | d833e6dc0b74c8bddea225c785b3cba463b13ecd | [
"MIT"
] | null | null | null | brummi/config.py | fredreichbier/brummi | d833e6dc0b74c8bddea225c785b3cba463b13ecd | [
"MIT"
] | null | null | null | import pkg_resources
from . import BrummiRepository
DEFAULTS = {
'templates': pkg_resources.resource_filename('brummi', 'templates'),
'out_path': 'docs',
}
class Config(object):
def __init__(self, options):
self.options = DEFAULTS.copy()
self.options.update(options)
def launch(self):... | 23.409091 | 72 | 0.615534 | 52 | 515 | 5.865385 | 0.538462 | 0.216393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260194 | 515 | 21 | 73 | 24.52381 | 0.800525 | 0 | 0 | 0 | 0 | 0 | 0.118447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
61dfc58457362e0a41be0f73d8c2ed155141035c | 428 | py | Python | Section07_Bridge/script-Bridge.py | enriqueescobar-askida/Kinito.Python | e4c5521e771c4de0ceaf81776a4a61f7de01edb4 | [
"MIT"
] | 1 | 2020-10-20T07:41:51.000Z | 2020-10-20T07:41:51.000Z | Section07_Bridge/script-Bridge.py | enriqueescobar-askida/Kinito.Python | e4c5521e771c4de0ceaf81776a4a61f7de01edb4 | [
"MIT"
] | null | null | null | Section07_Bridge/script-Bridge.py | enriqueescobar-askida/Kinito.Python | e4c5521e771c4de0ceaf81776a4a61f7de01edb4 | [
"MIT"
] | null | null | null | # Circles and squares
# Each can be rendered in vector or raster form
from Section07_Bridge.Brigde.Circle import Circle
from Section07_Bridge.Brigde.RasterRenderer import RasterRenderer
from Section07_Bridge.Brigde.VectorRenderer import VectorRenderer
if __name__ == '__main__':
raster = RasterRenderer()
vector... | 30.571429 | 65 | 0.766355 | 51 | 428 | 6.215686 | 0.529412 | 0.123028 | 0.179811 | 0.236593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.158879 | 428 | 13 | 66 | 32.923077 | 0.858333 | 0.151869 | 0 | 0.2 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 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 |
61e4ce6929b3cf5b02ae69957ea9065425f62a24 | 2,409 | py | Python | samples/boxcheck.py | cg2v/box_requests | 024141a263c8918962957b75d208c532c7b853f0 | [
"Apache-2.0"
] | null | null | null | samples/boxcheck.py | cg2v/box_requests | 024141a263c8918962957b75d208c532c7b853f0 | [
"Apache-2.0"
] | null | null | null | samples/boxcheck.py | cg2v/box_requests | 024141a263c8918962957b75d208c532c7b853f0 | [
"Apache-2.0"
] | 1 | 2018-10-23T15:48:00.000Z | 2018-10-23T15:48:00.000Z | #!/usr/bin/python
import box_requests
import requests
import os
import sys
import time
import socket
import optparse
import logging
def checktime(path, days):
try:
r=os.stat(path)
except OSError:
return False
return (time.time() - r.st_mtime) < (days * 86400)
def logfailure(msg):
print >> sy... | 33.929577 | 120 | 0.688252 | 330 | 2,409 | 4.993939 | 0.463636 | 0.038228 | 0.050971 | 0.030947 | 0.235437 | 0.222087 | 0.222087 | 0.222087 | 0.222087 | 0.222087 | 0 | 0.005627 | 0.18846 | 2,409 | 70 | 121 | 34.414286 | 0.83734 | 0.006642 | 0 | 0.206349 | 0 | 0.015873 | 0.353261 | 0.048913 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.126984 | 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 |
61ebe9703928c7c7be701af932bf4a612970dd3f | 382 | py | Python | InvenTree/stock/migrations/0028_auto_20200421_0724.py | ArakniD/InvenTree | 0ebf2ebd832b2d736e895abe054ca56bfd1cc477 | [
"MIT"
] | 656 | 2017-03-29T22:06:14.000Z | 2022-03-30T11:23:52.000Z | InvenTree/stock/migrations/0028_auto_20200421_0724.py | ArakniD/InvenTree | 0ebf2ebd832b2d736e895abe054ca56bfd1cc477 | [
"MIT"
] | 1,545 | 2017-04-10T23:26:04.000Z | 2022-03-31T18:32:10.000Z | InvenTree/stock/migrations/0028_auto_20200421_0724.py | fablabbcn/InvenTree | 1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd | [
"MIT"
] | 196 | 2017-03-28T03:06:21.000Z | 2022-03-28T11:53:29.000Z | # Generated by Django 3.0.5 on 2020-04-21 07:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('stock', '0027_stockitem_sales_order'),
]
operations = [
migrations.RenameField(
model_name='stockitem',
old_name='sales_orde... | 20.105263 | 48 | 0.604712 | 42 | 382 | 5.285714 | 0.738095 | 0.135135 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069853 | 0.287958 | 382 | 18 | 49 | 21.222222 | 0.746324 | 0.117801 | 0 | 0 | 1 | 0 | 0.2 | 0.077612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61ec2ee4a4b5c284984cd0be3baf3b3ee50702c4 | 1,595 | py | Python | weideshop/urls.py | michaelgichia/weideshop | 01a408b358b9ad7d52747b42c36dc16206b4b915 | [
"BSD-2-Clause"
] | null | null | null | weideshop/urls.py | michaelgichia/weideshop | 01a408b358b9ad7d52747b42c36dc16206b4b915 | [
"BSD-2-Clause"
] | null | null | null | weideshop/urls.py | michaelgichia/weideshop | 01a408b358b9ad7d52747b42c36dc16206b4b915 | [
"BSD-2-Clause"
] | null | null | null | """weideshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | 37.093023 | 106 | 0.717241 | 220 | 1,595 | 5.109091 | 0.336364 | 0.032028 | 0.066726 | 0.021352 | 0.164591 | 0.164591 | 0.127224 | 0.066726 | 0 | 0 | 0 | 0.005861 | 0.144201 | 1,595 | 43 | 107 | 37.093023 | 0.817582 | 0.455172 | 0 | 0 | 0 | 0 | 0.11124 | 0.026651 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 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 |
61f0c4fd22f5b70221a5b58b1db5553ecb4e26b8 | 755 | py | Python | behavioral/command/logic/generators/trader_generator.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | behavioral/command/logic/generators/trader_generator.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | behavioral/command/logic/generators/trader_generator.py | Kozak24/Patterns | 351d5c11f7c64ce5d58db37b6715fc8f7d31945a | [
"MIT"
] | null | null | null | from random import randint
from typing import Optional
from behavioral.command.data import Trader
from behavioral.command.logic.generators import ItemsGenerator
class TraderGenerator:
__MIN_GOLD = 0
__MAX_GOLD = 450
def __init__(self) -> None:
self._items_generator = ItemsGenerator()
def _g... | 30.2 | 98 | 0.717881 | 94 | 755 | 5.446809 | 0.382979 | 0.082031 | 0.082031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006678 | 0.206623 | 755 | 24 | 99 | 31.458333 | 0.84808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0.058824 | 0.705882 | 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 |
61f95f027b40f870a2f775166934b53fdd79358c | 18,636 | py | Python | src/cred_manage/bitwarden.py | areese801/cred_manage | 01f08ddc0b954c36e27ce1d6407f087c8aff0d4f | [
"MIT"
] | null | null | null | src/cred_manage/bitwarden.py | areese801/cred_manage | 01f08ddc0b954c36e27ce1d6407f087c8aff0d4f | [
"MIT"
] | null | null | null | src/cred_manage/bitwarden.py | areese801/cred_manage | 01f08ddc0b954c36e27ce1d6407f087c8aff0d4f | [
"MIT"
] | null | null | null | """
Subclass of the BaseCredContainer used for reading secrets from bitwarden password manager.
This class wraps the bitwarden CLI. See: https://bitwarden.com/help/article/cli/#using-an-api-key
Note that only the Enterprise version of bitwarden can (supported) hit the REST API.
In contrast, the API key that can be ... | 41.972973 | 247 | 0.6481 | 2,547 | 18,636 | 4.590891 | 0.185316 | 0.029077 | 0.01317 | 0.00898 | 0.212349 | 0.161464 | 0.138288 | 0.109125 | 0.096981 | 0.096981 | 0 | 0.001492 | 0.280693 | 18,636 | 443 | 248 | 42.06772 | 0.870794 | 0.398208 | 0 | 0.175532 | 0 | 0.031915 | 0.222169 | 0.024867 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101064 | false | 0.101064 | 0.047872 | 0.010638 | 0.234043 | 0.047872 | 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 |
1107cf1f8235f1761f09ec217b10ad75f1307704 | 1,662 | py | Python | 06_Trees/shortest_unique_prefix.py | Sheetal0601/InterviewBit | 72ba1507278dafac6e5fb81da20d372e3d141348 | [
"MIT"
] | 61 | 2018-02-18T08:16:31.000Z | 2022-02-17T17:18:57.000Z | 06_Trees/shortest_unique_prefix.py | Sheetal0601/InterviewBit | 72ba1507278dafac6e5fb81da20d372e3d141348 | [
"MIT"
] | 1 | 2018-02-23T20:06:18.000Z | 2019-12-29T18:52:20.000Z | 06_Trees/shortest_unique_prefix.py | Sheetal0601/InterviewBit | 72ba1507278dafac6e5fb81da20d372e3d141348 | [
"MIT"
] | 30 | 2018-03-28T19:02:23.000Z | 2021-07-06T20:00:14.000Z | # Shortest Unique Prefix
# https://www.interviewbit.com/problems/shortest-unique-prefix/
#
# Find shortest unique prefix to represent each word in the list.
#
# Example:
#
# Input: [zebra, dog, duck, dove]
# Output: {z, dog, du, dov}
# where we can see that
# zebra = z
# dog = dog
# duck = du
# dove = dov
# NOTE : Ass... | 24.086957 | 106 | 0.496992 | 192 | 1,662 | 4.177083 | 0.375 | 0.044888 | 0.074813 | 0.037406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004655 | 0.353791 | 1,662 | 69 | 107 | 24.086957 | 0.742086 | 0.291817 | 0 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0 | 0.057143 | 0.457143 | 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 |
11149a0fbf72edf9f65a573647189aedcbd0a01f | 309 | py | Python | tests/test_utils.py | wxy6655/pymycobot | 504716257af7b36c9750929ad3b0b7fe96582e14 | [
"MIT"
] | 37 | 2021-01-16T13:57:06.000Z | 2022-03-27T06:16:37.000Z | tests/test_utils.py | wxy6655/pymycobot | 504716257af7b36c9750929ad3b0b7fe96582e14 | [
"MIT"
] | 27 | 2021-01-18T08:09:08.000Z | 2022-03-08T01:25:33.000Z | tests/test_utils.py | wxy6655/pymycobot | 504716257af7b36c9750929ad3b0b7fe96582e14 | [
"MIT"
] | 19 | 2021-01-19T01:52:42.000Z | 2022-02-10T06:44:06.000Z | import os
import sys
# Add relevant ranger module to PATH... there surely is a better way to do this...
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
from pymycobot import utils
port = utils.get_port_list()
print(port)
detect_result = utils.detect_port_of_basic()
print(detect_result)
| 22.071429 | 82 | 0.754045 | 51 | 309 | 4.352941 | 0.647059 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.126214 | 309 | 13 | 83 | 23.769231 | 0.818519 | 0.2589 | 0 | 0 | 0 | 0 | 0.008811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1117ea4f825935be2c13190135ae12facb794dea | 3,347 | py | Python | backend_api/vozila_specials/migrations/0001_initial.py | KoliosterNikolayIliev/vozila_backend | a1c5036a77cb78d7968bbcc6e66e9015c982be8b | [
"MIT"
] | null | null | null | backend_api/vozila_specials/migrations/0001_initial.py | KoliosterNikolayIliev/vozila_backend | a1c5036a77cb78d7968bbcc6e66e9015c982be8b | [
"MIT"
] | 4 | 2021-09-08T09:25:21.000Z | 2022-02-20T12:14:04.000Z | backend_api/vozila_specials/migrations/0001_initial.py | KoliosterNikolayIliev/vozila_backend | a1c5036a77cb78d7968bbcc6e66e9015c982be8b | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-08-04 18:10
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... | 54.868852 | 266 | 0.612788 | 348 | 3,347 | 5.747126 | 0.313218 | 0.036 | 0.056 | 0.088 | 0.5955 | 0.5735 | 0.5735 | 0.511 | 0.487 | 0.487 | 0 | 0.010062 | 0.227965 | 3,347 | 60 | 267 | 55.783333 | 0.763932 | 0.013445 | 0 | 0.528302 | 1 | 0 | 0.144848 | 0.024545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056604 | 0 | 0.132075 | 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 |
11185bdb3235153c501d87ad0d59a5aa426df74b | 385 | py | Python | inhouse/users/migrations/0011_alter_user_username.py | samuelmmorse/In-House | 9a6e103c0d53598e0b9028754fbc1fdc830cf9bd | [
"Apache-2.0"
] | 1 | 2022-02-03T18:15:09.000Z | 2022-02-03T18:15:09.000Z | inhouse/users/migrations/0011_alter_user_username.py | samuelmmorse/In-House | 9a6e103c0d53598e0b9028754fbc1fdc830cf9bd | [
"Apache-2.0"
] | 37 | 2022-02-02T21:30:16.000Z | 2022-03-08T16:18:48.000Z | inhouse/users/migrations/0011_alter_user_username.py | samuelmmorse/In-House | 9a6e103c0d53598e0b9028754fbc1fdc830cf9bd | [
"Apache-2.0"
] | null | null | null | # Generated by Django 4.0.1 on 2022-02-21 03:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0010_alter_user_picture"),
]
operations = [
migrations.AlterField(
model_name="user",
name="username",
... | 20.263158 | 51 | 0.597403 | 42 | 385 | 5.357143 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080292 | 0.288312 | 385 | 18 | 52 | 21.388889 | 0.740876 | 0.116883 | 0 | 0 | 1 | 0 | 0.118343 | 0.068047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
111ccb15401d5907b8f70ab856b3fbce11ee3984 | 8,506 | py | Python | src/sniffmypacketsv2/transforms/common/layers/http.py | SneakersInc/sniffmypacketsv2 | 55d8ff70eedb4dd948351425c25a1e904ea6d50e | [
"Apache-2.0"
] | 11 | 2015-01-01T19:44:04.000Z | 2020-03-26T07:30:26.000Z | src/sniffmypacketsv2/transforms/common/layers/http.py | SneakersInc/sniffmypacketsv2 | 55d8ff70eedb4dd948351425c25a1e904ea6d50e | [
"Apache-2.0"
] | 8 | 2015-01-01T22:45:59.000Z | 2015-12-12T10:37:50.000Z | src/sniffmypacketsv2/transforms/common/layers/http.py | SneakersInc/sniffmypacketsv2 | 55d8ff70eedb4dd948351425c25a1e904ea6d50e | [
"Apache-2.0"
] | 3 | 2017-06-04T05:18:24.000Z | 2020-03-26T07:30:27.000Z | #! /usr/bin/env python
# -*- coding: UTF-8 -*-
# Author : Steeve Barbeau, Luca Invernizzi
# This program is published under a GPLv2 license
import re
from scapy.all import TCP, bind_layers, Packet, StrField
def _canonicalize_header(name):
''' Takes a header key (i.e., "Host" in "Host: www.google.com",
an... | 39.37963 | 78 | 0.531507 | 977 | 8,506 | 4.55783 | 0.199591 | 0.117898 | 0.134741 | 0.262295 | 0.518302 | 0.40265 | 0.373007 | 0.358635 | 0.324949 | 0.314844 | 0 | 0.001544 | 0.314837 | 8,506 | 215 | 79 | 39.562791 | 0.762526 | 0.116388 | 0 | 0.445783 | 0 | 0 | 0.154783 | 0.01353 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0.006024 | 0.012048 | 0.006024 | 0.198795 | 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 |
11212e7dd8a44a25b511bd3b53859f4b2622a99f | 2,868 | py | Python | pyboss/cogs/commands.py | ajayat/pyboss | 42615d8b3af1601b3d7572e669d692cf3c537703 | [
"MIT"
] | 2 | 2021-07-27T21:46:40.000Z | 2021-10-31T20:31:05.000Z | pyboss/cogs/commands.py | ajayat/pyboss | 42615d8b3af1601b3d7572e669d692cf3c537703 | [
"MIT"
] | 1 | 2021-06-25T12:17:45.000Z | 2021-06-25T12:18:54.000Z | pyboss/cogs/commands.py | ajayat/pyboss | 42615d8b3af1601b3d7572e669d692cf3c537703 | [
"MIT"
] | 2 | 2021-06-24T18:28:25.000Z | 2021-06-25T12:20:47.000Z | import logging
from itertools import cycle
import discord
from discord.ext import commands, tasks
from pyboss.controllers.guild import GuildController
from .utils import youtube
from .utils.checkers import is_guild_owner
logger = logging.getLogger(__name__)
class Commands(commands.Cog):
def __init__(self, bot... | 30.510638 | 78 | 0.611576 | 357 | 2,868 | 4.809524 | 0.414566 | 0.027956 | 0.039604 | 0.039604 | 0.117065 | 0.117065 | 0.069889 | 0 | 0 | 0 | 0 | 0.005226 | 0.266039 | 2,868 | 93 | 79 | 30.83871 | 0.810451 | 0.021269 | 0 | 0.111111 | 0 | 0 | 0.071654 | 0.020079 | 0 | 0 | 0.00315 | 0.010753 | 0 | 1 | 0.031746 | false | 0 | 0.111111 | 0 | 0.15873 | 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 |
112171429cd4a9b17bf8545cbd8d125eb2b1fe8d | 775 | py | Python | papounet_diet/food_items/migrations/0002_auto_20201112_0653.py | Fabrice-64/OC_Project_8 | 4776a2fa6edffa5c965340b384083c2618f091d9 | [
"BSD-2-Clause"
] | null | null | null | papounet_diet/food_items/migrations/0002_auto_20201112_0653.py | Fabrice-64/OC_Project_8 | 4776a2fa6edffa5c965340b384083c2618f091d9 | [
"BSD-2-Clause"
] | null | null | null | papounet_diet/food_items/migrations/0002_auto_20201112_0653.py | Fabrice-64/OC_Project_8 | 4776a2fa6edffa5c965340b384083c2618f091d9 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 3.1.2 on 2020-11-12 06:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('food_items', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='category',
name='products',
... | 24.21875 | 67 | 0.550968 | 70 | 775 | 5.985714 | 0.542857 | 0.085919 | 0.124105 | 0.143198 | 0.357995 | 0.357995 | 0 | 0 | 0 | 0 | 0 | 0.036609 | 0.330323 | 775 | 31 | 68 | 25 | 0.770713 | 0.058065 | 0 | 0.48 | 1 | 0 | 0.159341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.16 | 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 |
11218cc7070af833cd314550b9c5614c1e90bc7d | 511 | py | Python | example.py | nils-wisiol/ntru | 9e8848c8883ffd61724604a7ad6dc39498331e2d | [
"MIT"
] | 1 | 2020-03-12T15:09:55.000Z | 2020-03-12T15:09:55.000Z | example.py | nils-wisiol/ntru | 9e8848c8883ffd61724604a7ad6dc39498331e2d | [
"MIT"
] | 1 | 2020-02-06T19:25:46.000Z | 2020-02-06T19:25:46.000Z | example.py | nils-wisiol/ntru | 9e8848c8883ffd61724604a7ad6dc39498331e2d | [
"MIT"
] | null | null | null | from ciphers import StreamlinedNTRUPrime
# choose your parameters
p, q, w = 761, 4591, 286
print('Streamlined NTRU Prime Example for', f'p={p}, q={q}, w={w}')
print('-' * 50)
cipher = StreamlinedNTRUPrime(p, q, w, seed=1337)
print('Generating key pair ... ')
pk, sk = cipher.generate_keys()
print('En/decrypting...')... | 28.388889 | 90 | 0.712329 | 73 | 511 | 4.931507 | 0.643836 | 0.016667 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035635 | 0.121331 | 511 | 17 | 91 | 30.058824 | 0.766147 | 0.043053 | 0 | 0 | 0 | 0 | 0.289528 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 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 |
1125ca0aabe90d99b7a8c515657de5d0e0420e5b | 3,721 | py | Python | netease_cloud_music_cache_export.py | simonchen/netease_cloud_music_cache_export | 2e5538c13f4bf1af0a1e138010b111462370fa69 | [
"MIT"
] | null | null | null | netease_cloud_music_cache_export.py | simonchen/netease_cloud_music_cache_export | 2e5538c13f4bf1af0a1e138010b111462370fa69 | [
"MIT"
] | null | null | null | netease_cloud_music_cache_export.py | simonchen/netease_cloud_music_cache_export | 2e5538c13f4bf1af0a1e138010b111462370fa69 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os, sys, shutil, re
def trip_space(s):
while len(s) > 0 and s[-1] == '\x00':
s = s[:-1]
## while len(s) > 0 and s[:2] == b'\x00\x00':
## s = s[2:]
return s
def _print(*args):
try:
for arg in args:
print arg,
... | 32.356522 | 145 | 0.508465 | 486 | 3,721 | 3.76749 | 0.300412 | 0.048061 | 0.027307 | 0.010923 | 0.045877 | 0.045877 | 0 | 0 | 0 | 0 | 0 | 0.056488 | 0.343456 | 3,721 | 114 | 146 | 32.640351 | 0.693 | 0.138135 | 0 | 0.090909 | 0 | 0 | 0.043266 | 0 | 0 | 0 | 0.018217 | 0 | 0 | 0 | null | null | 0.025974 | 0.012987 | null | null | 0.077922 | 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 |
1129de727312bd65742888ccbd67f3c84eed3c48 | 498 | py | Python | src/test/resources/outputs/blueprints/openstack/lamp/plugins/overrides/openstack/wrapper.py | alien4cloud/alien4cloud-cloudify4-provider | 97faee855255eb0c3ce25bb3075c29acd11a63c5 | [
"Apache-2.0"
] | null | null | null | src/test/resources/outputs/blueprints/openstack/lamp/plugins/overrides/openstack/wrapper.py | alien4cloud/alien4cloud-cloudify4-provider | 97faee855255eb0c3ce25bb3075c29acd11a63c5 | [
"Apache-2.0"
] | 3 | 2015-12-04T15:27:22.000Z | 2016-04-08T11:32:43.000Z | src/test/resources/outputs/blueprints/openstack/lamp/plugins/overrides/openstack/wrapper.py | alien4cloud/alien4cloud-cloudify4-provider | 97faee855255eb0c3ce25bb3075c29acd11a63c5 | [
"Apache-2.0"
] | 16 | 2015-01-29T10:05:09.000Z | 2019-06-24T19:23:54.000Z | from cloudify import ctx
from cloudify.decorators import operation
from a4c_common.wrapper_util import (USE_EXTERNAL_RESOURCE_KEY,handle_external_resource,handle_resource_ids)
from openstack import with_cinder_client
from openstack.volume import create
@operation
@with_cinder_client
def overrided_create_volume(cinde... | 31.125 | 108 | 0.843373 | 66 | 498 | 5.954545 | 0.439394 | 0.16285 | 0.096692 | 0.111959 | 0.142494 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002208 | 0.090361 | 498 | 15 | 109 | 33.2 | 0.865342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
112cd4d3258cf792afd7adf62c3d6949ad17d6fc | 794 | py | Python | example.py | macieydev/cosmopy | b039d07dd0cbdd52d1c5aeac79c3bfeccb186284 | [
"MIT"
] | null | null | null | example.py | macieydev/cosmopy | b039d07dd0cbdd52d1c5aeac79c3bfeccb186284 | [
"MIT"
] | null | null | null | example.py | macieydev/cosmopy | b039d07dd0cbdd52d1c5aeac79c3bfeccb186284 | [
"MIT"
] | null | null | null | from typing import Optional
from pydantic import BaseModel
from cosmopy.model import CosmosModel
class Engine(BaseModel):
hp: int
volume: int
class Car(CosmosModel):
make: str
model: str
engine: Optional[Engine]
if __name__ == "__main__":
passat = Car(make="VW", model="Passat")
print... | 19.365854 | 79 | 0.625945 | 110 | 794 | 4.390909 | 0.354545 | 0.074534 | 0.05383 | 0.062112 | 0.10766 | 0.10766 | 0 | 0 | 0 | 0 | 0 | 0.031046 | 0.229219 | 794 | 40 | 80 | 19.85 | 0.75817 | 0 | 0 | 0.074074 | 0 | 0 | 0.178841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.296296 | 0.111111 | 0 | 0.37037 | 0.222222 | 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 |
112cd54188922444eead3eae29559f88d75ef846 | 6,882 | py | Python | quadcopter/script/extras/sdre_mavros.py | Bibbidi-Babbidi-Boo/SDRE-based-Cooperative-UAV-Landing-on-High-speed-targets | 515fb38120990cb707521da1a5870721b0ee842a | [
"MIT"
] | 2 | 2020-12-30T16:24:27.000Z | 2021-05-29T08:06:54.000Z | quadcopter/script/extras/sdre_mavros.py | Bibbidi-Babbidi-Boo/SDRE-based-Cooperative-UAV-Landing-on-High-speed-targets | 515fb38120990cb707521da1a5870721b0ee842a | [
"MIT"
] | null | null | null | quadcopter/script/extras/sdre_mavros.py | Bibbidi-Babbidi-Boo/SDRE-based-Cooperative-UAV-Landing-on-High-speed-targets | 515fb38120990cb707521da1a5870721b0ee842a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
import tf
import scipy.linalg as la
import numpy as np
from math import *
import mavros_msgs.srv
from mavros_msgs.msg import AttitudeTarget
from nav_msgs.msg import Odometry
from std_msgs.msg import *
from test.msg import *
from geometry_msgs.msg import *
from mavros_msgs.msg import *... | 29.285106 | 159 | 0.583406 | 1,162 | 6,882 | 3.320138 | 0.179862 | 0.049767 | 0.049767 | 0.04873 | 0.177294 | 0.121825 | 0.077501 | 0.054951 | 0.054432 | 0.046138 | 0 | 0.061854 | 0.241209 | 6,882 | 235 | 160 | 29.285106 | 0.676944 | 0.138477 | 0 | 0.033058 | 0 | 0 | 0.030521 | 0.012208 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008264 | 0.123967 | null | null | 0.016529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.