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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33a0ecfe91f524055c14126b497bc119b1aa173f | 1,243 | py | Python | paraVerComoFuncionaAlgumasCoisas/projetoUm-emDev/mqtt/0coisas/1.py | jonasht/pythonEstudos | 5e7d28e7bd82b9d1b08e795867fdbaa743f4b747 | [
"MIT"
] | null | null | null | paraVerComoFuncionaAlgumasCoisas/projetoUm-emDev/mqtt/0coisas/1.py | jonasht/pythonEstudos | 5e7d28e7bd82b9d1b08e795867fdbaa743f4b747 | [
"MIT"
] | null | null | null | paraVerComoFuncionaAlgumasCoisas/projetoUm-emDev/mqtt/0coisas/1.py | jonasht/pythonEstudos | 5e7d28e7bd82b9d1b08e795867fdbaa743f4b747 | [
"MIT"
] | null | null | null | import paho.mqtt.client as mqtt
import sys
#definicoes:
Broker = "iot.eclipse.org"
PortaBroker = 1883
KeepAliveBroker = 60
TopicoSubscribe = "PAHOMQTTRaspPi3" #dica: troque o nome do topico por algo "unico",
#Dessa maneira, ninguem ira saber seu topico de
... | 32.710526 | 85 | 0.663717 | 138 | 1,243 | 5.927536 | 0.586957 | 0.036675 | 0.036675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008529 | 0.245374 | 1,243 | 38 | 86 | 32.710526 | 0.863539 | 0.231698 | 0 | 0 | 0 | 0 | 0.213305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33a2df222853dc3b330a035b6f5afb0ecb70a871 | 3,281 | py | Python | src/support/game_links.py | robertocarlosmedina/pygame-template | 1212c22ff96a42c47cc1c6a4df703e24562b60c0 | [
"MIT"
] | 4 | 2021-12-04T21:44:06.000Z | 2021-12-31T10:03:32.000Z | src/support/game_links.py | robertocarlosmedina/pygame-template | 1212c22ff96a42c47cc1c6a4df703e24562b60c0 | [
"MIT"
] | null | null | null | src/support/game_links.py | robertocarlosmedina/pygame-template | 1212c22ff96a42c47cc1c6a4df703e24562b60c0 | [
"MIT"
] | null | null | null | __author__ = "Roberto Medina"
__copyright__ = "Copyright 2021, Roberto Carlos Medina"
__version__ = "0.0.1"
__maintainer__ = "Roberto Medina"
__email__ = "robertocarlosmedina.dev@gmail.com "
__status__ = "Production"
"""
Class of all the links on the game.
It's possible to create a new link and call it from th... | 33.479592 | 97 | 0.635477 | 460 | 3,281 | 4.241304 | 0.195652 | 0.131215 | 0.143516 | 0.175295 | 0.395182 | 0.383906 | 0.383906 | 0.333675 | 0.234751 | 0.161456 | 0 | 0.002983 | 0.284669 | 3,281 | 97 | 98 | 33.824742 | 0.828291 | 0.170984 | 0 | 0.244898 | 0 | 0 | 0.053947 | 0.014474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0 | 0.142857 | 0 | 0.387755 | 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 |
33b09067488b110b7cfaa520c5ccc5ef6223e091 | 689 | py | Python | project_admin/migrations/0008_auto_20180320_2350.py | essykings/oh-proj-management | 341ebe663b9b0fae2dd024bbabf9ef33577f5596 | [
"MIT"
] | 6 | 2018-03-02T17:21:30.000Z | 2018-09-01T16:03:46.000Z | project_admin/migrations/0008_auto_20180320_2350.py | essykings/oh-proj-management | 341ebe663b9b0fae2dd024bbabf9ef33577f5596 | [
"MIT"
] | 64 | 2018-02-14T13:11:35.000Z | 2022-03-17T10:12:48.000Z | project_admin/migrations/0008_auto_20180320_2350.py | essykings/oh-proj-management | 341ebe663b9b0fae2dd024bbabf9ef33577f5596 | [
"MIT"
] | 34 | 2018-02-13T20:00:04.000Z | 2018-03-29T11:10:02.000Z | # Generated by Django 2.0.3 on 2018-03-20 23:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project_admin', '0007_auto_20180319_1030'),
]
operations = [
migrations.RemoveField(
model_name='projectmember',
nam... | 24.607143 | 74 | 0.577649 | 62 | 689 | 6.290323 | 0.66129 | 0.069231 | 0.112821 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06499 | 0.307692 | 689 | 27 | 75 | 25.518519 | 0.752621 | 0.065312 | 0 | 0.333333 | 1 | 0 | 0.190031 | 0.076324 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 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 |
33b174812b741b8577a86ae180ec282fbcfdd273 | 260 | py | Python | 557.Reverse_Words_in_a_String_III.py | wanxin-code/leetcode | 524d744202c4c887fda0a60861f80b30d706da67 | [
"MIT"
] | 1 | 2019-10-17T10:39:27.000Z | 2019-10-17T10:39:27.000Z | 557.Reverse_Words_in_a_String_III.py | wanxin-code/leetcode | 524d744202c4c887fda0a60861f80b30d706da67 | [
"MIT"
] | null | null | null | 557.Reverse_Words_in_a_String_III.py | wanxin-code/leetcode | 524d744202c4c887fda0a60861f80b30d706da67 | [
"MIT"
] | null | null | null | class Solution:
def reverseWords(self, s: str) -> str:
list_s = s.split(' ')
for i in range(len(list_s)):
list_s[i] = list_s[i][::-1]
return ' '.join(list_s)
print(Solution().reverseWords("Let's take LeetCode contest"))
| 32.5 | 61 | 0.576923 | 38 | 260 | 3.815789 | 0.578947 | 0.172414 | 0.082759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005155 | 0.253846 | 260 | 7 | 62 | 37.142857 | 0.742268 | 0 | 0 | 0 | 0 | 0 | 0.111538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33bb97d11bca95ea41713dd86cc4e20db315a99a | 600 | py | Python | messages/ClientReadLinkMessage.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 2 | 2020-04-15T11:20:59.000Z | 2021-05-12T13:01:36.000Z | messages/ClientReadLinkMessage.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 1 | 2018-06-05T04:48:56.000Z | 2018-06-05T04:48:56.000Z | messages/ClientReadLinkMessage.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 1 | 2018-08-15T06:45:46.000Z | 2018-08-15T06:45:46.000Z | # last generated 2018-04-08 18:03:55.030000
from messages import BaseMessage
from msg_codes import CLIENT_READ_LINK as CLIENT_READ_LINK
__author__ = 'Mike'
class ClientReadLinkMessage(BaseMessage):
def __init__(self, sid=None, link_string=None):
super(ClientReadLinkMessage, self).__init__()
self.t... | 28.571429 | 58 | 0.701667 | 75 | 600 | 5.253333 | 0.48 | 0.126904 | 0.106599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042463 | 0.215 | 600 | 20 | 59 | 30 | 0.794055 | 0.068333 | 0 | 0 | 1 | 0 | 0.032374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33bd3bb900f480ae85d26dd7a7bbf3acb71ac008 | 1,708 | py | Python | test/programytest/clients/polling/xmpp/test_config.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | 5 | 2018-08-21T00:13:45.000Z | 2018-09-01T20:00:55.000Z | test/programytest/clients/polling/xmpp/test_config.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | 1 | 2018-09-12T18:30:17.000Z | 2018-09-12T18:30:17.000Z | test/programytest/clients/polling/xmpp/test_config.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | 5 | 2018-08-21T00:08:36.000Z | 2018-09-23T06:11:04.000Z | import unittest
from programy.config.file.yaml_file import YamlConfigurationFile
from programy.clients.polling.xmpp.config import XmppConfiguration
from programy.clients.events.console.config import ConsoleConfiguration
class XmppConfigurationTests(unittest.TestCase):
def test_init(self):
yaml = YamlConf... | 35.583333 | 92 | 0.655738 | 183 | 1,708 | 5.95082 | 0.278689 | 0.151515 | 0.157025 | 0.105601 | 0.170799 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045767 | 0.232436 | 1,708 | 47 | 93 | 36.340426 | 0.784897 | 0 | 0 | 0 | 0 | 0 | 0.234778 | 0.048595 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.184211 | 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 |
33c0bc0cee8fe1d4f8bc4cc8fa240e8b9780ec1a | 2,213 | py | Python | server/api/auth/controller.py | J-Obog/market-simulator | 90446f42a5f86f13785ea5010687a5e2c1fb2799 | [
"MIT"
] | 4 | 2021-08-09T03:05:08.000Z | 2021-11-08T02:41:13.000Z | server/api/auth/controller.py | J-Obog/market-simulator | 90446f42a5f86f13785ea5010687a5e2c1fb2799 | [
"MIT"
] | null | null | null | server/api/auth/controller.py | J-Obog/market-simulator | 90446f42a5f86f13785ea5010687a5e2c1fb2799 | [
"MIT"
] | null | null | null | from flask import request, jsonify
from app import db, bcrypt, cache, jwt
from api.accounts.model import Account, AccountSchema
from flask_jwt_extended import create_access_token, create_refresh_token, jwt_required, current_user
from datetime import timedelta
@jwt.token_in_blocklist_loader
def check_token_in_blacklist... | 35.693548 | 100 | 0.704474 | 297 | 2,213 | 5.090909 | 0.377104 | 0.060185 | 0.079365 | 0.039683 | 0.189153 | 0.189153 | 0.189153 | 0.09127 | 0.09127 | 0.09127 | 0 | 0.012236 | 0.187528 | 2,213 | 62 | 101 | 35.693548 | 0.828699 | 0.084953 | 0 | 0.146341 | 0 | 0 | 0.088401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0.121951 | 0.121951 | 0.04878 | 0.463415 | 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 |
33cb172c1747dbb0875c129a20ba362bd2090da4 | 752 | py | Python | data/labeled_faces_wild/fetch_data.py | DEVESHTARASIA/big-data-tutorial | 74e2aa1241c30913c5f12b9667f9d626002b98a2 | [
"CC-BY-3.0"
] | 107 | 2015-01-06T08:51:02.000Z | 2022-03-23T08:06:56.000Z | data/labeled_faces_wild/fetch_data.py | gvannest/scikit-learn-tutorial | d70adbeedf458b98d764decf6fad9ab539086413 | [
"CC-BY-3.0"
] | null | null | null | data/labeled_faces_wild/fetch_data.py | gvannest/scikit-learn-tutorial | d70adbeedf458b98d764decf6fad9ab539086413 | [
"CC-BY-3.0"
] | 51 | 2015-01-16T15:43:06.000Z | 2021-10-06T18:29:05.000Z | """Simple script to fetch a numpy version of the LFW data
Original dataset and credits available at:
http://vis-www.cs.umass.edu/lfw/
"""
import os
import urllib2
URL = "https://downloads.sourceforge.net/project/scikit-learn/data/lfw_preprocessed.tar.gz"
ARCHIVE_NAME = "lfw_preprocessed.tar.gz"
FOLDER_NAME = "lfw... | 26.857143 | 91 | 0.703457 | 105 | 752 | 4.933333 | 0.580952 | 0.127413 | 0.069498 | 0.07722 | 0.065637 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008078 | 0.176862 | 752 | 27 | 92 | 27.851852 | 0.828756 | 0 | 0 | 0 | 0 | 0.0625 | 0.323481 | 0.037767 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | 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 |
33cc385ee4193584340b996d42bfa01349bd9331 | 1,294 | py | Python | posts/migrations/0001_initial.py | LeonardoCruzx/Projeto_rede_social | 5f6fc9fe4d1fbc1cfea696a4ff1d19fd98697bc0 | [
"CC0-1.0"
] | null | null | null | posts/migrations/0001_initial.py | LeonardoCruzx/Projeto_rede_social | 5f6fc9fe4d1fbc1cfea696a4ff1d19fd98697bc0 | [
"CC0-1.0"
] | 7 | 2020-06-05T20:31:01.000Z | 2021-09-22T18:22:45.000Z | posts/migrations/0001_initial.py | LeonardoCruzx/Projeto_rede_social | 5f6fc9fe4d1fbc1cfea696a4ff1d19fd98697bc0 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-11 21:58
import cloudinary.models
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_US... | 39.212121 | 143 | 0.642195 | 140 | 1,294 | 5.807143 | 0.535714 | 0.02952 | 0.04428 | 0.066421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026131 | 0.231066 | 1,294 | 32 | 144 | 40.4375 | 0.790955 | 0.034776 | 0 | 0 | 1 | 0 | 0.072173 | 0.02085 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.32 | 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 |
33cdb12eff2552be3202ffcf3741758367bd0fe3 | 620 | py | Python | code_challenge/bash_stack.py | Hongyang449/Ocelot | 73932383e6d3863fd9fa4aada12488550ce98b45 | [
"MIT"
] | 5 | 2021-10-05T22:05:01.000Z | 2022-01-14T02:11:07.000Z | code_challenge/bash_stack.py | Hongyang449/Ocelot | 73932383e6d3863fd9fa4aada12488550ce98b45 | [
"MIT"
] | null | null | null | code_challenge/bash_stack.py | Hongyang449/Ocelot | 73932383e6d3863fd9fa4aada12488550ce98b45 | [
"MIT"
] | null | null | null | import os
import sys
import numpy as np
import glob
chr_all = ['chr' + str(i) for i in range(1, 23)] + ['chrX']
path1='./'
model_all=['C_D','C_E','C_F','C_G','C_H','C_I', \
'CH_D','CH_E','CH_F','CH_G','CH_I', \
'CDEH_G','CDEH_I',\
'DEFGHI_C', \
'DGH_C','DGH_F','DGH_I', \
'F_C','F_D','F_E','F_G','... | 22.142857 | 63 | 0.585484 | 112 | 620 | 2.919643 | 0.375 | 0.110092 | 0.165138 | 0.183486 | 0.296636 | 0.296636 | 0.296636 | 0 | 0 | 0 | 0 | 0.013834 | 0.183871 | 620 | 27 | 64 | 22.962963 | 0.632411 | 0 | 0 | 0 | 0 | 0 | 0.300971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.05 | 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 |
33d1e0db64a960643bed84d644d7ea0000eb00e5 | 694 | py | Python | application/api/common/__init__.py | fengshukun/kcweb | 313bce537818f0152a363101c91bf2eed50e9502 | [
"MIT"
] | null | null | null | application/api/common/__init__.py | fengshukun/kcweb | 313bce537818f0152a363101c91bf2eed50e9502 | [
"MIT"
] | null | null | null | application/api/common/__init__.py | fengshukun/kcweb | 313bce537818f0152a363101c91bf2eed50e9502 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ${appname}.common import *
#下面的方法在当前模块中有效
G=globals.G
#下面的方法在当前模块中有效
def before_request():
G.userinfo=get_session("userinfo")
print('${modular}模块在请求前执行,我是要在配置文件配置后才能生效哦!',G.userinfo)
def after_request():
print('${modular}模块在请求后执行,我是要在配置文件配置后才能生效哦!')
def set_session(name,value,ex... | 31.545455 | 69 | 0.694524 | 85 | 694 | 5.6 | 0.447059 | 0.069328 | 0.107143 | 0.132353 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001623 | 0.112392 | 694 | 21 | 70 | 33.047619 | 0.771104 | 0.067723 | 0 | 0 | 0 | 0 | 0.284603 | 0.111975 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | 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 |
33d48672fef89fbc091c5912a553e36f6221968f | 1,022 | py | Python | tests/test_group.py | Yardanico/pylibui-cffi | 10d90f08b6b1e43bf567ffcd22dbe976cb10e80e | [
"MIT"
] | 6 | 2017-10-16T03:23:05.000Z | 2020-11-10T06:24:04.000Z | tests/test_group.py | TiberiumN/pylibui-cffi | 10d90f08b6b1e43bf567ffcd22dbe976cb10e80e | [
"MIT"
] | null | null | null | tests/test_group.py | TiberiumN/pylibui-cffi | 10d90f08b6b1e43bf567ffcd22dbe976cb10e80e | [
"MIT"
] | 1 | 2018-09-07T06:14:27.000Z | 2018-09-07T06:14:27.000Z | """
Pylibui test suite.
"""
from pylibui.controls import Group, Control
from tests.utils import WindowTestCase
class GroupTest(WindowTestCase):
def setUp(self):
super().setUp()
self.group = Group('my group')
def test_title_initial_value(self):
"""Tests the group's `title` initial v... | 30.058824 | 75 | 0.664384 | 134 | 1,022 | 4.940299 | 0.291045 | 0.095166 | 0.072508 | 0.102719 | 0.501511 | 0.214502 | 0.181269 | 0.090634 | 0 | 0 | 0 | 0 | 0.22407 | 1,022 | 33 | 76 | 30.969697 | 0.834805 | 0.247554 | 0 | 0 | 0 | 0 | 0.038304 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.294118 | false | 0 | 0.117647 | 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 |
33e3fbd537ddeb640127f3547755099331acacba | 302 | py | Python | crescente_decrescente.py | adeniasfilho/dio-desafio-github-primeiro-repositorio | 445c56065c01642b16fda2a5919407e260cd8349 | [
"MIT"
] | null | null | null | crescente_decrescente.py | adeniasfilho/dio-desafio-github-primeiro-repositorio | 445c56065c01642b16fda2a5919407e260cd8349 | [
"MIT"
] | null | null | null | crescente_decrescente.py | adeniasfilho/dio-desafio-github-primeiro-repositorio | 445c56065c01642b16fda2a5919407e260cd8349 | [
"MIT"
] | null | null | null | #TODO: Complete os espaços em branco com uma possível solução para o problema.
X, Y = map(int, input().split())
while ( X != Y):
floor = min(X, Y)
top = max(X, Y)
if (X < Y):
print("Crescente")
elif (X > Y):
print("Decrescente")
X, Y = map(int, input().split())
| 27.454545 | 78 | 0.543046 | 46 | 302 | 3.565217 | 0.630435 | 0.085366 | 0.060976 | 0.097561 | 0.219512 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284768 | 302 | 11 | 79 | 27.454545 | 0.759259 | 0.254967 | 0 | 0.222222 | 0 | 0 | 0.088889 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33e8122ec98b6ad46bf337e82f136f6eb8492985 | 985 | py | Python | PARTE_3/EX002/index.py | 0Fernando0/CursoPython | 1dcfdb6556e41c6dedcba2857aa4382b2f81aa59 | [
"MIT"
] | null | null | null | PARTE_3/EX002/index.py | 0Fernando0/CursoPython | 1dcfdb6556e41c6dedcba2857aa4382b2f81aa59 | [
"MIT"
] | null | null | null | PARTE_3/EX002/index.py | 0Fernando0/CursoPython | 1dcfdb6556e41c6dedcba2857aa4382b2f81aa59 | [
"MIT"
] | null | null | null | times = 'atlético-MG','flamengo','palmeiras','bragantino','fortaleza','corinthians','internacional','fluminense','cuiabá','america-MG','atletico-GO','são paulo','ceara SC','athletico-PR','santos','bahia','sport recife','juventude','gremio','chapecoense'
print('OS 5 PRIMEIROS COLOCADOS')
while True:
#print(times[:5]... | 41.041667 | 253 | 0.574619 | 132 | 985 | 4.310606 | 0.492424 | 0.052724 | 0.036907 | 0.047452 | 0.223199 | 0.223199 | 0.182777 | 0.094903 | 0.094903 | 0 | 0 | 0.032383 | 0.216244 | 985 | 24 | 254 | 41.041667 | 0.700777 | 0.085279 | 0 | 0.35 | 0 | 0 | 0.442094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
33e84130a8e9315482b217e461ca6f21ad0ba323 | 4,126 | py | Python | check-dependencies.py | joemiller/graphite-web | 7988660a2561095709ef41daa3840783117a9661 | [
"Apache-2.0"
] | null | null | null | check-dependencies.py | joemiller/graphite-web | 7988660a2561095709ef41daa3840783117a9661 | [
"Apache-2.0"
] | null | null | null | check-dependencies.py | joemiller/graphite-web | 7988660a2561095709ef41daa3840783117a9661 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
# Simple python version test
major,minor = sys.version_info[:2]
py_version = sys.version.split()[0]
if major != 2 or minor < 4:
print "You are using python %s, but version 2.4 or greater is required" % py_version
raise SystemExit(1)
fatal = 0
warning = 0
# Test for whisper
try... | 26.792208 | 138 | 0.723946 | 620 | 4,126 | 4.796774 | 0.270968 | 0.036315 | 0.047075 | 0.051446 | 0.293208 | 0.234364 | 0.184936 | 0.090787 | 0.036987 | 0.036987 | 0 | 0.014813 | 0.198255 | 4,126 | 153 | 139 | 26.96732 | 0.88422 | 0.089191 | 0 | 0.481132 | 0 | 0.084906 | 0.544507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.273585 | null | null | 0.283019 | 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 |
33ee7dabcd2e7a1f91bd352e44a507ff1e7ac280 | 5,058 | py | Python | nova/volume/iscsi.py | 781778304/nova | 05aff1959c9f94dae095635133386418390efb37 | [
"Apache-2.0"
] | null | null | null | nova/volume/iscsi.py | 781778304/nova | 05aff1959c9f94dae095635133386418390efb37 | [
"Apache-2.0"
] | null | null | null | nova/volume/iscsi.py | 781778304/nova | 05aff1959c9f94dae095635133386418390efb37 | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | 31.416149 | 78 | 0.53618 | 563 | 5,058 | 4.703375 | 0.287744 | 0.047583 | 0.054003 | 0.062311 | 0.38935 | 0.35574 | 0.33006 | 0.274169 | 0.247734 | 0.234139 | 0 | 0.004051 | 0.316726 | 5,058 | 160 | 79 | 31.6125 | 0.762153 | 0.231119 | 0 | 0.673684 | 0 | 0 | 0.140157 | 0.006037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.221053 | false | 0 | 0.031579 | 0 | 0.305263 | 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 |
33f6709c59bad9fdf86773eb13ea7646903916cd | 2,047 | py | Python | payment_system/models.py | mwerumuchai/payment_system | 1bfc0073eec050e15a8f274fa50ae65dfa47feea | [
"MIT"
] | null | null | null | payment_system/models.py | mwerumuchai/payment_system | 1bfc0073eec050e15a8f274fa50ae65dfa47feea | [
"MIT"
] | null | null | null | payment_system/models.py | mwerumuchai/payment_system | 1bfc0073eec050e15a8f274fa50ae65dfa47feea | [
"MIT"
] | null | null | null | from django.db import models
from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from phonenumber_field.modelfields import PhoneNumberField
import datetime as dt
import string as str
# Create your models here.
cla... | 25.911392 | 79 | 0.701514 | 256 | 2,047 | 5.457031 | 0.363281 | 0.035791 | 0.051539 | 0.068719 | 0.247674 | 0.177523 | 0.091625 | 0 | 0 | 0 | 0 | 0.008475 | 0.192965 | 2,047 | 78 | 80 | 26.24359 | 0.837167 | 0.204201 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.2 | 0.025 | 0.65 | 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 |
33f7d1994404bc23a338b38de0be25ed3ad0c9f9 | 2,929 | py | Python | app.py | Wujiahao81/flask-membersystem | 45e4a09d1fc93f3bb7d0f721d58dcc95f5778bac | [
"MIT"
] | null | null | null | app.py | Wujiahao81/flask-membersystem | 45e4a09d1fc93f3bb7d0f721d58dcc95f5778bac | [
"MIT"
] | null | null | null | app.py | Wujiahao81/flask-membersystem | 45e4a09d1fc93f3bb7d0f721d58dcc95f5778bac | [
"MIT"
] | null | null | null | import pymongo
client = pymongo.MongoClient("自己的mongodb連線網址")
db = client.member_system
print("success!!!")
#如果因為驗證問題無法執行可以在後面試著加 ("自己的mongodb連線網址", tls=True, tlsAllowInvalidCertificates=True)
#https://stackoverflow.com/questions/54484890/ssl-handshake-issue-with-pymongo-on-python3
#熱心網友提供的另一個certificate failed的解... | 27.373832 | 90 | 0.626494 | 308 | 2,929 | 5.905844 | 0.418831 | 0.039582 | 0.037383 | 0.036284 | 0.124244 | 0.090159 | 0.090159 | 0.052776 | 0 | 0 | 0 | 0.009087 | 0.210994 | 2,929 | 106 | 91 | 27.632075 | 0.778018 | 0.332195 | 0 | 0.229508 | 0 | 0 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114754 | false | 0.065574 | 0.032787 | 0.032787 | 0.311475 | 0.016393 | 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 |
33fba2fd9d0c3030d6ec3bed132bbb987ac6b839 | 365 | py | Python | app/main/v1/__init__.py | blackCaleb/Pizza-shop | e38cf3ad62ea5f16d81ce197eed763befd54b607 | [
"MIT"
] | null | null | null | app/main/v1/__init__.py | blackCaleb/Pizza-shop | e38cf3ad62ea5f16d81ce197eed763befd54b607 | [
"MIT"
] | null | null | null | app/main/v1/__init__.py | blackCaleb/Pizza-shop | e38cf3ad62ea5f16d81ce197eed763befd54b607 | [
"MIT"
] | null | null | null | from flask import Blueprint,jsonify
from flask_restful import Api, Resource
main = Blueprint('main',__name__,url_prefix='/main')
api = Api(main,catch_all_404s=True)
class HelloWorld(Resource):
def get (self):
return {'hello':'world'}
api.add_resource(HelloWorld,'/')
from app.main.v1.views.views import ... | 21.470588 | 52 | 0.739726 | 51 | 365 | 5.098039 | 0.588235 | 0.069231 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012539 | 0.126027 | 365 | 16 | 53 | 22.8125 | 0.802508 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.1 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d503e376aaf9e165bbcde6f4918ab66105f2cf01 | 484 | py | Python | tests/sql_parser/lexer/test_schema_objects_are_tokenized.py | vladbalmos/mitzasql | 06c2a96eb4494095b2b72bc1454199a4940b0700 | [
"MIT"
] | 69 | 2019-05-16T06:40:18.000Z | 2022-03-24T06:23:49.000Z | tests/sql_parser/lexer/test_schema_objects_are_tokenized.py | vladbalmos/mitzasql | 06c2a96eb4494095b2b72bc1454199a4940b0700 | [
"MIT"
] | 36 | 2019-05-15T19:55:24.000Z | 2021-07-22T07:07:14.000Z | tests/sql_parser/lexer/test_schema_objects_are_tokenized.py | vladbalmos/mitzasql | 06c2a96eb4494095b2b72bc1454199a4940b0700 | [
"MIT"
] | 8 | 2019-05-16T06:56:28.000Z | 2022-02-11T02:24:12.000Z | import pytest
import mitzasql.sql_parser.tokens as Token
from mitzasql.sql_parser.lexer import Lexer
from mitzasql.utils import token_is_parsed
def test_schema_object_is_tokenized():
raw = '''
`schema`.`object`
@`not a schema object`
'''
tokens = list(Lexer(raw).tokenize())
assert token_is_parsed((Token.Na... | 32.266667 | 77 | 0.733471 | 69 | 484 | 4.942029 | 0.362319 | 0.082111 | 0.152493 | 0.158358 | 0.357771 | 0.164223 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134298 | 484 | 14 | 78 | 34.571429 | 0.813842 | 0 | 0 | 0 | 0 | 0 | 0.163223 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d50d5103bce9f7a42e3f3d015b88a267abc0ee7d | 2,880 | py | Python | scheduler_sdk/model/topology/strategy_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | webshell_sdk/model/topology/strategy_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | webshell_sdk/model/topology/strategy_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: strategy.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf im... | 33.488372 | 272 | 0.747917 | 360 | 2,880 | 5.733333 | 0.338889 | 0.03876 | 0.034884 | 0.046512 | 0.313953 | 0.313953 | 0.289729 | 0.243217 | 0.243217 | 0.243217 | 0 | 0.027381 | 0.125 | 2,880 | 85 | 273 | 33.882353 | 0.791667 | 0.079861 | 0 | 0.307692 | 1 | 0.015385 | 0.208097 | 0.150965 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 |
1d0f62d4bc25d8af87f3eb7332ad47a8b992ee72 | 4,312 | py | Python | apps/shop/migrations/0001_initial.py | samitnuk/online_shop | 29af86e3138c7b70fd83e8a87b46af48a6036e95 | [
"MIT"
] | 3 | 2017-04-17T11:40:37.000Z | 2020-02-17T20:00:53.000Z | apps/shop/migrations/0001_initial.py | samitnuk/online_shop | 29af86e3138c7b70fd83e8a87b46af48a6036e95 | [
"MIT"
] | 1 | 2017-12-14T05:06:12.000Z | 2017-12-14T05:06:12.000Z | apps/shop/migrations/0001_initial.py | samitnuk/online_shop | 29af86e3138c7b70fd83e8a87b46af48a6036e95 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-11 11:07
from __future__ import unicode_literals
import apps.shop.utils
import autoslug.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | 53.9 | 192 | 0.617115 | 448 | 4,312 | 5.743304 | 0.256696 | 0.098329 | 0.045472 | 0.042752 | 0.572095 | 0.494753 | 0.48426 | 0.455499 | 0.455499 | 0.455499 | 0 | 0.00978 | 0.241187 | 4,312 | 79 | 193 | 54.582278 | 0.776589 | 0.01577 | 0 | 0.394366 | 1 | 0 | 0.137703 | 0.004952 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.070423 | 0 | 0.126761 | 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 |
1d1734353cc6b2ebcd4fa0f90f5620f3d7a9483e | 6,938 | py | Python | civil/library/filter.py | christopinka/django-civil | d134624da9d36c4ba0bea2df8a21698df196bdf6 | [
"Apache-2.0"
] | 3 | 2020-06-15T21:01:06.000Z | 2022-02-17T17:41:57.000Z | civil/library/filter.py | christopinka/django-civil | d134624da9d36c4ba0bea2df8a21698df196bdf6 | [
"Apache-2.0"
] | null | null | null | civil/library/filter.py | christopinka/django-civil | d134624da9d36c4ba0bea2df8a21698df196bdf6 | [
"Apache-2.0"
] | 1 | 2021-11-06T18:33:29.000Z | 2021-11-06T18:33:29.000Z | # -*- coding: utf-8 -*-
from django.contrib.admin.filterspecs import FilterSpec
from django.db import models
from django.utils.encoding import smart_unicode
from django.utils.translation import ugettext as _
#==============================================================================
# FilterSpec.register places ... | 49.557143 | 117 | 0.601614 | 822 | 6,938 | 4.798054 | 0.145985 | 0.114097 | 0.076065 | 0.044625 | 0.7107 | 0.695994 | 0.687373 | 0.656947 | 0.635903 | 0.625254 | 0 | 0.000562 | 0.230758 | 6,938 | 139 | 118 | 49.913669 | 0.73843 | 0.102047 | 0 | 0.586538 | 0 | 0 | 0.072853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.038462 | 0.028846 | 0.240385 | 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 |
1d193506c8bb9c0ed51c17fc52a48bccf7b1df94 | 1,450 | py | Python | tests/functional/core/test_runner.py | timgates42/provy | ca3d5e96a2210daf3c1fd4b96e047efff152db14 | [
"MIT"
] | 15 | 2015-01-28T15:49:28.000Z | 2021-09-02T18:49:46.000Z | tests/functional/core/test_runner.py | timgates42/provy | ca3d5e96a2210daf3c1fd4b96e047efff152db14 | [
"MIT"
] | null | null | null | tests/functional/core/test_runner.py | timgates42/provy | ca3d5e96a2210daf3c1fd4b96e047efff152db14 | [
"MIT"
] | 3 | 2016-12-05T07:08:11.000Z | 2021-12-26T04:31:05.000Z | import os
from mock import patch
from nose.tools import istest
from provy.core.runner import run
import provy.core.utils
from tests.unit.tools.helpers import ProvyTestCase
from tests.functional.fixtures.provyfile import (
provisions,
cleanups,
contexts,
Role1,
Role2,
Role3,
Role4,
)
clas... | 29 | 84 | 0.651724 | 159 | 1,450 | 5.874214 | 0.345912 | 0.179872 | 0.094218 | 0.068522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017133 | 0.235172 | 1,450 | 49 | 85 | 29.591837 | 0.825068 | 0 | 0 | 0 | 0 | 0 | 0.074483 | 0 | 0 | 0 | 0 | 0 | 0.341463 | 1 | 0.02439 | false | 0.146341 | 0.170732 | 0 | 0.219512 | 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 |
1d1aee0be6491b1d70c65c05676cab796b91738f | 492 | py | Python | api/management/commands/logging_test.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | 1 | 2016-06-28T13:13:27.000Z | 2016-06-28T13:13:27.000Z | api/management/commands/logging_test.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | 12 | 2016-06-28T11:19:46.000Z | 2017-05-05T14:24:14.000Z | api/management/commands/logging_test.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | null | null | null | # coding: utf-8
# Copyright Luna Technology 2016
# Matthieu Riviere <mriviere@luna-technology.com>
import logging
import traceback
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = 'Logging and stuff'
def handle(self, *args, **options):
try:
... | 21.391304 | 65 | 0.660569 | 56 | 492 | 5.803571 | 0.785714 | 0.086154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.223577 | 492 | 22 | 66 | 22.363636 | 0.835079 | 0.186992 | 0 | 0 | 0 | 0 | 0.146465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 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 |
1d1b53ce36bf909b81bdbb4a60f886a359981460 | 3,285 | py | Python | dealerships/vendor/cobaltnitra.com/download_data.py | simon-wenmouth/dealerships | dc817ef13a09ae116818482b5b14310b88a1949b | [
"MIT"
] | 4 | 2015-06-05T15:43:42.000Z | 2020-01-16T09:03:41.000Z | dealerships/vendor/cobaltnitra.com/download_data.py | simon-wenmouth/dealerships | dc817ef13a09ae116818482b5b14310b88a1949b | [
"MIT"
] | null | null | null | dealerships/vendor/cobaltnitra.com/download_data.py | simon-wenmouth/dealerships | dc817ef13a09ae116818482b5b14310b88a1949b | [
"MIT"
] | 2 | 2020-01-16T09:04:07.000Z | 2021-12-02T00:07:14.000Z | #!/usr/bin/env python
import os
import csv
import json
import glob
import errno
import requests
from urlparse import urlparse
from lxml import etree, objectify
# create data directory (when missing)
directory_name=os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', 'data', 'cobaltnitra.com'))
... | 29.330357 | 124 | 0.600304 | 436 | 3,285 | 4.440367 | 0.362385 | 0.03719 | 0.025826 | 0.018595 | 0.101756 | 0.057335 | 0.045455 | 0.045455 | 0.045455 | 0.045455 | 0 | 0.02296 | 0.257534 | 3,285 | 111 | 125 | 29.594595 | 0.770808 | 0.042314 | 0 | 0.069767 | 0 | 0.011628 | 0.143949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011628 | 0.093023 | null | null | 0.046512 | 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 |
1d1f8d3541b4c6bfc4215d66de90067f75e27c13 | 4,709 | py | Python | hexmachina/transforms.py | dnkrtz/hexmachina | 4f1ec7407fb903efe2c1d3d38874eb114611d072 | [
"MIT"
] | 21 | 2017-10-29T20:04:53.000Z | 2022-02-11T10:08:02.000Z | hexmachina/transforms.py | dnkrtz/hexmachina | 4f1ec7407fb903efe2c1d3d38874eb114611d072 | [
"MIT"
] | 3 | 2017-08-20T11:08:33.000Z | 2018-04-30T16:53:42.000Z | hexmachina/transforms.py | dnkrtz/hexmachina | 4f1ec7407fb903efe2c1d3d38874eb114611d072 | [
"MIT"
] | 11 | 2017-07-29T05:33:59.000Z | 2021-07-01T09:22:17.000Z | '''
File: transforms.py
License: MIT
Author: Aidan Kurtz
Created: 14/08/2016
Python Version: 3.5
========================
This module contains rotation things.
'''
import numpy as np
def convert_to_euler(R):
"""Compute the euler angles of this rotation.
Refer to [http://www.staff.c... | 42.423423 | 90 | 0.410278 | 862 | 4,709 | 2.229698 | 0.12877 | 0.085328 | 0.062435 | 0.049948 | 0.558273 | 0.523413 | 0.512487 | 0.501041 | 0.496878 | 0.496878 | 0 | 0.130181 | 0.308346 | 4,709 | 111 | 91 | 42.423423 | 0.459932 | 0.138458 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0 | 1 | 0.035714 | false | 0 | 0.011905 | 0 | 0.083333 | 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 |
1d20e2cac2e67cf3f44cd10cdc88e07d473072aa | 1,022 | py | Python | raspberrypi_webcam_streaming/test_dlib.py | 1step6thswmaestro/29 | e8793fecc08cdea93b94d32b4661fc2616c0c304 | [
"MIT"
] | null | null | null | raspberrypi_webcam_streaming/test_dlib.py | 1step6thswmaestro/29 | e8793fecc08cdea93b94d32b4661fc2616c0c304 | [
"MIT"
] | null | null | null | raspberrypi_webcam_streaming/test_dlib.py | 1step6thswmaestro/29 | e8793fecc08cdea93b94d32b4661fc2616c0c304 | [
"MIT"
] | null | null | null | import os
import sys
from time import sleep
import cv2
fileDir = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(fileDir, "..", "./project"))
import openface
from openface.alignment import NaiveDlib
from PIL import Image
import numpy as np
params = list()
params.append(cv2.IMWRITE_PNG_COMPR... | 24.333333 | 86 | 0.74364 | 141 | 1,022 | 5.297872 | 0.439716 | 0.064257 | 0.080321 | 0.045515 | 0.128514 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.116438 | 1,022 | 42 | 87 | 24.333333 | 0.811739 | 0 | 0 | 0.066667 | 0 | 0 | 0.102639 | 0.036168 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | null | null | 0.033333 | 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 |
1d2535a375465eb8bebf3ea4edf41d77ed85340d | 997 | py | Python | stsci/skypac/__init__.py | mcara/stsci.skypac | b986e41a29c3c2536cea86a62802b39f71e5588c | [
"BSD-3-Clause"
] | 1 | 2019-01-17T08:02:17.000Z | 2019-01-17T08:02:17.000Z | stsci/skypac/__init__.py | mcara/stsci.skypac | b986e41a29c3c2536cea86a62802b39f71e5588c | [
"BSD-3-Clause"
] | 21 | 2017-02-03T05:17:49.000Z | 2021-06-07T14:47:29.000Z | stsci/skypac/__init__.py | mcara/stsci.skypac | b986e41a29c3c2536cea86a62802b39f71e5588c | [
"BSD-3-Clause"
] | 5 | 2016-03-29T19:57:14.000Z | 2018-06-13T14:04:07.000Z | """skymatch"""
import os
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
__version__ = 'UNKNOWN'
# from .version import version as __version__
__author__ = 'Mihai Cara'
__docform... | 25.564103 | 77 | 0.72016 | 120 | 997 | 5.65 | 0.533333 | 0.103245 | 0.123894 | 0.159292 | 0.082596 | 0.082596 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0.20662 | 997 | 38 | 78 | 26.236842 | 0.830594 | 0.155466 | 0 | 0 | 0 | 0 | 0.32971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.384615 | 0 | 0.423077 | 0.076923 | 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 |
1d298c9f90a3d5409c2f6d3e3466ec6fc7a92353 | 986 | py | Python | REDIS WITH PYTHON/HASH.py | Ajay2521/REDIS-HANDS-ON | 22e896b0071d1bcb3949f5dfba4c0ec041ad5951 | [
"MIT"
] | 1 | 2020-10-02T15:00:37.000Z | 2020-10-02T15:00:37.000Z | REDIS WITH PYTHON/HASH.py | maayon2521/REDIS-HANDS-ON | 22e896b0071d1bcb3949f5dfba4c0ec041ad5951 | [
"MIT"
] | null | null | null | REDIS WITH PYTHON/HASH.py | maayon2521/REDIS-HANDS-ON | 22e896b0071d1bcb3949f5dfba4c0ec041ad5951 | [
"MIT"
] | null | null | null | # importing redis module
import redis
# calling redis with its port number on the local machine with an object instance
r = redis.Redis(host='localhost', port=6379, db=0)
nameAge = "NameAge"
# seting the key and value
print("\nDid the value is set for the specified key in hash ?:",r.hset(nameAge, 'Ajay',... | 42.869565 | 134 | 0.710953 | 172 | 986 | 4.075581 | 0.319767 | 0.059914 | 0.085592 | 0.10271 | 0.620542 | 0.620542 | 0.584879 | 0.550642 | 0.550642 | 0.507846 | 0 | 0.012516 | 0.189655 | 986 | 22 | 135 | 44.818182 | 0.864831 | 0.373225 | 0 | 0 | 0 | 0 | 0.546075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.666667 | 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 |
1d30c9ec5263b799a306304994db261c1e7c3699 | 24,648 | py | Python | Parsers/NRT.py | ComputationalChemistry-NMSU/terse | d97c4efe941b7459d6de591511592c0dec21ebbb | [
"MIT"
] | 1 | 2018-02-25T00:36:52.000Z | 2018-02-25T00:36:52.000Z | Parsers/NRT.py | ComputationalChemistry-NMSU/terse | d97c4efe941b7459d6de591511592c0dec21ebbb | [
"MIT"
] | null | null | null | Parsers/NRT.py | ComputationalChemistry-NMSU/terse | d97c4efe941b7459d6de591511592c0dec21ebbb | [
"MIT"
] | null | null | null | if __name__ == "__main__":
import sys,os
selfname = sys.argv[0]
full_path = os.path.abspath(selfname)[:]
last_slash = full_path.rfind('/')
dirpath = full_path[:last_slash] + '/..'
print "Append to PYTHONPATH: %s" % (dirpath)
sys.path.append(dirpath)
import copy, string
import math
import nu... | 29.589436 | 117 | 0.443079 | 2,776 | 24,648 | 3.895533 | 0.143732 | 0.030424 | 0.010264 | 0.012206 | 0.344183 | 0.299889 | 0.248567 | 0.241076 | 0.226558 | 0.216756 | 0 | 0.015093 | 0.432814 | 24,648 | 832 | 118 | 29.625 | 0.758441 | 0.038299 | 0 | 0.407895 | 0 | 0 | 0.034864 | 0.002831 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007519 | 0.024436 | null | null | 0.007519 | 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 |
1d33c7a491b8292f6abf841eb3215535ee90bc16 | 1,010 | py | Python | src/svm_feature_extraction.py | furahadamien/Authorship-Attributation | acad39e1b72ed176dd5bf7e8ff71212956b5ac39 | [
"Unlicense",
"MIT"
] | null | null | null | src/svm_feature_extraction.py | furahadamien/Authorship-Attributation | acad39e1b72ed176dd5bf7e8ff71212956b5ac39 | [
"Unlicense",
"MIT"
] | null | null | null | src/svm_feature_extraction.py | furahadamien/Authorship-Attributation | acad39e1b72ed176dd5bf7e8ff71212956b5ac39 | [
"Unlicense",
"MIT"
] | null | null | null | from scipy.stats import norm
from nltk.util import ngrams
from ordered_set import OrderedSet
docs = [ "My, my, I was forgetting all about the children and the mysterious fern seed." ]
def smoothing_fn(x, mu, sigma):
print(norm.pdf(x, mu, sigma))
print(norm.cdf(x))
if 0 <= x <= 1:
return gauss.pdf(... | 19.803922 | 90 | 0.565347 | 165 | 1,010 | 3.430303 | 0.375758 | 0.042403 | 0.028269 | 0.045936 | 0.113074 | 0.053004 | 0.053004 | 0.053004 | 0.053004 | 0 | 0 | 0.022973 | 0.267327 | 1,010 | 50 | 91 | 20.2 | 0.741892 | 0.035644 | 0 | 0 | 0 | 0 | 0.082305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078947 | null | null | 0.236842 | 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 |
1d354a86043d57fc2c55d7232cfbfc7e9c115301 | 692 | py | Python | tradinglabmx/obtener-info.py | mandroslabs/tradinglab-mexico | addebce7fed61623289c39471e83eb4dbf0f8718 | [
"Apache-2.0"
] | 7 | 2018-02-08T01:28:38.000Z | 2021-06-03T18:44:19.000Z | tradinglabmx/obtener-info.py | ivansabik/tradinglab-mexico | addebce7fed61623289c39471e83eb4dbf0f8718 | [
"Apache-2.0"
] | 1 | 2015-02-16T00:10:42.000Z | 2015-02-16T00:10:42.000Z | tradinglabmx/obtener-info.py | mandroslabs/tradinglab-mexico | addebce7fed61623289c39471e83eb4dbf0f8718 | [
"Apache-2.0"
] | 2 | 2016-05-03T23:48:43.000Z | 2021-05-03T18:13:01.000Z | import datetime
import pandas as pd
import pandas.io.data
empresas = pd.read_csv('../empresas_bmv.csv')
empresas = list(empresas['clave_yahoo'].values)
print empresas
datos_consolidados = pd.DataFrame()
for empresa in empresas:
datos = pd.io.data.get_data_yahoo(empresa,
sta... | 28.833333 | 74 | 0.657514 | 85 | 692 | 5.2 | 0.376471 | 0.192308 | 0.095023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0.223988 | 692 | 23 | 75 | 30.086957 | 0.800745 | 0 | 0 | 0 | 0 | 0 | 0.105644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d3a044384c8c0f86bf2f587f4b80bf7ff3ae666 | 1,768 | py | Python | 01-02/slice_and_plot.py | glc12125/ML_for_trading | 29af3b0820f0d23ca483c118e123ba7899f45704 | [
"MIT"
] | null | null | null | 01-02/slice_and_plot.py | glc12125/ML_for_trading | 29af3b0820f0d23ca483c118e123ba7899f45704 | [
"MIT"
] | null | null | null | 01-02/slice_and_plot.py | glc12125/ML_for_trading | 29af3b0820f0d23ca483c118e123ba7899f45704 | [
"MIT"
] | null | null | null | """Utility functions"""
import os
import pandas as pd
import matplotlib.pyplot as plt
def plot_selected(df, columns, start_index, end_index):
"""Plot the desired columns over index values in the given range."""
plot_data(df[start_index:end_index, columns], title='Selected Data')
def symbol_to_path(symbol, ... | 28.983607 | 82 | 0.642534 | 261 | 1,768 | 4.210728 | 0.402299 | 0.021838 | 0.023658 | 0.032757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025198 | 0.214367 | 1,768 | 60 | 83 | 29.466667 | 0.766019 | 0.097285 | 0 | 0 | 0 | 0 | 0.110853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.030303 | 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 |
1d3e082b767287c0b7556269fde9d58a07ee1abb | 807 | py | Python | hyper_science/images_backend/migrations/0008_auto_20190221_1649.py | postaxmi/hyper-science | 694621a23e97ef27691ef604749cc3050b150bc3 | [
"Apache-2.0"
] | 2 | 2019-02-20T16:32:16.000Z | 2019-02-22T13:22:27.000Z | hyper_science/images_backend/migrations/0008_auto_20190221_1649.py | postaxmi/hyper-science | 694621a23e97ef27691ef604749cc3050b150bc3 | [
"Apache-2.0"
] | null | null | null | hyper_science/images_backend/migrations/0008_auto_20190221_1649.py | postaxmi/hyper-science | 694621a23e97ef27691ef604749cc3050b150bc3 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.3 on 2019-02-21 15:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('images_backend', '0007_auto_20190220_2211'),
]
operations = [
migrations.AddField(
model_name='... | 31.038462 | 142 | 0.614622 | 87 | 807 | 5.563218 | 0.678161 | 0.049587 | 0.057851 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052202 | 0.240397 | 807 | 25 | 143 | 32.28 | 0.737357 | 0.055762 | 0 | 0.105263 | 1 | 0 | 0.186842 | 0.030263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 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 |
1d41c141b671595120e00dd61779dd02f27c3d14 | 395 | py | Python | examples/pix_keys.py | robertons/junopy | 1acc64ab99d8ea49bb0dac979cd34da43541f243 | [
"MIT"
] | 3 | 2021-07-12T15:05:13.000Z | 2022-01-31T03:35:43.000Z | examples/pix_keys.py | robertons/junopy | 1acc64ab99d8ea49bb0dac979cd34da43541f243 | [
"MIT"
] | 2 | 2022-01-29T20:14:51.000Z | 2022-02-07T16:16:24.000Z | examples/pix_keys.py | robertons/junopy | 1acc64ab99d8ea49bb0dac979cd34da43541f243 | [
"MIT"
] | 1 | 2022-02-01T18:36:10.000Z | 2022-02-01T18:36:10.000Z | # -*- coding: utf-8 -*-
import uuid
import junopy
import json
import sys
def main(arg):
junopy.Juno('4E1574938F3DD69306BC336E348276ACC9CBE72B4E8396B2520436663C66C08E',
'9OuOfYM2QZRhmUug', 'gw<Nl6bc2Ib,VX&)c2U{mX1?d_zEg0^d', sandbox=True)
# PLANO
uudi = str(uuid.uuid4())
pix = junopy.... | 19.75 | 85 | 0.678481 | 45 | 395 | 5.755556 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168224 | 0.187342 | 395 | 19 | 86 | 20.789474 | 0.638629 | 0.068354 | 0 | 0 | 0 | 0 | 0.328767 | 0.263014 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 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 |
1d4e743734920dc9adceb4d96827f00ee9d2c475 | 5,481 | py | Python | notifylist.py | bhsingleton/more_collections | 62c1458b271c7073026ce911783f67172e69783a | [
"MIT"
] | null | null | null | notifylist.py | bhsingleton/more_collections | 62c1458b271c7073026ce911783f67172e69783a | [
"MIT"
] | null | null | null | notifylist.py | bhsingleton/more_collections | 62c1458b271c7073026ce911783f67172e69783a | [
"MIT"
] | null | null | null | from six.moves import collections_abc
from .weakreflist import WeakRefList
import logging
logging.basicConfig()
log = logging.getLogger(__name__)
log.setLevel(logging.INFO)
class NotifyList(collections_abc.MutableSequence):
"""
Overload of MutableSequence used to provide callback mechanisms for any list chan... | 21.244186 | 113 | 0.551359 | 589 | 5,481 | 4.896435 | 0.227504 | 0.049931 | 0.037448 | 0.035368 | 0.304092 | 0.242718 | 0.238211 | 0.152913 | 0.152913 | 0.110957 | 0 | 0.000846 | 0.352673 | 5,481 | 257 | 114 | 21.326848 | 0.812007 | 0.338807 | 0 | 0.059701 | 0 | 0 | 0.023058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.298507 | false | 0 | 0.044776 | 0 | 0.462687 | 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 |
1d585a87ee62a70fef800db73281e56db4615314 | 488 | py | Python | src/tokenizers.py | tomfran/caselaw-temporal-analysis | 8e60acb44185892e3df88ff1d46c443aa002f676 | [
"MIT"
] | null | null | null | src/tokenizers.py | tomfran/caselaw-temporal-analysis | 8e60acb44185892e3df88ff1d46c443aa002f676 | [
"MIT"
] | null | null | null | src/tokenizers.py | tomfran/caselaw-temporal-analysis | 8e60acb44185892e3df88ff1d46c443aa002f676 | [
"MIT"
] | null | null | null | import os
import spacy
import json
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
class BatchTokenizer():
def __init__(self):
self.nlp = spacy.load("en_core_web_md")
def tokenize(self, documents):
tokens = []
for doc in self.nlp.pipe(documents, batch_size = 30):
... | 27.111111 | 85 | 0.559426 | 61 | 488 | 4.245902 | 0.704918 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009063 | 0.321721 | 488 | 18 | 86 | 27.111111 | 0.773414 | 0 | 0 | 0 | 0 | 0 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1d59254154d3e1179a73518f2f1f5c8238a5c4cf | 567 | py | Python | extension_helpers/__init__.py | astrofrog/extension-helpers | 683d2cc8144ad5d6bfb76d2f80d8104716a0ea78 | [
"BSD-3-Clause"
] | null | null | null | extension_helpers/__init__.py | astrofrog/extension-helpers | 683d2cc8144ad5d6bfb76d2f80d8104716a0ea78 | [
"BSD-3-Clause"
] | null | null | null | extension_helpers/__init__.py | astrofrog/extension-helpers | 683d2cc8144ad5d6bfb76d2f80d8104716a0ea78 | [
"BSD-3-Clause"
] | null | null | null | try:
from .version import version as __version__
from .version import githash as __githash__
except ImportError:
__version__ = ''
__githash__ = ''
import os
import sys
# Ensure that all module-level code in astropy or other packages know that
# we're in setup mode:
if ('__main__' in sys.modules and
... | 24.652174 | 74 | 0.689594 | 72 | 567 | 4.888889 | 0.569444 | 0.085227 | 0.096591 | 0.102273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213404 | 567 | 22 | 75 | 25.772727 | 0.789238 | 0.164021 | 0 | 0 | 0 | 0 | 0.089172 | 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 |
1d65dc58909436cb415b0f48cfec338fc957b35b | 1,022 | py | Python | federal_spending/usaspending/scripts/usaspending/contracts_loader.py | rlugojr/federal_spending | e06f5a0018c1a0c581e8659472acb1574919dc50 | [
"CC0-1.0"
] | 20 | 2015-01-15T18:59:50.000Z | 2022-01-31T03:37:53.000Z | federal_spending/usaspending/scripts/usaspending/contracts_loader.py | rlugojr/federal_spending | e06f5a0018c1a0c581e8659472acb1574919dc50 | [
"CC0-1.0"
] | null | null | null | federal_spending/usaspending/scripts/usaspending/contracts_loader.py | rlugojr/federal_spending | e06f5a0018c1a0c581e8659472acb1574919dc50 | [
"CC0-1.0"
] | 7 | 2015-01-16T15:47:06.000Z | 2020-01-09T07:14:45.000Z | from fpds import FIELDS, CALCULATED_FIELDS
import os.path
from django.db import connection
from django.db import transaction
import re
class Loader():
def fields(self):
return [ x[0] for x in FIELDS ] + [ x[0] for x in CALCULATED_FIELDS ]
def sql_str(self, infile):
table = 'usaspending_contrac... | 26.205128 | 77 | 0.578278 | 124 | 1,022 | 4.620968 | 0.41129 | 0.031414 | 0.041885 | 0.062827 | 0.027923 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009749 | 0.297456 | 1,022 | 38 | 78 | 26.894737 | 0.788301 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.172414 | null | null | 0.068966 | 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 |
1d712b2d568a7d55f830acdd3a0a866a5094ebdd | 1,070 | py | Python | animal_shelters/migrations/0004_auto_20210714_1237.py | KrzysztofCalus/Animal_shelters_app | 982689c719377d94bac22145fb6fc4bfb81821a2 | [
"CC0-1.0"
] | null | null | null | animal_shelters/migrations/0004_auto_20210714_1237.py | KrzysztofCalus/Animal_shelters_app | 982689c719377d94bac22145fb6fc4bfb81821a2 | [
"CC0-1.0"
] | null | null | null | animal_shelters/migrations/0004_auto_20210714_1237.py | KrzysztofCalus/Animal_shelters_app | 982689c719377d94bac22145fb6fc4bfb81821a2 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.2.4 on 2021-07-14 12:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('animal_shelters', '0003_auto_20210714_1141'),
]
operations = [
migrations.AlterField(
model_name... | 32.424242 | 80 | 0.539252 | 102 | 1,070 | 5.529412 | 0.441176 | 0.056738 | 0.074468 | 0.117021 | 0.530142 | 0.530142 | 0.322695 | 0.322695 | 0.322695 | 0.322695 | 0 | 0.044798 | 0.353271 | 1,070 | 32 | 81 | 33.4375 | 0.770231 | 0.042056 | 0 | 0.481481 | 1 | 0 | 0.121212 | 0.047898 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d76fa85d88a5672649c99c36eecf708a0461e61 | 3,230 | py | Python | neighbourhood_app/migrations/0001_initial.py | Ebay-droid/Django-ip4 | 35be93bff6d5ff3829518f9ac07968e1947180e9 | [
"MIT"
] | null | null | null | neighbourhood_app/migrations/0001_initial.py | Ebay-droid/Django-ip4 | 35be93bff6d5ff3829518f9ac07968e1947180e9 | [
"MIT"
] | null | null | null | neighbourhood_app/migrations/0001_initial.py | Ebay-droid/Django-ip4 | 35be93bff6d5ff3829518f9ac07968e1947180e9 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-11-05 06:28
import cloudinary.models
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_US... | 52.096774 | 254 | 0.613932 | 324 | 3,230 | 5.969136 | 0.296296 | 0.046536 | 0.050672 | 0.079628 | 0.584281 | 0.564116 | 0.547053 | 0.486556 | 0.361944 | 0.361944 | 0 | 0.017785 | 0.234056 | 3,230 | 61 | 255 | 52.95082 | 0.763945 | 0.013932 | 0 | 0.425926 | 1 | 0 | 0.146089 | 0.037072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.148148 | 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 |
1d7a156a682c400583bb379abc013edf17efbeef | 4,134 | py | Python | calc.py | Shreyash-Powar/Calculator | 75fe34dc1252b13025ff82921cd8d846d803d8b8 | [
"MIT"
] | null | null | null | calc.py | Shreyash-Powar/Calculator | 75fe34dc1252b13025ff82921cd8d846d803d8b8 | [
"MIT"
] | null | null | null | calc.py | Shreyash-Powar/Calculator | 75fe34dc1252b13025ff82921cd8d846d803d8b8 | [
"MIT"
] | 2 | 2020-09-30T13:42:28.000Z | 2020-10-03T07:00:45.000Z | # Title : Calculator
# Author : Aryam Sharma
# Date : 08/05/2019
# Description : It's an Calculator
import pygame
import collections
WHITE = (255, 255, 255)
GREY = (192, 192, 192)
BLACK = (0, 0, 0)
DGREY = (169, 169, 169)
BGREEN = (0, 106, 78)
Button = collections.namedtuple("Button", ["label", "c... | 37.581818 | 109 | 0.622158 | 552 | 4,134 | 4.61413 | 0.26087 | 0.082057 | 0.141735 | 0.169611 | 0.376521 | 0.367884 | 0.167648 | 0.060463 | 0.037691 | 0.037691 | 0 | 0.059208 | 0.223754 | 4,134 | 109 | 110 | 37.926606 | 0.734497 | 0.067489 | 0 | 0.073171 | 0 | 0 | 0.021345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0 | 0.02439 | 0 | 0.182927 | 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 |
1d7ab35cab4d71d53a33ccea60f5dec81d068d73 | 347 | py | Python | setup.py | shadowmint/python-nark | 7919c544c8386a023f6a9d0ffbc50e1145604528 | [
"Apache-2.0"
] | null | null | null | setup.py | shadowmint/python-nark | 7919c544c8386a023f6a9d0ffbc50e1145604528 | [
"Apache-2.0"
] | null | null | null | setup.py | shadowmint/python-nark | 7919c544c8386a023f6a9d0ffbc50e1145604528 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup (
name = "Nark",
version = "0.1",
description="Various python utilities",
author="Douglas Linder",
author_email="", # Removed to limit spam harvesting.
url="",
package_dir = {'': 'src'},
packages = find_packages("src", exclude="te... | 23.133333 | 54 | 0.668588 | 43 | 347 | 5.27907 | 0.837209 | 0.105727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006969 | 0.172911 | 347 | 14 | 55 | 24.785714 | 0.783972 | 0.15562 | 0 | 0 | 0 | 0 | 0.19244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
1d858d49d614e66032f54f593203fe6a1dc27419 | 2,084 | py | Python | CTSP/code/glove_similarity_utils.py | akhiljalan/ctsp-open-data | 88ab6ba32c2a031952c45c9097eae7dd88bb47ab | [
"MIT"
] | null | null | null | CTSP/code/glove_similarity_utils.py | akhiljalan/ctsp-open-data | 88ab6ba32c2a031952c45c9097eae7dd88bb47ab | [
"MIT"
] | null | null | null | CTSP/code/glove_similarity_utils.py | akhiljalan/ctsp-open-data | 88ab6ba32c2a031952c45c9097eae7dd88bb47ab | [
"MIT"
] | null | null | null | import numpy as np
import os
def load_embeddings(filename):
'''
Function source: Berkeley CS 194-129, Homework 3.
'''
vocab = []
embed = []
with open(filename, 'r', encoding="utf-8") as f:
for line in f.readlines():
row = line.strip().split(' ')
vocab.append(row[0])
... | 35.322034 | 111 | 0.692898 | 299 | 2,084 | 4.625418 | 0.391304 | 0.065076 | 0.040492 | 0.034707 | 0.118583 | 0.118583 | 0.056399 | 0.056399 | 0 | 0 | 0 | 0.025595 | 0.193858 | 2,084 | 59 | 112 | 35.322034 | 0.797619 | 0 | 0 | 0 | 0 | 0 | 0.0899 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | null | null | 0 | 0.04878 | null | null | 0.04878 | 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 |
1d8d606997e8cd609947e7953355f6de761fd883 | 2,496 | py | Python | mlflow/pyfunc/scoring_server.py | yupbank/mlflow | aca724ebe63fad3ebcb32c0b9a78a0f717cb518d | [
"Apache-2.0"
] | 3 | 2019-08-16T15:17:20.000Z | 2022-02-22T10:01:47.000Z | mlflow/pyfunc/scoring_server.py | mateiz/mlflow | 9e7ec0093a72f4cbe3d55629c7e2cc5043068e12 | [
"Apache-2.0"
] | null | null | null | mlflow/pyfunc/scoring_server.py | mateiz/mlflow | 9e7ec0093a72f4cbe3d55629c7e2cc5043068e12 | [
"Apache-2.0"
] | 1 | 2022-01-27T19:06:54.000Z | 2022-01-27T19:06:54.000Z | """
Scoring server for python model format.
The passed int model is expected to have function:
predict(pandas.Dataframe) -> pandas.DataFrame
Input, expected intext/csv or application/json format,
is parsed into pandas.DataFrame and passed to the model.
Defines two endpoints:
/ping used for health check
/in... | 34.666667 | 88 | 0.634215 | 325 | 2,496 | 4.824615 | 0.427692 | 0.038265 | 0.036352 | 0.051658 | 0.067602 | 0.067602 | 0.067602 | 0.067602 | 0.067602 | 0.067602 | 0 | 0.008233 | 0.270032 | 2,496 | 71 | 89 | 35.15493 | 0.85236 | 0.351362 | 0 | 0.114286 | 0 | 0 | 0.121711 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.085714 | false | 0 | 0.171429 | 0 | 0.371429 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d8dfa79ac5f0de4a211300a21f0396e862a65a3 | 923 | py | Python | bin/blockify.py | PapenfussLab/Mungo | 02c5b0e48ecd28596cb9481b282753859f47fed6 | [
"Artistic-2.0"
] | 1 | 2015-09-16T07:53:18.000Z | 2015-09-16T07:53:18.000Z | bin/blockify.py | PapenfussLab/Mungo | 02c5b0e48ecd28596cb9481b282753859f47fed6 | [
"Artistic-2.0"
] | null | null | null | bin/blockify.py | PapenfussLab/Mungo | 02c5b0e48ecd28596cb9481b282753859f47fed6 | [
"Artistic-2.0"
] | 3 | 2016-01-02T16:34:59.000Z | 2021-07-21T04:21:55.000Z | #!/usr/bin/env python
"""
blockify.py <input dir> <output dir>
Author: Tony Papenfuss
Date: Wed Apr 18 19:36:39 EST 2007
"""
import os, sys, glob
from mungo import fasta
def blockify(iFilename, oFilename, blockSize=5000000):
writer = fasta.FastaWriter(oFilename)
for h,s in fasta.FastaReader(iFilename):
... | 23.075 | 68 | 0.600217 | 127 | 923 | 4.267717 | 0.519685 | 0.099631 | 0.095941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037901 | 0.256771 | 923 | 39 | 69 | 23.666667 | 0.752187 | 0.03792 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.095238 | 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 |
1d95a35f2ab6f2baab9652efaf84746f53d49309 | 1,868 | py | Python | app/backend/app/crud/crud_invoice.py | matayoos/invoice-scrapper | d36c944c10714e61d304693d0fce28769d2a746a | [
"MIT"
] | null | null | null | app/backend/app/crud/crud_invoice.py | matayoos/invoice-scrapper | d36c944c10714e61d304693d0fce28769d2a746a | [
"MIT"
] | null | null | null | app/backend/app/crud/crud_invoice.py | matayoos/invoice-scrapper | d36c944c10714e61d304693d0fce28769d2a746a | [
"MIT"
] | null | null | null | from typing import List
from sqlalchemy import extract
from sqlalchemy.orm import Session
from app.models.invoice import Invoice
from app.schemas.invoice import InvoiceCreate
from sqlalchemy.sql.elements import and_
def get_invoices(db: Session, skip: int = 0, limit: int = 100) -> List[Invoice]:
return db.query... | 24.906667 | 85 | 0.630086 | 247 | 1,868 | 4.562753 | 0.198381 | 0.055901 | 0.086957 | 0.106477 | 0.482697 | 0.417924 | 0.283052 | 0.191659 | 0.191659 | 0.191659 | 0 | 0.010684 | 0.248394 | 1,868 | 74 | 86 | 25.243243 | 0.792023 | 0 | 0 | 0.293103 | 0 | 0 | 0.006959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.103448 | 0.103448 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
1d9c9d1947b28b8b450bb1b8ffc597214fe4bb0e | 8,583 | py | Python | pdil/core/findNode.py | patcorwin/fossil | 8e471c5233e4a2d81dc66bd8e2a3d6387e71ef61 | [
"BSD-3-Clause"
] | 41 | 2017-04-24T09:43:24.000Z | 2021-10-06T04:11:43.000Z | pdil/core/findNode.py | patcorwin/fossil | 8e471c5233e4a2d81dc66bd8e2a3d6387e71ef61 | [
"BSD-3-Clause"
] | 22 | 2018-04-18T21:56:01.000Z | 2021-08-05T20:57:45.000Z | pdil/core/findNode.py | patcorwin/fossil | 8e471c5233e4a2d81dc66bd8e2a3d6387e71ef61 | [
"BSD-3-Clause"
] | 9 | 2017-04-24T09:43:27.000Z | 2021-05-14T05:38:33.000Z | '''
These function find different nodes, but generally will NOT make any if they do not exist,
the `getNodes` does that. This lets all the lib modules find if needed, and only
the portions that actually need to make objects can do so.
'''
from __future__ import print_function, absolute_import
import json
from pymel.... | 31.555147 | 161 | 0.587673 | 1,074 | 8,583 | 4.66946 | 0.258845 | 0.036291 | 0.01994 | 0.037886 | 0.281954 | 0.220339 | 0.217348 | 0.188634 | 0.1667 | 0.144566 | 0 | 0.018364 | 0.302109 | 8,583 | 271 | 162 | 31.671587 | 0.818865 | 0.201561 | 0 | 0.324074 | 0 | 0 | 0.072984 | 0 | 0 | 0 | 0 | 0.01476 | 0 | 1 | 0.083333 | false | 0.018519 | 0.046296 | 0 | 0.37037 | 0.009259 | 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 |
1da494c0613827a6695658661b36356112a118c7 | 4,190 | py | Python | read_scaling.py | fywu85/cs267-project | f552888bbd081ec19dff86c64f6389399b76ce3e | [
"MIT"
] | null | null | null | read_scaling.py | fywu85/cs267-project | f552888bbd081ec19dff86c64f6389399b76ce3e | [
"MIT"
] | null | null | null | read_scaling.py | fywu85/cs267-project | f552888bbd081ec19dff86c64f6389399b76ce3e | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import matplotlib
matplotlib
matplotlib.rc('font', family='FreeSans', size=16)
data = []
with open('weak_scaling.txt', 'r') as file:
for line in file:
if 'Average' in line:
_line = line.split(' ')
data.append(float(_line[-1]))
... | 36.12069 | 89 | 0.683771 | 655 | 4,190 | 4.178626 | 0.157252 | 0.035075 | 0.07015 | 0.049689 | 0.757033 | 0.742419 | 0.694191 | 0.694191 | 0.611619 | 0.534161 | 0 | 0.029581 | 0.12864 | 4,190 | 115 | 90 | 36.434783 | 0.720077 | 0 | 0 | 0.533333 | 0 | 0 | 0.156123 | 0.01671 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.028571 | 0 | 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 |
1da74127ade37377b5a2e94deedb86480a52f8ad | 410 | py | Python | solver/build.py | suoxinkey/PlenOctrees_NeRF-SH | bf66ecc93ee166a4dc1a208d063408b452484dde | [
"MIT"
] | 54 | 2021-04-13T14:51:40.000Z | 2022-03-09T12:49:46.000Z | solver/build.py | suoxinkey/PlenOctrees_NeRF-SH | bf66ecc93ee166a4dc1a208d063408b452484dde | [
"MIT"
] | 2 | 2021-04-17T02:05:41.000Z | 2021-12-06T12:09:38.000Z | solver/build.py | suoxinkey/PlenOctrees_NeRF-SH | bf66ecc93ee166a4dc1a208d063408b452484dde | [
"MIT"
] | 2 | 2021-04-17T16:22:20.000Z | 2021-08-23T05:17:04.000Z | # encoding: utf-8
"""
@author: sherlock
@contact: sherlockliao01@gmail.com
"""
import torch
def make_optimizer(cfg, model):
weight_decay = cfg.SOLVER.WEIGHT_DECAY
lr = cfg.SOLVER.BASE_LR
if cfg.SOLVER.OPTIMIZER_NAME == 'Adam':
optimizer = torch.optim.Adam(params=model.parameters(), lr=lr, bet... | 18.636364 | 118 | 0.67561 | 55 | 410 | 4.909091 | 0.618182 | 0.162963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 0.195122 | 410 | 21 | 119 | 19.52381 | 0.790909 | 0.170732 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1daa82390e7eb0ebf4608d3ba7e94d2670c2add0 | 4,396 | py | Python | cs15211/GuessNumberHigherorLowerII.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/GuessNumberHigherorLowerII.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/GuessNumberHigherorLowerII.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/guess-number-higher-or-lower-ii/'
# https://github.com/kamyu104/LeetCode/blob/master/Python/guess-number-higher-or-lower-ii.py
# Time: O(n^2)
# Space: O(n^2)
#
# Description: Leetcode # 375. Guess Number Higher or Lower II
#
# We are playing the Guess Game. The game is as fo... | 30.741259 | 95 | 0.563694 | 681 | 4,396 | 3.613803 | 0.299559 | 0.007314 | 0.031694 | 0.038602 | 0.181227 | 0.143438 | 0.116213 | 0.097521 | 0.062576 | 0.040634 | 0 | 0.02873 | 0.30323 | 4,396 | 143 | 96 | 30.741259 | 0.774731 | 0.382621 | 0 | 0.073171 | 0 | 0.036585 | 0.783302 | 0.008349 | 0 | 0 | 0 | 0 | 0.012195 | 1 | 0.02439 | false | 0 | 0.012195 | 0 | 0.170732 | 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 |
d51c3e3fd5250df51869db4142def07c919442af | 4,109 | py | Python | api/schema/resource.py | stunn3r/matos | 34c03d56c8eb358682edfc991434163cbab102e6 | [
"RSA-MD"
] | null | null | null | api/schema/resource.py | stunn3r/matos | 34c03d56c8eb358682edfc991434163cbab102e6 | [
"RSA-MD"
] | null | null | null | api/schema/resource.py | stunn3r/matos | 34c03d56c8eb358682edfc991434163cbab102e6 | [
"RSA-MD"
] | null | null | null | from flask_marshmallow import Schema
from marshmallow.fields import Nested, Dict, List, Str
class AddressSchema(Schema):
type = Str()
address = Str()
class AllocatableSchema(Schema):
class Meta:
fields = ("attachable-volumes-gce-pd", "hugepages-1Gi", "hugepages-2Mi", "cpu", "ephemeral", "memory"... | 23.346591 | 118 | 0.662448 | 393 | 4,109 | 6.832061 | 0.282443 | 0.031285 | 0.024209 | 0.029795 | 0.115829 | 0.091993 | 0.063315 | 0.063315 | 0.063315 | 0 | 0 | 0.000625 | 0.220978 | 4,109 | 175 | 119 | 23.48 | 0.838176 | 0.020443 | 0 | 0.274809 | 0 | 0 | 0.035075 | 0.006219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015267 | 0 | 0.969466 | 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 |
d51c46efc7b94735630f0189920f5b5f4afa04e8 | 1,287 | py | Python | BlackLocust/Futures/scripts/config.py | adoggie/Tibet.6 | 3c53060edafd80b9c4dafa10699a68d86a410c66 | [
"MIT"
] | 22 | 2019-10-28T07:28:12.000Z | 2022-03-19T15:36:41.000Z | BlackLocust/Futures/scripts/config.py | adoggie/Tibet.6 | 3c53060edafd80b9c4dafa10699a68d86a410c66 | [
"MIT"
] | 1 | 2019-11-07T04:54:14.000Z | 2019-11-07T07:12:48.000Z | BlackLocust/Futures/scripts/config.py | adoggie/Tibet.6 | 3c53060edafd80b9c4dafa10699a68d86a410c66 | [
"MIT"
] | 13 | 2019-10-28T07:29:07.000Z | 2021-11-03T06:53:12.000Z | #coding:utf-8
MONGODB=('192.168.1.252',27017)
MONGODB=('127.0.0.1',27018)
# MONGODB=('192.168.1.252',27018)
STRATEGY_SERVER = MONGODB # 策略运行记录数据库
STRATEGY_DB_NAME = 'CTP_BlackLocust'
QUOTES_DB_SERVER = MONGODB # 行情历史k线数据库
TRADE_INTERFACE_SIMNOW = 'http://192.168.1.252:17001'
TRADE_INTER... | 23.833333 | 67 | 0.63481 | 181 | 1,287 | 4.292818 | 0.337017 | 0.046332 | 0.054054 | 0.07722 | 0.199485 | 0.119691 | 0.095238 | 0.095238 | 0.095238 | 0 | 0 | 0.23659 | 0.188811 | 1,287 | 53 | 68 | 24.283019 | 0.507663 | 0.141414 | 0 | 0 | 0 | 0 | 0.358925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
d51d0946858d6eb4ed1b74f7333808e8b0febe9b | 1,791 | py | Python | PointCloudViewer.py | DonHaul/MultiCamCalAruco | 2ca3774f3e3d030baf5c0891865adce084f3400d | [
"MIT"
] | 1 | 2019-10-14T08:38:53.000Z | 2019-10-14T08:38:53.000Z | PointCloudViewer.py | DonHaul/MultiCamCalAruco | 2ca3774f3e3d030baf5c0891865adce084f3400d | [
"MIT"
] | null | null | null | PointCloudViewer.py | DonHaul/MultiCamCalAruco | 2ca3774f3e3d030baf5c0891865adce084f3400d | [
"MIT"
] | null | null | null | """
PosePipelineMaker.py
Generates and executes a pipeline to estimate poses
"""
import numpy as np
import time
import rospy
import numpy as np
from shutil import copyfile
from libs import *
import sys
import threading
import PointCloudVisualizer
import Classes.State as State
import CommandLine
from open3d import... | 16.738318 | 66 | 0.619765 | 210 | 1,791 | 5.204762 | 0.433333 | 0.029277 | 0.023788 | 0.027447 | 0.042086 | 0.042086 | 0 | 0 | 0 | 0 | 0 | 0.018209 | 0.264098 | 1,791 | 107 | 67 | 16.738318 | 0.811077 | 0.180905 | 0 | 0.042553 | 1 | 0 | 0.031724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.297872 | 0 | 0.340426 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d52284be26a368d26d09f7300f33c60ac2d5cf84 | 1,528 | py | Python | backend/blog_api/tests/test_views.py | gorkemarslan/Blog-Django-React | 774ca6e140f3b1b26c9338a5641328edda8ac911 | [
"MIT"
] | null | null | null | backend/blog_api/tests/test_views.py | gorkemarslan/Blog-Django-React | 774ca6e140f3b1b26c9338a5641328edda8ac911 | [
"MIT"
] | null | null | null | backend/blog_api/tests/test_views.py | gorkemarslan/Blog-Django-React | 774ca6e140f3b1b26c9338a5641328edda8ac911 | [
"MIT"
] | null | null | null | from rest_framework.test import APITestCase
from rest_framework import status
from django.contrib.auth import get_user_model
from django.urls import reverse
from ..models import Post, Tag
class BlogAPIViewTests(APITestCase):
def setUp(self) -> None:
self.url_post_list = reverse('post_list')
self.... | 49.290323 | 117 | 0.659686 | 192 | 1,528 | 5.0625 | 0.317708 | 0.032922 | 0.033951 | 0.046296 | 0.148148 | 0.148148 | 0.148148 | 0.109054 | 0.109054 | 0 | 0 | 0.009228 | 0.219895 | 1,528 | 30 | 118 | 50.933333 | 0.806208 | 0 | 0 | 0 | 0 | 0 | 0.13678 | 0 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.12 | false | 0.08 | 0.2 | 0 | 0.36 | 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 |
d522dfa42f9f02ae8d28385bc27b15275acd1d3e | 572 | py | Python | aplicacion/migrations/0012_auto_20210115_0509.py | jffc-dev/Python-Django-Tecshop | c26ab6da20eca0483b900d253eacc37d2e8b1f26 | [
"MIT"
] | null | null | null | aplicacion/migrations/0012_auto_20210115_0509.py | jffc-dev/Python-Django-Tecshop | c26ab6da20eca0483b900d253eacc37d2e8b1f26 | [
"MIT"
] | null | null | null | aplicacion/migrations/0012_auto_20210115_0509.py | jffc-dev/Python-Django-Tecshop | c26ab6da20eca0483b900d253eacc37d2e8b1f26 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-15 05:09
import aplicacion.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('aplicacion', '0011_auto_20210115_0422'),
]
operations = [
migrations.AlterField(
... | 27.238095 | 173 | 0.676573 | 65 | 572 | 5.846154 | 0.646154 | 0.063158 | 0.073684 | 0.115789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068282 | 0.206294 | 572 | 20 | 174 | 28.6 | 0.768722 | 0.078671 | 0 | 0 | 1 | 0 | 0.139048 | 0.04381 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 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 |
d5235c18afc84ad288e83ce8d8c7871fcf43cef6 | 33,061 | py | Python | _DJANGO_APP/CACTEA/views.py | kennedyCzar/POSTGRE-DATABASE-MANAGEMENT-USING-DJANGO-REST-API | a3b3c52d54e6ace5660f879e9514b2f10e74e74e | [
"MIT"
] | 4 | 2020-03-26T18:13:29.000Z | 2020-05-28T08:24:42.000Z | _DJANGO_APP/CACTEA/views.py | kennedyCzar/POSTGRE-DATABASE-MANAGEMENT-USING-DJANGO-REST-API | a3b3c52d54e6ace5660f879e9514b2f10e74e74e | [
"MIT"
] | null | null | null | _DJANGO_APP/CACTEA/views.py | kennedyCzar/POSTGRE-DATABASE-MANAGEMENT-USING-DJANGO-REST-API | a3b3c52d54e6ace5660f879e9514b2f10e74e74e | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse
from django.contrib.auth import login, authenticate
from django.contrib.auth.views import logout
from django.views.generic import TemplateView
from django.contrib.auth.mixins import LoginRequir... | 36.13224 | 129 | 0.65851 | 3,772 | 33,061 | 5.627519 | 0.077943 | 0.127762 | 0.054647 | 0.092901 | 0.564988 | 0.559335 | 0.547746 | 0.547746 | 0.547746 | 0.547746 | 0 | 0.00242 | 0.212577 | 33,061 | 915 | 130 | 36.13224 | 0.812968 | 0.102901 | 0 | 0.561905 | 0 | 0 | 0.098022 | 0.019369 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185714 | false | 0.006349 | 0.031746 | 0 | 0.769841 | 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 |
d52c3aba599771acea2173746db7a056c2c395c7 | 2,485 | py | Python | objects/image_processor.py | karanveersingh5623/pico-test | b24ec8835193c9c71579686bebf55d5993cea0a9 | [
"MIT"
] | null | null | null | objects/image_processor.py | karanveersingh5623/pico-test | b24ec8835193c9c71579686bebf55d5993cea0a9 | [
"MIT"
] | null | null | null | objects/image_processor.py | karanveersingh5623/pico-test | b24ec8835193c9c71579686bebf55d5993cea0a9 | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[ ]:
# Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of services like Amazon S3 and Amazon EC2.
# OpenCV is a library of programming functions mainly aimed at real-time computer vision
from __fut... | 23.443396 | 191 | 0.659155 | 301 | 2,485 | 5.275748 | 0.465116 | 0.010076 | 0.032116 | 0.026448 | 0.139798 | 0.044081 | 0 | 0 | 0 | 0 | 0 | 0.018408 | 0.25674 | 2,485 | 105 | 192 | 23.666667 | 0.841364 | 0.210865 | 0 | 0.254545 | 0 | 0 | 0.059794 | 0.012887 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.418182 | 0 | 0.472727 | 0.018182 | 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 |
d52eee36cf4b6064136c3e36221b191e7f110b6b | 547 | py | Python | openslides_backend/action/actions/theme/delete.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | openslides_backend/action/actions/theme/delete.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | 19 | 2021-11-22T16:25:54.000Z | 2021-11-25T13:38:13.000Z | openslides_backend/action/actions/theme/delete.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | from ....models.models import Theme
from ....permissions.management_levels import OrganizationManagementLevel
from ...generics.delete import DeleteAction
from ...util.default_schema import DefaultSchema
from ...util.register import register_action
@register_action("theme.delete")
class ThemeDelete(DeleteAction):
... | 30.388889 | 73 | 0.771481 | 58 | 547 | 7.086207 | 0.551724 | 0.038929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133455 | 547 | 17 | 74 | 32.176471 | 0.867089 | 0.045704 | 0 | 0 | 0 | 0 | 0.023715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d53a26aa73b60bc54297a5173bd1847c17cf7409 | 1,098 | py | Python | slices.py | nickaigi/effective_python_tips | 1a68b6eaed2e946b003c0cd0bdea03e79b8e8990 | [
"Unlicense"
] | null | null | null | slices.py | nickaigi/effective_python_tips | 1a68b6eaed2e946b003c0cd0bdea03e79b8e8990 | [
"Unlicense"
] | null | null | null | slices.py | nickaigi/effective_python_tips | 1a68b6eaed2e946b003c0cd0bdea03e79b8e8990 | [
"Unlicense"
] | null | null | null | # Remember that everything in python is
# pass by reference
if __name__ == '__main__':
a = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']
print('First four: ', a[:4]) # same as a[0:4]
# -ve list index starts at position 1
print('Last four: ', a[-4:])
print('Middle two: ', a[3:-3])
# when used in... | 27.45 | 76 | 0.551913 | 190 | 1,098 | 3.147368 | 0.478947 | 0.020067 | 0.020067 | 0.013378 | 0.063545 | 0.063545 | 0.063545 | 0.0301 | 0.0301 | 0 | 0 | 0.049618 | 0.284153 | 1,098 | 39 | 77 | 28.153846 | 0.711196 | 0.568306 | 0 | 0 | 0 | 0 | 0.192982 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 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 |
d53dd5bc2e3d94ac30051eabe698022ed0f1d99c | 11,217 | py | Python | src/tools/audio.py | syfengcuhk/FactorizedHierarchicalVAE | 58f7f9c4755a21627cb5bf34aedbf431c459eec6 | [
"Apache-2.0"
] | 155 | 2017-11-09T14:39:00.000Z | 2022-02-18T14:54:57.000Z | src/tools/audio.py | syfengcuhk/FactorizedHierarchicalVAE | 58f7f9c4755a21627cb5bf34aedbf431c459eec6 | [
"Apache-2.0"
] | 5 | 2018-01-09T17:10:49.000Z | 2020-10-13T12:34:50.000Z | src/tools/audio.py | wnhsu/FactorizedHierarchicalVAE | 7e3e23aebff70df2bd038f059d38292b864e44c1 | [
"Apache-2.0"
] | 25 | 2017-11-29T10:37:54.000Z | 2021-06-10T08:20:44.000Z | import os
import time
import scipy
import numpy as np
import soundfile as sf
def mel_scale(freq):
return 1127.0 * np.log(1.0 + float(freq)/700)
def inv_mel_scale(mel_freq):
return 700 * (np.exp(float(mel_freq)/1127) - 1)
class MelBank(object):
def __init__(self,
low_freq=20,
... | 39.496479 | 97 | 0.594009 | 1,679 | 11,217 | 3.736748 | 0.147111 | 0.031081 | 0.052598 | 0.018648 | 0.362129 | 0.302518 | 0.249602 | 0.21868 | 0.202104 | 0.174689 | 0 | 0.019402 | 0.287777 | 11,217 | 283 | 98 | 39.636042 | 0.765928 | 0.037621 | 0 | 0.142132 | 0 | 0 | 0.084858 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0 | null | null | 0 | 0.025381 | null | null | 0.025381 | 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 |
d53de97f3419aa8fb4535105c0d86d7acd18095b | 4,286 | py | Python | mmflow/datasets/sintel.py | hologerry/mmflow | 40caf064851bd95317424e31cc137c0007a2bece | [
"Apache-2.0"
] | 481 | 2021-11-16T07:04:23.000Z | 2022-03-31T22:21:21.000Z | mmflow/datasets/sintel.py | hologerry/mmflow | 40caf064851bd95317424e31cc137c0007a2bece | [
"Apache-2.0"
] | 72 | 2021-11-16T12:25:55.000Z | 2022-03-28T13:10:45.000Z | mmflow/datasets/sintel.py | hologerry/mmflow | 40caf064851bd95317424e31cc137c0007a2bece | [
"Apache-2.0"
] | 48 | 2021-11-16T06:48:46.000Z | 2022-03-30T12:46:40.000Z | # Copyright (c) OpenMMLab. All rights reserved.
import os
import os.path as osp
from typing import Optional, Sequence, Union
from .base_dataset import BaseDataset
from .builder import DATASETS
@DATASETS.register_module()
class Sintel(BaseDataset):
"""Sintel optical flow dataset.
Args:
pass_style (st... | 38.267857 | 79 | 0.610126 | 540 | 4,286 | 4.585185 | 0.203704 | 0.050889 | 0.029079 | 0.050485 | 0.162763 | 0.140953 | 0.113086 | 0.049273 | 0.029887 | 0.029887 | 0 | 0.007877 | 0.289081 | 4,286 | 111 | 80 | 38.612613 | 0.804726 | 0.136024 | 0 | 0 | 0 | 0 | 0.049063 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.067568 | false | 0.081081 | 0.067568 | 0 | 0.162162 | 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 |
d542279ba8a988bf861557ca8ed277624845dfaa | 356 | py | Python | admin/migrations/0026_auto_20180702_1323.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 4 | 2019-07-19T17:39:04.000Z | 2022-03-22T21:02:15.000Z | admin/migrations/0026_auto_20180702_1323.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 53 | 2019-08-04T14:25:40.000Z | 2022-03-26T20:30:55.000Z | admin/migrations/0026_auto_20180702_1323.py | rodlukas/UP-admin | 08f36de0773f39c6222da82016bf1384af2cce18 | [
"MIT"
] | 3 | 2020-03-09T07:11:03.000Z | 2020-09-11T01:22:50.000Z | # Generated by Django 2.0.6 on 2018-07-02 11:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("admin", "0025_auto_20180702_0939")]
operations = [
migrations.AlterField(
model_name="attendancestate", name="default", field=models.BooleanF... | 23.733333 | 98 | 0.679775 | 41 | 356 | 5.804878 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109541 | 0.205056 | 356 | 14 | 99 | 25.428571 | 0.731449 | 0.126404 | 0 | 0 | 1 | 0 | 0.161812 | 0.074434 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5422fda9110477f5638e9e0c794d361ed7a75ad | 2,809 | py | Python | bindings/python/tests/bindings/test_decoders.py | joverwey/tokenizers | da0a5172ef14a94c0ad0ef47600305e471a87efd | [
"Apache-2.0"
] | 2 | 2020-11-19T13:09:29.000Z | 2021-01-31T11:42:16.000Z | bindings/python/tests/bindings/test_decoders.py | joverwey/tokenizers | da0a5172ef14a94c0ad0ef47600305e471a87efd | [
"Apache-2.0"
] | 1 | 2020-09-21T05:52:25.000Z | 2020-09-21T05:52:25.000Z | bindings/python/tests/bindings/test_decoders.py | joverwey/tokenizers | da0a5172ef14a94c0ad0ef47600305e471a87efd | [
"Apache-2.0"
] | 2 | 2020-02-22T00:50:38.000Z | 2020-08-23T19:54:35.000Z | import pytest
import pickle
from tokenizers.decoders import Decoder, ByteLevel, WordPiece, Metaspace, BPEDecoder
class TestByteLevel:
def test_instantiate(self):
assert ByteLevel() is not None
assert isinstance(ByteLevel(), Decoder)
assert isinstance(ByteLevel(), ByteLevel)
assert... | 39.56338 | 92 | 0.619082 | 319 | 2,809 | 5.376176 | 0.184953 | 0.111953 | 0.04723 | 0.069971 | 0.481633 | 0.233819 | 0.11137 | 0.11137 | 0.11137 | 0.11137 | 0 | 0 | 0.227483 | 2,809 | 70 | 93 | 40.128571 | 0.788479 | 0 | 0 | 0.140351 | 0 | 0 | 0.107868 | 0 | 0 | 0 | 0 | 0 | 0.526316 | 1 | 0.140351 | false | 0 | 0.052632 | 0 | 0.263158 | 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 |
d54497932df5120382ecee0e61ad75a4314e8e16 | 2,906 | py | Python | myMods/apiUtils.py | ltrainstg/dockerPractice | 6cc028f59528f95748160ff83acf47bcaad15e3c | [
"MIT"
] | null | null | null | myMods/apiUtils.py | ltrainstg/dockerPractice | 6cc028f59528f95748160ff83acf47bcaad15e3c | [
"MIT"
] | null | null | null | myMods/apiUtils.py | ltrainstg/dockerPractice | 6cc028f59528f95748160ff83acf47bcaad15e3c | [
"MIT"
] | null | null | null | import requests
import keyring
import json
from requests.auth import HTTPBasicAuth
import requests
from requests.structures import CaseInsensitiveDict
def getAPIDat(api_url, user, password):
#password = keyring.get_password('doctorevidence', user )
try:
response = requests.get(api_url,
... | 25.946429 | 74 | 0.448383 | 248 | 2,906 | 5.169355 | 0.471774 | 0.015601 | 0.018721 | 0.026521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008323 | 0.421198 | 2,906 | 111 | 75 | 26.18018 | 0.753864 | 0.095664 | 0 | 0.180556 | 0 | 0 | 0.439933 | 0.009209 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.055556 | 0.083333 | 0 | 0.138889 | 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 |
d546581ab0d5233bda29d2892d97c25fff388c8f | 277 | py | Python | coding_test_with_python/greedy/t5.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | coding_test_with_python/greedy/t5.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | coding_test_with_python/greedy/t5.py | mrbartrns/swacademy_structure | 778f0546030385237c383d81ec37d5bd9ed1272d | [
"MIT"
] | null | null | null | import sys
sys.stdin = open('../input.txt', 'r')
si = sys.stdin.readline
n, m = map(int, si().split())
arr = list(map(int, si().split()))
dp = [0] * 11
answer = 0
for i in range(n):
dp[arr[i]] += 1
for i in range(m):
n -= dp[i]
answer += dp[i] * n
print(answer)
| 16.294118 | 37 | 0.545126 | 52 | 277 | 2.903846 | 0.5 | 0.10596 | 0.10596 | 0.172185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023148 | 0.220217 | 277 | 16 | 38 | 17.3125 | 0.675926 | 0 | 0 | 0 | 0 | 0 | 0.046931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5486f6534721ae038daae65e91fee90c03165f8 | 1,658 | py | Python | scripts/gen_posts.py | fadikar/gurukul_blogsite | a58c29ec843ad43aff8a6d293404c0c304ff1d01 | [
"MIT"
] | null | null | null | scripts/gen_posts.py | fadikar/gurukul_blogsite | a58c29ec843ad43aff8a6d293404c0c304ff1d01 | [
"MIT"
] | null | null | null | scripts/gen_posts.py | fadikar/gurukul_blogsite | a58c29ec843ad43aff8a6d293404c0c304ff1d01 | [
"MIT"
] | null | null | null | ## This script contains useful functions to generate a html page given a
## blog post txt file. It also creates meta data for the blog posts to be
## used to make summaries.
## Input should be a txt file of specific format
def read_file(infile):
metadata = []
post = []
with open(infile, 'r') as f:
... | 29.087719 | 74 | 0.622437 | 235 | 1,658 | 4.33617 | 0.33617 | 0.029441 | 0.063788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016103 | 0.250905 | 1,658 | 57 | 75 | 29.087719 | 0.804348 | 0.165862 | 0 | 0 | 1 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0 | 0 | 0.351351 | 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 |
d54de71cda80d1623fbf28875e06868d7f151579 | 3,414 | py | Python | cvqa-r-nouns/dataset/editable-dataset/editableQuestionDataset.py | andeeptoor/qpr-qe-datasets | 4359af17e7df335abe38a18d046f94f9cef57277 | [
"Apache-2.0"
] | null | null | null | cvqa-r-nouns/dataset/editable-dataset/editableQuestionDataset.py | andeeptoor/qpr-qe-datasets | 4359af17e7df335abe38a18d046f94f9cef57277 | [
"Apache-2.0"
] | null | null | null | cvqa-r-nouns/dataset/editable-dataset/editableQuestionDataset.py | andeeptoor/qpr-qe-datasets | 4359af17e7df335abe38a18d046f94f9cef57277 | [
"Apache-2.0"
] | 2 | 2018-06-09T01:03:05.000Z | 2021-02-05T11:45:06.000Z | import pandas as pd
import json
import os
import sys
import re
import random
from gensim import models
reload(sys)
sys.setdefaultencoding('utf8')
pd.options.mode.chained_assignment = None
def stat(output):
sys.stdout.write("\r" + output)
sys.stdout.flush()
def readJson(filename):
print "Reading [%s]..." % (fil... | 30.756757 | 103 | 0.720269 | 420 | 3,414 | 5.833333 | 0.364286 | 0.004898 | 0.017143 | 0.022041 | 0.098367 | 0.070612 | 0.070612 | 0.070612 | 0.070612 | 0.070612 | 0 | 0.010084 | 0.128588 | 3,414 | 111 | 104 | 30.756757 | 0.813445 | 0.044523 | 0 | 0.072289 | 0 | 0 | 0.182878 | 0.096655 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084337 | null | null | 0.072289 | 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 |
d5524f1b35f0f871709beb95a7482e13027c9b6b | 1,111 | py | Python | test/test_mac_and_cheese.py | rlorigro/dining_hall_notifier | b8f8360a3515cf1b7ad1bce51df3965a76455b75 | [
"MIT"
] | 1 | 2019-07-07T23:08:36.000Z | 2019-07-07T23:08:36.000Z | test/test_mac_and_cheese.py | rlorigro/dining_hall_notifier | b8f8360a3515cf1b7ad1bce51df3965a76455b75 | [
"MIT"
] | 1 | 2019-05-31T21:31:54.000Z | 2019-06-07T22:03:18.000Z | test/test_mac_and_cheese.py | rlorigro/dining_hall_notifier | b8f8360a3515cf1b7ad1bce51df3965a76455b75 | [
"MIT"
] | 1 | 2019-05-28T20:59:51.000Z | 2019-05-28T20:59:51.000Z | import sys
import os
sys.path.append(os.path.dirname(sys.path[0]))
from handlers.MenuParserV2 import MenuParser
from modules.find_good_food import find_good_food
def main():
script_directory = os.path.dirname(os.path.realpath(__file__))
html_directory = os.path.join(script_directory, "pages")
html_path =... | 27.775 | 92 | 0.69577 | 156 | 1,111 | 4.673077 | 0.371795 | 0.065844 | 0.049383 | 0.043896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002205 | 0.183618 | 1,111 | 39 | 93 | 28.487179 | 0.801544 | 0 | 0 | 0 | 0 | 0 | 0.192619 | 0.028803 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.037037 | false | 0.074074 | 0.148148 | 0 | 0.185185 | 0.185185 | 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 |
d55357a3ef77f6ebc12e8665ec774760c0fc62f7 | 12,765 | py | Python | steam/ext/csgo/protobufs/gcsdk.py | Gobot1234/steam-ext-csgo | 3b0d0a49e8009afbd520607a979e3f4a86603bb5 | [
"MIT"
] | 1 | 2021-08-25T07:23:42.000Z | 2021-08-25T07:23:42.000Z | steam/ext/csgo/protobufs/gcsdk.py | Gobot1234/steam-ext-csgo | 3b0d0a49e8009afbd520607a979e3f4a86603bb5 | [
"MIT"
] | 5 | 2021-01-30T20:49:43.000Z | 2022-02-20T22:51:06.000Z | steam/ext/csgo/protobufs/gcsdk.py | Gobot1234/steam-ext-csgo | 3b0d0a49e8009afbd520607a979e3f4a86603bb5 | [
"MIT"
] | 4 | 2021-12-11T18:23:17.000Z | 2022-02-03T18:54:33.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: gcsdk_gcmessages.proto
# plugin: python-betterproto
from dataclasses import dataclass
from typing import List
import betterproto
class GcClientLauncherType(betterproto.Enum):
Default = 0
PerfectWorld = 1
SteamChina = 2
class GcConne... | 35.856742 | 119 | 0.778222 | 1,459 | 12,765 | 6.631254 | 0.176148 | 0.102739 | 0.076072 | 0.09509 | 0.582739 | 0.448786 | 0.406202 | 0.390801 | 0.285995 | 0.259328 | 0 | 0.027456 | 0.121191 | 12,765 | 355 | 120 | 35.957746 | 0.834997 | 0.009009 | 0 | 0.34252 | 1 | 0 | 0.047604 | 0.038589 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015748 | 0.011811 | 0 | 0.795276 | 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 |
d559406093550a2adcf9f2df30dc7c5daebdfaa6 | 1,380 | py | Python | inputs/airports/extract_taiwan_airports_raw.py | bearlin/tool_get_famous_scenery_station_airport_and_their_scws_tokens | 210adf69118065e01d7ae50e57b7c773a1a1bd65 | [
"MIT"
] | null | null | null | inputs/airports/extract_taiwan_airports_raw.py | bearlin/tool_get_famous_scenery_station_airport_and_their_scws_tokens | 210adf69118065e01d7ae50e57b7c773a1a1bd65 | [
"MIT"
] | null | null | null | inputs/airports/extract_taiwan_airports_raw.py | bearlin/tool_get_famous_scenery_station_airport_and_their_scws_tokens | 210adf69118065e01d7ae50e57b7c773a1a1bd65 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from sys import argv
import codecs
print "Start."
script, filename = argv
print "script: %r." % script
print "filename: %r." % filename
print "Opening the rawfile..."
rawfile = codecs.open(filename, 'r', encoding='utf-8')
dumpfile = codecs.open(filename + ".dump", 'w', encoding='utf-8')
# Processi... | 22.622951 | 65 | 0.662319 | 170 | 1,380 | 5.376471 | 0.411765 | 0.019694 | 0.039387 | 0.035011 | 0.142232 | 0.091904 | 0 | 0 | 0 | 0 | 0 | 0.02139 | 0.186957 | 1,380 | 60 | 66 | 23 | 0.793226 | 0.215942 | 0 | 0.166667 | 0 | 0 | 0.116713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d55f6c1cf11dea9e86f0cd6dc3fb06782d2b768f | 384 | py | Python | quiz/migrations/0009_course_status.py | Chetan-Chinchulkar/onlinequiz | 93fdbe8e7d3098fea8363e436c46e42158a2979c | [
"MIT"
] | null | null | null | quiz/migrations/0009_course_status.py | Chetan-Chinchulkar/onlinequiz | 93fdbe8e7d3098fea8363e436c46e42158a2979c | [
"MIT"
] | null | null | null | quiz/migrations/0009_course_status.py | Chetan-Chinchulkar/onlinequiz | 93fdbe8e7d3098fea8363e436c46e42158a2979c | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2021-10-09 10:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quiz', '0008_auto_20210802_1446'),
]
operations = [
migrations.AddField(
model_name='course',
name='status',
... | 20.210526 | 53 | 0.596354 | 41 | 384 | 5.487805 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113553 | 0.289063 | 384 | 18 | 54 | 21.333333 | 0.710623 | 0.117188 | 0 | 0 | 1 | 0 | 0.115727 | 0.068249 | 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 |
d567f39aca7c6c339cace9af127dd1426ad45e64 | 347 | py | Python | shipmodul.py | cricalix/nmea-logger | 8eb975256eb626c9fcdbde9daf30e02107bcaeb9 | [
"MIT"
] | null | null | null | shipmodul.py | cricalix/nmea-logger | 8eb975256eb626c9fcdbde9daf30e02107bcaeb9 | [
"MIT"
] | null | null | null | shipmodul.py | cricalix/nmea-logger | 8eb975256eb626c9fcdbde9daf30e02107bcaeb9 | [
"MIT"
] | null | null | null | from micropython import const
"""
ShipModul 3Wi edition uses a defined SSID and password. These will
need to be changed appropriately before installing boot.py on the
microcontroller.
http://www.shipmodul.com/downloads/manuals/MiniPlex-3_EN.pdf
"""
SSID = const("MiniPlex")
PASS = const("MiniPlex")
IP = const("10.0.0... | 23.133333 | 66 | 0.752161 | 52 | 347 | 5 | 0.826923 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.126801 | 347 | 14 | 67 | 24.785714 | 0.818482 | 0 | 0 | 0 | 0 | 0 | 0.226563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d56c1357550ed65d8af049fc7c1d20cb7c3c0792 | 4,407 | py | Python | Server and Client/oldstuff/server.py | SuperboGiuseppe/dncs_lab2 | c340169f3133c4fa1574f5be82268e2958e57975 | [
"MIT"
] | 2 | 2021-01-24T11:19:04.000Z | 2021-01-24T16:36:41.000Z | Server and Client/oldstuff/server.py | SuperboGiuseppe/dncs_lab2 | c340169f3133c4fa1574f5be82268e2958e57975 | [
"MIT"
] | null | null | null | Server and Client/oldstuff/server.py | SuperboGiuseppe/dncs_lab2 | c340169f3133c4fa1574f5be82268e2958e57975 | [
"MIT"
] | 3 | 2021-01-24T11:16:51.000Z | 2021-03-20T10:18:00.000Z | import socket
import threading
#those imports where added by luca
from matplotlib import pyplot as plt
import os
from os import path
from PyQt5 import QtWidgets, QtCore
from pyqtgraph import PlotWidget, plot
import pyqtgraph as pg
import sys
HEADER = 64 # It's header length, it can be change.
PORT = 5050 # port n... | 35.540323 | 172 | 0.675516 | 667 | 4,407 | 4.412294 | 0.34033 | 0.013592 | 0.011213 | 0.008835 | 0.060483 | 0.060483 | 0.023785 | 0.023785 | 0.023785 | 0 | 0 | 0.012009 | 0.225323 | 4,407 | 123 | 173 | 35.829268 | 0.850029 | 0.37622 | 0 | 0 | 0 | 0 | 0.116176 | 0.008824 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116883 | null | null | 0.064935 | 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 |
d56df05f7ec66fe06ec7dcf0d63a5ccecf269ba3 | 554 | py | Python | solutions/euler10.py | monchote/euler | 304fa1f9e92a7027d0309184d8aaa705cae9408b | [
"MIT"
] | null | null | null | solutions/euler10.py | monchote/euler | 304fa1f9e92a7027d0309184d8aaa705cae9408b | [
"MIT"
] | null | null | null | solutions/euler10.py | monchote/euler | 304fa1f9e92a7027d0309184d8aaa705cae9408b | [
"MIT"
] | null | null | null | #!/usr/bin/python
import math
def isPrime(n):
if n==1:
return False
elif n < 4:
return True
elif n % 2 == 0:
return False
elif n < 9:
return True
elif n % 3 == 0:
return False
else:
r = int(math.floor(math.sqrt(n)))
for f in range(5, r+1, 6):
if n % f == 0:
return False
if n % (f+2) == ... | 14.205128 | 42 | 0.575812 | 98 | 554 | 3.255102 | 0.377551 | 0.172414 | 0.15047 | 0.100313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070886 | 0.287004 | 554 | 39 | 43 | 14.205128 | 0.736709 | 0.102888 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d56f88d43de645675a0c122c24fa97aef631f242 | 6,760 | py | Python | hacheck/mysql.py | fakeNetflix/uber-repo-hacheck | 16d9ce0e411371db34415497fac2f5c13c07d709 | [
"MIT"
] | 90 | 2015-01-14T05:01:05.000Z | 2020-09-21T17:23:44.000Z | hacheck/mysql.py | fakeNetflix/uber-repo-hacheck | 16d9ce0e411371db34415497fac2f5c13c07d709 | [
"MIT"
] | 28 | 2015-01-02T21:25:14.000Z | 2019-06-27T13:09:22.000Z | hacheck/mysql.py | fakeNetflix/uber-repo-hacheck | 16d9ce0e411371db34415497fac2f5c13c07d709 | [
"MIT"
] | 18 | 2015-04-10T21:12:58.000Z | 2021-02-10T18:17:19.000Z | """clean-room implementation of a mysql client supporting both *connect* and *quit* operations"""
import datetime
import socket
import struct
import sys
import time
from hashlib import sha1
from . import compat
import tornado.gen
import tornado.iostream
def _sxor(lhs, rhs):
if sys.version_info > (3, 0):
... | 35.767196 | 117 | 0.605769 | 841 | 6,760 | 4.682521 | 0.234245 | 0.063992 | 0.024378 | 0.022346 | 0.121889 | 0.076689 | 0.061453 | 0.008634 | 0 | 0 | 0 | 0.028813 | 0.281213 | 6,760 | 188 | 118 | 35.957447 | 0.781642 | 0.028698 | 0 | 0.093168 | 0 | 0 | 0.018609 | 0.003508 | 0 | 0 | 0.01144 | 0 | 0.012422 | 1 | 0.086957 | false | 0.055901 | 0.055901 | 0.018634 | 0.223602 | 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 |
d5721217b5682ae96fda8af736920b58fc7f9897 | 3,785 | py | Python | verify/inverted-done/prob.py | zhaohj2017/FAoC-tool | 9931a87a4831d45f4109af2cd1f990d4b30fc2dd | [
"BSD-3-Clause"
] | null | null | null | verify/inverted-done/prob.py | zhaohj2017/FAoC-tool | 9931a87a4831d45f4109af2cd1f990d4b30fc2dd | [
"BSD-3-Clause"
] | null | null | null | verify/inverted-done/prob.py | zhaohj2017/FAoC-tool | 9931a87a4831d45f4109af2cd1f990d4b30fc2dd | [
"BSD-3-Clause"
] | null | null | null | import torch
import superp
import math
############################################
# set default data type to double
############################################
torch.set_default_dtype(torch.float64)
torch.set_default_tensor_type(torch.DoubleTensor)
# torch.set_default_dtype(torch.float32)
# torch.set_default_tensor... | 43.011364 | 184 | 0.5107 | 551 | 3,785 | 3.399274 | 0.172414 | 0.164442 | 0.211426 | 0.14095 | 0.561666 | 0.514682 | 0.482648 | 0.482648 | 0.482648 | 0.448478 | 0 | 0.099688 | 0.236724 | 3,785 | 88 | 185 | 43.011364 | 0.548633 | 0.180449 | 0 | 0.132075 | 0 | 0 | 0.008059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.056604 | 0.056604 | 0.301887 | 0.018868 | 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 |
d583bc57269d052b99139de1fe4dfa61e495d5cf | 2,375 | py | Python | event/migrations/0007_auto_20190802_1052.py | oriolclosa/kthack-app | 50850686ee994d2dfe463bd3fda7d7cd71d94d13 | [
"MIT"
] | 1 | 2019-07-30T08:16:55.000Z | 2019-07-30T08:16:55.000Z | event/migrations/0007_auto_20190802_1052.py | oriolclosa/kthack-app | 50850686ee994d2dfe463bd3fda7d7cd71d94d13 | [
"MIT"
] | 15 | 2019-08-04T12:07:31.000Z | 2022-02-10T09:41:55.000Z | event/migrations/0007_auto_20190802_1052.py | oriolclosa/kthack-app | 50850686ee994d2dfe463bd3fda7d7cd71d94d13 | [
"MIT"
] | 1 | 2019-08-20T17:28:18.000Z | 2019-08-20T17:28:18.000Z | # Generated by Django 2.2.3 on 2019-08-02 08:52
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [("user", "0004_auto_20190802_1046"), ("event", "0006_subscriber")]
operations = [
migrations.AlterModelOptions... | 32.534247 | 86 | 0.401684 | 160 | 2,375 | 5.85 | 0.53125 | 0.034188 | 0.044872 | 0.070513 | 0.252137 | 0.200855 | 0.117521 | 0.117521 | 0.117521 | 0.117521 | 0 | 0.041356 | 0.490947 | 2,375 | 72 | 87 | 32.986111 | 0.732837 | 0.018947 | 0 | 0.227273 | 1 | 0 | 0.15378 | 0.00988 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5881efaf104dec968b58ab0df009379358f6aa1 | 13,059 | py | Python | src/model/mma.py | dtak/batch-apprenticeship-learning | 6af26b3ebc322a9a38af37790e313cf4f409f48c | [
"Apache-2.0"
] | 2 | 2020-10-14T17:18:05.000Z | 2021-03-16T08:26:32.000Z | src/model/mma.py | dtak/batch-apprenticeship-learning | 6af26b3ebc322a9a38af37790e313cf4f409f48c | [
"Apache-2.0"
] | 1 | 2021-03-16T06:22:59.000Z | 2021-04-01T08:05:37.000Z | src/model/mma.py | dtak/batch-apprenticeship-learning | 6af26b3ebc322a9a38af37790e313cf4f409f48c | [
"Apache-2.0"
] | null | null | null | import os
import time
import logging
import itertools
from multiprocessing import Pool
import gym
import cvxpy as cvx
import numpy as np
from numpy.linalg import norm
from tqdm import tqdm
from core.policy import LinearQ2, MixturePolicy
from model.lstd import LSPI
from model.dqn import DQNSepsis
from core.basis impo... | 28.327549 | 122 | 0.544988 | 1,623 | 13,059 | 4.109057 | 0.162046 | 0.026091 | 0.009447 | 0.011246 | 0.239916 | 0.177688 | 0.159994 | 0.140801 | 0.103314 | 0.103314 | 0 | 0.011148 | 0.347423 | 13,059 | 460 | 123 | 28.38913 | 0.771415 | 0.126273 | 0 | 0.142857 | 0 | 0 | 0.050143 | 0 | 0 | 0 | 0 | 0.013043 | 0.003663 | 1 | 0.025641 | false | 0 | 0.062271 | 0 | 0.113553 | 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 |
d58915481b01ccf0939d4ae2d440ee5b2fa6af4f | 4,480 | py | Python | src/testdata/random_data_dense/dense_ad_random_batch_test.py | suraj-jayakumar/lstm-rnn-ad | 381c1679e3cf876208dbb7a7c0fdd7a0b0036982 | [
"Apache-2.0"
] | 8 | 2017-03-22T08:22:14.000Z | 2020-08-05T11:13:10.000Z | src/testdata/random_data_dense/dense_ad_random_batch_test.py | suraj-jayakumar/lstm-rnn-ad | 381c1679e3cf876208dbb7a7c0fdd7a0b0036982 | [
"Apache-2.0"
] | null | null | null | src/testdata/random_data_dense/dense_ad_random_batch_test.py | suraj-jayakumar/lstm-rnn-ad | 381c1679e3cf876208dbb7a7c0fdd7a0b0036982 | [
"Apache-2.0"
] | 2 | 2017-07-22T12:43:20.000Z | 2019-07-05T07:11:50.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 23 14:28:22 2016
@author: suraj
"""
import numpy as np
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers.core import Dense
from keras.layers.recurrent import LSTM
from keras.models import Graph
from keras.models import model_from_json
f... | 24.751381 | 78 | 0.626786 | 725 | 4,480 | 3.736552 | 0.262069 | 0.067183 | 0.036176 | 0.017719 | 0.158361 | 0.107789 | 0.063492 | 0.050203 | 0.030269 | 0.030269 | 0 | 0.06083 | 0.214732 | 4,480 | 180 | 79 | 24.888889 | 0.70921 | 0.081696 | 0 | 0.028986 | 0 | 0 | 0.083091 | 0.029082 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.144928 | null | null | 0.014493 | 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 |
d58cdf40980ee6ec36b68e9dc47e9520eef1aaa3 | 3,055 | py | Python | ga_2048/NNBot.py | Kshitij68/AI-2048 | bf7ac6c653ff17b611473f1959ae639ab9bad8d3 | [
"MIT"
] | null | null | null | ga_2048/NNBot.py | Kshitij68/AI-2048 | bf7ac6c653ff17b611473f1959ae639ab9bad8d3 | [
"MIT"
] | null | null | null | ga_2048/NNBot.py | Kshitij68/AI-2048 | bf7ac6c653ff17b611473f1959ae639ab9bad8d3 | [
"MIT"
] | null | null | null | import random
import numpy as np
from ga_2048.utils import get_logger
import pygame
class NNBot:
def __init__(self, name, parameters=None, disable_logs=True):
self.name = name
self.mutation_chance = 0.03
if parameters is None:
self.network = None
else:
self... | 39.675325 | 112 | 0.577087 | 416 | 3,055 | 4.084135 | 0.257212 | 0.090642 | 0.090642 | 0.07063 | 0.257799 | 0.23249 | 0.115362 | 0.115362 | 0.05415 | 0.05415 | 0 | 0.030541 | 0.292635 | 3,055 | 76 | 113 | 40.197368 | 0.755669 | 0.016367 | 0 | 0.032787 | 0 | 0 | 0.071928 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.065574 | false | 0 | 0.065574 | 0 | 0.180328 | 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 |
d58d24dffa6629dfbd80f835195fc0303a200681 | 1,095 | py | Python | setup.py | suyanlong/study_python | 148b01f610b099046200c86c1da6bc02b9a7922b | [
"Apache-2.0"
] | 1 | 2017-11-16T02:20:46.000Z | 2017-11-16T02:20:46.000Z | setup.py | suyanlong/study_python | 148b01f610b099046200c86c1da6bc02b9a7922b | [
"Apache-2.0"
] | null | null | null | setup.py | suyanlong/study_python | 148b01f610b099046200c86c1da6bc02b9a7922b | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python2
# -*- coding:utf-8 -*-
from setuptools import setup
setup(
name = 'hello',
version = '0.1',
py_modules = ['hello'],
install_requires = [
'Click',
],
entry_points = '''
[console_scripts]
hello=hello:cli
''',
)
# pip 的命令的使用说明书。
# https://pip.... | 23.297872 | 79 | 0.673973 | 150 | 1,095 | 4.86 | 0.533333 | 0.05487 | 0.071331 | 0.074074 | 0.21262 | 0.21262 | 0.135802 | 0 | 0 | 0 | 0 | 0.022124 | 0.174429 | 1,095 | 46 | 80 | 23.804348 | 0.784292 | 0.733333 | 0 | 0 | 0 | 0 | 0.269373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
d58ea093b2d34ec6b448de2316910cadd5f98b11 | 15,131 | py | Python | pvdn/bboxes.py | larsOhne/pvdn | 0b6a8d0463909009152973f2edddbe49a054d4a2 | [
"CC0-1.0"
] | 13 | 2021-01-02T06:08:01.000Z | 2021-12-15T17:23:19.000Z | pvdn/bboxes.py | larsOhne/pvdn | 0b6a8d0463909009152973f2edddbe49a054d4a2 | [
"CC0-1.0"
] | 2 | 2021-01-28T07:53:28.000Z | 2021-07-29T15:50:40.000Z | pvdn/bboxes.py | larsOhne/pvdn | 0b6a8d0463909009152973f2edddbe49a054d4a2 | [
"CC0-1.0"
] | 1 | 2021-02-11T10:58:39.000Z | 2021-02-11T10:58:39.000Z | from pvdn import PVDNDataset
from pvdn.detection.model.proposals import DynamicBlobDetector, Detector
from pvdn.detection.utils.misc import rescale_boxes
import os
import shutil
import json
import numpy as np
import cv2
import matplotlib.pyplot as plt
from tqdm import tqdm
class BoundingBoxDataset(PVDNDataset):
... | 42.265363 | 97 | 0.56295 | 1,837 | 15,131 | 4.47632 | 0.203048 | 0.047428 | 0.025538 | 0.016174 | 0.171592 | 0.136568 | 0.092059 | 0.065548 | 0.052536 | 0.052536 | 0 | 0.012872 | 0.347961 | 15,131 | 357 | 98 | 42.383754 | 0.820596 | 0.233098 | 0 | 0.097222 | 0 | 0 | 0.052894 | 0.00634 | 0 | 0 | 0 | 0.016807 | 0 | 1 | 0.055556 | false | 0.00463 | 0.046296 | 0.00463 | 0.143519 | 0.013889 | 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 |
d592c238fb9be9104021aef3cfcd29e63d7e5be3 | 542 | py | Python | 2021/02/01.py | sci-c0/advent-of-code | 3dc228500bc9aaaa0675bb32737aab2853097a3f | [
"BSD-3-Clause"
] | null | null | null | 2021/02/01.py | sci-c0/advent-of-code | 3dc228500bc9aaaa0675bb32737aab2853097a3f | [
"BSD-3-Clause"
] | null | null | null | 2021/02/01.py | sci-c0/advent-of-code | 3dc228500bc9aaaa0675bb32737aab2853097a3f | [
"BSD-3-Clause"
] | null | null | null |
def final_pos():
x = y = 0
with open("input.txt") as inp:
while True:
instr = inp.readline()
try:
cmd, val = instr.split()
except ValueError:
break
else:
if cmd == "forward":
x += int(val... | 23.565217 | 40 | 0.370849 | 55 | 542 | 3.472727 | 0.618182 | 0.094241 | 0.104712 | 0.136126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003745 | 0.50738 | 542 | 23 | 41 | 23.565217 | 0.71161 | 0 | 0 | 0 | 0 | 0 | 0.088561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.052632 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5996bbec7028a20fcca1c5802a827a062fd1f4e | 1,741 | py | Python | src/permission/conf.py | dkopitsa/django-permission | 0319ea3bf0993ca1bd7232e4d60c4b8ec635787d | [
"MIT"
] | 234 | 2015-01-05T17:09:08.000Z | 2021-11-15T09:52:43.000Z | src/permission/conf.py | dkopitsa/django-permission | 0319ea3bf0993ca1bd7232e4d60c4b8ec635787d | [
"MIT"
] | 54 | 2015-02-13T08:06:32.000Z | 2021-05-19T14:07:03.000Z | src/permission/conf.py | dkopitsa/django-permission | 0319ea3bf0993ca1bd7232e4d60c4b8ec635787d | [
"MIT"
] | 35 | 2015-04-13T09:10:38.000Z | 2022-02-15T01:43:03.000Z | # coding=utf-8
"""
django-permission application configure
"""
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from appconf import AppConf
from permission.handlers import LogicalPermissionHandler
__all__ = ('settings',)
class PermissionConf(AppConf):
DEFAULT_PERMISSION_H... | 30.54386 | 79 | 0.780011 | 194 | 1,741 | 6.592784 | 0.324742 | 0.098514 | 0.147772 | 0.097733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000684 | 0.160253 | 1,741 | 56 | 80 | 31.089286 | 0.874145 | 0.030442 | 0 | 0 | 0 | 0 | 0.066004 | 0.031228 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121212 | 0 | 0.969697 | 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 |
d599d95c6ffa930a8b7de19fb1127c1d677bc0f8 | 1,283 | py | Python | honda_controlling_scripts/scripts/replace_steering.py | uincore/civic-hack | 8e79e43a51f7325f867e6d4535caedb774a340ee | [
"MIT"
] | 41 | 2018-03-17T14:35:03.000Z | 2022-03-06T11:13:04.000Z | honda_controlling_scripts/scripts/replace_steering.py | uincore/civic-hack | 8e79e43a51f7325f867e6d4535caedb774a340ee | [
"MIT"
] | 1 | 2018-07-16T15:19:22.000Z | 2018-07-16T15:19:22.000Z | honda_controlling_scripts/scripts/replace_steering.py | andrewraharjo/civic-panda-ros | aeb5e60a9340985bec5dcfd4a0237a4bd81a9246 | [
"MIT"
] | 15 | 2018-03-19T15:13:48.000Z | 2021-07-26T20:05:42.000Z | #!/usr/bin/env python
from accum_msgs_tools import replace_messages_by_id
from cPickle import load, dump
import sys
from honda_create_msgs import create_steering_control
if __name__ == '__main__':
if len(sys.argv) < 2:
print("Usage: ")
print(sys.argv[0] + " accum.pickle")
exit(0)
pickl... | 38.878788 | 88 | 0.715511 | 170 | 1,283 | 4.994118 | 0.323529 | 0.122497 | 0.070671 | 0.091873 | 0.075383 | 0.075383 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.169135 | 1,283 | 32 | 89 | 40.09375 | 0.78424 | 0.015588 | 0 | 0 | 0 | 0 | 0.158479 | 0.021395 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.230769 | 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 |
d59ef38cd6bf1e9f756f1a74b4a70c98e815e507 | 2,021 | py | Python | datadog_checks_downloader/datadog_checks/downloader/parameters.py | glasser/integrations-core | 1dd515d49b1690a1369ee5195713605b1b072b1f | [
"BSD-3-Clause"
] | 2 | 2019-05-28T03:48:29.000Z | 2019-07-05T07:05:58.000Z | datadog_checks_downloader/datadog_checks/downloader/parameters.py | glasser/integrations-core | 1dd515d49b1690a1369ee5195713605b1b072b1f | [
"BSD-3-Clause"
] | 4 | 2019-07-03T02:53:19.000Z | 2019-07-10T14:52:14.000Z | datadog_checks_downloader/datadog_checks/downloader/parameters.py | glasser/integrations-core | 1dd515d49b1690a1369ee5195713605b1b072b1f | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2019
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
"""
A module with a function that substitutes parameters for
in-toto inspections. The function is expected to be called
'substitute', and takes one parameter, target_relpath, that specifies
the relative target pat... | 42.104167 | 87 | 0.754577 | 275 | 2,021 | 5.334545 | 0.421818 | 0.163599 | 0.171779 | 0.02863 | 0.230402 | 0.096796 | 0.046353 | 0.046353 | 0 | 0 | 0 | 0.006635 | 0.179614 | 2,021 | 47 | 88 | 43 | 0.878166 | 0.481445 | 0 | 0 | 0 | 0 | 0.171678 | 0.071775 | 0 | 0 | 0 | 0.021277 | 0.047619 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.190476 | 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 |
d5a80b0c15978281f81187d1920dceb589c354bd | 346 | py | Python | setup.py | t-mertz/easymp | 2afd0dacc58dd71b74d34150115018b0ec5f49d7 | [
"MIT"
] | null | null | null | setup.py | t-mertz/easymp | 2afd0dacc58dd71b74d34150115018b0ec5f49d7 | [
"MIT"
] | null | null | null | setup.py | t-mertz/easymp | 2afd0dacc58dd71b74d34150115018b0ec5f49d7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
"""
try:
import progress
except ImportError:
print("Could not import progress. Install progress first")
"""
setup(
name='easymp',
version='0.13',
author='Thomas Mertz',
url='thomasmertz.eu',
license='GNU GPL',
py_modules=['easymp', 'mybuffer', 'myqueue', ... | 18.210526 | 69 | 0.696532 | 45 | 346 | 5.311111 | 0.866667 | 0.117155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009934 | 0.127168 | 346 | 18 | 70 | 19.222222 | 0.781457 | 0.057803 | 0 | 0 | 0 | 0 | 0.365741 | 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 |
d5ae5e8d49d61ab56028f40c23f5d7f609872823 | 1,549 | py | Python | python/trees/mirror.py | hs634/algorithms | e411d747eb27a1c784605e44111de2703f6dde4d | [
"MIT"
] | null | null | null | python/trees/mirror.py | hs634/algorithms | e411d747eb27a1c784605e44111de2703f6dde4d | [
"MIT"
] | null | null | null | python/trees/mirror.py | hs634/algorithms | e411d747eb27a1c784605e44111de2703f6dde4d | [
"MIT"
] | null | null | null | __author__ = 'hs634'
class Node():
def __init__(self, v):
self.val = v
self.left = None
self.right = None
class BinaryTree():
def __init__(self):
self.root = None
def insert(self, root, v):
if not root:
return Node(v)
if v < root.val:
... | 20.653333 | 54 | 0.5694 | 210 | 1,549 | 4.071429 | 0.171429 | 0.178947 | 0.122807 | 0.088889 | 0.338012 | 0.20117 | 0.135673 | 0 | 0 | 0 | 0 | 0.028302 | 0.315688 | 1,549 | 74 | 55 | 20.932432 | 0.778302 | 0 | 0 | 0.163636 | 0 | 0 | 0.010329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.145455 | 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 |
d5aedbe41a8cadacde6aa6991d0ab041e1aed957 | 3,727 | py | Python | python/8.web/2.Django/mysql_demo/userapp/models.py | lotapp/BaseCode | 0255f498e1fe67ed2b3f66c84c96e44ef1f7d320 | [
"Apache-2.0"
] | 25 | 2018-06-13T08:13:44.000Z | 2020-11-19T14:02:11.000Z | python/8.web/2.Django/mysql_demo/userapp/models.py | lotapp/BaseCode | 0255f498e1fe67ed2b3f66c84c96e44ef1f7d320 | [
"Apache-2.0"
] | null | null | null | python/8.web/2.Django/mysql_demo/userapp/models.py | lotapp/BaseCode | 0255f498e1fe67ed2b3f66c84c96e44ef1f7d320 | [
"Apache-2.0"
] | 13 | 2018-06-13T08:13:38.000Z | 2022-01-06T06:45:07.000Z | from django.db import models
import uuid
# editable=False
# 快递公司表(一)
# https://www.kuaidi100.com/query?type=&postid=
# https://sp0.baidu.com/9_Q4sjW91Qh3otqbppnN2DJv/pae/channel/data/asyncqury?appid=4001&com=huitongkuaidi&nu=71330102164040
class Express(models.Model):
# 快递编号
ecode = models.CharField(max_leng... | 35.160377 | 122 | 0.718004 | 467 | 3,727 | 5.550321 | 0.353319 | 0.135802 | 0.069444 | 0.080247 | 0.532793 | 0.495756 | 0.495756 | 0.440201 | 0.440201 | 0.440201 | 0 | 0.026914 | 0.162597 | 3,727 | 105 | 123 | 35.495238 | 0.803589 | 0.322511 | 0 | 0.512821 | 0 | 0 | 0.077544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d5af196f11af7bb4275162f70c1fd88b8bb890cd | 866 | py | Python | utils.py | aziznal/luigi-sacco-and-route-encryption | 7e9ebba5572ef58e9f47bca9d443b93d579624d5 | [
"MIT"
] | 1 | 2022-02-24T18:34:36.000Z | 2022-02-24T18:34:36.000Z | utils.py | aziznal/luigi-sacco-and-route-encryption | 7e9ebba5572ef58e9f47bca9d443b93d579624d5 | [
"MIT"
] | null | null | null | utils.py | aziznal/luigi-sacco-and-route-encryption | 7e9ebba5572ef58e9f47bca9d443b93d579624d5 | [
"MIT"
] | null | null | null | from typing import Any, Dict, List, Union
import sys
import os
import json
# This is used to keep paths relative to where the program is unpacked in the temp dir
bundle_dir: str = getattr(
sys,
'_MEIPASS',
os.path.abspath(os.path.dirname(__file__))
)
def get_path_in_bundle_dir(path: str) -> str:
"""... | 21.121951 | 86 | 0.662818 | 134 | 866 | 4.104478 | 0.455224 | 0.072727 | 0.047273 | 0.054545 | 0.134545 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00303 | 0.237875 | 866 | 40 | 87 | 21.65 | 0.830303 | 0.214781 | 0 | 0 | 0 | 0 | 0.012327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.047619 | 0.190476 | 0 | 0.52381 | 0.047619 | 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 |
6339108a74bec47a9156428d5afa7d656179fe57 | 492 | py | Python | Loop-control.py | Shahibur50/ClassWork | 0fb8787668a55b7a722fa9a4920e2ab8fdad0f90 | [
"MIT"
] | 1 | 2021-01-02T17:51:18.000Z | 2021-01-02T17:51:18.000Z | Loop-control.py | Shahibur50/ClassWork | 0fb8787668a55b7a722fa9a4920e2ab8fdad0f90 | [
"MIT"
] | null | null | null | Loop-control.py | Shahibur50/ClassWork | 0fb8787668a55b7a722fa9a4920e2ab8fdad0f90 | [
"MIT"
] | null | null | null | """
Loop control version 1.1.10.20
Copyright (c) 2020 Shahibur Rahaman
Licensed under MIT
"""
# Pass
# Continue
# break
# A runner is practicing in a stadium and the coach is giving orders.
t = 180
for i in range(t, 1, -1):
t = t - 5
if t > 150:
print("Time:", t, "| Do another lap.")
continue
if t > 120:
... | 17.571429 | 77 | 0.632114 | 82 | 492 | 3.792683 | 0.658537 | 0.028939 | 0.096463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065617 | 0.22561 | 492 | 28 | 78 | 17.571429 | 0.750656 | 0.355691 | 0 | 0 | 0 | 0 | 0.387622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0 | 0 | 0 | 0.307692 | 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 |
634259ca623e03ae377cbe4c6807852fd5915b05 | 664 | py | Python | tests/middleware/test_trusted_hosts.py | anze3db/starlite | 965d97620774991bd302a3a227bd3ebe6236ae96 | [
"MIT"
] | null | null | null | tests/middleware/test_trusted_hosts.py | anze3db/starlite | 965d97620774991bd302a3a227bd3ebe6236ae96 | [
"MIT"
] | null | null | null | tests/middleware/test_trusted_hosts.py | anze3db/starlite | 965d97620774991bd302a3a227bd3ebe6236ae96 | [
"MIT"
] | null | null | null | from starlette.middleware.trustedhost import TrustedHostMiddleware
from starlite import create_test_client, get
@get(path="/")
def handler() -> None:
...
def test_trusted_hosts_middleware():
client = create_test_client(route_handlers=[handler], allowed_hosts=["*"])
unpacked_middleware = []
cur = cl... | 30.181818 | 78 | 0.737952 | 73 | 664 | 6.424658 | 0.438356 | 0.102345 | 0.187633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003578 | 0.158133 | 664 | 21 | 79 | 31.619048 | 0.83542 | 0 | 0 | 0 | 0 | 0 | 0.009036 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 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 |
6343f0b3eb94db650cdaf841cae186083f203b19 | 1,695 | py | Python | pages/index.py | stimsonc/Unit2_thermal_predictor | 390ad2c72ce469bf7e484c6c431fcbb1367f7636 | [
"MIT"
] | 1 | 2021-09-01T01:16:50.000Z | 2021-09-01T01:16:50.000Z | pages/index.py | stimsonc/Unit2_thermal_predictor | 390ad2c72ce469bf7e484c6c431fcbb1367f7636 | [
"MIT"
] | null | null | null | pages/index.py | stimsonc/Unit2_thermal_predictor | 390ad2c72ce469bf7e484c6c431fcbb1367f7636 | [
"MIT"
] | null | null | null | # Imports from 3rd party libraries
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.express as px
import pandas as pd
# Imports from this application
from app import app
# 2 column layou... | 36.06383 | 244 | 0.706195 | 250 | 1,695 | 4.736 | 0.62 | 0.033784 | 0.038851 | 0.025338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023134 | 0.20944 | 1,695 | 47 | 245 | 36.06383 | 0.858209 | 0.143363 | 0 | 0 | 0 | 0 | 0.223822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.32 | 0 | 0.32 | 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 |
6349104a9d323927dd0ceb7967a81e90dda6b684 | 676 | py | Python | openapi-core-requests-test.py | yougov/mock-openapi-verifier | b5f5d1878faef3dcab32e15405da9a61161fcb88 | [
"MIT"
] | 1 | 2022-01-07T12:08:11.000Z | 2022-01-07T12:08:11.000Z | openapi-core-requests-test.py | yougov/mock-openapi-verifier | b5f5d1878faef3dcab32e15405da9a61161fcb88 | [
"MIT"
] | null | null | null | openapi-core-requests-test.py | yougov/mock-openapi-verifier | b5f5d1878faef3dcab32e15405da9a61161fcb88 | [
"MIT"
] | 1 | 2022-03-26T07:39:12.000Z | 2022-03-26T07:39:12.000Z | from requests import Request, get
from openapi_core import create_spec
spec_dict = get('https://petstore3.swagger.io/api/v3/openapi.json').json()
spec = create_spec(spec_dict)
requests_request = Request(method='GET', url='https://petstore3.swagger.io/api/v3/pet/1')
from openapi_core.validation.request.validators im... | 28.166667 | 89 | 0.813609 | 89 | 676 | 6.033708 | 0.41573 | 0.061453 | 0.083799 | 0.067039 | 0.104283 | 0.104283 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.090237 | 676 | 23 | 90 | 29.391304 | 0.865041 | 0.073965 | 0 | 0 | 0 | 0 | 0.147673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.076923 | 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 |
634bbed03259ae7125d9e6ba88bdaa00958ffcb6 | 460 | py | Python | lib/movingaverage.py | brdauria/simulation_of_unstable_MaxWeigth_networks | 9664a25fbaf429a0ad6d73654087e3e10d13b246 | [
"Unlicense"
] | null | null | null | lib/movingaverage.py | brdauria/simulation_of_unstable_MaxWeigth_networks | 9664a25fbaf429a0ad6d73654087e3e10d13b246 | [
"Unlicense"
] | null | null | null | lib/movingaverage.py | brdauria/simulation_of_unstable_MaxWeigth_networks | 9664a25fbaf429a0ad6d73654087e3e10d13b246 | [
"Unlicense"
] | null | null | null | from numpy import *
class MovingAverage:
def __init__(self, lag):
self.data = zeros(lag)
self.index = 0
self.lag = lag
self.average = 0
def push(self, n):
self.average += (n - self.data[self.index]) / self.lag
self.data[self.index] = n
self.index += 1... | 19.166667 | 62 | 0.536957 | 60 | 460 | 4.05 | 0.333333 | 0.222222 | 0.135802 | 0.123457 | 0.164609 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013378 | 0.35 | 460 | 23 | 63 | 20 | 0.799331 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0.0625 | 0.4375 | 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 |
634c6062d61da9ead7e9ea371f31d05e70368115 | 2,020 | py | Python | scripts/slave/recipes/chromium_mojo.py | yjbanov/chromium_build | 22e3872f14dbf367cd787caa638f3ac948eac7d7 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipes/chromium_mojo.py | yjbanov/chromium_build | 22e3872f14dbf367cd787caa638f3ac948eac7d7 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipes/chromium_mojo.py | yjbanov/chromium_build | 22e3872f14dbf367cd787caa638f3ac948eac7d7 | [
"BSD-3-Clause"
] | 1 | 2020-07-23T11:05:06.000Z | 2020-07-23T11:05:06.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
from recipe_engine.types import freeze
from recipe_engine import recipe_api
DEPS = [
'depot_tools/bot_update',
'chromium',
'chromium_androi... | 25.25 | 80 | 0.640594 | 232 | 2,020 | 5.362069 | 0.469828 | 0.07074 | 0.048232 | 0.060289 | 0.125402 | 0.125402 | 0.125402 | 0.125402 | 0 | 0 | 0 | 0.003827 | 0.223762 | 2,020 | 79 | 81 | 25.56962 | 0.789541 | 0.114851 | 0 | 0.101695 | 0 | 0 | 0.314077 | 0.062815 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.050847 | false | 0 | 0.050847 | 0 | 0.101695 | 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 |
634d3f613c9aac623792cf04cb33e06df4cf9159 | 1,432 | py | Python | models.py | divyanshu25/ImageQuery | 4d2679fc0f06ead60f6a1e4aeb5693e155186703 | [
"Apache-2.0"
] | null | null | null | models.py | divyanshu25/ImageQuery | 4d2679fc0f06ead60f6a1e4aeb5693e155186703 | [
"Apache-2.0"
] | null | null | null | models.py | divyanshu25/ImageQuery | 4d2679fc0f06ead60f6a1e4aeb5693e155186703 | [
"Apache-2.0"
] | null | null | null | # ================================================================
# Copyright 2020 Image Query Team
# #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# #
# http://www.apache.org/lice... | 38.702703 | 82 | 0.636173 | 189 | 1,432 | 4.756614 | 0.518519 | 0.066741 | 0.055617 | 0.07119 | 0.266963 | 0.266963 | 0.266963 | 0.266963 | 0.266963 | 0.266963 | 0 | 0.024829 | 0.184358 | 1,432 | 36 | 83 | 39.777778 | 0.744863 | 0.610335 | 0 | 0 | 0 | 0 | 0.024528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.636364 | 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 |
6353ea71f9e785f2ea6c1f43e91333e558f6d7e7 | 28,783 | py | Python | fast_rcnn/test.py | GraphaQL-Neo4J/orientation-aware-firearm-detection | aab21adb93890ade7101c504058eb4a0331ab279 | [
"MIT"
] | 38 | 2019-07-28T11:23:35.000Z | 2021-06-05T12:34:31.000Z | fast_rcnn/test.py | engrjavediqbal/orientation-aware-firearm-detection | aab21adb93890ade7101c504058eb4a0331ab279 | [
"MIT"
] | 3 | 2019-10-02T20:41:07.000Z | 2020-03-10T07:16:59.000Z | fast_rcnn/test.py | engrjavediqbal/orientation-aware-firearm-detection | aab21adb93890ade7101c504058eb4a0331ab279 | [
"MIT"
] | 14 | 2019-07-28T11:24:16.000Z | 2021-03-25T12:27:21.000Z | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
# Modified by CVML group @ITU- Punjab
"""Test a Fast R-CNN network on ... | 37.922266 | 284 | 0.628635 | 4,179 | 28,783 | 4.114621 | 0.123475 | 0.038965 | 0.024193 | 0.01547 | 0.549404 | 0.484443 | 0.445129 | 0.423844 | 0.391393 | 0.362256 | 0 | 0.034181 | 0.228538 | 28,783 | 758 | 285 | 37.972296 | 0.740194 | 0.216378 | 0 | 0.274788 | 0 | 0.005666 | 0.042141 | 0.011734 | 0 | 0 | 0 | 0.001319 | 0.005666 | 0 | null | null | 0 | 0.045326 | null | null | 0.011331 | 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.