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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2606469ab99b4d1e9de86a63e851f5b8c47b6530 | 1,054 | py | Python | Python_lxf/Python_Basic_Operation/SMTP_POP3/SMTP/SMTP_Both_HTMLandPlain.py | QAlexBall/Learning_Py | 8a5987946928a9d86f6807555ed435ac604b2c44 | [
"MIT"
] | 2 | 2019-01-24T15:06:59.000Z | 2019-01-25T07:34:45.000Z | Python_lxf/Python_Basic_Operation/SMTP_POP3/SMTP/SMTP_Both_HTMLandPlain.py | QAlexBall/Learning_Py | 8a5987946928a9d86f6807555ed435ac604b2c44 | [
"MIT"
] | 1 | 2019-12-23T09:45:11.000Z | 2019-12-23T09:45:11.000Z | Python_lxf/Python_Basic_Operation/SMTP_POP3/SMTP/SMTP_Both_HTMLandPlain.py | QAlexBall/Learning_Py | 8a5987946928a9d86f6807555ed435ac604b2c44 | [
"MIT"
] | 1 | 2019-07-18T14:21:35.000Z | 2019-07-18T14:21:35.000Z | from email import encoders
from email.header import Header
from email.mime.text import MIMEText
from email.utils import parseaddr, formataddr
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
import smtplib
from_addr = input('From: ') # 输入email地址
password = input('Password: ') # 输入ema... | 34 | 65 | 0.714421 | 146 | 1,054 | 5.034247 | 0.390411 | 0.073469 | 0.053061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010741 | 0.116698 | 1,054 | 31 | 66 | 34 | 0.778733 | 0.059772 | 0 | 0 | 0 | 0 | 0.170385 | 0.040568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.076923 | 0.269231 | 0 | 0.346154 | 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 |
2607c902764a0f37b9ee59b50fef9f5df8bdee66 | 6,449 | py | Python | _unittests/ut_sphinxext/test_image_extension.py | Pandinosaurus/pyquickhelper | 326276f656cf88989e4d0fcd006ada0d3735bd9e | [
"MIT"
] | 18 | 2015-11-10T08:09:23.000Z | 2022-02-16T11:46:45.000Z | _unittests/ut_sphinxext/test_image_extension.py | Pandinosaurus/pyquickhelper | 326276f656cf88989e4d0fcd006ada0d3735bd9e | [
"MIT"
] | 321 | 2015-06-14T21:34:28.000Z | 2021-11-28T17:10:03.000Z | _unittests/ut_sphinxext/test_image_extension.py | Pandinosaurus/pyquickhelper | 326276f656cf88989e4d0fcd006ada0d3735bd9e | [
"MIT"
] | 10 | 2015-06-20T01:35:00.000Z | 2022-01-19T15:54:32.000Z | """
@brief test log(time=4s)
@author Xavier Dupre
"""
import sys
import os
import logging
import unittest
import warnings
from io import StringIO
from docutils.parsers.rst import directives
from pyquickhelper.loghelper.flog import fLOG
from pyquickhelper.pycode import get_temp_folder, ExtTestCase
from pyquick... | 31.305825 | 109 | 0.550938 | 642 | 6,449 | 5.309969 | 0.247664 | 0.021121 | 0.034321 | 0.033441 | 0.672338 | 0.665884 | 0.665298 | 0.632737 | 0.589616 | 0.536228 | 0 | 0.00902 | 0.34672 | 6,449 | 205 | 110 | 31.458537 | 0.800142 | 0.040316 | 0 | 0.704698 | 0 | 0.013423 | 0.276716 | 0.011658 | 0 | 0 | 0 | 0 | 0.060403 | 1 | 0.040268 | false | 0 | 0.100671 | 0 | 0.147651 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
260c684d4d8d12178613ff0fe5120cd554875771 | 3,513 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/features/enterprise_support/tests/factories.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/features/enterprise_support/tests/factories.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/features/enterprise_support/tests/factories.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
Factoryboy factories.
"""
from uuid import UUID
import factory
from faker import Factory as FakerFactory
from enterprise.models import (
EnterpriseCourseEnrollment,
EnterpriseCustomer,
EnterpriseCustomerBrandingConfiguration,
EnterpriseCustomerIdentityProvider,
EnterpriseCustomerUser,
)
from... | 29.771186 | 115 | 0.738685 | 294 | 3,513 | 8.761905 | 0.278912 | 0.050466 | 0.05823 | 0.081522 | 0.398292 | 0.307065 | 0.293866 | 0.178183 | 0.178183 | 0.119953 | 0 | 0.00035 | 0.186735 | 3,513 | 117 | 116 | 30.025641 | 0.901295 | 0.335326 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.113636 | 0 | 0.727273 | 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 |
260e2f529ce1238694408ea9f3918daedfcc53a6 | 1,327 | py | Python | service/gdmservice.py | schmidltomas/raspberry-pi-home-dashboard | 1b0b7f3c458b433b04542c701e62d14c76877ba8 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | service/gdmservice.py | schmidltomas/raspberry-pi-home-dashboard | 1b0b7f3c458b433b04542c701e62d14c76877ba8 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | service/gdmservice.py | schmidltomas/raspberry-pi-home-dashboard | 1b0b7f3c458b433b04542c701e62d14c76877ba8 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
# coding=utf-8
import googlemaps
from datetime import datetime
import config
import logger
import json
"""Service for fetching traffic time data from Google Distance Matrix API."""
class GDMService:
origin = config.gdm_service['origin']
destination = config.gdm_service['destination']
mode ... | 33.175 | 92 | 0.732479 | 173 | 1,327 | 5.491329 | 0.381503 | 0.056842 | 0.101053 | 0.066316 | 0.086316 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0.010187 | 0.112283 | 1,327 | 39 | 93 | 34.025641 | 0.796265 | 0.03994 | 0 | 0 | 0 | 0 | 0.193467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
260f20ea911f8da1f7395eaabe7d1d3f0ebef5a0 | 682 | py | Python | python/kyu7/fusionChamberShutdown.py | Enestst/codewars | f8edffa7439a035109b1c56304a958516ade1a08 | [
"MIT"
] | null | null | null | python/kyu7/fusionChamberShutdown.py | Enestst/codewars | f8edffa7439a035109b1c56304a958516ade1a08 | [
"MIT"
] | null | null | null | python/kyu7/fusionChamberShutdown.py | Enestst/codewars | f8edffa7439a035109b1c56304a958516ade1a08 | [
"MIT"
] | null | null | null | # Make sure you follow the order of reaction
# output should be H2O,CO2,CH4
def burner(c,h,o):
water = co2 = methane = 0
if h >= 2 and o >= 1:
if 2 * o >= h:
water = h // 2
o -= water
h -= 2*water
else:
water = o
o -= water
... | 22 | 44 | 0.357771 | 95 | 682 | 2.568421 | 0.305263 | 0.032787 | 0.086066 | 0.065574 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0875 | 0.530792 | 682 | 30 | 45 | 22.733333 | 0.675 | 0.104106 | 0 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.076923 | 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 |
261a224988d52e25c04182198cd77328fa3ad5a2 | 378 | py | Python | src/shop/migrations/0007_auto_20200103_1526.py | bacha-11/E-commerce | 55cea2610d6dfe1d284ebff4eb2a8065b5719aa2 | [
"bzip2-1.0.6"
] | null | null | null | src/shop/migrations/0007_auto_20200103_1526.py | bacha-11/E-commerce | 55cea2610d6dfe1d284ebff4eb2a8065b5719aa2 | [
"bzip2-1.0.6"
] | null | null | null | src/shop/migrations/0007_auto_20200103_1526.py | bacha-11/E-commerce | 55cea2610d6dfe1d284ebff4eb2a8065b5719aa2 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.1.5 on 2020-01-03 10:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0006_orders_amount'),
]
operations = [
migrations.AlterField(
model_name='product',
name='desc',
... | 19.894737 | 51 | 0.589947 | 41 | 378 | 5.341463 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082397 | 0.293651 | 378 | 18 | 52 | 21 | 0.737828 | 0.119048 | 0 | 0 | 1 | 0 | 0.099698 | 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 |
261ff87fe623df0b8774a21504f028b160bf44c0 | 865 | py | Python | Chapter15/python_object_to_json.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 116 | 2018-12-21T01:05:47.000Z | 2022-03-23T21:41:41.000Z | Chapter15/python_object_to_json.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 2 | 2021-03-31T19:36:19.000Z | 2021-06-10T22:29:26.000Z | Chapter15/python_object_to_json.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 147 | 2018-12-19T14:10:32.000Z | 2022-03-20T11:03:20.000Z | import json
python_dict = {"Name": "Harry", "Age": 26}
python_list = ["Mumbai", "Pune"]
python_tuple = ("Basketball", "Cricket")
python_str = ("hello_world")
python_int = (150)
python_float = (59.66)
python_T = (True)
python_F = (False)
python_N = (None)
json_obj = json.dumps(python_dict)
json_arr1 = json.du... | 26.212121 | 43 | 0.712139 | 135 | 865 | 4.288889 | 0.318519 | 0.139896 | 0.233161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027926 | 0.130636 | 865 | 32 | 44 | 27.03125 | 0.742021 | 0 | 0 | 0 | 0 | 0 | 0.190972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0.321429 | 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 |
26281ed515fd48e0ed839954fb9a4f20d12f9625 | 992 | py | Python | data/py/shared/predictable_model.py | supby/DeepSportsAnalytics | fef967edca5ab43d422d4e3c328809f51cc06358 | [
"MIT"
] | null | null | null | data/py/shared/predictable_model.py | supby/DeepSportsAnalytics | fef967edca5ab43d422d4e3c328809f51cc06358 | [
"MIT"
] | null | null | null | data/py/shared/predictable_model.py | supby/DeepSportsAnalytics | fef967edca5ab43d422d4e3c328809f51cc06358 | [
"MIT"
] | null | null | null | import numpy as np
import theano
# function for classifying a input vector
def classify_ann(ann, inp):
inp = np.asarray(inp)
inp.shape = (1, np.shape(inp)[0])
# print ['{:.2f}'.format(float(v)) for v in ann.fprop(theano.shared(inp, name='inputs')).eval()[0]]
return np.argmax(ann.fprop(theano.shared(inp,... | 33.066667 | 102 | 0.603831 | 156 | 992 | 3.788462 | 0.352564 | 0.040609 | 0.071066 | 0.101523 | 0.451777 | 0.451777 | 0.451777 | 0.451777 | 0.389171 | 0.389171 | 0 | 0.019481 | 0.22379 | 992 | 29 | 103 | 34.206897 | 0.748052 | 0.242944 | 0 | 0.181818 | 0 | 0 | 0.041499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
26288b8927ba510f53bfeb4550c952dc67010817 | 1,574 | py | Python | oidc_provider/settings.py | davidcerezal/django-oidc-provider | 989b110bf0a0681db45036cd1a130634b278d971 | [
"MIT"
] | 1 | 2021-05-07T15:59:36.000Z | 2021-05-07T15:59:36.000Z | oidc_provider/settings.py | davidcerezal/django-oidc-provider | 989b110bf0a0681db45036cd1a130634b278d971 | [
"MIT"
] | null | null | null | oidc_provider/settings.py | davidcerezal/django-oidc-provider | 989b110bf0a0681db45036cd1a130634b278d971 | [
"MIT"
] | null | null | null | from django.conf import settings
class DefaultSettings(object):
@property
def LOGIN_URL(self):
"""
REQUIRED.
"""
return None
@property
def SITE_URL(self):
"""
REQUIRED.
"""
return None
@property
def OIDC_AFTER_USERLOGIN_HOOK(se... | 18.963855 | 74 | 0.548285 | 151 | 1,574 | 5.529801 | 0.423841 | 0.105389 | 0.107784 | 0.086228 | 0.220359 | 0.189222 | 0.189222 | 0.102994 | 0.102994 | 0 | 0 | 0.011952 | 0.362135 | 1,574 | 83 | 75 | 18.963855 | 0.819721 | 0.07751 | 0 | 0.325 | 0 | 0 | 0.024741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275 | false | 0 | 0.05 | 0.05 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
263a573c6fc0dd066e7e17a00d38c0af6ac0619c | 6,264 | py | Python | src/streamtools/__init__.py | no1xsyzy/stream | c41de5e8cf9d168a48aa245b5620837260d8a6af | [
"MIT"
] | null | null | null | src/streamtools/__init__.py | no1xsyzy/stream | c41de5e8cf9d168a48aa245b5620837260d8a6af | [
"MIT"
] | null | null | null | src/streamtools/__init__.py | no1xsyzy/stream | c41de5e8cf9d168a48aa245b5620837260d8a6af | [
"MIT"
] | null | null | null | """analog to itertools from standard library"""
import operator
from functools import partial
from sicp_streams import Stream
def smap(func, *streams):
def resolve():
tails = [s.tail for s in streams]
if not all(tails):
return None
else:
return smap(func, *tails)
... | 27.84 | 95 | 0.620051 | 834 | 6,264 | 4.63789 | 0.125899 | 0.062048 | 0.040331 | 0.037229 | 0.407187 | 0.373061 | 0.25879 | 0.25879 | 0.218718 | 0.193899 | 0 | 0.002424 | 0.275543 | 6,264 | 224 | 96 | 27.964286 | 0.849934 | 0.054917 | 0 | 0.372671 | 0 | 0 | 0.000678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.018634 | 0.006211 | 0.52795 | 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 |
26445cbc19a4abfe6256fb698402015747573483 | 1,711 | py | Python | src/spn/tests/old/test_tf.py | kripa-experiments/SPFlow | 32eada604bf5442d8aa10223581b187f7a57d540 | [
"Apache-2.0"
] | null | null | null | src/spn/tests/old/test_tf.py | kripa-experiments/SPFlow | 32eada604bf5442d8aa10223581b187f7a57d540 | [
"Apache-2.0"
] | null | null | null | src/spn/tests/old/test_tf.py | kripa-experiments/SPFlow | 32eada604bf5442d8aa10223581b187f7a57d540 | [
"Apache-2.0"
] | null | null | null | '''
Created on March 28, 2018
@author: Alejandro Molina
'''
import numpy as np
from joblib import Memory
from spn.algorithms.Inference import likelihood, histogram_likelihood
from spn.algorithms.StructureLearning import learn_structure
from spn.algorithms.splitting.Clustering import get_split_rows_KMeans
from spn.alg... | 35.645833 | 113 | 0.752776 | 264 | 1,711 | 4.655303 | 0.378788 | 0.045566 | 0.05533 | 0.031733 | 0.213181 | 0.172498 | 0.155411 | 0.155411 | 0.155411 | 0.108218 | 0 | 0.022911 | 0.132671 | 1,711 | 47 | 114 | 36.404255 | 0.805256 | 0.030392 | 0 | 0.068966 | 0 | 0 | 0.075106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.344828 | 0 | 0.413793 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2645ef0f4c9f7470284ee20bb7fc2d1a59ffc0e7 | 9,156 | py | Python | src/dockerbuilder.py | andersonpem/dockerbuilder | 11456fe24ffb40386b79a608fa08010f7e3f9151 | [
"MIT"
] | null | null | null | src/dockerbuilder.py | andersonpem/dockerbuilder | 11456fe24ffb40386b79a608fa08010f7e3f9151 | [
"MIT"
] | null | null | null | src/dockerbuilder.py | andersonpem/dockerbuilder | 11456fe24ffb40386b79a608fa08010f7e3f9151 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import os.path
import sys
import subprocess
from os import path
from time import sleep
import ctypes
#5 no M makes the text blink
clear = lambda: os.system('clear')
green = "\033[1;32;2m"
greenblink = "\033[1;32;5m"
yellow = "\033[1;33;2m"
yellowblink = "\033[1;3... | 41.058296 | 167 | 0.541612 | 1,074 | 9,156 | 4.608007 | 0.252328 | 0.046676 | 0.014548 | 0.013134 | 0.352596 | 0.307941 | 0.276419 | 0.276419 | 0.25096 | 0.25096 | 0 | 0.01195 | 0.168305 | 9,156 | 222 | 168 | 41.243243 | 0.637951 | 0.014308 | 0 | 0.411168 | 0 | 0.025381 | 0.535698 | 0.163747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040609 | false | 0 | 0.035533 | 0 | 0.081218 | 0.406091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2649de338d656785496d232f63b783fbf14ee715 | 710 | py | Python | lincon/tests/test_lincon.py | mirca/lincon | 8c34655d36b4acc07846510397d11d0e40ff9dbc | [
"MIT"
] | 6 | 2019-07-26T16:47:21.000Z | 2021-02-01T07:04:12.000Z | lincon/tests/test_lincon.py | mirca/lincon | 8c34655d36b4acc07846510397d11d0e40ff9dbc | [
"MIT"
] | null | null | null | lincon/tests/test_lincon.py | mirca/lincon | 8c34655d36b4acc07846510397d11d0e40ff9dbc | [
"MIT"
] | 1 | 2019-10-18T18:34:58.000Z | 2019-10-18T18:34:58.000Z | #import quadprog
import numpy as np
from lincon import qp
Qmat = np.array([[2., .5], [.5, 1]], dtype=np.float64)
w0 = .5 * np.ones(2, dtype=np.float64)
qvec = np.ones(2, dtype=np.float64)
Cmat = np.atleast_2d(np.ones(2, dtype=np.float64))
Dmat = np.array([[-1, 0], [0, -1]], dtype=np.float64)
cvec = np.ones(1, dtype=np... | 33.809524 | 71 | 0.646479 | 128 | 710 | 3.539063 | 0.382813 | 0.108168 | 0.216336 | 0.13245 | 0.139073 | 0.139073 | 0 | 0 | 0 | 0 | 0 | 0.076033 | 0.147887 | 710 | 20 | 72 | 35.5 | 0.672727 | 0.107042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2654e9eb0acfdd3135a03584ef4e18a8d158c573 | 724 | py | Python | conf.py | mrcromulent/ZoomBot | 7b613fab954e54989e5bca79aae229c5c5f6872d | [
"MIT"
] | 3 | 2020-07-26T13:53:28.000Z | 2021-02-07T23:32:58.000Z | conf.py | mrcromulent/ZoomBot | 7b613fab954e54989e5bca79aae229c5c5f6872d | [
"MIT"
] | 1 | 2020-09-26T02:55:01.000Z | 2020-09-27T02:15:08.000Z | conf.py | mrcromulent/ZoomBot | 7b613fab954e54989e5bca79aae229c5c5f6872d | [
"MIT"
] | 3 | 2020-07-22T04:16:06.000Z | 2021-02-07T23:33:00.000Z | """
Variables for configuration of zoom meetings using SCA Room Assign Tool
"""
N = 1
SESSION_PATH = "session_info.obj"
CHROME_PATH = "C:/ChromeDriver/chromedriver.exe"
existing_meeting_id = None # either a valid meeting ID or None, e.g. "860 1959 8282"
username = ""
password ... | 30.166667 | 113 | 0.617403 | 80 | 724 | 5.3875 | 0.6125 | 0.076566 | 0.083527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026022 | 0.256906 | 724 | 23 | 114 | 31.478261 | 0.775093 | 0.176796 | 0 | 0 | 0 | 0 | 0.331633 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0 | 0 | 0 | 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 |
2656007abe45e67d546bbe2528415bd39d210802 | 780 | py | Python | misc/split_read_libraries.py | hurwitzlab/LSA-pipeline | 0515fe325ccf49c7914ea8aa1404cdee6dfe2648 | [
"MIT"
] | 39 | 2015-09-20T06:33:54.000Z | 2021-12-21T06:59:53.000Z | misc/split_read_libraries.py | hurwitzlab/LSA-pipeline | 0515fe325ccf49c7914ea8aa1404cdee6dfe2648 | [
"MIT"
] | 23 | 2015-09-23T12:00:43.000Z | 2020-05-27T15:42:11.000Z | misc/split_read_libraries.py | hurwitzlab/LSA-pipeline | 0515fe325ccf49c7914ea8aa1404cdee6dfe2648 | [
"MIT"
] | 19 | 2015-10-16T21:40:12.000Z | 2020-11-10T07:58:00.000Z | #!/usr/bin/env python
import sys, getopt
if __name__ == "__main__":
try:
opts, args = getopt.getopt(sys.argv[1:],'hi:o:',["inputfile=","outputdir="])
except:
print help_message
sys.exit(2)
for opt, arg in opts:
if opt in ('-h','--help'):
print help_message
sys.exit()
elif opt in ('-i','--inputfile'... | 22.941176 | 78 | 0.592308 | 121 | 780 | 3.677686 | 0.429752 | 0.067416 | 0.040449 | 0.085393 | 0.103371 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008013 | 0.2 | 780 | 34 | 79 | 22.941176 | 0.705128 | 0.05641 | 0 | 0.2 | 0 | 0 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2659c3d6ee7da20a5830c6ce1808c365ab9c9dd6 | 3,309 | py | Python | var/spack/repos/builtin/packages/visionary-analysis/package.py | electronicvisions/spack | d6121eb35b4948f7d8aef7ec7a305a5123a7439e | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-10T13:47:48.000Z | 2019-04-17T13:05:17.000Z | var/spack/repos/builtin/packages/visionary-analysis/package.py | einc-eu/spack | 15468b92ed21d970c0111ae19144e85e66746433 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-05-28T06:39:59.000Z | 2022-03-30T15:12:35.000Z | var/spack/repos/builtin/packages/visionary-analysis/package.py | einc-eu/spack | 15468b92ed21d970c0111ae19144e85e66746433 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2018-04-06T09:04:11.000Z | 2020-01-24T12:52:12.000Z | ##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | 38.476744 | 124 | 0.673013 | 461 | 3,309 | 4.744035 | 0.477223 | 0.144033 | 0.165981 | 0.019204 | 0.096022 | 0.096022 | 0.096022 | 0.049383 | 0.049383 | 0.049383 | 0 | 0.029646 | 0.164098 | 3,309 | 85 | 125 | 38.929412 | 0.761027 | 0.440012 | 0 | 0 | 0 | 0 | 0.369212 | 0.03187 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.022727 | false | 0 | 0.022727 | 0 | 0.113636 | 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 |
265bfbf45ac7e4681569028058100a8e4f3cf54c | 2,394 | py | Python | message_recall/tests/test_utils.py | google/googleapps-message-recall | c1a078ea76ac844aab0750b92fb491623cdf00e1 | [
"Apache-2.0"
] | 12 | 2015-03-17T11:58:05.000Z | 2020-08-30T12:36:48.000Z | message_recall/tests/test_utils.py | google/googleapps-message-recall | c1a078ea76ac844aab0750b92fb491623cdf00e1 | [
"Apache-2.0"
] | 3 | 2015-08-31T16:05:07.000Z | 2016-04-08T18:31:46.000Z | message_recall/tests/test_utils.py | google/googleapps-message-recall | c1a078ea76ac844aab0750b92fb491623cdf00e1 | [
"Apache-2.0"
] | 15 | 2015-06-01T21:17:36.000Z | 2021-10-12T03:39:20.000Z | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 34.695652 | 74 | 0.715539 | 327 | 2,394 | 5.174312 | 0.51682 | 0.035461 | 0.015366 | 0.018913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005214 | 0.19883 | 2,394 | 68 | 75 | 35.205882 | 0.876955 | 0.495823 | 0 | 0 | 0 | 0 | 0.134249 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
265ccb49dc9654339f200f1d7e46a42a1ad3d29c | 213 | py | Python | intro-to-python.py | mlatmd/intro-to-ml | 515e8fc8955b7d5289064c4d7b9e21d3e0a16351 | [
"MIT"
] | 2 | 2017-10-26T23:12:46.000Z | 2017-10-27T02:43:48.000Z | intro-to-python.py | mlatmd/intro-to-ml | 515e8fc8955b7d5289064c4d7b9e21d3e0a16351 | [
"MIT"
] | null | null | null | intro-to-python.py | mlatmd/intro-to-ml | 515e8fc8955b7d5289064c4d7b9e21d3e0a16351 | [
"MIT"
] | 1 | 2018-03-13T04:20:32.000Z | 2018-03-13T04:20:32.000Z | # This is how we print something
print("Hello!")
# Let's use python3 hello.py to run the program
# We can set variables
my_variable = 5
print(my_variable)
# We can make a list
my_list = [1, 2, 3]
print(my_list) | 17.75 | 47 | 0.713615 | 41 | 213 | 3.609756 | 0.682927 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028902 | 0.187793 | 213 | 12 | 48 | 17.75 | 0.82659 | 0.544601 | 0 | 0 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
266185639ab48de87ab97efdd9361cb1ad2f8d08 | 1,258 | py | Python | app/migrations/0001_initial.py | leonolan2020/pedigree | 2413a3f3528ba42670c793a757ddbb0a7b3e3196 | [
"MIT"
] | null | null | null | app/migrations/0001_initial.py | leonolan2020/pedigree | 2413a3f3528ba42670c793a757ddbb0a7b3e3196 | [
"MIT"
] | null | null | null | app/migrations/0001_initial.py | leonolan2020/pedigree | 2413a3f3528ba42670c793a757ddbb0a7b3e3196 | [
"MIT"
] | 1 | 2021-01-30T00:53:48.000Z | 2021-01-30T00:53:48.000Z | # Generated by Django 3.1.3 on 2020-11-12 00:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person',
fields=[
('id', models.AutoField(a... | 39.3125 | 123 | 0.58903 | 132 | 1,258 | 5.409091 | 0.44697 | 0.154062 | 0.084034 | 0.07563 | 0.291317 | 0.260504 | 0.260504 | 0.260504 | 0.140056 | 0.140056 | 0 | 0.022654 | 0.263116 | 1,258 | 31 | 124 | 40.580645 | 0.747573 | 0.035771 | 0 | 0 | 1 | 0 | 0.161024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26733536afee03cb10c6104fda738d93a4c70225 | 5,017 | py | Python | processing.py | ding05/GraphWaves | 3365b68d6303311d9801937dafd92e51edb74ce0 | [
"MIT"
] | null | null | null | processing.py | ding05/GraphWaves | 3365b68d6303311d9801937dafd92e51edb74ce0 | [
"MIT"
] | null | null | null | processing.py | ding05/GraphWaves | 3365b68d6303311d9801937dafd92e51edb74ce0 | [
"MIT"
] | null | null | null | import numpy as np
from numpy import asarray, save
import math
import pandas as pd
import xarray as xr
from sklearn.metrics.pairwise import haversine_distances
# Read the dataset.
soda = xr.open_dataset('data/soda_224_pt_l5.nc', decode_times=False)
print("SODA v2.2.4:")
print(soda)
print("------------... | 29.863095 | 142 | 0.701415 | 739 | 5,017 | 4.511502 | 0.23816 | 0.065987 | 0.026995 | 0.037493 | 0.283443 | 0.169166 | 0.091782 | 0.04919 | 0.021596 | 0 | 0 | 0.022864 | 0.136934 | 5,017 | 168 | 143 | 29.863095 | 0.747113 | 0.091688 | 0 | 0.212389 | 0 | 0 | 0.182275 | 0.005025 | 0 | 0 | 0 | 0 | 0.00885 | 1 | 0.026549 | false | 0 | 0.053097 | 0.00885 | 0.106195 | 0.433628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
267b71ff0c77af294d7a607a78812b5112f774d3 | 4,373 | py | Python | csvtoxml.py | sp1d3rx/nonsense | c372361ed18ed8996a69182d996feb97007a2387 | [
"Unlicense"
] | 1 | 2016-05-16T02:11:03.000Z | 2016-05-16T02:11:03.000Z | csvtoxml.py | sp1d3rx/nonsense | c372361ed18ed8996a69182d996feb97007a2387 | [
"Unlicense"
] | null | null | null | csvtoxml.py | sp1d3rx/nonsense | c372361ed18ed8996a69182d996feb97007a2387 | [
"Unlicense"
] | null | null | null | # CSV to XML converter...
# Converts your CSV file into XML using a list of tags.
# Fields in CSV must be in the order they will be in XML file.
import sys
import string
import csv
from xml.sax.saxutils import escape
xrclc={'\'':"'", '\"':'"', u'\u2019':''', u'\u2013':'-'} # for escape...
"""
S = start... | 40.119266 | 525 | 0.565287 | 539 | 4,373 | 4.549165 | 0.454545 | 0.011419 | 0.020799 | 0.014682 | 0.026101 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051684 | 0.314201 | 4,373 | 108 | 526 | 40.490741 | 0.765922 | 0.380059 | 0 | 0.196078 | 0 | 0 | 0.227948 | 0.060817 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
26831b7c97b1ab915854fbd1a6818598e712754d | 442 | py | Python | application/application/__init__.py | Terkea/kiosk | 86a6520f9d91d7bacca915d3740da802e3efb510 | [
"MIT"
] | null | null | null | application/application/__init__.py | Terkea/kiosk | 86a6520f9d91d7bacca915d3740da802e3efb510 | [
"MIT"
] | null | null | null | application/application/__init__.py | Terkea/kiosk | 86a6520f9d91d7bacca915d3740da802e3efb510 | [
"MIT"
] | null | null | null | from flask import Flask
from application.database import db_session
app = Flask(__name__)
app.config['SECRET_KEY'] = 'SUPER_MEGA_SECURE_KEY'
# As in the declarative approach, you need to close the session
# after each request or application context shutdown.
# Put this into your application module:
@app.teard... | 31.571429 | 64 | 0.778281 | 61 | 442 | 5.442623 | 0.688525 | 0.090361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158371 | 442 | 14 | 65 | 31.571429 | 0.892473 | 0.361991 | 0 | 0 | 0 | 0 | 0.116981 | 0.079245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
268870589256ef32c5e998d0d23e14d69fae6d2e | 4,051 | py | Python | cloudia/word_data.py | kakadaXY/cloudia | 49d14dfea48e4b743d386ecc596cf50d6f94c7e1 | [
"MIT"
] | 128 | 2020-04-29T12:25:21.000Z | 2021-11-08T11:15:30.000Z | cloudia/word_data.py | kakadaXY/cloudia | 49d14dfea48e4b743d386ecc596cf50d6f94c7e1 | [
"MIT"
] | 15 | 2020-04-29T20:21:40.000Z | 2020-05-08T23:27:41.000Z | cloudia/word_data.py | kakadaXY/cloudia | 49d14dfea48e4b743d386ecc596cf50d6f94c7e1 | [
"MIT"
] | 9 | 2020-04-29T12:30:04.000Z | 2020-09-24T12:53:27.000Z | from typing import Any, List, Tuple, Dict, Callable, Union
from itertools import repeat, chain, zip_longest
from collections import Counter
from joblib import Parallel, delayed
import pandas as pd
from cloudia.utils import function_wrapper, make_nagisa_tagger
class WordData:
def __init__(self, data: Any, parse_... | 45.516854 | 151 | 0.58356 | 523 | 4,051 | 4.382409 | 0.196941 | 0.051047 | 0.036649 | 0.041449 | 0.267888 | 0.22993 | 0.200698 | 0.168412 | 0.132635 | 0.089878 | 0 | 0.005164 | 0.282893 | 4,051 | 88 | 152 | 46.034091 | 0.783821 | 0.00395 | 0 | 0.078947 | 0 | 0 | 0.015869 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.105263 | false | 0 | 0.078947 | 0 | 0.289474 | 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 |
cd0c099b4cb4d030698eb6d09ad18081a596bbff | 5,683 | py | Python | scripts/main.py | litengyao/adsb-attack-data-generator | e1c3da8f08459bf11484c719b14c100dc06d68a3 | [
"Apache-2.0"
] | 4 | 2020-03-10T08:09:01.000Z | 2021-05-28T07:06:45.000Z | scripts/main.py | litengyao/adsb-attack-data-generator | e1c3da8f08459bf11484c719b14c100dc06d68a3 | [
"Apache-2.0"
] | null | null | null | scripts/main.py | litengyao/adsb-attack-data-generator | e1c3da8f08459bf11484c719b14c100dc06d68a3 | [
"Apache-2.0"
] | 1 | 2020-10-14T07:53:39.000Z | 2020-10-14T07:53:39.000Z | """
The script is used to generate the attack data set
author: Tengyao Li
date: 2019/04/30
"""
import logging
from attack_pattern.tampering_attack import tampering_attack
from attack_pattern.ghost_attack import ghost_attack
from attack_pattern.replay_attack import replay_attack
from attack_pattern.dos_attack import d... | 48.991379 | 115 | 0.614464 | 698 | 5,683 | 4.667622 | 0.186246 | 0.055249 | 0.071823 | 0.093923 | 0.474217 | 0.451504 | 0.442603 | 0.442603 | 0.442603 | 0.319828 | 0 | 0.035732 | 0.281014 | 5,683 | 115 | 116 | 49.417391 | 0.761625 | 0.052789 | 0 | 0.217949 | 1 | 0 | 0.151899 | 0.10443 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012821 | 0.089744 | 0 | 0.089744 | 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 |
cd117413c94840d9dea024b613197bbf79e737ac | 5,801 | py | Python | yuno/security/hash.py | Animenosekai/yuno | bcc48f7ceda022e26392e653c03606d3f5f66806 | [
"MIT"
] | 1 | 2022-02-25T13:39:18.000Z | 2022-02-25T13:39:18.000Z | yuno/security/hash.py | Animenosekai/yuno | bcc48f7ceda022e26392e653c03606d3f5f66806 | [
"MIT"
] | null | null | null | yuno/security/hash.py | Animenosekai/yuno | bcc48f7ceda022e26392e653c03606d3f5f66806 | [
"MIT"
] | null | null | null | """
hash.py
A set of functions to hash data and passwords.
"""
import hashlib
import secrets
import typing
import argon2
import yuno
from yuno.utils.annotations import Default
RANDOMIZING_TYPES = (Default, yuno.YunoClient, yuno.YunoDatabase, yuno.YunoCollection)
class Hasher():
"""
A set of tools to hash da... | 30.531579 | 142 | 0.568695 | 634 | 5,801 | 5.143533 | 0.212934 | 0.023919 | 0.036799 | 0.016866 | 0.306654 | 0.264949 | 0.235511 | 0.235511 | 0.163753 | 0.163753 | 0 | 0.003629 | 0.334942 | 5,801 | 189 | 143 | 30.693122 | 0.841628 | 0.340976 | 0 | 0.1875 | 0 | 0 | 0.060537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.265625 | 0.09375 | 0 | 0.421875 | 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 |
cd1254e215ed86b57b98893356aac0ee6840b89d | 560 | py | Python | views.py | mishudark/indie | 0f41df7dbbc14ce348d6667aebc2f2aaa9cda36a | [
"MIT"
] | null | null | null | views.py | mishudark/indie | 0f41df7dbbc14ce348d6667aebc2f2aaa9cda36a | [
"MIT"
] | null | null | null | views.py | mishudark/indie | 0f41df7dbbc14ce348d6667aebc2f2aaa9cda36a | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from indie.forms import UploadForm
from django.http import HttpResponse, Http404
import json
@login_required
def upload(request):
if not request.method == 'POST':
raise Http404
form = UploadForm(data=request... | 25.454545 | 70 | 0.689286 | 70 | 560 | 5.471429 | 0.585714 | 0.078329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.196429 | 560 | 21 | 71 | 26.666667 | 0.837778 | 0 | 0 | 0 | 0 | 0 | 0.094812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 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 |
cd1e3e43e4538511fe8b644e7dc7d8e1b617427e | 2,228 | py | Python | main/largest-component-size-by-common-factor/largest-component-size-by-common-factor-roughscratch3.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/largest-component-size-by-common-factor/largest-component-size-by-common-factor-roughscratch3.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/largest-component-size-by-common-factor/largest-component-size-by-common-factor-roughscratch3.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | class DisjointSets:
"""
Disjoint-set union data structure in which each element contributes an
arbitrary measure.
"""
__slots__ = ('_parents', '_ranks', '_measures')
def __init__(self, measures):
"""
Constructs DisjointSets with a fixed number of elements, each initiall... | 28.935065 | 79 | 0.598294 | 263 | 2,228 | 4.980989 | 0.429658 | 0.018321 | 0.027481 | 0.01374 | 0.021374 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012338 | 0.308797 | 2,228 | 76 | 80 | 29.315789 | 0.838312 | 0.283214 | 0 | 0.105263 | 0 | 0 | 0.080774 | 0 | 0 | 0 | 0 | 0.013158 | 0.052632 | 1 | 0.131579 | false | 0.026316 | 0 | 0 | 0.236842 | 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 |
cd20267ee9f2e73702eb96b1493ac79af928b05f | 2,612 | py | Python | baselines/adagvae/train.py | ratschlab/projects2020-disentangled-gpvae | 740eb6c9e18c16909e4e752741b019957ef49c65 | [
"MIT"
] | 1 | 2021-02-02T18:28:32.000Z | 2021-02-02T18:28:32.000Z | baselines/adagvae/train.py | ratschlab/projects2020-disentangled-gpvae | 740eb6c9e18c16909e4e752741b019957ef49c65 | [
"MIT"
] | 2 | 2020-09-25T22:45:51.000Z | 2020-09-26T01:32:00.000Z | baselines/adagvae/train.py | ratschlab/projects2020-disentangled-gpvae | 740eb6c9e18c16909e4e752741b019957ef49c65 | [
"MIT"
] | null | null | null | """
Ada-GVAE training script for dsprites dataset, using disentanglement_lib.
Also evaluates DCI metric and saves outputs.
Simon Bing
ETHZ 2020
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import warnings
warnings.simplefilter(action='ignore', catego... | 38.411765 | 114 | 0.749234 | 332 | 2,612 | 5.668675 | 0.36747 | 0.028693 | 0.037194 | 0.037194 | 0.149309 | 0.149309 | 0.056323 | 0.056323 | 0 | 0 | 0 | 0.00363 | 0.156202 | 2,612 | 68 | 115 | 38.411765 | 0.850272 | 0.162328 | 0 | 0.046512 | 0 | 0 | 0.193192 | 0.050138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.325581 | 0 | 0.348837 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cd21e0ce071c23d8c287d3dfd0953b4999f423a9 | 681 | py | Python | src/rreil/variable.py | tizmd/python-gdsl | d5782490a9a8b67b7e5667fafb51409c3693b010 | [
"MIT"
] | null | null | null | src/rreil/variable.py | tizmd/python-gdsl | d5782490a9a8b67b7e5667fafb51409c3693b010 | [
"MIT"
] | null | null | null | src/rreil/variable.py | tizmd/python-gdsl | d5782490a9a8b67b7e5667fafb51409c3693b010 | [
"MIT"
] | null | null | null |
class Variable(object):
def __init__(self, _id , offset):
self._id = _id
self.offset = offset
def __str__(self):
s = str(self._id)
if self.offset:
s = s + "/%d" % self.offset
return s
class VariableLimited(object):
def __init__(self, _id , offset, size):... | 21.967742 | 43 | 0.53304 | 82 | 681 | 4.134146 | 0.256098 | 0.106195 | 0.053097 | 0.100295 | 0.59587 | 0.59587 | 0.306785 | 0.306785 | 0.306785 | 0.306785 | 0 | 0 | 0.349486 | 681 | 30 | 44 | 22.7 | 0.765237 | 0 | 0 | 0.5 | 0 | 0 | 0.013235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.041667 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd227669ce4af56ddd114ee697937a39975c1476 | 689 | py | Python | flying_desktop/__main__.py | roee30/flying_desktop | c0ab0dd9c0944ed1ad8b3d096b87bd2382d0b052 | [
"MIT"
] | 1 | 2020-01-03T14:15:37.000Z | 2020-01-03T14:15:37.000Z | flying_desktop/__main__.py | roee30/flying_desktop | c0ab0dd9c0944ed1ad8b3d096b87bd2382d0b052 | [
"MIT"
] | null | null | null | flying_desktop/__main__.py | roee30/flying_desktop | c0ab0dd9c0944ed1ad8b3d096b87bd2382d0b052 | [
"MIT"
] | 1 | 2021-04-30T23:38:36.000Z | 2021-04-30T23:38:36.000Z | """
Run the Flying Desktop application.
"""
import asyncio
import sys
import threading
import tkinter as tk
from .log import logging_setup
logging_setup()
from .utils import loop
from flying_desktop.app.main_window import AppWindow
def loop_worker(loop_: asyncio.AbstractEventLoop):
"""
Thread for running t... | 18.621622 | 81 | 0.706821 | 92 | 689 | 5.054348 | 0.48913 | 0.055914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181422 | 689 | 36 | 82 | 19.138889 | 0.824468 | 0.111756 | 0 | 0 | 0 | 0 | 0.020374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.35 | 0 | 0.45 | 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 |
cd289b93f6ba60b50fe038185ad951fd0fc343d9 | 1,013 | py | Python | youtube_pl_json_to_txt.py | borisjoffe/ypd | 89eb5e72759c87cd5ea08918d4d8632a07d47c90 | [
"MIT"
] | null | null | null | youtube_pl_json_to_txt.py | borisjoffe/ypd | 89eb5e72759c87cd5ea08918d4d8632a07d47c90 | [
"MIT"
] | null | null | null | youtube_pl_json_to_txt.py | borisjoffe/ypd | 89eb5e72759c87cd5ea08918d4d8632a07d47c90 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys, json
def get_urls_from_playlist_json(playlist_json_filename):
playlist_json = json.load(open(playlist_json_filename))
"""
Example entry:
{'_type': 'url',
'id': '<ID>', // matches url (always?)
'ie_key': 'Youtube',
'title': '<TITLE>',
'url': '<URL... | 24.707317 | 73 | 0.650543 | 132 | 1,013 | 4.621212 | 0.393939 | 0.196721 | 0.196721 | 0.062295 | 0.229508 | 0.229508 | 0.140984 | 0.140984 | 0 | 0 | 0 | 0.002466 | 0.199408 | 1,013 | 40 | 74 | 25.325 | 0.749692 | 0.015795 | 0 | 0 | 0 | 0 | 0.085055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.2 | 0.1 | 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 |
cd28f2c8451793b1ffa81df70c41c848db1058e0 | 700 | py | Python | empg_erp/widgets/doctype/widget/widget.py | shahzadzameen/empghr_erp | ba24a833b7fea8f17b155435064ead761f2a134c | [
"MIT"
] | null | null | null | empg_erp/widgets/doctype/widget/widget.py | shahzadzameen/empghr_erp | ba24a833b7fea8f17b155435064ead761f2a134c | [
"MIT"
] | null | null | null | empg_erp/widgets/doctype/widget/widget.py | shahzadzameen/empghr_erp | ba24a833b7fea8f17b155435064ead761f2a134c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2019, zameen and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from empg_erp.widgets.doctype.bookmark.template_functions import TemplateFunctions
class Widget(Docum... | 33.333333 | 133 | 0.757143 | 89 | 700 | 5.730337 | 0.561798 | 0.070588 | 0.054902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008183 | 0.127143 | 700 | 21 | 134 | 33.333333 | 0.826514 | 0.161429 | 0 | 0 | 0 | 0 | 0.131849 | 0.099315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.583333 | 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 |
cd2a6553d2dcd84c12ccdb2060d5f6e0bf603a5f | 1,871 | py | Python | Source/Thttil/ThttilCommand.py | Renondedju/Thttil | 66bbc4133421b86804f195b5a74c53f4281e98ba | [
"MIT"
] | 2 | 2019-03-13T12:39:28.000Z | 2019-04-01T09:11:48.000Z | Source/Thttil/ThttilCommand.py | BasileCombet/Thttil | 66bbc4133421b86804f195b5a74c53f4281e98ba | [
"MIT"
] | null | null | null | Source/Thttil/ThttilCommand.py | BasileCombet/Thttil | 66bbc4133421b86804f195b5a74c53f4281e98ba | [
"MIT"
] | 1 | 2019-11-06T09:18:08.000Z | 2019-11-06T09:18:08.000Z | from typing import Any
from .ThttilCommandReturnType import ThttilCommandReturnType
import inspect
class ThttilCommand(object):
class ThttilCommandArgument(object):
def __init__(self, name: str, vartype: Any, default: Any):
self.name : str = name
self.t... | 41.577778 | 125 | 0.606627 | 178 | 1,871 | 6.106742 | 0.314607 | 0.083717 | 0.105796 | 0.052438 | 0.090156 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00312 | 0.314805 | 1,871 | 45 | 126 | 41.577778 | 0.844774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.088235 | 0.088235 | 0.029412 | 0.264706 | 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 |
cd31062d5229ba0925c75363753bfb6dfd55b6b1 | 44,502 | py | Python | wake_model/Cross_Validate_EMG.py | BYUFLOWLab/VAWTWakeModel | eb63393dfa73e2d000fde8af490c663cb6f55386 | [
"MIT"
] | 4 | 2019-06-17T15:38:55.000Z | 2020-07-13T10:38:37.000Z | wake_model/Cross_Validate_EMG.py | BYUFLOWLab/VAWTWakeModel | eb63393dfa73e2d000fde8af490c663cb6f55386 | [
"MIT"
] | 8 | 2015-12-22T05:26:31.000Z | 2016-01-07T20:01:56.000Z | wake_model/Cross_Validate_EMG.py | BYUFLOWLab/VAWTWakeModel | eb63393dfa73e2d000fde8af490c663cb6f55386 | [
"MIT"
] | 2 | 2020-03-07T20:04:36.000Z | 2021-02-25T08:46:14.000Z | import csv
from os import path
import numpy as np
from sklearn.cross_validation import train_test_split
from scipy.optimize import curve_fit
from sys import argv
import _vawtwake
def starccm_read_vel(fdata,dia,windd,length):
start = length/30.
lendat = np.linspace(start,length,30)/dia
for j in range(np.... | 50.227991 | 807 | 0.527707 | 6,335 | 44,502 | 3.679242 | 0.13086 | 0.063498 | 0.026171 | 0.046336 | 0.639437 | 0.609104 | 0.599794 | 0.587009 | 0.580573 | 0.57461 | 0 | 0.144523 | 0.261764 | 44,502 | 885 | 808 | 50.284746 | 0.564941 | 0.054357 | 0 | 0.621622 | 0 | 0.001351 | 0.126417 | 0.021998 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012162 | 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 |
cd35ad6a80d6ea9c2c9eaa0c9cf158d2b62f1bc7 | 4,018 | py | Python | samples/PayerAuthentication/validate-authentication-results.py | snavinch/cybersource-rest-samples-python | adb7a6b4b55dff6ac833295192d6677b53003c16 | [
"MIT"
] | 21 | 2019-01-22T17:48:32.000Z | 2022-02-07T17:40:58.000Z | samples/PayerAuthentication/validate-authentication-results.py | broadpay/cybersource-rest-samples-python | f7af6f58c70ea3bf725d34929b40ee4b5fd4d77c | [
"MIT"
] | 10 | 2018-12-03T22:45:17.000Z | 2021-04-19T20:40:14.000Z | samples/PayerAuthentication/validate-authentication-results.py | broadpay/cybersource-rest-samples-python | f7af6f58c70ea3bf725d34929b40ee4b5fd4d77c | [
"MIT"
] | 29 | 2018-11-09T11:44:53.000Z | 2022-03-18T08:56:46.000Z | from CyberSource import *
import os
import json
from importlib.machinery import SourceFileLoader
config_file = os.path.join(os.getcwd(), "data", "Configuration.py")
configuration = SourceFileLoader("module.name", config_file).load_module()
# To delete None values in Input Request Json body
def del_none(d):
for ke... | 39.009709 | 111 | 0.771279 | 256 | 4,018 | 11.773438 | 0.554688 | 0.029197 | 0.038487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024669 | 0.172723 | 4,018 | 102 | 112 | 39.392157 | 0.88207 | 0.011946 | 0 | 0 | 0 | 0 | 0.080141 | 0.02873 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0 | 0.049383 | 0 | 0.098765 | 0.037037 | 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 |
cd3bed1435dd518d4b37827385711a554ad23133 | 10,887 | py | Python | tensorflow_lessons/2_the_sequential_model_API/sequential_model.py | TalHadad/yolov3_tf2 | a42c884cb4a34582d0ebb84fcf60c0cf4ec30504 | [
"Apache-2.0"
] | null | null | null | tensorflow_lessons/2_the_sequential_model_API/sequential_model.py | TalHadad/yolov3_tf2 | a42c884cb4a34582d0ebb84fcf60c0cf4ec30504 | [
"Apache-2.0"
] | null | null | null | tensorflow_lessons/2_the_sequential_model_API/sequential_model.py | TalHadad/yolov3_tf2 | a42c884cb4a34582d0ebb84fcf60c0cf4ec30504 | [
"Apache-2.0"
] | null | null | null | # 1. Introduction - The sequential model API
# The keras progect was authoued by Francois Chollet
# tf.keras focumentation is found in keras.io and tensorflow.org->APU->tf.keras (prefered)
###################################
# 1. Feedforward neural networks.
###################################
# 1.1.
from tensorlow.... | 34.343849 | 143 | 0.675301 | 1,603 | 10,887 | 4.499688 | 0.248284 | 0.013587 | 0.013587 | 0.013171 | 0.175239 | 0.147373 | 0.112713 | 0.075281 | 0.058921 | 0.046583 | 0 | 0.042111 | 0.138422 | 10,887 | 316 | 144 | 34.452532 | 0.726866 | 0.504455 | 0 | 0.08 | 0 | 0 | 0.096856 | 0.044102 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd3d6e9b7142642af1046944098e6633b6a6ad93 | 1,537 | py | Python | sprites.py | devilesk/dota-drawable-map | b02432ea8cbcef5d4e58116e35aeb8245791b68e | [
"0BSD"
] | null | null | null | sprites.py | devilesk/dota-drawable-map | b02432ea8cbcef5d4e58116e35aeb8245791b68e | [
"0BSD"
] | null | null | null | sprites.py | devilesk/dota-drawable-map | b02432ea8cbcef5d4e58116e35aeb8245791b68e | [
"0BSD"
] | null | null | null | import os
import json
import shutil
with open('/home/dota-datafiles/dist/herodata.json', 'r') as f:
herodata = json.loads(f.read())
herokeys = [x.replace('npc_dota_hero_', '') for x in herodata.keys()]
data = {
"heroes": [],
"other": []
}
with open('missing_sprite_names.json', 'r') as f:
missing_data = json.load... | 29 | 170 | 0.664281 | 234 | 1,537 | 4.260684 | 0.316239 | 0.066199 | 0.036108 | 0.048144 | 0.385155 | 0.355065 | 0.134403 | 0.134403 | 0.088265 | 0 | 0 | 0.005275 | 0.13663 | 1,537 | 53 | 171 | 29 | 0.746044 | 0 | 0 | 0.2 | 0 | 0.044444 | 0.375163 | 0.282835 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cd3ebcb05d1c2f7f4d5b7f0a76e302aa0e4bc918 | 1,701 | py | Python | crane_controllers/external/casadi-3.4.5/docs/api/examples/SX/SXFunction_constr_py.py | tingelst/crane | e14bca2bd4e2397dce09180029223832aad9b070 | [
"MIT"
] | 2 | 2021-03-22T08:50:29.000Z | 2021-08-18T03:04:18.000Z | crane_controllers/external/casadi-3.4.5/docs/api/examples/SX/SXFunction_constr_py.py | tingelst/crane | e14bca2bd4e2397dce09180029223832aad9b070 | [
"MIT"
] | null | null | null | crane_controllers/external/casadi-3.4.5/docs/api/examples/SX/SXFunction_constr_py.py | tingelst/crane | e14bca2bd4e2397dce09180029223832aad9b070 | [
"MIT"
] | 2 | 2022-01-14T04:28:41.000Z | 2022-01-14T05:29:01.000Z | #
# This file is part of CasADi.
#
# CasADi -- A symbolic framework for dynamic optimization.
# Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl,
# K.U. Leuven. All rights reserved.
# Copyright (C) 2011-2014 Greg Horn
#
# CasADi is free software; you can... | 34.02 | 84 | 0.673721 | 268 | 1,701 | 4.257463 | 0.537313 | 0.031551 | 0.031551 | 0.049956 | 0.133216 | 0.087642 | 0.059597 | 0 | 0 | 0 | 0 | 0.027882 | 0.219871 | 1,701 | 49 | 85 | 34.714286 | 0.831952 | 0.801881 | 0 | 0 | 0 | 0 | 0.013378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd3f7f7e05bb495723b7ccf57fd6934380ccdf44 | 1,432 | py | Python | Pio/Pio_404.py | arthole/Pio | 1c82ce63da55962cddbb20e9ac4a85d7b8855925 | [
"BSD-2-Clause"
] | null | null | null | Pio/Pio_404.py | arthole/Pio | 1c82ce63da55962cddbb20e9ac4a85d7b8855925 | [
"BSD-2-Clause"
] | null | null | null | Pio/Pio_404.py | arthole/Pio | 1c82ce63da55962cddbb20e9ac4a85d7b8855925 | [
"BSD-2-Clause"
] | null | null | null | import sys, string, re
def file404(webpath, requestedurl, error, filename404):
sys.stderr = sys.stdout
url = requestedurl
urllist = re.split('/', url)
n = len(urllist)-1
found404 = 'NOTFOUND!'
if filename404 == '':
try:
import Pio_prefs
filename404 = Pio_prefs.gimme("pio404")
except ImportError:
... | 31.822222 | 146 | 0.620112 | 209 | 1,432 | 4.215311 | 0.334928 | 0.081725 | 0.102157 | 0.108967 | 0.183882 | 0.183882 | 0.040863 | 0.040863 | 0.040863 | 0 | 0 | 0.045183 | 0.180866 | 1,432 | 45 | 147 | 31.822222 | 0.705882 | 0.054469 | 0 | 0.114286 | 0 | 0.085714 | 0.3 | 0.082222 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | 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 |
cd41bf3801a8b3a700390c3892fd704595bce053 | 4,881 | py | Python | scripts/update_user_maps.py | slachiewicz/where-do-you-go | 4e5c6c3b47866f4a8875a940fa6e889d0ae4ee7b | [
"MIT"
] | 1 | 2019-06-27T07:40:50.000Z | 2019-06-27T07:40:50.000Z | scripts/update_user_maps.py | slachiewicz/where-do-you-go | 4e5c6c3b47866f4a8875a940fa6e889d0ae4ee7b | [
"MIT"
] | null | null | null | scripts/update_user_maps.py | slachiewicz/where-do-you-go | 4e5c6c3b47866f4a8875a940fa6e889d0ae4ee7b | [
"MIT"
] | null | null | null | from google.appengine.api import users
from google.appengine.api import images
from google.appengine.api import urlfetch
from google.appengine.api.labs import taskqueue
from google.appengine.ext import db
from google.appengine.runtime import DeadlineExceededError
from google.appengine.runtime.apiproxy_errors import Can... | 48.81 | 178 | 0.711944 | 657 | 4,881 | 5.100457 | 0.269406 | 0.046553 | 0.048344 | 0.022381 | 0.179051 | 0.115786 | 0.110415 | 0.110415 | 0.050731 | 0.028648 | 0 | 0.009448 | 0.175989 | 4,881 | 99 | 179 | 49.30303 | 0.82372 | 0.047121 | 0 | 0.072917 | 0 | 0 | 0.076178 | 0.007532 | 0 | 0 | 0 | 0 | 0.083333 | 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 |
cd42979e21ed0b8ccbf2ad6c8dd917adde0e304f | 576 | py | Python | DatabaseConfig.py | SeaWakeYT/SeaWake-Bot-FIXED- | 995d8a9ad9a045d42aca8fec78e04946f442db32 | [
"MIT"
] | null | null | null | DatabaseConfig.py | SeaWakeYT/SeaWake-Bot-FIXED- | 995d8a9ad9a045d42aca8fec78e04946f442db32 | [
"MIT"
] | null | null | null | DatabaseConfig.py | SeaWakeYT/SeaWake-Bot-FIXED- | 995d8a9ad9a045d42aca8fec78e04946f442db32 | [
"MIT"
] | null | null | null | import os
import pymongo
#import dns
DB_logindetails = str(os.environ['DB_data'])
DB_client = pymongo.MongoClient(DB_logindetails)
db = DB_client.db_name
content_database = db.list_collection_names()
db.users_testing.create_index([('user_id', pymongo.ASCENDING)],unique=True)
db.g_link_testing.create_index([('user_id'... | 41.142857 | 76 | 0.800347 | 86 | 576 | 5.069767 | 0.395349 | 0.126147 | 0.172018 | 0.194954 | 0.543578 | 0.543578 | 0.543578 | 0.543578 | 0.444954 | 0.238532 | 0 | 0 | 0.045139 | 576 | 14 | 77 | 41.142857 | 0.792727 | 0.017361 | 0 | 0 | 0 | 0 | 0.074205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd42b3284456a44ba4a9ab7364229f1cf11fd56e | 9,376 | py | Python | backend/errors.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 7 | 2018-05-20T08:56:08.000Z | 2022-03-11T15:50:54.000Z | backend/errors.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 2 | 2021-06-08T21:12:51.000Z | 2022-01-13T01:25:27.000Z | backend/errors.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 5 | 2016-10-09T14:52:09.000Z | 2020-12-25T01:04:35.000Z | import bottle
import json
import logbook
from utils.i18n import _, translate
from lib import exception_safe
class ErrorWithFormattedMessage(Exception):
def __init__(self, message=None, *args, **kwargs):
super().__init__()
assert not (kwargs and args)
self.message_args = args
self... | 23.918367 | 125 | 0.716297 | 953 | 9,376 | 6.883526 | 0.296957 | 0.075457 | 0.030183 | 0.015244 | 0.162348 | 0.087195 | 0.03872 | 0.027134 | 0.027134 | 0.027134 | 0 | 0.004631 | 0.193899 | 9,376 | 391 | 126 | 23.97954 | 0.863324 | 0.001173 | 0 | 0.055046 | 0 | 0 | 0.253124 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 1 | 0.027523 | false | 0.022936 | 0.03211 | 0 | 0.811927 | 0.004587 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cd4d99710efbe6f7c2ac2d7fd2f9fa6b65bfe3bf | 773 | py | Python | Tests/test_integration_myreport.py | avirois/ProjectManagement | 9e05d1302336ca4ef32bef93e28bcc69fdad7d4f | [
"WTFPL"
] | null | null | null | Tests/test_integration_myreport.py | avirois/ProjectManagement | 9e05d1302336ca4ef32bef93e28bcc69fdad7d4f | [
"WTFPL"
] | 3 | 2021-03-24T11:53:18.000Z | 2021-04-05T10:20:58.000Z | Tests/test_integration_myreport.py | avirois/ProjectManagement | 9e05d1302336ca4ef32bef93e28bcc69fdad7d4f | [
"WTFPL"
] | null | null | null | import pytest
import sqlite3
from selenium import webdriver
class TestIntegrationMyReports:
def test_my_reports(
self,
application: str,
ff_browser: webdriver.Firefox,
copy_test_storage_1_to_storage,
fill_db,
):
ff_browser.get(application + "/logout")
ff... | 32.208333 | 84 | 0.676585 | 92 | 773 | 5.369565 | 0.554348 | 0.145749 | 0.072874 | 0.139676 | 0.149798 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0.0067 | 0.227684 | 773 | 23 | 85 | 33.608696 | 0.820771 | 0 | 0 | 0 | 0 | 0 | 0.115136 | 0.036223 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.047619 | false | 0.095238 | 0.142857 | 0 | 0.238095 | 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 |
cd4fa1b9644c6a4563bb72666946bf6c2f19ab6c | 6,314 | py | Python | src/qutip_cupy/dense_functions.py | qutip/qutip-cupy | 320efa80992e8b051a02ebdb2da0151714eb8b24 | [
"BSD-3-Clause"
] | 9 | 2021-06-09T13:14:21.000Z | 2022-03-30T09:46:46.000Z | src/qutip_cupy/dense_functions.py | qutip/qutip-cupy | 320efa80992e8b051a02ebdb2da0151714eb8b24 | [
"BSD-3-Clause"
] | 42 | 2021-06-01T08:28:58.000Z | 2022-02-03T17:29:25.000Z | src/qutip_cupy/dense_functions.py | qutip/qutip-cupy | 320efa80992e8b051a02ebdb2da0151714eb8b24 | [
"BSD-3-Clause"
] | 5 | 2021-05-26T19:53:41.000Z | 2021-11-18T20:58:31.000Z | """Contains specialization functions for dense_cupy. These are the functions that
are defined outside of qutip/core/data/dense.pyx."""
import cupy as cp
from .dense import CuPyDense
def tidyup_dense(matrix, tol, inplace=True):
return matrix
def reshape_cupydense(cp_arr, n_rows_out, n_cols_out):
return Cu... | 32.050761 | 88 | 0.597403 | 932 | 6,314 | 3.868026 | 0.228541 | 0.037448 | 0.042718 | 0.030513 | 0.372261 | 0.261026 | 0.183079 | 0.108738 | 0.058807 | 0 | 0 | 0.019638 | 0.274153 | 6,314 | 196 | 89 | 32.214286 | 0.766965 | 0.158061 | 0 | 0.063636 | 0 | 0 | 0.047757 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.154545 | false | 0 | 0.018182 | 0.063636 | 0.372727 | 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 |
cd4fa1bda9c2b3465eed4cb74f81704d539af61d | 3,037 | py | Python | app/views.py | tunnelbanejakten/kikbot | a6193f396c0b7bd6e2959d5b06322a46588b3e65 | [
"MIT"
] | 1 | 2017-01-19T00:51:47.000Z | 2017-01-19T00:51:47.000Z | app/views.py | tunnelbanejakten/kikbot | a6193f396c0b7bd6e2959d5b06322a46588b3e65 | [
"MIT"
] | null | null | null | app/views.py | tunnelbanejakten/kikbot | a6193f396c0b7bd6e2959d5b06322a46588b3e65 | [
"MIT"
] | null | null | null | # coding=utf-8
from flask import request, Response
from kik.error import KikError
from kik.messages import PictureMessage
from kik.messages import messages_from_json, TextMessage
from kik.messages.start_chatting import StartChattingMessage
from kik.messages.video import VideoMessage
from app import application
from ap... | 36.154762 | 111 | 0.60619 | 337 | 3,037 | 5.287834 | 0.356083 | 0.050505 | 0.028058 | 0.047699 | 0.207632 | 0.166106 | 0.166106 | 0.051627 | 0.051627 | 0 | 0 | 0.007089 | 0.30326 | 3,037 | 83 | 112 | 36.590361 | 0.835066 | 0.048732 | 0 | 0.111111 | 0 | 0 | 0.175165 | 0.022893 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cd50903e0cd008afde01f770aad7bb7131f4c191 | 2,680 | py | Python | clients/tp_link/TD_W9970/http_client.py | SinanKanidagli/cgn_realip | 7e25ffe173e24f1206950c4765dfcf8dd2247e8e | [
"MIT"
] | null | null | null | clients/tp_link/TD_W9970/http_client.py | SinanKanidagli/cgn_realip | 7e25ffe173e24f1206950c4765dfcf8dd2247e8e | [
"MIT"
] | null | null | null | clients/tp_link/TD_W9970/http_client.py | SinanKanidagli/cgn_realip | 7e25ffe173e24f1206950c4765dfcf8dd2247e8e | [
"MIT"
] | null | null | null | import sys,os
sys.path.insert(0,os.getcwd())
from requests import Session
from requests.models import Response
import js2py
import base64
from .end_points import TPLinkModemURLEndPoints
from .get_data_text_content import content_data
from core.base.http_client import ModemHttpClient
class TPLinkModemHTTPClient(Mo... | 34.805195 | 150 | 0.615299 | 310 | 2,680 | 5.209677 | 0.351613 | 0.034675 | 0.024768 | 0.0613 | 0.104025 | 0.055728 | 0 | 0 | 0 | 0 | 0 | 0.024084 | 0.256343 | 2,680 | 76 | 151 | 35.263158 | 0.786252 | 0 | 0 | 0.055556 | 0 | 0.018519 | 0.150746 | 0.047015 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.12963 | 0.148148 | 0 | 0.388889 | 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 |
cd512c68d768082332229f2ee27517504401c66b | 2,858 | py | Python | Example_MP_GRID.py | LBJ-Wade/AxionNet | 80f740bfffe8b089f31c4215f01e66bb0601e05f | [
"MIT"
] | null | null | null | Example_MP_GRID.py | LBJ-Wade/AxionNet | 80f740bfffe8b089f31c4215f01e66bb0601e05f | [
"MIT"
] | null | null | null | Example_MP_GRID.py | LBJ-Wade/AxionNet | 80f740bfffe8b089f31c4215f01e66bb0601e05f | [
"MIT"
] | null | null | null | import numpy as np
import math
import naxion
from quasi_observable_data import *
run_name='mp_DM_GRID'
##############################
# Set up your model #
##############################
# A grid-based sampler on two variables
# Model selection
nax=20
model=1
# 10^2 samples
nsteps = 100
# number of samples ... | 24.637931 | 82 | 0.575577 | 402 | 2,858 | 4.044776 | 0.425373 | 0.00615 | 0.00738 | 0.012915 | 0.039975 | 0.023985 | 0 | 0 | 0 | 0 | 0 | 0.020765 | 0.140658 | 2,858 | 116 | 83 | 24.637931 | 0.641287 | 0.244927 | 0 | 0.035088 | 0 | 0 | 0.060012 | 0.031491 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.070175 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cd58a1349b1637d0f9a877abf10210d27377f3fa | 2,809 | py | Python | angr/storage/memory_object.py | MarSoft/angr | c46e848d4921dafca8d4c304bfadcad4d043bda9 | [
"BSD-2-Clause"
] | 2 | 2020-04-29T02:39:42.000Z | 2020-04-29T08:07:44.000Z | angr/storage/memory_object.py | MarSoft/angr | c46e848d4921dafca8d4c304bfadcad4d043bda9 | [
"BSD-2-Clause"
] | null | null | null | angr/storage/memory_object.py | MarSoft/angr | c46e848d4921dafca8d4c304bfadcad4d043bda9 | [
"BSD-2-Clause"
] | 1 | 2020-11-18T16:39:13.000Z | 2020-11-18T16:39:13.000Z | import claripy
from ..errors import SimMemoryError
def obj_bit_size(o):
if type(o) is bytes:
return len(o) * 8
return o.size()
class SimMemoryObject(object):
"""
A MemoryObjectRef instance is a reference to a byte or several bytes in
a specific object in SimSymbolicMemory. It is only use... | 30.532609 | 100 | 0.615522 | 375 | 2,809 | 4.424 | 0.216 | 0.066305 | 0.039783 | 0.031344 | 0.045208 | 0.045208 | 0 | 0 | 0 | 0 | 0 | 0.003519 | 0.291919 | 2,809 | 91 | 101 | 30.868132 | 0.830568 | 0.056604 | 0 | 0.092308 | 0 | 0 | 0.017517 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 1 | 0.2 | false | 0 | 0.030769 | 0.092308 | 0.553846 | 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 |
cd62e314583e1c3d187b94b67c615935ddf5e81f | 706 | py | Python | agenda_administrativa/apps/account/urls.py | pmsserrana/agenda | 8758e41dac9566072f61f4eb6fc73e7b784d5f34 | [
"BSD-3-Clause"
] | null | null | null | agenda_administrativa/apps/account/urls.py | pmsserrana/agenda | 8758e41dac9566072f61f4eb6fc73e7b784d5f34 | [
"BSD-3-Clause"
] | null | null | null | agenda_administrativa/apps/account/urls.py | pmsserrana/agenda | 8758e41dac9566072f61f4eb6fc73e7b784d5f34 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from . import views
urlpatterns = [
# post views
# url(r'^login/$', views.user_login, name='login'),
# login
url(r'^login/$', auth_views.login, name='login'),
url(r'^logout/$', auth_views.logout, name='logout'),... | 32.090909 | 98 | 0.688385 | 99 | 706 | 4.717172 | 0.232323 | 0.134904 | 0.06424 | 0.059957 | 0.171306 | 0.107066 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137394 | 706 | 21 | 99 | 33.619048 | 0.766831 | 0.123229 | 0 | 0 | 0 | 0 | 0.276873 | 0.037459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cd6739f640663c1a1ca835a47c1ded60966d6367 | 377 | py | Python | __init__.py | dyseo/ApkPure | e5d8fa559debd9577aa9eecdb8e78de2bd5cd815 | [
"MIT"
] | 14 | 2019-04-29T04:18:27.000Z | 2022-03-26T07:33:56.000Z | __init__.py | kurodenjiro/api.apkpure | 9d375a62c7f905f0e70c73c832642993f1b5e724 | [
"MIT"
] | 1 | 2021-11-16T01:23:01.000Z | 2021-11-16T01:23:01.000Z | __init__.py | dyseo/ApkPure | e5d8fa559debd9577aa9eecdb8e78de2bd5cd815 | [
"MIT"
] | 6 | 2019-04-28T17:30:23.000Z | 2021-03-13T12:04:28.000Z | from connecting import Connect, config
from style import ResponseJson, ResponseRpc
from apis import Search, DetailApk, TrandingApk
__author__ = "Dyseo"
__author_email__ = "katro.coplax@gmail.com"
__package_needed__ = ["lxml", "bs4", "grequests"]
__version__ = "0.1"
__all__ = [
"Search",
"DetailApk",
"TrandingApk",
... | 20.944444 | 49 | 0.734748 | 40 | 377 | 6.375 | 0.7 | 0.101961 | 0.203922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009146 | 0.129973 | 377 | 17 | 50 | 22.176471 | 0.768293 | 0 | 0 | 0 | 0 | 0 | 0.286472 | 0.058355 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 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 |
cd675e7164f574d96f6c1809e031c0179b5a696c | 369 | py | Python | core/settings/local.py | suwalszczyzna/libs-django | a023214bb448250764336d9680a65969547360ed | [
"Apache-2.0"
] | null | null | null | core/settings/local.py | suwalszczyzna/libs-django | a023214bb448250764336d9680a65969547360ed | [
"Apache-2.0"
] | null | null | null | core/settings/local.py | suwalszczyzna/libs-django | a023214bb448250764336d9680a65969547360ed | [
"Apache-2.0"
] | null | null | null | from .base import *
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'libs',
'USER': 'libs',
'PASSWORD': 'libs',
'HOST': 'localhost',
'PORT': '5432',
}
}
CORS_ORIGIN_WHITELIST = [
'http://lo... | 18.45 | 60 | 0.490515 | 35 | 369 | 5.085714 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075697 | 0.319783 | 369 | 19 | 61 | 19.421053 | 0.633466 | 0 | 0 | 0 | 0 | 0 | 0.405714 | 0.108571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.0625 | 0 | 0.0625 | 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 |
cd696e870908c866769e51e8286e8ec6575aef07 | 1,566 | py | Python | src/api/serializers.py | resumme/resum.me | 7fe8fdad2a3d946ab15cc91e6c6ea00fdd99d495 | [
"MIT"
] | 10 | 2018-10-11T06:47:00.000Z | 2020-05-05T06:26:15.000Z | src/api/serializers.py | resumme/resum.me | 7fe8fdad2a3d946ab15cc91e6c6ea00fdd99d495 | [
"MIT"
] | 22 | 2018-10-15T13:56:30.000Z | 2022-03-11T23:32:48.000Z | src/api/serializers.py | resumme/resum.me | 7fe8fdad2a3d946ab15cc91e6c6ea00fdd99d495 | [
"MIT"
] | 5 | 2018-10-16T19:12:49.000Z | 2018-10-20T07:46:47.000Z | from django.contrib.auth.models import User
from core.models import UserProfile, CourseStatus, Course, ProviderProfile, TimelineItem
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('username', 'email')
class BioSerializ... | 27 | 94 | 0.684547 | 146 | 1,566 | 7.273973 | 0.424658 | 0.059322 | 0.092279 | 0.09887 | 0.259887 | 0.088512 | 0.088512 | 0.088512 | 0.088512 | 0.088512 | 0 | 0 | 0.205619 | 1,566 | 57 | 95 | 27.473684 | 0.853698 | 0.038953 | 0 | 0.257143 | 0 | 0 | 0.139019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cd6bd57f59187c9d54830d3504d741c268815af0 | 1,758 | py | Python | datasets/hscic/curate.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | null | null | null | datasets/hscic/curate.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | 11 | 2015-03-02T16:30:20.000Z | 2016-11-29T12:16:15.000Z | datasets/hscic/curate.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | 2 | 2020-12-25T20:38:31.000Z | 2021-04-11T07:35:01.000Z | """
A tool to curate datasets/indicators and determine how they should
be grouped/tagged etc
"""
from publish.lib.helpers import hd
class Curator(object):
def __init__(self, dataset):
self.dataset = dataset
self.tags = []
self.groups = []
self.types = ['CCGOIS', 'NHSOF', 'HES', '... | 28.354839 | 122 | 0.567691 | 206 | 1,758 | 4.800971 | 0.373786 | 0.141557 | 0.097068 | 0.054601 | 0.242669 | 0.153691 | 0.103134 | 0 | 0 | 0 | 0 | 0.003306 | 0.311718 | 1,758 | 62 | 123 | 28.354839 | 0.81405 | 0.018771 | 0 | 0.2 | 0 | 0 | 0.192875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cd712ba7a4f7257d0e1b1b5cf98c2534b80982ba | 463 | py | Python | apps/webmarks/storage/migrations/0002_auto_20170730_1911.py | EricMuller/mynote-backend | 69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7 | [
"MIT"
] | 1 | 2017-04-26T10:24:21.000Z | 2017-04-26T10:24:21.000Z | apps/webmarks/storage/migrations/0002_auto_20170730_1911.py | EricMuller/mynotes-backend | 69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7 | [
"MIT"
] | 5 | 2020-06-05T18:16:39.000Z | 2022-01-13T00:45:49.000Z | apps/webmarks/storage/migrations/0002_auto_20170730_1911.py | EricMuller/webmarks-rest-api | 69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-07-30 16:11
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('webmarks_storage', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | 20.130435 | 46 | 0.589633 | 45 | 463 | 5.888889 | 0.755556 | 0.083019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06135 | 0.295896 | 463 | 22 | 47 | 21.045455 | 0.751534 | 0.142549 | 0 | 0.133333 | 1 | 0 | 0.126904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 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 |
cd7207a6d48ab27568a6ddbd9175130482d0b604 | 4,348 | py | Python | sdk/python/pulumi_gcp/compute/get_certificate.py | 23doors/pulumi-gcp | ded01b199f95b164884266ea3e6f8206c8231270 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-12-20T22:08:20.000Z | 2019-12-20T22:08:20.000Z | sdk/python/pulumi_gcp/compute/get_certificate.py | pellizzetti/pulumi-gcp | fad74dd55a0cf7723f73046bb0e6fcbfd948ba84 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/compute/get_certificate.py | pellizzetti/pulumi-gcp | fad74dd55a0cf7723f73046bb0e6fcbfd948ba84 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class GetCer... | 44.367347 | 195 | 0.678933 | 522 | 4,348 | 5.346743 | 0.245211 | 0.021498 | 0.057327 | 0.107488 | 0.169473 | 0.037979 | 0 | 0 | 0 | 0 | 0 | 0.0003 | 0.233441 | 4,348 | 97 | 196 | 44.824742 | 0.837084 | 0.152024 | 0 | 0 | 1 | 0 | 0.159379 | 0.011566 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041096 | false | 0 | 0.082192 | 0 | 0.178082 | 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 |
cd732432cd976c95913e690d19e3153c75b327ca | 700 | py | Python | shield_app/app.py | parthibann/shield | 654666604017741d27bbc092aecf027e480fa4c1 | [
"MIT"
] | 2 | 2019-04-25T11:26:57.000Z | 2019-06-13T17:51:47.000Z | shield_app/app.py | parthibann/shield | 654666604017741d27bbc092aecf027e480fa4c1 | [
"MIT"
] | null | null | null | shield_app/app.py | parthibann/shield | 654666604017741d27bbc092aecf027e480fa4c1 | [
"MIT"
] | null | null | null | import os
from flask import Flask
from flask import render_template
from flask_restful import Api
from shield_app.utils.route_utils import error_handler
from shield_app.api.route import Certificate
current_path = os.path.dirname(os.path.abspath(__file__))
ui_path = os.path.join(current_path, os.pardir, "shield_ui")
... | 28 | 89 | 0.758571 | 100 | 700 | 5.07 | 0.42 | 0.047337 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0.117143 | 700 | 24 | 90 | 29.166667 | 0.815534 | 0 | 0 | 0 | 0 | 0 | 0.167143 | 0.1 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0.0625 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cd7478417014417d51db9e6a3eb0162eb0092bca | 1,066 | py | Python | sitecontent/migrations/0003_auto_20210520_1058.py | SuviVappula/kaavapino | 0e3687c94afff10527c9bee9627fc30bd2dfab4f | [
"MIT"
] | null | null | null | sitecontent/migrations/0003_auto_20210520_1058.py | SuviVappula/kaavapino | 0e3687c94afff10527c9bee9627fc30bd2dfab4f | [
"MIT"
] | null | null | null | sitecontent/migrations/0003_auto_20210520_1058.py | SuviVappula/kaavapino | 0e3687c94afff10527c9bee9627fc30bd2dfab4f | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2021-05-20 07:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sitecontent', '0002_ListViewAttributeColumn'),
]
operations = [
migrations.CreateModel(
name='TargetFloorArea',
fie... | 35.533333 | 145 | 0.604128 | 97 | 1,066 | 6.515464 | 0.57732 | 0.121835 | 0.098101 | 0.085443 | 0.098101 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.258912 | 1,066 | 29 | 146 | 36.758621 | 0.774684 | 0.043152 | 0 | 0.217391 | 1 | 0 | 0.275049 | 0.050098 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.173913 | 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 |
cd752e51535e0ddb24efebe3895b87b42ada42d2 | 533 | py | Python | starspace/test/test_spots.py | chanzuckerberg/spatial-warehouse | ce5ac5345af02ec7d2c58153fd01ab5499574a45 | [
"MIT"
] | 6 | 2019-10-16T15:36:54.000Z | 2021-01-12T16:56:23.000Z | starspace/test/test_spots.py | chanzuckerberg/spatial-warehouse | ce5ac5345af02ec7d2c58153fd01ab5499574a45 | [
"MIT"
] | 5 | 2019-10-07T20:02:50.000Z | 2020-03-11T03:49:22.000Z | starspace/test/test_spots.py | chanzuckerberg/spatial-warehouse | ce5ac5345af02ec7d2c58153fd01ab5499574a45 | [
"MIT"
] | 2 | 2020-02-25T17:06:34.000Z | 2021-11-09T19:28:54.000Z | from tempfile import TemporaryDirectory
from pathlib import Path
from starspace.test.util import make_spots
from starspace.constants import SPOTS_NAME
def test_read_write() -> None:
spots = make_spots()
with TemporaryDirectory() as dirpath:
zarr_directory = Path(dirpath) / "archive.zarr"
spo... | 28.052632 | 77 | 0.733583 | 71 | 533 | 5.295775 | 0.549296 | 0.103723 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187617 | 533 | 18 | 78 | 29.611111 | 0.86836 | 0.082552 | 0 | 0 | 0 | 0 | 0.094456 | 0.069815 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cd7c07ea09a8c4c8f4b4f142f6364e346ec8d4d3 | 4,165 | py | Python | request_folder/case_req.py | relax-space/python-learning | 22987e20a4b0a741e1c5ed8603a952a0fc8dd4bd | [
"Apache-2.0"
] | null | null | null | request_folder/case_req.py | relax-space/python-learning | 22987e20a4b0a741e1c5ed8603a952a0fc8dd4bd | [
"Apache-2.0"
] | null | null | null | request_folder/case_req.py | relax-space/python-learning | 22987e20a4b0a741e1c5ed8603a952a0fc8dd4bd | [
"Apache-2.0"
] | null | null | null |
from requests.models import Response
from request_folder.format_factory import CaseFormatFactory
from request_folder.req import Requester
class ReqExcel:
def sg(self) -> Response:
kwargs = {
'headers': {'Content-Type': 'application/x-www-form-urlencoded'},
'method': 'POST',
... | 51.419753 | 1,377 | 0.578631 | 493 | 4,165 | 4.718053 | 0.448276 | 0.033534 | 0.025795 | 0.032674 | 0.469475 | 0.440671 | 0.427773 | 0.402408 | 0.384351 | 0.384351 | 0 | 0.081472 | 0.236735 | 4,165 | 80 | 1,378 | 52.0625 | 0.650204 | 0.002161 | 0 | 0.603175 | 0 | 0.063492 | 0.487167 | 0.055448 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.015873 | 0.047619 | 0 | 0.15873 | 0.079365 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd80c3cf3a48f9d233c7917480cc11c0ed94b874 | 576 | py | Python | config.py | SingleJohn/sehuatang | 5ec6084f3460385553bb73ad3929f1585321f870 | [
"MIT"
] | null | null | null | config.py | SingleJohn/sehuatang | 5ec6084f3460385553bb73ad3929f1585321f870 | [
"MIT"
] | null | null | null | config.py | SingleJohn/sehuatang | 5ec6084f3460385553bb73ad3929f1585321f870 | [
"MIT"
] | null | null | null | import yaml
import os
dir = os.path.dirname(__file__)
config_path = os.path.join(dir, "config.yaml")
# 读取配置文件
def read_config(config_path):
with open(config_path, "r", encoding="utf-8") as f:
data = yaml.load(f, Loader=yaml.FullLoader)
return data
# 配置获取函数,支持二级配置,供其他模块调用
def get_config(key=None):
... | 21.333333 | 55 | 0.630208 | 87 | 576 | 4.022989 | 0.425287 | 0.142857 | 0.137143 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002358 | 0.263889 | 576 | 26 | 56 | 22.153846 | 0.823113 | 0.048611 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.473684 | 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 |
cd8647907afc5eccc10844231b18811072b6fa53 | 214 | py | Python | devtools/print_requirements.py | Wheelspawn/pudl | 40d176313e60dfa9d2481f63842ed23f08f1ad5f | [
"MIT"
] | 285 | 2017-05-26T02:42:04.000Z | 2022-03-25T09:06:11.000Z | devtools/print_requirements.py | Wheelspawn/pudl | 40d176313e60dfa9d2481f63842ed23f08f1ad5f | [
"MIT"
] | 1,398 | 2017-05-27T15:46:08.000Z | 2022-03-31T19:50:07.000Z | devtools/print_requirements.py | Wheelspawn/pudl | 40d176313e60dfa9d2481f63842ed23f08f1ad5f | [
"MIT"
] | 76 | 2017-06-22T17:31:28.000Z | 2022-01-23T22:17:57.000Z | #!/usr/bin/python3
"""Print out install requirements from setup.py for use with pip install."""
import distutils.core
setup = distutils.core.run_setup("setup.py")
for dep in setup.install_requires:
print(dep)
| 26.75 | 76 | 0.752336 | 33 | 214 | 4.818182 | 0.636364 | 0.08805 | 0.125786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.126168 | 214 | 7 | 77 | 30.571429 | 0.84492 | 0.411215 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
cd9881d70d6950fb1b49ad37a1ab04d356a7424e | 1,069 | py | Python | tests/test_utils.py | chenjing236/fake_nfvo | 005cc165f58667020c443a5ef22c518272055059 | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | chenjing236/fake_nfvo | 005cc165f58667020c443a5ef22c518272055059 | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | chenjing236/fake_nfvo | 005cc165f58667020c443a5ef22c518272055059 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
# coding:utf-8
import socket
import json
from webob import Request
from faked_nfvo.api.schemas import tokens
from faked_nfvo.requests.rest_client import RestClient
def get_token_from_nfvo(username=None, password=None,
VimId='81f1d9d0-ca13-4eea-a4ce-9bd89a50c9d1',
... | 30.542857 | 75 | 0.627689 | 143 | 1,069 | 4.552448 | 0.482517 | 0.049155 | 0.039939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03607 | 0.247895 | 1,069 | 34 | 76 | 31.441176 | 0.773632 | 0.028064 | 0 | 0 | 0 | 0 | 0.10704 | 0.055931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.068966 | 0.172414 | 0 | 0.241379 | 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 |
cd98b90232c959614ce2eee4a568b4f34d2bed81 | 721 | py | Python | Components/locals.py | VasylRybalka/Wario-Land-3 | f3380de04ab9cb846322f111c4fed1db58de626c | [
"CC-BY-4.0"
] | 1 | 2020-06-09T07:01:56.000Z | 2020-06-09T07:01:56.000Z | Components/locals.py | VasylRybalka/Wario-Land-3 | f3380de04ab9cb846322f111c4fed1db58de626c | [
"CC-BY-4.0"
] | 2 | 2020-06-09T07:02:07.000Z | 2020-06-09T09:39:11.000Z | Components/locals.py | CartoonFan/Wario-Land-3 | 269a006d40a707c8303df43d2063bab722f613cc | [
"MIT"
] | null | null | null |
# General things:
RIGHT = 1
LEFT = 2
TOP = 3
BOTTOM = 4
# Names of layers
class Layers:
game_actors = 4
main = 3
sticky_background = 2
background = 1
background_color = 0
# Message names: (MSGNs)
class MSGN:
COLLISION_SIDES = 0
VELOCITY = 1
STATE = 100
LOOKDIRECTION = 101
STATESTACK = 102
# Warios states... | 11.444444 | 24 | 0.67129 | 113 | 721 | 4.115044 | 0.60177 | 0.047312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091248 | 0.255201 | 721 | 63 | 25 | 11.444444 | 0.774674 | 0.120666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.902439 | 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 |
cd993cc30bb8501319ddb01e1de7e312944fc96b | 398 | py | Python | homie/node/property/property_temperature.py | dresber/HomieV3 | 05115f59f4e78230d09ca4e9bd7a12589a638a81 | [
"MIT"
] | 4 | 2019-06-10T01:18:06.000Z | 2021-12-28T03:00:48.000Z | homie/node/property/property_temperature.py | dresber/HomieV3 | 05115f59f4e78230d09ca4e9bd7a12589a638a81 | [
"MIT"
] | 9 | 2019-05-02T20:03:42.000Z | 2020-01-15T03:41:38.000Z | homie/node/property/property_temperature.py | dresber/HomieV3 | 05115f59f4e78230d09ca4e9bd7a12589a638a81 | [
"MIT"
] | 7 | 2019-05-05T15:37:49.000Z | 2020-04-02T10:33:50.000Z | from .property_float import Property_Float
class Property_Temperature(Property_Float):
def __init__(self, node, id='temperature', name = 'Temperature', settable = False, retained = True, qos=1, unit = None, data_type= None, data_format = None, value = None, set_value=None):
super().__init__(node,... | 36.181818 | 191 | 0.731156 | 54 | 398 | 5.055556 | 0.481481 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002959 | 0.150754 | 398 | 10 | 192 | 39.8 | 0.804734 | 0 | 0 | 0 | 0 | 0 | 0.055416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 |
cd9b8dccb8398baac0bc238bd69ed5843582486c | 4,709 | py | Python | backend/quiz/models.py | mahmoud-batman/quizz-app | bebeff8d055ea769773cd1c749f42408aa83f5b9 | [
"MIT"
] | null | null | null | backend/quiz/models.py | mahmoud-batman/quizz-app | bebeff8d055ea769773cd1c749f42408aa83f5b9 | [
"MIT"
] | null | null | null | backend/quiz/models.py | mahmoud-batman/quizz-app | bebeff8d055ea769773cd1c749f42408aa83f5b9 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth import get_user_model
from django.template.defaultfilters import slugify
from django.db.models.signals import pre_save, post_save
from django.dispatch import receiver
from core.utils.unique_slug import unique_slug_generator
import uuid
import os
class Subject(mode... | 35.674242 | 103 | 0.713527 | 596 | 4,709 | 5.468121 | 0.211409 | 0.030377 | 0.042958 | 0.064437 | 0.410862 | 0.388463 | 0.311445 | 0.311445 | 0.229518 | 0.173059 | 0 | 0.007375 | 0.165003 | 4,709 | 131 | 104 | 35.946565 | 0.821465 | 0.092376 | 0 | 0.223404 | 0 | 0 | 0.045497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0 | 0.085106 | 0.095745 | 0.744681 | 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 |
26a18b4c0c5539f98e6aa7f1e260c74ef6ff7829 | 603 | py | Python | api/src/api/clinical_cases.py | AlbertSuarez/casescan | 403c3d2bdab2344af30845adb922b9efcf4e337f | [
"MIT"
] | 8 | 2020-12-20T10:59:08.000Z | 2020-12-22T15:50:28.000Z | api/src/api/clinical_cases.py | AlbertSuarez/casescan | 403c3d2bdab2344af30845adb922b9efcf4e337f | [
"MIT"
] | null | null | null | api/src/api/clinical_cases.py | AlbertSuarez/casescan | 403c3d2bdab2344af30845adb922b9efcf4e337f | [
"MIT"
] | null | null | null | from src.engine.initializator import cases_db
from src.helper import response_builder
def get(case_id=None):
if case_id:
if case_id in cases_db:
return response_builder.make(
False, response=dict(results=[dict(case_id=case_id, sections=cases_db.get(case_id))])
)
... | 35.470588 | 112 | 0.648425 | 86 | 603 | 4.360465 | 0.430233 | 0.128 | 0.168 | 0.2 | 0.402667 | 0.314667 | 0.314667 | 0.314667 | 0.314667 | 0.314667 | 0 | 0 | 0.252073 | 603 | 16 | 113 | 37.6875 | 0.831486 | 0 | 0 | 0.285714 | 0 | 0 | 0.087894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
26a64707d00b587975cc33c226aad759fa20a406 | 992 | py | Python | gdsfactory/klayout/drc/errors.py | tvt173/gdsfactory | 69dcfccff1525722e7029eb8bb8c4c9ddebbac47 | [
"MIT"
] | null | null | null | gdsfactory/klayout/drc/errors.py | tvt173/gdsfactory | 69dcfccff1525722e7029eb8bb8c4c9ddebbac47 | [
"MIT"
] | null | null | null | gdsfactory/klayout/drc/errors.py | tvt173/gdsfactory | 69dcfccff1525722e7029eb8bb8c4c9ddebbac47 | [
"MIT"
] | null | null | null | import gdsfactory as gf
layer = gf.LAYER.WG
@gf.cell
def width_min(size=(0.1, 0.1)):
c = gf.components.rectangle(size=size, layer=layer)
return c
@gf.cell
def gap_min(gap=0.1):
c = gf.Component()
r1 = c << gf.components.rectangle(size=(1, 1), layer=layer)
r2 = c << gf.components.rectangle(size=... | 19.84 | 63 | 0.591734 | 163 | 992 | 3.466258 | 0.257669 | 0.058407 | 0.115044 | 0.19469 | 0.513274 | 0.438938 | 0.438938 | 0.438938 | 0.438938 | 0.438938 | 0 | 0.038008 | 0.230847 | 992 | 49 | 64 | 20.244898 | 0.70249 | 0.122984 | 0 | 0.548387 | 0 | 0 | 0.020857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.032258 | 0 | 0.290323 | 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 |
26b5b3054f4ab155350434426ced557086e81fd7 | 732 | py | Python | modules/custom_security_hub_findings/custom_finding_lambda/test/test_import_custom_finding.py | YogitaDSurve/custom-securityhub-findings | 20582393b5ca2340ca928c1103566774960e629d | [
"MIT"
] | null | null | null | modules/custom_security_hub_findings/custom_finding_lambda/test/test_import_custom_finding.py | YogitaDSurve/custom-securityhub-findings | 20582393b5ca2340ca928c1103566774960e629d | [
"MIT"
] | null | null | null | modules/custom_security_hub_findings/custom_finding_lambda/test/test_import_custom_finding.py | YogitaDSurve/custom-securityhub-findings | 20582393b5ca2340ca928c1103566774960e629d | [
"MIT"
] | null | null | null | import json
from unittest import mock
import pytest
from src.findings.import_security_hub_finding import lambda_handler
from .test_fixtures import os_environment_setup
class TestImportSecurityHubFinding:
@mock.patch("boto3.client")
def test_iam_user_creation_event(self, mock_client, os_environment_setup):
... | 31.826087 | 110 | 0.733607 | 89 | 732 | 5.674157 | 0.483146 | 0.077228 | 0.106931 | 0.079208 | 0.233663 | 0.233663 | 0 | 0 | 0 | 0 | 0 | 0.008319 | 0.178962 | 732 | 22 | 111 | 33.272727 | 0.831947 | 0 | 0 | 0.117647 | 0 | 0 | 0.098361 | 0.051913 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.117647 | false | 0 | 0.411765 | 0 | 0.588235 | 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 |
26b65d813ac39a33ffc4da8e1735508015a2c686 | 482 | py | Python | src/teamboard/migrations/0002_auto_20180822_0812.py | georgy-komarov/innopolis-sec.deploy | dee116738de7e209b6ba54506431b815aaf1789f | [
"MIT"
] | 4 | 2018-08-24T11:54:56.000Z | 2018-08-24T18:13:10.000Z | src/teamboard/migrations/0002_auto_20180822_0812.py | georgy-komarov/innopolis-sec.deploy | dee116738de7e209b6ba54506431b815aaf1789f | [
"MIT"
] | null | null | null | src/teamboard/migrations/0002_auto_20180822_0812.py | georgy-komarov/innopolis-sec.deploy | dee116738de7e209b6ba54506431b815aaf1789f | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2018-08-22 08:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('teamboard', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | 24.1 | 125 | 0.636929 | 55 | 482 | 5.527273 | 0.654545 | 0.078947 | 0.092105 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.240664 | 482 | 19 | 126 | 25.368421 | 0.781421 | 0.089212 | 0 | 0 | 1 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26b7d247c2547c5dea88cddc7b719841ed93b7c4 | 929 | py | Python | daiquiri/stats/views.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 14 | 2018-12-23T18:35:02.000Z | 2021-12-15T04:55:12.000Z | daiquiri/stats/views.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 40 | 2018-12-20T12:44:05.000Z | 2022-03-21T11:35:20.000Z | daiquiri/stats/views.py | agy-why/daiquiri | 4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d | [
"Apache-2.0"
] | 5 | 2019-05-16T08:03:35.000Z | 2021-08-23T20:03:11.000Z | from django.conf import settings
from django.views.generic import TemplateView
from daiquiri.core.views import ModelPermissionMixin
from .models import Record
class ManagementView(ModelPermissionMixin, TemplateView):
template_name = 'stats/management.html'
permission_required = 'daiquiri_stats.view_record'
... | 35.730769 | 111 | 0.721206 | 105 | 929 | 6.161905 | 0.47619 | 0.111283 | 0.043277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16577 | 929 | 25 | 112 | 37.16 | 0.834839 | 0 | 0 | 0 | 0 | 0 | 0.133477 | 0.050592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
26b9b75662d8487a66691e2eabdbd48201acc099 | 2,800 | py | Python | select_.py | hlovatt/PyBoardTypeshedGenerator | 1d133cab16ea5d558b03175e6fa48b4a23b76136 | [
"MIT"
] | 5 | 2020-07-26T08:48:39.000Z | 2021-09-13T19:19:37.000Z | select_.py | hlovatt/PyBoardTypeshedGenerator | 1d133cab16ea5d558b03175e6fa48b4a23b76136 | [
"MIT"
] | null | null | null | select_.py | hlovatt/PyBoardTypeshedGenerator | 1d133cab16ea5d558b03175e6fa48b4a23b76136 | [
"MIT"
] | 1 | 2020-11-07T22:37:44.000Z | 2020-11-07T22:37:44.000Z | """
Generate `pyi` from corresponding `rst` docs.
"""
import rst
from rst2pyi import RST2PyI
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "7.2.0" # Version set by https://github.com/hlovatt/tag2ver
def select(shed: RST2PyI) -> None:
shed.module(
... | 29.787234 | 111 | 0.594286 | 363 | 2,800 | 4.446281 | 0.38843 | 0.030359 | 0.043371 | 0.047708 | 0.22119 | 0.155514 | 0.129492 | 0.035936 | 0 | 0 | 0 | 0.007537 | 0.241786 | 2,800 | 93 | 112 | 30.107527 | 0.752708 | 0.096786 | 0 | 0.097222 | 1 | 0.027778 | 0.540924 | 0.019662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013889 | false | 0 | 0.055556 | 0 | 0.069444 | 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 |
26bad242bc76ba7663d2990d42f698bdc4af302b | 1,131 | py | Python | src/langumo_ko/namuwiki/parsing.py | affjljoo3581/langumo-ko | 84cb82635a2ff16dc31b36cb9d00474057577aa3 | [
"Apache-2.0"
] | 6 | 2020-09-28T04:04:45.000Z | 2022-01-13T12:24:10.000Z | src/langumo_ko/namuwiki/parsing.py | affjljoo3581/langumo-ko | 84cb82635a2ff16dc31b36cb9d00474057577aa3 | [
"Apache-2.0"
] | null | null | null | src/langumo_ko/namuwiki/parsing.py | affjljoo3581/langumo-ko | 84cb82635a2ff16dc31b36cb9d00474057577aa3 | [
"Apache-2.0"
] | 1 | 2020-12-06T11:25:08.000Z | 2020-12-06T11:25:08.000Z | import re
import ijson
from typing import Iterable
import langumo_ko.utils as utils
from langumo.building import Parser
from langumo.utils import AuxiliaryFile
from langumo_ko.namuwiki.rendering import NamuWikiRenderer
class NamuWikiParser(Parser):
single_quotes_pattern = re.compile('[\x60\xb4\u2018\u2019]')
... | 33.264706 | 72 | 0.617153 | 131 | 1,131 | 5.244275 | 0.564886 | 0.048035 | 0.043668 | 0.064047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023486 | 0.284704 | 1,131 | 33 | 73 | 34.272727 | 0.825711 | 0.023873 | 0 | 0.08 | 0 | 0 | 0.049002 | 0.019964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.28 | 0 | 0.52 | 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 |
26be4bcd28521a09ed31767893e5171f2e5b42a3 | 2,193 | py | Python | oo/pessoa.py | Jaques1974/pythonbirds | dcd7270442dc652ff698689b81ee45c9a7c76c2d | [
"MIT"
] | null | null | null | oo/pessoa.py | Jaques1974/pythonbirds | dcd7270442dc652ff698689b81ee45c9a7c76c2d | [
"MIT"
] | null | null | null | oo/pessoa.py | Jaques1974/pythonbirds | dcd7270442dc652ff698689b81ee45c9a7c76c2d | [
"MIT"
] | null | null | null | class Pessoa:
olhos = 2
def __init__(self, *filhos, nome = None, idade = 35):#---->Aqui são parâmetros(None,35)para os valores(nome, idade).
self.idade = idade #----> Existem também os atributos de dados(que podem ser chamados também atributos de obje-
self.nome = nome #to) que são de... | 52.214286 | 120 | 0.678979 | 310 | 2,193 | 4.690323 | 0.380645 | 0.037827 | 0.028886 | 0.033012 | 0.045392 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005217 | 0.213406 | 2,193 | 42 | 121 | 52.214286 | 0.837681 | 0.429093 | 0 | 0 | 0 | 0 | 0.053226 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.108108 | false | 0 | 0 | 0.081081 | 0.243243 | 0.378378 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
26cab80a46e13d38a76933a1b4b132cf0344cade | 417 | py | Python | blog/migrations/0007_auto_20210227_1437.py | itsmusa/simpleblog | fceef520684a8249e119c337898b945689515957 | [
"MIT"
] | null | null | null | blog/migrations/0007_auto_20210227_1437.py | itsmusa/simpleblog | fceef520684a8249e119c337898b945689515957 | [
"MIT"
] | null | null | null | blog/migrations/0007_auto_20210227_1437.py | itsmusa/simpleblog | fceef520684a8249e119c337898b945689515957 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-02-27 12:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0006_auto_20210227_1348'),
]
operations = [
migrations.AlterField(
model_name='post',
name='thumbnail',
... | 21.947368 | 83 | 0.609113 | 45 | 417 | 5.533333 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101639 | 0.268585 | 417 | 18 | 84 | 23.166667 | 0.714754 | 0.107914 | 0 | 0 | 1 | 0 | 0.164865 | 0.062162 | 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 |
26d508f4d78d17a0c977586c4a985dee6f8ae1b2 | 300 | py | Python | www/appsite/application.py | Africahouse/afrohub | 33b34b84a70d9119125e177fde96033649bdaa41 | [
"CC0-1.0"
] | null | null | null | www/appsite/application.py | Africahouse/afrohub | 33b34b84a70d9119125e177fde96033649bdaa41 | [
"CC0-1.0"
] | null | null | null | www/appsite/application.py | Africahouse/afrohub | 33b34b84a70d9119125e177fde96033649bdaa41 | [
"CC0-1.0"
] | null | null | null | #application.py
# System Dependecies
from flask import Flask, render_template
# Initialize
app = Flask(__name__)
# Configure
app.config['PORT'] = 12600
app.config['HOST'] = '0.0.0.0'
app.config['SECRET_KEY'] = 'ghana tribes'
@app.route('/')
def index():
return render_template('index.html')
| 17.647059 | 41 | 0.703333 | 41 | 300 | 4.97561 | 0.658537 | 0.132353 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034615 | 0.133333 | 300 | 16 | 42 | 18.75 | 0.75 | 0.183333 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
26e0faafb6881e6809c9789c758908f23412410e | 1,734 | py | Python | vlc_linux/vlc-3.0.16/contrib/src/gen-meson-crossfile.py | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | vlc_linux/vlc-3.0.16/contrib/src/gen-meson-crossfile.py | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | vlc_linux/vlc-3.0.16/contrib/src/gen-meson-crossfile.py | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import argparse
import shlex
# Argument parsing
parser = argparse.ArgumentParser(
description="Generate a meson crossfile based on environment variables")
parser.add_argument('file', type=argparse.FileType('w', encoding='UTF-8'),
help="output file")
args = parser.parse_args()
... | 32.716981 | 76 | 0.72203 | 258 | 1,734 | 4.577519 | 0.360465 | 0.118544 | 0.099069 | 0.059272 | 0.237934 | 0.047417 | 0.047417 | 0 | 0 | 0 | 0 | 0.001935 | 0.106113 | 1,734 | 52 | 77 | 33.346154 | 0.76 | 0.137255 | 0 | 0 | 1 | 0 | 0.281775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.085714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26e5c2d235a7dbf223428375e049f062cc7594b9 | 3,093 | py | Python | aiwolf/agent.py | AIWolfSharp/aiwolf-python | 78c4ef4f3dce7c7f786330a684623a0ec1a7243b | [
"Apache-2.0"
] | null | null | null | aiwolf/agent.py | AIWolfSharp/aiwolf-python | 78c4ef4f3dce7c7f786330a684623a0ec1a7243b | [
"Apache-2.0"
] | null | null | null | aiwolf/agent.py | AIWolfSharp/aiwolf-python | 78c4ef4f3dce7c7f786330a684623a0ec1a7243b | [
"Apache-2.0"
] | null | null | null | #
# agent.py
#
# Copyright 2022 OTSUKI Takashi
#
# 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 agre... | 22.413043 | 80 | 0.585516 | 370 | 3,093 | 4.781081 | 0.4 | 0.033917 | 0.024873 | 0.023742 | 0.071227 | 0.048615 | 0.048615 | 0 | 0 | 0 | 0 | 0.006673 | 0.273198 | 3,093 | 137 | 81 | 22.576642 | 0.780249 | 0.321371 | 0 | 0.176471 | 0 | 0 | 0.092432 | 0 | 0 | 0 | 0.002311 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.078431 | 0.019608 | 0.784314 | 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 |
26fa76fd4ff3eefb7b6e823079bf7675bef28642 | 390 | py | Python | idp_user/migrations/0003_auto_20220513_1025.py | CardoAI/django-idp-user | 8f0d3e04e5c6dd7b94a9afe41bb20ad0ffe214ad | [
"MIT"
] | 5 | 2022-01-06T15:18:45.000Z | 2022-02-21T11:12:06.000Z | idp_user/migrations/0003_auto_20220513_1025.py | CardoAI/django-idp-user | 8f0d3e04e5c6dd7b94a9afe41bb20ad0ffe214ad | [
"MIT"
] | null | null | null | idp_user/migrations/0003_auto_20220513_1025.py | CardoAI/django-idp-user | 8f0d3e04e5c6dd7b94a9afe41bb20ad0ffe214ad | [
"MIT"
] | 1 | 2022-03-29T07:50:15.000Z | 2022-03-29T07:50:15.000Z | # Generated by Django 3.1.14 on 2022-05-13 10:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('idp_user', '0002_auto_20220120_1617'),
]
operations = [
migrations.RenameField(
model_name='userrole',
old_name='app_config... | 20.526316 | 49 | 0.612821 | 43 | 390 | 5.325581 | 0.837209 | 0.061135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0.282051 | 390 | 18 | 50 | 21.666667 | 0.703571 | 0.117949 | 0 | 0 | 1 | 0 | 0.216374 | 0.140351 | 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 |
f806934047349716db3016e6549b9a30e2ff9b12 | 385 | py | Python | users/migrations/0005_rename_emailinstitucional_colaborador_address_email.py | higornobrega/usurio | a5ec04e976f421131986f794652d63aa2ed45fdb | [
"Apache-2.0"
] | null | null | null | users/migrations/0005_rename_emailinstitucional_colaborador_address_email.py | higornobrega/usurio | a5ec04e976f421131986f794652d63aa2ed45fdb | [
"Apache-2.0"
] | null | null | null | users/migrations/0005_rename_emailinstitucional_colaborador_address_email.py | higornobrega/usurio | a5ec04e976f421131986f794652d63aa2ed45fdb | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-30 18:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0004_auto_20210830_1844'),
]
operations = [
migrations.RenameField(
model_name='colaborador',
old_name='emailInstit... | 20.263158 | 47 | 0.607792 | 40 | 385 | 5.675 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112727 | 0.285714 | 385 | 18 | 48 | 21.388889 | 0.712727 | 0.116883 | 0 | 0 | 1 | 0 | 0.207101 | 0.068047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f80b84539847e3e2bc1f52eebd416fdfd52b0ea0 | 5,366 | py | Python | nabu/postprocessing/reconstructors/deepclusteringnoise_reconstructor.py | Darleen2019/Nabu-MSSS | 5e862cbf846d45b8a317f87588533f3fde9f0726 | [
"MIT"
] | 18 | 2017-10-16T13:12:46.000Z | 2022-02-15T01:20:00.000Z | nabu/postprocessing/reconstructors/deepclusteringnoise_reconstructor.py | Darleen2019/Nabu-MSSS | 5e862cbf846d45b8a317f87588533f3fde9f0726 | [
"MIT"
] | null | null | null | nabu/postprocessing/reconstructors/deepclusteringnoise_reconstructor.py | Darleen2019/Nabu-MSSS | 5e862cbf846d45b8a317f87588533f3fde9f0726 | [
"MIT"
] | 9 | 2017-10-03T18:10:10.000Z | 2020-11-13T08:26:31.000Z | """@file deepclusteringnoise_reconstructor.py
contains the reconstor class using deep clustering for modified noise architecture"""
from sklearn.cluster import KMeans
import mask_reconstructor
from nabu.postprocessing import data_reader
import numpy as np
import os
class DeepclusteringnoiseReconstructor(mask_reconst... | 39.167883 | 114 | 0.758852 | 781 | 5,366 | 4.989757 | 0.285531 | 0.039518 | 0.026687 | 0.026174 | 0.124198 | 0.103669 | 0.068771 | 0.068771 | 0.052348 | 0.025148 | 0 | 0.007448 | 0.149273 | 5,366 | 136 | 115 | 39.455882 | 0.846221 | 0.109952 | 0 | 0.024691 | 0 | 0.012346 | 0.155108 | 0.018394 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061728 | null | null | 0.049383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f8122ee230528a3683e8731c0c237b7f35873519 | 2,619 | py | Python | fabulous/services/news.py | rusrushal13/fabulous | 61979213c5f1381e686e8a516606d9963e91f8b1 | [
"BSD-3-Clause"
] | null | null | null | fabulous/services/news.py | rusrushal13/fabulous | 61979213c5f1381e686e8a516606d9963e91f8b1 | [
"BSD-3-Clause"
] | null | null | null | fabulous/services/news.py | rusrushal13/fabulous | 61979213c5f1381e686e8a516606d9963e91f8b1 | [
"BSD-3-Clause"
] | null | null | null | """~news <location> <category> <language>will fetch news from news API
1. news
2. news <au, de, gb, in, it, us>
3. news <au, de, gb, in, it, us> <business, entertainment, gaming, general, music, politics, science-and-nature, sport, technology>
4. news <au, de, gb, in, it, us> <business, entertainment, gaming, general, ... | 35.876712 | 214 | 0.662085 | 312 | 2,619 | 5.544872 | 0.333333 | 0.009249 | 0.013873 | 0.018497 | 0.216185 | 0.216185 | 0.209249 | 0.2 | 0.153757 | 0.153757 | 0 | 0.008392 | 0.180985 | 2,619 | 72 | 215 | 36.375 | 0.798135 | 0.016418 | 0 | 0.107143 | 0 | 0 | 0.190651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053571 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f8154b43f11d2158af28971b9822cda48b25882a | 332 | py | Python | Codeforces/D_Deleting_Divisors.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/D_Deleting_Divisors.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/D_Deleting_Divisors.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | for _ in range(int(input())):
n=int(input())
if n%2==0:
check=0
while n%2==0:
n=n//2
check+=1
if n<=1:
if check%2:
print("Bob")
else:
print("Alice")
else:
print("Alice")
else:
... | 20.75 | 30 | 0.349398 | 40 | 332 | 2.875 | 0.4 | 0.052174 | 0.052174 | 0.313043 | 0.321739 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054217 | 0.5 | 332 | 16 | 31 | 20.75 | 0.638554 | 0 | 0 | 0.4375 | 0 | 0 | 0.048048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
f8170281a8ef1e8d71ca4cefe7cfdd3809294af6 | 601 | py | Python | test/util.py | jayvdb/test_server | e46b5f4c0b38b9c98d90625407c91855f725ed5a | [
"MIT"
] | 2 | 2019-11-04T07:17:02.000Z | 2021-02-11T06:33:57.000Z | test/util.py | jayvdb/test_server | e46b5f4c0b38b9c98d90625407c91855f725ed5a | [
"MIT"
] | 8 | 2018-04-17T01:14:42.000Z | 2022-02-19T22:17:01.000Z | test/util.py | jayvdb/test_server | e46b5f4c0b38b9c98d90625407c91855f725ed5a | [
"MIT"
] | 8 | 2015-05-12T19:34:27.000Z | 2020-04-10T06:28:01.000Z | import pytest
from test_server import TestServer
STATE = {
'server': None
}
@pytest.fixture(scope='session')
def global_server():
if not STATE['server']:
print('[!] Starting server')
srv = TestServer(port=9999)
srv.start(daemon=True)
STATE['server'] = srv
yield STATE['ser... | 21.464286 | 65 | 0.63228 | 69 | 601 | 5.434783 | 0.492754 | 0.205333 | 0.08 | 0.112 | 0.176 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0.008565 | 0.222962 | 601 | 27 | 66 | 22.259259 | 0.794433 | 0.0599 | 0 | 0 | 0 | 0 | 0.166963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.238095 | 0.095238 | 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 |
f8177bae0e4ef5f76b5e43afdd5de88ea77b25a4 | 431 | py | Python | solutions/python3/161.py | sm2774us/amazon_interview_prep_2021 | f580080e4a6b712b0b295bb429bf676eb15668de | [
"MIT"
] | 42 | 2020-08-02T07:03:49.000Z | 2022-03-26T07:50:15.000Z | solutions/python3/161.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | null | null | null | solutions/python3/161.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | 40 | 2020-02-08T02:50:24.000Z | 2022-03-26T15:38:10.000Z | class Solution:
def isOneEditDistance(self, s, t):
l1, l2, cnt, i, j = len(s), len(t), 0, 0, 0
while i < l1 and j < l2:
if s[i] != t[j]:
cnt += 1
if l1 < l2:
i -= 1
elif l1 > l2:
j -= 1
i ... | 30.785714 | 62 | 0.322506 | 62 | 431 | 2.241935 | 0.370968 | 0.115108 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.540603 | 431 | 14 | 62 | 30.785714 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 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 |
f826ef9eef888441901f7a2bc39e460dc9165df6 | 253 | py | Python | torch_geometric/utils/sparse.py | cysmnl/geometric_cognition | 473c0cf585aaf49904bfb87c35ea706e12f67f8a | [
"MIT"
] | 62 | 2018-12-12T16:06:34.000Z | 2022-02-18T11:32:04.000Z | torch_geometric/utils/sparse.py | cysmnl/geometric_cognition | 473c0cf585aaf49904bfb87c35ea706e12f67f8a | [
"MIT"
] | 2 | 2019-12-26T12:51:47.000Z | 2020-09-02T10:39:55.000Z | torch_geometric/utils/sparse.py | cysmnl/geometric_cognition | 473c0cf585aaf49904bfb87c35ea706e12f67f8a | [
"MIT"
] | 19 | 2018-12-12T17:51:43.000Z | 2021-09-19T08:01:29.000Z | from torch_sparse import coalesce
def dense_to_sparse(tensor):
index = tensor.nonzero()
value = tensor[index]
index = index.t().contiguous()
index, value = coalesce(index, value, tensor.size(0), tensor.size(1))
return index, value
| 25.3 | 73 | 0.6917 | 34 | 253 | 5.058824 | 0.529412 | 0.174419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.185771 | 253 | 9 | 74 | 28.111111 | 0.825243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
f82a624d486efa4628e9095514ccb738f64c6900 | 169 | py | Python | problems/10.py | christofferaakre/project-euler | 4b42802233be10e4a592798205171fb5156dae6b | [
"MIT"
] | null | null | null | problems/10.py | christofferaakre/project-euler | 4b42802233be10e4a592798205171fb5156dae6b | [
"MIT"
] | null | null | null | problems/10.py | christofferaakre/project-euler | 4b42802233be10e4a592798205171fb5156dae6b | [
"MIT"
] | null | null | null | from main import Solver, is_prime
solver = Solver()
sum = 0
for i in range(1, 2000000):
if is_prime(i):
print(i)
sum += i
solver.solve(10, sum)
| 12.071429 | 33 | 0.591716 | 28 | 169 | 3.5 | 0.642857 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091667 | 0.289941 | 169 | 13 | 34 | 13 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 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 |
f82cbc8eb113c7b72b6e67f78ac3e2fbaa02bd5f | 2,902 | py | Python | fpr2par/helpers.py | artefactual-labs/fpr2par | 3c53805af952f88832cf7bfae1f90ecf9e0585ac | [
"Apache-2.0"
] | 2 | 2020-04-22T16:13:21.000Z | 2020-04-25T16:52:33.000Z | fpr2par/helpers.py | artefactual-labs/fpr2par | 3c53805af952f88832cf7bfae1f90ecf9e0585ac | [
"Apache-2.0"
] | 40 | 2020-04-24T14:36:40.000Z | 2020-04-30T20:54:30.000Z | fpr2par/helpers.py | artefactual-labs/fpr2par | 3c53805af952f88832cf7bfae1f90ecf9e0585ac | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from datetime import datetime
def _parse_offset_limit(request):
"""Parse offset and limit values from a given Flask request and return
a tuple containing both.
"""
offset = request.args.get("offset", default=0, type=int)
limit = request.args.get("limit", default=None, type=... | 32.606742 | 82 | 0.712612 | 404 | 2,902 | 4.871287 | 0.299505 | 0.030488 | 0.04065 | 0.038618 | 0.305894 | 0.216463 | 0.153455 | 0.052846 | 0.052846 | 0.052846 | 0 | 0.010629 | 0.189524 | 2,902 | 88 | 83 | 32.977273 | 0.826105 | 0.23949 | 0 | 0.076923 | 0 | 0 | 0.060776 | 0.01122 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.115385 | false | 0.019231 | 0.019231 | 0 | 0.307692 | 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 |
f82cf17313f72c7f3e0c7d61740823af2d1633fb | 863 | py | Python | runtests.py | deehzee/affine-charform | e03d43972e28e2a364bd54b6bd7b95e77bf2e9d2 | [
"MIT"
] | 2 | 2019-04-13T03:50:22.000Z | 2021-03-02T12:34:47.000Z | runtests.py | deehzee/affine-charform | e03d43972e28e2a364bd54b6bd7b95e77bf2e9d2 | [
"MIT"
] | null | null | null | runtests.py | deehzee/affine-charform | e03d43972e28e2a364bd54b6bd7b95e77bf2e9d2 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
from charform import charform
from parse import parse
from sys import stderr, exit
import argparse
parser = argparse.ArgumentParser(
description='Test charform.py on input file(s).')
parser.add_argument(
'files',
metavar = 'FILE',
... | 28.766667 | 61 | 0.508691 | 93 | 863 | 4.55914 | 0.483871 | 0.042453 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.382387 | 863 | 29 | 62 | 29.758621 | 0.795497 | 0 | 0 | 0 | 0 | 0 | 0.12993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f82d02a8f2c8031371a8ecb04f92e6d0ac41d857 | 8,353 | py | Python | main.py | swipswaps/Wind-Blade-Inspection | 24613b9f2fbab224ffd3bbfc1082aa1547c19779 | [
"MIT"
] | null | null | null | main.py | swipswaps/Wind-Blade-Inspection | 24613b9f2fbab224ffd3bbfc1082aa1547c19779 | [
"MIT"
] | null | null | null | main.py | swipswaps/Wind-Blade-Inspection | 24613b9f2fbab224ffd3bbfc1082aa1547c19779 | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
Author: Hans Erik Heggem
Email: hans.erik.heggem@gmail.com
Project: Master's Thesis - Autonomous Inspection Of Wind Blades
Repository: Master's Thesis - CV (Computer Vision)
Usage:
'sudo python main.py' or 'sudo ./main.py'
Append either of these options:
- 'run' to initiate main progr... | 51.561728 | 213 | 0.751347 | 1,158 | 8,353 | 5.278929 | 0.253886 | 0.050384 | 0.020612 | 0.021757 | 0.354163 | 0.230165 | 0.171438 | 0.119908 | 0.10813 | 0.091444 | 0 | 0.000141 | 0.153717 | 8,353 | 162 | 214 | 51.561728 | 0.86462 | 0.001915 | 0 | 0.201923 | 0 | 0.096154 | 0.462804 | 0.028715 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.201923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f82ef44b4cd4a9ed72790d762579a544acae9841 | 8,482 | py | Python | main.py | r3tard/BartusBot | baa0e775a8495c696ca274d78f898eb74d8fa961 | [
"Apache-2.0"
] | 1 | 2015-11-01T00:16:41.000Z | 2015-11-01T00:16:41.000Z | main.py | r3tard/BartusBot | baa0e775a8495c696ca274d78f898eb74d8fa961 | [
"Apache-2.0"
] | 12 | 2015-10-30T20:22:53.000Z | 2016-02-09T21:56:17.000Z | main.py | r3tard/BartusBot | baa0e775a8495c696ca274d78f898eb74d8fa961 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import StringIO
import json
import logging
import random
import urllib
import urllib2
import parsedatetime
from time import mktime
from datetime import datetime, timedelta
import schedule
import rem... | 34.620408 | 229 | 0.568262 | 918 | 8,482 | 5.111111 | 0.294118 | 0.035806 | 0.017263 | 0.03133 | 0.275789 | 0.227195 | 0.214834 | 0.199062 | 0.199062 | 0.199062 | 0 | 0.014464 | 0.298986 | 8,482 | 244 | 230 | 34.762295 | 0.77447 | 0.087479 | 0 | 0.27551 | 0 | 0 | 0.132806 | 0.022674 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.091837 | 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 |
f8315af9473ff789440fa4d4fc7e85ea71baa24e | 2,882 | py | Python | AngularJSLibrary/test/testExecAsyncWithCallback.py | klaasderks/robotframework-angularjs | b3fed80b4bb984aee5aecb2217e03ec8249c6ae1 | [
"Apache-2.0"
] | 35 | 2015-05-27T02:37:08.000Z | 2021-08-28T03:49:40.000Z | AngularJSLibrary/test/testExecAsyncWithCallback.py | klaasderks/robotframework-angularjs | b3fed80b4bb984aee5aecb2217e03ec8249c6ae1 | [
"Apache-2.0"
] | 25 | 2016-02-05T12:58:44.000Z | 2021-02-18T01:39:30.000Z | AngularJSLibrary/test/testExecAsyncWithCallback.py | klaasderks/robotframework-angularjs | b3fed80b4bb984aee5aecb2217e03ec8249c6ae1 | [
"Apache-2.0"
] | 22 | 2015-06-24T15:41:59.000Z | 2020-11-06T07:03:24.000Z | import unittest
from selenium import webdriver
js_waiting_var="""
var waiting = true;
var callback = arguments[arguments.length - 1];
var el = document.querySelector('#nested-ng-app');
angular.element(el).injector().get('$browser').
notifyWhenNoOutstandingRequests(callback);
r... | 30.020833 | 90 | 0.632894 | 307 | 2,882 | 5.801303 | 0.413681 | 0.043796 | 0.067378 | 0.065132 | 0.292532 | 0.276811 | 0.185289 | 0.087591 | 0.087591 | 0.087591 | 0 | 0.010032 | 0.23907 | 2,882 | 95 | 91 | 30.336842 | 0.802098 | 0.119015 | 0 | 0.213333 | 0 | 0 | 0.674723 | 0.274564 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.026667 | 0.026667 | 0 | 0.106667 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f83710241ac23cb65b68a86bcdd7aa6bf5f1d23d | 639 | py | Python | flask-proj/App/__init__.py | uninstallHahaha/flask-project | 4cff833dd04f0fdfa60627aa334c51a53a4e3159 | [
"Apache-2.0"
] | null | null | null | flask-proj/App/__init__.py | uninstallHahaha/flask-project | 4cff833dd04f0fdfa60627aa334c51a53a4e3159 | [
"Apache-2.0"
] | null | null | null | flask-proj/App/__init__.py | uninstallHahaha/flask-project | 4cff833dd04f0fdfa60627aa334c51a53a4e3159 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
from flask_script import Manager
from flask_migrate import MigrateCommand
from App.ext_init import init_ext, migrate
from App.settings import Development
from App.views import blue, init_api
# 初始化 APP模块
def create_app():
# 创建 flask实例
app = Flask(__name__)
# 初始化接口
... | 19.96875 | 46 | 0.691706 | 76 | 639 | 5.631579 | 0.486842 | 0.063084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248826 | 639 | 31 | 47 | 20.612903 | 0.891667 | 0.192488 | 0 | 0 | 0 | 0 | 0.004202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f837a0448dda14d29fac674f02517a63c4f4692e | 10,693 | py | Python | ksig/algorithms.py | tgcsaba/ksig | bef68abeddb268d4166b4db0953f8dce9b8c36d1 | [
"Apache-2.0"
] | 8 | 2021-05-22T14:38:13.000Z | 2021-07-14T12:44:39.000Z | ksig/algorithms.py | tgcsaba/ksig | bef68abeddb268d4166b4db0953f8dce9b8c36d1 | [
"Apache-2.0"
] | null | null | null | ksig/algorithms.py | tgcsaba/ksig | bef68abeddb268d4166b4db0953f8dce9b8c36d1 | [
"Apache-2.0"
] | 2 | 2021-06-03T13:31:41.000Z | 2021-06-30T10:03:32.000Z | import numpy as np
import cupy as cp
from typing import Optional, Union, List
from .projections import RandomProjection, TensorizedRandomProjection
from .utils import ArrayOnCPU, ArrayOnGPU, ArrayOnCPUOrGPU, RandomStateOrSeed
# ----------------------------------------------------------------------------------------... | 48.166667 | 162 | 0.498176 | 1,355 | 10,693 | 3.810332 | 0.103321 | 0.028084 | 0.019756 | 0.021305 | 0.779392 | 0.746078 | 0.691846 | 0.656401 | 0.61166 | 0.584931 | 0 | 0.015687 | 0.225007 | 10,693 | 222 | 163 | 48.166667 | 0.607337 | 0.27186 | 0 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048951 | false | 0 | 0.034965 | 0 | 0.146853 | 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 |
f83c6ec444a167ca13f09a4256eab7554b5cc952 | 4,772 | py | Python | src/audio_library/migrations/0001_initial.py | Hazzari/Media_library | b389a013ef71b4770d462b2d2f7575b4cf660bd8 | [
"MIT"
] | null | null | null | src/audio_library/migrations/0001_initial.py | Hazzari/Media_library | b389a013ef71b4770d462b2d2f7575b4cf660bd8 | [
"MIT"
] | null | null | null | src/audio_library/migrations/0001_initial.py | Hazzari/Media_library | b389a013ef71b4770d462b2d2f7575b4cf660bd8 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-18 07:36
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import src.base.services
class Migration(migrations.Migration):
initial = True
dependencies = [
('oauth', '0001_initial'),
]
operations = ... | 57.493976 | 253 | 0.629505 | 504 | 4,772 | 5.779762 | 0.236111 | 0.027463 | 0.043254 | 0.067971 | 0.686234 | 0.648472 | 0.583248 | 0.559561 | 0.503261 | 0.503261 | 0 | 0.012706 | 0.224853 | 4,772 | 82 | 254 | 58.195122 | 0.774804 | 0.00943 | 0 | 0.426667 | 1 | 0 | 0.117884 | 0.004444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053333 | 0 | 0.106667 | 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 |
f841e7c825bfedacf78aaa23614d22f8e3946de9 | 3,484 | py | Python | back-end/RawFishSheep/app_goods/migrations/0001_initial.py | Coldarra/RawFishSheep | 266bd9d8d9832d5c692b63e7515d45fdc4f6acc4 | [
"Apache-2.0"
] | null | null | null | back-end/RawFishSheep/app_goods/migrations/0001_initial.py | Coldarra/RawFishSheep | 266bd9d8d9832d5c692b63e7515d45fdc4f6acc4 | [
"Apache-2.0"
] | 4 | 2021-10-06T22:49:52.000Z | 2022-02-27T12:28:18.000Z | back-end/RawFishSheep/app_goods/migrations/0001_initial.py | Coldarra/RawFishSheep | 266bd9d8d9832d5c692b63e7515d45fdc4f6acc4 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.7 on 2019-04-13 07:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | 47.726027 | 176 | 0.572905 | 362 | 3,484 | 5.339779 | 0.229282 | 0.125194 | 0.04656 | 0.058976 | 0.714434 | 0.697879 | 0.692706 | 0.609933 | 0.609933 | 0.58717 | 0 | 0.015067 | 0.276119 | 3,484 | 72 | 177 | 48.388889 | 0.751388 | 0.012916 | 0 | 0.476923 | 1 | 0 | 0.137038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030769 | 0 | 0.092308 | 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 |
f8456f1013411f4f8e7e71ce13e80b24335ca3ed | 1,174 | py | Python | skaba/tests.py | Jonneitapuro/isoskaba2 | 6048e78604964b6596a6bd8d2402c386884b49ba | [
"MIT"
] | 4 | 2016-06-21T21:58:02.000Z | 2020-04-07T10:21:38.000Z | skaba/tests.py | Jonneitapuro/isoskaba2 | 6048e78604964b6596a6bd8d2402c386884b49ba | [
"MIT"
] | 7 | 2016-08-15T20:11:17.000Z | 2017-08-15T19:10:17.000Z | skaba/tests.py | Jonneitapuro/isoskaba2 | 6048e78604964b6596a6bd8d2402c386884b49ba | [
"MIT"
] | 1 | 2019-11-10T07:20:28.000Z | 2019-11-10T07:20:28.000Z | from django.test import TestCase, Client
import unittest
from skaba.models import User, Event, Guild
TEST_EVENT_NAME = 'Test event'
TEST_EVENT_DESC = 'This is an event for testing'
TEST_EVENT_SLUG = 'test-event'
TEST_EVENT_POINTS = 10
TEST_EVENT_GUILD = 1
TEST_ADMIN_PASSWORD = 'password'
TEST_ADMIN_USERNAME = 'test_... | 28.634146 | 105 | 0.770869 | 166 | 1,174 | 5.144578 | 0.319277 | 0.189696 | 0.06089 | 0.059719 | 0.229508 | 0.229508 | 0.229508 | 0.229508 | 0.229508 | 0.229508 | 0 | 0.006823 | 0.126065 | 1,174 | 41 | 106 | 28.634146 | 0.825536 | 0 | 0 | 0 | 0 | 0 | 0.111489 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.085714 | false | 0.114286 | 0.085714 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f8469dc22879fe940011b14ac38551e107008615 | 1,761 | py | Python | examples/generic/02-multi_determinant/gen_msd.py | pauxy-qmc/pauxy | 1da80284284769b59361c73cfa3c2d914c74a73f | [
"Apache-2.0"
] | 16 | 2020-08-05T17:17:17.000Z | 2022-03-18T04:06:18.000Z | examples/generic/02-multi_determinant/gen_msd.py | pauxy-qmc/pauxy | 1da80284284769b59361c73cfa3c2d914c74a73f | [
"Apache-2.0"
] | 4 | 2020-05-17T21:28:20.000Z | 2021-04-22T18:05:50.000Z | examples/generic/02-multi_determinant/gen_msd.py | pauxy-qmc/pauxy | 1da80284284769b59361c73cfa3c2d914c74a73f | [
"Apache-2.0"
] | 5 | 2020-05-18T01:03:18.000Z | 2021-04-13T15:36:29.000Z | import numpy
import h5py
import scipy.sparse
from pyscf import gto, scf, mcscf, fci, ao2mo, lib
from pauxy.systems.generic import Generic
from pauxy.utils.from_pyscf import generate_integrals
from pauxy.utils.io import (
write_qmcpack_wfn,
write_qmcpack_dense,
write_input
)
mol = gto.M(... | 34.529412 | 79 | 0.625781 | 286 | 1,761 | 3.772727 | 0.412587 | 0.046339 | 0.027804 | 0.029657 | 0.088971 | 0.0519 | 0.0519 | 0.0519 | 0.0519 | 0 | 0 | 0.030736 | 0.205565 | 1,761 | 50 | 80 | 35.22 | 0.740529 | 0.029529 | 0 | 0 | 1 | 0 | 0.042204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.152174 | 0 | 0.152174 | 0.021739 | 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 |
f85b65164fd96203df45dd0619eac182d52349bb | 2,679 | py | Python | src/carica/models/path.py | Trimatix/carica | 074be16bdf50541eb3ba92ca42d0ad901cc51bd0 | [
"Apache-2.0"
] | 5 | 2021-09-08T07:29:23.000Z | 2021-11-24T00:18:22.000Z | src/carica/models/path.py | Trimatix/Carica | 074be16bdf50541eb3ba92ca42d0ad901cc51bd0 | [
"Apache-2.0"
] | 42 | 2021-09-08T07:31:25.000Z | 2022-01-16T17:39:34.000Z | src/carica/models/path.py | Trimatix/carica | 074be16bdf50541eb3ba92ca42d0ad901cc51bd0 | [
"Apache-2.0"
] | null | null | null | from carica.interface import ISerializable, PrimativeType
from pathlib import Path, WindowsPath, PosixPath
import os
class SerializablePath(ISerializable, Path):
"""A serializable path intended to be treated as a string.
This class serializes into a usable string.
This class directly copies the instancin... | 39.397059 | 122 | 0.675252 | 313 | 2,679 | 5.686901 | 0.402556 | 0.01573 | 0.015169 | 0.014607 | 0.040449 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003941 | 0.242255 | 2,679 | 67 | 123 | 39.985075 | 0.872906 | 0.391191 | 0 | 0.064516 | 0 | 0 | 0.143525 | 0.042724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.064516 | 0.096774 | 0 | 0.483871 | 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 |
f86333feeb7e1c85d88633bf6ad7f6c489d50193 | 1,038 | py | Python | tests/conftest.py | cihai/cli | be314214dfa68f4c32036fa94d57a380d0290619 | [
"MIT"
] | null | null | null | tests/conftest.py | cihai/cli | be314214dfa68f4c32036fa94d57a380d0290619 | [
"MIT"
] | 100 | 2017-05-20T07:20:30.000Z | 2018-08-29T23:38:06.000Z | tests/conftest.py | cihai/cli | be314214dfa68f4c32036fa94d57a380d0290619 | [
"MIT"
] | null | null | null | import os
import pathlib
import zipfile
import pytest
from cihai.data.unihan.constants import UNIHAN_FILES
@pytest.fixture
def fixture_path():
return os.path.abspath(os.path.join(os.path.dirname(__file__), "fixtures"))
@pytest.fixture
def test_config_file(fixture_path):
return os.path.join(fixture_path, "... | 21.183673 | 79 | 0.686898 | 153 | 1,038 | 4.431373 | 0.287582 | 0.072271 | 0.117994 | 0.056047 | 0.19174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181118 | 1,038 | 48 | 80 | 21.625 | 0.797647 | 0 | 0 | 0.147059 | 0 | 0 | 0.083815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.147059 | 0.147059 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
f8710e8cf71f5af467193743301b9953fb41bd35 | 3,216 | py | Python | test/commands/down.py | jonahgeorge/schema-tool | bc315e1a0d231fbb19ea9b5a7fa762b5c3c14024 | [
"Apache-2.0"
] | 40 | 2015-01-26T19:02:03.000Z | 2021-02-01T16:30:43.000Z | test/commands/down.py | jonahgeorge/schema-tool | bc315e1a0d231fbb19ea9b5a7fa762b5c3c14024 | [
"Apache-2.0"
] | 45 | 2015-01-26T18:53:51.000Z | 2021-08-30T18:18:56.000Z | test/commands/down.py | jonahgeorge/schema-tool | bc315e1a0d231fbb19ea9b5a7fa762b5c3c14024 | [
"Apache-2.0"
] | 21 | 2015-02-04T17:34:16.000Z | 2022-02-21T09:00:41.000Z | # stdlib imports
import os
import sys
import unittest
# src imports
import_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../schematool')
sys.path.append(import_path)
from command import CommandContext, DownCommand
from db import MemoryDb
from errors import MissingRefError
# test util imports
im... | 29.236364 | 91 | 0.668843 | 414 | 3,216 | 4.939614 | 0.210145 | 0.117359 | 0.140831 | 0.203423 | 0.670416 | 0.660147 | 0.580929 | 0.567237 | 0.465037 | 0.465037 | 0 | 0.013774 | 0.209888 | 3,216 | 109 | 92 | 29.504587 | 0.791027 | 0.013682 | 0 | 0.5 | 0 | 0 | 0.020518 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 1 | 0.128205 | false | 0.012821 | 0.166667 | 0 | 0.307692 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.