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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
112cd847b88d905fd3029731c809d6d6df124316 | 1,233 | py | Python | scripts/metwork_topics.py | metwork-framework/ressources | 5d88c13b823089c965a5a2204b981da8b652757c | [
"BSD-3-Clause"
] | null | null | null | scripts/metwork_topics.py | metwork-framework/ressources | 5d88c13b823089c965a5a2204b981da8b652757c | [
"BSD-3-Clause"
] | 47 | 2018-09-12T14:30:00.000Z | 2021-09-09T12:26:10.000Z | scripts/metwork_topics.py | metwork-framework/ressources | 5d88c13b823089c965a5a2204b981da8b652757c | [
"BSD-3-Clause"
] | 2 | 2018-10-15T09:15:31.000Z | 2019-03-13T14:25:48.000Z | #!/usr/bin/env python3
import argparse
import asyncio
import json
from aiohttp import ClientSession, BasicAuth, ClientTimeout
import os
import aiohttp_github_helpers as h
GITHUB_USER = os.environ.get('GITHUB_USER', None)
GITHUB_PASS = os.environ.get('GITHUB_PASS', None)
TIMEOUT = ClientTimeout(total=20)
AUTH = None
i... | 30.825 | 71 | 0.739659 | 179 | 1,233 | 4.938547 | 0.441341 | 0.045249 | 0.058824 | 0.040724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00286 | 0.14923 | 1,233 | 39 | 72 | 31.615385 | 0.839847 | 0.017032 | 0 | 0 | 0 | 0 | 0.120562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 0 | 0.212121 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
11317909c862fb2dd860a82e60e0abd38c112ba8 | 4,832 | py | Python | unn/linalg.py | hacksparr0w/unn | 8ee8a8a07034fa65d33de1750fb38e93ec8ed60c | [
"MIT"
] | 1 | 2021-07-28T09:15:19.000Z | 2021-07-28T09:15:19.000Z | unn/linalg.py | hacksparr0w/unn | 8ee8a8a07034fa65d33de1750fb38e93ec8ed60c | [
"MIT"
] | null | null | null | unn/linalg.py | hacksparr0w/unn | 8ee8a8a07034fa65d33de1750fb38e93ec8ed60c | [
"MIT"
] | null | null | null | import random
from collections import namedtuple
MatrixShape = namedtuple("MatrixShape", ["rows", "columns"])
def array2d(shape, value):
return [[value(i, j) for j in range(shape[1])] for i in range(shape[0])]
class Matrix:
def __init__(self, array):
self.array = array
rows = len(array)
... | 27.611429 | 79 | 0.548013 | 621 | 4,832 | 4.141707 | 0.148148 | 0.030327 | 0.052877 | 0.051322 | 0.531493 | 0.485226 | 0.466952 | 0.455677 | 0.455677 | 0.42846 | 0 | 0.00216 | 0.32947 | 4,832 | 174 | 80 | 27.770115 | 0.791667 | 0 | 0 | 0.31405 | 0 | 0 | 0.073262 | 0.005174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190083 | false | 0 | 0.016529 | 0.107438 | 0.413223 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
1136bb828a12a7dcfde93227e557d6824371edd7 | 845 | py | Python | test/test_DateUtils.py | sebastianhaberey/ctax | b1da8a196560d25d5367e576cc6f659a9572bdc5 | [
"MIT"
] | 10 | 2018-12-18T21:16:47.000Z | 2022-01-17T19:53:33.000Z | test/test_DateUtils.py | sebastianhaberey/ctax | b1da8a196560d25d5367e576cc6f659a9572bdc5 | [
"MIT"
] | 19 | 2018-09-15T18:51:45.000Z | 2018-09-29T18:01:46.000Z | test/test_DateUtils.py | sebastianhaberey/ctax | b1da8a196560d25d5367e576cc6f659a9572bdc5 | [
"MIT"
] | null | null | null | from datetime import datetime
from unittest import TestCase
from dateutil.tz import UTC
from src.DateUtils import get_start_of_year, get_start_of_year_after, date_to_string, date_and_time_to_string
class TestDateUtils(TestCase):
def test_get_start_of_year(self):
self.assertEqual(datetime(2018, 1, 1, 0,... | 36.73913 | 109 | 0.713609 | 143 | 845 | 3.916084 | 0.230769 | 0.042857 | 0.042857 | 0.15 | 0.575 | 0.45 | 0.375 | 0.375 | 0.25 | 0.25 | 0 | 0.10043 | 0.175148 | 845 | 22 | 110 | 38.409091 | 0.703013 | 0 | 0 | 0 | 0 | 0 | 0.039053 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.642857 | 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 |
1137675ff4573acee0c74caca52ca34bf90e674c | 18,260 | py | Python | third-party/webscalesqlclient/mysql-5.6/mysql-test/suite/innodb_stress/t/load_generator.py | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | third-party/webscalesqlclient/mysql-5.6/mysql-test/suite/innodb_stress/t/load_generator.py | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | third-party/webscalesqlclient/mysql-5.6/mysql-test/suite/innodb_stress/t/load_generator.py | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | import cStringIO
import hashlib
import MySQLdb
import os
import random
import signal
import sys
import threading
import time
import string
import traceback
CHARS = string.letters + string.digits
def sha1(x):
return hashlib.sha1(str(x)).hexdigest()
# Should be deterministic given an idx
def get_msg(do_blob, idx):
... | 34.130841 | 115 | 0.600657 | 2,521 | 18,260 | 4.180087 | 0.119794 | 0.021256 | 0.030746 | 0.01357 | 0.467261 | 0.376637 | 0.327766 | 0.2974 | 0.269786 | 0.241032 | 0 | 0.020111 | 0.272946 | 18,260 | 534 | 116 | 34.194757 | 0.773652 | 0.05805 | 0 | 0.349776 | 0 | 0.011211 | 0.216857 | 0.044425 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004484 | 0.024664 | null | null | 0.087444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
11389b7061e65d0958fbebfba4739239a2fc1bea | 2,037 | py | Python | sancus/lib/cogs/owner/admin_slash.py | Solar-Productions/sancus | eb3c5c702bc5574c62b488c0e3bb06a36159e651 | [
"Apache-2.0"
] | 1 | 2021-09-03T22:52:27.000Z | 2021-09-03T22:52:27.000Z | sancus/lib/cogs/owner/admin_slash.py | LunarDevelop/sancus | eb3c5c702bc5574c62b488c0e3bb06a36159e651 | [
"Apache-2.0"
] | 1 | 2021-10-10T22:11:51.000Z | 2021-10-10T22:11:51.000Z | sancus/lib/cogs/owner/admin_slash.py | Solar-Productions/sancus | eb3c5c702bc5574c62b488c0e3bb06a36159e651 | [
"Apache-2.0"
] | 1 | 2021-11-11T16:04:02.000Z | 2021-11-11T16:04:02.000Z | from configparser import ConfigParser
from glob import glob
from discord import Embed
from discord.ext.commands import Cog, command, group, is_owner
import asyncio
import datetime
import sys
import discord
from discord.ext.commands.context import Context
#from tinker.ext.apps import *
class Counter(discord.ui.View... | 37.036364 | 93 | 0.701522 | 276 | 2,037 | 5.148551 | 0.405797 | 0.038001 | 0.042224 | 0.030964 | 0.076003 | 0.076003 | 0.076003 | 0.076003 | 0 | 0 | 0 | 0.005044 | 0.221404 | 2,037 | 54 | 94 | 37.722222 | 0.890921 | 0.320079 | 0 | 0 | 0 | 0 | 0.013453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.321429 | 0 | 0.464286 | 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 |
1140bf2a91589655a2b5c15a7d3b4ca12c6d5027 | 409 | py | Python | posts/migrations/0010_auto_20201120_0529.py | vldslv/simple-blog | 85ea180e92a3a584e3b4ae2d97a5224c559a7cc1 | [
"BSD-3-Clause"
] | null | null | null | posts/migrations/0010_auto_20201120_0529.py | vldslv/simple-blog | 85ea180e92a3a584e3b4ae2d97a5224c559a7cc1 | [
"BSD-3-Clause"
] | null | null | null | posts/migrations/0010_auto_20201120_0529.py | vldslv/simple-blog | 85ea180e92a3a584e3b4ae2d97a5224c559a7cc1 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.2.9 on 2020-11-20 02:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0009_auto_20201115_0431'),
]
operations = [
migrations.AddConstraint(
model_name='follow',
constraint=model... | 22.722222 | 99 | 0.630807 | 43 | 409 | 5.883721 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100324 | 0.244499 | 409 | 17 | 100 | 24.058824 | 0.718447 | 0.110024 | 0 | 0 | 1 | 0 | 0.165746 | 0.063536 | 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 |
115bab6acf9f1efb52620d943da91627a011d588 | 2,240 | py | Python | virus_total.py | jonschipp/nsm-tools | bc465038bfeb215ca54b67bb4170d607327d0436 | [
"BSD-2-Clause"
] | 3 | 2016-02-26T06:28:47.000Z | 2016-12-09T23:19:35.000Z | virus_total.py | jonschipp/nsm-tools | bc465038bfeb215ca54b67bb4170d607327d0436 | [
"BSD-2-Clause"
] | null | null | null | virus_total.py | jonschipp/nsm-tools | bc465038bfeb215ca54b67bb4170d607327d0436 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import json
import urllib
import urllib2
import sys
apikey = '843fa2012b619be746ead785b933d59820a2e357c7c186e581e8fcadbe2e550e'
def usage():
print '''Submit hash to virtus-total
(Place your VirusTotal apikey in this script)
Usage: %s <hash>''' % sys.argv[0]
exit(1)
def collect(data):
retr... | 27.317073 | 93 | 0.69375 | 315 | 2,240 | 4.787302 | 0.301587 | 0.074271 | 0.078912 | 0.067639 | 0.263263 | 0.198939 | 0.178382 | 0.178382 | 0.178382 | 0.147215 | 0 | 0.035813 | 0.189732 | 2,240 | 81 | 94 | 27.654321 | 0.795041 | 0.018304 | 0 | 0.149254 | 0 | 0 | 0.223031 | 0.029131 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059701 | null | null | 0.074627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1164dd3dd45d08ace50ca4b24008ab7f5c008eee | 1,485 | py | Python | 1stRound/Medium/449-Serialize and Deserialize BST/DFSPreOrder.py | ericchen12377/Leetcode-Algorithm-Python | eb58cd4f01d9b8006b7d1a725fc48910aad7f192 | [
"MIT"
] | 2 | 2020-04-24T18:36:52.000Z | 2020-04-25T00:15:57.000Z | 1stRound/Medium/449-Serialize and Deserialize BST/DFSPreOrder.py | ericchen12377/Leetcode-Algorithm-Python | eb58cd4f01d9b8006b7d1a725fc48910aad7f192 | [
"MIT"
] | null | null | null | 1stRound/Medium/449-Serialize and Deserialize BST/DFSPreOrder.py | ericchen12377/Leetcode-Algorithm-Python | eb58cd4f01d9b8006b7d1a725fc48910aad7f192 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Codec:
def serialize(self, root: TreeNode) -> str:
"""Encodes a tree to a single string.
"""
def DFSPreorder(root):
... | 29.7 | 97 | 0.534007 | 165 | 1,485 | 4.781818 | 0.369697 | 0.076046 | 0.038023 | 0.048162 | 0.121673 | 0.121673 | 0.121673 | 0.121673 | 0.121673 | 0.121673 | 0 | 0.002096 | 0.357576 | 1,485 | 50 | 98 | 29.7 | 0.824948 | 0.305724 | 0 | 0.136364 | 0 | 0 | 0.007929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.045455 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
116964ae9fc7694d62c644302058f5dab73652eb | 268 | py | Python | TestHospital/test/test_login_negative/test_login_invalid_credentials.py | Irshak10/AQA | b5e22e6fdc017040e2fefcf148792ba74fd38b8d | [
"MIT"
] | null | null | null | TestHospital/test/test_login_negative/test_login_invalid_credentials.py | Irshak10/AQA | b5e22e6fdc017040e2fefcf148792ba74fd38b8d | [
"MIT"
] | null | null | null | TestHospital/test/test_login_negative/test_login_invalid_credentials.py | Irshak10/AQA | b5e22e6fdc017040e2fefcf148792ba74fd38b8d | [
"MIT"
] | null | null | null | from Pages.LoginPage import LoginPage
def test_invalid_login(setup):
login = LoginPage(setup)
login.enter_username_false()
login.enter_password_true()
login.click_login()
login.invalid_message_check()
print("Correct Login Test Completed")
| 19.142857 | 41 | 0.742537 | 33 | 268 | 5.757576 | 0.606061 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171642 | 268 | 13 | 42 | 20.615385 | 0.855856 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
116af1be02eed7748796fab7b787f2cb8771a926 | 548 | py | Python | 044/main.py | autozimu/projecteuler | 12a8244b7ef9358ac6ca30698cd761c81c3ec925 | [
"MIT"
] | null | null | null | 044/main.py | autozimu/projecteuler | 12a8244b7ef9358ac6ca30698cd761c81c3ec925 | [
"MIT"
] | null | null | null | 044/main.py | autozimu/projecteuler | 12a8244b7ef9358ac6ca30698cd761c81c3ec925 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
s = [n * (3 * n - 1) / 2 for n in range(0, 10000)]
found = False
i = 1900
while not found:
i += 1
j = 1
while j < i:
# actually, we cannot guarentee that j < i, the real condition would
# be s[i] < 3 * j + 1, which is the distance of s[j] and s[j + 1]. But
# t... | 23.826087 | 78 | 0.470803 | 96 | 548 | 2.6875 | 0.489583 | 0.031008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06079 | 0.399635 | 548 | 22 | 79 | 24.909091 | 0.723404 | 0.343066 | 0 | 0 | 0 | 0 | 0.014045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
febbb570031584153cc453531cfad9d62d5b53da | 656 | py | Python | python/enthic/utils/__init__.py | phe-sto/enthic | 0ca3ea949f418ccf72978a92c814b05b82fa3076 | [
"WTFPL"
] | 10 | 2019-12-06T14:19:24.000Z | 2020-11-19T13:12:35.000Z | python/enthic/utils/__init__.py | phe-sto/enthic | 0ca3ea949f418ccf72978a92c814b05b82fa3076 | [
"WTFPL"
] | 25 | 2020-03-31T17:08:22.000Z | 2022-02-10T22:27:43.000Z | python/enthic/utils/__init__.py | phe-sto/enthic | 0ca3ea949f418ccf72978a92c814b05b82fa3076 | [
"WTFPL"
] | null | null | null | # -*- coding: utf-8 -*-
from json import load
from logging import basicConfig
from os.path import join, dirname
from pathlib import Path
################################################################################
# CHECKING THE INPUT AND OUTPUT AND DIRECTORY PATH
# INPUT
with open(join(Path(dirname(__file__)).par... | 41 | 108 | 0.551829 | 67 | 656 | 5.283582 | 0.597015 | 0.096045 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003407 | 0.105183 | 656 | 15 | 109 | 43.733333 | 0.599659 | 0.137195 | 0 | 0 | 0 | 0.125 | 0.234414 | 0.062344 | 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 |
febd4c5ea5d37f5d661349afebfd22902257f283 | 1,637 | py | Python | app/management/commands/generate.py | abogoyavlensky/django-pg-research | bee5ac40a3e0d33e7a88ed48ec6dc04c87528db6 | [
"MIT"
] | null | null | null | app/management/commands/generate.py | abogoyavlensky/django-pg-research | bee5ac40a3e0d33e7a88ed48ec6dc04c87528db6 | [
"MIT"
] | null | null | null | app/management/commands/generate.py | abogoyavlensky/django-pg-research | bee5ac40a3e0d33e7a88ed48ec6dc04c87528db6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import random
from random_words import RandomWords
from random_words import LoremIpsum
from django.core.management.base import BaseCommand
from app.models import Tag
from app.models import Post
class Command(BaseCommand):
def __init__(self):
super(Command, self).__init__()
... | 30.314815 | 79 | 0.546121 | 190 | 1,637 | 4.563158 | 0.415789 | 0.041522 | 0.059977 | 0.048443 | 0.113033 | 0.059977 | 0 | 0 | 0 | 0 | 0 | 0.020465 | 0.343311 | 1,637 | 53 | 80 | 30.886792 | 0.786047 | 0.012828 | 0 | 0.095238 | 0 | 0 | 0.068773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
febed84610cce92ca5a78eecfa305870b18cc6d4 | 6,764 | py | Python | ros/src/waypoint_updater/waypoint_updater.py | Abdilaziz/CarND-Capstone | 55b071c46b92658dc1617e3ff34531cd5282a8e1 | [
"MIT"
] | null | null | null | ros/src/waypoint_updater/waypoint_updater.py | Abdilaziz/CarND-Capstone | 55b071c46b92658dc1617e3ff34531cd5282a8e1 | [
"MIT"
] | null | null | null | ros/src/waypoint_updater/waypoint_updater.py | Abdilaziz/CarND-Capstone | 55b071c46b92658dc1617e3ff34531cd5282a8e1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Waypoint Updater.
This node will publish waypoints from the car's current position to some `x` distance ahead.
As mentioned in the doc, you should ideally first implement a version which does not care
about traffic lights or obstacles.
Once you have created dbw_node, you will update this node... | 35.046632 | 134 | 0.668096 | 927 | 6,764 | 4.728155 | 0.270766 | 0.027379 | 0.02715 | 0.019393 | 0.150125 | 0.099475 | 0.040611 | 0.040611 | 0.040611 | 0.040611 | 0 | 0.013346 | 0.246747 | 6,764 | 192 | 135 | 35.229167 | 0.846909 | 0.324069 | 0 | 0.028846 | 0 | 0 | 0.027134 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.144231 | false | 0.009615 | 0.076923 | 0.009615 | 0.298077 | 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 |
fec13c651d52b40a5f2248b2a3733321fd5d2e54 | 3,815 | py | Python | railcollector.py | DanteLore/national-rail | 8c60178ea2c1b71438c36cfdae7df808db5c374b | [
"MIT"
] | 14 | 2018-07-12T10:43:00.000Z | 2019-10-19T07:10:59.000Z | railcollector.py | DanteLore/national-rail | 8c60178ea2c1b71438c36cfdae7df808db5c374b | [
"MIT"
] | null | null | null | railcollector.py | DanteLore/national-rail | 8c60178ea2c1b71438c36cfdae7df808db5c374b | [
"MIT"
] | 3 | 2019-07-15T14:32:00.000Z | 2020-02-12T17:53:21.000Z | import argparse
from time import sleep
import requests
import xmltodict
# http://www.nationalrail.co.uk/100296.aspx
# https://lite.realtime.nationalrail.co.uk/OpenLDBWS/
# http://zetcode.com/db/sqlitepythontutorial/
from utils.database import insert_into_db, delete_where, execute_sql
xml_payload = """<?xml version=... | 38.15 | 197 | 0.623853 | 462 | 3,815 | 5.069264 | 0.361472 | 0.020922 | 0.029035 | 0.022203 | 0.031597 | 0.031597 | 0 | 0 | 0 | 0 | 0 | 0.024617 | 0.212058 | 3,815 | 99 | 198 | 38.535354 | 0.754491 | 0.061075 | 0 | 0 | 0 | 0.026667 | 0.40979 | 0.084755 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fec8bbb3f41ea8513300db1174bf26c5ac72fcf6 | 7,546 | py | Python | chatbrick/brick/shortener.py | BluehackRano/cb-wh | ecf11100ad83df71eac9d56f6abbd59ceeda9d83 | [
"MIT"
] | null | null | null | chatbrick/brick/shortener.py | BluehackRano/cb-wh | ecf11100ad83df71eac9d56f6abbd59ceeda9d83 | [
"MIT"
] | null | null | null | chatbrick/brick/shortener.py | BluehackRano/cb-wh | ecf11100ad83df71eac9d56f6abbd59ceeda9d83 | [
"MIT"
] | 1 | 2019-03-05T06:50:11.000Z | 2019-03-05T06:50:11.000Z | import logging
import time
import blueforge.apis.telegram as tg
import requests
import urllib.parse
import json
from blueforge.apis.facebook import Message, ImageAttachment, QuickReply, QuickReplyTextItem, TemplateAttachment, \
GenericTemplate, Element, PostBackButton, ButtonTemplate, UrlButton
logger = logging.g... | 37.542289 | 115 | 0.373178 | 510 | 7,546 | 5.347059 | 0.258824 | 0.044371 | 0.028236 | 0.035204 | 0.656399 | 0.645398 | 0.62853 | 0.62853 | 0.583792 | 0.493949 | 0 | 0.005251 | 0.54572 | 7,546 | 200 | 116 | 37.73 | 0.790257 | 0.112642 | 0 | 0.464052 | 0 | 0 | 0.105311 | 0.015752 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006536 | false | 0 | 0.045752 | 0 | 0.078431 | 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 |
fec8fbc55d1af1209c9e7e098a82c13f771956eb | 1,195 | py | Python | ask/qa/models.py | nikitabray/web | ef2e1a6ed2e917b0398622c488be2f222742b882 | [
"Unlicense"
] | null | null | null | ask/qa/models.py | nikitabray/web | ef2e1a6ed2e917b0398622c488be2f222742b882 | [
"Unlicense"
] | null | null | null | ask/qa/models.py | nikitabray/web | ef2e1a6ed2e917b0398622c488be2f222742b882 | [
"Unlicense"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
# Create your models here.
class QuestionManager(models.Manager):
def new(self):
return self.order_by('-id')
def popular(self):
return self.order_by('-rating')
class Question(models.Model... | 31.447368 | 103 | 0.708787 | 149 | 1,195 | 5.530201 | 0.442953 | 0.036408 | 0.050971 | 0.076456 | 0.288835 | 0.237864 | 0.237864 | 0.237864 | 0.140777 | 0.140777 | 0 | 0.005097 | 0.17908 | 1,195 | 37 | 104 | 32.297297 | 0.834862 | 0.020084 | 0 | 0.068966 | 0 | 0 | 0.070145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.103448 | 0.103448 | 0.827586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
fecf4c8aeffd0ce28d05065c07b1a272ca60037e | 1,529 | py | Python | great_expectations/data_context/data_context/explorer_data_context.py | andyjessen/great_expectations | 74f7f2aa7b51144f34156ed49490dae4edaa5cb7 | [
"Apache-2.0"
] | null | null | null | great_expectations/data_context/data_context/explorer_data_context.py | andyjessen/great_expectations | 74f7f2aa7b51144f34156ed49490dae4edaa5cb7 | [
"Apache-2.0"
] | null | null | null | great_expectations/data_context/data_context/explorer_data_context.py | andyjessen/great_expectations | 74f7f2aa7b51144f34156ed49490dae4edaa5cb7 | [
"Apache-2.0"
] | null | null | null | import logging
from ruamel.yaml import YAML
from great_expectations.data_context.data_context.data_context import DataContext
logger = logging.getLogger(__name__)
yaml = YAML()
yaml.indent(mapping=2, sequence=4, offset=2)
yaml.default_flow_style = False
class ExplorerDataContext(DataContext):
def __init__(self... | 33.23913 | 119 | 0.688685 | 168 | 1,529 | 5.952381 | 0.440476 | 0.209 | 0.092 | 0.044 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002632 | 0.254415 | 1,529 | 45 | 120 | 33.977778 | 0.874561 | 0.2845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.173913 | 0 | 0.391304 | 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 |
fecfe7347f543cbcfbae4629f1a3340b7de24b39 | 1,367 | py | Python | util/rmcompile.py | likwoka/ak | e6ac14e202e5a0d8f1b57e3e1a5c5a1ed9ecc14b | [
"Apache-2.0"
] | null | null | null | util/rmcompile.py | likwoka/ak | e6ac14e202e5a0d8f1b57e3e1a5c5a1ed9ecc14b | [
"Apache-2.0"
] | null | null | null | util/rmcompile.py | likwoka/ak | e6ac14e202e5a0d8f1b57e3e1a5c5a1ed9ecc14b | [
"Apache-2.0"
] | null | null | null | '''
Copyright (c) Alex Li 2003. All rights reserved.
'''
__version__ = '0.1'
__file__ = 'rmcompile.py'
import os, getopt, sys
EXTLIST = ['.ptlc', '.pyc']
def remove(extlist, dirname, files):
for file in files:
(name, ext) = os.path.splitext(file)
if ext in extlist:
os.remove(os.p... | 21.030769 | 64 | 0.547184 | 170 | 1,367 | 4.258824 | 0.505882 | 0.024862 | 0.038674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010776 | 0.321141 | 1,367 | 64 | 65 | 21.359375 | 0.769397 | 0.012436 | 0 | 0.052632 | 0 | 0 | 0.192874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fed05ac1dfedd9e75b62b9d7eec9b45bc5c84bcd | 366 | py | Python | observatorio/dados/migrations/0007_auto_20201007_1720.py | guerrasao/Observatorio-Socioeconomico-da-COVID-19 | 15457859092a41e539e57af6cc1bc875f3fbdf93 | [
"MIT"
] | null | null | null | observatorio/dados/migrations/0007_auto_20201007_1720.py | guerrasao/Observatorio-Socioeconomico-da-COVID-19 | 15457859092a41e539e57af6cc1bc875f3fbdf93 | [
"MIT"
] | null | null | null | observatorio/dados/migrations/0007_auto_20201007_1720.py | guerrasao/Observatorio-Socioeconomico-da-COVID-19 | 15457859092a41e539e57af6cc1bc875f3fbdf93 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-10-07 20:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dados', '0006_auto_20201007_1630'),
]
operations = [
migrations.AlterUniqueTogether(
name='variaveisgrafico',
unique_togethe... | 20.333333 | 54 | 0.612022 | 36 | 366 | 6.111111 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115672 | 0.26776 | 366 | 17 | 55 | 21.529412 | 0.705224 | 0.122951 | 0 | 0 | 1 | 0 | 0.184953 | 0.0721 | 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 |
fed3744cb0d9a7b7d5b538e2e8bb1083ab7dd9b2 | 688 | py | Python | Part 1 - Data Preprocessing/data_preprocessing.py | Tatvam/Machine-Learning | a18d3f541d99a8fb0cfbe89df358a11d3121b4f5 | [
"MIT"
] | null | null | null | Part 1 - Data Preprocessing/data_preprocessing.py | Tatvam/Machine-Learning | a18d3f541d99a8fb0cfbe89df358a11d3121b4f5 | [
"MIT"
] | null | null | null | Part 1 - Data Preprocessing/data_preprocessing.py | Tatvam/Machine-Learning | a18d3f541d99a8fb0cfbe89df358a11d3121b4f5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Dec 8 15:15:29 2018
@author: tatvam
importing the libraries
"""
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# import the dataset
dataset = pd.read_csv("Data.csv")
X = dataset.iloc[:, :-1].values
Y = dataset.iloc[:, 3].value... | 22.933333 | 88 | 0.741279 | 115 | 688 | 4.26087 | 0.53913 | 0.036735 | 0.057143 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030405 | 0.139535 | 688 | 30 | 89 | 22.933333 | 0.797297 | 0.274709 | 0 | 0 | 0 | 0 | 0.024922 | 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 |
fed3cd8321c318f2dc707c9994a2ee0cad04c478 | 785 | py | Python | qiniu_ufop/management/commands/createproject.py | Xavier-Lam/qiniu-ufop | 02c6119c69637cb39e2b73a915e68b77afa07fe3 | [
"MIT"
] | 5 | 2019-06-10T12:53:41.000Z | 2020-12-06T02:57:37.000Z | qiniu_ufop/management/commands/createproject.py | Xavier-Lam/qiniu-ufop | 02c6119c69637cb39e2b73a915e68b77afa07fe3 | [
"MIT"
] | null | null | null | qiniu_ufop/management/commands/createproject.py | Xavier-Lam/qiniu-ufop | 02c6119c69637cb39e2b73a915e68b77afa07fe3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
from distutils.dir_util import copy_tree
from kombu.utils.objects import cached_property
import qiniu_ufop
from ..base import BaseCommand
class Command(BaseCommand):
"""创建一个项目"""
def execute(self, args, unknown):
src = os.pa... | 28.035714 | 75 | 0.657325 | 104 | 785 | 4.75 | 0.586538 | 0.072874 | 0.040486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00161 | 0.208917 | 785 | 27 | 76 | 29.074074 | 0.793881 | 0.036943 | 0 | 0 | 0 | 0 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fed91e7ac94b5be8280a7f183dba3afc80ab32c6 | 484 | py | Python | zipencrypt/__init__.py | norcuni/zipencrypt | 897f03d05f5b2881e915ed346d0498f58abf3ac8 | [
"MIT"
] | 5 | 2018-06-05T18:57:10.000Z | 2020-12-04T10:08:31.000Z | zipencrypt/__init__.py | norcuni/zipencrypt | 897f03d05f5b2881e915ed346d0498f58abf3ac8 | [
"MIT"
] | 2 | 2018-11-07T02:53:40.000Z | 2019-10-30T20:48:40.000Z | zipencrypt/__init__.py | devthat/zipencrypt | 897f03d05f5b2881e915ed346d0498f58abf3ac8 | [
"MIT"
] | null | null | null | import sys
PY2 = sys.version_info[0] == 2
if PY2:
from .zipencrypt2 import ZipFile
from zipfile import BadZipfile, error, ZIP_STORED, ZIP_DEFLATED, \
is_zipfile, ZipInfo, PyZipFile, LargeZipFile
__all__ = ["BadZipfile", "error", "ZIP_STORED", "ZIP_DEFLATED",
"is_zipfile", "ZipInfo",... | 32.266667 | 79 | 0.692149 | 55 | 484 | 5.709091 | 0.436364 | 0.095541 | 0.11465 | 0.152866 | 0.324841 | 0.324841 | 0.324841 | 0.324841 | 0.324841 | 0 | 0 | 0.023377 | 0.204545 | 484 | 14 | 80 | 34.571429 | 0.792208 | 0 | 0 | 0 | 0 | 0 | 0.169421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 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 |
fee65bcaf5d8cc11fa9804e94169f7ab6dcff8da | 427 | py | Python | test/test_google.py | kcather/Legacy | dcf92aa7d5d4213736e3018ce4b0eb945d80afb7 | [
"MIT"
] | null | null | null | test/test_google.py | kcather/Legacy | dcf92aa7d5d4213736e3018ce4b0eb945d80afb7 | [
"MIT"
] | null | null | null | test/test_google.py | kcather/Legacy | dcf92aa7d5d4213736e3018ce4b0eb945d80afb7 | [
"MIT"
] | null | null | null | #### neeed to make sure google still work for sure
# this may have to run on non-python devs' boxes, try/catch an install of the requests lib to be SURE
try:
import requests
except:
import os
os.sys('easy_install pip')
os.sys('pip install requests')
import requests
#r = requests.get('http://www.go... | 25.117647 | 101 | 0.683841 | 71 | 427 | 4.084507 | 0.633803 | 0.096552 | 0.082759 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.199063 | 427 | 16 | 102 | 26.6875 | 0.839181 | 0.437939 | 0 | 0.2 | 0 | 0 | 0.309013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
feef852c484bcfaf650545d694c36f762735f100 | 803 | py | Python | geniza/corpus/migrations/0018_document_doctype_help_link.py | kmcelwee/geniza | 0e59134e35357d4f80d85bf1e423edbc29d1edfb | [
"Apache-2.0"
] | null | null | null | geniza/corpus/migrations/0018_document_doctype_help_link.py | kmcelwee/geniza | 0e59134e35357d4f80d85bf1e423edbc29d1edfb | [
"Apache-2.0"
] | 5 | 2020-09-22T17:35:24.000Z | 2020-09-22T19:45:46.000Z | geniza/corpus/migrations/0018_document_doctype_help_link.py | kmcelwee/geniza | 0e59134e35357d4f80d85bf1e423edbc29d1edfb | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1 on 2021-08-19 15:49
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("corpus", "0017_secondary_lang_allow_unknown"),
]
operations = [
migrations.AlterField(
model_name... | 29.740741 | 176 | 0.595268 | 86 | 803 | 5.430233 | 0.709302 | 0.051392 | 0.059957 | 0.094218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047535 | 0.292653 | 803 | 26 | 177 | 30.884615 | 0.774648 | 0.053549 | 0 | 0.1 | 1 | 0.05 | 0.295515 | 0.043536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fefccd0f2f86b8b353d1a858bb9e54ee6a296e8f | 850 | py | Python | 3/one.py | TheFrederick-git/adventofcode2021 | a320f3bba2655afab1aad8bf2520ccb705b2fd1e | [
"MIT"
] | null | null | null | 3/one.py | TheFrederick-git/adventofcode2021 | a320f3bba2655afab1aad8bf2520ccb705b2fd1e | [
"MIT"
] | null | null | null | 3/one.py | TheFrederick-git/adventofcode2021 | a320f3bba2655afab1aad8bf2520ccb705b2fd1e | [
"MIT"
] | null | null | null | """3/1 adventofcode"""
with open("input.txt", "r", encoding="UTF-8") as i_file:
data = i_file.read().splitlines()
columns = [[row[i] for row in data] for i in range(len(data[0]))]
def binlst_to_int(values) -> int:
"""Returns int values of binary in list form"""
values = values[::-1]
total = 0... | 35.416667 | 85 | 0.64 | 136 | 850 | 3.911765 | 0.345588 | 0.082707 | 0.06203 | 0.041353 | 0.259399 | 0.116541 | 0 | 0 | 0 | 0 | 0 | 0.022255 | 0.207059 | 850 | 23 | 86 | 36.956522 | 0.767062 | 0.189412 | 0 | 0 | 0 | 0 | 0.029457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a078ca91eafb1c88f7c5c3ad6afd4b81ea83805 | 1,386 | py | Python | src/io/protobuf_test.py | fritzo/pomagma | 224bb6adab3fc68e2d853e6365b4b86a8f7f468f | [
"Apache-2.0"
] | 10 | 2015-06-09T00:25:01.000Z | 2019-06-11T16:07:31.000Z | src/io/protobuf_test.py | fritzo/pomagma | 224bb6adab3fc68e2d853e6365b4b86a8f7f468f | [
"Apache-2.0"
] | 25 | 2015-03-23T23:16:01.000Z | 2017-08-29T03:35:59.000Z | src/io/protobuf_test.py | fritzo/pomagma | 224bb6adab3fc68e2d853e6365b4b86a8f7f468f | [
"Apache-2.0"
] | null | null | null | from google.protobuf import text_format
from pomagma.io import protobuf_test_pb2
from pomagma.io.protobuf import InFile, OutFile
from pomagma.util import in_temp_dir
from pomagma.util.testing import for_each
def parse(text, Message=protobuf_test_pb2.TestMessage):
message = Message()
text_format.Merge(text, m... | 24.75 | 55 | 0.585859 | 145 | 1,386 | 5.386207 | 0.310345 | 0.107554 | 0.057618 | 0.066581 | 0.179257 | 0.097311 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.310967 | 1,386 | 55 | 56 | 25.2 | 0.80733 | 0 | 0 | 0.3125 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0 | null | null | 0 | 0.104167 | null | null | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a107df57da88f96818aa6ed0682c1887ef863ef | 1,901 | py | Python | puzzle/booking/candy.py | aliciawyy/dmining | 513f6f036f8f258281e1282fef052a74bf9cc3d3 | [
"Apache-2.0"
] | null | null | null | puzzle/booking/candy.py | aliciawyy/dmining | 513f6f036f8f258281e1282fef052a74bf9cc3d3 | [
"Apache-2.0"
] | 9 | 2017-10-25T10:03:36.000Z | 2018-06-12T22:49:22.000Z | puzzle/booking/candy.py | aliciawyy/dmining | 513f6f036f8f258281e1282fef052a74bf9cc3d3 | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
def read_line_to_list(as_type=int):
return map(as_type, raw_input().strip().split(' '))
N, M, T = read_line_to_list()
candies_ = [read_line_to_list() for _ in range(N)]
class CollectCandies(object):
def __init__(self, n, m, t, candies):
self.dim = n, m
s... | 32.220339 | 69 | 0.579695 | 279 | 1,901 | 3.620072 | 0.236559 | 0.062376 | 0.044554 | 0.041584 | 0.182178 | 0.045545 | 0 | 0 | 0 | 0 | 0 | 0.02145 | 0.288795 | 1,901 | 58 | 70 | 32.775862 | 0.725592 | 0 | 0 | 0 | 0 | 0 | 0.004734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | null | null | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a1c1e3d3d934a3c220e33611b61500c0a74317b | 14,244 | py | Python | uni_ticket/migrations/0001_initial.py | biotech2021/uniTicket | 8c441eac18e67a983e158326b1c4b82f00f1f1ef | [
"Apache-2.0"
] | 15 | 2019-09-06T06:47:08.000Z | 2022-01-17T06:39:54.000Z | uni_ticket/migrations/0001_initial.py | biotech2021/uniTicket | 8c441eac18e67a983e158326b1c4b82f00f1f1ef | [
"Apache-2.0"
] | 69 | 2019-09-06T12:03:19.000Z | 2022-03-26T14:30:53.000Z | uni_ticket/migrations/0001_initial.py | biotech2021/uniTicket | 8c441eac18e67a983e158326b1c4b82f00f1f1ef | [
"Apache-2.0"
] | 13 | 2019-09-11T10:54:20.000Z | 2021-11-23T09:09:19.000Z | # Generated by Django 2.1.7 on 2019-04-04 12:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('organizational_area', '0017_organizationalstructure_slug'),
mig... | 53.750943 | 713 | 0.582982 | 1,308 | 14,244 | 6.186544 | 0.163609 | 0.054375 | 0.044983 | 0.070687 | 0.602447 | 0.563767 | 0.511369 | 0.485418 | 0.474419 | 0.453164 | 0 | 0.007749 | 0.275204 | 14,244 | 264 | 714 | 53.954545 | 0.776056 | 0.003159 | 0 | 0.513619 | 1 | 0.003891 | 0.239276 | 0.041206 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011673 | 0 | 0.027237 | 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 |
3a26a3c6be42741ef5f1bdf670939b37671499bb | 547 | py | Python | books/migrations/0002_auto_20200518_1636.py | JorgeluissilvaC/intellinext_books | 0495744920dac6ee98c7ad024f8d8f85d0838238 | [
"MIT"
] | null | null | null | books/migrations/0002_auto_20200518_1636.py | JorgeluissilvaC/intellinext_books | 0495744920dac6ee98c7ad024f8d8f85d0838238 | [
"MIT"
] | null | null | null | books/migrations/0002_auto_20200518_1636.py | JorgeluissilvaC/intellinext_books | 0495744920dac6ee98c7ad024f8d8f85d0838238 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-05-18 21:36
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('books', '0001_initial'),
]
operations = [
... | 24.863636 | 122 | 0.645338 | 65 | 547 | 5.292308 | 0.692308 | 0.069767 | 0.081395 | 0.127907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052133 | 0.228519 | 547 | 21 | 123 | 26.047619 | 0.763033 | 0.126143 | 0 | 0 | 1 | 0 | 0.090526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a328bda03f529d92fa1c790651cd4083a64c3f3 | 2,657 | py | Python | tests/lib/io/test_marshall.py | yukgu/covid-model-seiir-pipeline | 3433034d3f089938e7993b6321d570365bdf62db | [
"BSD-3-Clause"
] | 23 | 2020-05-25T00:20:32.000Z | 2022-01-18T10:32:09.000Z | tests/lib/io/test_marshall.py | yukgu/covid-model-seiir-pipeline | 3433034d3f089938e7993b6321d570365bdf62db | [
"BSD-3-Clause"
] | 15 | 2020-06-15T16:34:22.000Z | 2021-08-15T22:11:37.000Z | tests/lib/io/test_marshall.py | yukgu/covid-model-seiir-pipeline | 3433034d3f089938e7993b6321d570365bdf62db | [
"BSD-3-Clause"
] | 11 | 2020-05-24T21:57:29.000Z | 2021-09-07T18:21:15.000Z | import pandas
import pytest
from covid_model_seiir_pipeline.lib.io import RegressionRoot
from covid_model_seiir_pipeline.lib.io.marshall import (
CSVMarshall,
ParquetMarshall,
)
class MarshallInterfaceTests:
"""
Mixin class for testing the marshall interface.
"""
def test_parameters_marshall... | 37.422535 | 105 | 0.694016 | 289 | 2,657 | 6.148789 | 0.266436 | 0.126055 | 0.111424 | 0.073157 | 0.526168 | 0.398424 | 0.398424 | 0.362409 | 0.362409 | 0.300506 | 0 | 0.001955 | 0.229959 | 2,657 | 70 | 106 | 37.957143 | 0.866569 | 0.078284 | 0 | 0.36 | 0 | 0 | 0.077872 | 0 | 0 | 0 | 0 | 0 | 0.22 | 1 | 0.22 | false | 0 | 0.08 | 0.08 | 0.44 | 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 |
3a3466847842fadedb0751fe60c731009684a618 | 727 | py | Python | bot/commands/settings.py | mercdev-corp/repsoter | 5ab98e84556143d4688ae5497443916fa63431b0 | [
"MIT"
] | 2 | 2020-10-26T09:26:13.000Z | 2022-03-22T18:10:01.000Z | bot/commands/settings.py | mercdev-corp/repsoter | 5ab98e84556143d4688ae5497443916fa63431b0 | [
"MIT"
] | null | null | null | bot/commands/settings.py | mercdev-corp/repsoter | 5ab98e84556143d4688ae5497443916fa63431b0 | [
"MIT"
] | 2 | 2020-02-11T08:11:19.000Z | 2022-03-20T18:16:41.000Z | from telegram import Update
from telegram.ext import CallbackContext, CommandHandler
from bot.settings import settings
from bot.utils import get_log
from ._utils import require_owner
log = get_log(__name__)
@require_owner
def command(update: Update, context: CallbackContext):
log.debug('Taken command `setting... | 30.291667 | 80 | 0.621733 | 86 | 727 | 5.069767 | 0.453488 | 0.013761 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283356 | 727 | 23 | 81 | 31.608696 | 0.836852 | 0 | 0 | 0 | 0 | 0 | 0.270977 | 0.103164 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 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 |
3a351e34d111e613d1ab5005378d1998b8366f78 | 982 | bzl | Python | internal/run.bzl | kennethzfeng/rules_nomad | b5c000b3c860157917f2af0eebc689ea8c2f796d | [
"MIT"
] | null | null | null | internal/run.bzl | kennethzfeng/rules_nomad | b5c000b3c860157917f2af0eebc689ea8c2f796d | [
"MIT"
] | null | null | null | internal/run.bzl | kennethzfeng/rules_nomad | b5c000b3c860157917f2af0eebc689ea8c2f796d | [
"MIT"
] | null | null | null | # Rule nomad_run generates a runner script to execute nomad run with the given
# job file.
#
# NOTE(kfeng): This rule currently assumes that the nomad executable is
# installed on the host machine, and is in one of the directories listed in
# the PATH environment variable. In the future, this project may fetch
# the n... | 28.057143 | 78 | 0.657841 | 126 | 982 | 5.055556 | 0.52381 | 0.050235 | 0.056515 | 0.050235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255601 | 982 | 34 | 79 | 28.882353 | 0.871409 | 0.395112 | 0 | 0 | 1 | 0 | 0.034188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a35e243be4e6577ec779fc127c120ca3ef47d2e | 741 | py | Python | twitter/test_api.py | jsnowacki/aws-cdk-twitter-sentiment | 364291cf5976cf13eb277cd2945a324b048b1df9 | [
"MIT"
] | null | null | null | twitter/test_api.py | jsnowacki/aws-cdk-twitter-sentiment | 364291cf5976cf13eb277cd2945a324b048b1df9 | [
"MIT"
] | null | null | null | twitter/test_api.py | jsnowacki/aws-cdk-twitter-sentiment | 364291cf5976cf13eb277cd2945a324b048b1df9 | [
"MIT"
] | null | null | null | from api import get_secret, get_tweepy_api, TwitterApiSecret
import json
SECRET_NAME = "TwitterAPIKeys"
def test_get_secret():
secret = get_secret(SECRET_NAME)
assert secret is not None
assert type(secret) is TwitterApiSecret
assert len(secret.access_token) > 0
assert len(secret.access_token_secre... | 30.875 | 60 | 0.727395 | 110 | 741 | 4.654545 | 0.318182 | 0.105469 | 0.117188 | 0.09375 | 0.378906 | 0.105469 | 0 | 0 | 0 | 0 | 0 | 0.010067 | 0.195682 | 741 | 23 | 61 | 32.217391 | 0.848993 | 0 | 0 | 0.2 | 0 | 0 | 0.02969 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a387d0d5be89499283e51eedf3d994a0ac9cdc2 | 4,850 | py | Python | SearchService/query_converter.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 790 | 2015-01-03T02:13:39.000Z | 2020-05-10T19:53:57.000Z | SearchService/query_converter.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 1,361 | 2015-01-08T23:09:40.000Z | 2020-04-14T00:03:04.000Z | SearchService/query_converter.py | loftwah/appscale | 586fc1347ebc743d7a632de698f4dbfb09ae38d6 | [
"Apache-2.0"
] | 155 | 2015-01-08T22:59:31.000Z | 2020-04-08T08:01:53.000Z | """ Code for turning a GAE Search query into a SOLR query. """
import logging
import sys
from constants import INDEX_NAME_FIELD, INDEX_LOCALE_FIELD
from appscale.common.unpackaged import APPSCALE_PYTHON_APPSERVER
sys.path.append(APPSCALE_PYTHON_APPSERVER)
from google.appengine.api.search import query_parser
from goo... | 33.680556 | 80 | 0.703711 | 652 | 4,850 | 5.032209 | 0.260736 | 0.046632 | 0.03566 | 0.024383 | 0.250229 | 0.206949 | 0.126181 | 0.064614 | 0.064614 | 0.064614 | 0 | 0.00076 | 0.186186 | 4,850 | 143 | 81 | 33.916084 | 0.830504 | 0.307629 | 0 | 0.102564 | 0 | 0 | 0.06413 | 0 | 0 | 0 | 0 | 0.020979 | 0 | 1 | 0.051282 | false | 0.012821 | 0.076923 | 0 | 0.25641 | 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 |
3a3c0a988b2a4e559c53ae9edf07f389f8af9b71 | 774 | py | Python | texture_dat_vulnerability/texture_gen.py | krystalgamer/spidey-tools | 59648b5305e829718c22ec8fd91c795f7551d89d | [
"MIT"
] | 15 | 2017-07-04T20:27:43.000Z | 2022-03-21T21:30:55.000Z | texture_dat_vulnerability/texture_gen.py | krystalgamer/spidey-tools | 59648b5305e829718c22ec8fd91c795f7551d89d | [
"MIT"
] | 7 | 2017-12-04T11:13:07.000Z | 2020-07-27T18:42:23.000Z | texture_dat_vulnerability/texture_gen.py | krystalgamer/spidey-tools | 59648b5305e829718c22ec8fd91c795f7551d89d | [
"MIT"
] | 5 | 2018-08-21T17:02:22.000Z | 2022-03-21T21:18:46.000Z | byt = open("xor_key.bin", "rb").read()
final = "\x00\x00\x00\x00\x6A\x00\x6A\x00\x68".encode()
final = [e for e in final]
final.append(0x26)
final.append(0xFC)
final.append(0x19)
final.append(0x00)
final.append(0x6A)
final.append(0x00)
final = [e for e in final]
final.append(0xB8)
final.append(0xC8)
final.append(0x59)
... | 20.368421 | 55 | 0.706718 | 130 | 774 | 4.176923 | 0.392308 | 0.384899 | 0.110497 | 0.14733 | 0.346225 | 0.287293 | 0.287293 | 0.287293 | 0.184162 | 0.184162 | 0 | 0.105572 | 0.118863 | 774 | 37 | 56 | 20.918919 | 0.690616 | 0 | 0 | 0.322581 | 0 | 0 | 0.108527 | 0.046512 | 0 | 0 | 0.105943 | 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 |
3a3fde2cf2ecbd1e9eca3699e4a52186eb8eddb3 | 781 | py | Python | gazepattern/eyedetector/migrations/0005_experiment.py | AriRodriguezCruz/mcfgpr | c6f83f8e68bbab0054a7ea337feab276fc0790fc | [
"MIT"
] | null | null | null | gazepattern/eyedetector/migrations/0005_experiment.py | AriRodriguezCruz/mcfgpr | c6f83f8e68bbab0054a7ea337feab276fc0790fc | [
"MIT"
] | 12 | 2020-06-05T22:56:39.000Z | 2022-02-10T10:35:13.000Z | gazepattern/eyedetector/migrations/0005_experiment.py | AriRodriguezCruz/mcfgpr | c6f83f8e68bbab0054a7ea337feab276fc0790fc | [
"MIT"
] | 1 | 2019-10-06T23:40:45.000Z | 2019-10-06T23:40:45.000Z | # Generated by Django 2.2.5 on 2019-09-28 19:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('eyedetector', '0004_xypupilframe'),
]
operations = [
migrations.CreateModel(
name='Experiment',... | 32.541667 | 142 | 0.618438 | 83 | 781 | 5.722892 | 0.638554 | 0.050526 | 0.058947 | 0.092632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040747 | 0.245839 | 781 | 23 | 143 | 33.956522 | 0.765705 | 0.057618 | 0 | 0 | 1 | 0 | 0.122616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a4470dbdf1585da275d005ec538924932b37f02 | 2,726 | py | Python | server/tests/test_api.py | lachierussell/FadZmaq | deb89c35df05603552ce95627ac8400c6788fbcb | [
"BSD-2-Clause"
] | 2 | 2019-09-02T06:56:46.000Z | 2019-09-15T08:43:54.000Z | server/tests/test_api.py | lachierussell/FadZmaq | deb89c35df05603552ce95627ac8400c6788fbcb | [
"BSD-2-Clause"
] | 11 | 2019-08-27T19:08:24.000Z | 2019-10-18T01:45:54.000Z | server/tests/test_api.py | lachierussell/FadZmaq | deb89c35df05603552ce95627ac8400c6788fbcb | [
"BSD-2-Clause"
] | 1 | 2019-10-25T05:42:48.000Z | 2019-10-25T05:42:48.000Z | # @file
#
# FadZmaq Project
# Professional Computing. Semester 2 2019
#
# Copyright FadZmaq © 2019 All rights reserved.
# @author Lachlan Russell 22414249@student.uwa.edu.au
# @author Jordan Russell jordanrussell@live.com
import json
# Tests that the server is up at all.
def test_index(client):
... | 29.311828 | 106 | 0.739178 | 347 | 2,726 | 5.651297 | 0.302594 | 0.042835 | 0.122387 | 0.146864 | 0.534421 | 0.491076 | 0.431413 | 0.374809 | 0.304437 | 0.201428 | 0 | 0.080475 | 0.165811 | 2,726 | 92 | 107 | 29.630435 | 0.781442 | 0.275862 | 0 | 0.219512 | 0 | 0 | 0.162398 | 0.134221 | 0 | 0 | 0 | 0 | 0.341463 | 1 | 0.292683 | false | 0.04878 | 0.02439 | 0 | 0.317073 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a459c0bdc8968f8dba096a55ee2a81baf847594 | 1,510 | py | Python | examples/example.py | TannerBurns/cloc | 67753bc6148779db7a2bfb07e4410f12fa3de593 | [
"MIT"
] | 2 | 2020-03-04T14:15:07.000Z | 2020-03-06T19:32:42.000Z | examples/example.py | TannerBurns/cloc | 67753bc6148779db7a2bfb07e4410f12fa3de593 | [
"MIT"
] | null | null | null | examples/example.py | TannerBurns/cloc | 67753bc6148779db7a2bfb07e4410f12fa3de593 | [
"MIT"
] | null | null | null | from cloc import grp, cmd, opt, arg, mixins
from cloc.types import Choices
"""Test Code ->"""
@grp('cli')
def cli():
"""cli docstring"""
pass
@grp('nested')
def group2():
"""group 2"""
pass
@grp('permissions')
def permission_group():
pass
@cmd('test')
@arg('arg1', type=int, help='positional ar... | 22.878788 | 93 | 0.63245 | 195 | 1,510 | 4.753846 | 0.425641 | 0.064725 | 0.05178 | 0.04315 | 0.12945 | 0.12945 | 0.12945 | 0.12945 | 0.12945 | 0.12945 | 0 | 0.018776 | 0.188742 | 1,510 | 66 | 94 | 22.878788 | 0.737959 | 0.090728 | 0 | 0.219512 | 0 | 0 | 0.13544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0.073171 | 0.04878 | 0 | 0.268293 | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a54d4dcf4ae3d1438f9199425e3106b7a85632f | 147 | py | Python | src/Python/Turtle/06B-circle.py | programmer1017/MathTech | 5d7a9692d77a4a379824f691ae1cba3b0d2d4d59 | [
"MIT"
] | null | null | null | src/Python/Turtle/06B-circle.py | programmer1017/MathTech | 5d7a9692d77a4a379824f691ae1cba3b0d2d4d59 | [
"MIT"
] | null | null | null | src/Python/Turtle/06B-circle.py | programmer1017/MathTech | 5d7a9692d77a4a379824f691ae1cba3b0d2d4d59 | [
"MIT"
] | null | null | null | import turtle as t
n = 50
t. bgcolor("black")
t. color("green")
t. speed(0)
for x in range(n):
t. circle(80)
t. lt(360/n)
| 12.25 | 24 | 0.52381 | 27 | 147 | 2.851852 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 0.312925 | 147 | 11 | 25 | 13.363636 | 0.683168 | 0 | 0 | 0 | 0 | 0 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a57cee2694fd1a4cdb5bf89b458ec74fa621810 | 403 | py | Python | 01Numpy/np_project.py | HuangCongQing/python-libraries | 73f48e39d8d485ffdaee30443357a3fccce65d11 | [
"MIT"
] | null | null | null | 01Numpy/np_project.py | HuangCongQing/python-libraries | 73f48e39d8d485ffdaee30443357a3fccce65d11 | [
"MIT"
] | 1 | 2019-03-09T12:28:09.000Z | 2019-03-09T12:42:35.000Z | 01Numpy/np_project.py | HuangCongQing/python-libraries | 73f48e39d8d485ffdaee30443357a3fccce65d11 | [
"MIT"
] | 2 | 2020-01-23T17:47:45.000Z | 2021-09-27T01:24:42.000Z | '''
Description: numpy项目相关
Author: HCQ
Company(School): UCAS
Email: 1756260160@qq.com
Date: 2021-04-25 19:49:38
LastEditTime: 2021-04-25 19:57:55
FilePath: /python-libraries/01Numpy/np_project.py
'''
import numpy as np
# 通过下标列表获取np数据
# A = [[ 3 4 5 6]
# [ 7 8 9 10]
# [11 12 13 14]]
A = np.arange(3,15).reshape((... | 20.15 | 49 | 0.645161 | 73 | 403 | 3.547945 | 0.712329 | 0.046332 | 0.061776 | 0.07722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21021 | 0.173697 | 403 | 20 | 50 | 20.15 | 0.567568 | 0.682382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 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 |
28a4cf21a3fc1317aad1717922e9f9686f1d9232 | 409 | py | Python | Dataset/Leetcode/train/14/127.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/14/127.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/14/127.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, strs: List[str]) -> str:
if not strs: return ''
s_min, s_max = min(strs), max(strs)
for i, c in enumerate(s_min):
if c != s_max[i]:
return s_min[:i]
return s_min
undefined
for (i = 0; i < document.getElementsByTagName("code"... | 31.461538 | 139 | 0.574572 | 57 | 409 | 4.017544 | 0.491228 | 0.069869 | 0.131004 | 0.09607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.278729 | 409 | 12 | 140 | 34.083333 | 0.772881 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28a787c32c92bd4df60cb4b529054c0e8dbc1dcb | 4,156 | py | Python | Competitive Programming/Design Patterns/Behavioural/Command.py | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | Competitive Programming/Design Patterns/Behavioural/Command.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | Competitive Programming/Design Patterns/Behavioural/Command.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | '''
https://www.geeksforgeeks.org/command-method-python-design-patterns/
Command Method is Behavioral Design Pattern that encapsulates a request as an object, thereby allowing for the parameterization of clients with different requests and the queuing or logging of requests. Parameterizing other objects with different ... | 39.580952 | 569 | 0.762512 | 602 | 4,156 | 5.250831 | 0.362126 | 0.045239 | 0.020247 | 0.007593 | 0.09807 | 0.079089 | 0.079089 | 0.079089 | 0.079089 | 0.052515 | 0 | 0.000292 | 0.176612 | 4,156 | 104 | 570 | 39.961538 | 0.920514 | 0.410972 | 0 | 0.24 | 0 | 0 | 0.047254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0.04 | 0.04 | 0 | 0.48 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
28af15da48e1b6752e688cda3c6f51c968c30322 | 285 | py | Python | routes/routes.py | GDGVIT/MyFFCS2.0 | 685bb7b61c3435dfc1e76ee34d3c234d8973b31a | [
"Apache-2.0"
] | 6 | 2016-07-01T15:23:48.000Z | 2017-04-29T10:44:01.000Z | routes/routes.py | GDGVIT/MyFFCS2.0 | 685bb7b61c3435dfc1e76ee34d3c234d8973b31a | [
"Apache-2.0"
] | null | null | null | routes/routes.py | GDGVIT/MyFFCS2.0 | 685bb7b61c3435dfc1e76ee34d3c234d8973b31a | [
"Apache-2.0"
] | 3 | 2016-07-03T02:47:12.000Z | 2020-06-30T12:40:47.000Z |
from controllers import *
route = [
(
r"/",
home.homeHandler
),
(
r"/auth/register",
auth.registerHandler
),
(
r"/logout",
logout.logoutHandler
),
(
r"/home",
timetable.timeTableHandler
),
(
r"/auth/login",
auth.loginHandler
)
]
| 11.4 | 29 | 0.547368 | 25 | 285 | 6.24 | 0.64 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294737 | 285 | 25 | 30 | 11.4 | 0.776119 | 0 | 0 | 0.173913 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28af329ba68cee9eb582dc06cead32af4b80ed8d | 1,935 | py | Python | tests/tests.py | csirac2/keepass_guesser | 922c6972a6577140cd327a15543fe49dd70611cb | [
"BSD-2-Clause"
] | null | null | null | tests/tests.py | csirac2/keepass_guesser | 922c6972a6577140cd327a15543fe49dd70611cb | [
"BSD-2-Clause"
] | null | null | null | tests/tests.py | csirac2/keepass_guesser | 922c6972a6577140cd327a15543fe49dd70611cb | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
import libkeepass
import keepass_guesser
# file : attempts from file expected before success or failure
guess_files = {'tests/data/guesslist0': {'attempts': 3, 'guessphrase': None},
'tests/data/guesslist1': {'attempts': 1, 'guessphrase': 'test'},
't... | 41.170213 | 79 | 0.612403 | 233 | 1,935 | 4.875536 | 0.317597 | 0.067782 | 0.052817 | 0.073944 | 0.191021 | 0.154049 | 0.154049 | 0.154049 | 0.12588 | 0 | 0 | 0.00911 | 0.262532 | 1,935 | 46 | 80 | 42.065217 | 0.786966 | 0.109561 | 0 | 0.15625 | 0 | 0 | 0.182405 | 0.079179 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0.15625 | 0.09375 | 0 | 0.28125 | 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 |
28bc71174a0ebb7a7a5aaf7b6164a30526e4ee50 | 2,204 | py | Python | delLotsOfObjects.py | microtodd/setAllS3ACLs | 5ddbde173a84d5fcc6d9a6146e9acbc5af057c1f | [
"MIT"
] | null | null | null | delLotsOfObjects.py | microtodd/setAllS3ACLs | 5ddbde173a84d5fcc6d9a6146e9acbc5af057c1f | [
"MIT"
] | null | null | null | delLotsOfObjects.py | microtodd/setAllS3ACLs | 5ddbde173a84d5fcc6d9a6146e9acbc5af057c1f | [
"MIT"
] | null | null | null | import boto3
import sys
import getopt
import datetime
import pytz
# Globals
BucketName = ''
FolderName = ''
HowManyDays = None
ProfileName = 'default'
Env = 'us-east-1'
Delete = False
# Parse CL opts
opts, args = getopt.getopt(sys.argv[1:],'he:b:p:f:k:d')
for opt, arg in opts:
if opt == '-h':
print '-b bu... | 28.623377 | 138 | 0.624773 | 276 | 2,204 | 4.963768 | 0.322464 | 0.025547 | 0.029197 | 0.040146 | 0.246715 | 0.213139 | 0.213139 | 0.159124 | 0.159124 | 0.067153 | 0 | 0.012658 | 0.247278 | 2,204 | 76 | 139 | 29 | 0.81314 | 0.030853 | 0 | 0.166667 | 0 | 0 | 0.153449 | 0.009855 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075758 | null | null | 0.212121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
28c1381713a165eb6c2b66d9b1f077cea5ce1674 | 5,038 | py | Python | ppf/core/swap_rate.py | iamaris/ppf | 60f798eaea69e7dec2b8c422ceb684219b1645d0 | [
"MIT"
] | 2 | 2019-10-26T17:18:41.000Z | 2020-06-05T11:26:10.000Z | ppf/core/swap_rate.py | iamaris/ppf | 60f798eaea69e7dec2b8c422ceb684219b1645d0 | [
"MIT"
] | null | null | null | ppf/core/swap_rate.py | iamaris/ppf | 60f798eaea69e7dec2b8c422ceb684219b1645d0 | [
"MIT"
] | 5 | 2019-01-24T16:44:07.000Z | 2020-09-14T06:56:55.000Z | from fixing import *
from observable import *
from generate_flows import *
from generate_observables import *
class swap_rate(observable):
def __init__(self
, attributes
, flow_id
, reset_id
, reset_date
, reset_ccy
, proj_start_date
... | 38.458015 | 76 | 0.604803 | 565 | 5,038 | 4.927434 | 0.129204 | 0.075431 | 0.061063 | 0.024425 | 0.347701 | 0.242098 | 0.126437 | 0.106322 | 0.08046 | 0.043822 | 0 | 0.006062 | 0.312426 | 5,038 | 130 | 77 | 38.753846 | 0.797633 | 0 | 0 | 0.213675 | 1 | 0 | 0.057563 | 0.037118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.042735 | 0.059829 | 0.17094 | 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 |
28cbc58a1aa42e45e73582d7c19d2ec790080407 | 3,928 | py | Python | brigadier/tree/__init__.py | Boundarybreaker/BrigadierPy | 4c8ded97dd2974fa168c805fc746807407fa1c38 | [
"MIT"
] | null | null | null | brigadier/tree/__init__.py | Boundarybreaker/BrigadierPy | 4c8ded97dd2974fa168c805fc746807407fa1c38 | [
"MIT"
] | null | null | null | brigadier/tree/__init__.py | Boundarybreaker/BrigadierPy | 4c8ded97dd2974fa168c805fc746807407fa1c38 | [
"MIT"
] | null | null | null | import collections
from abc import ABC, abstractmethod
from typing import TypeVar, Generic, Callable, OrderedDict, Collection, Any
from brigadier import Command, RedirectModifier
S = TypeVar('S')
# the class ouroboros keeps growing
class CommandNode(ABC, Generic[S]):
@abstractmethod
def is_valid_input(self,... | 29.757576 | 113 | 0.648676 | 417 | 3,928 | 6.040767 | 0.278177 | 0.094482 | 0.063517 | 0.064311 | 0.434299 | 0.389043 | 0.389043 | 0.389043 | 0.389043 | 0.389043 | 0 | 0 | 0.261711 | 3,928 | 131 | 114 | 29.984733 | 0.868621 | 0.05499 | 0 | 0.552083 | 0 | 0 | 0.017534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.197917 | false | 0.03125 | 0.041667 | 0.177083 | 0.489583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
28d2513f8b811b8fd50ff29cd0b2450c9b6fa225 | 803 | py | Python | library/source2/resource_types/__init__.py | anderlli0053/SourceIO | 3c0c4839939ce698439987ac52154f89ee2f5341 | [
"MIT"
] | 199 | 2019-04-02T02:30:58.000Z | 2022-03-30T21:29:49.000Z | library/source2/resource_types/__init__.py | anderlli0053/SourceIO | 3c0c4839939ce698439987ac52154f89ee2f5341 | [
"MIT"
] | 113 | 2019-03-03T19:36:25.000Z | 2022-03-31T19:44:05.000Z | library/source2/resource_types/__init__.py | anderlli0053/SourceIO | 3c0c4839939ce698439987ac52154f89ee2f5341 | [
"MIT"
] | 38 | 2019-05-15T16:49:30.000Z | 2022-03-22T03:40:43.000Z | from .resource import ValveCompiledResource
from .vphys import ValveCompiledPhysics
from .vmat import ValveCompiledMaterial
from .vtex import ValveCompiledTexture
from .vmdl import ValveCompiledModel
from .vwrld import ValveCompiledWorld
from .vmorf import ValveCompiledMorph
from .vrman import ValveCompiledResourceMani... | 30.884615 | 48 | 0.739726 | 79 | 803 | 7.392405 | 0.35443 | 0.071918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199253 | 803 | 25 | 49 | 32.12 | 0.908243 | 0 | 0 | 0 | 0 | 0 | 0.05604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
28d612bac84eab26893b70db1398bf2faa634b82 | 300 | py | Python | keepassxc_pwned/__main__.py | opensource-assist/keepassxc-pwned | 8e1ca6d04530d1e87afc0b8aea557d07884b1ad1 | [
"MIT"
] | null | null | null | keepassxc_pwned/__main__.py | opensource-assist/keepassxc-pwned | 8e1ca6d04530d1e87afc0b8aea557d07884b1ad1 | [
"MIT"
] | null | null | null | keepassxc_pwned/__main__.py | opensource-assist/keepassxc-pwned | 8e1ca6d04530d1e87afc0b8aea557d07884b1ad1 | [
"MIT"
] | null | null | null | import sys
import getpass
from keepassxc_pwned import check_password
pw = getpass.getpass("Password to check: ")
count = check_password(pw)
if count > 0:
print("Found password {} times!".format(count))
sys.exit(1)
else:
print("Could not find that password in the dataset.")
sys.exit(0)
| 21.428571 | 57 | 0.72 | 45 | 300 | 4.733333 | 0.6 | 0.122066 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012 | 0.166667 | 300 | 13 | 58 | 23.076923 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0.29 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.545455 | 0.272727 | 0 | 0.272727 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
28d8e96dd3ba837f361c08332c0bfcd7c2fa4933 | 9,318 | py | Python | scale/job/test/configuration/results/test_results_manifest.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 121 | 2015-11-18T18:15:33.000Z | 2022-03-10T01:55:00.000Z | scale/job/test/configuration/results/test_results_manifest.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 1,415 | 2015-12-23T23:36:04.000Z | 2022-01-07T14:10:09.000Z | scale/job/test/configuration/results/test_results_manifest.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 66 | 2015-12-03T20:38:56.000Z | 2020-07-27T15:28:11.000Z | from __future__ import unicode_literals
import django
from django.test import TestCase
from job.configuration.results.results_manifest.results_manifest import ResultsManifest
from job.configuration.results.exceptions import InvalidResultsManifest, \
MissingRequiredOutput
class TestResultsManifestConstructor... | 33.76087 | 131 | 0.434643 | 811 | 9,318 | 4.796547 | 0.147965 | 0.077121 | 0.033933 | 0.059126 | 0.689974 | 0.667866 | 0.659126 | 0.642416 | 0.633676 | 0.624165 | 0 | 0.060477 | 0.44634 | 9,318 | 275 | 132 | 33.883636 | 0.693545 | 0.02801 | 0 | 0.58871 | 0 | 0 | 0.219976 | 0.060435 | 0 | 0 | 0 | 0 | 0.004032 | 1 | 0.048387 | false | 0.012097 | 0.020161 | 0 | 0.080645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28d92445b0cef22e1b65fac68f9bba5d2c945b7b | 30,543 | py | Python | keepercommander/commands/connect.py | Keeper-Security/commander | 93fee5d2ba56f2288e00ab33003597d00a302b5c | [
"MIT"
] | null | null | null | keepercommander/commands/connect.py | Keeper-Security/commander | 93fee5d2ba56f2288e00ab33003597d00a302b5c | [
"MIT"
] | null | null | null | keepercommander/commands/connect.py | Keeper-Security/commander | 93fee5d2ba56f2288e00ab33003597d00a302b5c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# _ __
# | |/ /___ ___ _ __ ___ _ _ ®
# | ' </ -_) -_) '_ \/ -_) '_|
# |_|\_\___\___| .__/\___|_|
# |_|
#
# Keeper Commander
# Copyright 2022 Keeper Security Inc.
# Contact: ops@keepersecurity.com
#
from typing import Optional, Callable, Iterator, List, Iterable, Tuple
import a... | 41.668486 | 160 | 0.572013 | 3,242 | 30,543 | 5.226095 | 0.114436 | 0.007673 | 0.007968 | 0.010624 | 0.416986 | 0.347636 | 0.29853 | 0.271676 | 0.242224 | 0.219914 | 0 | 0.003574 | 0.322169 | 30,543 | 732 | 161 | 41.72541 | 0.814761 | 0.029008 | 0 | 0.360522 | 0 | 0.004894 | 0.168157 | 0.017012 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058728 | false | 0.06199 | 0.029364 | 0.009788 | 0.181077 | 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 |
28da8ef8af9fbbd020d4fff7f7abff3149cb8fd6 | 855 | py | Python | mpcorbget/__main__.py | davenporta/mpcorbget | 0ccd3cdeb07ed2b7a4256ed643afff2b3756391c | [
"MIT"
] | 4 | 2017-06-14T18:33:16.000Z | 2021-01-15T06:07:19.000Z | build/lib/mpcorbget/__main__.py | davenporta/mpcorbget | 0ccd3cdeb07ed2b7a4256ed643afff2b3756391c | [
"MIT"
] | null | null | null | build/lib/mpcorbget/__main__.py | davenporta/mpcorbget | 0ccd3cdeb07ed2b7a4256ed643afff2b3756391c | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import with_statement
from builtins import input
import mpcorbget as mpc
def main():
"""Handy dandy quick ephemeris tool"""
print("QuickEphem v1.1... | 32.884615 | 101 | 0.643275 | 93 | 855 | 5.569892 | 0.537634 | 0.096525 | 0.15444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002789 | 0.161404 | 855 | 25 | 102 | 34.2 | 0.719665 | 0.037427 | 0 | 0 | 0 | 0 | 0.255814 | 0.126071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.363636 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
28def3f05e8e5eae41643f72829ac55886b52a21 | 1,663 | py | Python | libs/template.py | TheCherry/hsdetect | ed19570e706a8bcdf5b23d7cdefd6b746de3dc3b | [
"MIT"
] | 2 | 2017-10-10T22:11:28.000Z | 2018-01-02T06:03:21.000Z | libs/template.py | TheCherry/hsdetect | ed19570e706a8bcdf5b23d7cdefd6b746de3dc3b | [
"MIT"
] | null | null | null | libs/template.py | TheCherry/hsdetect | ed19570e706a8bcdf5b23d7cdefd6b746de3dc3b | [
"MIT"
] | null | null | null | import xml.etree.ElementTree as ET
class Template:
def __init__(self, image, default_xml):
self.tree = ET.parse(default_xml)
self.root = self.tree.getroot()
self.image = image
def add_template_objects(self, xml, **kargs):
tree = ET.parse(xml)
root = tree.getroot()
... | 36.955556 | 115 | 0.660854 | 214 | 1,663 | 4.911215 | 0.303738 | 0.062797 | 0.102759 | 0.09039 | 0.287345 | 0.249286 | 0.249286 | 0.119886 | 0.119886 | 0.119886 | 0 | 0.00687 | 0.212267 | 1,663 | 44 | 116 | 37.795455 | 0.79542 | 0.01804 | 0 | 0.058824 | 0 | 0 | 0.167485 | 0.139264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0.058824 | 0.029412 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
28e285aab7ef8a74b888a3ac19489992fbb16f62 | 619 | py | Python | bgp/migrations/0004_auto_20190409_0403.py | lkmhaqer/gtools-python | cff6d80525b78a4fadfb686566489fbe1687d889 | [
"MIT"
] | 5 | 2016-10-31T17:46:17.000Z | 2022-02-02T00:40:49.000Z | bgp/migrations/0004_auto_20190409_0403.py | lkmhaqer/gtools-python | cff6d80525b78a4fadfb686566489fbe1687d889 | [
"MIT"
] | 33 | 2018-05-09T06:07:50.000Z | 2021-09-22T17:39:56.000Z | bgp/migrations/0004_auto_20190409_0403.py | lkmhaqer/gtools-python | cff6d80525b78a4fadfb686566489fbe1687d889 | [
"MIT"
] | 1 | 2020-05-14T21:44:25.000Z | 2020-05-14T21:44:25.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2019-04-09 04:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('netdevice', '0006_auto_20190409_0325'),
('bgp', '0003_auto_20190328_0332'),
]
... | 23.807692 | 50 | 0.58643 | 63 | 619 | 5.52381 | 0.761905 | 0.04023 | 0.057471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112613 | 0.282714 | 619 | 25 | 51 | 24.76 | 0.671171 | 0.11147 | 0 | 0.111111 | 1 | 0 | 0.14808 | 0.084095 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
28e59b00785686bf73bdc0a0356ac252f3fe15d2 | 2,195 | py | Python | install.py | Schroedingberg/Schroedingberg.github.io | 807990ee1605c4d6c4ca1610d60085bdd48849b5 | [
"MIT"
] | null | null | null | install.py | Schroedingberg/Schroedingberg.github.io | 807990ee1605c4d6c4ca1610d60085bdd48849b5 | [
"MIT"
] | null | null | null | install.py | Schroedingberg/Schroedingberg.github.io | 807990ee1605c4d6c4ca1610d60085bdd48849b5 | [
"MIT"
] | null | null | null | import sys
import os
import subprocess as proc
import distutils.spawn as which
version = sys.version[:3]
activate_env_path = os.path.join("env", "bin", "activate_this.py")
activate_env = activate_env_path
opts = {}
def has_colours(stream):
if not hasattr(stream, "isatty"):
return False
if not stream.isatty():... | 25.823529 | 71 | 0.638269 | 291 | 2,195 | 4.694158 | 0.398625 | 0.095168 | 0.076867 | 0.065886 | 0.125183 | 0.040996 | 0.040996 | 0 | 0 | 0 | 0 | 0.01522 | 0.1918 | 2,195 | 84 | 72 | 26.130952 | 0.754791 | 0 | 0 | 0.152778 | 0 | 0 | 0.267882 | 0.012301 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069444 | null | null | 0.194444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
28e617d3fa4c248d444bbe5bd303b5bff8eeccf3 | 2,031 | py | Python | urpc/storage/oldxi/doxygen.py | EPC-MSU/uRPC | cd3c386a8320542052834ca28791a3ea2b57c54f | [
"CC0-1.0"
] | 1 | 2022-03-11T04:29:53.000Z | 2022-03-11T04:29:53.000Z | urpc/storage/oldxi/doxygen.py | EPC-MSU/uRPC | cd3c386a8320542052834ca28791a3ea2b57c54f | [
"CC0-1.0"
] | null | null | null | urpc/storage/oldxi/doxygen.py | EPC-MSU/uRPC | cd3c386a8320542052834ca28791a3ea2b57c54f | [
"CC0-1.0"
] | 1 | 2021-06-15T21:56:26.000Z | 2021-06-15T21:56:26.000Z | # from functools import lru_cache as memoize
from collections import namedtuple
from pyparsing import Regex, SkipTo, ParseException, OneOrMore, Optional, Suppress, Empty
Language = namedtuple("Language", ["code", "text"])
# directives
# _dsee = Suppress("@see")+SkipTo(LineEnd())
# _dparam = Suppress("@param")+SkipT... | 31.246154 | 104 | 0.642541 | 251 | 2,031 | 5.027888 | 0.394422 | 0.095087 | 0.072108 | 0.040412 | 0.033281 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.180699 | 2,031 | 64 | 105 | 31.734375 | 0.750601 | 0.162974 | 0 | 0 | 0 | 0 | 0.084665 | 0.015394 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.131579 | false | 0 | 0.052632 | 0 | 0.315789 | 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 |
28e8716a746cdb6acac715e98c28629d494e1a7a | 1,720 | py | Python | Reporting/urllib2_report_data.py | hbuter-rubrik/rubrik-scripts-for-python | 0e434854b778ff0f857425173e5cb7d6b83dddec | [
"MIT"
] | 5 | 2019-10-04T18:09:24.000Z | 2020-08-25T04:46:01.000Z | Reporting/urllib2_report_data.py | hbuter-rubrik/rubrik-scripts-for-python | 0e434854b778ff0f857425173e5cb7d6b83dddec | [
"MIT"
] | 2 | 2020-01-07T18:25:11.000Z | 2021-10-14T11:48:27.000Z | Reporting/urllib2_report_data.py | hbuter-rubrik/rubrik-scripts-for-python | 0e434854b778ff0f857425173e5cb7d6b83dddec | [
"MIT"
] | 6 | 2019-04-25T10:26:30.000Z | 2021-11-18T08:20:50.000Z | import urllib2
import json
import base64
import time
import ssl
"""
define our rubrik credentials
"""
RUBRIK_IP='rubrik.demo.com'
RUBRIK_USER='admin'
RUBRIK_PASS='mypassword123!'
"""
ignore self-signed certs
"""
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
# get the repo... | 33.076923 | 123 | 0.699419 | 222 | 1,720 | 5.247748 | 0.418919 | 0.060086 | 0.033476 | 0.042918 | 0.281545 | 0.281545 | 0.281545 | 0.281545 | 0.281545 | 0.281545 | 0 | 0.015743 | 0.150581 | 1,720 | 51 | 124 | 33.72549 | 0.781656 | 0.038953 | 0 | 0.095238 | 0 | 0 | 0.203797 | 0.062658 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.119048 | 0 | 0.119048 | 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 |
28ee6695911d76e64bcea52634f3ac6a4cf51dda | 268 | py | Python | picompile/types.py | pfalcon/picompile | 7724e629e3ffc48b066c938d7f02b5f4e8276051 | [
"MIT"
] | 3 | 2020-01-28T03:54:06.000Z | 2021-02-25T14:38:50.000Z | picompile/types.py | pfalcon/picompile | 7724e629e3ffc48b066c938d7f02b5f4e8276051 | [
"MIT"
] | null | null | null | picompile/types.py | pfalcon/picompile | 7724e629e3ffc48b066c938d7f02b5f4e8276051 | [
"MIT"
] | null | null | null | "Actual (primitive) types instanitated in the type system."
import sys
from .typesys import *
class np:
# Dummy
class ndarray:
pass
int32 = TCon("Int32")
int64 = TCon("Int64")
float32 = TCon("Float")
double64 = TCon("Double")
void = TCon("Void")
| 14.105263 | 59 | 0.652985 | 34 | 268 | 5.147059 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.216418 | 268 | 18 | 60 | 14.888889 | 0.77619 | 0.238806 | 0 | 0 | 0 | 0 | 0.314176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
28f37ae0b38a0ca393af612ee52d0d305a27311a | 336 | py | Python | flag/parser.py | danielchatfield/flag | e4c2bea2a74a428b9fdf7bf350e218c8cd71fdc5 | [
"MIT"
] | 2 | 2016-06-26T22:16:08.000Z | 2020-08-15T12:20:18.000Z | flag/parser.py | danielchatfield/flag | e4c2bea2a74a428b9fdf7bf350e218c8cd71fdc5 | [
"MIT"
] | null | null | null | flag/parser.py | danielchatfield/flag | e4c2bea2a74a428b9fdf7bf350e218c8cd71fdc5 | [
"MIT"
] | 1 | 2020-08-15T12:21:12.000Z | 2020-08-15T12:21:12.000Z | # -*- coding: utf-8 -*-
"""
flag.parser
~~~~~~~~~~~
"""
import argparse
from . import registry
def parse():
parser = argparse.ArgumentParser()
for flag in registry.iter():
flag.add_to_parser(parser)
args = vars(parser.parse_args())
for flag in registry.iter():
flag.update(a... | 16 | 38 | 0.592262 | 40 | 336 | 4.9 | 0.525 | 0.071429 | 0.091837 | 0.173469 | 0.255102 | 0.255102 | 0 | 0 | 0 | 0 | 0 | 0.003891 | 0.235119 | 336 | 20 | 39 | 16.8 | 0.758755 | 0.136905 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 |
28f8e1f5d1a46da294aab0598c860ad545a8ca7d | 652 | py | Python | gds/blueprint/api/__init__.py | UniqueHK/pholcus | bf14621cf1fcd3517f2bbca7f9a7e73ee06cbf4a | [
"MIT"
] | 4 | 2015-12-15T06:06:40.000Z | 2016-06-20T07:52:06.000Z | gds/blueprint/api/__init__.py | UniqueHK/pholcus | bf14621cf1fcd3517f2bbca7f9a7e73ee06cbf4a | [
"MIT"
] | 1 | 2016-02-02T04:35:16.000Z | 2016-02-02T04:35:16.000Z | gds/blueprint/api/__init__.py | UniqueHK/pholcus | bf14621cf1fcd3517f2bbca7f9a7e73ee06cbf4a | [
"MIT"
] | 1 | 2015-07-22T12:17:08.000Z | 2015-07-22T12:17:08.000Z | #!/usr/bin/env python
# coding=utf8
import os
TOP = os.path.abspath('.')
STATIC = os.path.join(os.path.abspath('.'), 'static', 'exe')
ALLOWED_EXTENSIONS = set(['py'])
def allowed(filename):
return '.' in filename and filename.rsplit('.')[-1] in ALLOWED_EXTENSIONS
def exepath(filename):
filepath = os.path.joi... | 25.076923 | 77 | 0.673313 | 87 | 652 | 5.022989 | 0.471264 | 0.09611 | 0.06865 | 0.086957 | 0.118993 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003697 | 0.170245 | 652 | 26 | 78 | 25.076923 | 0.804067 | 0.04908 | 0 | 0.105263 | 0 | 0 | 0.025848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.052632 | 0.421053 | 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 |
28f8fe78a081d406b2ab32ded6242237cf670fed | 1,896 | py | Python | tests/refarm_redirects/test_views.py | fidals/blog | 2815b43d6724b142cc663a8cdc59d2afc9cad657 | [
"MIT"
] | 3 | 2017-05-05T12:01:54.000Z | 2018-03-06T21:33:04.000Z | tests/refarm_redirects/test_views.py | fidals/blog | 2815b43d6724b142cc663a8cdc59d2afc9cad657 | [
"MIT"
] | 172 | 2016-11-30T18:18:41.000Z | 2022-03-11T23:20:58.000Z | tests/refarm_redirects/test_views.py | fidals/blog | 2815b43d6724b142cc663a8cdc59d2afc9cad657 | [
"MIT"
] | 3 | 2017-09-25T17:11:46.000Z | 2020-04-17T09:14:43.000Z | import unittest
from django.contrib.redirects.models import Redirect
from django.contrib.sites.models import Site
from django.db.utils import IntegrityError
from django.test import TestCase
class Redirects(TestCase):
def test_redirect_from_existing_page(self):
"""`refarm-site.redirects` app should redir... | 37.176471 | 80 | 0.639241 | 243 | 1,896 | 4.876543 | 0.419753 | 0.053165 | 0.033755 | 0.065823 | 0.231224 | 0.231224 | 0.167089 | 0.11308 | 0.11308 | 0.11308 | 0 | 0.014316 | 0.263186 | 1,896 | 50 | 81 | 37.92 | 0.83393 | 0.401899 | 0 | 0.32 | 0 | 0 | 0.102493 | 0.102493 | 0 | 0 | 0 | 0.02 | 0.08 | 1 | 0.08 | false | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e90c4cbbc181386f952de337a177c966ed5084da | 1,795 | py | Python | src/aqm/run_create_views.py | layadelcarmen/aqm | ee300b0064b78d73e2020c1e50300e65a7fb727e | [
"MIT"
] | null | null | null | src/aqm/run_create_views.py | layadelcarmen/aqm | ee300b0064b78d73e2020c1e50300e65a7fb727e | [
"MIT"
] | null | null | null | src/aqm/run_create_views.py | layadelcarmen/aqm | ee300b0064b78d73e2020c1e50300e65a7fb727e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import psycopg2
def executeScriptsFromFile(filename, cursor):
'''Execute SQL create views'''
fd = open(filename, 'r')
sqlFile = fd.read()
fd.close()
sqlCommands = sqlFile.split(';')
for command in sqlCommands:
try:
print(command)
... | 31.491228 | 196 | 0.494708 | 173 | 1,795 | 4.99422 | 0.445087 | 0.0625 | 0.118056 | 0.048611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007181 | 0.379387 | 1,795 | 57 | 197 | 31.491228 | 0.768402 | 0.032869 | 0 | 0.046512 | 0 | 0 | 0.124277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.069767 | 0.046512 | 0 | 0.093023 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e90efb1a09f98ac8736cd0e451c9792361d21cef | 1,048 | py | Python | core/services/tests.py | ojengwa/reportr | ca66184e2b7f28cb3818bb5d3a931232566bff99 | [
"MIT"
] | 2 | 2015-01-26T14:43:20.000Z | 2015-02-13T10:18:44.000Z | core/services/tests.py | ojengwa/reportr | ca66184e2b7f28cb3818bb5d3a931232566bff99 | [
"MIT"
] | null | null | null | core/services/tests.py | ojengwa/reportr | ca66184e2b7f28cb3818bb5d3a931232566bff99 | [
"MIT"
] | null | null | null | from django.test import TestCase
from core.services.freckle import Freckle
from datetime import datetime
class TestServices(TestCase):
"""docstring for TestServices"""
def setUp(self):
self.client = Freckle('8zh8ny1wlym4ljyi68p0je410s1aj8b', 'andela')
self.users = self.client.get_users()
... | 32.75 | 87 | 0.69084 | 135 | 1,048 | 5.177778 | 0.348148 | 0.071531 | 0.074392 | 0.097282 | 0.060086 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036686 | 0.193702 | 1,048 | 31 | 88 | 33.806452 | 0.790533 | 0 | 0 | 0 | 0 | 0 | 0.122047 | 0.030512 | 0 | 0 | 0 | 0 | 0.136364 | 0 | null | null | 0.045455 | 0.136364 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e910d43c7dfc7b7187050331c0e77e2a387d6e5f | 271 | py | Python | Dataset/Leetcode/train/66/44.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/66/44.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/66/44.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, digits: List[int]) -> List[int]:
num = 0
ss = []
for i in range(len(digits)):
num += digits[i]*(pow(10,len(digits)-i-1))
for i in str(num+1):
ss.append(int(i))
return ss
| 24.636364 | 54 | 0.472325 | 40 | 271 | 3.2 | 0.55 | 0.109375 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02907 | 0.365314 | 271 | 10 | 55 | 27.1 | 0.715116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e912162e98a071826f62ad98af891120325dbaa8 | 2,327 | py | Python | lab1/domanda3.py | D33pBlue/Algoritmi | 76088f40b49d51416919515a274ba076ae6a197e | [
"MIT"
] | null | null | null | lab1/domanda3.py | D33pBlue/Algoritmi | 76088f40b49d51416919515a274ba076ae6a197e | [
"MIT"
] | 1 | 2018-03-17T19:15:41.000Z | 2018-03-17T19:18:24.000Z | lab1/domanda3.py | D33pBlue/Algoritmi | 76088f40b49d51416919515a274ba076ae6a197e | [
"MIT"
] | null | null | null | from domanda1 import *
import random
import time
class DPATrial:
def __init__(self,m):
self.numNodes = m
self.nodeNumbers = list()
for i in range(m):
for _ in range(m):
self.nodeNumbers.append(i)
def runTrial(self,m):
V = []
random.shuffle(s... | 25.855556 | 73 | 0.588311 | 326 | 2,327 | 4.107362 | 0.328221 | 0.067214 | 0.035848 | 0.01643 | 0.111277 | 0.017924 | 0 | 0 | 0 | 0 | 0 | 0.014432 | 0.285346 | 2,327 | 89 | 74 | 26.146067 | 0.79074 | 0.029222 | 0 | 0.057971 | 0 | 0 | 0.03035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e91854ceacf0d5585096c1554b24da88785c0f89 | 14,051 | py | Python | labtoys/Tektronix/MSO5x.py | ppudo/labtoys_python | c8ca27637602b8aac0574e92da370a4a97e9fcad | [
"MIT"
] | null | null | null | labtoys/Tektronix/MSO5x.py | ppudo/labtoys_python | c8ca27637602b8aac0574e92da370a4a97e9fcad | [
"MIT"
] | null | null | null | labtoys/Tektronix/MSO5x.py | ppudo/labtoys_python | c8ca27637602b8aac0574e92da370a4a97e9fcad | [
"MIT"
] | null | null | null | #MSO5x.py
# Created on: 2020.11.18
# Author: ppudo
# e-mail: ppudo@outlook.com
#
# Project: labtoys
# Description: Class representing Tektronix MSO5 osciloscope series
#
#
# Changelog:
# -2021.11.18 version: 0.1.0
# - Initial class
#
#------------------------------------------------... | 50.725632 | 153 | 0.38951 | 976 | 14,051 | 5.440574 | 0.1875 | 0.05838 | 0.022034 | 0.024105 | 0.480791 | 0.355556 | 0.252919 | 0.252919 | 0.240866 | 0.240866 | 0 | 0.009209 | 0.25806 | 14,051 | 276 | 154 | 50.90942 | 0.500144 | 0.366024 | 0 | 0.25 | 0 | 0 | 0.046042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219512 | false | 0 | 0.012195 | 0.097561 | 0.487805 | 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 |
e92450a33cbfd0332cf6d8991a025ba1f22e0f12 | 1,765 | py | Python | Sublime_Plugin/EditFormat.py | dtysky/Gal2Renpy | 59a70c5d336394155dedaf82d17bd99297f92d1a | [
"MIT"
] | 36 | 2015-04-19T05:03:10.000Z | 2022-03-29T08:12:38.000Z | Sublime_Plugin/EditFormat.py | dtysky/Gal2Renpy | 59a70c5d336394155dedaf82d17bd99297f92d1a | [
"MIT"
] | 2 | 2016-05-05T07:24:09.000Z | 2017-11-01T05:32:11.000Z | Sublime_Plugin/EditFormat.py | dtysky/Gal2Renpy | 59a70c5d336394155dedaf82d17bd99297f92d1a | [
"MIT"
] | 2 | 2016-12-01T02:12:33.000Z | 2020-03-09T02:27:19.000Z | #coding:utf-8
#########################
#Copyright(c) 2014 dtysky
#########################
def EditFormat(US,UT):
tmp={
'sc':[
0,('k'),{'k':'None'},
('cp','sc'),{'cp':'None','sc':'None'}
],
'sw':[
0,(),{},
('s',),{'s':'None'}
],
'chrlast':[
1,('l','t'),{'l':'None','t':'None'}... | 19.611111 | 82 | 0.273088 | 216 | 1,765 | 2.231481 | 0.24537 | 0.145228 | 0.112033 | 0.116183 | 0.340249 | 0.307054 | 0.307054 | 0.253112 | 0.141079 | 0.078838 | 0 | 0.018811 | 0.247026 | 1,765 | 90 | 83 | 19.611111 | 0.343868 | 0.020397 | 0 | 0.552941 | 0 | 0 | 0.228844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011765 | false | 0 | 0 | 0 | 0.023529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e924c56b0295f7f4a6d78dab18bd9428b1fe0209 | 272 | py | Python | wesgame.py | WestenPy/Curso_em_video | 9f6a9775d27e1b86d54b381aba5da69b2ae21b27 | [
"MIT"
] | null | null | null | wesgame.py | WestenPy/Curso_em_video | 9f6a9775d27e1b86d54b381aba5da69b2ae21b27 | [
"MIT"
] | null | null | null | wesgame.py | WestenPy/Curso_em_video | 9f6a9775d27e1b86d54b381aba5da69b2ae21b27 | [
"MIT"
] | null | null | null | from random import randint
def ataque():
r = randint(1, 20)
if r >= 18:
print('DANO CRÍTICO!')
elif r >= 8 or r < 18:
print('DANO NORMAL!')
elif r >= 3 or r < 8:
print('DANO REDUZIDO!')
else:
print('ERRO!')
ataque()
| 16 | 31 | 0.5 | 38 | 272 | 3.578947 | 0.578947 | 0.198529 | 0.117647 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056497 | 0.349265 | 272 | 16 | 32 | 17 | 0.711864 | 0 | 0 | 0 | 0 | 0 | 0.161765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 0.333333 | 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 |
e93e7a9f148352765158065775751a4ec95c81cf | 1,425 | py | Python | backend/registry/migrations/0002_auto_20220105_1336.py | mrmap-community/MrMap | 5dc05b7a5339b967047cd207755718f670a1d7cd | [
"MIT"
] | 10 | 2021-03-12T17:46:38.000Z | 2022-03-11T10:59:01.000Z | backend/registry/migrations/0002_auto_20220105_1336.py | mrmap-community/mrmap | 5dc05b7a5339b967047cd207755718f670a1d7cd | [
"MIT"
] | 214 | 2021-03-10T19:24:17.000Z | 2022-03-15T07:34:24.000Z | backend/registry/migrations/0002_auto_20220105_1336.py | mrmap-community/MrMap | 5dc05b7a5339b967047cd207755718f670a1d7cd | [
"MIT"
] | 9 | 2021-03-16T19:47:54.000Z | 2022-03-11T11:01:22.000Z | # Generated by Django 3.2.9 on 2022-01-05 12:36
from django.db import migrations, models
import django.db.models.manager
class Migration(migrations.Migration):
dependencies = [
('registry', '0001_initial'),
]
operations = [
migrations.AlterModelManagers(
name='webfeatureserv... | 36.538462 | 162 | 0.65193 | 111 | 1,425 | 8.171171 | 0.396396 | 0.035281 | 0.046307 | 0.06946 | 0.515987 | 0.481808 | 0.481808 | 0.481808 | 0.13892 | 0 | 0 | 0.017576 | 0.241404 | 1,425 | 38 | 163 | 37.5 | 0.821462 | 0.031579 | 0 | 0.5 | 1 | 0 | 0.303338 | 0.216981 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 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 |
e940349493488e9c1525d630923a4b14c70fd2d8 | 745 | py | Python | hoofball/migrations/0002_comment.py | leo-holanda/Hoofball | ccf4399d33a6381acd2ff41efce3dbf0dca6a092 | [
"MIT"
] | 1 | 2021-07-30T10:05:43.000Z | 2021-07-30T10:05:43.000Z | hoofball/migrations/0002_comment.py | leo-holanda/Hoofball | ccf4399d33a6381acd2ff41efce3dbf0dca6a092 | [
"MIT"
] | null | null | null | hoofball/migrations/0002_comment.py | leo-holanda/Hoofball | ccf4399d33a6381acd2ff41efce3dbf0dca6a092 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-01 20:26
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('hoofball', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Comment',
fi... | 29.8 | 114 | 0.587919 | 77 | 745 | 5.584416 | 0.701299 | 0.062791 | 0.088372 | 0.111628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048237 | 0.27651 | 745 | 24 | 115 | 31.041667 | 0.749536 | 0.060403 | 0 | 0 | 1 | 0 | 0.081662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
e9432f57bd7e613914b0ff79424dc9823a1f7a75 | 2,513 | py | Python | crowdgezwitscher/users/migrations/0004_auto_20170402_1358.py | Strassengezwitscher/Crowdgezwitscher | afdd433acb35c1a554ba79464b744975de065151 | [
"MIT"
] | 4 | 2016-07-22T07:20:31.000Z | 2016-11-13T18:13:34.000Z | crowdgezwitscher/users/migrations/0004_auto_20170402_1358.py | Strassengezwitscher/Strassengezwitscher | afdd433acb35c1a554ba79464b744975de065151 | [
"MIT"
] | 402 | 2016-04-26T08:38:17.000Z | 2022-03-11T23:26:49.000Z | crowdgezwitscher/users/migrations/0004_auto_20170402_1358.py | Strassengezwitscher/Crowdgezwitscher | afdd433acb35c1a554ba79464b744975de065151 | [
"MIT"
] | 1 | 2018-01-14T16:58:57.000Z | 2018-01-14T16:58:57.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-04-02 13:58
from django.db import migrations
def forwards_func(apps, schema_editor):
"""Grant permissions for TwitterAccount to admins and mods.
Includes creating a new view permission.
"""
# We can't import the models directly as they may be... | 36.955882 | 108 | 0.702746 | 296 | 2,513 | 5.793919 | 0.347973 | 0.032653 | 0.055977 | 0.055394 | 0.506122 | 0.469971 | 0.469971 | 0.469971 | 0.469971 | 0.469971 | 0 | 0.023256 | 0.178671 | 2,513 | 67 | 109 | 37.507463 | 0.807655 | 0.171508 | 0 | 0.45 | 1 | 0 | 0.166829 | 0.022439 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.025 | 0 | 0.15 | 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 |
e9451ca12bd25e2853456158cde9221357093674 | 544 | py | Python | solutions/python3/267.py | sm2774us/amazon_interview_prep_2021 | f580080e4a6b712b0b295bb429bf676eb15668de | [
"MIT"
] | 42 | 2020-08-02T07:03:49.000Z | 2022-03-26T07:50:15.000Z | solutions/python3/267.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | null | null | null | solutions/python3/267.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | 40 | 2020-02-08T02:50:24.000Z | 2022-03-26T15:38:10.000Z | class Solution:
def generatePalindromes(self, s):
cnt, n = collections.Counter(s), len(s) // 2
odd, s, q = [c for c in cnt if cnt[c] % 2], "".join(k * (cnt[k] // 2) for k in cnt), {"#" * n}
if len(odd) > 1: return []
for c in s:
new = set()
for w in q:
... | 41.846154 | 102 | 0.397059 | 89 | 544 | 2.426966 | 0.337079 | 0.055556 | 0.083333 | 0.097222 | 0.083333 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0.025559 | 0.424632 | 544 | 13 | 103 | 41.846154 | 0.664537 | 0 | 0 | 0 | 1 | 0 | 0.00367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 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 |
e945ff9db15d3f14ca3c606adc1612355944457e | 909 | py | Python | gallery/03_sp/plot_wavelets.py | RandallBalestriero/TheanoXLA | d8778c2eb3254b478cef4f45d934bf921e695619 | [
"Apache-2.0"
] | 67 | 2020-02-21T21:26:46.000Z | 2020-06-14T14:25:42.000Z | gallery/03_sp/plot_wavelets.py | RandallBalestriero/TheanoXLA | d8778c2eb3254b478cef4f45d934bf921e695619 | [
"Apache-2.0"
] | 8 | 2020-02-22T14:45:56.000Z | 2020-06-07T16:56:47.000Z | gallery/03_sp/plot_wavelets.py | RandallBalestriero/TheanoXLA | d8778c2eb3254b478cef4f45d934bf921e695619 | [
"Apache-2.0"
] | 4 | 2020-02-21T17:34:46.000Z | 2020-05-30T08:30:14.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# flake8: noqa
"""
Morlet Wavelet in time and Fourier domain
=========================================
This example shows how to generate a wavelet filter-bank.
"""
import symjax
import symjax.tensor as T
import matplotlib.pyplot as plt
import numpy as np
J = 5
Q = 4
s... | 22.170732 | 73 | 0.628163 | 148 | 909 | 3.837838 | 0.445946 | 0.049296 | 0.06338 | 0.070423 | 0.292254 | 0.258803 | 0.176056 | 0.070423 | 0 | 0 | 0 | 0.025166 | 0.169417 | 909 | 40 | 74 | 22.725 | 0.727152 | 0.218922 | 0 | 0.090909 | 1 | 0 | 0.005714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 |
3a5fa540aac3f4f6c53d13b040d514473b579d4b | 779 | py | Python | zensearch/exceptions.py | suryaavala/zen_search | 51a2a32a5963b8cda878b356c1225abe6aae6304 | [
"MIT"
] | null | null | null | zensearch/exceptions.py | suryaavala/zen_search | 51a2a32a5963b8cda878b356c1225abe6aae6304 | [
"MIT"
] | null | null | null | zensearch/exceptions.py | suryaavala/zen_search | 51a2a32a5963b8cda878b356c1225abe6aae6304 | [
"MIT"
] | null | null | null | class PrimaryKeyNotFoundError(Exception):
def __init__(self, *args):
if args:
self.message = args[0]
else:
self.message = None
self.default_message = "Cannot find primary key in the data point. Every data point should at least have primary key"
def __str__(self):... | 33.869565 | 162 | 0.653402 | 95 | 779 | 5.073684 | 0.473684 | 0.091286 | 0.112033 | 0.062241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001754 | 0.268293 | 779 | 22 | 163 | 35.409091 | 0.84386 | 0 | 0 | 0.333333 | 0 | 0.055556 | 0.301669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.055556 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a6257117bb5b39b2295a1e04bfebd82a73a4f27 | 1,372 | py | Python | app/models.py | jonathankamau/note-taking-app | f7315dbde34d1a06aa10bc0548fc85770fa4c142 | [
"MIT"
] | 1 | 2020-07-18T16:35:42.000Z | 2020-07-18T16:35:42.000Z | app/models.py | jonathankamau/note-taking-app | f7315dbde34d1a06aa10bc0548fc85770fa4c142 | [
"MIT"
] | 32 | 2020-07-19T18:19:24.000Z | 2021-06-04T23:45:34.000Z | app/models.py | jonathankamau/note-taking-app | f7315dbde34d1a06aa10bc0548fc85770fa4c142 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
class BaseModel(models.Model):
date_created = models.DateTimeField(auto_now_add=True)
date_modified = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
class UserProfile(BaseMo... | 29.826087 | 78 | 0.715015 | 167 | 1,372 | 5.688623 | 0.371257 | 0.08 | 0.075789 | 0.101053 | 0.289474 | 0.234737 | 0.105263 | 0 | 0 | 0 | 0 | 0.007111 | 0.180029 | 1,372 | 45 | 79 | 30.488889 | 0.837333 | 0 | 0 | 0.205882 | 0 | 0 | 0.05102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.088235 | 0.088235 | 0.882353 | 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 |
3a6432af138a6ef234f6f37cbbda6934b7bb3c37 | 7,657 | py | Python | hpc-historias-clinicas/settings.py | btenaglia/hpc-historias-clinicas | 649d8660381381b1c591667760c122d73071d5ec | [
"BSD-3-Clause"
] | null | null | null | hpc-historias-clinicas/settings.py | btenaglia/hpc-historias-clinicas | 649d8660381381b1c591667760c122d73071d5ec | [
"BSD-3-Clause"
] | null | null | null | hpc-historias-clinicas/settings.py | btenaglia/hpc-historias-clinicas | 649d8660381381b1c591667760c122d73071d5ec | [
"BSD-3-Clause"
] | null | null | null | import os
PROJECT_ROOT = os.path.dirname(__file__)
# DEBUG
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = False
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
TEMPLATE_DEBUG = DEBUG
# END DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS... | 38.094527 | 87 | 0.750947 | 937 | 7,657 | 6.034152 | 0.348986 | 0.066148 | 0.074284 | 0.027237 | 0.127343 | 0.105943 | 0.068093 | 0.061019 | 0.05589 | 0.040325 | 0 | 0.003435 | 0.125637 | 7,657 | 200 | 88 | 38.285 | 0.841075 | 0.454355 | 0 | 0.015267 | 0 | 0.007634 | 0.597256 | 0.49657 | 0 | 0 | 0 | 0.005 | 0 | 1 | 0 | false | 0.007634 | 0.022901 | 0 | 0.022901 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a67c5e3bdd0bcd555184047e8d52728b4026b70 | 1,384 | py | Python | fms-python/face_core.py | seanarwa/firm | 774965004766c2ce59e17bb08692370280b3e95c | [
"Apache-2.0"
] | null | null | null | fms-python/face_core.py | seanarwa/firm | 774965004766c2ce59e17bb08692370280b3e95c | [
"Apache-2.0"
] | null | null | null | fms-python/face_core.py | seanarwa/firm | 774965004766c2ce59e17bb08692370280b3e95c | [
"Apache-2.0"
] | null | null | null | import os
import time
import logging as log
import numpy as np
from scikit-learn.preprocessing import normalize
# local modules
import config
def process(encoding):
normalized_encoding = get_quantized_features(encoding)
return normalized_encoding
def get_median_values_for_bins(bins):
median_values = {}... | 33.756098 | 126 | 0.760838 | 187 | 1,384 | 5.385027 | 0.363636 | 0.135055 | 0.044687 | 0.03575 | 0.051639 | 0.051639 | 0 | 0 | 0 | 0 | 0 | 0.008606 | 0.160405 | 1,384 | 41 | 127 | 33.756098 | 0.858003 | 0.075145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.206897 | 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 |
3a6bbdcced64c871e2fdd5b7e14da08f29defe31 | 897 | py | Python | account/migrations/0003_auto_20161110_2135.py | fitahol/fitahol | ce84dc909aa98f2dc7594ef26568e015cbfe0e94 | [
"MIT"
] | 2 | 2017-02-20T14:11:30.000Z | 2017-06-11T16:10:33.000Z | account/migrations/0003_auto_20161110_2135.py | fitahol/fitahol | ce84dc909aa98f2dc7594ef26568e015cbfe0e94 | [
"MIT"
] | null | null | null | account/migrations/0003_auto_20161110_2135.py | fitahol/fitahol | ce84dc909aa98f2dc7594ef26568e015cbfe0e94 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-11-10 21:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0002_auto_20161103_0100'),
]
operations = [
migrations.AlterModel... | 27.181818 | 102 | 0.585284 | 82 | 897 | 6.195122 | 0.658537 | 0.064961 | 0.112205 | 0.135827 | 0.173228 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0.050078 | 0.287625 | 897 | 32 | 103 | 28.03125 | 0.744914 | 0.074693 | 0 | 0.36 | 1 | 0 | 0.203144 | 0.027811 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 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 |
3a6f8d05144479257560ebcab7dfac73539e7dff | 4,199 | py | Python | rpyc/utils/authenticators.py | fruch/rpyc | 8db3fdcef2272d468aca562465279370d075be72 | [
"MIT"
] | null | null | null | rpyc/utils/authenticators.py | fruch/rpyc | 8db3fdcef2272d468aca562465279370d075be72 | [
"MIT"
] | null | null | null | rpyc/utils/authenticators.py | fruch/rpyc | 8db3fdcef2272d468aca562465279370d075be72 | [
"MIT"
] | null | null | null | """
authenticators: the server instance accepts an authenticator object,
which is basically any callable (i.e., a function) that takes the newly
connected socket and "authenticates" it.
the authenticator should return a socket-like object with its associated
credentials (a tuple), or raise AuthenticationError if it ... | 32.550388 | 92 | 0.639676 | 516 | 4,199 | 5.079457 | 0.372093 | 0.021366 | 0.013735 | 0.011446 | 0.07707 | 0.044258 | 0.044258 | 0.044258 | 0.044258 | 0.044258 | 0 | 0.005572 | 0.273398 | 4,199 | 128 | 93 | 32.804688 | 0.853491 | 0.304596 | 0 | 0.192308 | 0 | 0 | 0.045799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141026 | false | 0.064103 | 0.076923 | 0.012821 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3a71c85b49b297a21ae96cfc5a938c33c9b45b83 | 1,156 | py | Python | kratos/apps/configuration/migrations/0001_initial.py | cipher-ops/backend-kts | 7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319 | [
"MIT"
] | 1 | 2020-11-30T09:53:40.000Z | 2020-11-30T09:53:40.000Z | kratos/apps/configuration/migrations/0001_initial.py | cipher-ops/backend-kts | 7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319 | [
"MIT"
] | null | null | null | kratos/apps/configuration/migrations/0001_initial.py | cipher-ops/backend-kts | 7ea54d7f56bcb0da54b901ac8f3cfbfbb0b12319 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-09-21 06:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Confi... | 35.030303 | 132 | 0.583045 | 122 | 1,156 | 5.393443 | 0.52459 | 0.036474 | 0.042553 | 0.066869 | 0.18541 | 0.100304 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.275952 | 1,156 | 32 | 133 | 36.125 | 0.753883 | 0.038927 | 0 | 0 | 1 | 0 | 0.108206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.24 | 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 |
3a734bc1e70aa19debbc9af66f403f4c7634a66a | 2,823 | py | Python | events/migrations/0002_auto_20180325_0035.py | eforsell/eurovisiontippning | 1a26dac0e06c5eef9a752ea6f68ad9b9567b6261 | [
"MIT"
] | null | null | null | events/migrations/0002_auto_20180325_0035.py | eforsell/eurovisiontippning | 1a26dac0e06c5eef9a752ea6f68ad9b9567b6261 | [
"MIT"
] | null | null | null | events/migrations/0002_auto_20180325_0035.py | eforsell/eurovisiontippning | 1a26dac0e06c5eef9a752ea6f68ad9b9567b6261 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.3 on 2018-03-24 23:35
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('events', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 34.426829 | 139 | 0.557563 | 251 | 2,823 | 6.155378 | 0.322709 | 0.052427 | 0.100971 | 0.116505 | 0.480259 | 0.462136 | 0.227184 | 0.227184 | 0.227184 | 0.227184 | 0 | 0.01286 | 0.311371 | 2,823 | 81 | 140 | 34.851852 | 0.781893 | 0.01594 | 0 | 0.52 | 1 | 0 | 0.132205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.08 | 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 |
3a788b9c9eab36584491247515f283acec64a519 | 407 | py | Python | Pycharm_Project/0414/2.py | duanjiefei/Python-Study | 88e17a3eab9112a2515f09b2bcf4e032059cc28b | [
"Apache-2.0"
] | null | null | null | Pycharm_Project/0414/2.py | duanjiefei/Python-Study | 88e17a3eab9112a2515f09b2bcf4e032059cc28b | [
"Apache-2.0"
] | null | null | null | Pycharm_Project/0414/2.py | duanjiefei/Python-Study | 88e17a3eab9112a2515f09b2bcf4e032059cc28b | [
"Apache-2.0"
] | null | null | null | #装饰器的结构
import time
def timer(func):
def wrapper(*args,**kwargs):#args 用来接收元祖 kwargs用来接收字典
start_time = time.time()
func(*args,**kwargs)
end_time = time.time()
print("the function run time is %s" %(end_time-start_time))
return wrapper;
@timer
def test():
time.sleep(1)
p... | 20.35 | 67 | 0.619165 | 55 | 407 | 4.509091 | 0.454545 | 0.129032 | 0.157258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003175 | 0.226044 | 407 | 20 | 68 | 20.35 | 0.784127 | 0.203931 | 0 | 0 | 0 | 0 | 0.121875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.384615 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a794a8245df8781f9b1fc1f4f5373e8c9e7411d | 3,255 | py | Python | docs/source/conf.py | DanielWarfield1/nClusterFramework | 21b68226ab1ffa810281a261feabe1d360a5146d | [
"MIT"
] | null | null | null | docs/source/conf.py | DanielWarfield1/nClusterFramework | 21b68226ab1ffa810281a261feabe1d360a5146d | [
"MIT"
] | 2 | 2021-12-15T05:36:01.000Z | 2021-12-20T01:15:45.000Z | docs/source/conf.py | DanielWarfield1/nClusterFramework | 21b68226ab1ffa810281a261feabe1d360a5146d | [
"MIT"
] | null | null | null | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 44.589041 | 97 | 0.710906 | 440 | 3,255 | 5.129545 | 0.459091 | 0.023926 | 0.018609 | 0.013292 | 0.063802 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001797 | 0.145008 | 3,255 | 73 | 98 | 44.589041 | 0.809199 | 0.713364 | 0 | 0 | 0 | 0 | 0.239326 | 0.074157 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 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 |
3a7bc36048999e619539f1b4ea6519f544722e26 | 562 | py | Python | test/sandwich.py | DynamicCai/Dynamic-Explorer | c909206b3db52f76f23499b1cb43520d3475b14e | [
"MIT"
] | null | null | null | test/sandwich.py | DynamicCai/Dynamic-Explorer | c909206b3db52f76f23499b1cb43520d3475b14e | [
"MIT"
] | null | null | null | test/sandwich.py | DynamicCai/Dynamic-Explorer | c909206b3db52f76f23499b1cb43520d3475b14e | [
"MIT"
] | null | null | null |
sandwich_meat={
1:{'chicken':3},
2:{'beef':5},
3:{'pork':4},
4:{'bacon':4},
5:{'sausage':4},
6:{'omelette':2},
7:{'none':0}
}
sandwich_sauce=['mayonnaise','ketchup','yellow mustard','black pepper sauce','cheese','none']
sandwich_vegetable=['lettuce','sliced tomatoes','sliced pickles','... | 18.733333 | 101 | 0.565836 | 71 | 562 | 4.408451 | 0.577465 | 0.01278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.181495 | 562 | 29 | 102 | 19.37931 | 0.630435 | 0 | 0 | 0 | 0 | 0 | 0.413238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a851eb1905fe0976754043eca815207cc550202 | 4,023 | py | Python | code_base/excess_mortality/decode_args.py | Mlad-en/COV-BG | dabc6875e49b1fdb113ed691fbf70d5bdcb1846c | [
"MIT"
] | null | null | null | code_base/excess_mortality/decode_args.py | Mlad-en/COV-BG | dabc6875e49b1fdb113ed691fbf70d5bdcb1846c | [
"MIT"
] | null | null | null | code_base/excess_mortality/decode_args.py | Mlad-en/COV-BG | dabc6875e49b1fdb113ed691fbf70d5bdcb1846c | [
"MIT"
] | null | null | null | from code_base.excess_mortality.decode_loc_vars import *
DECODE_DEMO_COL = {
'excess_mortality_by_sex_age_country': 'age,sex,unit,geo\\time',
'excess_mortality_by_sex_age_nuts3': 'unit,sex,age,geo\\time',
'europe_population_by_age_and_sex': 'freq;unit;sex;age;geo\TIME_PERIOD'
}
DECODE_DEMO_REPL = {
'e... | 27 | 87 | 0.505096 | 607 | 4,023 | 3.14827 | 0.222405 | 0.065934 | 0.088959 | 0.104657 | 0.485086 | 0.449503 | 0.319205 | 0.25955 | 0.240712 | 0.159079 | 0 | 0.198456 | 0.227194 | 4,023 | 148 | 88 | 27.182432 | 0.416211 | 0.01392 | 0 | 0.313433 | 0 | 0 | 0.534931 | 0.145523 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007463 | 0 | 0.007463 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a862c1dfb4c8e4aff3392df9183017ab88ec2ab | 775 | py | Python | umtk/image/utils.py | kyle0x54/umtk | 883090d84fce924e65184847e6b3048014616f5d | [
"Apache-2.0"
] | 1 | 2020-08-03T12:27:02.000Z | 2020-08-03T12:27:02.000Z | umtk/image/utils.py | kyle0x54/umtk | 883090d84fce924e65184847e6b3048014616f5d | [
"Apache-2.0"
] | null | null | null | umtk/image/utils.py | kyle0x54/umtk | 883090d84fce924e65184847e6b3048014616f5d | [
"Apache-2.0"
] | 1 | 2020-11-28T03:27:10.000Z | 2020-11-28T03:27:10.000Z | import os
from pathlib import Path
from typing import Any, Dict, Union
import numpy as np
def isdicom(path: Union[str, Path]) -> bool:
""" Judge whether a given file is a valid dicom.
Args:
path: given file path.
Returns:
True if given path is a valid dicom, otherwise False.
"""
... | 22.142857 | 61 | 0.618065 | 118 | 775 | 4.025424 | 0.516949 | 0.069474 | 0.033684 | 0.054737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019713 | 0.28 | 775 | 34 | 62 | 22.794118 | 0.831541 | 0.283871 | 0 | 0.117647 | 0 | 0 | 0.053232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3a8c95437dc709e3b0251893e5436db0d7890d0f | 8,098 | py | Python | yoongram/users/views.py | happyjy/yoonGram | 20555619721065296d5dab88e80c763b4a3f295e | [
"MIT"
] | null | null | null | yoongram/users/views.py | happyjy/yoonGram | 20555619721065296d5dab88e80c763b4a3f295e | [
"MIT"
] | 9 | 2021-03-09T02:00:36.000Z | 2022-02-26T10:13:36.000Z | yoongram/users/views.py | happyjy/yoonGram | 20555619721065296d5dab88e80c763b4a3f295e | [
"MIT"
] | null | null | null | from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from . import models, serializers
from yoongram.notifications import views as notifications_views
class ExploreUsers(APIView):
def get(self, request, format=None):
last_five = models.Us... | 39.120773 | 261 | 0.645098 | 904 | 8,098 | 5.608407 | 0.209071 | 0.066272 | 0.07574 | 0.082051 | 0.511243 | 0.473176 | 0.461144 | 0.42288 | 0.414004 | 0.381657 | 0 | 0.018012 | 0.245863 | 8,098 | 206 | 262 | 39.31068 | 0.812183 | 0.233514 | 0 | 0.52 | 0 | 0 | 0.042432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.064 | 0.04 | 0 | 0.376 | 0.144 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a948fad21b8a67c7efb20bb30784138fb309c60 | 11,836 | py | Python | oanda-api-v20-master/tests/test_contrib_orders.py | cdibble2011/OANDA | 68327d6d65dd92952d7a1dc49fe29efca766d900 | [
"MIT"
] | 389 | 2016-07-22T17:19:17.000Z | 2022-03-18T21:14:55.000Z | oanda-api-v20-master/tests/test_contrib_orders.py | cdibble2011/OANDA | 68327d6d65dd92952d7a1dc49fe29efca766d900 | [
"MIT"
] | 162 | 2016-10-04T18:17:48.000Z | 2021-12-22T10:53:54.000Z | oanda-api-v20-master/tests/test_contrib_orders.py | cdibble2011/OANDA | 68327d6d65dd92952d7a1dc49fe29efca766d900 | [
"MIT"
] | 120 | 2016-08-08T18:52:41.000Z | 2022-03-24T06:53:38.000Z | import unittest
try:
from nose_parameterized import parameterized
except:
print("*** Please install 'nose_parameterized' to run these tests ***")
exit(0)
import oandapyV20.contrib.requests as req
import oandapyV20.definitions.orders as OD
import oandapyV20.types as types
class TestContribRequests(unitt... | 30.193878 | 75 | 0.468233 | 925 | 11,836 | 5.942703 | 0.203243 | 0.041477 | 0.034928 | 0.040022 | 0.645807 | 0.588867 | 0.494088 | 0.345643 | 0.289794 | 0.191741 | 0 | 0.055525 | 0.385265 | 11,836 | 391 | 76 | 30.2711 | 0.699973 | 0.124535 | 0 | 0.820896 | 0 | 0 | 0.239095 | 0.00408 | 0 | 0 | 0 | 0 | 0.01194 | 1 | 0.00597 | false | 0 | 0.014925 | 0 | 0.023881 | 0.002985 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a951812ae9cbf0b5d1410cb7713acbb37c91294 | 371 | py | Python | ci_screen/automators/job_item.py | garyjohnson/ci_screen_2 | ea6a0ebd686148bb8977bd2d842e33e71fc2c3f0 | [
"MIT"
] | null | null | null | ci_screen/automators/job_item.py | garyjohnson/ci_screen_2 | ea6a0ebd686148bb8977bd2d842e33e71fc2c3f0 | [
"MIT"
] | null | null | null | ci_screen/automators/job_item.py | garyjohnson/ci_screen_2 | ea6a0ebd686148bb8977bd2d842e33e71fc2c3f0 | [
"MIT"
] | 1 | 2018-08-10T15:04:24.000Z | 2018-08-10T15:04:24.000Z | from kvaut.automator.custom_automator import CustomAutomator
class JobItemAutomator(CustomAutomator):
def is_match(self, value=None, **custom_attributes):
if 'status' not in custom_attributes:
return False
project = self._target.project
return value == project.name and custom... | 30.916667 | 97 | 0.727763 | 42 | 371 | 6.238095 | 0.642857 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19407 | 371 | 11 | 98 | 33.727273 | 0.876254 | 0 | 0 | 0 | 0 | 0 | 0.032345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3a97bee3b980525a2f4756251f4575984854cc03 | 500 | py | Python | setup.py | EricCWWong/GSimulator | aee7dc81d2a709beb94c02ffc8a288cd7ba06747 | [
"MIT"
] | null | null | null | setup.py | EricCWWong/GSimulator | aee7dc81d2a709beb94c02ffc8a288cd7ba06747 | [
"MIT"
] | 7 | 2020-02-01T02:19:49.000Z | 2020-07-10T12:49:28.000Z | setup.py | EricCWWong/GSimulator | aee7dc81d2a709beb94c02ffc8a288cd7ba06747 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="GSimulator",
packages=find_packages(exclude=['*test']),
version="0.1.1",
author="Eric Wong",
description='This package allows user to \
simulate conductance of quantum wires',
author_email='c.wing.wong.19@ucl.ac.uk',
install_r... | 29.411765 | 77 | 0.644 | 56 | 500 | 5.642857 | 0.839286 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.21 | 500 | 16 | 78 | 31.25 | 0.787342 | 0 | 0 | 0 | 0 | 0 | 0.284 | 0.1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 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 |
3a9e23b66225e7784226027da5b0c2acadfbb17f | 4,905 | py | Python | rurina5/input/map.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | rurina5/input/map.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | rurina5/input/map.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | from typing import Union, Sequence
import event
_actions = {}
"""_actions = {
'action_name': {
'event1event2':
{
'event1': ...,
'event2': ...
}
}
}"""
def addaction(name: str):
if name not in _actions:
_actions[name] = {}
def rem... | 29.196429 | 117 | 0.648114 | 564 | 4,905 | 5.278369 | 0.10461 | 0.292576 | 0.112865 | 0.075579 | 0.619416 | 0.575747 | 0.481021 | 0.481021 | 0.34733 | 0.31441 | 0 | 0.004982 | 0.263405 | 4,905 | 167 | 118 | 29.371257 | 0.818987 | 0 | 0 | 0.240385 | 0 | 0 | 0.026138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134615 | false | 0 | 0.019231 | 0.048077 | 0.278846 | 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 |
3aab0f40c2920df9397a92bef8cc72257b4908bd | 19,245 | py | Python | hajosUtil.py | eej/hajos-search | 9a8e80b3002e814475c61e8d6aa7e5b860c04e83 | [
"FSFAP"
] | 1 | 2021-04-10T21:29:39.000Z | 2021-04-10T21:29:39.000Z | hajosUtil.py | eej/hajos-search | 9a8e80b3002e814475c61e8d6aa7e5b860c04e83 | [
"FSFAP"
] | null | null | null | hajosUtil.py | eej/hajos-search | 9a8e80b3002e814475c61e8d6aa7e5b860c04e83 | [
"FSFAP"
] | null | null | null | #!/usr/bin/env python
"""
Hajos utilities.
"""
from util import *
# Hajos Sum
def hajosSum(G1, G2, x1, y1, x2, y2):
G = []
for i in range(len(G1)):
G.append(G1[i][:])
G[i].extend([0 for x in range(len(G2)-1)])
for i in range(len(G2)-1):
G.append([0 for x in range(len(G1) + l... | 31.809917 | 108 | 0.412679 | 2,729 | 19,245 | 2.910224 | 0.077684 | 0.027701 | 0.018257 | 0.030219 | 0.626794 | 0.570889 | 0.525812 | 0.447494 | 0.406321 | 0.371443 | 0 | 0.047079 | 0.436009 | 19,245 | 604 | 109 | 31.862583 | 0.684632 | 0.189036 | 0 | 0.398936 | 0 | 0 | 0.000716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00266 | null | null | 0.013298 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3ab2efc455ab899be68173e51b6cd65e6052c754 | 12,208 | py | Python | src/LDPC/pycodes/build/lib.cygwin-1.5.10-i686-2.3/pycodes/utils/CodeMaker.py | Horacehxw/Multi-label | 76095c72327e9aa379eaa653dbbb775ca638e6db | [
"MIT"
] | 1 | 2019-04-24T15:24:48.000Z | 2019-04-24T15:24:48.000Z | src/LDPC/pycodes/utils/CodeMaker.py | Horacehxw/Multi-label | 76095c72327e9aa379eaa653dbbb775ca638e6db | [
"MIT"
] | null | null | null | src/LDPC/pycodes/utils/CodeMaker.py | Horacehxw/Multi-label | 76095c72327e9aa379eaa653dbbb775ca638e6db | [
"MIT"
] | null | null | null | """
Copyright 2003 Mitsubishi Electric Research Laboratories All Rights
Reserved. Permission to use, copy and modify this software and its
documentation without fee for educational, research and non-profit
purposes, is hereby granted, provided that the above copyright
notice and the following... | 38.755556 | 117 | 0.648263 | 1,684 | 12,208 | 4.655582 | 0.22981 | 0.005867 | 0.007653 | 0.009184 | 0.235077 | 0.159184 | 0.139031 | 0.130102 | 0.110969 | 0.110969 | 0 | 0.025723 | 0.254833 | 12,208 | 314 | 118 | 38.878981 | 0.8361 | 0.013024 | 0 | 0.129252 | 0 | 0 | 0.084272 | 0.006666 | 0 | 0 | 0 | 0 | 0.102041 | 0 | null | null | 0 | 0.006803 | null | null | 0.027211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3ab542c9882e6ca1b34d6c4578175afe66cf3890 | 516 | py | Python | Source/Ventanas/login.py | NicolasTangredi/grupo4 | 4261f34c6600409434fc548d764dbb43bfb9c2f1 | [
"MIT"
] | null | null | null | Source/Ventanas/login.py | NicolasTangredi/grupo4 | 4261f34c6600409434fc548d764dbb43bfb9c2f1 | [
"MIT"
] | null | null | null | Source/Ventanas/login.py | NicolasTangredi/grupo4 | 4261f34c6600409434fc548d764dbb43bfb9c2f1 | [
"MIT"
] | null | null | null | import PySimpleGUI as sg
def build_login():
""" Construye la ventana del inicio de sesion del usuario"""
layout =[[sg.T("Usuario", size=(8,1)), sg.InputText(key='-USER-')],
[sg.T("Contraseña", size=(8,1)), sg.InputText(key='-PASS-')],
[sg.Submit("LogIn", size=(15,1), pad=(0,15))],
... | 34.4 | 82 | 0.585271 | 69 | 516 | 4.347826 | 0.565217 | 0.03 | 0.093333 | 0.053333 | 0.133333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0.031863 | 0.209302 | 516 | 14 | 83 | 36.857143 | 0.703431 | 0.102713 | 0 | 0 | 0 | 0 | 0.190789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3ab65f9233f5b33fe212c56ac9a65bed2532c487 | 446 | py | Python | tests/core/test_formatter.py | My-Novel-Management/storybuilderunite | c003d3451e237f574c54a87ea7d4fd8da8e833be | [
"MIT"
] | 1 | 2020-06-18T01:38:55.000Z | 2020-06-18T01:38:55.000Z | tests/core/test_formatter.py | My-Novel-Management/storybuilder | 1f36e56a74dbb55a25d60fce3ce81f3c650f521a | [
"MIT"
] | 143 | 2019-11-13T00:21:11.000Z | 2020-08-15T05:47:41.000Z | tests/core/test_formatter.py | My-Novel-Management/storybuilderunite | c003d3451e237f574c54a87ea7d4fd8da8e833be | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Formatter class test
====================
'''
import unittest
from tests.testutils import print_testtitle, validate_with_fail
from builder.core import formatter as fm
class FormatterTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
print_testtitle(fm.__name__, 'F... | 20.272727 | 63 | 0.674888 | 50 | 446 | 5.84 | 0.62 | 0.09589 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00274 | 0.181614 | 446 | 21 | 64 | 21.238095 | 0.79726 | 0.143498 | 0 | 0 | 0 | 0 | 0.040214 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3aba7ed065768797a2e46990d868b26246bb0ccc | 5,418 | py | Python | EM6436_singlephasemode.py | saishibu/EM6400_Modbus_RPi | 9025d159d84407b92275208b874c140f86f1d306 | [
"MIT"
] | 2 | 2021-09-15T11:14:18.000Z | 2021-09-19T23:40:09.000Z | EM6436_singlephasemode.py | saishibu/EM6400_Modbus_RPi | 9025d159d84407b92275208b874c140f86f1d306 | [
"MIT"
] | null | null | null | EM6436_singlephasemode.py | saishibu/EM6400_Modbus_RPi | 9025d159d84407b92275208b874c140f86f1d306 | [
"MIT"
] | 3 | 2017-09-23T05:28:21.000Z | 2019-12-26T01:29:17.000Z | #ModBUS Communication between Schneider EM6436 Meter and Raspberry Pi
#First beta version.
#The meter is set with the following settings
#Communication : (RS484 to RS232 to USB) - BaudRate = 19200, Parity = N, Stopbits = 1, Device ID=1 (Hardcode in meter)
#Electical Settings: APri:50, Asec: 5, VPri: 415, Vsec:415, SYS:... | 30.1 | 118 | 0.622924 | 697 | 5,418 | 4.715925 | 0.315638 | 0.038333 | 0.067235 | 0.102829 | 0.125038 | 0.041984 | 0.041984 | 0.041984 | 0.041984 | 0.041984 | 0 | 0.043926 | 0.193245 | 5,418 | 179 | 119 | 30.268156 | 0.708076 | 0.284422 | 0 | 0.202381 | 0 | 0 | 0.054876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | null | null | 0.297619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3ac0403526cc926b39bbe5158b35b86efdd85742 | 1,359 | py | Python | core/models.py | RafaelAparecidoSilva/Projeto_Django_DIO | 430b0166b39bc74f895805e51b1332c9184eccad | [
"MIT"
] | null | null | null | core/models.py | RafaelAparecidoSilva/Projeto_Django_DIO | 430b0166b39bc74f895805e51b1332c9184eccad | [
"MIT"
] | null | null | null | core/models.py | RafaelAparecidoSilva/Projeto_Django_DIO | 430b0166b39bc74f895805e51b1332c9184eccad | [
"MIT"
] | null | null | null | from django.db import models
# Importamos o User do sistema para utilizar os dados dos usuários que registramos no admin do django
# (desta forma não precisamos criar uma tabela específica no models para representar os usuários).
from django.contrib.auth.models import User
from datetime import datetime
class Event... | 41.181818 | 132 | 0.717439 | 191 | 1,359 | 4.984293 | 0.518325 | 0.052521 | 0.044118 | 0.042017 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002752 | 0.19794 | 1,359 | 32 | 133 | 42.46875 | 0.870642 | 0.345843 | 0 | 0 | 0 | 0 | 0.081911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.15 | 0.1 | 0.85 | 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 |
3ac339e728b9d10c187e2b092542a9efcdb4b687 | 2,264 | py | Python | backend/utils.py | wanghaiqing2015/fastapi-vue-cms | 0cd1f8e08ea2389287530d04872c7d5bfccdeb62 | [
"MIT"
] | 7 | 2020-08-07T23:51:57.000Z | 2022-02-12T05:13:18.000Z | backend/utils.py | wanghaiqing2015/fastapi-vue-cms | 0cd1f8e08ea2389287530d04872c7d5bfccdeb62 | [
"MIT"
] | 2 | 2020-04-12T16:50:55.000Z | 2020-08-08T06:04:00.000Z | backend/utils.py | hjlarry/fastapi-vue-cms | 4157b2064ce77e35fc280573a2198cbc9a5db9b4 | [
"MIT"
] | null | null | null | import json
from datetime import datetime, timedelta
from typing import Any
import jwt
from starlette.requests import Request
from starlette.responses import JSONResponse
from starlette.status import HTTP_403_FORBIDDEN
from passlib.context import CryptContext
from fastapi import Depends, Security, HTTPException
from f... | 29.402597 | 83 | 0.706714 | 273 | 2,264 | 5.688645 | 0.428571 | 0.028332 | 0.020605 | 0.025757 | 0.034771 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011589 | 0.199647 | 2,264 | 76 | 84 | 29.789474 | 0.845475 | 0 | 0 | 0 | 0 | 0 | 0.04947 | 0.011484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0.118644 | 0.220339 | 0.050847 | 0.440678 | 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 |
3ac4d21f2d05e601832ebe89aa297f1bde8e8600 | 2,577 | py | Python | tests/test_ex1.py | loriab/resp_gm | 36974ca2caf262ef40bf7a9586c12d65e0a29be5 | [
"BSD-3-Clause"
] | null | null | null | tests/test_ex1.py | loriab/resp_gm | 36974ca2caf262ef40bf7a9586c12d65e0a29be5 | [
"BSD-3-Clause"
] | 1 | 2019-01-15T20:33:32.000Z | 2019-01-15T20:33:32.000Z | tests/test_ex1.py | loriab/resp_gm | 36974ca2caf262ef40bf7a9586c12d65e0a29be5 | [
"BSD-3-Clause"
] | null | null | null | def test_ex1():
import psi4
import numpy as np
import resp
# Initialize molecule
mol = psi4.geometry(""" C 1.45051389 -0.06628932 0.00000000
H 1.75521613 -0.62865986 -0.87500146
H 1.75521613 -0.62865986 0.87500146
H 1.92173244 0.90485897 0.00000000
C -0.... | 36.295775 | 79 | 0.593326 | 337 | 2,577 | 4.445104 | 0.35905 | 0.010681 | 0.044059 | 0.038051 | 0.306409 | 0.228304 | 0.128171 | 0.128171 | 0.128171 | 0.089453 | 0 | 0.213556 | 0.278619 | 2,577 | 70 | 80 | 36.814286 | 0.592254 | 0.115638 | 0 | 0.115385 | 0 | 0 | 0.29881 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.019231 | false | 0 | 0.057692 | 0 | 0.076923 | 0.288462 | 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 |
3ac803ff9e5c1fc42b5e6459752425d80c4ba39a | 2,776 | py | Python | src/list_ideas.py | lxk1170/ideas-with-emotion | 89f5322189faca0ba2c00de8a87168ab54f2caa0 | [
"MIT"
] | null | null | null | src/list_ideas.py | lxk1170/ideas-with-emotion | 89f5322189faca0ba2c00de8a87168ab54f2caa0 | [
"MIT"
] | null | null | null | src/list_ideas.py | lxk1170/ideas-with-emotion | 89f5322189faca0ba2c00de8a87168ab54f2caa0 | [
"MIT"
] | null | null | null | import db
from pen import Pen
from idea import Idea
MIN_ENJOYMENT = 0.5
MIN_RELEVANT = 2
MAX_DEPTH = 3
MIN_ACCEPTABLE_SCORE = 0.5
def list_ideas(pen):
ideas = db.load_all_ideas()
# double link all relevant ideas
for name, data in ideas.items():
for other_name, other_data in ideas.items():
... | 31.908046 | 92 | 0.636527 | 365 | 2,776 | 4.673973 | 0.287671 | 0.038687 | 0.019343 | 0.028136 | 0.104338 | 0.032825 | 0.032825 | 0 | 0 | 0 | 0 | 0.010779 | 0.264769 | 2,776 | 86 | 93 | 32.27907 | 0.825086 | 0.150937 | 0 | 0.035088 | 0 | 0 | 0.050768 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.175439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.