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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b889062471eec4a05ffe0051a8f37d066ce9f52b | 455 | py | Python | tests/model/backbone/test_fpn.py | LSanselme/kerod | cb52775ed501cbe4bd5fc0f22ec0359ca1d5f902 | [
"MIT"
] | 35 | 2020-06-14T11:20:54.000Z | 2022-03-02T14:42:25.000Z | tests/model/backbone/test_fpn.py | LSanselme/kerod | cb52775ed501cbe4bd5fc0f22ec0359ca1d5f902 | [
"MIT"
] | 9 | 2021-02-03T15:01:39.000Z | 2022-03-16T01:46:38.000Z | tests/model/backbone/test_fpn.py | LSanselme/kerod | cb52775ed501cbe4bd5fc0f22ec0359ca1d5f902 | [
"MIT"
] | 11 | 2021-02-02T09:41:16.000Z | 2022-03-01T15:43:31.000Z | import tensorflow as tf
from kerod.model.backbone.fpn import FPN
def test_build_fpn():
shapes = [160, 80, 40, 20]
features = [tf.zeros((1, shape, shape, 3)) for shape in shapes]
pyramid = FPN()(features)
assert len(pyramid) == len(shapes) + 1
for p, shape in zip(pyramid[:-1], shapes):
ass... | 28.4375 | 67 | 0.617582 | 70 | 455 | 3.985714 | 0.442857 | 0.086022 | 0.086022 | 0.136201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065527 | 0.228571 | 455 | 15 | 68 | 30.333333 | 0.729345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b891cc9fea7494936e4d0f11bbc0c45064e5b86d | 909 | py | Python | day__/day.py | lukasHD/aoc2021 | 9eb65a70dcd62726d9c7f1401b10c8a13ae4a672 | [
"MIT"
] | null | null | null | day__/day.py | lukasHD/aoc2021 | 9eb65a70dcd62726d9c7f1401b10c8a13ae4a672 | [
"MIT"
] | null | null | null | day__/day.py | lukasHD/aoc2021 | 9eb65a70dcd62726d9c7f1401b10c8a13ae4a672 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Example Google style docstrings.
"""
import os
import helper
def alg1(data, print_debug):
return 0
def alg2(data, print_debug):
return 0
def part1(fname: str, print_debug = False):
print("=== PART 1 ===")
print(f"-- {fname} --")
result = 0
result = alg1(helper.... | 20.659091 | 70 | 0.622662 | 124 | 909 | 4.306452 | 0.33871 | 0.11236 | 0.052434 | 0.074906 | 0.629213 | 0.629213 | 0.449438 | 0.329588 | 0.209738 | 0.209738 | 0 | 0.023546 | 0.205721 | 909 | 43 | 71 | 21.139535 | 0.716066 | 0.060506 | 0 | 0.357143 | 0 | 0 | 0.135773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.071429 | 0.285714 | 0.535714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b894e90cab328d31dc0bc1bffbac2b2bd545027b | 461 | py | Python | content_management/migrations/0013_auto_20210209_1232.py | SolarSPELL-Main/solarspell-dlms | ae2efed0dd0e9d45d4e6a1c2b05742dbd204d0b7 | [
"MIT"
] | null | null | null | content_management/migrations/0013_auto_20210209_1232.py | SolarSPELL-Main/solarspell-dlms | ae2efed0dd0e9d45d4e6a1c2b05742dbd204d0b7 | [
"MIT"
] | 16 | 2021-05-03T18:03:48.000Z | 2022-03-12T00:57:38.000Z | content_management/migrations/0013_auto_20210209_1232.py | mattjurenka/solarspell-dlms | 0a15c06d928970d87cbba39a92f74a2e1c7011b1 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2021-02-09 19:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('content_management', '0012_auto_20201125_0012'),
]
operations = [
migrations.AlterField(
model_name='liblayoutimage',
... | 24.263158 | 101 | 0.62256 | 48 | 461 | 5.854167 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098266 | 0.249458 | 461 | 18 | 102 | 25.611111 | 0.713873 | 0.097614 | 0 | 0 | 1 | 0 | 0.18599 | 0.055556 | 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 |
b89503e0fdc76385ff2ff03ee8902af3afb370b6 | 5,306 | py | Python | software/Opal/autoencoder_basic.py | msc-acse/acse-9-independent-research-project-Wade003 | cfcba990d52ccf535171cf54c0a91b184db6f276 | [
"MIT"
] | 2 | 2020-05-11T02:39:46.000Z | 2020-05-11T03:08:38.000Z | software/Opal/autoencoder_basic.py | msc-acse/acse-9-independent-research-project-Wade003 | cfcba990d52ccf535171cf54c0a91b184db6f276 | [
"MIT"
] | null | null | null | software/Opal/autoencoder_basic.py | msc-acse/acse-9-independent-research-project-Wade003 | cfcba990d52ccf535171cf54c0a91b184db6f276 | [
"MIT"
] | 2 | 2020-05-21T22:50:19.000Z | 2020-10-28T17:16:31.000Z | #!/usr/bin/env python
# Copyright (C) 2017 Imperial College London and others.
#
# Please see the AUTHORS file in the main source directory for a full list
# of copyright holders.
#
# Prof. C Pain
# Applied Modelling and Computation Group
# Department of Earth Science and Engineering
# Imperial Co... | 37.104895 | 96 | 0.699962 | 723 | 5,306 | 5.031812 | 0.329184 | 0.071468 | 0.054975 | 0.085212 | 0.362837 | 0.282298 | 0.214678 | 0.062672 | 0.02199 | 0 | 0 | 0.028385 | 0.189974 | 5,306 | 142 | 97 | 37.366197 | 0.818055 | 0.381643 | 0 | 0.033333 | 0 | 0 | 0.063182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
b896d1012e49d409e119439733276f48511eba6f | 1,623 | py | Python | setup.py | FlyingIsland/financial_fundamentals | 0e5ec958603e306a930b3ee5164766480e4c0935 | [
"Apache-2.0"
] | null | null | null | setup.py | FlyingIsland/financial_fundamentals | 0e5ec958603e306a930b3ee5164766480e4c0935 | [
"Apache-2.0"
] | null | null | null | setup.py | FlyingIsland/financial_fundamentals | 0e5ec958603e306a930b3ee5164766480e4c0935 | [
"Apache-2.0"
] | 1 | 2019-08-30T17:37:05.000Z | 2019-08-30T17:37:05.000Z | from setuptools import setup, find_packages
version = '0.2.3'
desc = '''\
FinancialFundamentals
=========================
:Author: Andrew Kittredge
:Version: $Revision: {}
:Copyright: Andrew Kittredge
:License: Apache Version 2
FinancialFundamentals caches financial data to speed alogirithm development. It is devel... | 30.055556 | 275 | 0.711029 | 173 | 1,623 | 6.612717 | 0.66474 | 0.039336 | 0.036713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006589 | 0.158349 | 1,623 | 53 | 276 | 30.622642 | 0.830893 | 0 | 0 | 0.06383 | 0 | 0.021277 | 0.709181 | 0.083179 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.021277 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8972223e58be3f239fa8e80170487f0d4e24295 | 287 | py | Python | primality test.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | 1 | 2021-09-08T05:36:48.000Z | 2021-09-08T05:36:48.000Z | primality test.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | null | null | null | primality test.py | Tanuka-Mondal/Competi | b244ade867862b4e33e63dabd2cdd136340c0bf8 | [
"MIT"
] | null | null | null | t = int(input())
while(t!=0):
count=0
n=int(input())
if n==1:
print('no')
else:
for i in range(2,n//2):
if(n%i == 0):
count+=1
if(count>=1):
print('no')
else:
print('yes')
t-=1
| 16.882353 | 31 | 0.348432 | 40 | 287 | 2.5 | 0.45 | 0.16 | 0.16 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058442 | 0.463415 | 287 | 16 | 32 | 17.9375 | 0.590909 | 0 | 0 | 0.266667 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
b89973332244b71a76e9c756709daed7c191a1eb | 7,107 | py | Python | src/sdk/python/sample.py | cuisonghui/tera | 99a3f16de13dd454a64d64e938fcfeb030674d5f | [
"Apache-2.0",
"BSD-3-Clause"
] | 2,003 | 2015-07-13T08:36:45.000Z | 2022-03-26T02:10:07.000Z | src/sdk/python/sample.py | a1e2w3/tera | dbcd28af792d879d961bf9fc7eb60de81b437646 | [
"Apache-2.0",
"BSD-3-Clause"
] | 981 | 2015-07-14T00:03:24.000Z | 2021-05-10T09:50:01.000Z | src/sdk/python/sample.py | a1e2w3/tera | dbcd28af792d879d961bf9fc7eb60de81b437646 | [
"Apache-2.0",
"BSD-3-Clause"
] | 461 | 2015-07-14T02:53:35.000Z | 2022-03-10T10:31:49.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
sample of using Tera Python SDK
"""
from TeraSdk import Client, RowMutation, RowReader, TeraSdkException
from TeraSdk import MUTATION_CALLBACK, READER_CALLBACK, Status
import time
def mutation_callback(raw_mu):
""" mutation callback """
mu = RowMutation(raw_mu)
... | 26.518657 | 70 | 0.593921 | 816 | 7,107 | 5.069853 | 0.189951 | 0.01547 | 0.040609 | 0.042301 | 0.477641 | 0.389171 | 0.381678 | 0.359923 | 0.298767 | 0.282814 | 0 | 0.018952 | 0.272407 | 7,107 | 267 | 71 | 26.617978 | 0.781087 | 0.034473 | 0 | 0.529101 | 0 | 0 | 0.066992 | 0.007391 | 0 | 0 | 0 | 0 | 0.005291 | 0 | null | null | 0.010582 | 0.026455 | null | null | 0.15873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b899ff8be7c03b0a9ed49187184bd22721c8ca85 | 2,971 | py | Python | etl/utils.py | jeremyadavis/ga-out-of-field | c20c24f35ad8798824fafc2ca557c0bb0671987a | [
"MIT"
] | null | null | null | etl/utils.py | jeremyadavis/ga-out-of-field | c20c24f35ad8798824fafc2ca557c0bb0671987a | [
"MIT"
] | null | null | null | etl/utils.py | jeremyadavis/ga-out-of-field | c20c24f35ad8798824fafc2ca557c0bb0671987a | [
"MIT"
] | null | null | null | import os
import requests
import re
import zipfile
import datetime
import shutil
from sqlalchemy import text
def create_directory(directory, delete_first=False):
try:
if(delete_first):
remove_directory(directory)
if not os.path.isdir(directory):
os.makedirs(directory)
... | 23.579365 | 103 | 0.628071 | 388 | 2,971 | 4.68299 | 0.319588 | 0.049532 | 0.024766 | 0.042928 | 0.10787 | 0.036324 | 0.036324 | 0.036324 | 0 | 0 | 0 | 0.003506 | 0.231908 | 2,971 | 125 | 104 | 23.768 | 0.792726 | 0.068664 | 0 | 0.08 | 0 | 0 | 0.120753 | 0.028434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213333 | false | 0 | 0.093333 | 0.093333 | 0.44 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8a2cf02fe93ae85e480c35865bcdd86c199874c | 8,799 | py | Python | girlfriend/testing/workflow/concurrent.py | chihongze/girlfriend | e00e62a21be5d5a08799550d56ae1509b51bfffd | [
"MIT"
] | 83 | 2016-02-19T02:40:04.000Z | 2022-02-15T04:48:53.000Z | girlfriend/testing/workflow/concurrent.py | chihongze/girlfriend | e00e62a21be5d5a08799550d56ae1509b51bfffd | [
"MIT"
] | 2 | 2016-04-11T13:11:57.000Z | 2016-09-05T11:38:19.000Z | girlfriend/testing/workflow/concurrent.py | chihongze/girlfriend | e00e62a21be5d5a08799550d56ae1509b51bfffd | [
"MIT"
] | 15 | 2016-04-11T13:07:52.000Z | 2022-01-07T10:47:28.000Z | # coding: utf-8
from __future__ import absolute_import
import time
import threading
from concurrent.futures import ThreadPoolExecutor
from girlfriend.testing import GirlFriendTestCase
from girlfriend.workflow.protocol import End
from girlfriend.workflow.gfworkflow import Job, Workflow
from girlfriend.workflow.concurr... | 27.933333 | 79 | 0.531538 | 864 | 8,799 | 5.239583 | 0.152778 | 0.077756 | 0.034018 | 0.066269 | 0.525734 | 0.475812 | 0.419262 | 0.336205 | 0.325602 | 0.314999 | 0 | 0.018332 | 0.367655 | 8,799 | 314 | 80 | 28.022293 | 0.795291 | 0.028981 | 0 | 0.480315 | 0 | 0 | 0.057451 | 0 | 0 | 0 | 0 | 0 | 0.086614 | 0 | null | null | 0 | 0.031496 | null | null | 0.031496 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b8a327e65b3d4bd729028d33a2719005e2d66ce9 | 378 | py | Python | ttracker/model/messages/order_damage_confirmation.py | lmeilibr/ttracker | a06cc0876fb1898cc45b168d7d87f37089900dae | [
"MIT"
] | null | null | null | ttracker/model/messages/order_damage_confirmation.py | lmeilibr/ttracker | a06cc0876fb1898cc45b168d7d87f37089900dae | [
"MIT"
] | null | null | null | ttracker/model/messages/order_damage_confirmation.py | lmeilibr/ttracker | a06cc0876fb1898cc45b168d7d87f37089900dae | [
"MIT"
] | null | null | null | class OrderDamageConfirmation:
def __init__(self, content):
self.system_seat_ids = content['systemSeatIds']
self.msg_id = content['msgId']
self.game_state_id = content['gameStateId']
self.result = content['orderDamageConfirmation']['result']
self.order_damage_type = content['... | 42 | 68 | 0.68254 | 35 | 378 | 7.057143 | 0.6 | 0.072874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203704 | 378 | 8 | 69 | 47.25 | 0.820598 | 0 | 0 | 0 | 0 | 0 | 0.253968 | 0.121693 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 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 |
b8a3fb7fe1d6bdc9eaa0ff6abef3cb67c2939d53 | 2,129 | py | Python | scripts/graphstats.py | KRRVU/kgbench | d70ff8a6f48228f38a4ad3fee8df033050213556 | [
"MIT"
] | 19 | 2020-11-12T18:34:18.000Z | 2022-01-25T19:33:22.000Z | scripts/graphstats.py | KRRVU/kgbench | d70ff8a6f48228f38a4ad3fee8df033050213556 | [
"MIT"
] | 1 | 2022-01-25T19:21:38.000Z | 2022-01-26T09:38:07.000Z | scripts/graphstats.py | KRRVU/kgbench | d70ff8a6f48228f38a4ad3fee8df033050213556 | [
"MIT"
] | 3 | 2021-01-17T21:37:58.000Z | 2022-01-26T09:49:36.000Z | #!/usr/bin/env python
import sys
# https://github.com/Callidon/pyHDT
import hdt
import numpy as np
from tqdm import tqdm
def generate_stats(doc):
n_edges = len(doc)
n_vertices = 0
# create integer mapping
vertices = set()
triples, c = doc.search_triples('', '', '')
for s, p, o in tqdm(triple... | 32.753846 | 93 | 0.513856 | 269 | 2,129 | 3.884758 | 0.30855 | 0.157895 | 0.045933 | 0.037321 | 0.244019 | 0.244019 | 0.194258 | 0.194258 | 0.194258 | 0.194258 | 0 | 0.015748 | 0.343823 | 2,129 | 64 | 94 | 33.265625 | 0.732283 | 0.066698 | 0 | 0.097561 | 1 | 0 | 0.091507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.097561 | 0.02439 | 0.170732 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8a6e43bb32139893011da1c8621ab4c1e881711 | 1,733 | py | Python | tests/components/lateral_erosion/test_node_finder.py | scottrdavid/landlab | bb8414df55b4e5fb9198468fadbe3c725ef60601 | [
"MIT"
] | 257 | 2015-01-13T16:01:21.000Z | 2022-03-29T22:37:43.000Z | tests/components/lateral_erosion/test_node_finder.py | scottrdavid/landlab | bb8414df55b4e5fb9198468fadbe3c725ef60601 | [
"MIT"
] | 1,222 | 2015-02-05T21:36:53.000Z | 2022-03-31T17:53:49.000Z | tests/components/lateral_erosion/test_node_finder.py | scottrdavid/landlab | bb8414df55b4e5fb9198468fadbe3c725ef60601 | [
"MIT"
] | 274 | 2015-02-11T19:56:08.000Z | 2022-03-28T23:31:07.000Z | import numpy as np
import pytest
from landlab import RasterModelGrid
from landlab.components.lateral_erosion.node_finder import angle_finder
@pytest.mark.parametrize(
"node_1,node_2",
[(12, 8), (13, 3), (8, 2), (3, 1), (6, 2), (11, 1), (12, 6), (13, 11)],
)
def test_angle_finder_90(node_1, node_2):
grid ... | 33.326923 | 86 | 0.611079 | 302 | 1,733 | 3.364238 | 0.152318 | 0.151575 | 0.150591 | 0.186024 | 0.517717 | 0.51378 | 0.402559 | 0.28937 | 0.248032 | 0.15748 | 0 | 0.107627 | 0.190421 | 1,733 | 51 | 87 | 33.980392 | 0.616536 | 0 | 0 | 0.175 | 0 | 0 | 0.019619 | 0 | 0 | 0 | 0 | 0 | 0.225 | 1 | 0.125 | false | 0 | 0.1 | 0 | 0.225 | 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 |
b8aa80d3035af9c247e0d03de08a2475c17e28f8 | 2,467 | py | Python | rdfframes/test_queries/end_to_end_test_query.py | qcri/RDFframe | 2a50105479051c134cc5eddc9e20d55b755ef765 | [
"MIT"
] | 13 | 2019-07-06T00:10:11.000Z | 2022-02-20T02:14:16.000Z | rdfframes/test_queries/end_to_end_test_query.py | qcri/RDFrame | 2a50105479051c134cc5eddc9e20d55b755ef765 | [
"MIT"
] | 1 | 2019-05-20T08:51:42.000Z | 2019-05-20T08:51:42.000Z | rdfframes/test_queries/end_to_end_test_query.py | qcri/RDFframe | 2a50105479051c134cc5eddc9e20d55b755ef765 | [
"MIT"
] | 3 | 2020-04-17T10:50:37.000Z | 2022-03-23T01:30:16.000Z | from rdfframes.client.http_client import HttpClientDataFormat, HttpClient
from rdfframes.knowledge_graph import KnowledgeGraph
from rdfframes. dataset.rdfpredicate import PredicateDirection
def test_twitter_query():
# TODO: remove endpoint URI
endpoint = 'http://10.161.202.101:8890/sparql/'
port = 8890
... | 40.442623 | 119 | 0.535468 | 244 | 2,467 | 5.22541 | 0.45082 | 0.030588 | 0.032941 | 0.037647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029394 | 0.310499 | 2,467 | 60 | 120 | 41.116667 | 0.720165 | 0.042156 | 0 | 0 | 0 | 0 | 0.262935 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.021739 | false | 0 | 0.065217 | 0 | 0.086957 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8b1e84357508c19eaa59389c435df11a145afff | 485 | py | Python | tests/test_middleware.py | ikasymov/fastapi-localization | 6bccaeb938baf89acee139ffffa9518aaca1e6a0 | [
"MIT"
] | 9 | 2021-01-20T03:42:01.000Z | 2022-03-23T14:28:00.000Z | tests/test_middleware.py | ikasymov/fastapi-localization | 6bccaeb938baf89acee139ffffa9518aaca1e6a0 | [
"MIT"
] | 7 | 2021-01-21T03:41:27.000Z | 2021-08-10T13:43:43.000Z | tests/test_middleware.py | ikasymov/fastapi-localization | 6bccaeb938baf89acee139ffffa9518aaca1e6a0 | [
"MIT"
] | 2 | 2021-04-28T06:47:39.000Z | 2021-09-08T09:01:55.000Z | import gettext
import pytest
from fastapi import Request
from fastapi_localization.middleware import SystemLocalizationMiddleware
@pytest.mark.asyncio
async def test_set_gettext_to_request_state(mocked_request):
request: Request = mocked_request({'accept-language': 'ru'})
middleware = SystemLocalizationMidd... | 28.529412 | 72 | 0.791753 | 55 | 485 | 6.836364 | 0.509091 | 0.095745 | 0.101064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125773 | 485 | 16 | 73 | 30.3125 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0.057732 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 |
b8b4449848970bf095d15457b4c366e9a07611c5 | 8,105 | py | Python | lib/kb_uploadmethods/Utils/ImportMediaUtil.py | Tianhao-Gu/uk_uploadmethods | d67ff71a675aed5566d257c267689ea0d2a4a8b0 | [
"MIT"
] | null | null | null | lib/kb_uploadmethods/Utils/ImportMediaUtil.py | Tianhao-Gu/uk_uploadmethods | d67ff71a675aed5566d257c267689ea0d2a4a8b0 | [
"MIT"
] | null | null | null | lib/kb_uploadmethods/Utils/ImportMediaUtil.py | Tianhao-Gu/uk_uploadmethods | d67ff71a675aed5566d257c267689ea0d2a4a8b0 | [
"MIT"
] | null | null | null |
import time
import json
import uuid
from installed_clients.fba_toolsClient import fba_tools
from installed_clients.DataFileUtilClient import DataFileUtil
from installed_clients.KBaseReportClient import KBaseReport
from kb_uploadmethods.Utils.UploaderUtil import UploaderUtil
def log(message, prefix_newline=False):
... | 37.009132 | 106 | 0.630969 | 962 | 8,105 | 4.952183 | 0.153846 | 0.071579 | 0.078505 | 0.096977 | 0.660579 | 0.660579 | 0.627414 | 0.584593 | 0.570739 | 0.570739 | 0 | 0.004154 | 0.287107 | 8,105 | 218 | 107 | 37.178899 | 0.820353 | 0.297594 | 0 | 0.444444 | 0 | 0 | 0.182236 | 0.081836 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070707 | false | 0 | 0.30303 | 0 | 0.424242 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b8b767f23cd7b4ec06f074213a68713be0d8833f | 1,014 | py | Python | ch01-05/05_05-toppings.py | remotephone/pythoncrashcourse | 837d05c5ef4976621bd2206328254749a71d60ff | [
"Apache-2.0"
] | null | null | null | ch01-05/05_05-toppings.py | remotephone/pythoncrashcourse | 837d05c5ef4976621bd2206328254749a71d60ff | [
"Apache-2.0"
] | null | null | null | ch01-05/05_05-toppings.py | remotephone/pythoncrashcourse | 837d05c5ef4976621bd2206328254749a71d60ff | [
"Apache-2.0"
] | null | null | null | requested_toppings = ['mushrooms', 'extra cheese']
if 'mushrooms' in requested_toppings:
print("Adding mushrooms")
if 'pepperoni' in requested_toppings:
print("Adding pepperoni.")
if 'extra cheese' in requested_toppings:
print("Adding extra cheese.")
print("\nFinished making your pizza!")
"""TRY IT YOURS... | 21.125 | 54 | 0.647929 | 154 | 1,014 | 4.214286 | 0.409091 | 0.07396 | 0.101695 | 0.07396 | 0.138675 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012438 | 0.207101 | 1,014 | 48 | 55 | 21.125 | 0.794776 | 0 | 0 | 0 | 0 | 0 | 0.398792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.457143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b8be8475d598c1f685c5c3be3125949efc85a7d0 | 2,995 | py | Python | ldap_fixer_cli.py | frnde/ldap_errors_fixer | 4ec5a98b94baa3fe8a17ce1819e66bf9ee267962 | [
"MIT"
] | null | null | null | ldap_fixer_cli.py | frnde/ldap_errors_fixer | 4ec5a98b94baa3fe8a17ce1819e66bf9ee267962 | [
"MIT"
] | null | null | null | ldap_fixer_cli.py | frnde/ldap_errors_fixer | 4ec5a98b94baa3fe8a17ce1819e66bf9ee267962 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import click
import check_entry_mariadb
import delete_old_entries
import detect_ldap_problems
import fix_wrong_format
import update_password_fields
import delete_userpassword_cram
from config_loader import load_config
from common import LOGGER
@click.group()
def cli():
"""CLI ... | 32.912088 | 93 | 0.732888 | 415 | 2,995 | 4.987952 | 0.240964 | 0.086957 | 0.13913 | 0.063768 | 0.461353 | 0.437681 | 0.437681 | 0.399517 | 0.207246 | 0.177295 | 0 | 0.002039 | 0.181302 | 2,995 | 90 | 94 | 33.277778 | 0.84217 | 0.324541 | 0 | 0.24 | 0 | 0 | 0.104843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.14 | 0.2 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b8bffd01d0c0b078869d25ff07e89b3b3d55ef61 | 3,934 | py | Python | butterfly/router.py | zxxml/Butterfly | e9bba97cd016bdcb20de2f3635e1c3c9ebe5ccd8 | [
"MIT"
] | null | null | null | butterfly/router.py | zxxml/Butterfly | e9bba97cd016bdcb20de2f3635e1c3c9ebe5ccd8 | [
"MIT"
] | null | null | null | butterfly/router.py | zxxml/Butterfly | e9bba97cd016bdcb20de2f3635e1c3c9ebe5ccd8 | [
"MIT"
] | 1 | 2019-03-27T04:29:50.000Z | 2019-03-27T04:29:50.000Z | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import asyncio
import ssl
import time
from http import HTTPStatus
from urllib import parse
import websockets
from dataclasses import dataclass
from websockets import ConnectionClosed
from websockets.http import Headers
from butterfly import tricks
@dataclass
class Router:
... | 31.725806 | 73 | 0.60244 | 507 | 3,934 | 4.530572 | 0.315582 | 0.027862 | 0.030475 | 0.018285 | 0.14889 | 0.089682 | 0.089682 | 0.063561 | 0.063561 | 0.063561 | 0 | 0.009071 | 0.299441 | 3,934 | 123 | 74 | 31.98374 | 0.824383 | 0.177682 | 0 | 0.154762 | 0 | 0 | 0.03127 | 0.008443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0.083333 | 0.119048 | 0.011905 | 0.404762 | 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 |
b8c2888d67505602fffab0c3d89dafb9e68c1977 | 1,344 | py | Python | DashExercise_1/Exe_01.py | Abhiroyq1/DashHelp | d3de9ff70a587c4ce932f3d9a5de3fd68728b9a1 | [
"Apache-2.0"
] | null | null | null | DashExercise_1/Exe_01.py | Abhiroyq1/DashHelp | d3de9ff70a587c4ce932f3d9a5de3fd68728b9a1 | [
"Apache-2.0"
] | null | null | null | DashExercise_1/Exe_01.py | Abhiroyq1/DashHelp | d3de9ff70a587c4ce932f3d9a5de3fd68728b9a1 | [
"Apache-2.0"
] | null | null | null | import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objs as go
import numpy as np
import pandas as pd
app = dash.Dash()
data = pd.read_csv('../../Plotly-Dashboards-with-Dash-master/Data/OldFaithful.csv')
# print(data.head(4))
app.layout = html.Div([
... | 37.333333 | 100 | 0.384673 | 111 | 1,344 | 4.522523 | 0.630631 | 0.059761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.508929 | 1,344 | 36 | 101 | 37.333333 | 0.742424 | 0.014137 | 0 | 0 | 0 | 0 | 0.201707 | 0.047324 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.193548 | 0 | 0.193548 | 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 |
b2123bb2a544cd9e4391a0495430d3ebc06ea394 | 303 | py | Python | setup.py | Dom-Juan/Trabalho-de-IA | a4bbd866d8f1fd562f219ce8a6812abac7c2edc0 | [
"MIT"
] | null | null | null | setup.py | Dom-Juan/Trabalho-de-IA | a4bbd866d8f1fd562f219ce8a6812abac7c2edc0 | [
"MIT"
] | null | null | null | setup.py | Dom-Juan/Trabalho-de-IA | a4bbd866d8f1fd562f219ce8a6812abac7c2edc0 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='IA Workplace',
version='1.0',
description='Módulo Principal do Projeto',
author='Juan & Monge',
install_requires=['numpy ', 'pysimplegui',
'pandas', 'matplotlib'],
packages=find_packages(),
) | 27.545455 | 47 | 0.613861 | 30 | 303 | 6.1 | 0.866667 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.254125 | 303 | 11 | 48 | 27.545455 | 0.800885 | 0 | 0 | 0 | 0 | 0 | 0.295918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b214949faa3677337d1908fc953161cd8684f330 | 520 | py | Python | substitute_finder/migrations/0006_product_image_front_small_url.py | tohugaby/pur_beurre_web | c3bdacee50907eea79821e7a8b3fe0f349719d88 | [
"MIT"
] | 1 | 2020-01-05T18:58:51.000Z | 2020-01-05T18:58:51.000Z | substitute_finder/migrations/0006_product_image_front_small_url.py | tohugaby/pur_beurre_web | c3bdacee50907eea79821e7a8b3fe0f349719d88 | [
"MIT"
] | 3 | 2020-06-05T18:35:47.000Z | 2021-06-10T20:32:44.000Z | substitute_finder/migrations/0006_product_image_front_small_url.py | tomlemeuch/pur_beurre_web | c3bdacee50907eea79821e7a8b3fe0f349719d88 | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2018-08-28 09:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('substitute_finder', '0005_auto_20180816_0849'),
]
operations = [
migrations.AddField(
model_name='product',
name='imag... | 26 | 126 | 0.640385 | 60 | 520 | 5.35 | 0.816667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.248077 | 520 | 19 | 127 | 27.368421 | 0.734015 | 0.082692 | 0 | 0 | 1 | 0 | 0.24 | 0.092632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2200f3d8a4aa0fc65def759a31cc05d9ff5f5fc | 528 | py | Python | folks/models/attachment.py | marinintim/folks | 2dce457c9d57da34626717667b942fa91f62385f | [
"MIT"
] | 4 | 2019-12-02T20:04:55.000Z | 2020-04-30T22:14:30.000Z | folks/models/attachment.py | marinintim/folks | 2dce457c9d57da34626717667b942fa91f62385f | [
"MIT"
] | null | null | null | folks/models/attachment.py | marinintim/folks | 2dce457c9d57da34626717667b942fa91f62385f | [
"MIT"
] | null | null | null | from sqlalchemy import Column, String, Integer, ForeignKey, DateTime
from datetime import datetime
from database import Base
class Attachment(Base):
__tablename__ = 'attachments'
id = Column(Integer, primary_key=True)
attach_type = Column(String)
url = Column(String())
user_id = Column(Integer, For... | 33 | 68 | 0.715909 | 63 | 528 | 5.793651 | 0.539683 | 0.09863 | 0.123288 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 528 | 15 | 69 | 35.2 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b221e0a31ac0124cf792a4d04e2ffaf237e67b58 | 22,701 | py | Python | test_rgrpg_synthetic.py | perellonieto/background_check | a5b6549a62be276c7199e87e78a94a64af688ab9 | [
"MIT"
] | 4 | 2017-01-14T12:59:58.000Z | 2021-06-21T10:55:17.000Z | test_rgrpg_synthetic.py | REFRAME/background_check | 7da967bad4a6d8cbc924b5301041f3c99ba39595 | [
"MIT"
] | null | null | null | test_rgrpg_synthetic.py | REFRAME/background_check | 7da967bad4a6d8cbc924b5301041f3c99ba39595 | [
"MIT"
] | null | null | null | from __future__ import division
import numpy as np
np.random.seed(42)
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
plt.ion()
plt.rcParams['figure.figsize'] = (7,4)
plt.rcParams['figure.autolayout'] = True
from sklearn.mixture import GMM
from sklearn import svm
from sklearn import tree
from ... | 43.994186 | 106 | 0.575966 | 2,832 | 22,701 | 4.378178 | 0.120763 | 0.030486 | 0.023228 | 0.030486 | 0.571982 | 0.472538 | 0.391241 | 0.360029 | 0.313977 | 0.26736 | 0 | 0.027797 | 0.282102 | 22,701 | 515 | 107 | 44.079612 | 0.733018 | 0.084798 | 0 | 0.291005 | 0 | 0 | 0.113167 | 0.038575 | 0 | 0 | 0 | 0.001942 | 0 | 0 | null | null | 0 | 0.058201 | null | null | 0.060847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b2295b1807b615ecb4f049e68ac861bfaaf1a768 | 782 | py | Python | scrawl.py | ChrisLinn/hz-lianjia-scrawler | c0db1a3795c327ac780271bd02a2b7dc44b574f3 | [
"BSD-3-Clause"
] | null | null | null | scrawl.py | ChrisLinn/hz-lianjia-scrawler | c0db1a3795c327ac780271bd02a2b7dc44b574f3 | [
"BSD-3-Clause"
] | null | null | null | scrawl.py | ChrisLinn/hz-lianjia-scrawler | c0db1a3795c327ac780271bd02a2b7dc44b574f3 | [
"BSD-3-Clause"
] | null | null | null | import core
import model
import settings
def get_communitylist(city):
res = []
for community in model.Community.select():
if community.city == city:
res.append(community.title)
return res
if __name__ == "__main__":
regionlist = settings.REGIONLIST # only pinyin support
city =... | 34 | 91 | 0.730179 | 89 | 782 | 6.280899 | 0.573034 | 0.075134 | 0.071556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006349 | 0.194373 | 782 | 22 | 92 | 35.545455 | 0.880952 | 0.287724 | 0 | 0 | 0 | 0 | 0.014545 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b22a31298aa7d415b20f844272659b0afd7847f3 | 11,368 | py | Python | plugins/bibliotik/compression.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 9 | 2019-03-26T14:50:00.000Z | 2020-11-10T16:44:08.000Z | plugins/bibliotik/compression.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 22 | 2019-03-02T23:16:13.000Z | 2022-02-27T10:36:36.000Z | plugins/bibliotik/compression.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 5 | 2019-04-24T00:51:30.000Z | 2020-11-06T18:31:49.000Z | import zlib
BIBLIOTIK_ZDICT = '''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta nam... | 33.934328 | 431 | 0.574419 | 1,470 | 11,368 | 4.414286 | 0.242177 | 0.035445 | 0.038835 | 0.041609 | 0.255509 | 0.178148 | 0.099861 | 0.073047 | 0.061335 | 0.061335 | 0 | 0.011023 | 0.193966 | 11,368 | 334 | 432 | 34.035928 | 0.697152 | 0 | 0 | 0.210332 | 0 | 0.103321 | 0.95417 | 0.376407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00738 | false | 0 | 0.00369 | 0 | 0.02952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b232507de1c28fed27811933db94e7886eabf62a | 222 | py | Python | add_scripts.py | ShubhamCanMakeCommit/less-boilerplate | 289586cefdcad9e476dc9b7dacce9109434fa8fd | [
"BSD-2-Clause"
] | null | null | null | add_scripts.py | ShubhamCanMakeCommit/less-boilerplate | 289586cefdcad9e476dc9b7dacce9109434fa8fd | [
"BSD-2-Clause"
] | null | null | null | add_scripts.py | ShubhamCanMakeCommit/less-boilerplate | 289586cefdcad9e476dc9b7dacce9109434fa8fd | [
"BSD-2-Clause"
] | null | null | null | import json
f = open('package.json')
pkgObj = json.load(f)
pkgObj["scripts"]["dev"] = "yarn start"
pkgJson = json.dumps(pkgObj)
f.close()
pkgFile = open('package.json', 'w')
pkgFile.write(pkgJson)
pkgFile.close()
| 11.684211 | 39 | 0.666667 | 31 | 222 | 4.774194 | 0.548387 | 0.148649 | 0.202703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13964 | 222 | 18 | 40 | 12.333333 | 0.774869 | 0 | 0 | 0 | 0 | 0 | 0.20362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
b23372f8d4efc63b0400ded08769cc926d5ee570 | 5,292 | py | Python | examples/dad_emul.py | yang-guangliang/android_guard | 704fea36d796d5fbda2badf2237fc9dba74c3a96 | [
"Apache-2.0"
] | 3 | 2015-10-23T13:36:07.000Z | 2021-07-22T23:30:41.000Z | examples/dad_emul.py | yang-guangliang/android_guard | 704fea36d796d5fbda2badf2237fc9dba74c3a96 | [
"Apache-2.0"
] | null | null | null | examples/dad_emul.py | yang-guangliang/android_guard | 704fea36d796d5fbda2badf2237fc9dba74c3a96 | [
"Apache-2.0"
] | 1 | 2015-10-31T08:38:25.000Z | 2015-10-31T08:38:25.000Z | #!/usr/bin/env python
# This file is part of Androguard.
#
# Copyright (c) 2012 Geoffroy Gueguen <geoffroy.gueguen@gmail.com>
# All Rights Reserved.
#
# Androguard is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Fo... | 29.076923 | 80 | 0.610544 | 744 | 5,292 | 4.275538 | 0.337366 | 0.059415 | 0.026407 | 0.03741 | 0.192392 | 0.142094 | 0.118831 | 0.097454 | 0.097454 | 0.097454 | 0 | 0.036789 | 0.265495 | 5,292 | 181 | 81 | 29.237569 | 0.78158 | 0.150416 | 0 | 0.209677 | 0 | 0.008065 | 0.044226 | 0.020773 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008065 | 0.040323 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b234ca63d6d6368970dfc26586d77f40a8a57868 | 308 | py | Python | api/tacticalrmm/automation/migrations/0006_delete_policyexclusions.py | infinite8co/tacticalrmm | bd7ce5417ec672552ec3cba325318795ccde972e | [
"MIT"
] | 903 | 2019-10-22T22:56:42.000Z | 2022-03-18T14:15:54.000Z | api/tacticalrmm/automation/migrations/0006_delete_policyexclusions.py | infinite8co/tacticalrmm | bd7ce5417ec672552ec3cba325318795ccde972e | [
"MIT"
] | 720 | 2019-12-07T08:11:26.000Z | 2022-03-17T21:47:04.000Z | api/tacticalrmm/automation/migrations/0006_delete_policyexclusions.py | infinite8co/tacticalrmm | bd7ce5417ec672552ec3cba325318795ccde972e | [
"MIT"
] | 231 | 2020-02-11T14:14:21.000Z | 2022-03-16T21:23:10.000Z | # Generated by Django 3.1.2 on 2020-11-02 19:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("automation", "0005_auto_20200922_1344"),
]
operations = [
migrations.DeleteModel(
name="PolicyExclusions",
),
]
| 18.117647 | 50 | 0.62013 | 32 | 308 | 5.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138393 | 0.272727 | 308 | 16 | 51 | 19.25 | 0.700893 | 0.146104 | 0 | 0 | 1 | 0 | 0.187739 | 0.088123 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b237b7307afb88202d14376cdfce140431f4b103 | 1,405 | py | Python | src/client.py | wncjs96/voice-to-voice | 4a07695e2db708bbe19e57493334f10ad25ed0bc | [
"MIT"
] | null | null | null | src/client.py | wncjs96/voice-to-voice | 4a07695e2db708bbe19e57493334f10ad25ed0bc | [
"MIT"
] | null | null | null | src/client.py | wncjs96/voice-to-voice | 4a07695e2db708bbe19e57493334f10ad25ed0bc | [
"MIT"
] | null | null | null | import requests
##
## Given a string, send a post request to the server to download the output file of the audio
##
def post(text, speaker_id, volume, speed):
## THE FOLLOWING IS DISCARDED AND BECAME OBSOLETE AS IT DOESNT MEET THE NEED
# web-api used: lovo-open (further details of lovo-open at https://api-doc.lovo.a... | 26.018519 | 99 | 0.698221 | 224 | 1,405 | 4.299107 | 0.522321 | 0.037383 | 0.026999 | 0.022845 | 0.132918 | 0.132918 | 0.132918 | 0.132918 | 0 | 0 | 0 | 0.028473 | 0.175089 | 1,405 | 53 | 100 | 26.509434 | 0.802416 | 0.496797 | 0 | 0.230769 | 0 | 0 | 0.289051 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.115385 | false | 0 | 0.038462 | 0 | 0.230769 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b237bb3c9f24aa5d4492e5174ff2bc0bf77a7bf2 | 1,249 | py | Python | tests/garage/tf/algos/test_vpg.py | cnheider/garage | 70956d104ec245bcb3a5deba35a11c565755759d | [
"MIT"
] | 1 | 2021-01-11T18:40:52.000Z | 2021-01-11T18:40:52.000Z | tests/garage/tf/algos/test_vpg.py | cnheider/garage | 70956d104ec245bcb3a5deba35a11c565755759d | [
"MIT"
] | null | null | null | tests/garage/tf/algos/test_vpg.py | cnheider/garage | 70956d104ec245bcb3a5deba35a11c565755759d | [
"MIT"
] | null | null | null | import pytest
from garage.envs import GymEnv
from garage.np.baselines import LinearFeatureBaseline
from garage.sampler import LocalSampler
from garage.tf.algos import VPG
from garage.tf.policies import CategoricalMLPPolicy
from garage.trainer import TFTrainer
from tests.fixtures import snapshot_config, TfGraphTestCas... | 32.025641 | 71 | 0.615693 | 135 | 1,249 | 5.57037 | 0.511111 | 0.079787 | 0.039894 | 0.055851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024306 | 0.308247 | 1,249 | 38 | 72 | 32.868421 | 0.846065 | 0.030424 | 0 | 0 | 0 | 0 | 0.014108 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.038462 | false | 0 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b2392342c872536a23502993b5b1a71576f4f980 | 797 | py | Python | admin/auth0_add_user.py | stephenfreund/PLDI-2021-Mini-Conf | 3d529d32a8563682ea69eb1e3b1742b447b71f42 | [
"MIT"
] | null | null | null | admin/auth0_add_user.py | stephenfreund/PLDI-2021-Mini-Conf | 3d529d32a8563682ea69eb1e3b1742b447b71f42 | [
"MIT"
] | null | null | null | admin/auth0_add_user.py | stephenfreund/PLDI-2021-Mini-Conf | 3d529d32a8563682ea69eb1e3b1742b447b71f42 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import csv
import io
import json
import time
import zlib
import requests
import yaml
import argparse
from libauth0 import Auth0
def parse_arguments():
parser = argparse.ArgumentParser(description="MiniConf Portal Command Line")
parser.add_argument("email", help="email address of user"... | 25.709677 | 127 | 0.708908 | 102 | 797 | 5.343137 | 0.519608 | 0.080734 | 0.093578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015015 | 0.164366 | 797 | 30 | 128 | 26.566667 | 0.803303 | 0.026349 | 0 | 0 | 0 | 0 | 0.210323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 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 |
b2404db71b9993eef3697e8297cbc53cad6e8f03 | 7,219 | py | Python | semana-10/VPL-7/empresa.py | larissajusten/ufsc-object-oriented-programming | 839e6abcc20580ea1a47479232c3ed3cb0153e4b | [
"MIT"
] | 6 | 2021-11-29T05:43:19.000Z | 2022-03-15T21:54:54.000Z | semana-10/VPL-7/empresa.py | larissajusten/ufsc-object-oriented-programming | 839e6abcc20580ea1a47479232c3ed3cb0153e4b | [
"MIT"
] | 3 | 2021-11-21T03:44:03.000Z | 2021-11-21T03:44:05.000Z | semana-10/VPL-7/empresa.py | larissajusten/ufsc-object-oriented-programming | 839e6abcc20580ea1a47479232c3ed3cb0153e4b | [
"MIT"
] | null | null | null | """
Arquivo da classe Empresa
Classes:
Empresa
"""
from impostos import Imposto, IncidenciaImposto, ISS
class Empresa():
"""
Classe de representação de uma Empresa.
...
Atributos
----------
cnpj : int
número único que identifica uma pessoa jurídica e outros tipos de
arra... | 36.095 | 77 | 0.596759 | 751 | 7,219 | 5.536618 | 0.197071 | 0.068543 | 0.040404 | 0.020443 | 0.383598 | 0.32227 | 0.275613 | 0.21164 | 0.21164 | 0.21164 | 0 | 0.003988 | 0.340075 | 7,219 | 199 | 78 | 36.276382 | 0.868808 | 0.35365 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01005 | 0 | 1 | 0.16092 | false | 0 | 0.011494 | 0 | 0.287356 | 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 |
b24071c20930e7c4ae14727dfd665d80dc4b8530 | 1,214 | py | Python | setup.py | Hear-Ye/congress | 0fdd3d8fbff31544a17a10dd9025ec568090685e | [
"CC0-1.0"
] | null | null | null | setup.py | Hear-Ye/congress | 0fdd3d8fbff31544a17a10dd9025ec568090685e | [
"CC0-1.0"
] | null | null | null | setup.py | Hear-Ye/congress | 0fdd3d8fbff31544a17a10dd9025ec568090685e | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
from pathlib import Path
from setuptools import find_packages, setup
from congress_crawler import __version__
with (Path(__file__).parent / "requirements.txt").open() as f:
required = f.read().splitlines()
setup(
name="congress-crawler",
version=__version__,
author="Andrew C... | 29.609756 | 74 | 0.642504 | 137 | 1,214 | 5.540146 | 0.671533 | 0.125165 | 0.16469 | 0.171278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017914 | 0.218287 | 1,214 | 40 | 75 | 30.35 | 0.781876 | 0.016474 | 0 | 0 | 0 | 0 | 0.463537 | 0.018441 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.09375 | 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 |
b24142d9cd8ba956c985a82244831ec10e7f9e10 | 3,293 | py | Python | 2019/day_9.py | Javitronxo/AdventOfCode | 3a31544824881d353d899bc820d92b005af6b4eb | [
"MIT"
] | 1 | 2021-12-03T14:37:28.000Z | 2021-12-03T14:37:28.000Z | 2019/day_9.py | Javitronxo/AdventOfCode | 3a31544824881d353d899bc820d92b005af6b4eb | [
"MIT"
] | null | null | null | 2019/day_9.py | Javitronxo/AdventOfCode | 3a31544824881d353d899bc820d92b005af6b4eb | [
"MIT"
] | null | null | null | # https://adventofcode.com/2019/day/9
import copy
import lib.utils as utils
class IntCodeProcessor:
def __init__(self, memory):
self.pointer = 0
self.relative_base = 0
self.memory = copy.deepcopy(memory)
self.inputs = list()
self.outputs = list()
self.status = "IDL... | 35.031915 | 103 | 0.519283 | 402 | 3,293 | 4.146766 | 0.211443 | 0.137972 | 0.142771 | 0.163767 | 0.317936 | 0.304739 | 0.231554 | 0.157169 | 0.083983 | 0 | 0 | 0.047414 | 0.365928 | 3,293 | 93 | 104 | 35.408602 | 0.750958 | 0.010629 | 0 | 0.024691 | 0 | 0 | 0.028563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061728 | false | 0 | 0.024691 | 0 | 0.123457 | 0.024691 | 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 |
b24192972a61181497a085ffef0cb03a63fb401c | 11,442 | py | Python | tests/test_registry.py | clinc/PyRegistry | 92b1549314b0b9ddcb58c411fde430b4c0e116fe | [
"BSD-3-Clause"
] | null | null | null | tests/test_registry.py | clinc/PyRegistry | 92b1549314b0b9ddcb58c411fde430b4c0e116fe | [
"BSD-3-Clause"
] | null | null | null | tests/test_registry.py | clinc/PyRegistry | 92b1549314b0b9ddcb58c411fde430b4c0e116fe | [
"BSD-3-Clause"
] | 1 | 2021-12-28T18:45:52.000Z | 2021-12-28T18:45:52.000Z | """
Tests for the Registry library.
"""
import itertools
import unittest
import requests
from pyregistry.registry import (
Registry,
chunk_streamer,
parse_image_name,
parse_user,
)
class RegistryTest(unittest.TestCase):
"""
Tests for the Registry library.
"""
def test_parse_user(sel... | 37.270358 | 86 | 0.603391 | 933 | 11,442 | 7.189711 | 0.217578 | 0.0322 | 0.039654 | 0.017889 | 0.275194 | 0.212433 | 0.164729 | 0.115683 | 0.095707 | 0.07901 | 0 | 0.220826 | 0.290771 | 11,442 | 306 | 87 | 37.392157 | 0.605792 | 0.07254 | 0 | 0.351779 | 0 | 0 | 0.350682 | 0.253551 | 0 | 0 | 0 | 0 | 0.094862 | 1 | 0.035573 | false | 0 | 0.01581 | 0 | 0.055336 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b244073c270df674f7683d54cad02c0fa7d415c2 | 456 | py | Python | docs/snippets/synchro_snippet.py | davidsanchez/agnpy | d22d506acab19d498da8987698c5037703ce14d7 | [
"BSD-3-Clause"
] | null | null | null | docs/snippets/synchro_snippet.py | davidsanchez/agnpy | d22d506acab19d498da8987698c5037703ce14d7 | [
"BSD-3-Clause"
] | null | null | null | docs/snippets/synchro_snippet.py | davidsanchez/agnpy | d22d506acab19d498da8987698c5037703ce14d7 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import astropy.units as u
from agnpy.emission_regions import Blob
from agnpy.synchrotron import Synchrotron
from agnpy.utils.plot import plot_sed
import matplotlib.pyplot as plt
# define the emission region and the radiative process
blob = Blob()
synch = Synchrotron(blob)
# compute the SED over an a... | 26.823529 | 54 | 0.778509 | 75 | 456 | 4.68 | 0.546667 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007673 | 0.142544 | 456 | 16 | 55 | 28.5 | 0.890026 | 0.230263 | 0 | 0 | 0 | 0 | 0.0317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
b245f504f97a83388d8b876c11b4dc65e63cfb5e | 2,153 | py | Python | 25. Advanced objects and DS/Advanced OOP.py | riyabhatia26/Python-Programming | 2882728982c15c3b6380033eb2e90761b538dd93 | [
"MIT"
] | 3 | 2020-08-07T04:33:19.000Z | 2021-10-06T08:58:01.000Z | 25. Advanced objects and DS/Advanced OOP.py | riyabhatia26/Python-Programming | 2882728982c15c3b6380033eb2e90761b538dd93 | [
"MIT"
] | null | null | null | 25. Advanced objects and DS/Advanced OOP.py | riyabhatia26/Python-Programming | 2882728982c15c3b6380033eb2e90761b538dd93 | [
"MIT"
] | 2 | 2021-10-06T08:58:05.000Z | 2021-10-06T09:46:42.000Z | class Animal:
def __init__(self, name): # Constructor of the class
self.name = name
def speak(self): # Abstract method, defined by convention only
raise NotImplementedError("Subclass must implement abstract method")
class Dog(Animal):
def speak(self):
return self.n... | 25.034884 | 85 | 0.648398 | 290 | 2,153 | 4.593103 | 0.348276 | 0.054054 | 0.057808 | 0.042793 | 0.247748 | 0.15015 | 0.114114 | 0.114114 | 0.06006 | 0.06006 | 0 | 0.004872 | 0.237343 | 2,153 | 86 | 86 | 25.034884 | 0.806334 | 0.202044 | 0 | 0.178571 | 0 | 0 | 0.142774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.035714 | 0.446429 | 0.160714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b247d8696ffd1b4ad4ee9b0d869fde8467151c3e | 4,773 | py | Python | nova/compute/task_states.py | arvindn05/nova | 1d335b333245198dbf39841eedd221377beb58c2 | [
"Apache-2.0"
] | 1 | 2018-05-27T09:38:17.000Z | 2018-05-27T09:38:17.000Z | nova/compute/task_states.py | ljzjohnson/nova | 87e1951a1b8c03b9ecdf8f75610d14690b61f272 | [
"Apache-2.0"
] | null | null | null | nova/compute/task_states.py | ljzjohnson/nova | 87e1951a1b8c03b9ecdf8f75610d14690b61f272 | [
"Apache-2.0"
] | 1 | 2020-07-22T22:13:56.000Z | 2020-07-22T22:13:56.000Z | # Copyright 2010 OpenStack Foundation
# 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 requ... | 37.880952 | 79 | 0.827362 | 563 | 4,773 | 6.840142 | 0.287744 | 0.250844 | 0.116853 | 0.149572 | 0.16697 | 0.037393 | 0 | 0 | 0 | 0 | 0 | 0.001892 | 0.113974 | 4,773 | 125 | 80 | 38.184 | 0.908725 | 0.40792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.020408 | 0.020408 | 0 | 0.020408 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b263d7c47e60483f206b3c68beafe55e50760047 | 5,339 | py | Python | tests/test_networks_v2.py | PaulEnglert/ann | 9b05294cfa15f1568d38833523261e62ab20219b | [
"BSD-2-Clause"
] | null | null | null | tests/test_networks_v2.py | PaulEnglert/ann | 9b05294cfa15f1568d38833523261e62ab20219b | [
"BSD-2-Clause"
] | null | null | null | tests/test_networks_v2.py | PaulEnglert/ann | 9b05294cfa15f1568d38833523261e62ab20219b | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from .context import ann
import numpy as np
from ann import core, helpers
import unittest
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
from sklearn import datasets
import cv2
class NetworksTestSuiteV2(unittest.TestCase):
"""Basic t... | 28.859459 | 117 | 0.693201 | 785 | 5,339 | 4.563057 | 0.238217 | 0.020659 | 0.018425 | 0.014517 | 0.434673 | 0.359855 | 0.330262 | 0.316025 | 0.302066 | 0.302066 | 0 | 0.055482 | 0.15265 | 5,339 | 185 | 118 | 28.859459 | 0.736295 | 0.340326 | 0 | 0.411111 | 0 | 0 | 0.033401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088889 | null | null | 0.155556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b26983aaaf62e9a5dfc55672252061d0c79dc1d4 | 311 | py | Python | models.py | sourcery-ai-bot/Dumbbot | de8d85381402d48614705df6ecee0ddf74d957fd | [
"MIT"
] | null | null | null | models.py | sourcery-ai-bot/Dumbbot | de8d85381402d48614705df6ecee0ddf74d957fd | [
"MIT"
] | null | null | null | models.py | sourcery-ai-bot/Dumbbot | de8d85381402d48614705df6ecee0ddf74d957fd | [
"MIT"
] | null | null | null | from tortoise import Model, fields
class GuildModel(Model):
id = fields.BigIntField(pk=True, description="Discord ID of the guild")
prefix = fields.CharField(
max_length=5, default=".", description="Custom prefix of the guild",
pk=False
)
class Meta:
table = "guilds"
| 25.916667 | 77 | 0.652733 | 38 | 311 | 5.315789 | 0.710526 | 0.049505 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004237 | 0.241158 | 311 | 11 | 78 | 28.272727 | 0.851695 | 0 | 0 | 0 | 0 | 0 | 0.180064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b26b3abdc1252d21eec55c02e73e02cd5703d7f0 | 492 | py | Python | test.py | Shinpachi8/webscanner | 52aa377f0ee903a04ed19ea07433d0718697833d | [
"Apache-2.0"
] | 5 | 2018-04-27T12:34:08.000Z | 2020-11-09T10:47:02.000Z | test.py | Shinpachi8/webscanner | 52aa377f0ee903a04ed19ea07433d0718697833d | [
"Apache-2.0"
] | null | null | null | test.py | Shinpachi8/webscanner | 52aa377f0ee903a04ed19ea07433d0718697833d | [
"Apache-2.0"
] | 3 | 2019-04-08T19:58:20.000Z | 2020-04-07T15:35:07.000Z | #!/usr/bin/env python
#coding=utf-8
import multiprocessing
import time
def func(a, b):
print a
print b
print a+b
time.sleep(10)
def runFunc(func, *args):
print args
p = multiprocessing.Process(target=func, args=args)
p.daemon = True
p.start()
starttime = time.time()
while Tru... | 16.4 | 55 | 0.581301 | 67 | 492 | 4.149254 | 0.537313 | 0.014388 | 0.05036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023188 | 0.29878 | 492 | 29 | 56 | 16.965517 | 0.782609 | 0.065041 | 0 | 0.095238 | 0 | 0 | 0.026201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b26be369750dd3ee880ceef97c1f3c7dce67b3c4 | 310 | py | Python | Community/ServiceNow CMDB/cmdb_routers/__init__.py | hungtranusa/gateway-workflows | 379a5d323818befcfe5d2764f93db5b41b9b9884 | [
"Apache-2.0"
] | null | null | null | Community/ServiceNow CMDB/cmdb_routers/__init__.py | hungtranusa/gateway-workflows | 379a5d323818befcfe5d2764f93db5b41b9b9884 | [
"Apache-2.0"
] | null | null | null | Community/ServiceNow CMDB/cmdb_routers/__init__.py | hungtranusa/gateway-workflows | 379a5d323818befcfe5d2764f93db5b41b9b9884 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 BlueCat Networks. All rights reserved.
# -*- coding: utf-8 -*-
type = 'ui'
sub_pages = [
{
'name' : 'cmdb_routers_page',
'title' : u'CMDB Routers',
'endpoint' : 'cmdb_routers/cmdb_routers_endpoint',
'description' : u'cmdb_routers'
},
]
| 23.846154 | 61 | 0.558065 | 32 | 310 | 5.1875 | 0.6875 | 0.331325 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022936 | 0.296774 | 310 | 12 | 62 | 25.833333 | 0.738532 | 0.241935 | 0 | 0 | 0 | 0 | 0.452586 | 0.146552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b27016714aea39ccffbb2b8403623a4c1d85db3e | 3,740 | py | Python | processData/cleanText.py | phanhuy1502/FYP | 600f694bc173547fba167e4885762d96e73f061e | [
"MIT"
] | null | null | null | processData/cleanText.py | phanhuy1502/FYP | 600f694bc173547fba167e4885762d96e73f061e | [
"MIT"
] | null | null | null | processData/cleanText.py | phanhuy1502/FYP | 600f694bc173547fba167e4885762d96e73f061e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# python script to read a text file, and clean them to set of 'standard unit'
# usage
# python processData/cleanText.py data/sherlock_holmes.txt
import sys
# those are the characters we want to keep
ALPHABET_1 = '\n !"\'(),.0123456789:;?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
A... | 35.283019 | 153 | 0.70107 | 439 | 3,740 | 5.726651 | 0.225513 | 0.064439 | 0.05171 | 0.057677 | 0.564041 | 0.449483 | 0.406523 | 0.406523 | 0.393795 | 0.331742 | 0 | 0.019564 | 0.16631 | 3,740 | 105 | 154 | 35.619048 | 0.786722 | 0.333422 | 0 | 0.489362 | 0 | 0 | 0.101619 | 0.054656 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021277 | null | null | 0.106383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b275100cd7aa96bb330464755fdbb99c98185994 | 338 | py | Python | bot/config.py | FRI-DAY/platform-gitlab-bot | 540c61689fd086774ce2d1432d8663fcdd602dc5 | [
"Apache-2.0"
] | null | null | null | bot/config.py | FRI-DAY/platform-gitlab-bot | 540c61689fd086774ce2d1432d8663fcdd602dc5 | [
"Apache-2.0"
] | null | null | null | bot/config.py | FRI-DAY/platform-gitlab-bot | 540c61689fd086774ce2d1432d8663fcdd602dc5 | [
"Apache-2.0"
] | null | null | null | from typing import List
import yaml
from pydantic import BaseModel
class BranchPromotionConfig(BaseModel):
source: str
target: str
labels: List[str] = []
class Config(BaseModel):
promote_branches: List[BranchPromotionConfig]
def load_from_yaml(data):
obj = yaml.safe_load(data)
return Conf... | 16.9 | 49 | 0.736686 | 42 | 338 | 5.809524 | 0.547619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183432 | 338 | 19 | 50 | 17.789474 | 0.884058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.916667 | 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 |
b275659d6fd02ee99661f0553349994d79fd39cb | 1,464 | py | Python | analysis.py | rjc89/Auto_EDA | 3db409243475eec434507537153724f615a5957a | [
"MIT"
] | 1 | 2020-07-10T18:48:19.000Z | 2020-07-10T18:48:19.000Z | analysis.py | rjc89/Auto_EDA | 3db409243475eec434507537153724f615a5957a | [
"MIT"
] | null | null | null | analysis.py | rjc89/Auto_EDA | 3db409243475eec434507537153724f615a5957a | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import altair as alt
# import seaborn_altair as salt # https://github.com/Kitware/seaborn_altair
sns.set_style("whitegrid")
def plot_histograms(data):
# cols = list(data.columns)
# for i in cols:
# g = sns.d... | 27.622642 | 76 | 0.64276 | 218 | 1,464 | 4.197248 | 0.380734 | 0.034973 | 0.043716 | 0.04153 | 0.142077 | 0.098361 | 0.06776 | 0.06776 | 0.06776 | 0.06776 | 0 | 0.003515 | 0.222678 | 1,464 | 52 | 77 | 28.153846 | 0.800527 | 0.541667 | 0 | 0 | 0 | 0 | 0.014019 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.176471 | false | 0 | 0.294118 | 0.058824 | 0.647059 | 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 |
b2765f9bd8189fee3b334b64416ce36d6a734669 | 846 | py | Python | src/openprocurement/tender/pricequotation/tests/document_blanks.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 10 | 2020-02-18T01:56:21.000Z | 2022-03-28T00:32:57.000Z | src/openprocurement/tender/pricequotation/tests/document_blanks.py | quintagroup/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 26 | 2018-07-16T09:30:44.000Z | 2021-02-02T17:51:30.000Z | src/openprocurement/tender/pricequotation/tests/document_blanks.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 15 | 2019-08-08T10:50:47.000Z | 2022-02-05T14:13:36.000Z | # -*- coding: utf-8 -*-
from email.header import Header
# TenderDocumentResourceTest
from mock import patch
from openprocurement.tender.core.tests.base import bad_rs_request, srequest
def create_document_active_tendering_status(self):
self.set_status("active.tendering")
# TODO: check if document should not ... | 35.25 | 117 | 0.710402 | 106 | 846 | 5.556604 | 0.669811 | 0.076401 | 0.117148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007052 | 0.161939 | 846 | 23 | 118 | 36.782609 | 0.823695 | 0.339244 | 0 | 0 | 0 | 0 | 0.172414 | 0.061706 | 0 | 0 | 0 | 0.043478 | 0.181818 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 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 |
b279c1db3744463bca7cddab1578884153b41e07 | 423 | py | Python | api/items.py | asim-aai/micro-sample | e62c6d67f5ff952eab9da7d16d483250a211b00f | [
"MIT"
] | null | null | null | api/items.py | asim-aai/micro-sample | e62c6d67f5ff952eab9da7d16d483250a211b00f | [
"MIT"
] | null | null | null | api/items.py | asim-aai/micro-sample | e62c6d67f5ff952eab9da7d16d483250a211b00f | [
"MIT"
] | null | null | null | from flask import Request
from flask_injector import inject
from models.Item import Item
from services.provider import ItemsProvider
items = {
0: {"name": "First item"}
}
@inject(data_provider=ItemsProvider)
def search(data_provider) -> list:
return data_provider.get_serialized()
@inject(item=Item, _reque... | 20.142857 | 48 | 0.747045 | 55 | 423 | 5.618182 | 0.472727 | 0.116505 | 0.097087 | 0.142395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002793 | 0.153664 | 423 | 20 | 49 | 21.15 | 0.860335 | 0 | 0 | 0 | 0 | 0 | 0.033097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.071429 | 0.571429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b2829be52582ee0b62db9362ba60f99206e96bbc | 601 | py | Python | setup.py | neilswainston/HaSAPPy | aa0db0a4da6a6e668054eec0ce797d6613ed47ed | [
"MIT"
] | 4 | 2018-10-19T13:13:40.000Z | 2019-11-01T14:35:55.000Z | setup.py | neilswainston/HaSAPPy | aa0db0a4da6a6e668054eec0ce797d6613ed47ed | [
"MIT"
] | 7 | 2017-01-10T22:30:00.000Z | 2021-01-11T10:39:53.000Z | setup.py | neilswainston/HaSAPPy | aa0db0a4da6a6e668054eec0ce797d6613ed47ed | [
"MIT"
] | 4 | 2017-01-10T20:46:03.000Z | 2019-12-03T17:48:18.000Z | from setuptools import setup
setup(
name = 'HaSAPPy',
packages = ['HaSAPPy'],
version = '1.0.0',
description = 'analysis of FW genetic screenings in Haploid cells',
author = 'Giulio Di Minin',
author_email = 'giulio@diminin.it',
url = 'https://github.com/gdiminin/HaSAPPy',
license = 'MI... | 25.041667 | 71 | 0.597338 | 62 | 601 | 5.709677 | 0.806452 | 0.045198 | 0.079096 | 0.096045 | 0.180791 | 0.180791 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.251248 | 601 | 23 | 72 | 26.130435 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0.37604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b285c135c3d033877f356ac3a8c7a2504e2ec5cc | 720 | py | Python | kafka2cassandra/main.py | raywu60kg/ml-avalon | c9c3d68db86e59e00d81b6f6406b9b72399df9f3 | [
"MIT"
] | 1 | 2021-01-03T11:15:15.000Z | 2021-01-03T11:15:15.000Z | kafka2cassandra/main.py | raywu60kg/ml-avalon | c9c3d68db86e59e00d81b6f6406b9b72399df9f3 | [
"MIT"
] | null | null | null | kafka2cassandra/main.py | raywu60kg/ml-avalon | c9c3d68db86e59e00d81b6f6406b9b72399df9f3 | [
"MIT"
] | null | null | null | import os
from pyspark.sql import SparkSession
# create spark session
spark = SparkSession \
.builder \
.appName("Python Spark SQL basic example") \
.config("spark.some.config.option", "some-value") \
.getOrCreate()
# subscribe kafka
df = spark
.readStream
.format("kafka")
.option("kafka.bootstr... | 24 | 63 | 0.670833 | 85 | 720 | 5.658824 | 0.6 | 0.049896 | 0.079002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008278 | 0.161111 | 720 | 29 | 64 | 24.827586 | 0.788079 | 0.076389 | 0 | 0.173913 | 0 | 0 | 0.357035 | 0.151286 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | 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 |
b29092cb5dc08542c21cbc53d7ae1668181101ce | 261 | py | Python | mathy_core/about.py | mathy/mathy_core | 18307eb36d97d46098304be51c867be809abde1f | [
"MIT"
] | 2 | 2020-07-19T19:02:03.000Z | 2020-07-21T11:13:41.000Z | mathy_core/about.py | mathy/mathy_core | 18307eb36d97d46098304be51c867be809abde1f | [
"MIT"
] | 6 | 2020-09-06T17:59:01.000Z | 2021-04-06T20:42:38.000Z | mathy_core/about.py | mathy/mathy_core | 18307eb36d97d46098304be51c867be809abde1f | [
"MIT"
] | null | null | null | __title__ = "mathy_core"
__version__ = "0.8.4"
__summary__ = "Computer Algebra System for working with math expressions"
__uri__ = "https://mathy.ai"
__author__ = "Justin DuJardin"
__email__ = "justin@dujardinconsulting.com"
__license__ = "All rights reserved"
| 32.625 | 73 | 0.770115 | 31 | 261 | 5.548387 | 0.935484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013043 | 0.118774 | 261 | 7 | 74 | 37.285714 | 0.734783 | 0 | 0 | 0 | 0 | 0 | 0.578544 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b297cc032e7d8daf973c4ba6cef0d2cb088bf6f7 | 21,853 | py | Python | lib/algo/sha3/KeccakReferenceAndOptimized/eBASH/populate.py | tuaris/TidePool | 5d44fa11a7de3f5c05130d0ad4030671806cd501 | [
"BSD-3-Clause"
] | 3 | 2018-06-30T12:10:50.000Z | 2021-09-18T16:10:12.000Z | lib/algo/sha3/KeccakReferenceAndOptimized/eBASH/populate.py | tuaris/TidePool | 5d44fa11a7de3f5c05130d0ad4030671806cd501 | [
"BSD-3-Clause"
] | null | null | null | lib/algo/sha3/KeccakReferenceAndOptimized/eBASH/populate.py | tuaris/TidePool | 5d44fa11a7de3f5c05130d0ad4030671806cd501 | [
"BSD-3-Clause"
] | 9 | 2017-04-12T22:59:49.000Z | 2021-09-18T16:10:25.000Z | # -*- coding: utf-8 -*-
import os, shutil
version = '3.2.5'
class KeccakInstance:
def __init__(self, r, c, n=0):
self.r = r
self.c = c
self.n = n
self.name = 'keccak'
if (r+c != 1600):
self.name = self.name + 'r{0}'.format(r) + 'c{0}'.format(c)
elif (c !... | 43.102564 | 170 | 0.641422 | 2,119 | 21,853 | 6.580934 | 0.09816 | 0.201936 | 0.067121 | 0.063105 | 0.695518 | 0.638508 | 0.606167 | 0.57232 | 0.547221 | 0.530728 | 0 | 0.033992 | 0.224592 | 21,853 | 506 | 171 | 43.187747 | 0.788964 | 0.0054 | 0 | 0.565875 | 0 | 0 | 0.194432 | 0.073769 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084233 | false | 0.00216 | 0.00216 | 0 | 0.107991 | 0.051836 | 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 |
b2998098c9aec8364e919f8aaff82de2af5282e9 | 315 | py | Python | sap/xssec/security_context.py | 51acorsi/cloud-pysec | 5523aead09ca84f591f897fc9caf27973dbf3053 | [
"Apache-2.0"
] | null | null | null | sap/xssec/security_context.py | 51acorsi/cloud-pysec | 5523aead09ca84f591f897fc9caf27973dbf3053 | [
"Apache-2.0"
] | null | null | null | sap/xssec/security_context.py | 51acorsi/cloud-pysec | 5523aead09ca84f591f897fc9caf27973dbf3053 | [
"Apache-2.0"
] | null | null | null | """
This module is deprecated.
"""
import warnings
from sap.xssec import SecurityContextXSUAA
warnings.warn("Class security_context.SecurityContext is deprecated, "
"use security_context_xsuaa.SecurityContextXSUAA instead ", DeprecationWarning, stacklevel=2)
SecurityContext = SecurityContextXSUAA
| 26.25 | 107 | 0.793651 | 30 | 315 | 8.233333 | 0.7 | 0.097166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003676 | 0.136508 | 315 | 11 | 108 | 28.636364 | 0.904412 | 0.08254 | 0 | 0 | 0 | 0 | 0.391459 | 0.266904 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b29cf8271606ffdbda367fb096fd7e02f9017e3a | 8,120 | py | Python | mining_optimizer.py | ThePheonixGuy/Entelect-Challenge-2018 | bd6f3cb4213c26ab335dfb2933c5eba0fa9bcf89 | [
"MIT"
] | null | null | null | mining_optimizer.py | ThePheonixGuy/Entelect-Challenge-2018 | bd6f3cb4213c26ab335dfb2933c5eba0fa9bcf89 | [
"MIT"
] | null | null | null | mining_optimizer.py | ThePheonixGuy/Entelect-Challenge-2018 | bd6f3cb4213c26ab335dfb2933c5eba0fa9bcf89 | [
"MIT"
] | null | null | null | from pprint import pprint
from datetime import datetime
tstart = datetime.now()
print("Started: 0")
def distance(loc1, loc2):
return abs(loc2[0] - loc1[0]) + abs(loc2[1] - loc1[1])
def map_setup(filename):
with open(filename) as f:
content = f.readlines()
content = [x.strip() for x in content]... | 32.874494 | 103 | 0.638547 | 982 | 8,120 | 5.032587 | 0.129328 | 0.05342 | 0.036423 | 0.015783 | 0.46378 | 0.378389 | 0.322946 | 0.292594 | 0.286119 | 0.286119 | 0 | 0.011818 | 0.260099 | 8,120 | 246 | 104 | 33.00813 | 0.810752 | 0.152709 | 0 | 0.254658 | 0 | 0 | 0.016362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012422 | null | null | 0.080745 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b29d101000b84b69d30c98964edd197fba95c9f1 | 748 | py | Python | Python_Basics/Exceptions_operation.py | liutairan/Python_Script_Collection | 9bb27f71c510d64bcf3066738717049b0d3679ce | [
"MIT"
] | null | null | null | Python_Basics/Exceptions_operation.py | liutairan/Python_Script_Collection | 9bb27f71c510d64bcf3066738717049b0d3679ce | [
"MIT"
] | null | null | null | Python_Basics/Exceptions_operation.py | liutairan/Python_Script_Collection | 9bb27f71c510d64bcf3066738717049b0d3679ce | [
"MIT"
] | null | null | null | try:
print(1/0)
except ZeroDivisionError:
print("Zero in denominator")
# Code that depends on the try block executing successfully goes in the else block
print("Type in 2 numbers:")
print("Enter 'q' to quit.")
while True:
first_number = input("\nFirst number: ")
if first_number == 'q':
break
... | 24.129032 | 82 | 0.663102 | 95 | 748 | 5.147368 | 0.536842 | 0.067485 | 0.114519 | 0.130879 | 0.184049 | 0.184049 | 0 | 0 | 0 | 0 | 0 | 0.005208 | 0.229947 | 748 | 30 | 83 | 24.933333 | 0.84375 | 0.131016 | 0 | 0.346154 | 0 | 0 | 0.20711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2a35090c9a9f4f564d96c6dd2117bb4aa58666e | 4,792 | py | Python | MainUserMenu.py | najla88/SaedRobot | 6c7e00d6572715f2fdaff96a3ca4b221b2c0af9e | [
"MIT"
] | null | null | null | MainUserMenu.py | najla88/SaedRobot | 6c7e00d6572715f2fdaff96a3ca4b221b2c0af9e | [
"MIT"
] | null | null | null | MainUserMenu.py | najla88/SaedRobot | 6c7e00d6572715f2fdaff96a3ca4b221b2c0af9e | [
"MIT"
] | null | null | null |
########################################################################
# written by : Arwa AlKhunine, Maryam Al-Abdullatif, CS, #
# Imam Abdulrahman AlFaisal University #
#----------------------------------------------------------------------#
# #
# This interface is the user ma... | 29.95 | 110 | 0.70096 | 585 | 4,792 | 5.680342 | 0.278632 | 0.059585 | 0.058983 | 0.084261 | 0.281372 | 0.210954 | 0.210954 | 0.176949 | 0.176949 | 0.176949 | 0 | 0.004424 | 0.150876 | 4,792 | 159 | 111 | 30.138365 | 0.812239 | 0.207846 | 0 | 0.340206 | 0 | 0 | 0.084417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092784 | false | 0.051546 | 0.082474 | 0 | 0.350515 | 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 |
b2a55071087c748bbe2585437e150d16b0eecd89 | 837 | py | Python | antarest/study/storage/rawstudy/model/filesystem/root/input/wind/wind.py | AntaresSimulatorTeam/antaREST | d686d2a86a52737c211ae67f3cee591f559909f2 | [
"Apache-2.0"
] | 2 | 2020-09-30T11:40:22.000Z | 2020-11-09T09:06:30.000Z | antarest/study/storage/rawstudy/model/filesystem/root/input/wind/wind.py | AntaresSimulatorTeam/antaREST | d686d2a86a52737c211ae67f3cee591f559909f2 | [
"Apache-2.0"
] | 542 | 2021-01-11T13:23:47.000Z | 2022-03-31T15:38:10.000Z | antarest/study/storage/rawstudy/model/filesystem/root/input/wind/wind.py | AntaresSimulatorTeam/antaREST | d686d2a86a52737c211ae67f3cee591f559909f2 | [
"Apache-2.0"
] | 1 | 2020-10-01T12:18:15.000Z | 2020-10-01T12:18:15.000Z | from antarest.study.storage.rawstudy.model.filesystem.common.area_matrix_list import (
AreaMatrixList,
)
from antarest.study.storage.rawstudy.model.filesystem.common.prepro import (
InputPrepro,
)
from antarest.study.storage.rawstudy.model.filesystem.config.model import (
FileStudyTreeConfig,
)
from antares... | 31 | 86 | 0.681004 | 87 | 837 | 6.482759 | 0.402299 | 0.106383 | 0.150709 | 0.212766 | 0.54078 | 0.54078 | 0.437943 | 0.187943 | 0 | 0 | 0 | 0 | 0.212664 | 837 | 26 | 87 | 32.192308 | 0.855842 | 0 | 0 | 0.083333 | 0 | 0 | 0.034648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.208333 | 0 | 0.333333 | 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 |
a23145083fd5ef459405ea69523ce3b67005fb11 | 365 | py | Python | example/hellodjango/settings.d/misc_settings.py | mickbad/django-extended-settings | 021e4a1a02fa3e7914d31577437c956d8a241750 | [
"BSD-3-Clause"
] | 2 | 2018-09-27T19:33:23.000Z | 2021-12-24T14:31:51.000Z | example/hellodjango/settings.d/misc_settings.py | mickbad/django-extended-settings | 021e4a1a02fa3e7914d31577437c956d8a241750 | [
"BSD-3-Clause"
] | null | null | null | example/hellodjango/settings.d/misc_settings.py | mickbad/django-extended-settings | 021e4a1a02fa3e7914d31577437c956d8a241750 | [
"BSD-3-Clause"
] | null | null | null | # some sample
PROJECT_NAME = "My Application"
APPLICATION_SENTENCE = "Hello Django"
# add apps into project read after settings.py
# append application into lists
# INSTALLED_APPS.append('my_application')
# MIDDLEWARE.append('my_application.middleware.MyApplicationMiddleware')
# add an application
INSTALLED_APPS.appe... | 30.416667 | 72 | 0.816438 | 42 | 365 | 6.952381 | 0.571429 | 0.133562 | 0.130137 | 0.19863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 365 | 11 | 73 | 33.181818 | 0.884848 | 0.591781 | 0 | 0 | 0 | 0 | 0.450704 | 0.267606 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2320381aab6f0ff611103502aa387a8a92c92d6 | 1,475 | py | Python | src/PlayerSonar.py | RichardFlanagan/SonusOculi | c59bc7e74c8e66044c7454f606b836797d88fdab | [
"MIT"
] | null | null | null | src/PlayerSonar.py | RichardFlanagan/SonusOculi | c59bc7e74c8e66044c7454f606b836797d88fdab | [
"MIT"
] | null | null | null | src/PlayerSonar.py | RichardFlanagan/SonusOculi | c59bc7e74c8e66044c7454f606b836797d88fdab | [
"MIT"
] | null | null | null | """
Handles the player's personal sonar.
@author: RichardFlanagan - A00193644
@version: 18 April 2014
"""
import pygame
class PlayerSonar(pygame.sprite.Sprite):
def __init__(self, screenParam, playerParam):
"""
Initialize variables.
@param screenParam: The surface to draw the resource... | 22.014925 | 101 | 0.555932 | 180 | 1,475 | 4.511111 | 0.422222 | 0.061576 | 0.068966 | 0.051724 | 0.059113 | 0.059113 | 0 | 0 | 0 | 0 | 0 | 0.030395 | 0.330847 | 1,475 | 66 | 102 | 22.348485 | 0.7923 | 0.395254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a235e4761cd3c5af4d409c6308d6416c6c6942ab | 398 | py | Python | migrations/0004_alter_players_refresh_room.py | renmarin/django_spyfall | a2bda320bd6521c3aff46be4cac57d6d964e9ea9 | [
"MIT"
] | null | null | null | migrations/0004_alter_players_refresh_room.py | renmarin/django_spyfall | a2bda320bd6521c3aff46be4cac57d6d964e9ea9 | [
"MIT"
] | null | null | null | migrations/0004_alter_players_refresh_room.py | renmarin/django_spyfall | a2bda320bd6521c3aff46be4cac57d6d964e9ea9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-22 17:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('spyfall', '0003_players_refresh_room'),
]
operations = [
migrations.AlterField(
model_name='players',
name='refresh_... | 20.947368 | 53 | 0.610553 | 42 | 398 | 5.666667 | 0.785714 | 0.092437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066202 | 0.278894 | 398 | 18 | 54 | 22.111111 | 0.763066 | 0.113065 | 0 | 0 | 1 | 0 | 0.145299 | 0.071225 | 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 |
a237b179e82d48d49e987cd92ec981327ec4eb58 | 765 | py | Python | app/main/views.py | TimothyGicharu/Flask-News | a2c39148b7f937b2b52e18f15277bb91422ba024 | [
"Unlicense"
] | null | null | null | app/main/views.py | TimothyGicharu/Flask-News | a2c39148b7f937b2b52e18f15277bb91422ba024 | [
"Unlicense"
] | null | null | null | app/main/views.py | TimothyGicharu/Flask-News | a2c39148b7f937b2b52e18f15277bb91422ba024 | [
"Unlicense"
] | null | null | null | from flask import render_template, url_for
from . import main
# from app import app
from ..request import get_source, get_source_articles
# Views
@main.route('/')
def index():
'''
View root page function that returns the index page and its data
'''
# Getting news headlines
news_source = get_source... | 25.5 | 79 | 0.691503 | 102 | 765 | 5.04902 | 0.392157 | 0.108738 | 0.116505 | 0.08932 | 0.100971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198693 | 765 | 29 | 80 | 26.37931 | 0.840131 | 0.243137 | 0 | 0 | 0 | 0 | 0.125461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.066667 | 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 |
a23b5388dfade42403a6dd0430a6b111ab9801df | 720 | py | Python | app/models/main.py | phucat/pirateflix | c6865118ec50510de2d8fc00bd11a2b0c07f3c2c | [
"MIT"
] | null | null | null | app/models/main.py | phucat/pirateflix | c6865118ec50510de2d8fc00bd11a2b0c07f3c2c | [
"MIT"
] | null | null | null | app/models/main.py | phucat/pirateflix | c6865118ec50510de2d8fc00bd11a2b0c07f3c2c | [
"MIT"
] | null | null | null | from ferris import BasicModel, ndb
import logging
class Main(BasicModel):
criteria = ndb.StringProperty()
data = ndb.JsonProperty()
permissions = ndb.JsonProperty()
resolved = ndb.BooleanProperty()
@classmethod
def create(cls, params):
entity = cls.get(params['criteria'])
if ... | 22.5 | 44 | 0.588889 | 83 | 720 | 5.048193 | 0.433735 | 0.050119 | 0.047733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316667 | 720 | 31 | 45 | 23.225806 | 0.851626 | 0 | 0 | 0.08 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a23bb66b23732e485280f64fe9db30e558234799 | 20,546 | py | Python | tikz_export.py | xyz2tex/blend2tikz | 99e40cb4e809767e6004b2b4163709e71b28f85b | [
"MIT"
] | null | null | null | tikz_export.py | xyz2tex/blend2tikz | 99e40cb4e809767e6004b2b4163709e71b28f85b | [
"MIT"
] | 1 | 2022-03-20T09:57:03.000Z | 2022-03-20T09:57:03.000Z | tikz_export.py | isabella232/blend2tikz | 99e40cb4e809767e6004b2b4163709e71b28f85b | [
"MIT"
] | 1 | 2022-03-20T07:26:02.000Z | 2022-03-20T07:26:02.000Z | #!BPY
"""
Name: 'TikZ (.tex)...'
Blender: 245
Group: 'Export'
Tooltip: 'Export selected curves as TikZ paths for use with (La)TeX'
"""
__author__ = 'Kjell Magne Fauske'
__version__ = "1.0"
__url__ = ("Documentation, http://www.fauskes.net/code/blend2tikz/documentation/",
"Author's homepage, http://www.fausk... | 31.560676 | 100 | 0.582303 | 2,407 | 20,546 | 4.880764 | 0.213959 | 0.014045 | 0.014045 | 0.00681 | 0.097463 | 0.061032 | 0.02843 | 0.02843 | 0.02843 | 0.02843 | 0 | 0.008154 | 0.301616 | 20,546 | 650 | 101 | 31.609231 | 0.810579 | 0.064976 | 0 | 0.211618 | 0 | 0 | 0.261701 | 0.003383 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018672 | 0.03112 | null | null | 0.012448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a23bf1426ce7750ddf01cf769433d0a32c45fecf | 1,179 | py | Python | users/serializers.py | tahasama/Bugatti-Django-Docker-API | fc587fa7b573e04095ab2e8118cb4a4071d304d6 | [
"MIT"
] | null | null | null | users/serializers.py | tahasama/Bugatti-Django-Docker-API | fc587fa7b573e04095ab2e8118cb4a4071d304d6 | [
"MIT"
] | null | null | null | users/serializers.py | tahasama/Bugatti-Django-Docker-API | fc587fa7b573e04095ab2e8118cb4a4071d304d6 | [
"MIT"
] | 1 | 2021-04-11T14:46:44.000Z | 2021-04-11T14:46:44.000Z | from django.db import transaction
from rest_framework import serializers
from dj_rest_auth.registration.serializers import RegisterSerializer
from django_countries.serializer_fields import CountryField
from .models import GENDER_CHOICES,CustomUser
class CustomUserRegistrationSerializer(RegisterSerializer):
name=s... | 35.727273 | 82 | 0.73028 | 136 | 1,179 | 6.176471 | 0.389706 | 0.047619 | 0.065476 | 0.103571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008073 | 0.159457 | 1,179 | 33 | 83 | 35.727273 | 0.839556 | 0 | 0 | 0 | 0 | 0 | 0.087288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.192308 | 0 | 0.576923 | 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 |
a241bbce0f81c670627981fe8c9011cde53ade80 | 5,166 | py | Python | cohesity_management_sdk/models/restore_object_params.py | chandrashekar-cohesity/management-sdk-python | 9e6ec99e8a288005804b808c4e9b19fd204e3a8b | [
"Apache-2.0"
] | 1 | 2019-11-07T23:19:32.000Z | 2019-11-07T23:19:32.000Z | cohesity_management_sdk/models/restore_object_params.py | chandrashekar-cohesity/management-sdk-python | 9e6ec99e8a288005804b808c4e9b19fd204e3a8b | [
"Apache-2.0"
] | null | null | null | cohesity_management_sdk/models/restore_object_params.py | chandrashekar-cohesity/management-sdk-python | 9e6ec99e8a288005804b808c4e9b19fd204e3a8b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 Cohesity Inc.
import cohesity_management_sdk.models.entity_proto
import cohesity_management_sdk.models.power_state_config_proto
import cohesity_management_sdk.models.rename_object_param_proto
import cohesity_management_sdk.models.restored_object_network_config_proto
class Rest... | 47.833333 | 266 | 0.711382 | 542 | 5,166 | 6.49631 | 0.232472 | 0.05169 | 0.059642 | 0.076683 | 0.272082 | 0.234024 | 0.21812 | 0.21812 | 0.163022 | 0.129509 | 0 | 0.001254 | 0.228417 | 5,166 | 107 | 267 | 48.280374 | 0.882087 | 0.310492 | 0 | 0 | 0 | 0 | 0.15887 | 0.070315 | 0 | 0 | 0 | 0.028037 | 0 | 1 | 0.037736 | false | 0 | 0.075472 | 0 | 0.188679 | 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 |
a243931844270580c964049b3affc25ce0cf4c98 | 4,794 | py | Python | cs15211/NextGreaterElementI.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/NextGreaterElementI.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/NextGreaterElementI.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/next-greater-element-i/'
# Time: O(m + n)
# Space: O(m + n)
#
# Description: 496. Next Greater Element I
#
# You are given two arrays (without duplicates) nums1 and nums2 where nums1's elements are subset of nums2.
# Find all the next greater numbers for nums1's elements in ... | 33.524476 | 112 | 0.581352 | 703 | 4,794 | 3.958748 | 0.241821 | 0.059289 | 0.051743 | 0.026949 | 0.346029 | 0.305785 | 0.261229 | 0.247934 | 0.185411 | 0.164571 | 0 | 0.035725 | 0.293492 | 4,794 | 142 | 113 | 33.760563 | 0.785946 | 0.294326 | 0 | 0.25 | 0 | 0.034091 | 0.824864 | 0.062613 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0 | 0.011364 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a24484fd6eb1fa46ffd6ce8932b0ebc6445feb3c | 691 | py | Python | RNNRepair/reproducible.py | ntucsl/RNNRepair | 17171f0b1d6e0d1701bef1fd8ef4006ef582b772 | [
"Apache-2.0"
] | null | null | null | RNNRepair/reproducible.py | ntucsl/RNNRepair | 17171f0b1d6e0d1701bef1fd8ef4006ef582b772 | [
"Apache-2.0"
] | null | null | null | RNNRepair/reproducible.py | ntucsl/RNNRepair | 17171f0b1d6e0d1701bef1fd8ef4006ef582b772 | [
"Apache-2.0"
] | null | null | null |
__all__=["declare_reproducible"]
def declare_reproducible(SEED = 123):
'''
https://github.com/NVIDIA/framework-determinism/blob/master/pytorch.md
'''
# or whatever you choose
try :
random.seed(SEED) # if you're using random
except :
pass
try :
np.random.seed(SEED)... | 23.033333 | 86 | 0.609262 | 81 | 691 | 5.049383 | 0.54321 | 0.0978 | 0.095355 | 0.07824 | 0.127139 | 0.127139 | 0.127139 | 0 | 0 | 0 | 0 | 0.014344 | 0.293777 | 691 | 30 | 87 | 23.033333 | 0.82377 | 0.272069 | 0 | 0.571429 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.190476 | 0 | 0 | 0.047619 | 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 |
a2484b1fba27d64ba0f0ee327fb0fa149c161db7 | 467 | py | Python | construct-binary-tree-from-preorder-and-inorder-traversal/Solution.8174813.py | rahul-ramadas/leetcode | 6c84c2333a613729361c5cdb63dc3fc80203b340 | [
"MIT"
] | null | null | null | construct-binary-tree-from-preorder-and-inorder-traversal/Solution.8174813.py | rahul-ramadas/leetcode | 6c84c2333a613729361c5cdb63dc3fc80203b340 | [
"MIT"
] | 1 | 2016-09-11T22:26:17.000Z | 2016-09-13T01:49:48.000Z | construct-binary-tree-from-preorder-and-inorder-traversal/Solution.8174813.py | rahul-ramadas/leetcode | 6c84c2333a613729361c5cdb63dc3fc80203b340 | [
"MIT"
] | null | null | null | class Solution:
def buildTree(self, preorder, inorder):
if not inorder:
return None
root_val = preorder[0]
index = inorder.index(root_val)
left_tree = self.buildTree(preorder[1:index + 1], inorder[:index])
right_tree = self.buildTree(preorder[index + 1:... | 29.1875 | 79 | 0.584582 | 55 | 467 | 4.836364 | 0.363636 | 0.078947 | 0.12782 | 0.18797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015674 | 0.316916 | 467 | 15 | 80 | 31.133333 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.333333 | 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 |
a24ed5ea4f795b3da8248c80c7fffd0bf721431d | 37,365 | py | Python | tpsopt/batchtps.py | dhadfieldmenell/tps-opt | 3f7f468c1580f8fd2a740134b500ef2b226cd45a | [
"MIT"
] | 5 | 2017-03-31T07:27:30.000Z | 2020-08-15T03:03:31.000Z | tpsopt/batchtps.py | dhadfieldmenell/tps-opt | 3f7f468c1580f8fd2a740134b500ef2b226cd45a | [
"MIT"
] | null | null | null | tpsopt/batchtps.py | dhadfieldmenell/tps-opt | 3f7f468c1580f8fd2a740134b500ef2b226cd45a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import division
import numpy as np
import scipy.spatial.distance as ssd
import h5py, sys
import pycuda.driver as drv
import pycuda.autoinit
from pycuda import gpuarray
from scikits.cuda import linalg
linalg.init()
from tps import tps_kernel_matrix, tps_eval
from transformations ... | 42.849771 | 136 | 0.586645 | 5,655 | 37,365 | 3.583378 | 0.078515 | 0.030399 | 0.016779 | 0.013127 | 0.488206 | 0.404708 | 0.334732 | 0.291897 | 0.258981 | 0.240377 | 0 | 0.014853 | 0.293671 | 37,365 | 871 | 137 | 42.898967 | 0.752955 | 0.022347 | 0 | 0.244928 | 0 | 0 | 0.037746 | 0 | 0 | 0 | 0 | 0.002296 | 0.02029 | 0 | null | null | 0.002899 | 0.036232 | 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 |
a252c01d684b79a77919d765c608fba7b535b950 | 337 | py | Python | 01-data_types/d3.py | philiphinton/learn_python | 6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4 | [
"MIT"
] | null | null | null | 01-data_types/d3.py | philiphinton/learn_python | 6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4 | [
"MIT"
] | 3 | 2022-01-17T22:55:09.000Z | 2022-01-26T07:26:13.000Z | 01-data_types/d3.py | philiphinton/learn_python | 6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4 | [
"MIT"
] | 1 | 2021-12-14T01:33:21.000Z | 2021-12-14T01:33:21.000Z |
# Multiplying strings and accessing characters within them
# You can print a string multiple times by... multiplying it!
print("-" * 10)
# Since strings are basically a list, you can also access characters
# or ranges of characters by indexing into them
name = "Phil Hinton"
print(f"Name: {name}")
# First characte... | 21.0625 | 68 | 0.735905 | 50 | 337 | 4.96 | 0.7 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010791 | 0.175074 | 337 | 15 | 69 | 22.466667 | 0.881295 | 0.727003 | 0 | 0 | 0 | 0 | 0.282353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a2580b80f4c4e5b885ab8ab565611ac81bf9cbd0 | 2,152 | py | Python | jdcloud_sdk/services/iotcore/apis/GetDeviceGroupRequest.py | Tanc009/jdcloud-sdk-python | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | [
"Apache-2.0"
] | 14 | 2018-04-19T09:53:56.000Z | 2022-01-27T06:05:48.000Z | jdcloud_sdk/services/iotcore/apis/GetDeviceGroupRequest.py | Tanc009/jdcloud-sdk-python | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | [
"Apache-2.0"
] | 15 | 2018-09-11T05:39:54.000Z | 2021-07-02T12:38:02.000Z | jdcloud_sdk/services/iotcore/apis/GetDeviceGroupRequest.py | Tanc009/jdcloud-sdk-python | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | [
"Apache-2.0"
] | 33 | 2018-04-20T05:29:16.000Z | 2022-02-17T09:10:05.000Z | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 27.240506 | 97 | 0.643587 | 229 | 2,152 | 5.991266 | 0.497817 | 0.043732 | 0.01895 | 0.023324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006297 | 0.262082 | 2,152 | 78 | 98 | 27.589744 | 0.857683 | 0.402881 | 0 | 0 | 0 | 0 | 0.056911 | 0.052394 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.04 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a25a7b5ee0458a45a7dcfd76a285d24e9a229387 | 7,178 | py | Python | expense tracker program code/UI_v1/AddTransaction.py | dmazerol/Expense-Tracker-Desktop-App | 8786b0f77699773dfe04fae9051cd2b68d52a43a | [
"MIT"
] | 2 | 2021-08-28T19:13:46.000Z | 2021-08-28T19:13:50.000Z | expense tracker program code/UI_v1/AddTransaction.py | dmazerol/Expense-Tracker-Desktop-App | 8786b0f77699773dfe04fae9051cd2b68d52a43a | [
"MIT"
] | null | null | null | expense tracker program code/UI_v1/AddTransaction.py | dmazerol/Expense-Tracker-Desktop-App | 8786b0f77699773dfe04fae9051cd2b68d52a43a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UI_v1\AddTransaction.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_window_addTransaction(object):
def setupUi(s... | 69.68932 | 377 | 0.721232 | 854 | 7,178 | 5.877049 | 0.238876 | 0.175334 | 0.090855 | 0.086073 | 0.28412 | 0.276948 | 0.091851 | 0.083483 | 0.065949 | 0.037856 | 0 | 0.047341 | 0.164252 | 7,178 | 102 | 378 | 70.372549 | 0.789298 | 0.026888 | 0 | 0 | 1 | 0.033333 | 0.261818 | 0.077964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.011111 | 0 | 0.044444 | 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 |
a269008460dc867af9b8a6e66745963f8c7c280a | 243 | py | Python | consistency_check.py | OSHI7/Learning1 | fa8014066e226465bb7989fbbb82a35412c4f634 | [
"MIT"
] | null | null | null | consistency_check.py | OSHI7/Learning1 | fa8014066e226465bb7989fbbb82a35412c4f634 | [
"MIT"
] | 3 | 2020-03-24T18:02:39.000Z | 2020-10-06T21:32:23.000Z | consistency_check.py | OSHI7/Learning1 | fa8014066e226465bb7989fbbb82a35412c4f634 | [
"MIT"
] | 1 | 2017-07-31T13:15:54.000Z | 2017-07-31T13:15:54.000Z | import numpy as np
from py_pol import degrees
from py_pol.stokes import Stokes
from py_pol.mueller import Mueller
import random
V=Stokes('V')
V.from_elements(1, -1, 0, 0)
H=Stokes('H')
H.linear_light(angle=0, intensity=1)
random.randomint() | 18.692308 | 36 | 0.765432 | 45 | 243 | 4.022222 | 0.466667 | 0.099448 | 0.149171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028037 | 0.119342 | 243 | 13 | 37 | 18.692308 | 0.817757 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
a279c4981073b6cc121b7481fe5e94ce2ffb6b17 | 356 | py | Python | categories/migrations/0004_remove_department_sub_category_name.py | Dogechi/Me2U | 0852600983dc1058ee347f4065ee801e16c1249e | [
"MIT"
] | null | null | null | categories/migrations/0004_remove_department_sub_category_name.py | Dogechi/Me2U | 0852600983dc1058ee347f4065ee801e16c1249e | [
"MIT"
] | 9 | 2020-06-06T01:16:25.000Z | 2021-06-04T23:20:37.000Z | categories/migrations/0004_remove_department_sub_category_name.py | Me2U-Afrika/Me2U | aee054afedff1e6c87f87494eaddf044e217aa95 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2021-02-03 21:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('categories', '0003_department_sub_category_name'),
]
operations = [
migrations.RemoveField(
model_name='department',
name='s... | 19.777778 | 60 | 0.623596 | 38 | 356 | 5.657895 | 0.710526 | 0.102326 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073359 | 0.272472 | 356 | 17 | 61 | 20.941176 | 0.756757 | 0.126404 | 0 | 0 | 1 | 0 | 0.226537 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
a28171f0f1b31b1596c4899d97d212a62d3bd16d | 2,872 | py | Python | manage.py | ypan710/MyPage | 86b1d89419daf741e5f6e83d0326ac399d5d8bb2 | [
"MIT"
] | null | null | null | manage.py | ypan710/MyPage | 86b1d89419daf741e5f6e83d0326ac399d5d8bb2 | [
"MIT"
] | 2 | 2020-07-17T09:15:24.000Z | 2021-05-09T06:55:50.000Z | manage.py | ypan710/MyPage | 86b1d89419daf741e5f6e83d0326ac399d5d8bb2 | [
"MIT"
] | null | null | null | import utils
import sys
## loop through the files in content directory
#all_html_files = glob.glob("content/*.html")
#print(all_html_files)
#
## build up content from empty list
#for html_file in all_html_files:
# # modify and extract useful parts from file paths
# # file_path = "content/bio.html"
# file_na... | 29.010101 | 75 | 0.629875 | 345 | 2,872 | 5.072464 | 0.269565 | 0.073143 | 0.036571 | 0.036 | 0.157143 | 0.105143 | 0.105143 | 0.105143 | 0.105143 | 0.105143 | 0 | 0.000451 | 0.22876 | 2,872 | 98 | 76 | 29.306122 | 0.789616 | 0.808844 | 0 | 0 | 0 | 0 | 0.214894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0.3125 | 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 |
a2842329e72e1a7e008d7521455809246584230b | 2,704 | py | Python | divio_cli/messages.py | bykof/divio-cli | 14a5df39e0e6d7e804e51578bd0db372db8a7596 | [
"BSD-3-Clause"
] | null | null | null | divio_cli/messages.py | bykof/divio-cli | 14a5df39e0e6d7e804e51578bd0db372db8a7596 | [
"BSD-3-Clause"
] | null | null | null | divio_cli/messages.py | bykof/divio-cli | 14a5df39e0e6d7e804e51578bd0db372db8a7596 | [
"BSD-3-Clause"
] | null | null | null | SESSION_EXPIRED = "Session expired. Please log in again."
NETWORK_ERROR_MESSAGE = (
"Network error. Please check your connection and try again."
)
AUTH_SERVER_ERROR = (
"A problem occured while trying to authenticate with divio.com. "
"Please try again later"
)
SERVER_ERROR = (
"A problem occured while ... | 41.6 | 135 | 0.670488 | 380 | 2,704 | 4.692105 | 0.336842 | 0.031408 | 0.035895 | 0.031408 | 0.512619 | 0.49355 | 0.466629 | 0.431856 | 0.38811 | 0.38811 | 0 | 0 | 0.239645 | 2,704 | 64 | 136 | 42.25 | 0.867218 | 0 | 0 | 0.225806 | 0 | 0.016129 | 0.713388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a287b59d563b7db4dbe76d1540f8c2a136ec783f | 4,177 | py | Python | cs15211/MergeSortedArray.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/MergeSortedArray.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/MergeSortedArray.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/merge-sorted-array/'
# https://github.com/kamyu104/LeetCode/blob/master/Python/merge-sorted-array.py
# Time: O(n)
# Space: O(1)
# Sort
#
# Description: Leetcode # 88. Merge Sorted Array
#
# Given two sorted integer arrays A and B, merge B into A as one sorted array.
#
# Note... | 26.775641 | 117 | 0.456548 | 606 | 4,177 | 3.10066 | 0.239274 | 0.012773 | 0.014902 | 0.031932 | 0.260777 | 0.24694 | 0.232038 | 0.232038 | 0.192656 | 0.192656 | 0 | 0.051923 | 0.377544 | 4,177 | 155 | 118 | 26.948387 | 0.670769 | 0.288724 | 0 | 0.216495 | 0 | 0.020619 | 0.347305 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0 | null | null | 0 | 0.010309 | null | null | 0.030928 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a2a2711596157fc149ffb86c93e5e03fd144f452 | 1,252 | py | Python | pycardano/certificate.py | henryyuanheng-wang/pycardano | d58c53791ffef542762e6d0220d4ccd1c0950e5e | [
"MIT"
] | 72 | 2022-01-09T03:54:06.000Z | 2022-03-30T22:05:44.000Z | pycardano/certificate.py | cffls/pycardano | 62161ad072964406d9ce79b3605d55a276ff98b9 | [
"MIT"
] | 13 | 2022-02-19T13:08:11.000Z | 2022-03-30T16:57:33.000Z | pycardano/certificate.py | henryyuanheng-wang/pycardano | d58c53791ffef542762e6d0220d4ccd1c0950e5e | [
"MIT"
] | 15 | 2022-02-07T23:54:51.000Z | 2022-03-30T17:06:12.000Z | from dataclasses import dataclass, field
from typing import Union
from pycardano.hash import PoolKeyHash, ScriptHash, VerificationKeyHash
from pycardano.serialization import ArrayCBORSerializable
__all__ = [
"Certificate",
"StakeCredential",
"StakeRegistration",
"StakeDeregistration",
"StakeDelega... | 21.964912 | 76 | 0.748403 | 116 | 1,252 | 7.913793 | 0.353448 | 0.056645 | 0.078431 | 0.100218 | 0.328976 | 0.328976 | 0.328976 | 0 | 0 | 0 | 0 | 0.004798 | 0.167732 | 1,252 | 56 | 77 | 22.357143 | 0.8762 | 0 | 0 | 0.205882 | 0 | 0 | 0.061502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.117647 | 0 | 0.529412 | 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 |
a2a5a914ec1f0c5678ae641172e53862709f6427 | 528 | py | Python | consumer.py | sandeeppradhan92/python-kafka-avro | 7424bc01ed0a802d6034581385b5f2898d04cafb | [
"MIT"
] | 71 | 2015-07-15T12:31:22.000Z | 2022-03-16T08:10:49.000Z | consumer.py | sandeeppradhan92/python-kafka-avro | 7424bc01ed0a802d6034581385b5f2898d04cafb | [
"MIT"
] | 3 | 2018-06-05T01:47:34.000Z | 2019-01-09T09:12:50.000Z | consumer.py | sandeeppradhan92/python-kafka-avro | 7424bc01ed0a802d6034581385b5f2898d04cafb | [
"MIT"
] | 30 | 2015-12-22T14:57:20.000Z | 2020-10-07T20:05:05.000Z | import io
import avro.schema
import avro.io
from kafka import KafkaConsumer
# To consume messages
CONSUMER = KafkaConsumer('my-topic',
group_id='my_group',
bootstrap_servers=['localhost:9092'])
SCHEMA_PATH = "user.avsc"
SCHEMA = avro.schema.parse(open(SCHEMA_PATH).rea... | 26.4 | 62 | 0.67803 | 66 | 528 | 5.318182 | 0.560606 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.219697 | 528 | 19 | 63 | 27.789474 | 0.837379 | 0.035985 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | 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 |
a2a6616921f9e8157792c8aae24c4a0ff58f32cc | 6,505 | py | Python | FW/DriverWizard/UefiDriverWizard/UefiDriverWizardUefiDriverWizard.py | daxx-linux/edk-Lab_Material_FW | 0c92b0b861e33d949a73e3be96929570e6c7ec61 | [
"BSD-2-Clause"
] | 4 | 2020-04-27T17:47:47.000Z | 2021-10-08T02:17:28.000Z | FW/DriverWizard/UefiDriverWizard/UefiDriverWizardUefiDriverWizard.py | daxx-linux/edk-Lab_Material_FW | 0c92b0b861e33d949a73e3be96929570e6c7ec61 | [
"BSD-2-Clause"
] | 1 | 2021-12-20T13:38:43.000Z | 2021-12-27T10:45:54.000Z | FW/DriverWizard/UefiDriverWizard/UefiDriverWizardUefiDriverWizard.py | daxx-linux/edk-Lab_Material_FW | 0c92b0b861e33d949a73e3be96929570e6c7ec61 | [
"BSD-2-Clause"
] | 6 | 2020-01-06T05:22:49.000Z | 2021-12-30T07:59:36.000Z | ## @file
# Subclass of UefiDriverWizard, which is generated by wxFormBuilder.
#
# Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this
# dis... | 39.424242 | 100 | 0.726364 | 737 | 6,505 | 6.38806 | 0.31479 | 0.052464 | 0.025489 | 0.014868 | 0.422048 | 0.422048 | 0.412489 | 0.404418 | 0.334537 | 0.322855 | 0 | 0.005862 | 0.187087 | 6,505 | 164 | 101 | 39.664634 | 0.884455 | 0.107148 | 0 | 0.364341 | 1 | 0 | 0.288944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085271 | false | 0 | 0.131783 | 0 | 0.286822 | 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 |
a2abbf710bb03515c1c4a315d5d6aa46697c3d72 | 312 | py | Python | mont4k_pipeline/setup.py | bjweiner/ARTN | 6bdb995de0211ca0fcbe72e27666667a9a740b0d | [
"MIT"
] | 5 | 2018-06-11T07:46:08.000Z | 2019-10-30T11:02:41.000Z | mont4k_pipeline/setup.py | bjweiner/ARTN | 6bdb995de0211ca0fcbe72e27666667a9a740b0d | [
"MIT"
] | 47 | 2017-10-13T17:30:44.000Z | 2020-06-11T16:06:22.000Z | mont4k_pipeline/setup.py | so-artn/ARTN | 6bdb995de0211ca0fcbe72e27666667a9a740b0d | [
"MIT"
] | 5 | 2017-11-14T19:09:18.000Z | 2019-04-04T22:31:58.000Z | #!/usr/bin/env python
from distutils.core import setup
setup(name='kuiper_reduction',
version='1.0',
description='Python Distribution Utilities',
author='Scott Swindell',
author_email='scottswindell@email.arizona.edu',
package_dir = {'':''},
packages= ['kuiper_reduction'],
)
| 22.285714 | 53 | 0.669872 | 34 | 312 | 6.029412 | 0.823529 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.179487 | 312 | 13 | 54 | 24 | 0.792969 | 0.064103 | 0 | 0 | 0 | 0 | 0.375862 | 0.106897 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2b182704944df88aee34b63a060fc3245139bc8 | 9,494 | py | Python | TheAnimus.py | St00pid/TheAnimus | 50eeb9a0299e8c3ad52799f2ec9fcaf148dc732c | [
"MIT"
] | null | null | null | TheAnimus.py | St00pid/TheAnimus | 50eeb9a0299e8c3ad52799f2ec9fcaf148dc732c | [
"MIT"
] | null | null | null | TheAnimus.py | St00pid/TheAnimus | 50eeb9a0299e8c3ad52799f2ec9fcaf148dc732c | [
"MIT"
] | null | null | null | #The Animus - Version 1.6
#Version Changes:
#1.0 initial game - each turn player's mood changes. each turn each player rolls two d6 dices which equals to their luck.
#luck + mood defines actions.
#mood states = Fight, Search , Ponder
#2 x 6 roll special action per mood.
#1.1 added legendary item limit. one char can n... | 28.088757 | 153 | 0.687276 | 1,451 | 9,494 | 4.450724 | 0.186768 | 0.031589 | 0.035615 | 0.021679 | 0.345618 | 0.277176 | 0.251316 | 0.234593 | 0.213379 | 0.200991 | 0 | 0.018603 | 0.173373 | 9,494 | 337 | 154 | 28.172107 | 0.804281 | 0.14704 | 0 | 0.33871 | 0 | 0.008065 | 0.175121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016129 | 0.024194 | null | null | 0.306452 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a2b5e017f954e47fe4d4c097b81adffe6b1b821c | 572 | py | Python | syllabDash/wsgi.py | mpreyes/syllabDash | c9c28f674b318c5d64944f3a3d4e1d01722f2d78 | [
"MIT"
] | null | null | null | syllabDash/wsgi.py | mpreyes/syllabDash | c9c28f674b318c5d64944f3a3d4e1d01722f2d78 | [
"MIT"
] | null | null | null | syllabDash/wsgi.py | mpreyes/syllabDash | c9c28f674b318c5d64944f3a3d4e1d01722f2d78 | [
"MIT"
] | null | null | null | """
WSGI config for syllabDash project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from whitenoise import WhiteNoise
from django.core.wsgi import get_wsgi_application... | 28.6 | 78 | 0.79021 | 78 | 572 | 5.692308 | 0.641026 | 0.045045 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003854 | 0.092657 | 572 | 20 | 79 | 28.6 | 0.851638 | 0.506993 | 0 | 0 | 0 | 0 | 0.218182 | 0.08 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
a2bb5cef939bd92446db50b10cdead290883f231 | 1,694 | py | Python | Offer_book_problems/036BSTrerToDoubleLList.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | Offer_book_problems/036BSTrerToDoubleLList.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | Offer_book_problems/036BSTrerToDoubleLList.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Editor: Zhao Xinlu
School: BUPT
Date: 2018-02-12
Function: 二叉搜索树转换成一个排序的双向链表.
要求不能创建任何新的结点,只能调整树中结点指针的指向。
非递归版--解题思路:
1.核心是中序遍历的非递归算法。
2.修改当前遍历节点与前一遍历节点的指针指向。
"""
class BTNode(object):
def __init__(self, val):
self.val = val
self... | 22.586667 | 78 | 0.607438 | 201 | 1,694 | 4.9801 | 0.373134 | 0.04995 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043261 | 0.290437 | 1,694 | 75 | 78 | 22.586667 | 0.789517 | 0.045455 | 0 | 0.1 | 0 | 0 | 0.006999 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2bc84afb6efd117ed0dc28e06f45ccda296d066 | 2,954 | py | Python | migrations/versions/242a8bdd8fee_.py | hamhands/pittsburgh-purchasing-suite | a79aa77c00c95da8f0b3e2f5f7f7143d5857de35 | [
"BSD-3-Clause"
] | 22 | 2015-05-08T15:30:42.000Z | 2021-04-24T20:26:32.000Z | migrations/versions/242a8bdd8fee_.py | hamhands/pittsburgh-purchasing-suite | a79aa77c00c95da8f0b3e2f5f7f7143d5857de35 | [
"BSD-3-Clause"
] | 516 | 2015-04-23T18:14:40.000Z | 2017-11-08T19:27:41.000Z | migrations/versions/242a8bdd8fee_.py | CityofPittsburgh/pittsburgh-purchasing-suite | d676ed9c137e5aaa100992a798acd60ac464a2c1 | [
"BSD-3-Clause"
] | 10 | 2015-07-08T19:00:10.000Z | 2021-03-15T18:56:54.000Z | """Split out contacts from company base model
Revision ID: 242a8bdd8fee
Revises: 534f16295a9b
Create Date: 2015-05-05 16:10:08.830992
"""
# revision identifiers, used by Alembic.
revision = '242a8bdd8fee'
down_revision = '534f16295a9b'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands... | 49.233333 | 122 | 0.716994 | 410 | 2,954 | 5.039024 | 0.173171 | 0.081317 | 0.121975 | 0.074056 | 0.715392 | 0.715392 | 0.623911 | 0.547919 | 0.418199 | 0.312682 | 0 | 0.040184 | 0.115437 | 2,954 | 59 | 123 | 50.067797 | 0.750478 | 0.108328 | 0 | 0 | 0 | 0 | 0.207612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.04878 | 0 | 0.097561 | 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 |
a2bd165575a677cb3b3b4e89a9ef645551840126 | 1,757 | py | Python | src/main.py | sfschouten/3d_mesh_descriptor | 67255999b8330981a3a5ad2b484d7f24884ba8c2 | [
"MIT"
] | 1 | 2020-08-19T11:18:47.000Z | 2020-08-19T11:18:47.000Z | src/main.py | sfschouten/3d_mesh_descriptor | 67255999b8330981a3a5ad2b484d7f24884ba8c2 | [
"MIT"
] | null | null | null | src/main.py | sfschouten/3d_mesh_descriptor | 67255999b8330981a3a5ad2b484d7f24884ba8c2 | [
"MIT"
] | null | null | null | import numpy as np
import trimesh
import spherical_parameterization as sp
import pyshtools
from pyshtools.shclasses.shcoeffsgrid import SHGrid
#mesh = trimesh.load("../suzanne.obj")
mesh = trimesh.load("../fuze.obj")
#mesh = trimesh.load("../cube.obj")
#mesh = trimesh.load("../armadillo.obj")
#mesh = trimesh.load("..... | 24.402778 | 84 | 0.64428 | 272 | 1,757 | 4.051471 | 0.338235 | 0.059891 | 0.068058 | 0.065336 | 0.172414 | 0.07078 | 0 | 0 | 0 | 0 | 0 | 0.022825 | 0.202049 | 1,757 | 71 | 85 | 24.746479 | 0.763195 | 0.091064 | 0 | 0 | 0 | 0 | 0.015373 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
a2c2e2ee7cadf0f187a516db0e9ce24d46b9cb1b | 1,602 | py | Python | nipype/interfaces/mrtrix/tests/test_auto_GenerateDirections.py | moloney/nipype | a7a9c85c79cb1412ba03406074f83200447ef50b | [
"Apache-2.0"
] | 7 | 2017-02-17T08:54:26.000Z | 2022-03-10T20:57:23.000Z | nipype/interfaces/mrtrix/tests/test_auto_GenerateDirections.py | moloney/nipype | a7a9c85c79cb1412ba03406074f83200447ef50b | [
"Apache-2.0"
] | 1 | 2016-04-25T15:07:09.000Z | 2016-04-25T15:07:09.000Z | nipype/interfaces/mrtrix/tests/test_auto_GenerateDirections.py | moloney/nipype | a7a9c85c79cb1412ba03406074f83200447ef50b | [
"Apache-2.0"
] | 2 | 2017-09-23T16:22:00.000Z | 2019-08-01T14:18:52.000Z | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..tensors import GenerateDirections
def test_GenerateDirections_inputs():
input_map = dict(
args=dict(argstr='%s', ),
display_debug=dict(argstr='-debug', ),
display_info=dict(argstr='-info', ... | 30.807692 | 67 | 0.56804 | 170 | 1,602 | 5.188235 | 0.417647 | 0.090703 | 0.037415 | 0.054422 | 0.240363 | 0.240363 | 0.185941 | 0.124717 | 0.124717 | 0.124717 | 0 | 0.007149 | 0.301498 | 1,602 | 51 | 68 | 31.411765 | 0.781055 | 0.031835 | 0 | 0.347826 | 1 | 0 | 0.049064 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.086957 | 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 |
a2c2e77f1c6217ee2990bb841dac75b5ddbda4d6 | 3,244 | py | Python | src/brgy175/residents/forms.py | arjanlangit/brgy175 | 32f91a03c0d8d30472ad8b13e5ce0e47d229e4f8 | [
"bzip2-1.0.6"
] | 2 | 2019-11-08T14:37:16.000Z | 2019-11-08T14:37:19.000Z | src/brgy175/residents/forms.py | arjanlangit/brgy175 | 32f91a03c0d8d30472ad8b13e5ce0e47d229e4f8 | [
"bzip2-1.0.6"
] | null | null | null | src/brgy175/residents/forms.py | arjanlangit/brgy175 | 32f91a03c0d8d30472ad8b13e5ce0e47d229e4f8 | [
"bzip2-1.0.6"
] | 2 | 2019-10-08T05:40:39.000Z | 2020-03-02T20:28:22.000Z | from django import forms
from .models import Resident
from crispy_forms.helper import FormHelper
GENDER_CHOICES = [
('Male', 'Male'),
('Female', 'Female'),
]
CIVIL_STATUS_CHOICES = [
('Married', 'Married'),
('Single', 'Single'),
('Widow', 'Widow'),
('Widower', 'Widower'),
('Separated', 'Se... | 51.492063 | 327 | 0.631936 | 344 | 3,244 | 5.744186 | 0.270349 | 0.092105 | 0.125 | 0.197368 | 0.370445 | 0.256073 | 0.218623 | 0.203441 | 0.183704 | 0.183704 | 0 | 0.000756 | 0.184957 | 3,244 | 63 | 328 | 51.492063 | 0.746596 | 0.157522 | 0 | 0 | 0 | 0 | 0.309044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.057692 | 0 | 0.153846 | 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 |
a2c5145793d3f0ceb3e75daf64f2ae3b8882f452 | 1,376 | py | Python | notifications/models.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 5 | 2019-07-01T17:50:44.000Z | 2022-02-20T02:44:42.000Z | notifications/models.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 3 | 2020-06-05T21:44:33.000Z | 2021-06-10T21:39:26.000Z | notifications/models.py | everyvoter/everyvoter | 65d9b8bdf9b5c64057135c279f6e03b6c207e0fa | [
"MIT"
] | 1 | 2021-12-09T06:32:40.000Z | 2021-12-09T06:32:40.000Z | """Models for the block functionality"""
from django.db import models
from django.dispatch import receiver
from django.db.models.signals import post_save
from accounts.models import User
from everyvoter_common.utils.models import TimestampModel, UUIDModel
class NotificationSettingManager(models.Manager):
"""Mana... | 32.761905 | 77 | 0.728198 | 152 | 1,376 | 6.460526 | 0.506579 | 0.03055 | 0.02444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183866 | 1,376 | 41 | 78 | 33.560976 | 0.874443 | 0.202762 | 0 | 0 | 0 | 0 | 0.07729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.217391 | 0.043478 | 0.695652 | 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 |
a2c8800c4ef4394d1c4e491a29d2906b82e0143a | 2,024 | py | Python | HLTriggerOffline/Btag/python/readConfig.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | HLTriggerOffline/Btag/python/readConfig.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | HLTriggerOffline/Btag/python/readConfig.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | # set up variables
#def readConfig(fileName)
import FWCore.ParameterSet.Config as cms
from HLTriggerOffline.Btag.helper import *
class fileINI:
def __init__(self, fileName):
self.fileName=fileName
def read(self):
Config.optionxform = str
Config.read(self.fileName)
self.processname=ConfigSectionMap("confi... | 32.645161 | 84 | 0.717885 | 243 | 2,024 | 5.880658 | 0.226337 | 0.044787 | 0.052484 | 0.03219 | 0.218335 | 0.183345 | 0.135759 | 0.090973 | 0.090973 | 0.090973 | 0 | 0.00058 | 0.148715 | 2,024 | 61 | 85 | 33.180328 | 0.828787 | 0.060771 | 0 | 0.211538 | 0 | 0 | 0.133896 | 0.011597 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.326923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a2cdcfb84e87dc46f574f41eaf9ead28c7b4eadf | 590 | py | Python | code/ch8/seqclass.py | raionik/Py4Bio | f95ba16ef295f4889149123c5f76419d38077bc5 | [
"MIT"
] | 66 | 2017-01-11T14:37:31.000Z | 2022-03-20T23:23:45.000Z | code/ch8/seqclass.py | raionik/Py4Bio | f95ba16ef295f4889149123c5f76419d38077bc5 | [
"MIT"
] | 8 | 2019-12-14T23:44:27.000Z | 2021-01-05T02:04:10.000Z | code/ch8/seqclass.py | raionik/Py4Bio | f95ba16ef295f4889149123c5f76419d38077bc5 | [
"MIT"
] | 32 | 2017-08-21T11:57:55.000Z | 2021-07-22T00:42:21.000Z | class Sequence:
transcription_table = {'A':'U', 'T':'A', 'C':'G' , 'G':'C'}
enz_dict = {'EcoRI':'GAATTC', 'EcoRV':'GATATC'}
def __init__(self, seqstring):
self.seqstring = seqstring.upper()
def restriction(self, enz):
try:
enz_target = Sequence.enz_dict[enz]
retur... | 32.777778 | 63 | 0.555932 | 67 | 590 | 4.746269 | 0.507463 | 0.163522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002451 | 0.308475 | 590 | 17 | 64 | 34.705882 | 0.776961 | 0 | 0 | 0 | 0 | 0 | 0.057627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0 | 0 | 0.529412 | 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 |
a2cfba2b57edfb395ec0bdd1239ed53348e43294 | 2,398 | py | Python | lake/modules/sram_stub_generator.py | StanfordAHA/Lake | 34df001db107e1a0824b7fdb05b9f2145bf49a3e | [
"BSD-3-Clause"
] | 11 | 2019-10-14T02:05:38.000Z | 2022-03-10T14:10:22.000Z | lake/modules/sram_stub_generator.py | StanfordAHA/Lake | 34df001db107e1a0824b7fdb05b9f2145bf49a3e | [
"BSD-3-Clause"
] | 29 | 2019-09-02T05:49:40.000Z | 2022-02-26T00:57:54.000Z | lake/modules/sram_stub_generator.py | StanfordAHA/Lake | 34df001db107e1a0824b7fdb05b9f2145bf49a3e | [
"BSD-3-Clause"
] | 1 | 2021-04-16T20:26:13.000Z | 2021-04-16T20:26:13.000Z | from kratos import *
from math import log
from lake.attributes.sram_port_attr import SRAMPortAttr
class SRAMStubGenerator(Generator):
##########################
# Generation #
##########################
def __init__(self,
sram_name,
data_width,
... | 33.774648 | 75 | 0.51251 | 242 | 2,398 | 4.77686 | 0.31405 | 0.083045 | 0.16609 | 0.193772 | 0.133218 | 0.058824 | 0.058824 | 0.058824 | 0 | 0 | 0 | 0.006659 | 0.311093 | 2,398 | 70 | 76 | 34.257143 | 0.693099 | 0.128857 | 0 | 0.052632 | 0 | 0 | 0.097522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.078947 | 0 | 0.131579 | 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 |
a2dbeeffb620a6bbe21585f9ff1fd1c8231ef5b9 | 3,445 | py | Python | config/kube.py | sg893052/sonic-utilities | fdb79b8d65b8ca22232f4e6b140f593dd01613d5 | [
"Apache-2.0"
] | 91 | 2016-03-23T14:24:41.000Z | 2022-03-18T20:25:37.000Z | config/kube.py | sg893052/sonic-utilities | fdb79b8d65b8ca22232f4e6b140f593dd01613d5 | [
"Apache-2.0"
] | 1,495 | 2017-02-15T10:49:10.000Z | 2022-03-31T18:49:56.000Z | config/kube.py | sg893052/sonic-utilities | fdb79b8d65b8ca22232f4e6b140f593dd01613d5 | [
"Apache-2.0"
] | 466 | 2016-04-25T09:31:23.000Z | 2022-03-31T06:54:17.000Z | import click
from utilities_common.cli import AbbreviationGroup, pass_db
from .utils import log
# DB Field names
KUBE_SERVER_TABLE_NAME = "KUBERNETES_MASTER"
KUBE_SERVER_TABLE_KEY = "SERVER"
KUBE_SERVER_IP = "ip"
KUBE_SERVER_PORT = "port"
KUBE_SERVER_DISABLE = "disable"
KUBE_SERVER_INSECURE = "insecure"
KUBE_STATE_... | 27.125984 | 95 | 0.687954 | 488 | 3,445 | 4.614754 | 0.211066 | 0.102131 | 0.053286 | 0.039964 | 0.302842 | 0.258437 | 0.213144 | 0.156306 | 0.119005 | 0.100355 | 0 | 0.003551 | 0.182583 | 3,445 | 126 | 96 | 27.34127 | 0.796165 | 0.171263 | 0 | 0.2625 | 0 | 0 | 0.101144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1375 | false | 0.125 | 0.0375 | 0 | 0.175 | 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 |
a2de70551da01ec286436b436367fd540809fbcd | 706 | py | Python | npbench/benchmarks/polybench/symm/symm.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 27 | 2021-05-10T11:49:13.000Z | 2022-03-22T18:07:19.000Z | npbench/benchmarks/polybench/symm/symm.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 3 | 2021-12-01T13:03:17.000Z | 2022-03-17T10:53:00.000Z | npbench/benchmarks/polybench/symm/symm.py | frahlg/npbench | 1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26 | [
"BSD-3-Clause"
] | 7 | 2021-06-24T03:40:25.000Z | 2022-01-26T09:04:33.000Z | # Copyright 2021 ETH Zurich and the NPBench authors. All rights reserved.
import numpy as np
def initialize(M, N, datatype=np.float64):
alpha = datatype(1.5)
beta = datatype(1.2)
C = np.fromfunction(lambda i, j: ((i + j) % 100) / M, (M, N),
dtype=datatype)
B = np.fromfunction(... | 33.619048 | 73 | 0.467422 | 98 | 706 | 3.367347 | 0.418367 | 0.030303 | 0.181818 | 0.054545 | 0.281818 | 0.127273 | 0.127273 | 0.127273 | 0 | 0 | 0 | 0.057604 | 0.385269 | 706 | 20 | 74 | 35.3 | 0.702765 | 0.100567 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2def82d7be519fb4e48726b94c902525ee685ec | 1,352 | py | Python | halogen/generator.py | AUCR/halogen | 33a26035fbd0a4a7f5d4ace482bb5a20cea9e5c4 | [
"MIT"
] | null | null | null | halogen/generator.py | AUCR/halogen | 33a26035fbd0a4a7f5d4ace482bb5a20cea9e5c4 | [
"MIT"
] | null | null | null | halogen/generator.py | AUCR/halogen | 33a26035fbd0a4a7f5d4ace482bb5a20cea9e5c4 | [
"MIT"
] | null | null | null | # coding=utf-8
""" The generator parser library to support all generation processes """
import binascii
def yara_image_rule_maker(self) -> list:
""" Return generated match list.
returns: rule_match_list """
if self.image_name is None:
find_matches_dict = self.get_file[1]
self.image_name =... | 34.666667 | 85 | 0.596154 | 183 | 1,352 | 4.180328 | 0.382514 | 0.070588 | 0.101961 | 0.039216 | 0.054902 | 0.054902 | 0 | 0 | 0 | 0 | 0 | 0.009761 | 0.318047 | 1,352 | 38 | 86 | 35.578947 | 0.819957 | 0.20858 | 0 | 0 | 1 | 0 | 0.015385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.04 | 0.04 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2e0e6405cb8d9ac3874e4e74922857ad3ba4eb3 | 3,290 | py | Python | lib/rest/server.py | geertj/python-rest | 019be5cf501e2300589b1709150f394337451afe | [
"MIT"
] | 1 | 2019-09-01T22:31:18.000Z | 2019-09-01T22:31:18.000Z | lib/rest/server.py | geertj/python-rest | 019be5cf501e2300589b1709150f394337451afe | [
"MIT"
] | null | null | null | lib/rest/server.py | geertj/python-rest | 019be5cf501e2300589b1709150f394337451afe | [
"MIT"
] | null | null | null | #
# This file is part of Python-REST. Python-REST is free software that is
# made available under the MIT license. Consult the file "LICENSE" that is
# distributed together with this file for the exact licensing terms.
#
# Python-REST is copyright (c) 2010 by the Python-REST authors. See the file
# "AUTHORS" for a comp... | 32.9 | 76 | 0.651672 | 438 | 3,290 | 4.789954 | 0.39726 | 0.023832 | 0.007626 | 0.00715 | 0.102002 | 0.034318 | 0.00858 | 0.00858 | 0.00858 | 0.00858 | 0 | 0.009423 | 0.225836 | 3,290 | 99 | 77 | 33.232323 | 0.814291 | 0.14924 | 0 | 0.058824 | 0 | 0.014706 | 0.157303 | 0.023596 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029412 | 0.102941 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a2e125bc71cc52935ccb6b7070a9b49f9a5de84a | 2,108 | py | Python | store/containers.py | oulabla/store | b0e8f8685844b38fd9be11d5e677405a1f4690c2 | [
"MIT"
] | null | null | null | store/containers.py | oulabla/store | b0e8f8685844b38fd9be11d5e677405a1f4690c2 | [
"MIT"
] | null | null | null | store/containers.py | oulabla/store | b0e8f8685844b38fd9be11d5e677405a1f4690c2 | [
"MIT"
] | null | null | null | from __future__ import annotations
import aiohttp
from dependency_injector import containers, providers
from dependency_injector.ext import aiohttp
from aiohttp import web
from store.controllers import (
health_controller,
user_controller,
role_controller,
security_controller,
websocket_cont... | 41.333333 | 152 | 0.81926 | 217 | 2,108 | 7.709677 | 0.262673 | 0.114764 | 0.093246 | 0.033473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118121 | 2,108 | 51 | 153 | 41.333333 | 0.899946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.297297 | 0 | 0.756757 | 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 |
a2e6d46811745b7af65010315850940b8dc5ae6e | 3,171 | py | Python | weather_requester.py | jeffrutledge/dynamic_desktop_background | be63edb292125978468cc96fbcffd4ad59b8ce66 | [
"MIT"
] | null | null | null | weather_requester.py | jeffrutledge/dynamic_desktop_background | be63edb292125978468cc96fbcffd4ad59b8ce66 | [
"MIT"
] | null | null | null | weather_requester.py | jeffrutledge/dynamic_desktop_background | be63edb292125978468cc96fbcffd4ad59b8ce66 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
import json
class CachedWeatherRequester(ABC):
@staticmethod
@abstractmethod
def _weather_to_desktop_bg_image_name():
pass
def __init__(self, api_key, cache_path, stale_time):
self._api_key = api_key
self._cache_path = cache_path
self... | 33.03125 | 71 | 0.603595 | 362 | 3,171 | 4.975138 | 0.301105 | 0.054969 | 0.046641 | 0.039978 | 0.122154 | 0.109384 | 0.109384 | 0.053304 | 0.053304 | 0.053304 | 0 | 0.001332 | 0.289814 | 3,171 | 95 | 72 | 33.378947 | 0.798401 | 0.034374 | 0 | 0.166667 | 0 | 0 | 0.159581 | 0.007848 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141026 | false | 0.051282 | 0.025641 | 0 | 0.269231 | 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 |
a2f75272f0534799bd56ab76583c6f5c456e5d6e | 4,359 | py | Python | test_API_snapshots.py | cameronfr/trusat-backend | 3c88b271e882b042b9a5794879d731fdb8b01fb9 | [
"Apache-2.0"
] | 21 | 2020-04-23T14:29:31.000Z | 2021-04-07T04:56:08.000Z | test_API_snapshots.py | cameronfr/trusat-backend | 3c88b271e882b042b9a5794879d731fdb8b01fb9 | [
"Apache-2.0"
] | 19 | 2019-10-22T15:04:26.000Z | 2020-03-17T14:53:05.000Z | test_API_snapshots.py | cameronfr/trusat-backend | 3c88b271e882b042b9a5794879d731fdb8b01fb9 | [
"Apache-2.0"
] | 5 | 2019-10-24T03:41:35.000Z | 2020-03-10T12:04:47.000Z | import requests
import json
from snapshottest.file import FileSnapshot
import time
from enum import Enum
#API_BASE_URL = "https://api.consensys.space:8080"
API_BASE_URL = "http://127.0.0.1:8080"
TEST_OBJECT_IDENTIFIER = {'norad_number': 40538}
class RequestMethod(Enum):
GET = 1
POST = 2
def api_request(endpo... | 33.530769 | 113 | 0.729755 | 616 | 4,359 | 4.935065 | 0.224026 | 0.086842 | 0.075 | 0.086842 | 0.546382 | 0.538158 | 0.452961 | 0.39375 | 0.284211 | 0.236842 | 0 | 0.007765 | 0.172746 | 4,359 | 129 | 114 | 33.790698 | 0.835275 | 0.267722 | 0 | 0.2 | 0 | 0 | 0.134791 | 0.037859 | 0 | 0 | 0 | 0 | 0.171429 | 1 | 0.242857 | false | 0 | 0.071429 | 0 | 0.428571 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a2fd7c82f0de7c7b114af49453271f62996fad04 | 1,298 | py | Python | src/cattrs/preconf/pyyaml.py | python-attrs/cattrs | a10ad1c638dd16308c9aa73c649fa92282503c00 | [
"MIT"
] | 78 | 2021-11-04T20:33:23.000Z | 2022-03-27T16:42:27.000Z | src/cattrs/preconf/pyyaml.py | python-attrs/cattrs | a10ad1c638dd16308c9aa73c649fa92282503c00 | [
"MIT"
] | 81 | 2021-10-29T19:38:55.000Z | 2022-03-30T22:25:20.000Z | src/cattrs/preconf/pyyaml.py | python-attrs/cattrs | a10ad1c638dd16308c9aa73c649fa92282503c00 | [
"MIT"
] | 10 | 2021-11-01T02:04:01.000Z | 2022-02-13T15:31:41.000Z | """Preconfigured converters for pyyaml."""
from datetime import datetime
from typing import Any, Type, TypeVar
from yaml import safe_dump, safe_load
from cattrs._compat import FrozenSetSubscriptable
from ..converters import BaseConverter, Converter
from . import validate_datetime
T = TypeVar("T")
class PyyamlConv... | 28.844444 | 88 | 0.723421 | 153 | 1,298 | 5.973856 | 0.45098 | 0.04267 | 0.059081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181048 | 1,298 | 44 | 89 | 29.5 | 0.859831 | 0.141757 | 0 | 0 | 0 | 0 | 0.054378 | 0.053456 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.24 | 0.08 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a2fe6dd3682b49041592464baff034ea739a42c7 | 1,705 | py | Python | angr/engines/pcode/arch/ArchPcode_z180_LE_16_default.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 6,132 | 2015-08-06T23:24:47.000Z | 2022-03-31T21:49:34.000Z | angr/engines/pcode/arch/ArchPcode_z180_LE_16_default.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 2,272 | 2015-08-10T08:40:07.000Z | 2022-03-31T23:46:44.000Z | angr/engines/pcode/arch/ArchPcode_z180_LE_16_default.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 1,155 | 2015-08-06T23:37:39.000Z | 2022-03-31T05:54:11.000Z | ###
### This file was automatically generated
###
from archinfo.arch import register_arch, Endness, Register
from .common import ArchPcode
class ArchPcode_z180_LE_16_default(ArchPcode):
name = 'z180:LE:16:default'
pcode_arch = 'z180:LE:16:default'
description = 'Zilog Z180'
bits = 16
ip_offset =... | 29.396552 | 83 | 0.53783 | 214 | 1,705 | 4.140187 | 0.392523 | 0.03386 | 0.045147 | 0.08465 | 0.097065 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133497 | 0.283871 | 1,705 | 57 | 84 | 29.912281 | 0.592138 | 0.021701 | 0 | 0 | 1 | 0 | 0.094692 | 0 | 0 | 0 | 0.08082 | 0 | 0 | 1 | 0 | false | 0 | 0.040816 | 0 | 0.244898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.