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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
747f76629e7eb85c0e9005d5800b74e6ec8c3805 | 4,793 | py | Python | codango/codango/settings/base.py | andela-ooshodi/codango-debug | fa68f4305586c2d7f28307f10204c3b50f731fef | [
"MIT"
] | null | null | null | codango/codango/settings/base.py | andela-ooshodi/codango-debug | fa68f4305586c2d7f28307f10204c3b50f731fef | [
"MIT"
] | null | null | null | codango/codango/settings/base.py | andela-ooshodi/codango-debug | fa68f4305586c2d7f28307f10204c3b50f731fef | [
"MIT"
] | null | null | null | """
Django settings for codango project.
Generated by 'django-admin startproject' using Django 1.8.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build path... | 25.494681 | 89 | 0.722721 | 556 | 4,793 | 6.093525 | 0.42446 | 0.061393 | 0.032468 | 0.036895 | 0.098583 | 0.093566 | 0.06523 | 0.06523 | 0 | 0 | 0 | 0.004715 | 0.15919 | 4,793 | 187 | 90 | 25.631016 | 0.83598 | 0.264552 | 0 | 0 | 1 | 0 | 0.450672 | 0.331141 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.063636 | 0 | 0.063636 | 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 |
748f173a3418e52d978dedc4b9c8474f56ab2812 | 1,426 | py | Python | tools/buildenv.py | pauldotknopf/protobuf-qml | e10f46567344738563140e8f06d5a2569b961d06 | [
"MIT"
] | 56 | 2015-05-14T16:00:43.000Z | 2022-02-11T20:25:36.000Z | tools/buildenv.py | pauldotknopf/protobuf-qml | e10f46567344738563140e8f06d5a2569b961d06 | [
"MIT"
] | 19 | 2015-05-11T14:50:33.000Z | 2018-09-06T05:45:34.000Z | tools/buildenv.py | pauldotknopf/protobuf-qml | e10f46567344738563140e8f06d5a2569b961d06 | [
"MIT"
] | 16 | 2015-10-29T13:25:48.000Z | 2021-06-30T18:34:32.000Z | import logging
import platform
import os
ROOT_DIR = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
DEFAULT_DEPS = os.path.join(ROOT_DIR, 'build', 'deps')
DEFAULT_OUT = os.path.join(ROOT_DIR, 'out')
logger = logging.getLogger(__name__)
def prepend_envvar(env, k, v, sep=os.pathsep):
old = env.get(k)
... | 29.102041 | 80 | 0.685133 | 210 | 1,426 | 4.461905 | 0.3 | 0.166489 | 0.204909 | 0.074707 | 0.254002 | 0.153682 | 0.083244 | 0 | 0 | 0 | 0 | 0 | 0.150771 | 1,426 | 48 | 81 | 29.708333 | 0.773741 | 0.07784 | 0 | 0.125 | 0 | 0 | 0.149504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74965fd1310312518af6b17b1aeb671c359c33bf | 3,962 | py | Python | rugosa/emulation/actions.py | Defense-Cyber-Crime-Center/rugosa | 70f5b1db7e3f02ecccb0495fe1c0c77930769276 | [
"MIT"
] | 1 | 2022-03-13T03:03:31.000Z | 2022-03-13T03:03:31.000Z | rugosa/emulation/actions.py | Defense-Cyber-Crime-Center/rugosa | 70f5b1db7e3f02ecccb0495fe1c0c77930769276 | [
"MIT"
] | null | null | null | rugosa/emulation/actions.py | Defense-Cyber-Crime-Center/rugosa | 70f5b1db7e3f02ecccb0495fe1c0c77930769276 | [
"MIT"
] | null | null | null | """
Interface for interesting actions.
"""
from dataclasses import dataclass
import logging
from typing import Union, List, Optional, Iterable
from .call_hooks.win_api import constants as wc
logger = logging.getLogger(__name__)
@dataclass
class Action:
ip: int
class ActionList:
"""
Represents a revers... | 18.342593 | 79 | 0.646643 | 473 | 3,962 | 5.272727 | 0.255814 | 0.106656 | 0.090217 | 0.060946 | 0.346832 | 0.222534 | 0.20409 | 0.118284 | 0.118284 | 0.06656 | 0 | 0 | 0.268551 | 3,962 | 215 | 80 | 18.427907 | 0.860594 | 0.115598 | 0 | 0.463768 | 0 | 0 | 0.03033 | 0.007951 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101449 | false | 0 | 0.028986 | 0.036232 | 0.710145 | 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 |
749c2c114c339b32826757ee2f0157c48eb8cfa9 | 383 | py | Python | 301-400/377.combination-sum-iv.py | guangxu-li/leetcode-in-python | 8a5a373b32351500342705c141591a1a8f5f1cb1 | [
"MIT"
] | null | null | null | 301-400/377.combination-sum-iv.py | guangxu-li/leetcode-in-python | 8a5a373b32351500342705c141591a1a8f5f1cb1 | [
"MIT"
] | null | null | null | 301-400/377.combination-sum-iv.py | guangxu-li/leetcode-in-python | 8a5a373b32351500342705c141591a1a8f5f1cb1 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=377 lang=python3
#
# [377] Combination Sum IV
#
# @lc code=start
from collections import defaultdict
class Solution:
def combinationSum4(self, nums: list[int], target: int) -> int:
dp = defaultdict(int, {0: 1})
dp.update(map(lambda i: (i, sum(dp[i - n] for n in nums)), ran... | 20.157895 | 89 | 0.624021 | 58 | 383 | 4.12069 | 0.655172 | 0.050209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.227154 | 383 | 18 | 90 | 21.277778 | 0.766892 | 0.232376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
749ca24e3526b586f7bcd5efb10f8d95b181ede2 | 659 | py | Python | dashboard/migrations/0032_auto_20210823_0417.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | null | null | null | dashboard/migrations/0032_auto_20210823_0417.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | null | null | null | dashboard/migrations/0032_auto_20210823_0417.py | zidandff/primaseru | a14fa7326098af220e0671c3bf3870b4016ab4bf | [
"MIT"
] | 2 | 2021-08-10T09:09:58.000Z | 2021-08-10T10:54:51.000Z | # Generated by Django 3.2.5 on 2021-08-23 04:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0031_participantgraduation_updated_at'),
]
operations = [
migrations.AlterField(
model_name='infosourceppdb',
... | 27.458333 | 117 | 0.626707 | 69 | 659 | 5.826087 | 0.666667 | 0.099502 | 0.124378 | 0.144279 | 0.199005 | 0.199005 | 0.199005 | 0.199005 | 0 | 0 | 0 | 0.049485 | 0.264036 | 659 | 23 | 118 | 28.652174 | 0.779381 | 0.068285 | 0 | 0.235294 | 1 | 0 | 0.184641 | 0.060458 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
749fd515c10332cd2c59228ee905ba59c612341a | 6,634 | py | Python | Source/CLI/makedata/makedata.py | dmsovetov/Dreemchest | 39255c88943abc69c7fa0710b7ca8486c08260e0 | [
"MIT"
] | 11 | 2016-02-18T15:24:49.000Z | 2021-01-30T18:26:04.000Z | Source/CLI/makedata/makedata.py | dmsovetov/dreemchest | 39255c88943abc69c7fa0710b7ca8486c08260e0 | [
"MIT"
] | 2 | 2016-05-23T22:48:35.000Z | 2017-02-13T16:43:32.000Z | Source/CLI/makedata/makedata.py | dmsovetov/dreemchest | 39255c88943abc69c7fa0710b7ca8486c08260e0 | [
"MIT"
] | 3 | 2016-08-19T13:26:59.000Z | 2018-08-03T04:28:14.000Z | #!/usr/bin/python
#################################################################################
#
# The MIT License (MIT)
#
# Copyright (c) 2015 Dmitry Sovetov
#
# https://github.com/dmsovetov
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated docume... | 41.204969 | 184 | 0.61833 | 765 | 6,634 | 5.296732 | 0.352941 | 0.028875 | 0.054541 | 0.017769 | 0.050839 | 0.010365 | 0 | 0 | 0 | 0 | 0 | 0.002786 | 0.242538 | 6,634 | 161 | 185 | 41.204969 | 0.803383 | 0.227012 | 0 | 0 | 0 | 0 | 0.160471 | 0.005078 | 0 | 0 | 0 | 0 | 0.011628 | 0 | null | null | 0 | 0.127907 | null | null | 0.034884 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74a000fd93cbaeff0dd5bb32c3ac3e334a8c69dc | 19,855 | py | Python | packages/gtmcore/gtmcore/workflows/tests/test_gitlab.py | jjwatts/gigantum-client | 88ce0475fb6880322bdd06d987c494e29064f278 | [
"MIT"
] | null | null | null | packages/gtmcore/gtmcore/workflows/tests/test_gitlab.py | jjwatts/gigantum-client | 88ce0475fb6880322bdd06d987c494e29064f278 | [
"MIT"
] | null | null | null | packages/gtmcore/gtmcore/workflows/tests/test_gitlab.py | jjwatts/gigantum-client | 88ce0475fb6880322bdd06d987c494e29064f278 | [
"MIT"
] | null | null | null | # Copyright (c) 2017 FlashX, LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distrib... | 47.27381 | 123 | 0.514279 | 1,797 | 19,855 | 5.553144 | 0.140234 | 0.048101 | 0.081772 | 0.062531 | 0.761199 | 0.740455 | 0.697164 | 0.665097 | 0.643151 | 0.587734 | 0 | 0.026221 | 0.385344 | 19,855 | 419 | 124 | 47.386635 | 0.791462 | 0.131151 | 0 | 0.696486 | 0 | 0.028754 | 0.206282 | 0 | 0 | 0 | 0 | 0 | 0.067093 | 1 | 0.054313 | false | 0 | 0.009585 | 0 | 0.067093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74a435d54372c1ab9bc2bc926f10969db52f3fc9 | 4,238 | py | Python | dash/models.py | lakesite/dash | c64cea5fe4c5aff529e3f121270dbf29f700aeb2 | [
"MIT"
] | null | null | null | dash/models.py | lakesite/dash | c64cea5fe4c5aff529e3f121270dbf29f700aeb2 | [
"MIT"
] | 1 | 2019-09-17T12:22:26.000Z | 2019-09-18T22:58:14.000Z | dash/models.py | lakesite/dash | c64cea5fe4c5aff529e3f121270dbf29f700aeb2 | [
"MIT"
] | 1 | 2019-09-27T03:58:43.000Z | 2019-09-27T03:58:43.000Z | import datetime
from flask_bcrypt import *
from flask import current_app
from flask_sqlalchemy import SQLAlchemy
from flask_security import UserMixin, RoleMixin
db = SQLAlchemy()
roles_users = db.Table('roles_users',
db.Column('user_id', db.Integer(), db.ForeignKey('user.id')),
db.Column('role_id', db.Inte... | 32.106061 | 99 | 0.666116 | 569 | 4,238 | 4.826011 | 0.165202 | 0.10488 | 0.10925 | 0.064093 | 0.523307 | 0.428623 | 0.397669 | 0.354334 | 0.311726 | 0.311726 | 0 | 0.008926 | 0.18051 | 4,238 | 131 | 100 | 32.351145 | 0.781745 | 0 | 0 | 0.241758 | 0 | 0 | 0.072204 | 0.005427 | 0 | 0 | 0 | 0 | 0 | 1 | 0.120879 | false | 0.032967 | 0.054945 | 0.098901 | 0.736264 | 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 |
74a4c95aba95c6ff272c009bc42f15868fc311a3 | 514 | py | Python | misc/build_proto.py | engeg/recipes-py | 9dac536b55887262b4ce846f3db7a7f596542e5e | [
"Apache-2.0"
] | 23 | 2016-01-20T00:45:26.000Z | 2022-02-26T04:25:30.000Z | misc/build_proto.py | engeg/recipes-py | 9dac536b55887262b4ce846f3db7a7f596542e5e | [
"Apache-2.0"
] | 8 | 2016-01-15T19:00:38.000Z | 2018-03-06T00:15:24.000Z | misc/build_proto.py | engeg/recipes-py | 9dac536b55887262b4ce846f3db7a7f596542e5e | [
"Apache-2.0"
] | 13 | 2015-09-05T05:52:43.000Z | 2019-07-08T17:34:27.000Z | #!/usr/bin/env vpython
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
from google.protobuf import json_format as jsonpb
ROOT = os.path.dirname(os.path.dirname(__file__))
sys.path.a... | 30.235294 | 77 | 0.766537 | 83 | 514 | 4.662651 | 0.722892 | 0.046512 | 0.067183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008791 | 0.114786 | 514 | 16 | 78 | 32.125 | 0.841758 | 0.344358 | 0 | 0 | 0 | 0 | 0.045045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7762969e468e630cab9912c9e39aa8105f563ce4 | 327 | py | Python | setup.py | zhangalbert/a | 466b10ded2c85e7fceea60a95f081cb0b11b5222 | [
"Apache-2.0"
] | null | null | null | setup.py | zhangalbert/a | 466b10ded2c85e7fceea60a95f081cb0b11b5222 | [
"Apache-2.0"
] | null | null | null | setup.py | zhangalbert/a | 466b10ded2c85e7fceea60a95f081cb0b11b5222 | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
setup(name='a',
version='0.1.0',
packages=['a', 'a.security'],
install_requires=['WebOb>=1.6.1'],
author = "albert.zhang",
author_email = "longbao.zhang@gmail.com",
description = "This is a very light web framework",
license = "Apache License 2... | 27.25 | 57 | 0.611621 | 44 | 327 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031496 | 0.223242 | 327 | 11 | 58 | 29.727273 | 0.748032 | 0 | 0 | 0 | 0 | 0 | 0.35474 | 0.070336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7762eadf98a84b5ce9283433a79e9899783c2908 | 4,833 | py | Python | Lectures/DeepLearningClass/chapter2/p01_perceptron.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | 2 | 2020-12-05T07:42:55.000Z | 2021-01-06T23:23:18.000Z | Lectures/DeepLearningClass/chapter2/p01_perceptron.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | Lectures/DeepLearningClass/chapter2/p01_perceptron.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | print('====================================================================================================')
print('== 문제 27. 아래의 식을 파이썬으로 구현하시오.')
print('====================================================================================================\n')
import numpy as np
x = np.array([0, 1])
w = np.array([0.5, ... | 34.276596 | 111 | 0.354438 | 619 | 4,833 | 2.767367 | 0.119548 | 0.060712 | 0.02627 | 0.028021 | 0.642732 | 0.595447 | 0.553415 | 0.507881 | 0.497373 | 0.420315 | 0 | 0.066977 | 0.156631 | 4,833 | 141 | 112 | 34.276596 | 0.353288 | 0 | 0 | 0.621849 | 0 | 0 | 0.434009 | 0.334299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109244 | false | 0 | 0.02521 | 0.02521 | 0.268908 | 0.361345 | 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 |
776c5fd7e0466ea12b425b1c163bacd2680eebf7 | 1,721 | py | Python | tests/testutils.py | rcap107/holoclean | d4f5929a8e4d92d4f41eb058c04c96cdcb0af767 | [
"Apache-2.0"
] | 468 | 2018-11-11T15:40:12.000Z | 2022-03-30T13:21:48.000Z | tests/testutils.py | rcap107/holoclean | d4f5929a8e4d92d4f41eb058c04c96cdcb0af767 | [
"Apache-2.0"
] | 43 | 2018-11-10T20:03:49.000Z | 2020-10-20T16:39:03.000Z | tests/testutils.py | rcap107/holoclean | d4f5929a8e4d92d4f41eb058c04c96cdcb0af767 | [
"Apache-2.0"
] | 118 | 2018-11-12T19:11:42.000Z | 2022-03-23T18:25:29.000Z | import random
from psycopg2 import connect
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT
def random_database():
"""
Creates a random database in the testing Postgres instance and returns the
name of the database.
"""
# Setup connection with default credentials for testing.
with c... | 40.97619 | 101 | 0.607786 | 200 | 1,721 | 5.045 | 0.38 | 0.095144 | 0.047572 | 0.055501 | 0.360753 | 0.342914 | 0.342914 | 0.271556 | 0.271556 | 0.271556 | 0 | 0.012397 | 0.29692 | 1,721 | 41 | 102 | 41.97561 | 0.821488 | 0.152818 | 0 | 0.285714 | 0 | 0 | 0.337979 | 0.032753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.107143 | 0 | 0.214286 | 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 |
77725779c0f591f17fb4ed4c63a92e76bed4c7ed | 614 | py | Python | degreedClient/models/skill_plan.py | Rmaravanyika/degreedClient | 44beb91d2db56d81fa9f1f35b402076144aa124e | [
"Apache-2.0"
] | 1 | 2019-08-21T07:43:08.000Z | 2019-08-21T07:43:08.000Z | degreedClient/models/skill_plan.py | Rmaravanyika/degreedClient | 44beb91d2db56d81fa9f1f35b402076144aa124e | [
"Apache-2.0"
] | 530 | 2019-06-11T03:06:52.000Z | 2022-03-31T22:53:11.000Z | degreedClient/models/skill_plan.py | Rmaravanyika/degreedClient | 44beb91d2db56d81fa9f1f35b402076144aa124e | [
"Apache-2.0"
] | null | null | null | import arrow
import attr
from attr import attrs, attrib
@attrs
class SkillPlan(object):
id = attrib()
attributes = attrib()
links = attrib()
@attrs
class SkillPlanAttribute(object):
name = attrib()
description = attrib()
visibility = attrib()
sections = attrib(default=None)
created_at = attr.ib(converter=... | 16.594595 | 82 | 0.732899 | 71 | 614 | 6.267606 | 0.478873 | 0.089888 | 0.107865 | 0.107865 | 0.18427 | 0.18427 | 0.18427 | 0 | 0 | 0 | 0 | 0 | 0.149837 | 614 | 36 | 83 | 17.055556 | 0.85249 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.846154 | 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 |
77729e809d9ad4a191008903e41b3ead3c5eac97 | 273 | py | Python | src/utils.py | HuiiBuh/checkers-master | 112eb1df1d8b0d691edd82978945ea5527b75fab | [
"MIT"
] | 1 | 2021-09-04T05:34:51.000Z | 2021-09-04T05:34:51.000Z | src/utils.py | HuiiBuh/checkers-master | 112eb1df1d8b0d691edd82978945ea5527b75fab | [
"MIT"
] | null | null | null | src/utils.py | HuiiBuh/checkers-master | 112eb1df1d8b0d691edd82978945ea5527b75fab | [
"MIT"
] | null | null | null | import numpy as np
import base64
import pickle
def img2str(image):
imdata = pickle.dumps(image)
return base64.b64encode(imdata).decode('ascii')
def str2img(string):
image = base64.b64decode(string)
image = pickle.loads(image)
return np.array(image)
| 18.2 | 51 | 0.714286 | 36 | 273 | 5.416667 | 0.555556 | 0.112821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.179487 | 273 | 14 | 52 | 19.5 | 0.816964 | 0 | 0 | 0 | 0 | 0 | 0.018315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.7 | 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 |
77752e8a5315061629304e6dc5ff4ce54a7a1a75 | 1,980 | py | Python | src/MAT/bin/MATManagePluginDirs_tpl.py | wake-forest-ctsi/mist-toolkit | 857e91976fa3b75ef2cad08612fa79cf2f743615 | [
"BSD-3-Clause"
] | 2 | 2015-10-28T17:58:31.000Z | 2021-10-12T10:34:39.000Z | scrubber/MIST_2_0_4/src/MAT/bin/MATManagePluginDirs_tpl.py | manaswini18/DmD | dd1e865ddb7b43c8478b2b5733385143b1980951 | [
"Apache-2.0"
] | null | null | null | scrubber/MIST_2_0_4/src/MAT/bin/MATManagePluginDirs_tpl.py | manaswini18/DmD | dd1e865ddb7b43c8478b2b5733385143b1980951 | [
"Apache-2.0"
] | 9 | 2016-12-17T22:50:37.000Z | 2020-09-26T01:08:06.000Z | #!MF_PYTHONBIN
# Copyright (C) 2007 - 2009 The MITRE Corporation. See the toplevel
# file LICENSE for license terms.
import os, sys, glob, shutil
MAT_PKG_PYLIB = "MF_MAT_PKG_PYLIB"
sys.path.insert(0, MAT_PKG_PYLIB)
MAT_PKG_HOME = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
import MAT
def Usage():... | 29.117647 | 93 | 0.569697 | 237 | 1,980 | 4.696203 | 0.396624 | 0.037736 | 0.028751 | 0.026954 | 0.086253 | 0.057502 | 0.057502 | 0.057502 | 0 | 0 | 0 | 0.013447 | 0.286364 | 1,980 | 67 | 94 | 29.552239 | 0.774239 | 0.056061 | 0 | 0.188679 | 0 | 0 | 0.126073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037736 | null | null | 0.113208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
777c099bcd6dbabf7bd899cf4da7520acddaee95 | 1,060 | py | Python | tests/core/test_security.py | congdh/fastapi-async-realworld | 608dc6f090f8a02e0a880cef33dca90df78cbfb5 | [
"MIT"
] | null | null | null | tests/core/test_security.py | congdh/fastapi-async-realworld | 608dc6f090f8a02e0a880cef33dca90df78cbfb5 | [
"MIT"
] | null | null | null | tests/core/test_security.py | congdh/fastapi-async-realworld | 608dc6f090f8a02e0a880cef33dca90df78cbfb5 | [
"MIT"
] | 3 | 2020-10-04T09:37:21.000Z | 2022-02-13T08:57:35.000Z | from datetime import timedelta
import pytest
from fastapi import HTTPException
from pydantic import SecretStr
from app.core.security import (
create_access_token,
get_password_hash,
get_user_id_from_token,
verify_password,
)
pytestmark = pytest.mark.asyncio
async def test_access_token():
user_i... | 23.555556 | 66 | 0.737736 | 142 | 1,060 | 5.147887 | 0.323944 | 0.082079 | 0.06156 | 0.088919 | 0.269494 | 0.24487 | 0.136799 | 0.136799 | 0.136799 | 0.136799 | 0 | 0.005747 | 0.179245 | 1,060 | 44 | 67 | 24.090909 | 0.834483 | 0 | 0 | 0.125 | 0 | 0 | 0.036792 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 1 | 0.09375 | false | 0.25 | 0.15625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
777c87854da8e0921a6611366e0397f0b9cee628 | 5,199 | py | Python | rmexp/schedule.py | junjuew/scalable-edge-native-applications | 1ace9ce71bef267880049633160e7cb74c57bddb | [
"Apache-2.0"
] | 1 | 2021-05-12T12:49:15.000Z | 2021-05-12T12:49:15.000Z | rmexp/schedule.py | junjuew/scalable-edge-native-applications | 1ace9ce71bef267880049633160e7cb74c57bddb | [
"Apache-2.0"
] | null | null | null | rmexp/schedule.py | junjuew/scalable-edge-native-applications | 1ace9ce71bef267880049633160e7cb74c57bddb | [
"Apache-2.0"
] | 1 | 2021-11-21T08:12:19.000Z | 2021-11-21T08:12:19.000Z | from __future__ import absolute_import, division, print_function
import logging
import select
import subprocess
import fire
import logzero
import numpy as np
from logzero import logger
import itertools
import scipy
import scipy.optimize
import cPickle as pickle
logzero.loglevel(logging.DEBUG)
def group(lst, n):
... | 32.698113 | 146 | 0.553568 | 694 | 5,199 | 3.994236 | 0.259366 | 0.040404 | 0.017316 | 0.012987 | 0.235931 | 0.174603 | 0.142857 | 0.135642 | 0.10101 | 0.10101 | 0 | 0.023295 | 0.306405 | 5,199 | 158 | 147 | 32.905063 | 0.745424 | 0.045009 | 0 | 0.162162 | 0 | 0 | 0.059037 | 0.027807 | 0 | 0 | 0 | 0 | 0.009009 | 0 | null | null | 0 | 0.108108 | null | null | 0.009009 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
778a30afec7647b6e7e9030506f3d19a33890f34 | 4,097 | py | Python | bin/exps/batch_clone.py | akrishna1995/emuedge | d33845107be3c9bbfcaf030df0a989e9d4972743 | [
"MIT"
] | 8 | 2018-06-21T03:20:26.000Z | 2021-10-15T03:53:49.000Z | bin/exps/batch_clone.py | akrishna1995/emuedge | d33845107be3c9bbfcaf030df0a989e9d4972743 | [
"MIT"
] | 12 | 2018-05-21T17:26:59.000Z | 2018-06-14T02:48:21.000Z | bin/exps/batch_clone.py | akrishna1995/emuedge | d33845107be3c9bbfcaf030df0a989e9d4972743 | [
"MIT"
] | 3 | 2018-08-30T22:37:20.000Z | 2019-03-31T18:29:52.000Z | import logging, sys, XenAPI, os, time
sys.path.insert(0, '../../')
def init_session(uname, pwd, local=True):
# TODO: enable the init of a possibly remote session
if local:
session=XenAPI.xapi_local()
session.xenapi.login_with_password(uname, pwd)
else:
log('currently not support remote connection')
return s... | 25.93038 | 77 | 0.705882 | 668 | 4,097 | 4.169162 | 0.185629 | 0.084022 | 0.030162 | 0.030162 | 0.686176 | 0.616158 | 0.616158 | 0.608977 | 0.608977 | 0.576661 | 0 | 0.016111 | 0.136441 | 4,097 | 158 | 78 | 25.93038 | 0.771057 | 0.099829 | 0 | 0.68254 | 0 | 0 | 0.080544 | 0.009796 | 0 | 0 | 0 | 0.006329 | 0 | 0 | null | null | 0.007937 | 0.007937 | 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 |
778afd4b3ea9feac924d9ce4230a66a795531f22 | 682 | py | Python | backend_drf_views_example.py | sunilparajuli/DRF-Vue-numbering-Pagination-Snippet | 5a6b3796656d74b65ad4b8e1d3144afe54dcb0f6 | [
"Apache-2.0"
] | 2 | 2021-06-02T16:29:16.000Z | 2021-06-02T16:29:18.000Z | backend_drf_views_example.py | sunilparajuli/DRF-Vue-numbering-Pagination-Snippet | 5a6b3796656d74b65ad4b8e1d3144afe54dcb0f6 | [
"Apache-2.0"
] | null | null | null | backend_drf_views_example.py | sunilparajuli/DRF-Vue-numbering-Pagination-Snippet | 5a6b3796656d74b65ad4b8e1d3144afe54dcb0f6 | [
"Apache-2.0"
] | null | null | null |
#example pagination parameter having total_pages from backend
class PageNumberPaginationWithCount(pagination.PageNumberPagination):
def get_paginated_response(self, data):
response = super(PageNumberPaginationWithCount, self).get_paginated_response(data)
response.data['total_pages'] = self.page.p... | 26.230769 | 90 | 0.774194 | 74 | 682 | 6.959459 | 0.594595 | 0.038835 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001701 | 0.13783 | 682 | 25 | 91 | 27.28 | 0.87415 | 0.13783 | 0 | 0 | 0 | 0 | 0.06175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.076923 | 0.615385 | 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 |
7795432cd6d3090d060937e876a441cb4cc29351 | 29,824 | py | Python | src/itol_pfamtree.py | ElofssonLab/TMplot | 6a19cd1cb792733fb5db067e333c4ab3d5e238b7 | [
"MIT"
] | null | null | null | src/itol_pfamtree.py | ElofssonLab/TMplot | 6a19cd1cb792733fb5db067e333c4ab3d5e238b7 | [
"MIT"
] | 5 | 2020-07-10T10:10:06.000Z | 2022-03-11T23:41:28.000Z | src/itol_pfamtree.py | ElofssonLab/TMplot | 6a19cd1cb792733fb5db067e333c4ab3d5e238b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
from ete3 import Tree
import shutil
import math
import myfunc
from colour import Color
blue = Color("blue")
red = Color("red")
from itolapi import Itol
from itolapi import ItolExport
rundir = os.path.dirname(os.path.realpath(__file__))
usage="""
USAGE: itol_pfamtree.py [-... | 37.992357 | 138 | 0.638345 | 3,572 | 29,824 | 5.173012 | 0.112262 | 0.02825 | 0.062886 | 0.039777 | 0.712523 | 0.68633 | 0.663816 | 0.632861 | 0.618682 | 0.602609 | 0 | 0.018607 | 0.208926 | 29,824 | 784 | 139 | 38.040816 | 0.764591 | 0.130063 | 0 | 0.551786 | 0 | 0.008929 | 0.229939 | 0.02526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019643 | false | 0.001786 | 0.017857 | 0 | 0.060714 | 0.1 | 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 |
779695a6c206665b577fbc40ca7b7a3eb86e2492 | 1,665 | py | Python | scripts/howorka/interpolation_points.py | jhwnkim/nanopores | 98b3dbb5d36464fbdc03f59d224d38e4255324ce | [
"MIT"
] | 8 | 2016-09-07T01:59:31.000Z | 2021-03-06T12:14:31.000Z | scripts/howorka/interpolation_points.py | jhwnkim/nanopores | 98b3dbb5d36464fbdc03f59d224d38e4255324ce | [
"MIT"
] | null | null | null | scripts/howorka/interpolation_points.py | jhwnkim/nanopores | 98b3dbb5d36464fbdc03f59d224d38e4255324ce | [
"MIT"
] | 4 | 2017-12-06T17:43:01.000Z | 2020-05-01T05:41:14.000Z | "create 2D point set for Howorka model where force shall be evaluated."
import numpy as np
from itertools import product
import math
import matplotlib.pyplot as plt
import nanopores
gauss = np.polynomial.legendre.leggauss
nanopores.add_params(
h = 0.5,
hout = 1.,
Ry = 10.,
Rx = 3.,
)
def points(h,... | 25.227273 | 75 | 0.596997 | 295 | 1,665 | 3.352542 | 0.383051 | 0.008089 | 0.044489 | 0.026289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030919 | 0.261862 | 1,665 | 66 | 76 | 25.227273 | 0.7738 | 0.329129 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.025641 | false | 0 | 0.179487 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77a2496f709dc36f20017daf8f44f502922f1145 | 4,389 | py | Python | pypdnsrest/parsers.py | raspi/pypdnsrest | d45f89721108d0718c791de91c2cdf31ab7cee9b | [
"Apache-2.0"
] | 2 | 2017-05-16T14:45:27.000Z | 2018-03-02T08:50:00.000Z | pypdnsrest/parsers.py | raspi/pypdnsrest | d45f89721108d0718c791de91c2cdf31ab7cee9b | [
"Apache-2.0"
] | 4 | 2017-08-19T03:46:25.000Z | 2019-04-04T14:13:51.000Z | pypdnsrest/parsers.py | raspi/pypdnsrest | d45f89721108d0718c791de91c2cdf31ab7cee9b | [
"Apache-2.0"
] | 1 | 2020-02-09T17:17:33.000Z | 2020-02-09T17:17:33.000Z | # -*- coding: utf8 -*-
"""
Convert REST JSON dict to DNSRecordBase classes
"""
import logging
log = logging.getLogger(__name__)
from datetime import timedelta
from .dnsrecords import DNSRecordBase
class RecordParser():
"""
Base parser class
"""
def __init__(self, *args, **kwargs):
pass
... | 33 | 105 | 0.621326 | 504 | 4,389 | 5.367063 | 0.22619 | 0.07098 | 0.088725 | 0.110906 | 0.392237 | 0.392237 | 0.392237 | 0.367837 | 0.343438 | 0.343438 | 0 | 0.014364 | 0.2545 | 4,389 | 132 | 106 | 33.25 | 0.812347 | 0.027797 | 0 | 0.326087 | 0 | 0 | 0.033938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119565 | false | 0.01087 | 0.195652 | 0 | 0.51087 | 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 |
77af69141958979d91a8946a1f5ae3a3eb8f9bf0 | 2,874 | py | Python | SyracuseNews.py | islubee/Discord-Bots | c504adf6af09e68809038e7c4f0720cb8022f982 | [
"MIT"
] | null | null | null | SyracuseNews.py | islubee/Discord-Bots | c504adf6af09e68809038e7c4f0720cb8022f982 | [
"MIT"
] | null | null | null | SyracuseNews.py | islubee/Discord-Bots | c504adf6af09e68809038e7c4f0720cb8022f982 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import urllib.request as urllib2
import re
import pickle
import logging
import ssl
import urllib.parse
import base64
from datetime import datetime,timedelta
from time import sleep
import time
import os
import discord
from dotenv import load_dotenv
import requests
#i... | 33.418605 | 199 | 0.707376 | 387 | 2,874 | 5.124031 | 0.428941 | 0.04236 | 0.025214 | 0.026223 | 0.058497 | 0.006051 | 0 | 0 | 0 | 0 | 0 | 0.006547 | 0.149617 | 2,874 | 85 | 200 | 33.811765 | 0.804828 | 0 | 0 | 0 | 0 | 0 | 0.146505 | 0.010883 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | 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 |
77b13a9d54ea4e9754f97111a15aac0fd3b8b54f | 1,467 | py | Python | accounts/views.py | samaras/bytestore | 8e2f8dfc40af9cf2b387ef17820927e439bbbe33 | [
"MIT"
] | null | null | null | accounts/views.py | samaras/bytestore | 8e2f8dfc40af9cf2b387ef17820927e439bbbe33 | [
"MIT"
] | null | null | null | accounts/views.py | samaras/bytestore | 8e2f8dfc40af9cf2b387ef17820927e439bbbe33 | [
"MIT"
] | null | null | null | from django.shortcuts import render_to_response
from .forms import *
from django.contrib.auth.decorators import login_required
from django.contrib.auth import logout
from django.views.decorators.csrf import csrf_protect
from django.http import HttpResponseRedirect
from django.template import RequestContext
@csrf_prot... | 28.211538 | 110 | 0.759373 | 187 | 1,467 | 5.780749 | 0.315508 | 0.055504 | 0.083256 | 0.038853 | 0.055504 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000792 | 0.139741 | 1,467 | 52 | 111 | 28.211538 | 0.855784 | 0.051806 | 0 | 0.105263 | 0 | 0 | 0.087896 | 0.03098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.105263 | 0.184211 | 0.026316 | 0.368421 | 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 |
77b28772f0ad4a9c4563ad6fa4f14122fc956e8e | 618 | py | Python | py_tasc.py | hcpss-banderson/py-tasc | 7a7b4b3743a1375707647574a3a40c374b18c73a | [
"MIT"
] | 1 | 2017-07-19T12:37:31.000Z | 2017-07-19T12:37:31.000Z | py_tasc.py | HCPSS/py-tasc | 7a7b4b3743a1375707647574a3a40c374b18c73a | [
"MIT"
] | 1 | 2016-06-09T18:40:05.000Z | 2016-06-09T18:40:05.000Z | py_tasc.py | hcpss-banderson/py-tasc | 7a7b4b3743a1375707647574a3a40c374b18c73a | [
"MIT"
] | 1 | 2021-05-25T12:24:33.000Z | 2021-05-25T12:24:33.000Z | #!/usr/bin/env python
import os
from assembler import Assembler
from optionresolver import OptionResolver
from patchers import PatchManager, PatchPatcher
# Get the user supplied options
options = OptionResolver()
# Assemble the source code
assembler = Assembler(options.manifest()["projects"], options.destination(), o... | 32.526316 | 104 | 0.800971 | 70 | 618 | 6.985714 | 0.514286 | 0.092025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092233 | 618 | 18 | 105 | 34.333333 | 0.871658 | 0.150485 | 0 | 0 | 0 | 0 | 0.047985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
77bc14e7c032c836a4310a414a8a832122f26169 | 642 | py | Python | json2csv.py | bdunnette/derby_name_generator | 51690025d7c4e1a0dba8da71fbb85570baaeeeca | [
"MIT"
] | null | null | null | json2csv.py | bdunnette/derby_name_generator | 51690025d7c4e1a0dba8da71fbb85570baaeeeca | [
"MIT"
] | 4 | 2020-01-28T22:57:49.000Z | 2020-11-13T18:22:23.000Z | json2csv.py | bdunnette/derby_name_generator | 51690025d7c4e1a0dba8da71fbb85570baaeeeca | [
"MIT"
] | null | null | null | import csv
import json
json_files = ['generated_names', 'registered_names', 'used_names']
for jf in json_files:
infile = open('data/{}.json'.format(jf), 'r')
outfile = open('data/{}.csv'.format(jf), 'w')
print('{} > {}'.format(infile, outfile))
writer = csv.DictWriter(outfile, fieldnames=['na... | 32.1 | 72 | 0.582555 | 76 | 642 | 4.776316 | 0.434211 | 0.096419 | 0.093664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004167 | 0.252336 | 642 | 19 | 73 | 33.789474 | 0.752083 | 0 | 0 | 0 | 1 | 0 | 0.203852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.117647 | 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 |
77be68f59af465d19126dafee090ea62f5ef4125 | 2,176 | py | Python | runway/hooks/cleanup_s3.py | troyready/runway | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | [
"Apache-2.0"
] | null | null | null | runway/hooks/cleanup_s3.py | troyready/runway | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | [
"Apache-2.0"
] | null | null | null | runway/hooks/cleanup_s3.py | troyready/runway | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | [
"Apache-2.0"
] | null | null | null | """CFNgin hook for cleaning up resources prior to CFN stack deletion."""
# TODO move to runway.cfngin.hooks on next major release
import logging
from botocore.exceptions import ClientError
from ..cfngin.lookups.handlers.output import OutputLookup
from ..cfngin.lookups.handlers.rxref import RxrefLookup
from ..cfngin.l... | 35.096774 | 83 | 0.634191 | 249 | 2,176 | 5.39759 | 0.393574 | 0.066964 | 0.044643 | 0.055804 | 0.147321 | 0.072917 | 0 | 0 | 0 | 0 | 0 | 0.005041 | 0.27068 | 2,176 | 61 | 84 | 35.672131 | 0.84184 | 0.091912 | 0 | 0.270833 | 0 | 0 | 0.171079 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.020833 | false | 0 | 0.104167 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77bf2ecef9748586b6a2dac8896799069e53843d | 5,800 | py | Python | mediapub_extensions/ApiWrappers/Snowflake.py | seattletimes/mediapub_extensions | 5b3dd3862f2ef59d494efe57bee679f0787952f4 | [
"Apache-2.0"
] | null | null | null | mediapub_extensions/ApiWrappers/Snowflake.py | seattletimes/mediapub_extensions | 5b3dd3862f2ef59d494efe57bee679f0787952f4 | [
"Apache-2.0"
] | 1 | 2019-08-21T21:53:30.000Z | 2019-08-21T21:53:30.000Z | mediapub_extensions/ApiWrappers/Snowflake.py | seattletimes/mediapub_extensions | 5b3dd3862f2ef59d494efe57bee679f0787952f4 | [
"Apache-2.0"
] | null | null | null | import snowflake.connector as snowcon
import json
import getpass
import sys
class Snowflake():
"""
Handles connections and queries to Snowflake Computing
This class contains methods to connect to the Snowflake service and run
queries on it.
Requires:
snowflake-connector-python: pip instal... | 34.52381 | 165 | 0.58 | 666 | 5,800 | 4.936937 | 0.273273 | 0.036496 | 0.027372 | 0.016727 | 0.131995 | 0.085766 | 0.068127 | 0.068127 | 0.068127 | 0.03528 | 0 | 0.000477 | 0.276552 | 5,800 | 167 | 166 | 34.730539 | 0.783127 | 0.365345 | 0 | 0 | 0 | 0 | 0.151331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126984 | false | 0.15873 | 0.079365 | 0 | 0.349206 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
77c1415a212d5d1d022140adadcb11fdbf2724c0 | 653 | py | Python | UVa Online Judge/v129/12916.py | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | UVa Online Judge/v129/12916.py | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | UVa Online Judge/v129/12916.py | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | # =============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 12916.py
# Description: UVa Online Judge - 12916
# =============================================================================
N = int(inpu... | 27.208333 | 79 | 0.355283 | 63 | 653 | 3.666667 | 0.571429 | 0.069264 | 0.04329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030905 | 0.306279 | 653 | 24 | 80 | 27.208333 | 0.479029 | 0.454824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.133333 | 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 |
77c2a84ba94b9959e2b284142d43e8fadfa6f26f | 268 | py | Python | test.py | adamrehn/docker-script | 440b2a119ff304cff3c698a5b9d1e679154ba5a5 | [
"MIT"
] | 5 | 2018-08-28T15:09:13.000Z | 2020-08-05T13:20:26.000Z | test.py | adamrehn/docker-script | 440b2a119ff304cff3c698a5b9d1e679154ba5a5 | [
"MIT"
] | null | null | null | test.py | adamrehn/docker-script | 440b2a119ff304cff3c698a5b9d1e679154ba5a5 | [
"MIT"
] | 3 | 2019-06-17T18:14:49.000Z | 2019-11-07T10:23:33.000Z | #!/usr/bin/env docker-script
#!python:latest python
import os, sys
details = os.uname()
print('Uname: ', details.sysname, details.release, details.machine)
print('Guest CWD:', os.getcwd())
print('Host CWD: ', os.environ['HOST_CWD'])
print('argv: ', sys.argv)
| 24.363636 | 70 | 0.679104 | 38 | 268 | 4.763158 | 0.578947 | 0.055249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126866 | 268 | 10 | 71 | 26.8 | 0.773504 | 0.179104 | 0 | 0 | 0 | 0 | 0.220183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
77c4906ed898f5765c5f91376752902605a14837 | 9,340 | py | Python | mathscup v2.py | bosscoder88/maths-cup | c3d1d4755286c6fa14a877579cdbdc11402f5c72 | [
"CC0-1.0"
] | 1 | 2020-12-13T19:28:32.000Z | 2020-12-13T19:28:32.000Z | mathscup v2.py | bosscoder88/maths-cup | c3d1d4755286c6fa14a877579cdbdc11402f5c72 | [
"CC0-1.0"
] | null | null | null | mathscup v2.py | bosscoder88/maths-cup | c3d1d4755286c6fa14a877579cdbdc11402f5c72 | [
"CC0-1.0"
] | null | null | null | #### Startup ##
import random
from time import sleep as s
names = []
thirdPlace = []
for x in range(1, 33):
print("Name", x)
name = input("Please enter a name: ")
names.append(name)
#print(names) ## This line is for bug fixing, uncomments if you want to check all the names are in the list.
p... | 35.245283 | 109 | 0.509957 | 1,232 | 9,340 | 3.866883 | 0.148539 | 0.009656 | 0.015113 | 0.039882 | 0.678631 | 0.651973 | 0.644836 | 0.626154 | 0.6144 | 0.612511 | 0 | 0.039263 | 0.239186 | 9,340 | 264 | 110 | 35.378788 | 0.631016 | 0.029336 | 0 | 0.641256 | 0 | 0 | 0.419489 | 0.042303 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008969 | 0 | 0.008969 | 0.390135 | 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 |
77c6181206707ee1bccc346554b686167d34ae86 | 1,282 | py | Python | Python3/Books/Douson/chapter04/hero's_inventory2.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | Python3/Books/Douson/chapter04/hero's_inventory2.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | Python3/Books/Douson/chapter04/hero's_inventory2.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | # Hero's Inventory 2.0
# Demonstrates tuples
# create a tuple with some items and display with a for loop
inventory = ("sword",
"armor",
"shield",
"healing potion")
print("Your items:")
for item in inventory:
print(item)
input("\nPress the enter key to continue.")
# get the... | 27.869565 | 73 | 0.682527 | 191 | 1,282 | 4.581152 | 0.39267 | 0.041143 | 0.064 | 0.077714 | 0.195429 | 0.173714 | 0.109714 | 0 | 0 | 0 | 0 | 0.001919 | 0.187207 | 1,282 | 45 | 74 | 28.488889 | 0.837812 | 0.176287 | 0 | 0.111111 | 0 | 0 | 0.507163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
77c73cfb980dddd0f00259fb140949459a2b3bcc | 4,994 | py | Python | Stream Ciphers/grain-128.py | PitCoder/Cryptography | 42735dc2375b1794b4c4a5b0d029c3b99b91538c | [
"MIT"
] | null | null | null | Stream Ciphers/grain-128.py | PitCoder/Cryptography | 42735dc2375b1794b4c4a5b0d029c3b99b91538c | [
"MIT"
] | null | null | null | Stream Ciphers/grain-128.py | PitCoder/Cryptography | 42735dc2375b1794b4c4a5b0d029c3b99b91538c | [
"MIT"
] | null | null | null | from bitstring import BitArray, BitStream
# Definition of constants
KEY_SIZE = 128
REGISTER_SIZE = 128
LAST_INDEX = 127
INITIALIZATION_CLOCKS = 256
def cipher_clocking(register_b, register_s, counter):
fx = register_s[counter % REGISTER_SIZE] \
^ register_s[(LAST_INDEX - (counter + 7)) % REGISTER_SIZE] ... | 46.240741 | 114 | 0.623148 | 571 | 4,994 | 5.164623 | 0.192644 | 0.134283 | 0.211597 | 0.14649 | 0.556121 | 0.550017 | 0.52628 | 0.310275 | 0.113937 | 0.113937 | 0 | 0.109371 | 0.245695 | 4,994 | 107 | 115 | 46.672897 | 0.67348 | 0.154385 | 0 | 0.026316 | 0 | 0 | 0.023283 | 0.014255 | 0 | 0 | 0.016631 | 0 | 0 | 1 | 0.039474 | false | 0 | 0.013158 | 0 | 0.092105 | 0.078947 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77c7afef5c74a339ce18ec675fedbac6397faeca | 2,111 | py | Python | microanalyst/model/filenames.py | bzaczynski/microanalyst | 915d8b3111b98a5e369dbcfe0b88c84ade9faec8 | [
"MIT"
] | 3 | 2017-06-06T18:54:28.000Z | 2021-06-11T13:06:40.000Z | microanalyst/model/filenames.py | bzaczynski/microanalyst | 915d8b3111b98a5e369dbcfe0b88c84ade9faec8 | [
"MIT"
] | null | null | null | microanalyst/model/filenames.py | bzaczynski/microanalyst | 915d8b3111b98a5e369dbcfe0b88c84ade9faec8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# The MIT License (MIT)
#
# Copyright (c) 2013 Bartosz Zaczynski
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... | 36.396552 | 79 | 0.720512 | 290 | 2,111 | 5.203448 | 0.482759 | 0.058317 | 0.01723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002392 | 0.207958 | 2,111 | 57 | 80 | 37.035088 | 0.90012 | 0.588347 | 0 | 0 | 0 | 0 | 0.036058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
77c8d398ac338ba0bf2a0226bf85b373294388f7 | 394 | py | Python | weiboCrawler/migrations/0020_auto_20210501_0731.py | SongYuQiu/Social-Network-Portrait-Analysis-System-BackCode | 392764ec4944f4df2b9a2cdc9901f9cf32918988 | [
"MIT"
] | null | null | null | weiboCrawler/migrations/0020_auto_20210501_0731.py | SongYuQiu/Social-Network-Portrait-Analysis-System-BackCode | 392764ec4944f4df2b9a2cdc9901f9cf32918988 | [
"MIT"
] | null | null | null | weiboCrawler/migrations/0020_auto_20210501_0731.py | SongYuQiu/Social-Network-Portrait-Analysis-System-BackCode | 392764ec4944f4df2b9a2cdc9901f9cf32918988 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2021-05-01 07:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('weiboCrawler', '0019_weibouser_profile_image_url'),
]
operations = [
migrations.RenameField(
model_name='weibouser',
old_name=... | 20.736842 | 61 | 0.619289 | 42 | 394 | 5.571429 | 0.690476 | 0.102564 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06338 | 0.279188 | 394 | 18 | 62 | 21.888889 | 0.760563 | 0.109137 | 0 | 0 | 1 | 0 | 0.232092 | 0.091691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77cdd4cfa1ba951c628b06ba3c433937e7e39f69 | 2,017 | py | Python | web/posts/tests.py | arturgafizov/webtron_social_network | 38dc166ea8d099ca3a0967f378d751f758eae649 | [
"MIT"
] | null | null | null | web/posts/tests.py | arturgafizov/webtron_social_network | 38dc166ea8d099ca3a0967f378d751f758eae649 | [
"MIT"
] | null | null | null | web/posts/tests.py | arturgafizov/webtron_social_network | 38dc166ea8d099ca3a0967f378d751f758eae649 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from rest_framework.reverse import reverse_lazy
from rest_framework.test import APITestCase
from rest_framework import status
from django.contrib.auth.hashers import make_password
User = get_user_model()
class PostApiTestCase(APITestCase):
@classmethod
def setU... | 35.385965 | 91 | 0.646505 | 236 | 2,017 | 5.360169 | 0.283898 | 0.056917 | 0.071146 | 0.114625 | 0.52253 | 0.475889 | 0.4 | 0.4 | 0.4 | 0.362055 | 0 | 0.013645 | 0.236986 | 2,017 | 56 | 92 | 36.017857 | 0.808317 | 0 | 0 | 0.354167 | 0 | 0 | 0.114527 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 1 | 0.083333 | false | 0.0625 | 0.104167 | 0 | 0.208333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77ced5789b62f0ec5d0ecee1f28883d50d318adb | 882 | py | Python | SystemProgramming/models/parsers.py | Savital/BMSTU | 30b6b1f3e79e1286a8cf5b3da7a4199a215aebe1 | [
"MIT"
] | null | null | null | SystemProgramming/models/parsers.py | Savital/BMSTU | 30b6b1f3e79e1286a8cf5b3da7a4199a215aebe1 | [
"MIT"
] | null | null | null | SystemProgramming/models/parsers.py | Savital/BMSTU | 30b6b1f3e79e1286a8cf5b3da7a4199a215aebe1 | [
"MIT"
] | null | null | null | # Savital https://github.com/Savital
# Reads data from proc
import os
class ProcReader():
def __init__(self):
super(ProcReader, self).__init__()
self.construct()
def __del__(self):
pass
def construct(self):
pass
def get(self, path):
if not os.path.exists(path... | 22.05 | 44 | 0.422902 | 90 | 882 | 4.011111 | 0.511111 | 0.041551 | 0.060942 | 0.099723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004211 | 0.461451 | 882 | 39 | 45 | 22.615385 | 0.755789 | 0.062358 | 0 | 0.193548 | 0 | 0 | 0.004854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.064516 | 0.032258 | 0 | 0.258065 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
77d0551b120b7e247faec73e3785aed4c6572d10 | 1,575 | py | Python | blog/tests.py | kkampardi/DjangoTesting | 1092c41d9d4930f0512fac79b4d95836c70e5f3a | [
"MIT"
] | null | null | null | blog/tests.py | kkampardi/DjangoTesting | 1092c41d9d4930f0512fac79b4d95836c70e5f3a | [
"MIT"
] | 3 | 2017-05-05T09:47:40.000Z | 2017-05-09T07:28:36.000Z | blog/tests.py | kkampardi/DjangoTesting | 1092c41d9d4930f0512fac79b4d95836c70e5f3a | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
from .models import Entry
class EntryModelTest(TestCase):
"""Ensure that the a blog's entry string representation is qual to its title"""
def test_string_representation(self):
entry = Entry(title="This is a test title")
... | 37.5 | 83 | 0.68254 | 208 | 1,575 | 5.067308 | 0.307692 | 0.039848 | 0.148008 | 0.079696 | 0.352941 | 0.352941 | 0.321632 | 0.282732 | 0.225806 | 0.225806 | 0 | 0.010929 | 0.186667 | 1,575 | 42 | 84 | 37.5 | 0.811866 | 0.080635 | 0 | 0.266667 | 0 | 0 | 0.106398 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.233333 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77d4f48663c89f32c4be3c6b61e022e849edb12a | 1,304 | py | Python | build_user_list.py | BennettDixon/sql_to_contact_list | 23497119628622b4bf9e660ec2c4b12efba8b081 | [
"MIT"
] | null | null | null | build_user_list.py | BennettDixon/sql_to_contact_list | 23497119628622b4bf9e660ec2c4b12efba8b081 | [
"MIT"
] | null | null | null | build_user_list.py | BennettDixon/sql_to_contact_list | 23497119628622b4bf9e660ec2c4b12efba8b081 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""script for testing connection to database"""
import pyodbc
import sys
import os
from models.user import User
import models
driver = os.environ.get('CONTACT_SQL_DRIVER')
server = os.environ.get('CONTACT_SQL_SERVER')
database = os.environ.get('CONTACT_SQL_DB')
username = os.environ.get('CONTACT... | 28.977778 | 127 | 0.68635 | 183 | 1,304 | 4.797814 | 0.508197 | 0.051253 | 0.068337 | 0.1082 | 0.207289 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.179448 | 1,304 | 44 | 128 | 29.636364 | 0.811215 | 0.101227 | 0 | 0.054054 | 0 | 0.027027 | 0.280687 | 0.080687 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.081081 | 0.135135 | 0 | 0.135135 | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77de70d6830250aef1c075b8acbbc068d1dc4029 | 348 | py | Python | setup.py | SimonLarsen/python-endktheme | 2c942a682eb258f1d8b5fee80b93b9565a7ebde7 | [
"MIT"
] | null | null | null | setup.py | SimonLarsen/python-endktheme | 2c942a682eb258f1d8b5fee80b93b9565a7ebde7 | [
"MIT"
] | null | null | null | setup.py | SimonLarsen/python-endktheme | 2c942a682eb258f1d8b5fee80b93b9565a7ebde7 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
import endktheme
setup(
name="endktheme",
description="Visualization themes following Energinet's design guide.",
version=endktheme.__version__,
author="Simon J. Larsen",
author_email="simonhffh@gmail.com",
license="MIT",
packages=find_packages(),... | 24.857143 | 75 | 0.724138 | 38 | 348 | 6.421053 | 0.763158 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163793 | 348 | 13 | 76 | 26.769231 | 0.838488 | 0 | 0 | 0 | 0 | 0 | 0.293103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77e1bd1a557254805b1a9b3ba5eb391f9c2baece | 1,630 | py | Python | async_downloads/views.py | QuickRelease/django-async-downloads | 7a0090e94fe8b5ee78f6175ed877a9b04aa475d7 | [
"MIT"
] | 1 | 2021-08-19T23:56:23.000Z | 2021-08-19T23:56:23.000Z | async_downloads/views.py | QuickRelease/django-async-downloads | 7a0090e94fe8b5ee78f6175ed877a9b04aa475d7 | [
"MIT"
] | 11 | 2020-07-22T15:21:14.000Z | 2022-03-22T13:02:37.000Z | async_downloads/views.py | QuickRelease/django-async-downloads | 7a0090e94fe8b5ee78f6175ed877a9b04aa475d7 | [
"MIT"
] | 1 | 2022-01-05T07:45:42.000Z | 2022-01-05T07:45:42.000Z | import os
from django.contrib.auth.decorators import login_required
from django.core.cache import cache
from django.core.files.storage import default_storage
from django.http import JsonResponse, HttpResponse
from django.template.loader import render_to_string
from async_downloads.cache import get_collection_key
from... | 32.6 | 82 | 0.698773 | 206 | 1,630 | 5.368932 | 0.441748 | 0.045208 | 0.025316 | 0.036166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001563 | 0.214724 | 1,630 | 49 | 83 | 33.265306 | 0.8625 | 0.152761 | 0 | 0.052632 | 0 | 0 | 0.043636 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 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 |
77e1ec7bc5d891f1b7dd17ef8b326f42e0381896 | 371 | py | Python | app/api_1_0/books.py | zheng-zy/flask_app | f9a720d76906bfbd48e2b28cf10c0923b9314649 | [
"Apache-2.0"
] | null | null | null | app/api_1_0/books.py | zheng-zy/flask_app | f9a720d76906bfbd48e2b28cf10c0923b9314649 | [
"Apache-2.0"
] | null | null | null | app/api_1_0/books.py | zheng-zy/flask_app | f9a720d76906bfbd48e2b28cf10c0923b9314649 | [
"Apache-2.0"
] | null | null | null | #!usr/bin/env python
# coding=utf-8
# Created by zhezhiyong@163.com on 2016/11/17.
from flask import jsonify
from . import api
from .. import mongodb
@api.route('/books/')
def get_books():
# id = mongodb.db.book.insert({'test':1})
books = mongodb.db.Book.find({})
for book in books:
print book
... | 18.55 | 46 | 0.619946 | 55 | 371 | 4.163636 | 0.709091 | 0.087336 | 0.113537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045296 | 0.226415 | 371 | 19 | 47 | 19.526316 | 0.752613 | 0.318059 | 0 | 0 | 0 | 0 | 0.044177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77f69a445572611cb4e740401ece731d7139aa76 | 842 | py | Python | registro/migrations/0001_initial.py | lokcito/salute | 655a9407ca725785527f486b60162e406d140bfa | [
"bzip2-1.0.6"
] | null | null | null | registro/migrations/0001_initial.py | lokcito/salute | 655a9407ca725785527f486b60162e406d140bfa | [
"bzip2-1.0.6"
] | null | null | null | registro/migrations/0001_initial.py | lokcito/salute | 655a9407ca725785527f486b60162e406d140bfa | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-22 00:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Persona',
fields=[
('id', models.AutoField(... | 32.384615 | 114 | 0.589074 | 93 | 842 | 5.215054 | 0.645161 | 0.090722 | 0.11134 | 0.148454 | 0.107216 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036066 | 0.275534 | 842 | 25 | 115 | 33.68 | 0.759016 | 0.053444 | 0 | 0 | 1 | 0 | 0.110692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 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 |
7ac3121e87d675bdde978afec9d75c5cc0beed90 | 537 | py | Python | geo/models/keras/evaluation.py | stefantaubert/life | 14fe8c0d631eb22f6c3f9e41430dbcfcd1718012 | [
"MIT"
] | 2 | 2018-06-28T13:02:35.000Z | 2018-12-25T08:58:26.000Z | geo/models/keras/evaluation.py | stefantaubert/life | 14fe8c0d631eb22f6c3f9e41430dbcfcd1718012 | [
"MIT"
] | null | null | null | geo/models/keras/evaluation.py | stefantaubert/life | 14fe8c0d631eb22f6c3f9e41430dbcfcd1718012 | [
"MIT"
] | null | null | null | import module_support_main
import pandas as pd
import mrr
import numpy as np
import settings_main as settings
import get_ranks
def evaluate_results_from_files(submission_path, gt_path, species_map_path):
print("Evaluate submission...")
print("Load data...")
df = pd.read_csv(submission_path, sep=';')
y ... | 29.833333 | 76 | 0.724395 | 81 | 537 | 4.518519 | 0.444444 | 0.10929 | 0.071038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006637 | 0.158287 | 537 | 17 | 77 | 31.588235 | 0.803097 | 0 | 0 | 0 | 0 | 0 | 0.126629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.466667 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7ac89552408a022b01f6bab28396624e4b438a5a | 2,168 | py | Python | tests/meltano/core/test_utils.py | Mu-L/meltano | 7bf8f370608ee9a8833b33ea94112c6e219c8161 | [
"MIT"
] | null | null | null | tests/meltano/core/test_utils.py | Mu-L/meltano | 7bf8f370608ee9a8833b33ea94112c6e219c8161 | [
"MIT"
] | null | null | null | tests/meltano/core/test_utils.py | Mu-L/meltano | 7bf8f370608ee9a8833b33ea94112c6e219c8161 | [
"MIT"
] | null | null | null | import pytest # noqa: F401
from meltano.core.utils import flatten, nest, pop_at_path, set_at_path
def test_nest():
subject = {}
one_deep = nest(subject, "a.b")
one_deep["val"] = 1
assert one_deep == {"val": 1}
two_deep = nest(subject, "a.b.c")
two_deep["val"] = 2
assert one_deep == {"v... | 27.1 | 72 | 0.565959 | 318 | 2,168 | 3.688679 | 0.166667 | 0.197783 | 0.184143 | 0.127877 | 0.571185 | 0.457801 | 0.396419 | 0.336743 | 0.290708 | 0.28474 | 0 | 0.005257 | 0.210332 | 2,168 | 79 | 73 | 27.443038 | 0.679907 | 0.015221 | 0 | 0.264151 | 0 | 0 | 0.152439 | 0.029081 | 0 | 0 | 0 | 0 | 0.358491 | 1 | 0.075472 | false | 0 | 0.037736 | 0 | 0.113208 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ac9a5104e19b66025a9a8ecc99a6c8ec491db7d | 927 | py | Python | phc/easy/diagnostic_report.py | taylordeatri/phc-sdk-py | 8f3ec6ac44e50c7194f174fd0098de390886693d | [
"MIT"
] | 1 | 2020-07-22T12:46:58.000Z | 2020-07-22T12:46:58.000Z | phc/easy/diagnostic_report.py | taylordeatri/phc-sdk-py | 8f3ec6ac44e50c7194f174fd0098de390886693d | [
"MIT"
] | 54 | 2019-10-09T16:19:04.000Z | 2022-01-19T20:28:59.000Z | phc/easy/diagnostic_report.py | taylordeatri/phc-sdk-py | 8f3ec6ac44e50c7194f174fd0098de390886693d | [
"MIT"
] | 2 | 2019-10-30T19:54:43.000Z | 2020-12-03T18:57:15.000Z | import pandas as pd
from phc.easy.frame import Frame
from phc.easy.abstract.fhir_service_patient_item import FhirServicePatientItem
class DiagnosticReport(FhirServicePatientItem):
@staticmethod
def table_name():
return "diagnostic_report"
@staticmethod
def patient_id_prefixes():
retu... | 26.485714 | 78 | 0.638619 | 91 | 927 | 6.252747 | 0.538462 | 0.13181 | 0.089631 | 0.121265 | 0.163445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265372 | 927 | 34 | 79 | 27.264706 | 0.835536 | 0 | 0 | 0.185185 | 0 | 0 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.111111 | 0.185185 | 0.518519 | 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 |
7ada8d12418618cb46c91bcc7ce0df76b2c106a3 | 1,645 | py | Python | metagenscope_cli/cli/run_cli.py | LongTailBio/python-metagenscope | 0c29042774a09e832fcecd0662657ac6e4895dea | [
"MIT"
] | null | null | null | metagenscope_cli/cli/run_cli.py | LongTailBio/python-metagenscope | 0c29042774a09e832fcecd0662657ac6e4895dea | [
"MIT"
] | 6 | 2018-10-30T23:51:55.000Z | 2018-11-01T20:41:23.000Z | metagenscope_cli/cli/run_cli.py | LongTailBio/python-metagenscope | 0c29042774a09e832fcecd0662657ac6e4895dea | [
"MIT"
] | null | null | null | """CLI to run commands on MGS server."""
from sys import stderr
import click
from .utils import add_authorization
@click.group()
def run():
"""Run actions on the server."""
pass
@run.group()
def middleware():
"""Run middleware."""
pass
@middleware.command(name='group')
@add_authorization()
@clic... | 29.909091 | 90 | 0.646809 | 208 | 1,645 | 4.971154 | 0.293269 | 0.04352 | 0.077369 | 0.052224 | 0.332689 | 0.249516 | 0.249516 | 0.191489 | 0.191489 | 0.119923 | 0 | 0.003771 | 0.193921 | 1,645 | 54 | 91 | 30.462963 | 0.776018 | 0.099696 | 0 | 0.307692 | 0 | 0 | 0.227491 | 0.109966 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.051282 | 0.076923 | 0 | 0.179487 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7ae53592b868323acd8715b4da2629ff4da665fd | 301 | py | Python | module08-mongodb.programming.using.pymongo/hr/domain.py | deepcloudlabs/dcl162-2020-sep-09 | dc05aa6e644610fe0cdb8f9de1074763fc77a3bb | [
"MIT"
] | null | null | null | module08-mongodb.programming.using.pymongo/hr/domain.py | deepcloudlabs/dcl162-2020-sep-09 | dc05aa6e644610fe0cdb8f9de1074763fc77a3bb | [
"MIT"
] | null | null | null | module08-mongodb.programming.using.pymongo/hr/domain.py | deepcloudlabs/dcl162-2020-sep-09 | dc05aa6e644610fe0cdb8f9de1074763fc77a3bb | [
"MIT"
] | 1 | 2020-10-04T10:58:31.000Z | 2020-10-04T10:58:31.000Z | class Employee():
def __init__(self,identity, fullname, salary, email, birth_year,iban):
self.identity = identity
self.fullname = fullname
self.salary = salary
self.email = email
self.birth_year = birth_year
self.iban = iban
self.version = 1 | 33.444444 | 74 | 0.621262 | 35 | 301 | 5.142857 | 0.4 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.292359 | 301 | 9 | 75 | 33.444444 | 0.840376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ae5c9480c9d4736f4023646d3b8790e5fc94459 | 924 | py | Python | setup.py | impergator493/PySeus | faa7e5741acea9c3b8e0acad066905fa3b1c301b | [
"X11"
] | 2 | 2020-02-17T09:20:50.000Z | 2022-03-22T13:05:22.000Z | setup.py | impergator493/PySeus | faa7e5741acea9c3b8e0acad066905fa3b1c301b | [
"X11"
] | null | null | null | setup.py | impergator493/PySeus | faa7e5741acea9c3b8e0acad066905fa3b1c301b | [
"X11"
] | 1 | 2021-05-26T08:14:58.000Z | 2021-05-26T08:14:58.000Z | from io import open
from setuptools import setup, find_packages
setup(
name='pyseus',
version='0.1',
description='PySeus is a minimal viewer for medical imaging data.',
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
url='http://github... | 24.315789 | 71 | 0.58658 | 101 | 924 | 5.217822 | 0.752475 | 0.045541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.264069 | 924 | 37 | 72 | 24.972973 | 0.763235 | 0 | 0 | 0.055556 | 0 | 0 | 0.334416 | 0.027056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 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 |
7af03651a5bc87d941460e143a24cf2c0a69bf1a | 516 | py | Python | seminar-roulette/backend/migrations/0017_auto_20201029_2151.py | olliegardner/seminar-roulette | c8330258778dd7f71b1289c5dfe611e5637cf71d | [
"MIT"
] | null | null | null | seminar-roulette/backend/migrations/0017_auto_20201029_2151.py | olliegardner/seminar-roulette | c8330258778dd7f71b1289c5dfe611e5637cf71d | [
"MIT"
] | null | null | null | seminar-roulette/backend/migrations/0017_auto_20201029_2151.py | olliegardner/seminar-roulette | c8330258778dd7f71b1289c5dfe611e5637cf71d | [
"MIT"
] | 1 | 2020-10-07T16:21:59.000Z | 2020-10-07T16:21:59.000Z | # Generated by Django 3.1.2 on 2020-10-29 21:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('backend', '0016_auto_20201029_2133'),
]
operations = [
migrations.AlterModelOptions(
name='seminarhistory',
options={'verbos... | 23.454545 | 65 | 0.606589 | 51 | 516 | 6.019608 | 0.784314 | 0.117264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092643 | 0.28876 | 516 | 21 | 66 | 24.571429 | 0.743869 | 0.087209 | 0 | 0.133333 | 1 | 0 | 0.266525 | 0.049041 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 |
7af2b9d69eec342a533a8a7c40f6317b22a86767 | 3,285 | py | Python | EGGS_labrad/clients/ARTIQ_client/DAC_client.py | EGGS-Experiment/EGGS_Control | c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b | [
"MIT"
] | 2 | 2021-12-26T05:00:54.000Z | 2021-12-30T17:15:49.000Z | EGGS_labrad/clients/ARTIQ_client/DAC_client.py | EGGS-Experiment/EGGS_Control | c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b | [
"MIT"
] | null | null | null | EGGS_labrad/clients/ARTIQ_client/DAC_client.py | EGGS-Experiment/EGGS_Control | c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b | [
"MIT"
] | null | null | null | from twisted.internet.defer import inlineCallbacks
from EGGS_labrad.clients import GUIClient
from EGGS_labrad.config.device_db import device_db
from EGGS_labrad.clients.ARTIQ_client.DAC_gui import DAC_gui
from copy import deepcopy
DACID = 659312
class DAC_client(GUIClient):
"""
Client for an ARTIQ Fastino/... | 37.758621 | 109 | 0.60274 | 383 | 3,285 | 4.921671 | 0.287206 | 0.068966 | 0.023873 | 0.04244 | 0.249337 | 0.202653 | 0.202653 | 0.129443 | 0.129443 | 0.129443 | 0 | 0.0031 | 0.312633 | 3,285 | 86 | 110 | 38.197674 | 0.831709 | 0.078234 | 0 | 0.05 | 0 | 0 | 0.029294 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.1 | false | 0.016667 | 0.1 | 0 | 0.266667 | 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 |
7af6e15055517b76f8b5a8e5e342b76b70bd47f6 | 6,156 | py | Python | apps/profiles/views.py | ezl/hnofficehours | 3729eca064998bd2d0a9ba1b4fe7e56ccc57324b | [
"MIT"
] | 2 | 2015-11-05T13:47:44.000Z | 2020-07-20T19:57:45.000Z | apps/profiles/views.py | ezl/hnofficehours | 3729eca064998bd2d0a9ba1b4fe7e56ccc57324b | [
"MIT"
] | null | null | null | apps/profiles/views.py | ezl/hnofficehours | 3729eca064998bd2d0a9ba1b4fe7e56ccc57324b | [
"MIT"
] | null | null | null | from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render_to_response
from datetime import datetime, timedelta
from django.contrib.auth.models import User
from django.contrib import messages
from django.shortcuts import render_to_response, get_object_or_404
from django.template impo... | 39.210191 | 98 | 0.63564 | 688 | 6,156 | 5.515988 | 0.235465 | 0.023715 | 0.02108 | 0.017391 | 0.302767 | 0.261924 | 0.261924 | 0.240316 | 0.207115 | 0.207115 | 0 | 0.002221 | 0.268519 | 6,156 | 156 | 99 | 39.461538 | 0.840551 | 0.031027 | 0 | 0.380597 | 0 | 0 | 0.06782 | 0.017126 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014925 | 0.11194 | 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 |
7af83d85dcf1ded1b08cade5086590e8e4f45487 | 254 | py | Python | Maze.py | rcpsilva/BCC740_2021_2_Artificial_Intelligence | fad7c02d155ae377e1f8c2a6c941ea45ec3c2fe6 | [
"MIT"
] | null | null | null | Maze.py | rcpsilva/BCC740_2021_2_Artificial_Intelligence | fad7c02d155ae377e1f8c2a6c941ea45ec3c2fe6 | [
"MIT"
] | null | null | null | Maze.py | rcpsilva/BCC740_2021_2_Artificial_Intelligence | fad7c02d155ae377e1f8c2a6c941ea45ec3c2fe6 | [
"MIT"
] | 5 | 2022-03-23T12:21:31.000Z | 2022-03-28T16:47:25.000Z | from pyamaze import maze,COLOR,agent
from environments import Maze
from agents import MazeAgentDFS, MazeAgentBranchAndBound, MazeAgentAStar
env = Maze(8,8)
ag = MazeAgentAStar(env)
#ag = MazeAgentBranchAndBound(env,40)
#ag = MazeAgentDFS(env)
ag.act()
| 23.090909 | 72 | 0.795276 | 32 | 254 | 6.3125 | 0.5 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017778 | 0.114173 | 254 | 10 | 73 | 25.4 | 0.88 | 0.228346 | 0 | 0 | 0 | 0 | 0 | 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 |
bb11c19b934ae7836905268d9b3aaa294ea05171 | 602 | py | Python | tests/test_upload_client.py | hepoo6/gdc-client | 4453c6412aca55bcc458d710de148a4cabf95cd6 | [
"Apache-2.0"
] | null | null | null | tests/test_upload_client.py | hepoo6/gdc-client | 4453c6412aca55bcc458d710de148a4cabf95cd6 | [
"Apache-2.0"
] | null | null | null | tests/test_upload_client.py | hepoo6/gdc-client | 4453c6412aca55bcc458d710de148a4cabf95cd6 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from gdc_client.upload.client import create_resume_path
class UploadClientTest(TestCase):
def setup(self):
pass
def test_create_resume_path(self):
# don't need to test if there's no file given
# that is checked in multipart_upload()
tests = ["/pa... | 28.666667 | 69 | 0.611296 | 81 | 602 | 4.395062 | 0.481481 | 0.117978 | 0.134831 | 0.073034 | 0.106742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27907 | 602 | 20 | 70 | 30.1 | 0.820277 | 0.134552 | 0 | 0 | 0 | 0 | 0.198842 | 0.090734 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.142857 | false | 0.071429 | 0.142857 | 0 | 0.357143 | 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 |
bb13062c6af81b0c777ea745fa403b4616b78912 | 1,267 | py | Python | Botnet-Generator/HTTPSocket.py | m4ta1l/KratosKnife | ff80631c2d1d865806e2da1e810239aa401891e8 | [
"BSD-3-Clause"
] | 155 | 2020-09-04T12:26:10.000Z | 2022-03-09T02:20:27.000Z | Botnet-Generator/HTTPSocket.py | m4ta1l/KratosKnife | ff80631c2d1d865806e2da1e810239aa401891e8 | [
"BSD-3-Clause"
] | 14 | 2020-12-27T06:25:20.000Z | 2022-03-01T04:27:01.000Z | Botnet-Generator/HTTPSocket.py | m4ta1l/KratosKnife | ff80631c2d1d865806e2da1e810239aa401891e8 | [
"BSD-3-Clause"
] | 57 | 2020-10-11T15:21:35.000Z | 2022-03-23T19:46:30.000Z | import requests, base64
class HTTPSocket:
def __init__(self, host, victim_id):
self.host = host
self.victim_id = victim_id
def _GET(self, filename, request):
requests.get(url=self.host + filename, params=request)
def _POST(self, filename, request):
requests.post... | 35.194444 | 123 | 0.595107 | 146 | 1,267 | 5.061644 | 0.328767 | 0.075778 | 0.048714 | 0.073072 | 0.097429 | 0.097429 | 0.097429 | 0 | 0 | 0 | 0 | 0.021299 | 0.258879 | 1,267 | 36 | 124 | 35.194444 | 0.765708 | 0 | 0 | 0 | 0 | 0 | 0.068938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.04 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb1fdf7adb2c4dc824a85213461cdd3a0e0c6c0f | 443 | py | Python | Kalpurnia/items.py | JasonAnx/Kalpurnia | 05760d4d475c6cee9c2158a34bb5fc2c20adb0bf | [
"MIT"
] | 4 | 2017-07-12T06:21:24.000Z | 2018-12-21T15:05:48.000Z | Kalpurnia/items.py | JasonAnx/Kalpurnia | 05760d4d475c6cee9c2158a34bb5fc2c20adb0bf | [
"MIT"
] | null | null | null | Kalpurnia/items.py | JasonAnx/Kalpurnia | 05760d4d475c6cee9c2158a34bb5fc2c20adb0bf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class Url(scrapy.Item):
# define the fields for your item here like:
key = scrapy.Field()
url = scrapy.Field()
pass
class Posting(scrap... | 21.095238 | 51 | 0.668172 | 64 | 443 | 4.609375 | 0.515625 | 0.149153 | 0.108475 | 0.128814 | 0.298305 | 0.298305 | 0.298305 | 0.298305 | 0.298305 | 0.298305 | 0 | 0.002874 | 0.214447 | 443 | 21 | 52 | 21.095238 | 0.844828 | 0.507901 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.222222 | 0.111111 | 0 | 0.777778 | 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 |
bb238153dbf091113a90e51973cf9de922375fa2 | 1,832 | py | Python | server/main_app/views.py | impatrq/safe | e7ffd6a052304aceb4dd582df44032a29564f555 | [
"MIT"
] | 1 | 2021-07-13T23:01:56.000Z | 2021-07-13T23:01:56.000Z | server/main_app/views.py | impatrq/safe | e7ffd6a052304aceb4dd582df44032a29564f555 | [
"MIT"
] | null | null | null | server/main_app/views.py | impatrq/safe | e7ffd6a052304aceb4dd582df44032a29564f555 | [
"MIT"
] | null | null | null | import os
import json
import requests
from django.http.response import HttpResponse, JsonResponse
from django.conf import settings
from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
from django.contrib.auth import login as auth_login, logout as auth_logout
from api_t... | 33.925926 | 107 | 0.694869 | 240 | 1,832 | 5.183333 | 0.270833 | 0.067524 | 0.106913 | 0.072347 | 0.266077 | 0.249196 | 0.151125 | 0.151125 | 0.102894 | 0.102894 | 0 | 0 | 0.158297 | 1,832 | 54 | 108 | 33.925926 | 0.806744 | 0.012555 | 0 | 0.142857 | 0 | 0 | 0.142146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.238095 | 0.071429 | 0.619048 | 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 |
bb23d6cb8be15545236f6f64ea4106fde445f291 | 1,767 | py | Python | threedi_settings/models.py | nens/threedi-settings | 578e30edd4e71b38ebc61363b3777e7036906dbc | [
"MIT"
] | null | null | null | threedi_settings/models.py | nens/threedi-settings | 578e30edd4e71b38ebc61363b3777e7036906dbc | [
"MIT"
] | null | null | null | threedi_settings/models.py | nens/threedi-settings | 578e30edd4e71b38ebc61363b3777e7036906dbc | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from enum import Enum
from typing import List, Optional
@dataclass
class BaseConfig:
""""""
uid: str # Unique id of setting
sim_uid: str
@dataclass
class PhysicalSimulationConfig(BaseConfig):
use_advection_1d: int
use_advection_2d: int
@dataclass
clas... | 23.25 | 66 | 0.764573 | 212 | 1,767 | 6 | 0.433962 | 0.066038 | 0.040881 | 0.044025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.185059 | 1,767 | 75 | 67 | 23.56 | 0.876389 | 0.011319 | 0 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050847 | 0 | 0.864407 | 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 |
bb2ca45bc470c22818c168cb989383dbf565e235 | 3,360 | py | Python | modules/dataproviders/mldataprovider.py | imdatsolak/bender | e20a5c7553d0db60440573b4fc3e907d6a8d5fad | [
"BSD-3-Clause"
] | null | null | null | modules/dataproviders/mldataprovider.py | imdatsolak/bender | e20a5c7553d0db60440573b4fc3e907d6a8d5fad | [
"BSD-3-Clause"
] | null | null | null | modules/dataproviders/mldataprovider.py | imdatsolak/bender | e20a5c7553d0db60440573b4fc3e907d6a8d5fad | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
import logging
import os
from modules.mlbendermodule import MLBenderModule
"""
Class MLDataProvider as described at:
https://wiki.ml.de/pages/viewpage.action?pageId=7144585
Copyright (c) 2019 Imdat Solak
All Rights Res... | 37.333333 | 112 | 0.600893 | 292 | 3,360 | 6.869863 | 0.438356 | 0.038883 | 0.061815 | 0.052343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007729 | 0.306845 | 3,360 | 89 | 113 | 37.752809 | 0.853585 | 0.037798 | 0 | 0.029851 | 0 | 0 | 0.079542 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.119403 | false | 0 | 0.059701 | 0.044776 | 0.328358 | 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 |
bb3190ae66c1e67dd51acbaf941efef659b043cd | 3,495 | py | Python | train/compute/python/examples/pytorch/run_op_split_table_batched_embeddings.py | caogao/param | 9de2602c894df264a004c352ee16abc14f93da76 | [
"MIT"
] | 34 | 2020-10-07T23:55:19.000Z | 2022-03-15T03:18:23.000Z | train/compute/python/examples/pytorch/run_op_split_table_batched_embeddings.py | caogao/param | 9de2602c894df264a004c352ee16abc14f93da76 | [
"MIT"
] | 33 | 2020-10-09T23:57:45.000Z | 2022-03-24T08:15:35.000Z | train/compute/python/examples/pytorch/run_op_split_table_batched_embeddings.py | caogao/param | 9de2602c894df264a004c352ee16abc14f93da76 | [
"MIT"
] | 16 | 2020-10-08T12:43:08.000Z | 2022-03-04T17:09:15.000Z | import torch
from fbgemm_gpu.split_table_batched_embeddings_ops import PoolingMode
from ...lib import pytorch as lib_pytorch
from ...lib.config import make_op_config
from ...lib.init_helper import load_modules
from ...lib.pytorch.config_util import (
ExecutionPass,
create_op_args,
create_op_info,
get_b... | 32.971698 | 88 | 0.67382 | 420 | 3,495 | 5.369048 | 0.32619 | 0.021286 | 0.019512 | 0.017738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008124 | 0.225179 | 3,495 | 105 | 89 | 33.285714 | 0.824594 | 0.25608 | 0 | 0 | 0 | 0 | 0.160341 | 0.044152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0.072464 | 0.115942 | 0 | 0.130435 | 0.072464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bb31ec1a332dbdfa82d99d7fc7a29ce3ab110102 | 982 | py | Python | src/login.py | kushalnaidu/showdown-battle-bot | 00c2d4f0172fd7a545a1bcbc1c2b21283314151b | [
"MIT"
] | 22 | 2018-01-31T12:30:29.000Z | 2021-12-22T01:12:15.000Z | src/login.py | kushalnaidu/showdown-battle-bot | 00c2d4f0172fd7a545a1bcbc1c2b21283314151b | [
"MIT"
] | 4 | 2018-09-04T14:48:46.000Z | 2022-03-09T20:09:28.000Z | src/login.py | kushalnaidu/showdown-battle-bot | 00c2d4f0172fd7a545a1bcbc1c2b21283314151b | [
"MIT"
] | 16 | 2018-08-23T19:30:53.000Z | 2021-12-08T06:18:16.000Z | import sys
import json
import requests
from src.senders import sender
async def log_in(websocket, challid, chall):
"""
Login in function. Send post request to showdown server.
:param websocket: Websocket stream
:param challid: first part of login challstr sent by server
:param chall: second part o... | 37.769231 | 100 | 0.552953 | 106 | 982 | 5.113208 | 0.59434 | 0.04059 | 0.04059 | 0.070111 | 0.114391 | 0.114391 | 0.114391 | 0 | 0 | 0 | 0 | 0.013493 | 0.320774 | 982 | 25 | 101 | 39.28 | 0.7991 | 0 | 0 | 0 | 0 | 0 | 0.147849 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0 | false | 0.117647 | 0.235294 | 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 |
bb33404ce71f2b88413dcd54b52425bf86472df8 | 561 | py | Python | launch/sick_ldmrs.launch.py | Kaju-Bubanja/sick_scan2 | 9a518b8e88d8515e25168b1860e7bee3af79f1da | [
"Apache-2.0"
] | null | null | null | launch/sick_ldmrs.launch.py | Kaju-Bubanja/sick_scan2 | 9a518b8e88d8515e25168b1860e7bee3af79f1da | [
"Apache-2.0"
] | null | null | null | launch/sick_ldmrs.launch.py | Kaju-Bubanja/sick_scan2 | 9a518b8e88d8515e25168b1860e7bee3af79f1da | [
"Apache-2.0"
] | null | null | null | import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
ld = LaunchDescription()
config = os.path.join(
get_package_share_directory('sick_scan2'),
'config',
'... | 25.5 | 67 | 0.672014 | 64 | 561 | 5.609375 | 0.578125 | 0.075209 | 0.083565 | 0.133705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.240642 | 561 | 21 | 68 | 26.714286 | 0.835681 | 0 | 0 | 0 | 1 | 0 | 0.135472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.3 | 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 |
bb3a099bb9a7dda933d3ae72762ca266279413d3 | 877 | py | Python | tests/test_region.py | TorbenFricke/cmtoolkit | f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca | [
"BSD-3-Clause"
] | 12 | 2015-07-07T03:36:43.000Z | 2022-03-14T20:21:24.000Z | tests/test_region.py | TorbenFricke/cmtoolkit | f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca | [
"BSD-3-Clause"
] | 11 | 2015-05-11T08:02:42.000Z | 2020-05-21T16:13:45.000Z | tests/test_region.py | TorbenFricke/cmtoolkit | f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca | [
"BSD-3-Clause"
] | 1 | 2017-11-07T15:14:10.000Z | 2017-11-07T15:14:10.000Z | import unittest
from conformalmapping import *
class TestRegion(unittest.TestCase):
def setUp(self):
self.regions = [
Disk(Circle(0.0, 1.0))
]
self.p = Circle(0.0, 1.0)
def test_str_present(self):
for r in self.regions:
str(r)
def test_repr_present... | 23.078947 | 44 | 0.600912 | 113 | 877 | 4.522124 | 0.345133 | 0.109589 | 0.107632 | 0.135029 | 0.277887 | 0.238748 | 0.238748 | 0 | 0 | 0 | 0 | 0.016077 | 0.290764 | 877 | 37 | 45 | 23.702703 | 0.805466 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 1 | 0.333333 | false | 0 | 0.074074 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb44aa42ddd32a1beb60abcb2a915654994335c3 | 7,786 | py | Python | bups/manager.py | emersion/bups | 95dac7fabe8261dfff3bccad1e384af07c702945 | [
"MIT"
] | 106 | 2015-01-02T11:11:39.000Z | 2022-01-09T08:03:30.000Z | bups/manager.py | emersion/bups | 95dac7fabe8261dfff3bccad1e384af07c702945 | [
"MIT"
] | 33 | 2015-01-01T15:01:38.000Z | 2020-09-06T15:13:49.000Z | bups/manager.py | emersion/bups | 95dac7fabe8261dfff3bccad1e384af07c702945 | [
"MIT"
] | 15 | 2015-02-01T10:38:20.000Z | 2022-02-08T21:45:44.000Z | import os
import time
import subprocess
import tempfile
import re
from worker import BupWorker
#from sudo import sudo
from fuse.root import FuseRoot
from fuse.bup import FuseBup
from fuse.sshfs import FuseSshfs
from fuse.google_drive import FuseGoogleDrive
from fuse.encfs import FuseEncfs
def noop(*args):
pass
clas... | 25.953333 | 84 | 0.656563 | 984 | 7,786 | 5.079268 | 0.158537 | 0.064626 | 0.044018 | 0.012005 | 0.444378 | 0.353742 | 0.322929 | 0.262505 | 0.231693 | 0.181673 | 0 | 0.003128 | 0.178911 | 7,786 | 299 | 85 | 26.040134 | 0.778664 | 0.00411 | 0 | 0.39485 | 0 | 0.004292 | 0.190789 | 0.013932 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004292 | 0.04721 | null | null | 0.004292 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bb4ad73a6351ad5b11f7022c36288870b0aeaaa3 | 1,166 | py | Python | commands/google_search.py | UnityRobbie/bottomly | ae5f1b9c6ee74392a8525a1c0d611927fe0d7cda | [
"MIT"
] | 4 | 2018-03-12T09:16:49.000Z | 2021-07-15T08:21:32.000Z | commands/google_search.py | UnityRobbie/bottomly | ae5f1b9c6ee74392a8525a1c0d611927fe0d7cda | [
"MIT"
] | 5 | 2018-03-17T20:27:31.000Z | 2020-11-17T09:50:48.000Z | commands/google_search.py | UnityRobbie/bottomly | ae5f1b9c6ee74392a8525a1c0d611927fe0d7cda | [
"MIT"
] | 7 | 2018-03-12T10:01:31.000Z | 2022-01-18T14:55:00.000Z | import warnings
from commands.abstract_command import AbstractCommand
from config import ConfigKeys, Config
from googleapiclient.discovery import build
class GoogleSearchCommand(AbstractCommand):
def get_purpose(self):
return "Performs a google search and returns the top hit."
def execu... | 36.4375 | 89 | 0.657804 | 134 | 1,166 | 5.492537 | 0.462687 | 0.054348 | 0.027174 | 0.043478 | 0.097826 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0.004592 | 0.253002 | 1,166 | 31 | 90 | 37.612903 | 0.840413 | 0 | 0 | 0.083333 | 0 | 0 | 0.09163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bb4d5f68daee5cc9ce1c6b5d3a404612daf578b0 | 1,225 | py | Python | tests/getHighIntensityRegionEdgeTest.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | 1 | 2015-11-06T06:41:33.000Z | 2015-11-06T06:41:33.000Z | tests/getHighIntensityRegionEdgeTest.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | null | null | null | tests/getHighIntensityRegionEdgeTest.py | yaukwankiu/armor | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | [
"CC0-1.0"
] | null | null | null | import itertools
from armor import pattern
from armor import objects4 as ob
outputFolder = '/media/TOSHIBA EXT/ARMOR/labLogs2/charts2_local_features_distribution/misc/'
def getXY(a, name='', thres=thres):
a1 = a.levelSet(thres)
a1.show()
I, J = np.where(a.matrix==thres)
I = I.compressed()
J = J.c... | 24.019608 | 92 | 0.62449 | 200 | 1,225 | 3.78 | 0.415 | 0.02381 | 0.043651 | 0.047619 | 0.146825 | 0.12963 | 0.044974 | 0.044974 | 0 | 0 | 0 | 0.055833 | 0.181224 | 1,225 | 50 | 93 | 24.5 | 0.697906 | 0.01551 | 0 | 0 | 0 | 0 | 0.113693 | 0.049793 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb59b961461cedfb2ddeb8299bd41e4af9504caf | 5,260 | py | Python | {{ cookiecutter.namespace }}/src/pynwb/tests/test_tetrodeseries.py | TheChymera/ndx-template | 44ee210181d5770d037106acff345fe1d30e0477 | [
"BSD-3-Clause-LBNL"
] | 3 | 2020-02-06T01:18:47.000Z | 2022-01-05T21:21:38.000Z | {{ cookiecutter.namespace }}/src/pynwb/tests/test_tetrodeseries.py | TheChymera/ndx-template | 44ee210181d5770d037106acff345fe1d30e0477 | [
"BSD-3-Clause-LBNL"
] | 38 | 2019-05-15T19:07:12.000Z | 2022-01-27T01:26:57.000Z | {{ cookiecutter.namespace }}/src/pynwb/tests/test_tetrodeseries.py | TheChymera/ndx-template | 44ee210181d5770d037106acff345fe1d30e0477 | [
"BSD-3-Clause-LBNL"
] | 4 | 2019-05-15T18:03:42.000Z | 2020-05-08T11:38:53.000Z | import datetime
import numpy as np
from pynwb import NWBHDF5IO, NWBFile
from pynwb.core import DynamicTableRegion
from pynwb.device import Device
from pynwb.ecephys import ElectrodeGroup
from pynwb.file import ElectrodeTable as get_electrode_table
from pynwb.testing import TestCase, remove_test_file, AcquisitionH5IOMi... | 30.760234 | 116 | 0.61692 | 548 | 5,260 | 5.779197 | 0.242701 | 0.053363 | 0.04168 | 0.053047 | 0.293022 | 0.262709 | 0.262709 | 0.262709 | 0.211241 | 0.211241 | 0 | 0.013736 | 0.294106 | 5,260 | 170 | 117 | 30.941176 | 0.839214 | 0.007034 | 0 | 0.410853 | 0 | 0 | 0.070343 | 0 | 0 | 0 | 0 | 0 | 0.062016 | 0 | null | null | 0 | 0.069767 | 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 |
24727a12dfdb6e231648e565e4b96e1b20eb8aae | 434 | py | Python | python/src/algorithm/coding/set/setupdate.py | kakaba2009/MachineLearning | 26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33 | [
"Apache-2.0"
] | null | null | null | python/src/algorithm/coding/set/setupdate.py | kakaba2009/MachineLearning | 26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33 | [
"Apache-2.0"
] | null | null | null | python/src/algorithm/coding/set/setupdate.py | kakaba2009/MachineLearning | 26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33 | [
"Apache-2.0"
] | null | null | null | n = int(input())
s = set(map(int, input().split()))
N = int(input())
for i in range(N):
cmd = input()
B = set(map(int, input().split()))
if "symmetric_difference_update" in cmd:
s.symmetric_difference_update(B)
elif "intersection_update" in cmd:
s.intersection_update(B)
elif "diffe... | 22.842105 | 44 | 0.615207 | 64 | 434 | 4.046875 | 0.328125 | 0.123552 | 0.169884 | 0.185328 | 0.316602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232719 | 434 | 18 | 45 | 24.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.158986 | 0.062212 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 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 |
247809f8e798b2d4ad909e369111e3462830ca09 | 2,339 | py | Python | wandroid/devices/utils.py | westurner/wandroid | f05e085f1f9d722b69c321bf8bd7320a8fa9f93e | [
"BSD-3-Clause"
] | null | null | null | wandroid/devices/utils.py | westurner/wandroid | f05e085f1f9d722b69c321bf8bd7320a8fa9f93e | [
"BSD-3-Clause"
] | null | null | null | wandroid/devices/utils.py | westurner/wandroid | f05e085f1f9d722b69c321bf8bd7320a8fa9f93e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from __future__ import print_function
"""
wandroid devices
"""
import pkg_resources
import wandroid.adbw as adbw
def get_devices():
"""
mainfunc
"""
entry_points = pkg_resources.iter_entry_points(group='wandroid_devices')
for ep in entry_points:
yield... | 24.364583 | 76 | 0.558786 | 262 | 2,339 | 4.80916 | 0.381679 | 0.052381 | 0.038095 | 0.028571 | 0.042857 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0.002424 | 0.29457 | 2,339 | 95 | 77 | 24.621053 | 0.761212 | 0.025652 | 0 | 0.164179 | 0 | 0 | 0.129638 | 0.015199 | 0 | 0 | 0 | 0.010526 | 0.014925 | 1 | 0.059701 | false | 0 | 0.149254 | 0 | 0.238806 | 0.104478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2489073f0eab3875094f768945e495da336cb50f | 10,743 | py | Python | parikh-et-al-and-bilstm-max-pool/trainer.py | apsdehal/nli-batch-optimizations | 946dbeae58edd39dcda948d03765f7b1070b4eab | [
"MIT"
] | 4 | 2017-12-25T21:55:07.000Z | 2020-05-09T00:18:39.000Z | parikh-et-al-and-bilstm-max-pool/trainer.py | apsdehal/nli-batch-optimizations | 946dbeae58edd39dcda948d03765f7b1070b4eab | [
"MIT"
] | null | null | null | parikh-et-al-and-bilstm-max-pool/trainer.py | apsdehal/nli-batch-optimizations | 946dbeae58edd39dcda948d03765f7b1070b4eab | [
"MIT"
] | 1 | 2018-08-01T19:36:04.000Z | 2018-08-01T19:36:04.000Z | import torch
import matplotlib.pyplot as plt
import numpy as np
import time
from torch import optim, nn
from torch.autograd import Variable
from torch.utils.data import DataLoader
from tensorboardX import SummaryWriter
from models.DecomposableAttention import DecomposableAttention
from models.BiLSTMMaxPooling import ... | 43.318548 | 79 | 0.543051 | 1,128 | 10,743 | 4.961879 | 0.166667 | 0.044667 | 0.020904 | 0.013936 | 0.343577 | 0.229945 | 0.128462 | 0.106128 | 0.067894 | 0.067894 | 0 | 0.00822 | 0.354556 | 10,743 | 247 | 80 | 43.493927 | 0.798962 | 0 | 0 | 0.09434 | 0 | 0 | 0.091501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056604 | null | null | 0.174528 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
248c8297f74d6ca704f6d94c24827c0ddf886723 | 1,909 | py | Python | scripts/deprecated/sample_dataset_to_csv.py | dwlmt/Story-Untangling | c56354e305f06a508b63b913989ff8856e4db5b6 | [
"Unlicense"
] | 7 | 2020-09-12T22:32:33.000Z | 2022-02-07T08:37:04.000Z | scripts/deprecated/sample_dataset_to_csv.py | dwlmt/Story-Untangling | c56354e305f06a508b63b913989ff8856e4db5b6 | [
"Unlicense"
] | 2 | 2021-08-31T15:46:16.000Z | 2021-09-01T15:19:52.000Z | scripts/deprecated/sample_dataset_to_csv.py | dwlmt/Story-Untangling | c56354e305f06a508b63b913989ff8856e4db5b6 | [
"Unlicense"
] | 1 | 2021-06-02T09:33:27.000Z | 2021-06-02T09:33:27.000Z | import argparse
import csv
import dataset
engine_kwargs = {"pool_recycle": 3600, "connect_args": {'timeout': 300, "check_same_thread": False}}
def sample_stories(args):
print(args)
database = args["database"]
dataset_db = f"sqlite:///{database}"
csv_lines = []
with dataset.connect(dataset_db,... | 36.711538 | 110 | 0.660555 | 251 | 1,909 | 4.896414 | 0.398406 | 0.036615 | 0.069162 | 0.022783 | 0.131814 | 0.102522 | 0 | 0 | 0 | 0 | 0 | 0.00915 | 0.198533 | 1,909 | 51 | 111 | 37.431373 | 0.794118 | 0.012572 | 0 | 0 | 0 | 0 | 0.334041 | 0.035582 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.117647 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
248e74fc17487a62d2ff57515bb3b1c055682f33 | 967 | py | Python | cli/setup.py | hipikat/hpk.io | f969f0ac3da9906f970ba70bc153dedb3962d347 | [
"BSD-2-Clause"
] | 1 | 2021-08-22T05:15:28.000Z | 2021-08-22T05:15:28.000Z | cli/setup.py | hipikat/hpk.io | f969f0ac3da9906f970ba70bc153dedb3962d347 | [
"BSD-2-Clause"
] | null | null | null | cli/setup.py | hipikat/hpk.io | f969f0ac3da9906f970ba70bc153dedb3962d347 | [
"BSD-2-Clause"
] | null | null | null | """pdjn - the CLI tool of Pidjn"""
from setuptools import setup
setup(
name='pdjn',
version='0.1',
description="CLI tool for managing Pydjn sites",
url='https://github.com/hipikat/hpk.io/tree/master/src/cli',
license='ISC',
author='Ada Wright',
author_email='ada@hpk.io',
py_modules=['... | 28.441176 | 71 | 0.58635 | 100 | 967 | 5.62 | 0.71 | 0.101423 | 0.133452 | 0.092527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00838 | 0.259566 | 967 | 33 | 72 | 29.30303 | 0.776536 | 0.028956 | 0 | 0 | 0 | 0 | 0.586281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.034483 | 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 |
24940c4d857b6b4b4b8504450135355011f4c10c | 950 | py | Python | test/test_simple.py | RyanMillerC/encase | 8ac041056b81cbb90be81a26116d58fbb6a6a3e9 | [
"MIT"
] | null | null | null | test/test_simple.py | RyanMillerC/encase | 8ac041056b81cbb90be81a26116d58fbb6a6a3e9 | [
"MIT"
] | 4 | 2018-07-12T18:21:21.000Z | 2018-07-25T19:19:14.000Z | test/test_simple.py | RyanMillerC/encase | 8ac041056b81cbb90be81a26116d58fbb6a6a3e9 | [
"MIT"
] | 1 | 2018-07-11T19:10:25.000Z | 2018-07-11T19:10:25.000Z | """
Make sure to run with `python -m pytest` instead of `pytest`. That
way the root project directory is added to sys.path.
"""
import pytest
from encase import Encase
def test_get_dot_notation():
e = Encase({'test': 'value'})
assert e.test == 'value'
def test_set_dot_notation():
e = Encase()
e.ne... | 20.652174 | 66 | 0.627368 | 139 | 950 | 4.107914 | 0.366906 | 0.085814 | 0.084063 | 0.078809 | 0.206655 | 0.08056 | 0 | 0 | 0 | 0 | 0 | 0.012097 | 0.216842 | 950 | 45 | 67 | 21.111111 | 0.755376 | 0.125263 | 0 | 0.222222 | 0 | 0 | 0.178615 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 1 | 0.222222 | false | 0 | 0.074074 | 0 | 0.296296 | 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 |
24951f2ffee670ea65064f89e7a1aeb3eee4af1e | 341 | py | Python | rllab/torch/models/base.py | NeurIPSPaperSubmission7934/code_submission | 713fce673e8e3ba30b559d4eebe6d3e4891069ed | [
"Apache-2.0"
] | null | null | null | rllab/torch/models/base.py | NeurIPSPaperSubmission7934/code_submission | 713fce673e8e3ba30b559d4eebe6d3e4891069ed | [
"Apache-2.0"
] | null | null | null | rllab/torch/models/base.py | NeurIPSPaperSubmission7934/code_submission | 713fce673e8e3ba30b559d4eebe6d3e4891069ed | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 Copyright holder of the paper Generative Adversarial Model Learning
# submitted to NeurIPS 2019 for review
# All rights reserved.
class TorchModel(object):
@property
def normalized_input(self):
raise NotImplementedError
@property
def normalized_output(self):
raise... | 24.357143 | 88 | 0.741935 | 38 | 341 | 6.605263 | 0.815789 | 0.087649 | 0.167331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0.208211 | 341 | 13 | 89 | 26.230769 | 0.9 | 0.422287 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
249fac364e58fcf14bba9eca0fc8d066dd575ccd | 3,651 | py | Python | orders/viewmodels.py | XiaoBiaoBai/xiaobiaobai_api | 409922a1406e6572c931f65be995ce12673cc0d4 | [
"MIT"
] | null | null | null | orders/viewmodels.py | XiaoBiaoBai/xiaobiaobai_api | 409922a1406e6572c931f65be995ce12673cc0d4 | [
"MIT"
] | 8 | 2020-06-05T18:15:44.000Z | 2022-03-11T23:21:19.000Z | orders/viewmodels.py | XiaoBiaoBai/xiaobiaobai.api | 409922a1406e6572c931f65be995ce12673cc0d4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
@version: ??
@author: liangliangyy
@license: MIT Licence
@contact: liangliangyy@gmail.com
@site: https://www.lylinux.net/
@software: PyCharm
@file: viewmodels.py
@time: 2018/6/9 上午1:28
"""
from rest_framework import serializers
from accounts.models import UserModel, WxUser... | 43.987952 | 91 | 0.710216 | 352 | 3,651 | 7.224432 | 0.389205 | 0.102241 | 0.132127 | 0.100669 | 0.489579 | 0.441604 | 0.441604 | 0.424302 | 0.424302 | 0.424302 | 0 | 0.009592 | 0.200493 | 3,651 | 82 | 92 | 44.52439 | 0.861596 | 0.150644 | 0 | 0.416667 | 0 | 0 | 0.000972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.145833 | 0 | 0.833333 | 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 |
24a01208af6498cbc0b92d10ddba2be689d325e7 | 460 | py | Python | src/lobe/api_client.py | Pikamander2/lobe-python | c404a2883addcf12bee2c3c17ac55d4b7e4c7c9b | [
"MIT"
] | null | null | null | src/lobe/api_client.py | Pikamander2/lobe-python | c404a2883addcf12bee2c3c17ac55d4b7e4c7c9b | [
"MIT"
] | null | null | null | src/lobe/api_client.py | Pikamander2/lobe-python | c404a2883addcf12bee2c3c17ac55d4b7e4c7c9b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import requests
from PIL import Image
from .image_utils import image_to_base64
from .results import ClassificationResult
def send_image_predict_request(image: Image.Image, predict_url: str) -> ClassificationResult:
payload = {
"inputs": {"Image": image_to_base64(image)},
}
r... | 28.75 | 93 | 0.758696 | 57 | 460 | 5.894737 | 0.526316 | 0.089286 | 0.077381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.147826 | 460 | 15 | 94 | 30.666667 | 0.846939 | 0.043478 | 0 | 0 | 0 | 0 | 0.025057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
24a0d5e654f0958267ca0ad2c3247033e43da911 | 793 | py | Python | sol/strings/2678 - Discagem por Voz.py | thiagojobson/PyURI | 93a16c9a4cf4fc22e9f3f545a452fe26e7e761e3 | [
"Unlicense"
] | null | null | null | sol/strings/2678 - Discagem por Voz.py | thiagojobson/PyURI | 93a16c9a4cf4fc22e9f3f545a452fe26e7e761e3 | [
"Unlicense"
] | null | null | null | sol/strings/2678 - Discagem por Voz.py | thiagojobson/PyURI | 93a16c9a4cf4fc22e9f3f545a452fe26e7e761e3 | [
"Unlicense"
] | null | null | null | # 2678 - Discagem por Voz
# https://www.urionlinejudge.com.br/judge/pt/problems/view/2678
def decode(x):
if x.isdigit() or x in "*#":
return x
elif x in "ABC":
return "2"
elif x in "DEF":
return "3"
elif x in "GHI":
return "4"
elif x in "DEF":
return "3"
... | 18.44186 | 63 | 0.489281 | 109 | 793 | 3.486239 | 0.46789 | 0.094737 | 0.184211 | 0.052632 | 0.197368 | 0.197368 | 0.197368 | 0.197368 | 0.197368 | 0.197368 | 0 | 0.036511 | 0.37831 | 793 | 42 | 64 | 18.880952 | 0.73428 | 0.107188 | 0 | 0.242424 | 0 | 0 | 0.073759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0 | 0 | 0.424242 | 0.030303 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24aa1693d704342ab69d496de49e45c690120868 | 426 | py | Python | apps/lotus_auth/urls.py | sunmoon11/apilotus_django | 115e9d0800751018f41ae8b9d85331d861126fd2 | [
"Apache-2.0"
] | null | null | null | apps/lotus_auth/urls.py | sunmoon11/apilotus_django | 115e9d0800751018f41ae8b9d85331d861126fd2 | [
"Apache-2.0"
] | 3 | 2019-12-04T22:21:46.000Z | 2020-05-09T18:57:24.000Z | apps/lotus_auth/urls.py | zaza316614/apilotus_django | 115e9d0800751018f41ae8b9d85331d861126fd2 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from lotus_auth import forms
from django.contrib.auth import views as django_auth_views
from lotus_auth import views as lotus_auth_views
urlpatterns = [
# MWC Custom Auth Views
url(r'^login/$',
lotus_auth_views.login, {
'template_name': 'lotus_auth/login.ht... | 28.4 | 64 | 0.706573 | 55 | 426 | 5.254545 | 0.436364 | 0.155709 | 0.089965 | 0.131488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206573 | 426 | 14 | 65 | 30.428571 | 0.85503 | 0.049296 | 0 | 0 | 0 | 0 | 0.183623 | 0.052109 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
24ad6804391b45a64a697c4d8ac8b9f9ab067809 | 780 | py | Python | reports-service/app/main.py | ethru/northwind_psql | 837c5137e753deb2ee5483a10a51f8c2b66377d1 | [
"MS-PL"
] | null | null | null | reports-service/app/main.py | ethru/northwind_psql | 837c5137e753deb2ee5483a10a51f8c2b66377d1 | [
"MS-PL"
] | null | null | null | reports-service/app/main.py | ethru/northwind_psql | 837c5137e753deb2ee5483a10a51f8c2b66377d1 | [
"MS-PL"
] | null | null | null | from fastapi import FastAPI
from elasticapm.contrib.starlette import ElasticAPM
from starlette_exporter import PrometheusMiddleware, handle_metrics
from app.api import database, engine, metadata
from app.api.auth import session
from app.api.reports import reports, apm
metadata.create_all(engine)
app = FastAPI(openap... | 26 | 84 | 0.785897 | 104 | 780 | 5.778846 | 0.413462 | 0.083195 | 0.049917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098718 | 780 | 29 | 85 | 26.896552 | 0.854908 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 0.032051 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
24b13fa559addca55ce38ea69c4da466906d7ac6 | 477 | py | Python | composer/algorithms/cutout/__init__.py | jacobfulano/composer | 4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8 | [
"Apache-2.0"
] | 2 | 2022-03-17T04:48:04.000Z | 2022-03-20T09:06:19.000Z | composer/algorithms/cutout/__init__.py | jacobfulano/composer | 4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8 | [
"Apache-2.0"
] | null | null | null | composer/algorithms/cutout/__init__.py | jacobfulano/composer | 4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 MosaicML. All Rights Reserved.
from composer.algorithms.cutout.cutout import CutOut as CutOut
from composer.algorithms.cutout.cutout import CutOutHparams as CutOutHparams
from composer.algorithms.cutout.cutout import cutout as cutout
_name = 'CutOut'
_class_name = 'CutOut'
_functional = 'cutout'
_tld... | 34.071429 | 76 | 0.78826 | 62 | 477 | 5.919355 | 0.596774 | 0.098093 | 0.179837 | 0.228883 | 0.40327 | 0.40327 | 0.294278 | 0.294278 | 0.294278 | 0 | 0 | 0.040476 | 0.119497 | 477 | 13 | 77 | 36.692308 | 0.833333 | 0.09434 | 0 | 0 | 0 | 0 | 0.281395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 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 |
24b371766deb53493ed64d08185d0fc630fffb96 | 1,191 | py | Python | genius/word.py | duanhongyi/genius | 1bb8a8facd786c59405eb1df982a2f86d7934d61 | [
"BSD-2-Clause"
] | 204 | 2015-01-03T14:00:24.000Z | 2022-01-14T13:25:16.000Z | genius/word.py | Liweiyanm/genius | 1bb8a8facd786c59405eb1df982a2f86d7934d61 | [
"BSD-2-Clause"
] | 5 | 2017-08-18T03:08:48.000Z | 2018-12-27T07:51:56.000Z | genius/word.py | Liweiyanm/genius | 1bb8a8facd786c59405eb1df982a2f86d7934d61 | [
"BSD-2-Clause"
] | 63 | 2015-04-08T17:25:24.000Z | 2022-02-10T08:18:32.000Z | #encoding:utf-8
import six
from genius.tools import StringHelper
class Word(object):
string_helper = StringHelper()
def __init__(self, text, **kwargs):
self.text = text # 词
self.freq = kwargs.get('freq', 0) # 词频
self.tagging = kwargs.get('tagging', 'unknown') # 词性
# dic:字典,... | 25.891304 | 61 | 0.555835 | 141 | 1,191 | 4.517731 | 0.397163 | 0.100471 | 0.069074 | 0.062794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.328296 | 1,191 | 45 | 62 | 26.466667 | 0.79 | 0.087322 | 0 | 0 | 0 | 0 | 0.038789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.064516 | 0.064516 | 0.548387 | 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 |
24cca9f21eb5116206ddd39d59a3fddcfc62889a | 2,909 | py | Python | app.py | JFEscobarM/Proyecto_final | a3d822f44c367d28f2910f1300ff5fddb4712bdb | [
"MIT"
] | null | null | null | app.py | JFEscobarM/Proyecto_final | a3d822f44c367d28f2910f1300ff5fddb4712bdb | [
"MIT"
] | null | null | null | app.py | JFEscobarM/Proyecto_final | a3d822f44c367d28f2910f1300ff5fddb4712bdb | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, redirect, url_for, session
from flask_mysqldb import MySQL,MySQLdb
from os import path
from notifypy import Notify
app = Flask(__name__)
app.config['MYSQL_HOST'] = 'localhost'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = ''
app.config['MYSQL_D... | 30.946809 | 127 | 0.603644 | 323 | 2,909 | 5.325077 | 0.337461 | 0.073256 | 0.093023 | 0.029651 | 0.348256 | 0.293023 | 0.273256 | 0.225581 | 0.066279 | 0 | 0 | 0.000926 | 0.257821 | 2,909 | 94 | 128 | 30.946809 | 0.795739 | 0 | 0 | 0.319444 | 0 | 0.013889 | 0.234021 | 0.007904 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.069444 | 0.055556 | 0.013889 | 0.236111 | 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 |
24ccdeca70d2927d3661847354b85295b67ae60e | 1,751 | py | Python | model/table2tsv.py | liziwl/Bugine | 7787a45c33bc061f4cbdb07ddaaf369f3b3934fc | [
"Apache-2.0"
] | 2 | 2020-03-20T07:53:08.000Z | 2020-07-06T03:41:23.000Z | model/table2tsv.py | liziwl/Bugine | 7787a45c33bc061f4cbdb07ddaaf369f3b3934fc | [
"Apache-2.0"
] | null | null | null | model/table2tsv.py | liziwl/Bugine | 7787a45c33bc061f4cbdb07ddaaf369f3b3934fc | [
"Apache-2.0"
] | 1 | 2020-04-16T07:51:27.000Z | 2020-04-16T07:51:27.000Z | from model import issuedb as idb
import os
from model import util, work_path
__GENERATE__ = False
if __GENERATE__:
SRC_DIR = 'tsv/'
TEST_DIR = 'tsv_test/'
TSV_FILE = work_path.in_project('./model/conf/tab_url.tsv')
__data_tsv = util.read_tsv(TSV_FILE)
def generate_lookup_table():
db_driver = idb.ISSuedb... | 27.359375 | 102 | 0.631068 | 263 | 1,751 | 3.863118 | 0.281369 | 0.062992 | 0.023622 | 0.015748 | 0.120079 | 0.088583 | 0.088583 | 0.05315 | 0.05315 | 0 | 0 | 0.007576 | 0.246145 | 1,751 | 63 | 103 | 27.793651 | 0.762121 | 0.013135 | 0 | 0.044444 | 1 | 0 | 0.103129 | 0.029548 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.177778 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24ce86290dd9ae95c3b2fcc0924528d2a8404299 | 2,462 | py | Python | .circleci/txt2md.py | pamd/cimr-d-test | dd7005b40e7a1298d004d293de4f30b2c7b58caa | [
"CC-BY-4.0"
] | null | null | null | .circleci/txt2md.py | pamd/cimr-d-test | dd7005b40e7a1298d004d293de4f30b2c7b58caa | [
"CC-BY-4.0"
] | null | null | null | .circleci/txt2md.py | pamd/cimr-d-test | dd7005b40e7a1298d004d293de4f30b2c7b58caa | [
"CC-BY-4.0"
] | 1 | 2019-02-18T13:10:03.000Z | 2019-02-18T13:10:03.000Z | """This script generates README.md based on s3_list.txt. If an S3 object's
parent folder(s) doesn't exist, this script will be smart enough to create
the parent folder(s) as separate items in output MD file.
"""
TXT_FILENAME = "processed/s3_list.txt"
MD_FILENAME = "processed/README.md"
def get_md_name(s3_name):
"... | 35.681159 | 78 | 0.616166 | 352 | 2,462 | 4.068182 | 0.301136 | 0.084497 | 0.041899 | 0.023045 | 0.196229 | 0.170391 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.255483 | 2,462 | 68 | 79 | 36.205882 | 0.759956 | 0.193339 | 0 | 0.212766 | 1 | 0 | 0.12047 | 0.038285 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0 | 0 | 0.106383 | 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 |
24d0811f8a1918258a94d40c8fda26282de53c17 | 1,644 | py | Python | _app/cantiin/filters.py | OmarThinks/cantiin_django | 3c80ba0aa1b6a92d232b1147e217a0d6ac8fc834 | [
"MIT"
] | 1 | 2021-08-17T21:27:32.000Z | 2021-08-17T21:27:32.000Z | _app/cantiin/filters.py | OmarThinks/cantiin_django | 3c80ba0aa1b6a92d232b1147e217a0d6ac8fc834 | [
"MIT"
] | null | null | null | _app/cantiin/filters.py | OmarThinks/cantiin_django | 3c80ba0aa1b6a92d232b1147e217a0d6ac8fc834 | [
"MIT"
] | null | null | null | from django_filters import rest_framework as filters
from accounts.models import (User)
from cantiin.models import (Product, Order, Comment)
from my_functions.filters_mixins import (DateTimeFilter, IdFilter)
from accounts.models import (User)
from django.db.models import Q
class UserFilter(IdFilter):
search = filt... | 26.95082 | 71 | 0.765207 | 209 | 1,644 | 5.784689 | 0.315789 | 0.039702 | 0.069479 | 0.092639 | 0.532672 | 0.532672 | 0.479735 | 0.479735 | 0.317618 | 0.281224 | 0 | 0.011042 | 0.118613 | 1,644 | 60 | 72 | 27.4 | 0.823326 | 0.027372 | 0 | 0.475 | 0 | 0 | 0.090966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.15 | 0.075 | 0.7 | 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 |
24d39243e750a7c57ab69e5cfb997c5cb9428072 | 1,547 | py | Python | src/point_cloud_merger.py | kmtz-project/robot-simulator | 8725ebf26aa5e456083fe641194f433c1a16566e | [
"MIT"
] | null | null | null | src/point_cloud_merger.py | kmtz-project/robot-simulator | 8725ebf26aa5e456083fe641194f433c1a16566e | [
"MIT"
] | null | null | null | src/point_cloud_merger.py | kmtz-project/robot-simulator | 8725ebf26aa5e456083fe641194f433c1a16566e | [
"MIT"
] | null | null | null | import numpy as np
class PointCloudMerger:
# FIXME
def merge_clouds(self, cloud_left, cloud_right, matches):
left_crop_min = np.min([m[0][0] for m in matches])
# left_crop_max = np.max([m[0][0] for m in matches])
# right_crop_min = np.min([m[1][0] for m in matches])
right_crop... | 34.377778 | 76 | 0.571429 | 225 | 1,547 | 3.653333 | 0.195556 | 0.087591 | 0.080292 | 0.034063 | 0.318735 | 0.270073 | 0.099757 | 0 | 0 | 0 | 0 | 0.028105 | 0.287007 | 1,547 | 44 | 77 | 35.159091 | 0.717135 | 0.26309 | 0 | 0 | 0 | 0 | 0.036412 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.05 | false | 0 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24d83a8fcd0daec9678d67335df10e1f6785c922 | 2,659 | py | Python | Seven/script.py | tbjoern/adventofcode | 3fb8b4e18f03825c448d8935ab39b8bf08202d90 | [
"MIT"
] | null | null | null | Seven/script.py | tbjoern/adventofcode | 3fb8b4e18f03825c448d8935ab39b8bf08202d90 | [
"MIT"
] | null | null | null | Seven/script.py | tbjoern/adventofcode | 3fb8b4e18f03825c448d8935ab39b8bf08202d90 | [
"MIT"
] | null | null | null | class TLSParser:
def __init__(self):
self.input = ["","","",""]
self.next = 0
self.ready = False
self.hypernet = False
self.TLS = False
self.TLSinHypernet = False
def reset(self):
self.ready = False
self.next = 0
self.hypernet = False
self.TLS = False
self.TLSinHypernet = False
... | 19.992481 | 155 | 0.579541 | 388 | 2,659 | 3.951031 | 0.149485 | 0.135682 | 0.065232 | 0.091324 | 0.530985 | 0.519243 | 0.519243 | 0.519243 | 0.442922 | 0.442922 | 0 | 0.01292 | 0.272283 | 2,659 | 132 | 156 | 20.143939 | 0.779328 | 0 | 0 | 0.577982 | 0 | 0 | 0.006332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24db619b9ab62e0704e7b2bae615ad627530f3d6 | 1,097 | py | Python | findost/foundation/log.py | BongOST/FindOST | bef3c8991b7494ad08c06ed1c9fb0bc41996ec8b | [
"Apache-2.0"
] | 1 | 2017-11-12T03:10:25.000Z | 2017-11-12T03:10:25.000Z | findost/foundation/log.py | BongOST/FindOST | bef3c8991b7494ad08c06ed1c9fb0bc41996ec8b | [
"Apache-2.0"
] | null | null | null | findost/foundation/log.py | BongOST/FindOST | bef3c8991b7494ad08c06ed1c9fb0bc41996ec8b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding:utf-8 -*-
__author__ = 'LexusLee'
"""
该模块是日志模块,负责记录整个应用的日志信息,通过继承threading.Thread类实现异步写日志,外部对象只需将日志信息交给该模块,然后直接返回,
无需等待将日志信息写到文件中,而是由该模块负责将日志信息写到文件中去,从而提高了写日志的速度
"""
import logging.config
import os
import yaml
from foundation import const
BASE_DIR = os.path.dirname(__file__)
if ... | 36.566667 | 118 | 0.759344 | 141 | 1,097 | 5.737589 | 0.382979 | 0.051916 | 0.096415 | 0.055624 | 0.533993 | 0.533993 | 0.533993 | 0.533993 | 0.533993 | 0.533993 | 0 | 0.00101 | 0.097539 | 1,097 | 29 | 119 | 37.827586 | 0.816162 | 0.06381 | 0 | 0.166667 | 0 | 0 | 0.226966 | 0.17191 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24e0d8bb228a1463b6f322f96fa9e6a037f16d36 | 1,464 | py | Python | test/proxy_AccountPWD.py | bianQ/similarweb | 3df31af1267a285d0bc6adf720409ceb43eb56cb | [
"MIT"
] | null | null | null | test/proxy_AccountPWD.py | bianQ/similarweb | 3df31af1267a285d0bc6adf720409ceb43eb56cb | [
"MIT"
] | null | null | null | test/proxy_AccountPWD.py | bianQ/similarweb | 3df31af1267a285d0bc6adf720409ceb43eb56cb | [
"MIT"
] | null | null | null | import _thread
import time
import requests
headers = {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60 MicroMessenger/6.5.19 NetType/4... | 24.4 | 178 | 0.592213 | 197 | 1,464 | 4.360406 | 0.543147 | 0.055879 | 0.053551 | 0.030268 | 0.039581 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049107 | 0.234973 | 1,464 | 59 | 179 | 24.813559 | 0.717857 | 0.129098 | 0 | 0.05 | 0 | 0.05 | 0.301827 | 0.108022 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.125 | 0.075 | 0 | 0.175 | 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 |
24e0f61f5197a6897882718461de8c1a5db52307 | 2,150 | py | Python | IPython/core/tests/test_application.py | ivanov/ipython | 62cc379d3b454923cb48e94663f385f54ec806cc | [
"BSD-3-Clause-Clear"
] | 2 | 2015-04-21T12:12:43.000Z | 2015-04-21T12:12:54.000Z | IPython/core/tests/test_application.py | ivanov/ipython | 62cc379d3b454923cb48e94663f385f54ec806cc | [
"BSD-3-Clause-Clear"
] | 1 | 2015-07-16T22:26:53.000Z | 2015-07-16T22:26:53.000Z | IPython/core/tests/test_application.py | ivanov/ipython | 62cc379d3b454923cb48e94663f385f54ec806cc | [
"BSD-3-Clause-Clear"
] | null | null | null | # coding: utf-8
"""Tests for IPython.core.application"""
import os
import tempfile
from IPython.core.application import Application
def test_unicode_cwd():
"""Check that IPython starts with non-ascii characters in the path."""
wd = tempfile.mkdtemp(suffix=u"€")
old_wd = os.getcwdu()
os.chdir(wd)... | 31.15942 | 77 | 0.648372 | 278 | 2,150 | 4.805755 | 0.330935 | 0.053892 | 0.047904 | 0.050898 | 0.639222 | 0.60479 | 0.60479 | 0.60479 | 0.60479 | 0.60479 | 0 | 0.004981 | 0.253023 | 2,150 | 68 | 78 | 31.617647 | 0.825654 | 0.268372 | 0 | 0.55814 | 0 | 0 | 0.049127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.023256 | 0.069767 | 0 | 0.116279 | 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 |
24e3a042ebeec94e8e97f8bffee6f4425ba30587 | 1,056 | py | Python | alttprbot_discord/cogs/smvaria.py | compiling/sahasrahbot | 24cd1373b4a4e456562750397573f522d0326e13 | [
"MIT"
] | null | null | null | alttprbot_discord/cogs/smvaria.py | compiling/sahasrahbot | 24cd1373b4a4e456562750397573f522d0326e13 | [
"MIT"
] | null | null | null | alttprbot_discord/cogs/smvaria.py | compiling/sahasrahbot | 24cd1373b4a4e456562750397573f522d0326e13 | [
"MIT"
] | null | null | null | from discord.ext import commands
from alttprbot.exceptions import SahasrahBotException
from alttprbot.alttprgen.smvaria import generate_preset
class SuperMetroidVaria(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.group()
async def smvaria(self, ctx):
if ctx.invoked_sub... | 27.789474 | 89 | 0.63447 | 115 | 1,056 | 5.747826 | 0.443478 | 0.06354 | 0.057489 | 0.066566 | 0.350983 | 0.350983 | 0.272315 | 0.272315 | 0.272315 | 0.272315 | 0 | 0 | 0.267992 | 1,056 | 37 | 90 | 28.540541 | 0.85511 | 0 | 0 | 0.344828 | 1 | 0 | 0.092803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.206897 | 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 |
24f143f9ddcea556b1cba8c4e100e24aa5b6a03a | 2,267 | py | Python | minimal/knn/train.py | drstarry/minimal | 8c3eac110505d68dabde4d014cd0968392b640f9 | [
"MIT"
] | 2 | 2015-09-22T00:57:17.000Z | 2016-12-07T02:18:33.000Z | minimal/knn/train.py | drstarry/minimal | 8c3eac110505d68dabde4d014cd0968392b640f9 | [
"MIT"
] | null | null | null | minimal/knn/train.py | drstarry/minimal | 8c3eac110505d68dabde4d014cd0968392b640f9 | [
"MIT"
] | null | null | null | # coding: utf-8
import math
from const import CUR_FOLDER, FILE_FOLDER, FILE_TRAIN, FEATURE_NUM, K, FOLD, VALUES
def get_data(test_no):
train_data = []
test_data = []
for i in range(1, FOLD+1):
filename = CUR_FOLDER + FILE_FOLDER + FILE_TRAIN + '%i.txt' % i
with open(filename) as f:
... | 29.064103 | 84 | 0.584914 | 315 | 2,267 | 3.993651 | 0.238095 | 0.050874 | 0.051669 | 0.067568 | 0.162162 | 0.077901 | 0 | 0 | 0 | 0 | 0 | 0.015733 | 0.299074 | 2,267 | 77 | 85 | 29.441558 | 0.77596 | 0.005734 | 0 | 0.033333 | 0 | 0 | 0.047069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
24f4cbec86839888431c70ef1f6650f036a88daa | 3,691 | py | Python | modules/verse.py | Dans-labs/shebanq | e7efffc84bcedcc8c8a21638991fb765b95713df | [
"MIT"
] | null | null | null | modules/verse.py | Dans-labs/shebanq | e7efffc84bcedcc8c8a21638991fb765b95713df | [
"MIT"
] | null | null | null | modules/verse.py | Dans-labs/shebanq | e7efffc84bcedcc8c8a21638991fb765b95713df | [
"MIT"
] | null | null | null | from textwrap import dedent
import json
from gluon import current
from constants import ONE_HOUR
from versecontent import VERSECONTENT
class VERSE:
"""Get verse data of a verse.
The verse data are the linguistic feature data for the words in a verse.
"""
def __init__(self):
pass
def g... | 29.528 | 84 | 0.455161 | 392 | 3,691 | 4.183673 | 0.257653 | 0.026829 | 0.040244 | 0.043902 | 0.132927 | 0.042683 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.440531 | 3,691 | 124 | 85 | 29.766129 | 0.790799 | 0.035763 | 0 | 0.186275 | 0 | 0.009804 | 0.291785 | 0.030595 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04902 | false | 0.058824 | 0.04902 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
24f4d24d6c7cdad4b11c864d9e2589522d2bfd09 | 53,063 | py | Python | python/deccheck2.py | faradaynetworks/cdecimal | 4be4045f99d13301882b80534d7523374d6eb5ac | [
"BSD-2-Clause"
] | null | null | null | python/deccheck2.py | faradaynetworks/cdecimal | 4be4045f99d13301882b80534d7523374d6eb5ac | [
"BSD-2-Clause"
] | null | null | null | python/deccheck2.py | faradaynetworks/cdecimal | 4be4045f99d13301882b80534d7523374d6eb5ac | [
"BSD-2-Clause"
] | 1 | 2019-09-26T18:34:24.000Z | 2019-09-26T18:34:24.000Z | #!/usr/bin/env python
#
# Copyright (c) 2008-2010 Stefan Krah. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, t... | 33.164375 | 96 | 0.585417 | 6,533 | 53,063 | 4.566509 | 0.104852 | 0.035531 | 0.026146 | 0.02866 | 0.479905 | 0.430362 | 0.360239 | 0.314551 | 0.281467 | 0.27074 | 0 | 0.017958 | 0.304223 | 53,063 | 1,599 | 97 | 33.185116 | 0.790087 | 0.060494 | 0 | 0.374392 | 0 | 0.002431 | 0.061897 | 0 | 0 | 0 | 0 | 0 | 0.008914 | 0 | null | null | 0.003241 | 0.007293 | null | null | 0.028363 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
24f6fd157b03fbd91d14ca3cfddf6f92d4bba3b6 | 548 | py | Python | code/sf2.py | onnoeberhard/scipro-primer-notebooks | e9cf1069d62f8c50549d9912403c640f08a99392 | [
"MIT"
] | 16 | 2019-04-18T13:35:42.000Z | 2021-09-05T21:01:06.000Z | code/sf2.py | onnoeberhard/scipro-primer-notebooks | e9cf1069d62f8c50549d9912403c640f08a99392 | [
"MIT"
] | 1 | 2021-02-15T16:26:00.000Z | 2021-02-15T16:26:00.000Z | code/sf2.py | onnoeberhard/scipro-primer-notebooks | e9cf1069d62f8c50549d9912403c640f08a99392 | [
"MIT"
] | 17 | 2018-09-30T07:35:00.000Z | 2021-08-28T19:15:09.000Z | from math import pi, sin
def S(t, n, T):
return 4 / pi * sum(sin(2 * (2*i - 1) * pi * t / T) / (2*i - 1) for i in range(1, n + 1))
def f(t, T):
return 1 if 0 < t < T/2 else -1 if T/2 < t < T else 0
def test():
print(" n | alpha | error ")
print("-----+--------+----------")
T = 2*pi
for ... | 26.095238 | 93 | 0.421533 | 104 | 548 | 2.144231 | 0.375 | 0.044843 | 0.026906 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106443 | 0.34854 | 548 | 20 | 94 | 27.4 | 0.518207 | 0 | 0 | 0 | 0 | 0 | 0.166058 | 0.04562 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0.125 | 0.375 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
24fc99522f8cef361d5310abdeb64520bc477f16 | 1,308 | py | Python | e-threader/mail.py | GammaGames/e-threader | 60c028a1e823ecc5ed4d20d15881d73db75e3630 | [
"MIT"
] | null | null | null | e-threader/mail.py | GammaGames/e-threader | 60c028a1e823ecc5ed4d20d15881d73db75e3630 | [
"MIT"
] | null | null | null | e-threader/mail.py | GammaGames/e-threader | 60c028a1e823ecc5ed4d20d15881d73db75e3630 | [
"MIT"
] | null | null | null | import smtplib
import os
from os.path import basename
from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.utils import COMMASPACE, formatdate
GMAIL_USERNAME = client_secret=os.getenv("GMAIL_USERNAME")
GMAIL_PASSWORD = client... | 29.727273 | 75 | 0.674312 | 165 | 1,308 | 5.248485 | 0.460606 | 0.075058 | 0.045035 | 0.046189 | 0.057737 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002887 | 0.205657 | 1,308 | 43 | 76 | 30.418605 | 0.830606 | 0.018349 | 0 | 0 | 0 | 0 | 0.121685 | 0.017161 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0 | false | 0.058824 | 0.205882 | 0 | 0.205882 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7007c14a0f8dc8efb9e61a001c85b2fc1dedea08 | 315 | py | Python | main.py | EliseevEgor/Simple-Parser | ab0df998cf777fc04c221cd34a1cb4ecf83cb10a | [
"MIT"
] | null | null | null | main.py | EliseevEgor/Simple-Parser | ab0df998cf777fc04c221cd34a1cb4ecf83cb10a | [
"MIT"
] | null | null | null | main.py | EliseevEgor/Simple-Parser | ab0df998cf777fc04c221cd34a1cb4ecf83cb10a | [
"MIT"
] | null | null | null | import os
import uvicorn as uvicorn
import telegram_bot
import fastAPI_server.start_fast_api as fAPI
if __name__ == '__main__':
telegram_bot.__init__()
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
fAPI.init_elems(ROOT_DIR)
uvicorn.run(fAPI.app, host='0.0.0.0', port=8000, lifespan="on")
| 24.230769 | 67 | 0.739683 | 50 | 315 | 4.18 | 0.62 | 0.028708 | 0.028708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02952 | 0.139683 | 315 | 12 | 68 | 26.25 | 0.741697 | 0 | 0 | 0 | 0 | 0 | 0.053968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
70172a8d868fb43d2b1244f1bbe19248e7fbd7f5 | 3,866 | py | Python | src/sane_fin_site/fin_storage/migrations/0001_initial.py | StanleySane/sane-fin-site | 4e7341aa3bc17d12f6cf3741ed2fec4bf554b9f9 | [
"BSD-3-Clause"
] | null | null | null | src/sane_fin_site/fin_storage/migrations/0001_initial.py | StanleySane/sane-fin-site | 4e7341aa3bc17d12f6cf3741ed2fec4bf554b9f9 | [
"BSD-3-Clause"
] | null | null | null | src/sane_fin_site/fin_storage/migrations/0001_initial.py | StanleySane/sane-fin-site | 4e7341aa3bc17d12f6cf3741ed2fec4bf554b9f9 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-18 15:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CachedItem',
fields=[
... | 44.436782 | 149 | 0.592602 | 352 | 3,866 | 6.321023 | 0.286932 | 0.036404 | 0.05618 | 0.058427 | 0.485393 | 0.419775 | 0.320899 | 0.288539 | 0.241798 | 0.241798 | 0 | 0.01707 | 0.272633 | 3,866 | 86 | 150 | 44.953488 | 0.774182 | 0.01164 | 0 | 0.455696 | 1 | 0 | 0.159466 | 0.025661 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025316 | 0 | 0.075949 | 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 |
70219ccc098c06dd4bf333f450b426259e4c5b79 | 999 | py | Python | src/timers.py | julianviso/GW2FractalDailies | 02314c3d3c440b5359d11b3b38d986568105ef79 | [
"MIT"
] | 3 | 2018-04-21T05:14:49.000Z | 2018-06-13T11:05:32.000Z | src/timers.py | julianviso/GW2FractalDailies | 02314c3d3c440b5359d11b3b38d986568105ef79 | [
"MIT"
] | 18 | 2018-03-01T22:48:35.000Z | 2018-03-15T22:55:07.000Z | src/timers.py | julianviso/GW2FractalDailies | 02314c3d3c440b5359d11b3b38d986568105ef79 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
#Helper Libraries
from datetime import datetime
import feedparser
import json
#Utils
import strings
#IRI: changed 'Server' to 'timers'
class timers(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.group(name="server", pass_context=True)... | 30.272727 | 94 | 0.686687 | 127 | 999 | 5.330709 | 0.503937 | 0.051699 | 0.06647 | 0.06647 | 0.076809 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00241 | 0.169169 | 999 | 32 | 95 | 31.21875 | 0.813253 | 0.054054 | 0 | 0 | 0 | 0 | 0.089172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.136364 | 0.272727 | 0 | 0.409091 | 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 |
70271af1935553bf3f9705882222dbc48f6d6a66 | 224 | py | Python | tests/test_day_16_puzzle_1.py | LuckyJosh/advent-of-code-2017 | 17498d385857dee4bb44ded5668d56c758b0a601 | [
"MIT"
] | null | null | null | tests/test_day_16_puzzle_1.py | LuckyJosh/advent-of-code-2017 | 17498d385857dee4bb44ded5668d56c758b0a601 | [
"MIT"
] | null | null | null | tests/test_day_16_puzzle_1.py | LuckyJosh/advent-of-code-2017 | 17498d385857dee4bb44ded5668d56c758b0a601 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# encoding: utf-8
from aoc2017.day_16 import permutations_1
def test_permutations_1_1():
input_ = "s1,x3/4,pe/b"
output = "baedc"
assert permutations_1(input_, num_programs=5) == output
| 20.363636 | 59 | 0.705357 | 35 | 224 | 4.257143 | 0.8 | 0.261745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0.169643 | 224 | 10 | 60 | 22.4 | 0.72043 | 0.165179 | 0 | 0 | 0 | 0 | 0.091892 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.