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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ea931348dc1add94d3976c115411349771183b34 | 6,818 | py | Python | src/mlServiceAPI.py | juliangruendner/ketos_brain_api | 6ec7e01a0996abb03dba090d832a5e1020df4180 | [
"MIT"
] | null | null | null | src/mlServiceAPI.py | juliangruendner/ketos_brain_api | 6ec7e01a0996abb03dba090d832a5e1020df4180 | [
"MIT"
] | null | null | null | src/mlServiceAPI.py | juliangruendner/ketos_brain_api | 6ec7e01a0996abb03dba090d832a5e1020df4180 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_restful_swagger_2 import Api
from resources.userResource import UserListResource, UserResource, UserLoginResource
from resources.imageResource import ImageListResource, ImageResource
from resources.environmentResource import EnvironmentListResource, EnvironmentResource, UserEnvironmen... | 80.211765 | 228 | 0.839689 | 703 | 6,818 | 7.880512 | 0.203414 | 0.045487 | 0.106137 | 0.015162 | 0.143321 | 0.061011 | 0.049819 | 0.023105 | 0.023105 | 0.023105 | 0 | 0.001691 | 0.045908 | 6,818 | 84 | 229 | 81.166667 | 0.849962 | 0.01584 | 0 | 0 | 0 | 0 | 0.288163 | 0.209153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.302632 | 0 | 0.302632 | 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 |
ea983ff474c1e9c14d38adcbbefd09dbeedc005c | 5,529 | py | Python | tests/test_volume.py | mathieuboudreau/electropy | 586f93b076448f39255727ff36afe50edb6255bc | [
"MIT"
] | 5 | 2019-04-06T02:40:34.000Z | 2020-09-09T20:31:56.000Z | tests/test_volume.py | mathieuboudreau/electropy | 586f93b076448f39255727ff36afe50edb6255bc | [
"MIT"
] | 6 | 2019-04-06T02:40:36.000Z | 2021-03-03T17:46:07.000Z | tests/test_volume.py | mathieuboudreau/electropy | 586f93b076448f39255727ff36afe50edb6255bc | [
"MIT"
] | 1 | 2020-04-10T19:22:17.000Z | 2020-04-10T19:22:17.000Z | import unittest
from electropy.charge import Charge
import numpy as np
from electropy import volume
class VolumeTest(unittest.TestCase):
def setUp(self):
self.position_1 = [0, 0, 0]
self.position_2 = [-2, 4, 1]
self.charge = 7e-9
def tearDown(self):
pass
# Potential fun... | 28.06599 | 76 | 0.558691 | 707 | 5,529 | 4.100424 | 0.09901 | 0.034495 | 0.071404 | 0.052432 | 0.772335 | 0.705071 | 0.619524 | 0.591928 | 0.578475 | 0.541911 | 0 | 0.061622 | 0.304395 | 5,529 | 196 | 77 | 28.209184 | 0.692148 | 0.042322 | 0 | 0.556391 | 0 | 0 | 0.001703 | 0 | 0 | 0 | 0 | 0 | 0.067669 | 1 | 0.082707 | false | 0.007519 | 0.030075 | 0 | 0.120301 | 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 |
ea9d55f992bddeb052a30ca5d5fa389dffc4128f | 2,877 | py | Python | auctionCrawler/poxy.py | wd18535470628/PythonCraw | 9be3519da1219ad4ffc0d26cc97ceabcb0a7c06b | [
"Apache-2.0"
] | null | null | null | auctionCrawler/poxy.py | wd18535470628/PythonCraw | 9be3519da1219ad4ffc0d26cc97ceabcb0a7c06b | [
"Apache-2.0"
] | null | null | null | auctionCrawler/poxy.py | wd18535470628/PythonCraw | 9be3519da1219ad4ffc0d26cc97ceabcb0a7c06b | [
"Apache-2.0"
] | null | null | null | #-*- coding=utf-8 -*-
import urllib2, time, datetime
from lxml import etree
import sqlite3,time
class getProxy():
def __init__(self):
self.user_agent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"
self.header = {"User-Agent": self.user_agent}
self.dbname="proxy.db"
... | 30.284211 | 91 | 0.54814 | 355 | 2,877 | 4.343662 | 0.391549 | 0.02594 | 0.01751 | 0.011673 | 0.129702 | 0.09987 | 0.035019 | 0.035019 | 0.035019 | 0.035019 | 0 | 0.030257 | 0.31074 | 2,877 | 95 | 92 | 30.284211 | 0.747353 | 0.083768 | 0 | 0.108108 | 0 | 0.013514 | 0.180746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040541 | null | null | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ea9e52a902c07d07faf47b9e8450b5190bcaf693 | 214 | py | Python | Agents/utils/readMonFiles.py | mbay-SAG/cumulocity-thinedge-example | e0fa9a52fab16ad791093e0ab3d4383c653a10fd | [
"Apache-2.0"
] | 1 | 2021-03-12T12:22:46.000Z | 2021-03-12T12:22:46.000Z | Agents/utils/readMonFiles.py | mbay-SAG/cumulocity-thinedge-example | e0fa9a52fab16ad791093e0ab3d4383c653a10fd | [
"Apache-2.0"
] | 2 | 2020-11-20T16:58:35.000Z | 2020-11-25T15:37:06.000Z | Agents/utils/readMonFiles.py | SoftwareAG/cumulocity-thinedge-example | 6311a7f2e3d6515b85af5de24758f799e389aaed | [
"Apache-2.0"
] | null | null | null | import sys
def content(name):
try:
with open('../apama-mqtt-connect/monitors/' + str(name) + '.mon', 'r') as file:
data = file.read()
return data
except:
return []
| 19.454545 | 87 | 0.509346 | 25 | 214 | 4.36 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.336449 | 214 | 10 | 88 | 21.4 | 0.767606 | 0 | 0 | 0 | 0 | 0 | 0.168224 | 0.14486 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea9e964b93453f94a10dfd91125416960a5c91b6 | 1,046 | py | Python | tests/test_search.py | capellaspace/console-client | bad631f207043231630c9b8c0893a1b4382d4061 | [
"MIT"
] | 23 | 2021-07-28T19:32:25.000Z | 2022-03-19T07:57:36.000Z | tests/test_search.py | capellaspace/console-client | bad631f207043231630c9b8c0893a1b4382d4061 | [
"MIT"
] | 6 | 2021-07-16T22:31:56.000Z | 2022-03-11T21:09:40.000Z | tests/test_search.py | capellaspace/console-client | bad631f207043231630c9b8c0893a1b4382d4061 | [
"MIT"
] | 1 | 2022-01-05T18:38:46.000Z | 2022-01-05T18:38:46.000Z | #!/usr/bin/env python
import pytest
from .test_data import get_search_test_cases, search_catalog_get_stac_ids
from capella_console_client import client
from capella_console_client.validate import _validate_uuid
from capella_console_client.search import _paginated_search
@pytest.mark.parametrize("search_args,expecte... | 33.741935 | 86 | 0.799235 | 145 | 1,046 | 5.317241 | 0.303448 | 0.116732 | 0.083009 | 0.093385 | 0.241245 | 0.181582 | 0 | 0 | 0 | 0 | 0 | 0.013934 | 0.108031 | 1,046 | 30 | 87 | 34.866667 | 0.812433 | 0.01912 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.210526 | false | 0 | 0.263158 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
575f3985ac6999b8a0ba401f38fcd2e12e1655c9 | 2,109 | py | Python | app_jumanji/migrations/0007_resume.py | arifgafizov/jumanji_v2 | e06ec7556544abef66b35cace5a0456f6021bcca | [
"MIT"
] | 1 | 2021-12-02T11:23:39.000Z | 2021-12-02T11:23:39.000Z | app_jumanji/migrations/0007_resume.py | arifgafizov/jumanji_v2 | e06ec7556544abef66b35cace5a0456f6021bcca | [
"MIT"
] | null | null | null | app_jumanji/migrations/0007_resume.py | arifgafizov/jumanji_v2 | e06ec7556544abef66b35cace5a0456f6021bcca | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-08-16 18:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('app_jumanji', '0006_auto... | 54.076923 | 141 | 0.556188 | 191 | 2,109 | 6.005236 | 0.570681 | 0.104621 | 0.062772 | 0.083697 | 0.094159 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035971 | 0.275012 | 2,109 | 38 | 142 | 55.5 | 0.714192 | 0.021337 | 0 | 0 | 1 | 0 | 0.235209 | 0.011154 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.1875 | 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 |
5766b267912e78674e78fd7d2805ec7078a5c543 | 4,072 | py | Python | tests/test_metaregistry.py | kkaris/bioregistry | e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7 | [
"MIT"
] | null | null | null | tests/test_metaregistry.py | kkaris/bioregistry | e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7 | [
"MIT"
] | null | null | null | tests/test_metaregistry.py | kkaris/bioregistry | e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for the metaregistry."""
import unittest
import bioregistry
from bioregistry.export.rdf_export import metaresource_to_rdf_str
from bioregistry.schema import Registry
class TestMetaregistry(unittest.TestCase):
"""Tests for the metaregistry."""
def test_minimum_metadata(self... | 43.319149 | 109 | 0.638507 | 423 | 4,072 | 6.004728 | 0.234043 | 0.073622 | 0.138583 | 0.106299 | 0.225197 | 0.179528 | 0.073228 | 0 | 0 | 0 | 0 | 0.009772 | 0.246071 | 4,072 | 93 | 110 | 43.784946 | 0.81759 | 0.123281 | 0 | 0 | 0 | 0 | 0.129105 | 0 | 0 | 0 | 0 | 0 | 0.557377 | 1 | 0.065574 | false | 0 | 0.065574 | 0 | 0.147541 | 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 |
57697b1541d35be66a3cab37aa617e895a535842 | 341 | py | Python | ex038.py | honeyhugh/PythonCurso | e5b8efe04e100ea0b0c0aacde1caf7ae52489f40 | [
"MIT"
] | null | null | null | ex038.py | honeyhugh/PythonCurso | e5b8efe04e100ea0b0c0aacde1caf7ae52489f40 | [
"MIT"
] | null | null | null | ex038.py | honeyhugh/PythonCurso | e5b8efe04e100ea0b0c0aacde1caf7ae52489f40 | [
"MIT"
] | null | null | null | print('Analisador de números')
print('=-=' * 15)
n1 = int(input('Digite o primeiro número: '))
n2 = int(input('Digite o segundo número: '))
if n1 > n2:
print('O número {} é maior que o número {}'.format(n1, n2))
elif n2 > n1:
print('O número {} é maior que o número {}'.format(n2, n1))
else:
print('Os dois v... | 31 | 63 | 0.624633 | 55 | 341 | 3.872727 | 0.472727 | 0.131455 | 0.131455 | 0.140845 | 0.319249 | 0.319249 | 0.319249 | 0.319249 | 0.319249 | 0 | 0 | 0.043636 | 0.193548 | 341 | 10 | 64 | 34.1 | 0.730909 | 0 | 0 | 0 | 0 | 0 | 0.504399 | 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 |
576acce6fb8aee36735ff671a49a541abb4f2890 | 750 | py | Python | setup.py | ksachdeva/symbulate | 409188680c599622140ff6c984c95703173472e8 | [
"MIT"
] | 25 | 2017-04-04T01:55:22.000Z | 2022-03-28T17:57:49.000Z | setup.py | ksachdeva/symbulate | 409188680c599622140ff6c984c95703173472e8 | [
"MIT"
] | 67 | 2017-06-27T23:32:29.000Z | 2022-01-15T19:57:28.000Z | setup.py | ksachdeva/symbulate | 409188680c599622140ff6c984c95703173472e8 | [
"MIT"
] | 21 | 2017-04-04T01:55:22.000Z | 2022-01-11T20:03:52.000Z | from setuptools import setup, find_packages
setup(
name="symbulate",
version="0.5.5",
description="A symbolic algebra for specifying simulations.",
url="https://github.com/dlsun/symbulate",
author="Dennis Sun",
author_email="dsun09@calpoly.edu",
license="GPLv3",
classifiers=[
... | 22.058824 | 75 | 0.612 | 72 | 750 | 6.319444 | 0.847222 | 0.052747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017889 | 0.254667 | 750 | 33 | 76 | 22.727273 | 0.796064 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.029333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 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 |
576cac074c13eb095065c6d2030dffe84a3c2e7c | 725 | py | Python | blind_automation/event/blocker.py | RaphiOriginal/blindAutomation | 47f087be0ef33983cfc372abe09760c9a64f1849 | [
"MIT"
] | 1 | 2020-08-20T19:43:14.000Z | 2020-08-20T19:43:14.000Z | blind_automation/event/blocker.py | RaphiOriginal/blindAutomation | 47f087be0ef33983cfc372abe09760c9a64f1849 | [
"MIT"
] | null | null | null | blind_automation/event/blocker.py | RaphiOriginal/blindAutomation | 47f087be0ef33983cfc372abe09760c9a64f1849 | [
"MIT"
] | null | null | null | from typing import Optional, TypeVar
from .event import EventBlocker
T = TypeVar('T')
class Blocker(EventBlocker):
def __init__(self):
self.__block = False
self.__block_list: [T] = []
def block(self):
self.__block = True
def unblock(self):
self.__block = False
def ... | 21.323529 | 90 | 0.609655 | 88 | 725 | 4.670455 | 0.386364 | 0.19708 | 0.158151 | 0.087591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001901 | 0.274483 | 725 | 33 | 91 | 21.969697 | 0.779468 | 0 | 0 | 0.173913 | 0 | 0 | 0.051034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.086957 | 0.086957 | 0.608696 | 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 |
5777cb4aa061f3c293f389812b1b6779768ca886 | 890 | py | Python | CNN/VGGNET/vgg16_features.py | reddyprasade/Deep-Learning
| 35fea69af72f94f6ad62a0f308de7bd515c27e7a
| [
"MIT"
] | 15 | 2020-01-23T12:01:22.000Z | 2022-03-29T21:07:41.000Z | CNN/VGGNET/vgg16_features.py | reddyprasade/Deep-Learning
| 35fea69af72f94f6ad62a0f308de7bd515c27e7a
| [
"MIT"
] | null | null | null | CNN/VGGNET/vgg16_features.py | reddyprasade/Deep-Learning
| 35fea69af72f94f6ad62a0f308de7bd515c27e7a
| [
"MIT"
] | 10 | 2020-02-12T02:52:04.000Z | 2021-07-04T07:38:39.000Z | import tensorflow as tf
from tensorflow.keras.applications.vgg16 import VGG16
from tensorflow.keras import models
from tensorflow.keras.preprocessing import image
from tensorflow.keras.applications.vgg16 import preprocess_input
import numpy as np
import cv2
# prebuild model with pre-trained weights on imagene... | 30.689655 | 65 | 0.769663 | 134 | 890 | 4.970149 | 0.477612 | 0.067568 | 0.114114 | 0.093093 | 0.126126 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.140449 | 890 | 28 | 66 | 31.785714 | 0.847059 | 0.139326 | 0 | 0 | 0 | 0 | 0.035471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.35 | 0 | 0.35 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
577c1794e9fcb7bdccc6a2a9158ce5b0867f7053 | 4,230 | py | Python | notebook/pandas_agg.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/pandas_agg.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/pandas_agg.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import pandas as pd
import numpy as np
print(pd.__version__)
# 1.0.0
print(pd.DataFrame.agg is pd.DataFrame.aggregate)
# True
df = pd.DataFrame({'A': [0, 1, 2], 'B': [3, 4, 5]})
print(df)
# A B
# 0 0 3
# 1 1 4
# 2 2 5
print(df.agg(['sum', 'mean', 'min', 'max']))
# A B
# sum 3.0 12.0
# mean ... | 18.883929 | 77 | 0.513002 | 746 | 4,230 | 2.875335 | 0.131367 | 0.091375 | 0.083916 | 0.036364 | 0.49324 | 0.393007 | 0.356177 | 0.296037 | 0.234033 | 0.179021 | 0 | 0.103471 | 0.271158 | 4,230 | 223 | 78 | 18.96861 | 0.59228 | 0.520567 | 0 | 0 | 0 | 0 | 0.136411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.038462 | 0.019231 | 0.076923 | 0.846154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
57844212fa28ebcdefb93bfed459606ee05dd39b | 2,950 | py | Python | Prototype_2/web/blueprints/index.py | amal66/Kawm | 3bf442ea1f4b572f4ec840e0ee6ec7d96ae23133 | [
"MIT"
] | null | null | null | Prototype_2/web/blueprints/index.py | amal66/Kawm | 3bf442ea1f4b572f4ec840e0ee6ec7d96ae23133 | [
"MIT"
] | null | null | null | Prototype_2/web/blueprints/index.py | amal66/Kawm | 3bf442ea1f4b572f4ec840e0ee6ec7d96ae23133 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template,redirect,url_for,request,flash,make_response
from flask import current_app as app
from flask_login import (
LoginManager,
current_user,
login_required,
login_user,
logout_user,
UserMixin,
)
from ..models import User, db
from ..security import hash_str... | 43.382353 | 124 | 0.557288 | 308 | 2,950 | 5.12013 | 0.311688 | 0.055802 | 0.049461 | 0.039949 | 0.28662 | 0.236525 | 0.142042 | 0.088776 | 0.048193 | 0 | 0 | 0.00516 | 0.343051 | 2,950 | 67 | 125 | 44.029851 | 0.808566 | 0.043051 | 0 | 0.148148 | 0 | 0 | 0.099109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0.148148 | 0.111111 | 0 | 0.222222 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
57885b1f14f79ac4171cf51a11ef29a2c3dc1503 | 4,232 | py | Python | utils/make_temporal_subsets.py | davidhwyllie/findNeighbour4 | d42e10711e59e93ebf0e798fbb1598929f662c9c | [
"MIT"
] | null | null | null | utils/make_temporal_subsets.py | davidhwyllie/findNeighbour4 | d42e10711e59e93ebf0e798fbb1598929f662c9c | [
"MIT"
] | 14 | 2021-11-26T14:43:25.000Z | 2022-03-22T00:39:17.000Z | utils/make_temporal_subsets.py | davidhwyllie/findNeighbour4 | d42e10711e59e93ebf0e798fbb1598929f662c9c | [
"MIT"
] | null | null | null | """ generates lists of SARS-CoV-2 samples which occurred before a particular date
Also generates a dictionary of reference compressed sequences
And a subset of these
Together, these can be passed to a ram_persistence object which
can be used instead of an fn3persistence object to test the performance of PCA, or for o... | 36.8 | 127 | 0.756144 | 647 | 4,232 | 4.829985 | 0.330757 | 0.03072 | 0.03584 | 0.0256 | 0.30272 | 0.2304 | 0.17536 | 0.15872 | 0.11872 | 0.10624 | 0 | 0.019068 | 0.132561 | 4,232 | 114 | 128 | 37.122807 | 0.832198 | 0.301276 | 0 | 0.228571 | 1 | 0 | 0.208787 | 0.085831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.128571 | 0 | 0.128571 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57978560a0242c56700cc234e8aab484133ef169 | 11,740 | py | Python | nanome/api/structure/complex.py | nanome-ai/nanome | 7777a782168fe4e68f58c42f01cff9e66f3675aa | [
"MIT"
] | 1 | 2020-04-10T09:47:54.000Z | 2020-04-10T09:47:54.000Z | nanome/api/structure/complex.py | nanome-ai/nanome | 7777a782168fe4e68f58c42f01cff9e66f3675aa | [
"MIT"
] | 10 | 2019-05-30T18:29:10.000Z | 2020-02-15T02:16:42.000Z | nanome/api/structure/complex.py | nanome-ai/nanome | 7777a782168fe4e68f58c42f01cff9e66f3675aa | [
"MIT"
] | 2 | 2020-02-04T02:56:21.000Z | 2020-04-25T20:05:16.000Z | from nanome._internal._structure._complex import _Complex
from nanome._internal import _PluginInstance
from nanome._internal._network import PluginNetwork
from nanome._internal._network._commands._callbacks import _Messages
from nanome.util import Matrix, Logs
from .io import ComplexIO
from . import Base
class Comple... | 25.139186 | 83 | 0.593782 | 1,288 | 11,740 | 5.220497 | 0.120342 | 0.050565 | 0.044468 | 0.032719 | 0.492267 | 0.434563 | 0.383551 | 0.298037 | 0.170732 | 0.145152 | 0 | 0.001882 | 0.32121 | 11,740 | 466 | 84 | 25.193133 | 0.841887 | 0.123424 | 0 | 0.460208 | 0 | 0 | 0.000614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.273356 | false | 0 | 0.024221 | 0.079585 | 0.442907 | 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 |
579b07f7e2fa1f7d53a1230b84e41be5a5006de9 | 14,911 | py | Python | TWLight/users/models.py | Chinmay-Gurjar/TWLight | 94ff6e1bf0a8dd851e569c592608871de2ad3089 | [
"MIT"
] | null | null | null | TWLight/users/models.py | Chinmay-Gurjar/TWLight | 94ff6e1bf0a8dd851e569c592608871de2ad3089 | [
"MIT"
] | null | null | null | TWLight/users/models.py | Chinmay-Gurjar/TWLight | 94ff6e1bf0a8dd851e569c592608871de2ad3089 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This file holds user profile information. (The base User model is part of
Django; profiles extend that with locally useful information.)
TWLight has three user types:
* editors
* coordinators
* site administrators.
_Editors_ are Wikipedia editors who are applying for TWL resource acce... | 40.409214 | 228 | 0.652002 | 1,892 | 14,911 | 5.029598 | 0.2574 | 0.027953 | 0.007356 | 0.015132 | 0.191992 | 0.163199 | 0.163199 | 0.132619 | 0.122846 | 0.110866 | 0 | 0.005702 | 0.259003 | 14,911 | 368 | 229 | 40.519022 | 0.855553 | 0.196365 | 0 | 0.350575 | 0 | 0.005747 | 0.182868 | 0.037741 | 0 | 0 | 0 | 0 | 0.04023 | 0 | null | null | 0.028736 | 0.057471 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
579e371e955563dc8f4d6412367c0fd0a22213bb | 167 | py | Python | Exercicios Python/exlista01.py | oswaldo-spadari/Python-Exec | 3c3a237ed7c30af43f23a3619f6c6b92f6fcb12e | [
"MIT"
] | null | null | null | Exercicios Python/exlista01.py | oswaldo-spadari/Python-Exec | 3c3a237ed7c30af43f23a3619f6c6b92f6fcb12e | [
"MIT"
] | null | null | null | Exercicios Python/exlista01.py | oswaldo-spadari/Python-Exec | 3c3a237ed7c30af43f23a3619f6c6b92f6fcb12e | [
"MIT"
] | null | null | null | #Faça um Programa que leia um vetor de 5 números inteiros e mostre-os.
lista=[]
for i in range(1, 6):
lista.append(int(input('Digite um número: ')))
print(lista)
| 23.857143 | 70 | 0.694611 | 30 | 167 | 3.866667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.173653 | 167 | 6 | 71 | 27.833333 | 0.818841 | 0.413174 | 0 | 0 | 0 | 0 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57a48b0dacbc22f4bad998cd06e891c64fb838c5 | 7,652 | py | Python | jans-linux-setup/jans_setup/static/extension/person_authentication/GoogleExternalAuthenticator.py | nikdavnik/jans | 5e9abc74cca766a066512eab2aca6563ce480bff | [
"Apache-2.0"
] | 18 | 2022-01-13T13:45:13.000Z | 2022-03-30T04:41:18.000Z | jans-linux-setup/jans_setup/static/extension/person_authentication/GoogleExternalAuthenticator.py | nikdavnik/jans | 5e9abc74cca766a066512eab2aca6563ce480bff | [
"Apache-2.0"
] | 604 | 2022-01-13T12:32:50.000Z | 2022-03-31T20:27:36.000Z | jans-linux-setup/jans_setup/static/extension/person_authentication/GoogleExternalAuthenticator.py | nikdavnik/jans | 5e9abc74cca766a066512eab2aca6563ce480bff | [
"Apache-2.0"
] | 8 | 2022-01-28T00:23:25.000Z | 2022-03-16T05:12:12.000Z | # Janssen Project software is available under the Apache 2.0 License (2004). See http://www.apache.org/licenses/ for full text.
# Copyright (c) 2020, Janssen Project
#
# Author: Madhumita Subramaniam
#
from io.jans.service.cdi.util import CdiUtil
from io.jans.as.server.security import Identity
from io.jans.model.custo... | 39.854167 | 167 | 0.673811 | 779 | 7,652 | 6.545571 | 0.336329 | 0.01059 | 0.017651 | 0.011767 | 0.098058 | 0.040792 | 0.040792 | 0.027064 | 0.018827 | 0 | 0 | 0.005527 | 0.243335 | 7,652 | 191 | 168 | 40.062827 | 0.87513 | 0.122713 | 0 | 0.210526 | 0 | 0 | 0.089035 | 0.011055 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037594 | 0.150376 | null | null | 0.112782 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
57a71c30a72ab6617b2351c0866f4abcd021aacb | 1,709 | py | Python | example/sign up.py | Roblox-Thot/captchaCodeMakerV2 | 0d9e1a85b75e0c71f9c8b35d8330f704b1464685 | [
"Apache-2.0"
] | 7 | 2021-12-10T16:37:15.000Z | 2022-03-07T09:29:36.000Z | example/sign up.py | Roblox-Thot/captchaCodeMakerV2 | 0d9e1a85b75e0c71f9c8b35d8330f704b1464685 | [
"Apache-2.0"
] | null | null | null | example/sign up.py | Roblox-Thot/captchaCodeMakerV2 | 0d9e1a85b75e0c71f9c8b35d8330f704b1464685 | [
"Apache-2.0"
] | 9 | 2022-01-15T15:32:58.000Z | 2022-03-08T21:28:38.000Z | # This code could be improved but its just a example on how to use the code from the site
import requests, base64, random, string
token = input("Put code here:\n")
headers = {
'authority': 'auth.roblox.com',
'dnt': '1',
'x-csrf-token': requests.post("https://auth.roblox.com/v2/login").headers["x-csrf-tok... | 30.517857 | 135 | 0.664716 | 219 | 1,709 | 5.173516 | 0.652968 | 0.026478 | 0.034422 | 0.03707 | 0.056487 | 0.056487 | 0.056487 | 0 | 0 | 0 | 0 | 0.062674 | 0.159743 | 1,709 | 55 | 136 | 31.072727 | 0.726323 | 0.115272 | 0 | 0.142857 | 0 | 0.02381 | 0.478723 | 0.101729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.047619 | 0 | 0.047619 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
57a95284d7934e75842077f077664e4ddceff207 | 3,191 | py | Python | examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py | pferrel/incubator-predictionio | 4b2fb7c1b6a1cd1027a4c03e6ae1af223c8e634c | [
"Apache-2.0"
] | 2 | 2017-03-10T03:03:14.000Z | 2017-07-03T02:38:42.000Z | examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py | michaelzzh/LF_PredictionIO | 98bfd4d75efaab7633697f12e31e791660dbd61a | [
"Apache-2.0"
] | null | null | null | examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py | michaelzzh/LF_PredictionIO | 98bfd4d75efaab7633697f12e31e791660dbd61a | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | 29.546296 | 74 | 0.651833 | 432 | 3,191 | 4.675926 | 0.395833 | 0.023762 | 0.033663 | 0.043564 | 0.237624 | 0.220792 | 0.164356 | 0.10396 | 0.067327 | 0.067327 | 0 | 0.025841 | 0.235976 | 3,191 | 107 | 75 | 29.82243 | 0.802707 | 0.291758 | 0 | 0.291667 | 0 | 0 | 0.135865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.097222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
57b0f06734d5293b4bc104ab02dc176064141a7e | 4,137 | py | Python | gunmel/models.py | zhenkai/xgunicorn | 33fc122fdc9435ba0b6562186d3c86d983eb992a | [
"Apache-2.0"
] | null | null | null | gunmel/models.py | zhenkai/xgunicorn | 33fc122fdc9435ba0b6562186d3c86d983eb992a | [
"Apache-2.0"
] | null | null | null | gunmel/models.py | zhenkai/xgunicorn | 33fc122fdc9435ba0b6562186d3c86d983eb992a | [
"Apache-2.0"
] | 1 | 2020-03-03T04:04:56.000Z | 2020-03-03T04:04:56.000Z | from django.core.exceptions import ValidationError
from django.db import models
from django.forms.models import model_to_dict
from decimal import Decimal
# Create your models here.
class ProductManager(models.Manager):
def top_drops(self, n):
return self.get_queryset().order_by('-price_drop')[:n]
de... | 36.9375 | 126 | 0.664491 | 519 | 4,137 | 5.119461 | 0.238921 | 0.045164 | 0.050809 | 0.055326 | 0.388032 | 0.358675 | 0.270606 | 0.24426 | 0.188935 | 0.188935 | 0 | 0.01203 | 0.21634 | 4,137 | 111 | 127 | 37.27027 | 0.807526 | 0.019821 | 0 | 0.166667 | 0 | 0 | 0.084712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57b46ec2e0dade46c77d1fce41a387fa6b810a5f | 1,890 | py | Python | xos/api/utility/toscaapi.py | iecedge/xos | 566617f676fedcb2602266191c755d191b37018a | [
"Apache-2.0"
] | null | null | null | xos/api/utility/toscaapi.py | iecedge/xos | 566617f676fedcb2602266191c755d191b37018a | [
"Apache-2.0"
] | null | null | null | xos/api/utility/toscaapi.py | iecedge/xos | 566617f676fedcb2602266191c755d191b37018a | [
"Apache-2.0"
] | null | null | null | # Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 30.983607 | 86 | 0.679894 | 250 | 1,890 | 5.052 | 0.576 | 0.047506 | 0.020586 | 0.025337 | 0.047506 | 0.047506 | 0.047506 | 0 | 0 | 0 | 0 | 0.013369 | 0.208466 | 1,890 | 60 | 87 | 31.5 | 0.830882 | 0.355556 | 0 | 0.0625 | 0 | 0 | 0.072379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15625 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57b8a501dc93a41633bfea6eb1b0e55e7388ace2 | 4,041 | py | Python | tests/test_descriptor.py | OlivierBeq/ProDEC | b3723bc54a5a7ab4eedf2ab9a23a210e935b05fe | [
"MIT"
] | null | null | null | tests/test_descriptor.py | OlivierBeq/ProDEC | b3723bc54a5a7ab4eedf2ab9a23a210e935b05fe | [
"MIT"
] | null | null | null | tests/test_descriptor.py | OlivierBeq/ProDEC | b3723bc54a5a7ab4eedf2ab9a23a210e935b05fe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for Descriptor."""
import unittest
import numpy as np
import orjson
from prodec import Descriptor
from prodec.utils import std_amino_acids
from tests.constants import *
class TestDescriptor(unittest.TestCase):
"""Tests for Descriptor."""
def setUp(self):
"""Cr... | 42.536842 | 105 | 0.59218 | 548 | 4,041 | 4.208029 | 0.332117 | 0.058977 | 0.117953 | 0.060711 | 0.476583 | 0.369471 | 0.299653 | 0.292715 | 0.292715 | 0.179965 | 0 | 0.095033 | 0.25266 | 4,041 | 95 | 106 | 42.536842 | 0.668543 | 0.033408 | 0 | 0.19403 | 0 | 0 | 0.030591 | 0.005913 | 0 | 0 | 0 | 0 | 0.298507 | 1 | 0.253731 | false | 0 | 0.089552 | 0 | 0.358209 | 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 |
57c14c8998061fad84c8b010eef9803262de092d | 328 | py | Python | pandas_selectable/tests/conftest.py | jseabold/pandas-select | 0dc5fac465db8348bf3d1cc69d9f7c4fe28896e1 | [
"BSD-3-Clause"
] | 28 | 2020-09-08T04:38:01.000Z | 2022-02-05T21:47:52.000Z | pandas_selectable/tests/conftest.py | jseabold/pandas-select | 0dc5fac465db8348bf3d1cc69d9f7c4fe28896e1 | [
"BSD-3-Clause"
] | 8 | 2020-09-04T21:29:57.000Z | 2021-11-17T16:44:42.000Z | pandas_selectable/tests/conftest.py | jseabold/pandas-select | 0dc5fac465db8348bf3d1cc69d9f7c4fe28896e1 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import pandas as pd
import pytest
@pytest.fixture
def dta():
return pd.DataFrame.from_dict(
{
'A': np.arange(1, 16),
'B': pd.date_range('2020-01-01', periods=15),
'C': ['A', 'B', 'C'] * 5,
'D': pd.Categorical(['A', 'B', 'C'] * 5),
... | 20.5 | 57 | 0.466463 | 45 | 328 | 3.355556 | 0.644444 | 0.02649 | 0.039735 | 0.05298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068807 | 0.335366 | 328 | 15 | 58 | 21.866667 | 0.623853 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | true | 0 | 0.230769 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57c4c8bc27d5ede3ee5ab749d40ffd70c1be34a7 | 1,474 | py | Python | api/classes/portfolio.py | alexander-schilling/fintual_test | 3a8a3cd17dea4a7a1203eb1cd58a2af411700207 | [
"MIT"
] | null | null | null | api/classes/portfolio.py | alexander-schilling/fintual_test | 3a8a3cd17dea4a7a1203eb1cd58a2af411700207 | [
"MIT"
] | null | null | null | api/classes/portfolio.py | alexander-schilling/fintual_test | 3a8a3cd17dea4a7a1203eb1cd58a2af411700207 | [
"MIT"
] | null | null | null | from .stock import Stock
class Portfolio:
def __init__(self, assets):
self.stocks = []
self.__populate_stocks(assets)
def get_stock(self, stock_name):
for stock in self.stocks:
if stock.name == stock_name:
return stock
return None
def get_prof... | 28.901961 | 77 | 0.627544 | 188 | 1,474 | 4.595745 | 0.218085 | 0.125 | 0.097222 | 0.083333 | 0.331019 | 0.30787 | 0.134259 | 0.134259 | 0.134259 | 0.134259 | 0 | 0.005731 | 0.289688 | 1,474 | 50 | 78 | 29.48 | 0.819484 | 0 | 0 | 0.135135 | 0 | 0 | 0.004071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.027027 | 0 | 0.405405 | 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 |
57c8b90994148c8460b99ab3bc8d5a19736e8281 | 25,325 | py | Python | cogs/general.py | xthecoolboy/MizaBOT | fb8a449bde29fdf1d32b5a597e48e6b3463dd867 | [
"MIT"
] | null | null | null | cogs/general.py | xthecoolboy/MizaBOT | fb8a449bde29fdf1d32b5a597e48e6b3463dd867 | [
"MIT"
] | null | null | null | cogs/general.py | xthecoolboy/MizaBOT | fb8a449bde29fdf1d32b5a597e48e6b3463dd867 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
import asyncio
import aiohttp
import random
from datetime import datetime, timedelta
import math
import json
# #####################################################################################
# math parser used by $calc
class MathParser:
def __init_... | 48.701923 | 226 | 0.536387 | 3,005 | 25,325 | 4.496506 | 0.148419 | 0.042481 | 0.026939 | 0.033156 | 0.499556 | 0.425844 | 0.406306 | 0.385509 | 0.360938 | 0.31831 | 0 | 0.016099 | 0.320592 | 25,325 | 520 | 227 | 48.701923 | 0.767814 | 0.019151 | 0 | 0.35307 | 0 | 0 | 0.107546 | 0.001611 | 0 | 0 | 0.000348 | 0 | 0 | 0 | null | null | 0.006579 | 0.017544 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57cf71e94609fd85e48613dd288c7fef9e5aa2fe | 2,260 | py | Python | nicos_ess/labs/chop_embla/setups/skf_chopper.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_ess/labs/chop_embla/setups/skf_chopper.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_ess/labs/chop_embla/setups/skf_chopper.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = 'Some kind of SKF chopper'
pv_root = 'LabS-Embla:Chop-Drv-0601:'
devices = dict(
skf_drive_temp=device('nicos.devices.epics.pva.EpicsReadable',
description='Drive temperature',
readpv='{}DrvTmp_Stat'.format(pv_root),
monitor=True,
),
skf_motor_temp=device('nicos.devic... | 33.731343 | 69 | 0.611504 | 248 | 2,260 | 5.41129 | 0.302419 | 0.058122 | 0.107303 | 0.171386 | 0.567064 | 0.508942 | 0.508942 | 0.441878 | 0.23845 | 0 | 0 | 0.019153 | 0.237611 | 2,260 | 66 | 70 | 34.242424 | 0.759721 | 0 | 0 | 0.40625 | 0 | 0 | 0.350885 | 0.182743 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
57cfe9cbd14de3c1d66f6b0d1a90693c4bb4239e | 1,623 | py | Python | chapter_08/05_alphabetic_tel_number.py | SergeHall/Tony-Gaddis-Python-4th | 24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba | [
"MIT"
] | 2 | 2021-04-07T03:26:37.000Z | 2021-07-26T07:38:49.000Z | chapter_08/05_alphabetic_tel_number.py | SergeHall/Tony-Gaddis-Python-4th | 24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba | [
"MIT"
] | null | null | null | chapter_08/05_alphabetic_tel_number.py | SergeHall/Tony-Gaddis-Python-4th | 24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba | [
"MIT"
] | null | null | null | # # 5. Алфавитный переводчик номера телефона. Многие компании используют телефонные
# # номера наподобие 555-GET-FOOD, чтобы клиентам было легче запоминать эти номера.
# # На стандартном телефоне буквам алфавита поставлены в соответствие числа следующим
# # образом: А,В и С=2 ; D,Е и F=З. phone_num = input('nnn-XXX-XXX... | 33.122449 | 85 | 0.479359 | 226 | 1,623 | 3.393805 | 0.438053 | 0.099087 | 0.093872 | 0.046936 | 0.062581 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011225 | 0.341343 | 1,623 | 48 | 86 | 33.8125 | 0.706268 | 0.20764 | 0 | 0.055556 | 0 | 0 | 0.125687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.055556 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
57d3a9d76e06f373164b6aa991f8a00afed0d016 | 530 | py | Python | carton/tests/urls.py | knyazz/py3-django-enriched-carton | 27d97388d8153f29a3c629cdcd3e734ad09dc52e | [
"MIT"
] | null | null | null | carton/tests/urls.py | knyazz/py3-django-enriched-carton | 27d97388d8153f29a3c629cdcd3e734ad09dc52e | [
"MIT"
] | null | null | null | carton/tests/urls.py | knyazz/py3-django-enriched-carton | 27d97388d8153f29a3c629cdcd3e734ad09dc52e | [
"MIT"
] | null | null | null | from django.conf.urls import url
from .views import (
add,
clear,
remove,
remove_single,
set_quantity,
show
)
urlpatterns = [
url(r'^show/$', show, name='carton-tests-show'),
url(r'^add/$', add, name='carton-tests-add'),
url(r'^remove/$', remove, name='carton-tests-remove'),
u... | 25.238095 | 79 | 0.632075 | 72 | 530 | 4.597222 | 0.263889 | 0.072508 | 0.271903 | 0.126888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166038 | 530 | 20 | 80 | 26.5 | 0.748869 | 0 | 0 | 0 | 0 | 0 | 0.343396 | 0.096226 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 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 |
57d50f67e3d06852292f8ffe636f692eff8d51a1 | 4,798 | py | Python | spectrumanalyzer.py | cwolfe007/LEDSoundResponsiveSuit | 86c03e80a7b689e418629e4d11674299d0cad64b | [
"MIT"
] | null | null | null | spectrumanalyzer.py | cwolfe007/LEDSoundResponsiveSuit | 86c03e80a7b689e418629e4d11674299d0cad64b | [
"MIT"
] | 1 | 2019-05-05T03:13:11.000Z | 2019-05-05T03:13:11.000Z | spectrumanalyzer.py | cwolfe007/LEDSoundRepsponsiveSuit | 86c03e80a7b689e418629e4d11674299d0cad64b | [
"MIT"
] | null | null | null |
# Spectrum Analyzer Code Author: Caleb Wolfe
import time
import Adafruit_GPIO.SPI as SPI
import Adafruit_MCP3008
import numpy as np
class SpectrumAnalyzer:
def __init__(self,smprate=44100,senistivity=100.0,samplesize=1024):
self.__samplerate =smprate
self.... | 35.279412 | 316 | 0.563568 | 515 | 4,798 | 5.12233 | 0.357282 | 0.029568 | 0.059136 | 0.072782 | 0.03677 | 0.03677 | 0 | 0 | 0 | 0 | 0 | 0.060693 | 0.344102 | 4,798 | 135 | 317 | 35.540741 | 0.777566 | 0.167361 | 0 | 0 | 0 | 0 | 0.013108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.011364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
57d96e1c007274d36d8529dbd1130a23bc0cd5c7 | 3,093 | py | Python | accounts/tests/test_views.py | jhonatanlteodoro/ecommerce-django | 931c70bba7658cdb982e5294e02c2b90d02b8c82 | [
"MIT"
] | 1 | 2020-01-07T20:50:48.000Z | 2020-01-07T20:50:48.000Z | accounts/tests/test_views.py | jhonatanlteodoro/ecommerce-django | 931c70bba7658cdb982e5294e02c2b90d02b8c82 | [
"MIT"
] | null | null | null | accounts/tests/test_views.py | jhonatanlteodoro/ecommerce-django | 931c70bba7658cdb982e5294e02c2b90d02b8c82 | [
"MIT"
] | null | null | null | from django.test import Client
from django.test import TestCase
from django.urls import reverse
from django.contrib.auth import get_user_model
from model_mommy import mommy
from django.conf import settings
User = get_user_model()
class RegisterViewTestCase(TestCase):
def setUp(self):
self.client = Client(... | 34.366667 | 84 | 0.648885 | 358 | 3,093 | 5.48324 | 0.212291 | 0.073357 | 0.055018 | 0.056037 | 0.537443 | 0.520122 | 0.520122 | 0.520122 | 0.499745 | 0.452878 | 0 | 0.02164 | 0.223084 | 3,093 | 89 | 85 | 34.752809 | 0.795256 | 0.033624 | 0 | 0.442857 | 0 | 0 | 0.138601 | 0.008035 | 0 | 0 | 0 | 0 | 0.128571 | 1 | 0.142857 | false | 0.2 | 0.085714 | 0 | 0.271429 | 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 |
57e0f15da3397b04339d70c34758b935f92d1d00 | 3,339 | py | Python | lattice_gauge_theory/cluster.py | saforem2/lattice_gauge_theory | 600ce4d7d520c5b54a49b6c13086e577704b38ec | [
"MIT"
] | 4 | 2019-01-04T04:59:35.000Z | 2021-08-24T16:38:16.000Z | lattice_gauge_theory/cluster.py | saforem2/lattice_gauge_theory | 600ce4d7d520c5b54a49b6c13086e577704b38ec | [
"MIT"
] | null | null | null | lattice_gauge_theory/cluster.py | saforem2/lattice_gauge_theory | 600ce4d7d520c5b54a49b6c13086e577704b38ec | [
"MIT"
] | 2 | 2018-12-13T10:49:36.000Z | 2020-11-17T15:42:35.000Z | class Cluster(object):
""" Object for grouping sets of sites. """
def __init__(self, sites):
"""
Initialize a cluster instance.
Args:
sites (list(Site)): The list of sites that make up the cluster.
Returns:
None
"""
self.sites = set(site... | 29.289474 | 79 | 0.542677 | 475 | 3,339 | 3.694737 | 0.2 | 0.097436 | 0.044444 | 0.074074 | 0.245584 | 0.207407 | 0.19886 | 0.19886 | 0.137322 | 0.137322 | 0 | 0.013966 | 0.356694 | 3,339 | 113 | 80 | 29.548673 | 0.803073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57eb7325fe9ef8d6594ce7350e80b8d6714ba595 | 3,094 | py | Python | icbd/type_analyzer/tests/parametric.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | 7 | 2015-04-06T15:17:13.000Z | 2020-10-21T04:57:00.000Z | icbd/type_analyzer/tests/parametric.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | null | null | null | icbd/type_analyzer/tests/parametric.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | 4 | 2016-05-16T17:53:08.000Z | 2020-11-28T17:18:50.000Z | import collections
def unknown():
raise Exception()
l = [1] # 0 [<int|str>]
l.append(2) # 0 [<int|str>] # 2 (<int|str>) -> None
l.append('')
l[0] = 1
l[0] = ""
l2 = list(l) # 0 [<int|str>]
l2 = sorted(l) # 0 [<int|str>]
x = collections.deque(l2).pop() # 0 <int|str>
l2 = reversed(l) # 0 iterator of <int|str>
l2 =... | 21.486111 | 65 | 0.486102 | 589 | 3,094 | 2.543294 | 0.156197 | 0.080107 | 0.074766 | 0.037383 | 0.503338 | 0.393191 | 0.323097 | 0.212951 | 0.140854 | 0.11215 | 0 | 0.089134 | 0.238526 | 3,094 | 143 | 66 | 21.636364 | 0.546689 | 0.341306 | 0 | 0.330275 | 0 | 0 | 0.007194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009174 | null | null | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
17b5722e5e60de2426f1160b8b162178106fdd0c | 890 | py | Python | kakao_message_utils/request_token.py | hahagarden/project_news_summarize | 1c47e2ec30cff715a0c56b20f50a9ffa53ded274 | [
"MIT"
] | null | null | null | kakao_message_utils/request_token.py | hahagarden/project_news_summarize | 1c47e2ec30cff715a0c56b20f50a9ffa53ded274 | [
"MIT"
] | null | null | null | kakao_message_utils/request_token.py | hahagarden/project_news_summarize | 1c47e2ec30cff715a0c56b20f50a9ffa53ded274 | [
"MIT"
] | null | null | null | import token_def
# To get Authorization Code
# https://kauth.kakao.com/oauth/authorize?client_id=cc335daa766cc74b3de1b1c372a6cce8&response_type=code&redirect_uri=https://localhost.com
KAKAO_APP_KEY = "cc335daa766cc74b3de1b1c372a6cce8" # REST_API app key
AUTHORIZATION_CODE = "flzXSvhelQ3LLzmAKyo5-bQsafEyGOyFAMyK4N-dT... | 46.842105 | 138 | 0.830337 | 123 | 890 | 5.739837 | 0.463415 | 0.056657 | 0.101983 | 0.065156 | 0.11898 | 0.11898 | 0.11898 | 0.11898 | 0 | 0 | 0 | 0.051661 | 0.086517 | 890 | 18 | 139 | 49.444444 | 0.816728 | 0.514607 | 0 | 0 | 0 | 0 | 0.464286 | 0.464286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17b8f007031e6b77982d4da9880cd3ac7fe940b3 | 1,717 | py | Python | test/unit/messages/bloxroute/test_abstract_bloxroute_message.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 12 | 2019-11-06T17:39:10.000Z | 2022-03-01T11:26:19.000Z | test/unit/messages/bloxroute/test_abstract_bloxroute_message.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 8 | 2019-11-06T21:31:11.000Z | 2021-06-02T00:46:50.000Z | test/unit/messages/bloxroute/test_abstract_bloxroute_message.py | dolphinridercrypto/bxcommon | 8f70557c1dbff785a5dd3fcdf91176066e085c3a | [
"MIT"
] | 5 | 2019-11-14T18:08:11.000Z | 2022-02-08T09:36:22.000Z | from bxcommon.test_utils.abstract_test_case import AbstractTestCase
from bxcommon import constants
from bxcommon.messages.bloxroute.abstract_bloxroute_message import AbstractBloxrouteMessage
from bxcommon.messages.bloxroute.bloxroute_message_control_flags import BloxrouteMessageControlFlags
class TestAbstractBloxrout... | 50.5 | 121 | 0.798486 | 178 | 1,717 | 7.404494 | 0.292135 | 0.175266 | 0.033384 | 0.191199 | 0.413505 | 0.377086 | 0.377086 | 0.377086 | 0.377086 | 0.307284 | 0 | 0.00269 | 0.133955 | 1,717 | 33 | 122 | 52.030303 | 0.883658 | 0.015725 | 0 | 0.217391 | 0 | 0 | 0.005332 | 0 | 0 | 0 | 0 | 0 | 0.347826 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.26087 | 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 |
17c11d2e03854c10df90cd4aba0694838e082d86 | 1,359 | py | Python | LeetCode/python/211-240/216-cobination-sum-iii/solution.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | LeetCode/python/211-240/216-cobination-sum-iii/solution.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | LeetCode/python/211-240/216-cobination-sum-iii/solution.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | class Solution:
# @param {integer} k
# @param {integer} n
# @return {integer[][]}
def combinationSum3(self, k, n):
nums = range(1, 10)
self.results = []
self.combination(nums, n, k, 0, [])
return self.results
def combination(self, nums, target, k, start, result):
... | 28.3125 | 67 | 0.382634 | 137 | 1,359 | 3.79562 | 0.255474 | 0.084615 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.505519 | 1,359 | 48 | 68 | 28.3125 | 0.75 | 0.050773 | 0 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17c5738139be0ff3cd10e6b345ccee28c0202628 | 752 | py | Python | C++/1059-All-Paths-from-Source-Lead-to-Destination/soln-1.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/1059-All-Paths-from-Source-Lead-to-Destination/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/1059-All-Paths-from-Source-Lead-to-Destination/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution {
public:
bool leadsToDestination(int n, vector<vector<int>>& edges, int source, int destination) {
for(auto & edge : edges) {
int u = edge[0], v = edge[1];
graph[u].push_back(v);
}
vector<bool> visited(n, false);
return dfs(source, destination,... | 30.08 | 93 | 0.542553 | 88 | 752 | 4.613636 | 0.397727 | 0.044335 | 0.083744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.319149 | 752 | 24 | 94 | 31.333333 | 0.789063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17d69728ccc0d7694c2df558651b0fdf5636b10f | 2,048 | py | Python | splash/teams/teams_routes.py | dylanmcreynolds/splash-server | 28559d5109c8efcf3ea882b91a99722d957f2daa | [
"BSD-3-Clause-LBNL"
] | null | null | null | splash/teams/teams_routes.py | dylanmcreynolds/splash-server | 28559d5109c8efcf3ea882b91a99722d957f2daa | [
"BSD-3-Clause-LBNL"
] | null | null | null | splash/teams/teams_routes.py | dylanmcreynolds/splash-server | 28559d5109c8efcf3ea882b91a99722d957f2daa | [
"BSD-3-Clause-LBNL"
] | null | null | null | from typing import List, Optional
from attr import dataclass
from fastapi import APIRouter, Security
from fastapi.exceptions import HTTPException
from fastapi import Header
from pydantic import BaseModel
from pydantic.tools import parse_obj_as
from splash.api.auth import get_current_user
from splash.service import Spl... | 28.054795 | 92 | 0.70752 | 249 | 2,048 | 5.634538 | 0.281125 | 0.101924 | 0.049893 | 0.065574 | 0.132573 | 0.132573 | 0.132573 | 0.079829 | 0.079829 | 0.079829 | 0 | 0.004271 | 0.199707 | 2,048 | 72 | 93 | 28.444444 | 0.851739 | 0 | 0 | 0.132075 | 0 | 0 | 0.015625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0.245283 | 0 | 0.509434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
17da768787ed79973072983b3cce0e340bf8fc26 | 1,304 | py | Python | PythonSelenium/src/server.py | talhaHavadar/MomTV | 1673b8d41a3d6157b7e1ba5ba4bd3ad7a70a3ba9 | [
"MIT"
] | 1 | 2019-02-23T06:41:58.000Z | 2019-02-23T06:41:58.000Z | PythonSelenium/src/server.py | talhaHavadar/MomTV | 1673b8d41a3d6157b7e1ba5ba4bd3ad7a70a3ba9 | [
"MIT"
] | null | null | null | PythonSelenium/src/server.py | talhaHavadar/MomTV | 1673b8d41a3d6157b7e1ba5ba4bd3ad7a70a3ba9 | [
"MIT"
] | null | null | null | """
Handles all requests that coming from phone
"""
import socketserver
import bot
from bot import TVBot
class TCPSocketHandler(socketserver.StreamRequestHandler):
"""
Handles the tcp socket connection
"""
def handle(self):
self.bot = TVBot()
while True:
self.data = ... | 34.315789 | 81 | 0.537577 | 170 | 1,304 | 4.082353 | 0.282353 | 0.184438 | 0.172911 | 0.259366 | 0.442363 | 0.34438 | 0.31268 | 0.31268 | 0.31268 | 0 | 0 | 0.00348 | 0.338957 | 1,304 | 37 | 82 | 35.243243 | 0.801624 | 0.059049 | 0 | 0.071429 | 0 | 0 | 0.045188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.178571 | 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 |
17de742785e7e376b1d10db620dbbd2f43d27408 | 15,752 | py | Python | h2o-bindings/bin/pyunit_parser_test.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-bindings/bin/pyunit_parser_test.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-bindings/bin/pyunit_parser_test.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""Test case for pyparser."""
from __future__ import division, print_function
import os
import re
import textwrap
import tokenize
from future.builtins import open
import pyparser
def _make_tuple(op):
return lambda x: (op, x)
NL = tokenize.NL
NEWLINE = tokenize.NE... | 38.702703 | 117 | 0.509777 | 1,753 | 15,752 | 4.517399 | 0.180833 | 0.034095 | 0.047354 | 0.047986 | 0.398661 | 0.350044 | 0.29928 | 0.274151 | 0.226923 | 0.202425 | 0 | 0.00731 | 0.322562 | 15,752 | 406 | 118 | 38.79803 | 0.734795 | 0.054977 | 0 | 0.39528 | 0 | 0.00295 | 0.308362 | 0.014915 | 0 | 0 | 0 | 0 | 0.050147 | 1 | 0.029499 | false | 0.073746 | 0.058997 | 0.00295 | 0.100295 | 0.103245 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
17e137bb0de594618d6979cb258b74fc8c2fc07c | 353 | py | Python | Django-React/exemple/api/migrations/0002_rename_created_app_room_created_at.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | Django-React/exemple/api/migrations/0002_rename_created_app_room_created_at.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | Django-React/exemple/api/migrations/0002_rename_created_app_room_created_at.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-07-03 21:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='room',
old_name='created_app',
new_nam... | 18.578947 | 45 | 0.575071 | 38 | 353 | 5.184211 | 0.815789 | 0.111675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.311615 | 353 | 18 | 46 | 19.611111 | 0.736626 | 0.121813 | 0 | 0 | 1 | 0 | 0.12987 | 0 | 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 |
17e2be1570ac1669d8bc94548067cec13cd745f2 | 2,049 | py | Python | tests/test8u20/main.py | potats0/javaSerializationTools | eb0291bdd336e28ca5dd9ee86ba6d645f1bf6e8f | [
"Apache-2.0"
] | 124 | 2021-01-21T08:49:20.000Z | 2022-01-23T07:17:30.000Z | tests/test8u20/main.py | potats0/javaSerializationDump | eb0291bdd336e28ca5dd9ee86ba6d645f1bf6e8f | [
"Apache-2.0"
] | 3 | 2021-01-22T03:29:55.000Z | 2021-04-20T06:04:50.000Z | tests/test8u20/main.py | potats0/javaSerializationTools | eb0291bdd336e28ca5dd9ee86ba6d645f1bf6e8f | [
"Apache-2.0"
] | 12 | 2021-01-21T14:09:01.000Z | 2021-11-18T20:13:43.000Z | import yaml
from javaSerializationTools import JavaString, JavaField, JavaObject, JavaEndBlock
from javaSerializationTools import ObjectRead
from javaSerializationTools import ObjectWrite
if __name__ == '__main__':
with open("../files/7u21.ser", "rb") as f:
a = ObjectRead(f)
obj = a.readContent()... | 43.595745 | 101 | 0.70815 | 142 | 2,049 | 10.161972 | 0.507042 | 0.054054 | 0.066528 | 0.042966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.20693 | 2,049 | 46 | 102 | 44.543478 | 0.88 | 0.146901 | 0 | 0 | 0 | 0 | 0.121909 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17e369dc9f4c67838ee2db6b83ebfbd5715f6650 | 634 | py | Python | getmysql_threadid.py | wang1352083/mysql_tool | 52f7efc319d2732d780913e7b1d7692fab8e791a | [
"MIT"
] | null | null | null | getmysql_threadid.py | wang1352083/mysql_tool | 52f7efc319d2732d780913e7b1d7692fab8e791a | [
"MIT"
] | null | null | null | getmysql_threadid.py | wang1352083/mysql_tool | 52f7efc319d2732d780913e7b1d7692fab8e791a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
base31=pow(2,31)
base32=pow(2,32)
base=0xFFFFFFFF
'''
mysql 中processlist和mysql.log中记录的 threadid不一致.因此做一个转换
from :processlist.threadid -> mysql.log.threadid
'''
def long_to_short(pid):
if pid <base31:
return pid
elif base31 <= pid < base32:
return pid -base32
... | 22.642857 | 52 | 0.635647 | 87 | 634 | 4.482759 | 0.563218 | 0.069231 | 0.05641 | 0.071795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057377 | 0.230284 | 634 | 27 | 53 | 23.481481 | 0.741803 | 0.031546 | 0 | 0.095238 | 0 | 0 | 0.089286 | 0 | 0 | 0 | 0.019841 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17e98bdd9410e5ff20a99bb45742f5cb653135df | 4,267 | py | Python | guillotina_amqp/tests/mocks.py | vjove/guillotina_amqp | 34f2011ea5547166211e90608c54657d93dde4fc | [
"BSD-3-Clause"
] | 4 | 2018-06-14T12:03:41.000Z | 2020-02-12T17:07:18.000Z | guillotina_amqp/tests/mocks.py | vjove/guillotina_amqp | 34f2011ea5547166211e90608c54657d93dde4fc | [
"BSD-3-Clause"
] | 45 | 2018-11-12T10:57:30.000Z | 2021-05-26T19:13:12.000Z | guillotina_amqp/tests/mocks.py | vjove/guillotina_amqp | 34f2011ea5547166211e90608c54657d93dde4fc | [
"BSD-3-Clause"
] | 4 | 2018-12-19T16:59:04.000Z | 2021-06-20T16:27:43.000Z | import asyncio
import uuid
class MockChannel:
def __init__(self):
self.published = []
self.acked = []
self.nacked = []
async def publish(self, *args, **kwargs):
self.published.append({"args": args, "kwargs": kwargs})
async def basic_client_ack(self, *args, **kwargs):
... | 29.427586 | 83 | 0.574408 | 452 | 4,267 | 5.25885 | 0.205752 | 0.060581 | 0.075726 | 0.031973 | 0.312158 | 0.263778 | 0.181321 | 0.155238 | 0.037863 | 0 | 0 | 0.003463 | 0.323178 | 4,267 | 144 | 84 | 29.631944 | 0.819598 | 0.005156 | 0 | 0.20354 | 0 | 0 | 0.036059 | 0.011784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053097 | false | 0.053097 | 0.017699 | 0 | 0.141593 | 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 |
17ecb3cdae4406d81c58cf487da09197d576b8b9 | 590 | py | Python | MagiSlack/__main__.py | riemannulus/MagiSlack | 3bcb5057ccc0699b2e4b0029f5d1c87e03a70356 | [
"MIT"
] | null | null | null | MagiSlack/__main__.py | riemannulus/MagiSlack | 3bcb5057ccc0699b2e4b0029f5d1c87e03a70356 | [
"MIT"
] | null | null | null | MagiSlack/__main__.py | riemannulus/MagiSlack | 3bcb5057ccc0699b2e4b0029f5d1c87e03a70356 | [
"MIT"
] | null | null | null | from os import environ
from MagiSlack.io import MagiIO
from MagiSlack.module import MagiModule
def hello_world(*args, **kwargs):
return f"HELLO WORLD! user {kwargs['name']}, {kwargs['display_name']}"
if __name__ == '__main__':
print('Magi Start!')
print('='*30)
print('MagiModule Initializing.')
... | 21.851852 | 74 | 0.666102 | 71 | 590 | 5.323944 | 0.464789 | 0.079365 | 0.063492 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012371 | 0.177966 | 590 | 26 | 75 | 22.692308 | 0.76701 | 0 | 0 | 0.277778 | 0 | 0 | 0.274576 | 0.040678 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0.055556 | 0.277778 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
17edcea77994ad95b7f15708cbc1815c28e54b7c | 2,234 | py | Python | my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/server_utils_test.py | liutongliang/myVim | 6c7ab36f25f4a5e2e1daeab8c43509975eb031e3 | [
"MIT"
] | 2 | 2018-04-16T03:08:42.000Z | 2021-01-06T10:21:49.000Z | my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/server_utils_test.py | liutongliang/myVim | 6c7ab36f25f4a5e2e1daeab8c43509975eb031e3 | [
"MIT"
] | null | null | null | my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/server_utils_test.py | liutongliang/myVim | 6c7ab36f25f4a5e2e1daeab8c43509975eb031e3 | [
"MIT"
] | null | null | null | # Copyright (C) 2016-2018 ycmd contributors
#
# This file is part of ycmd.
#
# ycmd is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#... | 39.192982 | 79 | 0.745748 | 265 | 2,234 | 6.150943 | 0.449057 | 0.066258 | 0.127607 | 0.110429 | 0.407362 | 0.354601 | 0.320245 | 0.203681 | 0.132515 | 0.132515 | 0 | 0.00693 | 0.160251 | 2,234 | 56 | 80 | 39.892857 | 0.86194 | 0.325873 | 0 | 0.433333 | 0 | 0 | 0.195024 | 0.016812 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.1 | true | 0 | 0.3 | 0 | 0.4 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17ee2ab39fa3aef85b71231efdccae35147bec91 | 560 | py | Python | spraycharles/utils/notify.py | Tw1sm/passwordpredator | 57e173c68b1dfe89149fc108999f560bf1569cd7 | [
"BSD-3-Clause"
] | null | null | null | spraycharles/utils/notify.py | Tw1sm/passwordpredator | 57e173c68b1dfe89149fc108999f560bf1569cd7 | [
"BSD-3-Clause"
] | null | null | null | spraycharles/utils/notify.py | Tw1sm/passwordpredator | 57e173c68b1dfe89149fc108999f560bf1569cd7 | [
"BSD-3-Clause"
] | null | null | null | import pymsteams
from discord_webhook import DiscordWebhook
from notifiers import get_notifier
def slack(webhook, host):
slack = get_notifier("slack")
slack.notify(message=f"Credentials guessed for host: {host}", webhook_url=webhook)
def teams(webhook, host):
notify = pymsteams.connectorcard(webhook)
... | 25.454545 | 86 | 0.725 | 68 | 560 | 5.911765 | 0.382353 | 0.08209 | 0.141791 | 0.164179 | 0.223881 | 0.223881 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 560 | 21 | 87 | 26.666667 | 0.866379 | 0 | 0 | 0 | 0 | 0 | 0.201786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17ef674eddb0b6d4127cc6eda09e667c21a0faed | 716 | py | Python | manage.py | SinnerSchraderMobileMirrors/django-cms | 157daefd30d9e82cc538a0c226539bf6681beabd | [
"BSD-3-Clause"
] | 2 | 2018-05-17T02:49:49.000Z | 2019-08-20T02:07:44.000Z | manage.py | SinnerSchraderMobileMirrors/django-cms | 157daefd30d9e82cc538a0c226539bf6681beabd | [
"BSD-3-Clause"
] | 2 | 2019-02-13T07:58:23.000Z | 2019-02-13T07:58:27.000Z | manage.py | SinnerSchraderMobileMirrors/django-cms | 157daefd30d9e82cc538a0c226539bf6681beabd | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import sys
from cms.test_utils.cli import configure
from cms.test_utils.tmpdir import temp_dir
import os
def main():
with temp_dir() as STATIC_ROOT:
with temp_dir() as MEDIA_ROOT:
configure(
'sqlite://localhost/cmstestdb.sqlite',
ROOT_URLC... | 27.538462 | 81 | 0.632682 | 89 | 716 | 4.752809 | 0.505618 | 0.066194 | 0.113475 | 0.07565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001908 | 0.268156 | 716 | 25 | 82 | 28.64 | 0.805344 | 0.058659 | 0 | 0 | 0 | 0 | 0.16369 | 0.125 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | true | 0 | 0.277778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17f3838494cef3ff36c0edabf5b3161b2c576936 | 1,716 | py | Python | sawyer/flat_goal_env.py | geyang/gym-sawyer | c6e81ab4faefafcfa3886d74672976cc16452747 | [
"MIT"
] | 4 | 2020-06-02T16:25:31.000Z | 2020-07-28T12:26:26.000Z | sawyer/flat_goal_env.py | geyang/gym-sawyer | c6e81ab4faefafcfa3886d74672976cc16452747 | [
"MIT"
] | 1 | 2020-09-30T10:24:04.000Z | 2020-09-30T10:24:04.000Z | sawyer/flat_goal_env.py | geyang/gym-sawyer | c6e81ab4faefafcfa3886d74672976cc16452747 | [
"MIT"
] | null | null | null | import gym
import numpy as np
# wrapper classes are anti-patterns.
def FlatGoalEnv(env, obs_keys, goal_keys):
"""
We require the keys to be passed in explicitly, to avoid mistakes.
:param env:
:param obs_keys: obs_keys=('state_observation',)
:param goal_keys: goal_keys=('desired_goal',)
"""
... | 27.238095 | 78 | 0.634033 | 245 | 1,716 | 4.22449 | 0.244898 | 0.092754 | 0.052174 | 0.043478 | 0.500483 | 0.336232 | 0.336232 | 0.318841 | 0.245411 | 0.197101 | 0 | 0.001586 | 0.265152 | 1,716 | 62 | 79 | 27.677419 | 0.819191 | 0.209207 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.088235 | 1 | 0.088235 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17fa046b5f198637f7b0c78962349041958e3fcc | 689 | py | Python | replay.py | Plummy-Panda/MITM-V | 1b920d42267b02817e0dc2274dd13a415ba79e98 | [
"MIT"
] | null | null | null | replay.py | Plummy-Panda/MITM-V | 1b920d42267b02817e0dc2274dd13a415ba79e98 | [
"MIT"
] | 1 | 2015-12-03T06:16:53.000Z | 2015-12-03T06:16:53.000Z | replay.py | Plummy-Panda/MITM-V | 1b920d42267b02817e0dc2274dd13a415ba79e98 | [
"MIT"
] | null | null | null | import socket
import config
def main():
# get the login info, which is extracted from the packet
f = open('data/msg.txt', 'r')
msg = f.read()
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = (config.HOST, config.PORT)
print 'connecting to %s port %s' % server_address
... | 22.966667 | 60 | 0.625544 | 98 | 689 | 4.265306 | 0.520408 | 0.093301 | 0.08134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011742 | 0.258345 | 689 | 29 | 61 | 23.758621 | 0.806262 | 0.16836 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
17fa9c27681a820d868dd4675d7bac62973724aa | 424 | py | Python | sim.py | julieisdead/jtwitter-simulator | 933340a5a7aab9a229e4e4d28088169f58f99dbe | [
"MIT"
] | 1 | 2016-09-14T16:33:03.000Z | 2016-09-14T16:33:03.000Z | sim.py | julieisdead/jtwitter-simulator | 933340a5a7aab9a229e4e4d28088169f58f99dbe | [
"MIT"
] | null | null | null | sim.py | julieisdead/jtwitter-simulator | 933340a5a7aab9a229e4e4d28088169f58f99dbe | [
"MIT"
] | null | null | null | import jtweeter
access_token = "TWITTER_APP_ACCESS_TOKEN"
access_token_secret = "TWITTER_APP_ACCESS_TOKEN_SECRET"
consumer_key = "TWITTER_APP_CONSUMER_KEY"
consumer_secret = "TWITTER_APP_CONSUMER_SECRET"
user_id = 000000000 #user id of twitter user to simulate.
def main():
jtweeter.tweet(access_token, ac... | 32.615385 | 94 | 0.778302 | 57 | 424 | 5.210526 | 0.350877 | 0.222222 | 0.171717 | 0.141414 | 0.319865 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024862 | 0.146226 | 424 | 13 | 95 | 32.615385 | 0.79558 | 0.084906 | 0 | 0 | 0 | 0 | 0.303191 | 0.281915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 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 |
aa045e92b1da01e687147246d74bf80b0eabb154 | 1,547 | py | Python | pythonCore/ch03/E12.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | pythonCore/ch03/E12.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | pythonCore/ch03/E12.py | Furzoom/learnpython | a3034584e481d4e7c55912d9da06439688aa67ea | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def read_text_file():
# get filename
fname = raw_input('Enter filename: ')
print
# attempt to open file for reading
try:
fobj = open(fname, 'r')
except IOError, e:
print '*** file open error:', e
else:
# display content... | 22.1 | 60 | 0.517776 | 186 | 1,547 | 4.182796 | 0.446237 | 0.041131 | 0.030848 | 0.041131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.360052 | 1,547 | 69 | 61 | 22.42029 | 0.780808 | 0.155139 | 0 | 0.25 | 0 | 0 | 0.143297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020833 | null | null | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aa05a5f5d054582877f87be6fff364e1313a693c | 8,894 | py | Python | pytictactoe.py | ruel/PyTicTacToe | e0b69de085b2b1e9ff5c13a7aeb1382406e4d859 | [
"Unlicense"
] | 1 | 2016-09-08T02:32:00.000Z | 2016-09-08T02:32:00.000Z | pytictactoe.py | ruel/PyTicTacToe | e0b69de085b2b1e9ff5c13a7aeb1382406e4d859 | [
"Unlicense"
] | null | null | null | pytictactoe.py | ruel/PyTicTacToe | e0b69de085b2b1e9ff5c13a7aeb1382406e4d859 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
'''
PyTicTacToe - Tic Tac Toe in Python
http://ruel.me
Copyright (c) 2010, Ruel Pagayon - ruel@ruel.me
All rights reserved.
Redistribution and use in source and binary forms, with or without
* Redistributions of source code must retain the above copyright
notice, this list of conditions ... | 22.688776 | 92 | 0.616483 | 1,461 | 8,894 | 3.739904 | 0.207392 | 0.035139 | 0.035139 | 0.048316 | 0.329978 | 0.291362 | 0.253843 | 0.198939 | 0.129026 | 0.110725 | 0 | 0.027269 | 0.245446 | 8,894 | 391 | 93 | 22.746803 | 0.786917 | 0.029571 | 0 | 0.304933 | 0 | 0 | 0.069312 | 0.004696 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.004484 | null | null | 0.049327 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aa063c8fe24a2414d08f79391cfa01c347db328a | 655 | py | Python | sitewebapp/migrations/0014_auto_20210130_0425.py | deucaleon18/debsoc-nitdgp-website | 41bd6ade7f4af143ef34aff01848f830cc533add | [
"MIT"
] | 2 | 2020-12-05T05:34:56.000Z | 2020-12-09T10:27:43.000Z | sitewebapp/migrations/0014_auto_20210130_0425.py | deucaleon18/debsoc-nitdgp-website | 41bd6ade7f4af143ef34aff01848f830cc533add | [
"MIT"
] | 3 | 2021-06-28T16:47:23.000Z | 2021-06-28T16:48:51.000Z | sitewebapp/migrations/0014_auto_20210130_0425.py | deucaleon18/debsoc-nitdgp-website | 41bd6ade7f4af143ef34aff01848f830cc533add | [
"MIT"
] | 9 | 2021-01-29T17:06:30.000Z | 2021-08-21T18:23:26.000Z | # Generated by Django 2.2.15 on 2021-01-29 22:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sitewebapp', '0013_auto_20210130_0409'),
]
operations = [
migrations.RemoveField(
model_name='... | 27.291667 | 159 | 0.638168 | 68 | 655 | 6.044118 | 0.617647 | 0.058394 | 0.068127 | 0.107056 | 0.175182 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064777 | 0.245802 | 655 | 23 | 160 | 28.478261 | 0.767206 | 0.070229 | 0 | 0.352941 | 1 | 0 | 0.181219 | 0.072488 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa07eb294a968be138419270910fe3769b70aebc | 2,464 | py | Python | scripts/plot/klt_track_length.py | raphaelchang/omni_slam_eval | 7df7d76c520c1325ac4f1a85f87b7af07d9628c3 | [
"MIT"
] | 7 | 2020-06-15T01:04:10.000Z | 2021-12-15T03:49:05.000Z | scripts/plot/klt_track_length.py | raphaelchang/omni_slam_eval | 7df7d76c520c1325ac4f1a85f87b7af07d9628c3 | [
"MIT"
] | null | null | null | scripts/plot/klt_track_length.py | raphaelchang/omni_slam_eval | 7df7d76c520c1325ac4f1a85f87b7af07d9628c3 | [
"MIT"
] | 4 | 2020-06-15T16:02:12.000Z | 2021-10-12T07:18:47.000Z | import h5py
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import pandas
import os
from parse import parse
import argparse
parser = argparse.ArgumentParser(description='Plot tracking evaluation results')
parser.add_argument('results_path', help='tracking results file or working directory')
ar... | 44 | 243 | 0.590909 | 309 | 2,464 | 4.618123 | 0.349515 | 0.033637 | 0.052558 | 0.064471 | 0.115627 | 0.115627 | 0.115627 | 0.050456 | 0.050456 | 0 | 0 | 0.010377 | 0.256899 | 2,464 | 55 | 244 | 44.8 | 0.768979 | 0 | 0 | 0.040816 | 0 | 0 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.163265 | null | null | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aa081249580e88b0253e91416aa676f87663a26d | 4,166 | py | Python | jtlib/test_client.py | bminard/jtlib | 0d3d83308bc4ed67bdf1732e5b0602eb8c48f53f | [
"BSD-2-Clause"
] | null | null | null | jtlib/test_client.py | bminard/jtlib | 0d3d83308bc4ed67bdf1732e5b0602eb8c48f53f | [
"BSD-2-Clause"
] | null | null | null | jtlib/test_client.py | bminard/jtlib | 0d3d83308bc4ed67bdf1732e5b0602eb8c48f53f | [
"BSD-2-Clause"
] | null | null | null | # -*-coding:Utf-8 -*
#--------------------------------------------------------------------------------
# jtlib: test_client.py
#
# jtlib module client test code.
#--------------------------------------------------------------------------------
# BSD 2-Clause License
#
# Copyright (c) 2018, Brian Minard
# All rights r... | 37.196429 | 97 | 0.694911 | 555 | 4,166 | 5.122523 | 0.363964 | 0.038692 | 0.036581 | 0.033415 | 0.365811 | 0.335561 | 0.334154 | 0.334154 | 0.334154 | 0.299683 | 0 | 0.006855 | 0.159626 | 4,166 | 111 | 98 | 37.531532 | 0.805199 | 0.544167 | 0 | 0.341463 | 0 | 0 | 0.124378 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 1 | 0.268293 | false | 0 | 0.073171 | 0 | 0.414634 | 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 |
aa0908d204cc1bd792f22cb281757498ea7ff6d8 | 129 | py | Python | coop/guide/context_processors.py | jalibras/coop | cb94560eb4a25eca3e241551e01eea6e3d4e3b6b | [
"Apache-2.0"
] | 1 | 2017-01-16T10:51:15.000Z | 2017-01-16T10:51:15.000Z | coop/guide/context_processors.py | jalibras/coop | cb94560eb4a25eca3e241551e01eea6e3d4e3b6b | [
"Apache-2.0"
] | null | null | null | coop/guide/context_processors.py | jalibras/coop | cb94560eb4a25eca3e241551e01eea6e3d4e3b6b | [
"Apache-2.0"
] | null | null | null |
from guide.models import Area
def nav(request):
areas = Area.objects.all()
return {
'areas':areas,
}
| 11.727273 | 30 | 0.565891 | 15 | 129 | 4.866667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.317829 | 129 | 10 | 31 | 12.9 | 0.829545 | 0 | 0 | 0 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa0bad3348ebb20b51fc55cdea73057560ae7c2d | 1,009 | py | Python | python/ccxt/async_support/bitmax.py | mariuszskon/ccxt | 13253de7346e33cd384f79abf7dfb64dcbfdc35f | [
"MIT"
] | 4 | 2021-09-24T09:18:36.000Z | 2022-03-15T16:47:09.000Z | python/ccxt/async_support/bitmax.py | mariuszskon/ccxt | 13253de7346e33cd384f79abf7dfb64dcbfdc35f | [
"MIT"
] | 1 | 2017-10-28T14:35:08.000Z | 2017-10-28T14:35:08.000Z | python/ccxt/async_support/bitmax.py | mariuszskon/ccxt | 13253de7346e33cd384f79abf7dfb64dcbfdc35f | [
"MIT"
] | 3 | 2018-10-17T09:29:29.000Z | 2019-03-12T09:18:42.000Z | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.ascendex import ascendex
class bitmax(ascendex):
def describe(self):
return self.deep_extend(super(b... | 37.37037 | 126 | 0.557978 | 108 | 1,009 | 5.194444 | 0.666667 | 0.117647 | 0.092692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05472 | 0.27552 | 1,009 | 26 | 127 | 38.807692 | 0.712722 | 0.169475 | 0 | 0 | 1 | 0.111111 | 0.442977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0.055556 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa0d8ce33a090f902ad8f14cf64f48b5d4df3194 | 7,232 | py | Python | users/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | users/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | users/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2014 NTHUOJ team
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 39.304348 | 86 | 0.648921 | 891 | 7,232 | 5.154882 | 0.306397 | 0.028739 | 0.03919 | 0.020684 | 0.143915 | 0.079904 | 0.040714 | 0.015241 | 0 | 0 | 0 | 0.005568 | 0.254978 | 7,232 | 183 | 87 | 39.519126 | 0.846882 | 0.221239 | 0 | 0.134454 | 0 | 0 | 0.115337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07563 | false | 0.142857 | 0.042017 | 0 | 0.386555 | 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 |
aa110cd2edc58ec667902045505d003d64be93a9 | 1,067 | py | Python | pset_challenging_ext/exercises/p18.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 5 | 2019-04-08T20:05:37.000Z | 2019-12-04T20:48:45.000Z | pset_challenging_ext/exercises/p18.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 8 | 2019-04-15T15:16:05.000Z | 2022-02-12T10:33:32.000Z | pset_challenging_ext/exercises/p18.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 2 | 2019-04-10T00:14:42.000Z | 2020-02-26T20:35:21.000Z | """
A website requires the users to input username and password to register. Write a program to check the validity of password input by users.
"""
"""Question 18
Level 3
Question:
A website requires the users to input username and password to register. Write a program to check the validity of password input by users.
... | 42.68 | 199 | 0.776007 | 186 | 1,067 | 4.451613 | 0.435484 | 0.033816 | 0.038647 | 0.045894 | 0.330918 | 0.330918 | 0.330918 | 0.330918 | 0.272947 | 0.272947 | 0 | 0.040724 | 0.171509 | 1,067 | 25 | 200 | 42.68 | 0.895928 | 0.129335 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aa11a5a6d1a64b23db22e2fa37320c9cd8481f08 | 14,561 | py | Python | tool/taint_analysis/summary_functions.py | cpbscholten/karonte | b989f7dfe9dbe002dd0dc4c4e5b0293dde61ae72 | [
"BSD-2-Clause"
] | 294 | 2019-11-14T13:14:55.000Z | 2022-03-22T08:28:56.000Z | tool/taint_analysis/summary_functions.py | cpbscholten/karonte | b989f7dfe9dbe002dd0dc4c4e5b0293dde61ae72 | [
"BSD-2-Clause"
] | 17 | 2019-12-23T09:32:00.000Z | 2022-03-17T20:00:13.000Z | tool/taint_analysis/summary_functions.py | cpbscholten/karonte | b989f7dfe9dbe002dd0dc4c4e5b0293dde61ae72 | [
"BSD-2-Clause"
] | 50 | 2019-11-25T02:27:04.000Z | 2021-12-10T04:46:26.000Z | """
Though karonte relies on angr's sim procedures, sometimes these add in the current state some constraints to make the
used analysis faster. For example, if a malloc has an unconstrained size, angr add the constraint
size == angr-defined.MAX_SIZE. Though this makes the analysis faster, it makes impossible to reason ... | 34.100703 | 117 | 0.665614 | 2,280 | 14,561 | 3.982895 | 0.114474 | 0.099438 | 0.057262 | 0.057042 | 0.700914 | 0.683295 | 0.665896 | 0.642881 | 0.619095 | 0.608964 | 0 | 0.007723 | 0.235286 | 14,561 | 426 | 118 | 34.180751 | 0.807813 | 0.291189 | 0 | 0.59596 | 0 | 0 | 0.105688 | 0 | 0 | 0 | 0 | 0.004695 | 0.035354 | 1 | 0.075758 | false | 0.005051 | 0.005051 | 0.005051 | 0.10101 | 0.010101 | 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 |
aa1ecc00932000826e0af0c980cbcdd6a456cc46 | 926 | py | Python | python/091-100/Interleaving String.py | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | python/091-100/Interleaving String.py | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | python/091-100/Interleaving String.py | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution:
# @param {string} s1
# @param {string} s2
# @param {string} s3
# @return {boolean}
def isInterleave(self, s1, s2, s3):
m = len(s1)
n = len(s2)
if m+n != len(s3):
return False
table = [([False] * (m+1)) for i in range(n+1)]
... | 33.071429 | 66 | 0.402808 | 148 | 926 | 2.52027 | 0.182432 | 0.042895 | 0.064343 | 0.117962 | 0.402145 | 0.284182 | 0.284182 | 0.257373 | 0 | 0 | 0 | 0.083799 | 0.420086 | 926 | 28 | 67 | 33.071429 | 0.610801 | 0.079914 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa2716777e5784947bfab68b664551c0c517f631 | 4,540 | py | Python | scripts/job/memcached_submit.py | Container-Projects/firmament | d0de5258f0805f8d17b45d70c0a8e6d6a67617c0 | [
"Apache-2.0",
"OpenSSL"
] | 287 | 2016-05-13T17:45:48.000Z | 2022-01-23T00:26:20.000Z | scripts/job/memcached_submit.py | Container-Projects/firmament | d0de5258f0805f8d17b45d70c0a8e6d6a67617c0 | [
"Apache-2.0",
"OpenSSL"
] | 33 | 2016-05-13T11:40:21.000Z | 2020-11-16T17:57:17.000Z | scripts/job/memcached_submit.py | Container-Projects/firmament | d0de5258f0805f8d17b45d70c0a8e6d6a67617c0 | [
"Apache-2.0",
"OpenSSL"
] | 64 | 2016-05-26T06:35:39.000Z | 2021-09-27T12:02:44.000Z | from base import job_desc_pb2
from base import task_desc_pb2
from base import reference_desc_pb2
from google.protobuf import text_format
import httplib, urllib, re, sys, random
import binascii
import time
import shlex
def add_worker_task(job_name, task, binary, args, worker_id, num_workers, extra_args):
task.uid = 0... | 36.910569 | 99 | 0.745154 | 658 | 4,540 | 4.905775 | 0.264438 | 0.049876 | 0.047708 | 0.065056 | 0.349133 | 0.208798 | 0.129492 | 0.0886 | 0 | 0 | 0 | 0.022139 | 0.114537 | 4,540 | 122 | 100 | 37.213115 | 0.780846 | 0.037885 | 0 | 0.07619 | 0 | 0 | 0.199679 | 0.088721 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.07619 | null | null | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aa276bd863f21ed290ee913192b1706b7cc21ea2 | 16,059 | py | Python | gala/dynamics/_genfunc/genfunc_3d.py | ltlancas/gala | 2621bb599d67e74a85446abf72d5930ef70ca181 | [
"MIT"
] | 1 | 2021-10-14T03:36:15.000Z | 2021-10-14T03:36:15.000Z | gala/dynamics/_genfunc/genfunc_3d.py | ltlancas/gala | 2621bb599d67e74a85446abf72d5930ef70ca181 | [
"MIT"
] | null | null | null | gala/dynamics/_genfunc/genfunc_3d.py | ltlancas/gala | 2621bb599d67e74a85446abf72d5930ef70ca181 | [
"MIT"
] | null | null | null | # Solving the series of linear equations for true action
# and generating function Fourier components
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
from matplotlib.ticker import MaxNLocator
import matplotlib.cm as cm
import time
# in units kpc, km/s and 10^11 M_solar
Grav = 430... | 37.964539 | 229 | 0.600598 | 2,761 | 16,059 | 3.403839 | 0.147773 | 0.006384 | 0.010853 | 0.008619 | 0.482762 | 0.413918 | 0.367419 | 0.327942 | 0.29219 | 0.252713 | 0 | 0.051735 | 0.2068 | 16,059 | 422 | 230 | 38.054502 | 0.686057 | 0.069307 | 0 | 0.262172 | 0 | 0 | 0.094604 | 0.013707 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044944 | null | null | 0.123596 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aa3c53fd6d46ee624b7f8501fe8550742fc44be3 | 1,083 | py | Python | craftroom/thefriendlystars/panels.py | davidjwilson/craftroom | 05721893350a8b554204e188c8413ee33a7768ad | [
"MIT"
] | 1 | 2019-11-25T21:19:03.000Z | 2019-11-25T21:19:03.000Z | craftroom/thefriendlystars/panels.py | davidjwilson/craftroom | 05721893350a8b554204e188c8413ee33a7768ad | [
"MIT"
] | 1 | 2018-03-14T04:26:54.000Z | 2018-03-14T04:26:54.000Z | craftroom/thefriendlystars/panels.py | davidjwilson/craftroom | 05721893350a8b554204e188c8413ee33a7768ad | [
"MIT"
] | 1 | 2021-09-10T21:24:43.000Z | 2021-09-10T21:24:43.000Z |
'''
Panel object contains
up to one image in the background,
and any number of catalogs plotted.
'''
import astroquery.skyview
class Panel:
'''
A single frame of a finder chart,
that has up to one image in the background,
and any number of catalogs plotted.
'''
def __init__(self, image, cata... | 22.102041 | 71 | 0.581717 | 148 | 1,083 | 4.202703 | 0.5 | 0.012862 | 0.022508 | 0.038585 | 0.180064 | 0.180064 | 0.180064 | 0.180064 | 0.180064 | 0.180064 | 0 | 0.021879 | 0.282548 | 1,083 | 48 | 72 | 22.5625 | 0.778636 | 0.374885 | 0 | 0 | 0 | 0 | 0.247387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
aa423bbb57ccb85157fec0324522a113dca2abda | 501 | py | Python | Data/CSV_naar_hashtable.py | Tomaat/Programmeerproject | f3fa7558891add6c46948afe778e1abf1cc0f565 | [
"MIT"
] | null | null | null | Data/CSV_naar_hashtable.py | Tomaat/Programmeerproject | f3fa7558891add6c46948afe778e1abf1cc0f565 | [
"MIT"
] | 1 | 2017-01-12T18:31:00.000Z | 2017-01-12T18:31:00.000Z | Data/CSV_naar_hashtable.py | Tomaat/Programmeerproject | f3fa7558891add6c46948afe778e1abf1cc0f565 | [
"MIT"
] | null | null | null | import csv
import json
from collections import defaultdict
f = open('DOOSTROOM_new.csv', 'rU')
h = defaultdict(lambda: defaultdict(lambda: defaultdict(int)))
for line in f:
line_list = line.split(";")
h[line_list[7]]["oorsprong"][line_list[3]] += int(line_list[12])
h[line_list[7]]["profiel"][line_list[6]] +=... | 22.772727 | 65 | 0.670659 | 79 | 501 | 4.151899 | 0.468354 | 0.170732 | 0.170732 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028436 | 0.157685 | 501 | 22 | 66 | 22.772727 | 0.748815 | 0.077844 | 0 | 0 | 0 | 0 | 0.159389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aa45f0ddc8356bc41cfa28538ab685525dfeff79 | 2,138 | py | Python | python/version_creator.py | geoff-possum/lambda-versioning | 18f35945579cd9c1315c697444fc0d47aa66ea61 | [
"MIT"
] | 2 | 2020-12-07T05:18:56.000Z | 2021-04-03T08:13:58.000Z | python/version_creator.py | geoff-possum/lambda-versioning | 18f35945579cd9c1315c697444fc0d47aa66ea61 | [
"MIT"
] | null | null | null | python/version_creator.py | geoff-possum/lambda-versioning | 18f35945579cd9c1315c697444fc0d47aa66ea61 | [
"MIT"
] | null | null | null | import boto3
from botocore.vendored import requests
import json
from uuid import uuid4
def send(event, context, response_status, Reason=None, ResponseData=None, PhysicalResourceId=None):
response_url = event.get('ResponseURL', "")
json_body = json.dumps({
'Status' : response_status,
'Reason' : Reason or 'S... | 34.483871 | 112 | 0.673994 | 248 | 2,138 | 5.685484 | 0.366935 | 0.034043 | 0.038298 | 0.028369 | 0.069504 | 0.036879 | 0 | 0 | 0 | 0 | 0 | 0.002292 | 0.183817 | 2,138 | 62 | 113 | 34.483871 | 0.805731 | 0 | 0 | 0.068966 | 0 | 0 | 0.216456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.086207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aa46d1dd10569615cec8459fd895776c5d59f9d9 | 6,459 | py | Python | musicdwh/musicdwh.py | dagmar-urbancova/musicdwh | d9960820e7bb77cbe20713b2a344e1fdf86be92a | [
"MIT"
] | null | null | null | musicdwh/musicdwh.py | dagmar-urbancova/musicdwh | d9960820e7bb77cbe20713b2a344e1fdf86be92a | [
"MIT"
] | null | null | null | musicdwh/musicdwh.py | dagmar-urbancova/musicdwh | d9960820e7bb77cbe20713b2a344e1fdf86be92a | [
"MIT"
] | null | null | null | """Main module."""
import os
import sys
import time
from datetime import datetime
import pandas as pd
import ipapi
import sqlalchemy as sqla
try:
DATA_DATE = os.environ['DATA_DATE']
print('Using data from {}'.format(DATA_DATE))
except:
print('Envvar DATA_DATE not set.')
sys.exit(1)
try:
POSTGR... | 29.226244 | 94 | 0.62471 | 894 | 6,459 | 4.244966 | 0.203579 | 0.02108 | 0.01054 | 0.013702 | 0.222134 | 0.150461 | 0.106983 | 0.025296 | 0.025296 | 0.025296 | 0 | 0.011633 | 0.254683 | 6,459 | 220 | 95 | 29.359091 | 0.776693 | 0.121071 | 0 | 0.225806 | 0 | 0 | 0.19727 | 0.031726 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045161 | false | 0.051613 | 0.148387 | 0 | 0.2 | 0.148387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aa471620e45f82f8795929b2bd7008f06f5d5d0e | 653 | py | Python | biserici_inlemnite/biserici/migrations/0033_auto_20210803_1623.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/biserici/migrations/0033_auto_20210803_1623.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/biserici/migrations/0033_auto_20210803_1623.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-08-03 13:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('biserici', '0032_auto_20210803_1622'),
]
operations = [
migrations.AddField(
model_name='descriere',
name='solee_de... | 27.208333 | 93 | 0.614089 | 67 | 653 | 5.850746 | 0.58209 | 0.091837 | 0.117347 | 0.137755 | 0.403061 | 0.403061 | 0.403061 | 0.403061 | 0.403061 | 0.403061 | 0 | 0.066806 | 0.266462 | 653 | 23 | 94 | 28.391304 | 0.751566 | 0.070444 | 0 | 0.470588 | 1 | 0 | 0.2 | 0.038017 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4af9051ce0c393008d96458e2c2f3dce09ae68a | 3,514 | py | Python | tests/clickhouse/test_columns.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | tests/clickhouse/test_columns.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | tests/clickhouse/test_columns.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | from copy import deepcopy
import pytest
from snuba.clickhouse.columns import (
UUID,
AggregateFunction,
Array,
ColumnType,
Date,
DateTime,
Enum,
FixedString,
Float,
IPv4,
IPv6,
Nested,
ReadOnly,
)
from snuba.clickhouse.columns import SchemaModifiers as Modifier
from ... | 28.803279 | 87 | 0.584804 | 381 | 3,514 | 5.312336 | 0.215223 | 0.150198 | 0.187747 | 0.06917 | 0.19664 | 0.077075 | 0.043478 | 0.043478 | 0 | 0 | 0 | 0.018561 | 0.248719 | 3,514 | 121 | 88 | 29.041322 | 0.748106 | 0.014229 | 0 | 0.256637 | 0 | 0 | 0.12305 | 0.023686 | 0 | 0 | 0 | 0 | 0.070796 | 1 | 0.00885 | false | 0 | 0.044248 | 0 | 0.053097 | 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 |
a4b1c460b6c065a467161df65796be109740e64e | 5,851 | py | Python | src/paddle_prompt/templates/base_template.py | wj-Mcat/paddle-prompt | 3cc47c7cbda946fb9bc6e3032e8de17571e03cd4 | [
"Apache-2.0"
] | 1 | 2022-03-09T05:31:50.000Z | 2022-03-09T05:31:50.000Z | src/paddle_prompt/templates/base_template.py | wj-Mcat/paddle-prompt | 3cc47c7cbda946fb9bc6e3032e8de17571e03cd4 | [
"Apache-2.0"
] | null | null | null | src/paddle_prompt/templates/base_template.py | wj-Mcat/paddle-prompt | 3cc47c7cbda946fb9bc6e3032e8de17571e03cd4 | [
"Apache-2.0"
] | null | null | null | """Base Abstract Template class"""
from __future__ import annotations
import json
from abc import ABC
from collections import OrderedDict
from typing import Any, Dict, List
import numpy as np
import paddle
from paddle import nn
from paddlenlp.transformers.tokenizer_utils import PretrainedTokenizer
from paddle_prompt... | 33.626437 | 114 | 0.635105 | 729 | 5,851 | 4.876543 | 0.256516 | 0.024754 | 0.024754 | 0.022504 | 0.081575 | 0.050914 | 0.024754 | 0.024754 | 0 | 0 | 0 | 0.007184 | 0.286276 | 5,851 | 173 | 115 | 33.820809 | 0.844109 | 0.184755 | 0 | 0.056604 | 0 | 0 | 0.016354 | 0 | 0 | 0 | 0 | 0.023121 | 0.009434 | 1 | 0.075472 | false | 0 | 0.122642 | 0 | 0.264151 | 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 |
a4b236a4945b4b773f1daf37ffb005ccfb83b552 | 2,538 | py | Python | tests/test_eulerian.py | guojingyu/DeNovoAssembly | cd1f3e58c42f97197e73aed085ede07a924ebbdb | [
"MIT"
] | 4 | 2018-09-03T03:09:21.000Z | 2022-03-15T12:57:07.000Z | tests/test_eulerian.py | guojingyu/DeNovoAssembly | cd1f3e58c42f97197e73aed085ede07a924ebbdb | [
"MIT"
] | null | null | null | tests/test_eulerian.py | guojingyu/DeNovoAssembly | cd1f3e58c42f97197e73aed085ede07a924ebbdb | [
"MIT"
] | 3 | 2017-04-24T07:29:23.000Z | 2020-08-13T07:13:06.000Z | #!/usr/bin/env python
"""
Test eulerian functions including the random walk
Author : Jingyu Guo
"""
import unittest
from de_novo_assembly.de_bruijn_graph import DeBruijnGraph
from Bio.SeqRecord import SeqRecord
from de_novo_assembly.eulerian import has_euler_path, has_euler_circuit, \
make_contig_from_path, eule... | 35.25 | 77 | 0.559102 | 328 | 2,538 | 4.033537 | 0.259146 | 0.048375 | 0.036281 | 0.054422 | 0.21542 | 0.21164 | 0.060469 | 0.060469 | 0 | 0 | 0 | 0.043646 | 0.28684 | 2,538 | 71 | 78 | 35.746479 | 0.687293 | 0.025611 | 0 | 0.042553 | 0 | 0 | 0.083647 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 0 | null | null | 0 | 0.085106 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4be3796f527611e790afc6213becfff4d63182b | 1,936 | py | Python | deepreg/model/loss/deform.py | agrimwood/DeepRegFromMain20200714 | 1a1b82ca1e09ee03b1a04f35e192e3230be1c2eb | [
"Apache-2.0"
] | null | null | null | deepreg/model/loss/deform.py | agrimwood/DeepRegFromMain20200714 | 1a1b82ca1e09ee03b1a04f35e192e3230be1c2eb | [
"Apache-2.0"
] | null | null | null | deepreg/model/loss/deform.py | agrimwood/DeepRegFromMain20200714 | 1a1b82ca1e09ee03b1a04f35e192e3230be1c2eb | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
def local_displacement_energy(ddf, energy_type, **kwargs):
def gradient_dx(fv):
return (fv[:, 2:, 1:-1, 1:-1] - fv[:, :-2, 1:-1, 1:-1]) / 2
def gradient_dy(fv):
return (fv[:, 1:-1, 2:, 1:-1] - fv[:, 1:-1, :-2, 1:-1]) / 2
def gradient_dz(fv):
return (fv[:, ... | 35.2 | 70 | 0.571798 | 257 | 1,936 | 4.128405 | 0.217899 | 0.03016 | 0.02262 | 0.180961 | 0.389255 | 0.254477 | 0.214892 | 0.214892 | 0.214892 | 0.214892 | 0 | 0.045058 | 0.289256 | 1,936 | 54 | 71 | 35.851852 | 0.726017 | 0 | 0 | 0.173913 | 0 | 0 | 0.02531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152174 | false | 0 | 0.021739 | 0.086957 | 0.369565 | 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 |
a4c983cf47d6c5bcf243e3a9a793a1b99475e9b4 | 20,235 | py | Python | cogs/commands/misc/misc.py | DiscordGIR/Bloo | e23172950ebb664cc96d91222b35a90f7d9802c0 | [
"MIT"
] | 34 | 2021-10-30T16:48:28.000Z | 2022-03-25T03:22:12.000Z | cogs/commands/misc/misc.py | DiscordGIR/Bloo | e23172950ebb664cc96d91222b35a90f7d9802c0 | [
"MIT"
] | 9 | 2021-11-19T04:25:29.000Z | 2022-03-09T22:35:46.000Z | cogs/commands/misc/misc.py | DiscordGIR/Bloo | e23172950ebb664cc96d91222b35a90f7d9802c0 | [
"MIT"
] | 20 | 2021-11-05T21:14:59.000Z | 2022-03-30T21:15:40.000Z | import base64
import datetime
import io
import json
import traceback
import aiohttp
import discord
import pytimeparse
from data.services.guild_service import guild_service
from discord.commands import Option, slash_command, message_command, user_command
from discord.ext import commands
from discord.utils import forma... | 42.510504 | 247 | 0.629009 | 2,473 | 20,235 | 5.031945 | 0.182774 | 0.015188 | 0.018804 | 0.015911 | 0.293877 | 0.22549 | 0.197927 | 0.179444 | 0.144166 | 0.107843 | 0 | 0.015663 | 0.249073 | 20,235 | 475 | 248 | 42.6 | 0.802962 | 0.012849 | 0 | 0.186589 | 0 | 0.002915 | 0.210518 | 0.037519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023324 | false | 0.084548 | 0.06414 | 0.005831 | 0.116618 | 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 |
a4c9be815d012e1c1acce15131efcf8844daf07b | 14,699 | py | Python | src/preprocessing.py | smartdatalake/pathlearn | 9bf76e6ffc4c16800f53ed4e4985e6f6f3674756 | [
"Apache-2.0"
] | null | null | null | src/preprocessing.py | smartdatalake/pathlearn | 9bf76e6ffc4c16800f53ed4e4985e6f6f3674756 | [
"Apache-2.0"
] | null | null | null | src/preprocessing.py | smartdatalake/pathlearn | 9bf76e6ffc4c16800f53ed4e4985e6f6f3674756 | [
"Apache-2.0"
] | null | null | null | """This module provides various functions used to read/write and generate the data structures used for Path Learn"""
import networkx as nx
import random as rnd
import numpy as np
import pandas as pd
import os
def find_single_paths(G, node, lim, paths_lim=float('inf')):
"""
:param G: A NetworkX graph.
:pa... | 32.023965 | 165 | 0.572148 | 2,202 | 14,699 | 3.677112 | 0.108084 | 0.01482 | 0.004446 | 0.005928 | 0.434852 | 0.35013 | 0.29406 | 0.257256 | 0.209337 | 0.198469 | 0 | 0.016609 | 0.29138 | 14,699 | 458 | 166 | 32.093886 | 0.760753 | 0.285121 | 0 | 0.269076 | 1 | 0 | 0.034689 | 0.007177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0 | 0.02008 | 0 | 0.148594 | 0.036145 | 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 |
a4cad8e8992ae30f9b134717c3b3a0717a48b60e | 9,781 | py | Python | refinery/bnpy/bnpy-dev/tests/merge/TestMergeHDPTopicModel.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 103 | 2015-01-13T00:48:14.000Z | 2021-11-08T10:53:22.000Z | refinery/bnpy/bnpy-dev/tests/merge/TestMergeHDPTopicModel.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 7 | 2015-02-21T04:03:40.000Z | 2021-08-23T20:24:54.000Z | refinery/bnpy/bnpy-dev/tests/merge/TestMergeHDPTopicModel.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 27 | 2015-01-23T00:54:31.000Z | 2020-12-30T14:30:50.000Z | '''
Unit tests for MergeMove.py for HDPTopicModels
Verification merging works as expected and produces valid models.
Attributes
------------
self.Data : K=4 simple WordsData object from AbstractBaseTestForHDP
self.hmodel : K=4 simple bnpy model from AbstractBaseTestForHDP
Coverage
-----------
* run_many_merge_moves... | 42.71179 | 132 | 0.661896 | 1,211 | 9,781 | 5.218827 | 0.21057 | 0.031646 | 0.028481 | 0.018829 | 0.678006 | 0.635127 | 0.606171 | 0.582595 | 0.555222 | 0.540665 | 0 | 0.015274 | 0.216849 | 9,781 | 228 | 133 | 42.899123 | 0.809791 | 0.022595 | 0 | 0.540541 | 0 | 0 | 0.025867 | 0 | 0 | 0 | 0 | 0 | 0.175676 | 0 | null | null | 0 | 0.047297 | null | null | 0.087838 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4cb13969e913f20fb909e4c665d75e81e4a9503 | 5,309 | py | Python | bluzelle/codec/crud/Paging_pb2.py | hhio618/bluezelle-py | c38a07458a36305457680196e8c47372008db5ab | [
"MIT"
] | 3 | 2021-08-19T10:09:29.000Z | 2022-01-05T14:19:59.000Z | bluzelle/codec/crud/Paging_pb2.py | hhio618/bluzelle-py | c38a07458a36305457680196e8c47372008db5ab | [
"MIT"
] | null | null | null | bluzelle/codec/crud/Paging_pb2.py | hhio618/bluzelle-py | c38a07458a36305457680196e8c47372008db5ab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: crud/Paging.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.pro... | 30.687861 | 323 | 0.63722 | 546 | 5,309 | 5.90293 | 0.227106 | 0.039094 | 0.050264 | 0.058641 | 0.605337 | 0.587962 | 0.503258 | 0.475954 | 0.475954 | 0.475954 | 0 | 0.026396 | 0.257864 | 5,309 | 172 | 324 | 30.866279 | 0.791624 | 0.067244 | 0 | 0.675497 | 1 | 0.006623 | 0.155466 | 0.102632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02649 | 0 | 0.02649 | 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 |
a4d084b6842b2f5652d3fa521fd4534554cd0a32 | 518 | py | Python | terminal.py | TeknohouseID/rumah_aria_graha_NEW_2018 | c3513100f68ce57be477372bbc7176ddbde607ad | [
"Unlicense"
] | null | null | null | terminal.py | TeknohouseID/rumah_aria_graha_NEW_2018 | c3513100f68ce57be477372bbc7176ddbde607ad | [
"Unlicense"
] | null | null | null | terminal.py | TeknohouseID/rumah_aria_graha_NEW_2018 | c3513100f68ce57be477372bbc7176ddbde607ad | [
"Unlicense"
] | null | null | null | import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
pin_terminal = [15,16] #definisi pin GPIO yg terhubung ke relay terminal
GPIO.setup(pin_terminal, GPIO.OUT)
def terminal_on(pin): #fungsi untuk menyalakan lampu (NC)
GPIO.output(pin, 1)
def terminal_off(pin): #fungsi untuk mematikan lampu (... | 24.666667 | 96 | 0.758687 | 83 | 518 | 4.662651 | 0.60241 | 0.056848 | 0.072351 | 0.087855 | 0.103359 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027149 | 0.146718 | 518 | 20 | 97 | 25.9 | 0.848416 | 0.53668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4d3c18e507f51dc482e2dde54e9596a534b4b39 | 360 | py | Python | tests/test__init__.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | 1 | 2020-07-22T12:19:26.000Z | 2020-07-22T12:19:26.000Z | tests/test__init__.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | null | null | null | tests/test__init__.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | null | null | null | import pytest
import envpy
import os
folder = os.path.dirname(__file__)
folder_env_file = f'{folder}/resources'
file_dot_env = 'test.env'
def test__init__():
karg = {'filepath':folder_env_file, 'filename':file_dot_env}
envpy.get_variables(**karg)
envpy.printenv(envpy.get_variables(**karg))
if __name_... | 18 | 64 | 0.713889 | 49 | 360 | 4.632653 | 0.489796 | 0.079295 | 0.114537 | 0.185022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152778 | 360 | 20 | 65 | 18 | 0.744262 | 0 | 0 | 0 | 0 | 0 | 0.138504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.333333 | 0.083333 | 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 |
a4d975ef883007f74d9af2353db4314fdedd350c | 157 | py | Python | tests/cases/infer.py | div72/py2many | 60277bc13597bd32d078b88a7390715568115fc6 | [
"MIT"
] | 345 | 2021-01-28T17:33:08.000Z | 2022-03-25T16:07:56.000Z | tests/cases/infer.py | mkos11/py2many | be6cfaad5af32c43eb24f182cb20ad63b979d4ef | [
"MIT"
] | 291 | 2021-01-31T13:15:06.000Z | 2022-03-23T21:28:49.000Z | tests/cases/infer.py | mkos11/py2many | be6cfaad5af32c43eb24f182cb20ad63b979d4ef | [
"MIT"
] | 23 | 2021-02-09T17:15:03.000Z | 2022-02-03T05:57:44.000Z | #!/usr/bin/env python3
def foo():
a = 10
# infer that b is an int
b = a
assert b == 10
print(b)
if __name__ == "__main__":
foo()
| 11.214286 | 28 | 0.509554 | 25 | 157 | 2.88 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 0.350318 | 157 | 13 | 29 | 12.076923 | 0.656863 | 0.280255 | 0 | 0 | 0 | 0 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4dc9a387c6801eebbce5ef0b1a99718dbb8697f | 17,584 | py | Python | Sketches/RJL/bittorrent/BitTorrent/bittorrent-curses.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 12 | 2015-10-20T10:22:01.000Z | 2021-07-19T10:09:44.000Z | Sketches/RJL/bittorrent/BitTorrent/bittorrent-curses.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 2 | 2015-10-20T10:22:55.000Z | 2017-02-13T11:05:25.000Z | Sketches/RJL/bittorrent/BitTorrent/bittorrent-curses.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:59.000Z | 2020-03-01T13:06:21.000Z | #!/usr/bin/env python
# The contents of this file are subject to the BitTorrent Open Source License
# Version 1.1 (the License). You may not copy or use this file, in either
# source code or executable form, except in compliance with the License. You
# may obtain a copy of the License at http://www.bittorrent.com/li... | 38.988914 | 145 | 0.556187 | 2,041 | 17,584 | 4.709456 | 0.210681 | 0.025177 | 0.035581 | 0.027674 | 0.171036 | 0.117457 | 0.085518 | 0.053891 | 0.025177 | 0 | 0 | 0.02373 | 0.319381 | 17,584 | 450 | 146 | 39.075556 | 0.779412 | 0.052491 | 0 | 0.140212 | 0 | 0 | 0.09476 | 0 | 0 | 0 | 0 | 0 | 0.002646 | 0 | null | null | 0.005291 | 0.058201 | null | null | 0.029101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4e869698fe814d3a243ff2da3c5d64b703b2798 | 24,526 | py | Python | TAO/Firewall/EXPLOITS/ELBO/eligiblebombshell_1.2.0.1.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 46 | 2017-05-15T11:15:08.000Z | 2018-07-02T03:32:52.000Z | TAO/Firewall/EXPLOITS/ELBO/eligiblebombshell_1.2.0.1.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | null | null | null | TAO/Firewall/EXPLOITS/ELBO/eligiblebombshell_1.2.0.1.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 24 | 2017-05-17T03:26:17.000Z | 2018-07-09T07:00:50.000Z | #!/usr/bin/python
import shellcode
import optparse
import httplib
import logging
import random
import socket
import sys
import re
from struct import pack, unpack
from time import sleep
########################
# Global configuration #
########################
DEFAULT_ETAG_FILE = "ELBO.config"
VERSION = "%prog v1.0.0.... | 39.430868 | 273 | 0.544157 | 2,929 | 24,526 | 4.504268 | 0.185388 | 0.002577 | 0.017055 | 0.009551 | 0.207004 | 0.162056 | 0.12355 | 0.103388 | 0.103388 | 0.103388 | 0 | 0.029365 | 0.304371 | 24,526 | 621 | 274 | 39.494364 | 0.743919 | 0.049865 | 0 | 0.187891 | 0 | 0.016701 | 0.276007 | 0.011802 | 0 | 0 | 0.002772 | 0 | 0 | 0 | null | null | 0 | 0.022965 | null | null | 0.093946 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4f1604ce9428d0115f6455fe8e1046bdd00fa11 | 5,910 | py | Python | application/briefkasten/commands.py | tomster/briefkasten | 8de5eccd258b6f8c5884cf24596469389ffa48ff | [
"BSD-3-Clause"
] | 1 | 2019-01-21T12:41:40.000Z | 2019-01-21T12:41:40.000Z | application/briefkasten/commands.py | tomster/briefkasten | 8de5eccd258b6f8c5884cf24596469389ffa48ff | [
"BSD-3-Clause"
] | 1 | 2017-12-27T18:13:30.000Z | 2018-01-26T11:44:35.000Z | application/briefkasten/commands.py | tomster/briefkasten | 8de5eccd258b6f8c5884cf24596469389ffa48ff | [
"BSD-3-Clause"
] | null | null | null | import click
from os import path, listdir, rename, remove
from datetime import datetime
from sys import exit
from multiprocessing import Pool
from signal import signal, SIGINT
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
from threading import Condition
from .dropbox import... | 30.942408 | 107 | 0.642978 | 768 | 5,910 | 4.830729 | 0.277344 | 0.038814 | 0.019407 | 0.021563 | 0.330458 | 0.289757 | 0.281132 | 0.281132 | 0.256873 | 0.208895 | 0 | 0.003895 | 0.261421 | 5,910 | 190 | 108 | 31.105263 | 0.846048 | 0.125888 | 0 | 0.350365 | 0 | 0 | 0.175087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007299 | 0.072993 | null | null | 0.051095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4fdfb3a84f9a4748985f013f6aacec4b99c4f66 | 959 | py | Python | examples/basicServer.py | lwahlmeier/python-litesockets | 2d057e171ac56271c2a7c4e42425b6c6d7ed7011 | [
"Unlicense"
] | 1 | 2015-03-05T04:42:30.000Z | 2015-03-05T04:42:30.000Z | examples/basicServer.py | lwahlmeier/python-litesockets | 2d057e171ac56271c2a7c4e42425b6c6d7ed7011 | [
"Unlicense"
] | 1 | 2017-06-06T15:36:21.000Z | 2019-05-29T15:07:18.000Z | examples/basicServer.py | lwahlmeier/python-litesockets | 2d057e171ac56271c2a7c4e42425b6c6d7ed7011 | [
"Unlicense"
] | null | null | null | from litesockets import SocketExecuter, TcpServer
import time
#This starts a SocketExecuter with default of 5 threads
SE = SocketExecuter()
#creates a tcpServer listening on localhost port 11882 (socket is not open yet)
server = TcpServer("localhost", 11882)
#This is ran once the far side is connected
def newConnect... | 29.96875 | 83 | 0.754953 | 149 | 959 | 4.85906 | 0.557047 | 0.022099 | 0.030387 | 0.041436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025674 | 0.187696 | 959 | 31 | 84 | 30.935484 | 0.903723 | 0.573514 | 0 | 0 | 0 | 0 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3507ca02ee239037d5eef8f695a0bc5d29d25160 | 2,001 | py | Python | mathplotlib/calculate_polygon_area.py | ronistiawan/python-scripts | fa2fa0215d753f1eb2c5e1ce98a8f2f2eaaa8eef | [
"MIT"
] | null | null | null | mathplotlib/calculate_polygon_area.py | ronistiawan/python-scripts | fa2fa0215d753f1eb2c5e1ce98a8f2f2eaaa8eef | [
"MIT"
] | null | null | null | mathplotlib/calculate_polygon_area.py | ronistiawan/python-scripts | fa2fa0215d753f1eb2c5e1ce98a8f2f2eaaa8eef | [
"MIT"
] | null | null | null | from PIL import Image
import numpy as np
from matplotlib.path import Path
import matplotlib.pyplot as plt
import matplotlib.patches as patches
image = Image.open('samp3.png', 'r') #read image
image = image.convert('L') #convert image to greyscale
data = np.asarray(image) #convert image t... | 27.791667 | 88 | 0.541229 | 258 | 2,001 | 4.155039 | 0.422481 | 0.011194 | 0.026119 | 0.016791 | 0.037313 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007256 | 0.242379 | 2,001 | 72 | 89 | 27.791667 | 0.699868 | 0.223888 | 0 | 0.1 | 0 | 0 | 0.117152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
35150cb503f38ff16ebcf6a4b42f07d3240178e6 | 409 | py | Python | src/reducer/bohm_debug.py | fritzo/pomagma | 224bb6adab3fc68e2d853e6365b4b86a8f7f468f | [
"Apache-2.0"
] | 10 | 2015-06-09T00:25:01.000Z | 2019-06-11T16:07:31.000Z | src/reducer/bohm_debug.py | fritzo/pomagma | 224bb6adab3fc68e2d853e6365b4b86a8f7f468f | [
"Apache-2.0"
] | 25 | 2015-03-23T23:16:01.000Z | 2017-08-29T03:35:59.000Z | src/reducer/bohm_debug.py | fritzo/pomagma | 224bb6adab3fc68e2d853e6365b4b86a8f7f468f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
os.environ['POMAGMA_LOG_LEVEL'] = '3'
from pomagma.compiler.util import temp_memoize # isort:skip
from pomagma.reducer import bohm # isort:skip
print('Example 1.')
with temp_memoize():
bohm.sexpr_simplify('(ABS (ABS (1 0 (1 0))) (ABS (ABS (1 (0 0)))))')
print('Example 2.')
w... | 21.526316 | 72 | 0.655257 | 67 | 409 | 3.895522 | 0.432836 | 0.091954 | 0.08046 | 0.091954 | 0.360153 | 0.291188 | 0.291188 | 0.291188 | 0 | 0 | 0 | 0.046512 | 0.158924 | 409 | 18 | 73 | 22.722222 | 0.712209 | 0.102689 | 0 | 0.2 | 0 | 0.1 | 0.340659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3 | 0 | 0.3 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3517beedd46a5471e67dd32647db03c5051f3de7 | 5,038 | py | Python | scripts/selenium/test.py | Mlrobinson1993/trustroots | cecda00742896bba45276fc2095492ff5aebe25d | [
"MIT"
] | 377 | 2015-01-06T11:27:43.000Z | 2022-03-15T04:17:06.000Z | scripts/selenium/test.py | Mlrobinson1993/trustroots | cecda00742896bba45276fc2095492ff5aebe25d | [
"MIT"
] | 1,239 | 2015-01-01T14:05:18.000Z | 2022-03-30T06:00:39.000Z | scripts/selenium/test.py | Mlrobinson1993/trustroots | cecda00742896bba45276fc2095492ff5aebe25d | [
"MIT"
] | 176 | 2015-01-04T13:51:28.000Z | 2022-03-30T19:49:54.000Z | #!/usr/bin/env python
from browsers import browsers
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.support.wait import WebDriverWait
from selenium.common.exceptions import TimeoutExc... | 33.812081 | 95 | 0.645693 | 647 | 5,038 | 4.761978 | 0.236476 | 0.100617 | 0.09088 | 0.136319 | 0.409607 | 0.403116 | 0.395002 | 0.381045 | 0.381045 | 0.363843 | 0 | 0.006061 | 0.246725 | 5,038 | 148 | 96 | 34.040541 | 0.805797 | 0.017467 | 0 | 0.236842 | 0 | 0 | 0.105742 | 0.012738 | 0 | 0 | 0 | 0 | 0.017544 | 0 | null | null | 0.035088 | 0.105263 | null | null | 0.087719 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
352346172d80e787c3629f02731d55869cb32f15 | 2,223 | py | Python | main.py | Knysliux001/pocker | d7f6685db8db407b4f93ea330b9568f1dae39b90 | [
"MIT"
] | null | null | null | main.py | Knysliux001/pocker | d7f6685db8db407b4f93ea330b9568f1dae39b90 | [
"MIT"
] | null | null | null | main.py | Knysliux001/pocker | d7f6685db8db407b4f93ea330b9568f1dae39b90 | [
"MIT"
] | null | null | null | # import random
#
# deck = list()
# for suit in ["♦", "♥", "♠", "♣"]:
# for value in ["A", "K", "Q", "J", "10", "9", "8", "7", "6", "5", "4", "3", "2"]:
# deck.append((value, suit))
# r_sample = random.sample(deck, 7)
# print(r_sample)
from enum import Enum, auto, unique
class Suit(Enum):
... | 21.375 | 87 | 0.525416 | 264 | 2,223 | 4.253788 | 0.333333 | 0.0748 | 0.0374 | 0.050757 | 0.240427 | 0.083704 | 0.083704 | 0.083704 | 0.083704 | 0 | 0 | 0.020847 | 0.331084 | 2,223 | 103 | 88 | 21.582524 | 0.728985 | 0.103914 | 0 | 0.059701 | 0 | 0 | 0.002136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134328 | false | 0.014925 | 0.014925 | 0.059701 | 0.686567 | 0.044776 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
352401392d56cb0110d7577485af9d192f7adefa | 615 | py | Python | fclib/tests/test_dcnn.py | barrosm/forecasting | 86b421b71826b92e47c3e3cb6cdcbf7ff4a63b90 | [
"MIT"
] | 2,276 | 2020-04-07T17:38:30.000Z | 2022-03-30T12:24:55.000Z | fclib/tests/test_dcnn.py | barrosm/forecasting | 86b421b71826b92e47c3e3cb6cdcbf7ff4a63b90 | [
"MIT"
] | 31 | 2020-04-10T21:25:18.000Z | 2022-02-10T01:17:19.000Z | fclib/tests/test_dcnn.py | barrosm/forecasting | 86b421b71826b92e47c3e3cb6cdcbf7ff4a63b90 | [
"MIT"
] | 401 | 2020-04-07T18:52:22.000Z | 2022-03-29T04:26:29.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
from fclib.models.dilated_cnn import create_dcnn_model
def test_create_dcnn_model():
mod0 = create_dcnn_model(seq_len=1) # default args
assert mod0 is not None
mod1 = create_dcnn_model(
seq_len=1, n_dyn_fea=1, n_outputs=2,... | 30.75 | 119 | 0.720325 | 107 | 615 | 3.831776 | 0.457944 | 0.121951 | 0.182927 | 0.131707 | 0.526829 | 0.526829 | 0.473171 | 0.473171 | 0.473171 | 0.473171 | 0 | 0.066132 | 0.188618 | 615 | 19 | 120 | 32.368421 | 0.755511 | 0.131707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 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 |
352b63d351b0fa1ec394f4c8e0212687ff1e36ed | 3,290 | py | Python | oslo_cache/backends/dictionary.py | mail2nsrajesh/oslo.cache | f288eae21f625b9bb5063f525fcc18014848a64f | [
"Apache-2.0"
] | 29 | 2015-04-26T16:05:14.000Z | 2021-12-31T15:03:19.000Z | oslo_cache/backends/dictionary.py | mail2nsrajesh/oslo.cache | f288eae21f625b9bb5063f525fcc18014848a64f | [
"Apache-2.0"
] | null | null | null | oslo_cache/backends/dictionary.py | mail2nsrajesh/oslo.cache | f288eae21f625b9bb5063f525fcc18014848a64f | [
"Apache-2.0"
] | 19 | 2015-06-15T23:51:10.000Z | 2020-12-10T00:03:21.000Z | # Copyright 2015 Mirantis Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 30.747664 | 75 | 0.640426 | 439 | 3,290 | 4.715262 | 0.316629 | 0.03913 | 0.034783 | 0.017391 | 0.15942 | 0.078261 | 0.035749 | 0 | 0 | 0 | 0 | 0.006268 | 0.272644 | 3,290 | 106 | 76 | 31.037736 | 0.858755 | 0.491185 | 0 | 0.076923 | 0 | 0 | 0.021204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35307980268b82f9e8f16546c421f49a138ad4df | 7,477 | py | Python | census-us/custom-recipes/address-batch-geocoder-us-census-geo/recipe.py | RedaAffane/dataiku-contrib | d409ddc25d31570972a14abb19a84ac101afc6cc | [
"Apache-2.0"
] | null | null | null | census-us/custom-recipes/address-batch-geocoder-us-census-geo/recipe.py | RedaAffane/dataiku-contrib | d409ddc25d31570972a14abb19a84ac101afc6cc | [
"Apache-2.0"
] | null | null | null | census-us/custom-recipes/address-batch-geocoder-us-census-geo/recipe.py | RedaAffane/dataiku-contrib | d409ddc25d31570972a14abb19a84ac101afc6cc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import dataiku
import pandas as pd, numpy as np
from dataiku import pandasutils as pdu
import requests
#import time
from dataiku.customrecipe import *
import sys
import re
import geocoder_utils
import common
import os
logging.info('1/6 Creating base folder...' )
path_datadir_tmp = dataiku.get... | 35.77512 | 115 | 0.5216 | 829 | 7,477 | 4.418577 | 0.258142 | 0.056511 | 0.07644 | 0.068796 | 0.279006 | 0.176904 | 0.151515 | 0.151515 | 0.151515 | 0.151515 | 0 | 0.011247 | 0.345994 | 7,477 | 208 | 116 | 35.947115 | 0.737832 | 0.029156 | 0 | 0.19708 | 0 | 0 | 0.180262 | 0.006487 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072993 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35309344c14773040e0f8d93e109f4776a3d6c80 | 15,008 | py | Python | workers/macos/worker.py | joweeba/mrtaskman | cef92f11cca3de45c77b76a68a91d85af9c8fb48 | [
"Apache-2.0"
] | null | null | null | workers/macos/worker.py | joweeba/mrtaskman | cef92f11cca3de45c77b76a68a91d85af9c8fb48 | [
"Apache-2.0"
] | null | null | null | workers/macos/worker.py | joweeba/mrtaskman | cef92f11cca3de45c77b76a68a91d85af9c8fb48 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# di... | 34.501149 | 80 | 0.640259 | 1,775 | 15,008 | 5.287324 | 0.241127 | 0.012786 | 0.007459 | 0.010442 | 0.181779 | 0.141396 | 0.116782 | 0.09675 | 0.072882 | 0.072882 | 0 | 0.007213 | 0.260994 | 15,008 | 434 | 81 | 34.580645 | 0.838969 | 0.115005 | 0 | 0.271084 | 0 | 0 | 0.161537 | 0.009643 | 0 | 0 | 0 | 0.002304 | 0 | 0 | null | null | 0.012048 | 0.063253 | null | null | 0.003012 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
353598ee45be370c07fb9e8b962ed07021b6f3e8 | 578 | py | Python | photospicker/exception/abstract_exception.py | l-vo/photos-picker | 6790e0411bb46e3206ca778dbd83ddd1d4f90f21 | [
"MIT"
] | null | null | null | photospicker/exception/abstract_exception.py | l-vo/photos-picker | 6790e0411bb46e3206ca778dbd83ddd1d4f90f21 | [
"MIT"
] | 52 | 2018-08-31T05:57:04.000Z | 2019-02-19T15:26:40.000Z | photospicker/exception/abstract_exception.py | l-vo/photos-picker | 6790e0411bb46e3206ca778dbd83ddd1d4f90f21 | [
"MIT"
] | null | null | null | class AbstractException(Exception):
"""Abstract exception for project"""
def __init__(self, code, message):
"""
Constructor
:param int code: error code
:param str message: error message
"""
self._code = code
self._message = message
@property
def... | 18.645161 | 41 | 0.520761 | 54 | 578 | 5.425926 | 0.425926 | 0.081911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.384083 | 578 | 30 | 42 | 19.266667 | 0.823034 | 0.302768 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35361b12a2145f1e12f1ea888df65fc33ccd836c | 1,627 | py | Python | gtbook/linear.py | dellaert/nbdev_test | 793932be45ad75f0f1f0a03af6e4ae41e54b7857 | [
"Apache-2.0"
] | 5 | 2021-12-19T02:58:48.000Z | 2021-12-22T20:12:54.000Z | gtbook/linear.py | dellaert/nbdev_test | 793932be45ad75f0f1f0a03af6e4ae41e54b7857 | [
"Apache-2.0"
] | 2 | 2022-01-08T14:58:20.000Z | 2022-01-10T02:25:31.000Z | gtbook/linear.py | dellaert/nbdev_test | 793932be45ad75f0f1f0a03af6e4ae41e54b7857 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: linear.ipynb (unless otherwise specified).
__all__ = ['vv', 'denoising_MRF']
# Cell
import numpy as np
import gtsam
from gtsam import noiseModel
from .display import show
from typing import Dict
# Cell
def vv(keys_vectors: Dict[int, np.ndarray]):
"""Create a VectorVal... | 29.053571 | 86 | 0.598648 | 237 | 1,627 | 4.029536 | 0.371308 | 0.036649 | 0.025131 | 0.040838 | 0.100524 | 0.058639 | 0.058639 | 0.058639 | 0.058639 | 0.058639 | 0 | 0.017692 | 0.270436 | 1,627 | 55 | 87 | 29.581818 | 0.786858 | 0.143823 | 0 | 0 | 1 | 0 | 0.011747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.151515 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3539dc514be01a0a70e432b9eaf2771e8b35648e | 899 | py | Python | _0697_div3/D_Cleaning_the_Phone.py | mingweihe/codeforces | 8395d68a09373775009b76dbde189ce5bbba58ae | [
"MIT"
] | null | null | null | _0697_div3/D_Cleaning_the_Phone.py | mingweihe/codeforces | 8395d68a09373775009b76dbde189ce5bbba58ae | [
"MIT"
] | null | null | null | _0697_div3/D_Cleaning_the_Phone.py | mingweihe/codeforces | 8395d68a09373775009b76dbde189ce5bbba58ae | [
"MIT"
] | null | null | null | def solve(n, m, A, B):
ans = 0
ones, twos = [], []
for i in xrange(n):
if B[i] == 1: ones += A[i],
else: twos += A[i],
ones.sort()
twos.sort()
i, j = len(ones)-1, len(twos)-1
while m > 0 and (i >= 0 or j >= 0):
if i >= 0 and ones[i] >= m:
m -= ones[i]
... | 26.441176 | 49 | 0.404894 | 142 | 899 | 2.528169 | 0.260563 | 0.083565 | 0.122563 | 0.116992 | 0.270195 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051233 | 0.413793 | 899 | 33 | 50 | 27.242424 | 0.629981 | 0 | 0 | 0.125 | 0 | 0 | 0.008899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
354187da39692ce916dbf65d6fc9ecbdceb76905 | 239 | py | Python | pythonScript.py | qinenergy/QinBox | 9047d1fc6b7f1796820f13aabc1d7fe20cf8f34d | [
"MIT"
] | null | null | null | pythonScript.py | qinenergy/QinBox | 9047d1fc6b7f1796820f13aabc1d7fe20cf8f34d | [
"MIT"
] | null | null | null | pythonScript.py | qinenergy/QinBox | 9047d1fc6b7f1796820f13aabc1d7fe20cf8f34d | [
"MIT"
] | null | null | null | """
Lite install NLTK resource
"""
import nltk
dler = nltk.downloader.Downloader()
dler._update_index()
dler._status_cache['panlex_lite'] = 'installed' # Trick the index to treat panlex_lite as it's already installed.
dler.download('all')
| 26.555556 | 113 | 0.761506 | 34 | 239 | 5.176471 | 0.676471 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112971 | 239 | 8 | 114 | 29.875 | 0.830189 | 0.380753 | 0 | 0 | 0 | 0 | 0.164286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3544ad58108f77d2815d664fdbba023d8958f9ac | 354 | py | Python | opticmedian/utils/file_reader.py | QuicqDev/OpticRescue | f857e3b770f43958f1d687f164ea896aa5390482 | [
"MIT"
] | 2 | 2021-08-09T01:35:06.000Z | 2021-08-09T01:37:05.000Z | opticmedian/utils/file_reader.py | QuicqDev/OpticRescue | f857e3b770f43958f1d687f164ea896aa5390482 | [
"MIT"
] | 8 | 2021-08-07T15:27:48.000Z | 2021-09-05T18:24:29.000Z | opticmedian/utils/file_reader.py | ASH1998/OpticRescue | f857e3b770f43958f1d687f164ea896aa5390482 | [
"MIT"
] | 1 | 2021-08-09T01:37:23.000Z | 2021-08-09T01:37:23.000Z | """
class to read files in specific ways
"""
import glob
import random
class Filer:
"""
read files
"""
def __init__(self, file_path):
self.path = file_path
def get_random_iter(self):
"""
get file contents in random
"""
nb_files = sum(1 for _ in glob.iglob(self.path))
file_iter = glob.glob(self.path... | 13.615385 | 50 | 0.677966 | 55 | 354 | 4.127273 | 0.454545 | 0.105727 | 0.105727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003559 | 0.206215 | 354 | 25 | 51 | 14.16 | 0.80427 | 0.211864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35468d2fd3afa4235fa24ef45b8d2a4fc954d35d | 891 | py | Python | WeatherStationSensorsReader/controllers/wind_measurement_controller.py | weather-station-project/weather-station-sensors-reader | cda7902ee382248b41d14b9a2c0543817decbb4a | [
"MIT"
] | null | null | null | WeatherStationSensorsReader/controllers/wind_measurement_controller.py | weather-station-project/weather-station-sensors-reader | cda7902ee382248b41d14b9a2c0543817decbb4a | [
"MIT"
] | null | null | null | WeatherStationSensorsReader/controllers/wind_measurement_controller.py | weather-station-project/weather-station-sensors-reader | cda7902ee382248b41d14b9a2c0543817decbb4a | [
"MIT"
] | null | null | null | from controllers.controller import Controller
from dao.wind_measurement_dao import WindMeasurementDao
from sensors.wind_measurement_sensor import WindMeasurementSensor
class WindMeasurementController(Controller):
""" Represents the controller with the wind measurement sensor and DAO """
def __init__(self, an... | 59.4 | 132 | 0.560045 | 64 | 891 | 7.515625 | 0.4375 | 0.093555 | 0.12474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.393939 | 891 | 14 | 133 | 63.642857 | 0.890741 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.2 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3547f355d42e86cac54a2fa19887cfc08f3e0eb5 | 984 | py | Python | dashboard/migrations/0005_usercacherefreshtime.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 32 | 2016-03-25T01:03:13.000Z | 2022-01-15T19:35:42.000Z | dashboard/migrations/0005_usercacherefreshtime.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 4,858 | 2016-03-03T13:48:30.000Z | 2022-03-29T22:09:51.000Z | dashboard/migrations/0005_usercacherefreshtime.py | umarmughal824/micromasters | ea92d3bcea9be4601150fc497302ddacc1161622 | [
"BSD-3-Clause"
] | 20 | 2016-08-18T22:07:44.000Z | 2021-11-15T13:35:35.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-11-04 21:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | 33.931034 | 118 | 0.644309 | 103 | 984 | 5.990291 | 0.61165 | 0.038898 | 0.111831 | 0.13128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027815 | 0.232724 | 984 | 28 | 119 | 35.142857 | 0.789404 | 0.069106 | 0 | 0 | 1 | 0 | 0.100767 | 0.023001 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35489b42960c3642fb09f7d87e33db297be3e58b | 2,651 | py | Python | fluiddb/scripts/testing.py | fluidinfo/fluiddb | b5a8c8349f3eaf3364cc4efba4736c3e33b30d96 | [
"Apache-2.0"
] | 3 | 2021-05-10T14:41:30.000Z | 2021-12-16T05:53:30.000Z | fluiddb/scripts/testing.py | fluidinfo/fluiddb | b5a8c8349f3eaf3364cc4efba4736c3e33b30d96 | [
"Apache-2.0"
] | null | null | null | fluiddb/scripts/testing.py | fluidinfo/fluiddb | b5a8c8349f3eaf3364cc4efba4736c3e33b30d96 | [
"Apache-2.0"
] | 2 | 2018-01-24T09:03:21.000Z | 2021-06-25T08:34:54.000Z | import logging
from fluiddb.data.store import getMainStore
from fluiddb.exceptions import FeatureError
from fluiddb.model.namespace import NamespaceAPI
from fluiddb.model.tag import TagAPI
from fluiddb.model.user import UserAPI, getUser
TESTING_DATA = {
u'users': [
u'testuser1',
u'testuser2'],
... | 33.987179 | 78 | 0.629951 | 318 | 2,651 | 5.22956 | 0.27044 | 0.046302 | 0.050511 | 0.030667 | 0.144318 | 0.120265 | 0.088996 | 0.088996 | 0.088996 | 0.030066 | 0 | 0.008012 | 0.246699 | 2,651 | 77 | 79 | 34.428571 | 0.824737 | 0.126745 | 0 | 0.152542 | 0 | 0 | 0.255916 | 0.09071 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.033898 | false | 0 | 0.101695 | 0 | 0.135593 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.