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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d9151210baf0758d554c4145b5be3621f607b07 | 4,227 | py | Python | Lib/objc/CryptoTokenKit.py | snazari/Pyto | bcea7bbef35cab21ce73087b1a0c00a07d07ec72 | [
"MIT"
] | 701 | 2018-10-22T11:54:09.000Z | 2022-03-31T14:39:30.000Z | Lib/objc/CryptoTokenKit.py | snazari/Pyto | bcea7bbef35cab21ce73087b1a0c00a07d07ec72 | [
"MIT"
] | 229 | 2018-10-24T09:15:31.000Z | 2021-12-24T16:51:37.000Z | Lib/objc/CryptoTokenKit.py | snazari/Pyto | bcea7bbef35cab21ce73087b1a0c00a07d07ec72 | [
"MIT"
] | 131 | 2018-11-25T18:33:03.000Z | 2022-03-24T03:18:07.000Z | """
Classes from the 'CryptoTokenKit' framework.
"""
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
TKTokenWatcher = _Class("TKTokenWatcher")
TKTokenWatc... | 43.57732 | 83 | 0.843624 | 232 | 4,227 | 15.060345 | 0.37069 | 0.007441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071919 | 4,227 | 96 | 84 | 44.03125 | 0.890645 | 0.010409 | 0 | 0.045977 | 0 | 0 | 0.358323 | 0.220599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0.011494 | 0.011494 | 0.011494 | 0.068966 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d98a865bbafd70b23de29cec88bc3072d319a7c | 1,837 | py | Python | attributes/crash_level.py | hknozturk/InfoVis | 63ad302ea0ebf8f294f9aa6b194ec6d48aa8974a | [
"Apache-2.0"
] | null | null | null | attributes/crash_level.py | hknozturk/InfoVis | 63ad302ea0ebf8f294f9aa6b194ec6d48aa8974a | [
"Apache-2.0"
] | null | null | null | attributes/crash_level.py | hknozturk/InfoVis | 63ad302ea0ebf8f294f9aa6b194ec6d48aa8974a | [
"Apache-2.0"
] | null | null | null | import enum
CrashLevel = enum.Enum(
value="CrashLevel",
names=[
("None", 0),
("Inadequate Warning of Exits, Lanes Narrowing, Traffic Controls etc.", 1),
("Shoulder Related", 2),
("Other Maintenance or Construction-Created Condition", 3),
("No or Obscured Pavement Marking... | 51.027778 | 162 | 0.634186 | 246 | 1,837 | 4.735772 | 0.626016 | 0.037768 | 0.038627 | 0.033476 | 0.142489 | 0.142489 | 0.08927 | 0.08927 | 0.08927 | 0.08927 | 0 | 0.044053 | 0.258574 | 1,837 | 35 | 163 | 52.485714 | 0.811307 | 0.04736 | 0 | 0 | 0 | 0.064516 | 0.690722 | 0.013173 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2d9c663d550b22198efa665d0944c08d0ec88f7c | 273 | py | Python | 11-19/11.py | NiCrook/Ebabit_Exercises | 235f63e3b6053cbad05d7a3a97595deef085779c | [
"MIT"
] | null | null | null | 11-19/11.py | NiCrook/Ebabit_Exercises | 235f63e3b6053cbad05d7a3a97595deef085779c | [
"MIT"
] | null | null | null | 11-19/11.py | NiCrook/Ebabit_Exercises | 235f63e3b6053cbad05d7a3a97595deef085779c | [
"MIT"
] | null | null | null | # https://edabit.com/challenge/Yx2a9B57vXRuPevGh
# Create a function that takes length and width and finds the perimeter of a rectangle.
def find_perimeter(x: int, y: int) -> int:
perimeter = (x * 2) + (y * 2)
return perimeter
print(find_perimeter(20, 10))
| 24.818182 | 89 | 0.692308 | 40 | 273 | 4.675 | 0.7 | 0.139037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045662 | 0.197802 | 273 | 10 | 90 | 27.3 | 0.808219 | 0.490842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2d9e7d1fdaf3775c05da9794f66686570685125a | 1,673 | py | Python | server/app/schema/user.py | Raphaeljunior/crux | 22ec0c19e8d416e6d0bdae6f51d33ea159a098cb | [
"BSD-3-Clause"
] | 1 | 2018-03-29T17:30:42.000Z | 2018-03-29T17:30:42.000Z | server/app/schema/user.py | Raphaeljunior/crux | 22ec0c19e8d416e6d0bdae6f51d33ea159a098cb | [
"BSD-3-Clause"
] | 4 | 2021-03-08T18:03:09.000Z | 2022-02-26T02:49:54.000Z | server/app/schema/user.py | Raphaeljunior/crux | 22ec0c19e8d416e6d0bdae6f51d33ea159a098cb | [
"BSD-3-Clause"
] | 2 | 2018-02-01T21:43:31.000Z | 2018-10-02T16:38:42.000Z |
import graphene
import graphql_jwt
from graphene_django import DjangoObjectType
from graphql_extensions.auth.decorators import (login_required,
staff_member_required)
import graphql_social_auth
from ..models import User
class UserType(DjangoObjectType):
token = gr... | 28.844828 | 71 | 0.697549 | 190 | 1,673 | 5.963158 | 0.331579 | 0.035305 | 0.055605 | 0.044131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213987 | 1,673 | 57 | 72 | 29.350877 | 0.861597 | 0 | 0 | 0 | 0 | 0 | 0.005383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0.073171 | 0.146341 | 0.04878 | 0.756098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2da97fac9a95e56404c86a90a6f66a5a1ecf7163 | 11,748 | py | Python | lab_02/interface.py | MrLIVB/BMSTU_CG | 5cb00b72f8a0ce2450c6f771384db3ddd2ec468b | [
"MIT"
] | null | null | null | lab_02/interface.py | MrLIVB/BMSTU_CG | 5cb00b72f8a0ce2450c6f771384db3ddd2ec468b | [
"MIT"
] | null | null | null | lab_02/interface.py | MrLIVB/BMSTU_CG | 5cb00b72f8a0ce2450c6f771384db3ddd2ec468b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainW... | 53.643836 | 107 | 0.705141 | 1,402 | 11,748 | 5.718973 | 0.111983 | 0.074832 | 0.048641 | 0.028685 | 0.560239 | 0.509354 | 0.403342 | 0.257546 | 0.189948 | 0.148416 | 0 | 0.026594 | 0.177392 | 11,748 | 218 | 108 | 53.889908 | 0.803084 | 0.015492 | 0 | 0.17734 | 1 | 0 | 0.065058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009852 | false | 0 | 0.009852 | 0 | 0.024631 | 0 | 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 |
2da9fd9a6b5b63ef8c48eb5e843e9c97eb0bba52 | 123 | py | Python | Windows/Hack_final.py | shivank1234/LogicBomb | 18c14749870859fe6336ae845fb608a1cde9441b | [
"MIT"
] | 2 | 2020-08-17T08:30:04.000Z | 2022-02-16T22:56:19.000Z | Windows/Hack_final.py | shivank1234/LogicBomb | 18c14749870859fe6336ae845fb608a1cde9441b | [
"MIT"
] | null | null | null | Windows/Hack_final.py | shivank1234/LogicBomb | 18c14749870859fe6336ae845fb608a1cde9441b | [
"MIT"
] | null | null | null | def main():
import webbrowser
i=0
while(i<1000):
webbrowser.open("http://abcefghijk.com")
i=i+1
| 10.25 | 45 | 0.560976 | 17 | 123 | 4.058824 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.284553 | 123 | 11 | 46 | 11.181818 | 0.715909 | 0 | 0 | 0 | 0 | 0 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2daab2bd225d4884546479808a0c27a843add8c3 | 286 | py | Python | 2019/d02/p2.py | KristobalJunta/aoc2018 | 804f396635316ec40c44b44a89f400b639347566 | [
"WTFPL"
] | 1 | 2018-12-04T23:51:59.000Z | 2018-12-04T23:51:59.000Z | 2019/d02/p2.py | KristobalJunta/aoc2018 | 804f396635316ec40c44b44a89f400b639347566 | [
"WTFPL"
] | null | null | null | 2019/d02/p2.py | KristobalJunta/aoc2018 | 804f396635316ec40c44b44a89f400b639347566 | [
"WTFPL"
] | null | null | null | import itertools
import sys
from intprog import intprog
code = list(map(int, sys.stdin.readline().strip().split(',')))
for noun, verb in itertools.product(range(0, 100), repeat=2):
result = intprog(code[:], noun, verb)
if result == 19690720:
print(noun * 100 + verb)
| 23.833333 | 62 | 0.664336 | 40 | 286 | 4.75 | 0.675 | 0.115789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068376 | 0.181818 | 286 | 11 | 63 | 26 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0.003497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2db0e95b5292531fce9833e4c3083cd2eced7195 | 823 | py | Python | src/variables.py | ravgeetdhillon/gnome-hackers | 7b961e0a4f465a1b81607920e34575630c48a90a | [
"MIT"
] | 10 | 2019-12-03T07:32:40.000Z | 2020-05-08T23:50:37.000Z | src/variables.py | ravgeetdhillon/gnome-hackers | 7b961e0a4f465a1b81607920e34575630c48a90a | [
"MIT"
] | 6 | 2020-02-11T13:08:07.000Z | 2022-03-12T00:08:14.000Z | src/variables.py | ravgeetdhillon/gnome-hackers | 7b961e0a4f465a1b81607920e34575630c48a90a | [
"MIT"
] | 1 | 2019-12-11T18:37:37.000Z | 2019-12-11T18:37:37.000Z | import os
GITLAB_SERVER = 'https://gitlab.gnome.org'
PRIVATE_TOKEN = os.environ.get('GITLAB_PRIVATE_TOKEN')
POINTS = {
'commit': 0.01,
'opened_mr': 5,
'closed_mr': 10,
'opened_issue': 1,
'closed_issue': 2,
}
SITE_CONFIG = {
'title': 'GNOME Hackers',
'tagline': 'Leaderboard for hackers con... | 28.37931 | 101 | 0.626974 | 91 | 823 | 5.56044 | 0.593407 | 0.047431 | 0.086957 | 0.094862 | 0.106719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012177 | 0.201701 | 823 | 28 | 102 | 29.392857 | 0.757991 | 0 | 0 | 0 | 0 | 0 | 0.603888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2db192f65bfcb35c30ff41be026fbb9826c15f5f | 1,155 | py | Python | leetcode/100_same_tree/100_same_tree.py | ryangillard/misc | d1f9919400636e6b988fa933493b94829a73331e | [
"Apache-2.0"
] | null | null | null | leetcode/100_same_tree/100_same_tree.py | ryangillard/misc | d1f9919400636e6b988fa933493b94829a73331e | [
"Apache-2.0"
] | null | null | null | leetcode/100_same_tree/100_same_tree.py | ryangillard/misc | d1f9919400636e6b988fa933493b94829a73331e | [
"Apache-2.0"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def isSameTree(self, p, q):
"""
:type p: TreeNode
:type q: TreeNode
:rtype: bool
... | 22.211538 | 82 | 0.474459 | 149 | 1,155 | 3.651007 | 0.288591 | 0.033088 | 0.044118 | 0.069853 | 0.099265 | 0.099265 | 0.099265 | 0 | 0 | 0 | 0 | 0.013333 | 0.415584 | 1,155 | 52 | 83 | 22.211538 | 0.792593 | 0.179221 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0 | 0 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2dbc07ae89afd6862592f3b8d9e75a0738480f4a | 601 | py | Python | test_pytesseract.py | primkey7607/deeplens-cv | ffd2548cca6fe36330cf851b21ae3412d567040f | [
"MIT"
] | 11 | 2019-10-07T22:06:30.000Z | 2020-08-26T22:10:53.000Z | test_pytesseract.py | primkey7607/deeplens-cv | ffd2548cca6fe36330cf851b21ae3412d567040f | [
"MIT"
] | 16 | 2019-11-02T00:32:00.000Z | 2022-02-10T00:23:32.000Z | test_pytesseract.py | primkey7607/deeplens-cv | ffd2548cca6fe36330cf851b21ae3412d567040f | [
"MIT"
] | 9 | 2019-10-07T13:33:13.000Z | 2020-09-27T09:50:58.000Z | import logging
import sys
from deeplens.struct import VideoStream
from deeplens.dataflow.map import Sample
from deeplens.ocr.pytesseract import PyTesseractOCR
from timeit import default_timer as timer
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
start = timer()
if len(sys.argv) < ... | 23.115385 | 51 | 0.690516 | 79 | 601 | 5.139241 | 0.531646 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021008 | 0.207987 | 601 | 25 | 52 | 24.04 | 0.831933 | 0 | 0 | 0 | 0 | 0 | 0.054908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2dc0122eac411dfc7f857403442e848ac445a6aa | 2,611 | py | Python | test/acceptance/src/common/monitor_utils.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | test/acceptance/src/common/monitor_utils.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | test/acceptance/src/common/monitor_utils.py | ealogar/servicedirectory | fb4f4bfa8b499b93c03af589ef2f34c08a830b17 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
(c) Copyright 2013 Telefonica, I+D. Printed in Spain (Europe). All Rights
Reserved.
The copyright to the software program(s) is property of Telefonica I+D.
The program(s) may be used and or copied only with the express written
consent of Telefonica I+D or in accordance with the terms and co... | 35.283784 | 101 | 0.589812 | 310 | 2,611 | 4.851613 | 0.387097 | 0.051197 | 0.088431 | 0.091755 | 0.148936 | 0.051197 | 0.033245 | 0.033245 | 0 | 0 | 0 | 0.01573 | 0.318269 | 2,611 | 73 | 102 | 35.767123 | 0.829213 | 0.008043 | 0 | 0.176471 | 0 | 0 | 0.042871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2dc70ac0a76ef8c4bb546df1a2b5a0a229989a57 | 592 | py | Python | bio/utils.py | light940929/omics_api | 57da5fdf5ac0935e0dff33f576a66af3d79e6068 | [
"MIT"
] | null | null | null | bio/utils.py | light940929/omics_api | 57da5fdf5ac0935e0dff33f576a66af3d79e6068 | [
"MIT"
] | null | null | null | bio/utils.py | light940929/omics_api | 57da5fdf5ac0935e0dff33f576a66af3d79e6068 | [
"MIT"
] | null | null | null | from django.db.models.signals import post_save
from oauth2_provider.models import Application
def create_auth_client(sender, instance=None, created=False, **kwargs):
"""
Intended to be used as a receiver function for a `post_save` signal on a custom User model
Creates client_id and client_secret for authen... | 42.285714 | 94 | 0.746622 | 77 | 592 | 5.545455 | 0.636364 | 0.056206 | 0.074941 | 0.103045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002079 | 0.1875 | 592 | 13 | 95 | 45.538462 | 0.885655 | 0.251689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2dd0350fefa785275769e2d483a52206e8e20152 | 523 | py | Python | commons/utils.py | zynomilabs/bots-zyno-playwright | 0f8cec8afbe592428a2a98313d68030cf5993a90 | [
"MIT"
] | null | null | null | commons/utils.py | zynomilabs/bots-zyno-playwright | 0f8cec8afbe592428a2a98313d68030cf5993a90 | [
"MIT"
] | null | null | null | commons/utils.py | zynomilabs/bots-zyno-playwright | 0f8cec8afbe592428a2a98313d68030cf5993a90 | [
"MIT"
] | null | null | null | import os
import pandas as pd
# -----------------------------------------------------
# Singleton class for configuration manager instance creations
# -----------------------------------------------------
class Utils(object):
__instance = None
def ensure_dir(file_path):
directory = os.path.dirname(fi... | 29.055556 | 67 | 0.541109 | 56 | 523 | 4.875 | 0.625 | 0.117216 | 0.095238 | 0.124542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002353 | 0.187381 | 523 | 18 | 68 | 29.055556 | 0.64 | 0.321224 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2dd70437c8815d2b08964d3c80a4378e583c9608 | 338 | py | Python | setup.py | vdutell/STFToolkit | 07e33c428246ca6118b8ae9ccdd4d7e62e18654e | [
"MIT"
] | null | null | null | setup.py | vdutell/STFToolkit | 07e33c428246ca6118b8ae9ccdd4d7e62e18654e | [
"MIT"
] | null | null | null | setup.py | vdutell/STFToolkit | 07e33c428246ca6118b8ae9ccdd4d7e62e18654e | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(name='stftoolkit',
version='1.0',
description='Spatiotemporal Fourier Tools',
author='Vasha DuTell',
author_email='vashadutell@gmail.com',
url='https://github.com/vdutell/STFToolkit',
install_requires=['numpy'],
packages=find_p... | 28.166667 | 50 | 0.671598 | 36 | 338 | 6.194444 | 0.805556 | 0.107623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.195266 | 338 | 11 | 51 | 30.727273 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.343195 | 0.06213 | 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 |
2dde89418ba04716ab8bdb53e84e2e6c0784ae7c | 6,636 | py | Python | tests/auth/test_views.py | austinmcconnell/myflaskapp | 79223c0480387fd95e8dd26620bf0cd50659161c | [
"BSD-3-Clause"
] | null | null | null | tests/auth/test_views.py | austinmcconnell/myflaskapp | 79223c0480387fd95e8dd26620bf0cd50659161c | [
"BSD-3-Clause"
] | 41 | 2018-01-21T22:49:43.000Z | 2022-01-21T19:11:52.000Z | tests/auth/test_views.py | austinmcconnell/myflaskapp | 79223c0480387fd95e8dd26620bf0cd50659161c | [
"BSD-3-Clause"
] | 1 | 2018-02-14T23:27:56.000Z | 2018-02-14T23:27:56.000Z | # -*- coding: utf-8 -*-
import re
from urllib.parse import urlparse
from flask import get_flashed_messages, url_for
from flask_login import login_user
import pytest
from app.extensions import mail
from app.user.models import User
from tests.factories import UserFactory
class TestLoggingIn:
@pytest.mark.paramet... | 33.515152 | 82 | 0.5978 | 772 | 6,636 | 5.018135 | 0.195596 | 0.023232 | 0.040268 | 0.049561 | 0.657202 | 0.606866 | 0.572793 | 0.557821 | 0.557821 | 0.54001 | 0 | 0.005599 | 0.273357 | 6,636 | 197 | 83 | 33.685279 | 0.797802 | 0.069168 | 0 | 0.659259 | 0 | 0 | 0.183073 | 0 | 0 | 0 | 0 | 0.005076 | 0.118519 | 1 | 0.081481 | false | 0.111111 | 0.059259 | 0 | 0.155556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2de6a42f4bc93897f57ae48b3fb2029ef124944d | 941 | py | Python | Algo and DSA/LeetCode-Solutions-master/Python/time-based-key-value-store.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | Algo and DSA/LeetCode-Solutions-master/Python/time-based-key-value-store.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | Algo and DSA/LeetCode-Solutions-master/Python/time-based-key-value-store.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | # Time: set: O(1)
# get: O(logn)
# Space: O(n)
import collections
import bisect
class TimeMap(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.lookup = collections.defaultdict(list)
def set(self, key, value, timestamp):
"""
... | 21.386364 | 62 | 0.539851 | 116 | 941 | 4.327586 | 0.448276 | 0.059761 | 0.067729 | 0.075697 | 0.173307 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009554 | 0.332625 | 941 | 43 | 63 | 21.883721 | 0.789809 | 0.360255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2de8c48042f99edee389de259b5b3d1ed8708fda | 520 | py | Python | pythonbrew/commands/cleanup.py | igroff/pythonbrew | 4d5042cbac129226d6a807e10763e0ee24480f47 | [
"Unlicense"
] | 2 | 2015-01-07T17:26:48.000Z | 2016-08-29T08:42:55.000Z | pythonbrew/commands/cleanup.py | idobatter/pythonbrew | e8823c5494a26e2c91aa516eac80b748474ba129 | [
"Unlicense"
] | null | null | null | pythonbrew/commands/cleanup.py | idobatter/pythonbrew | e8823c5494a26e2c91aa516eac80b748474ba129 | [
"Unlicense"
] | null | null | null | import os
from pythonbrew.basecommand import Command
from pythonbrew.define import PATH_BUILD, PATH_DISTS
from pythonbrew.util import rm_r
class CleanupCommand(Command):
name = "cleanup"
usage = "%prog"
summary = "Remove stale source folders and archives"
def run_command(self, options, args):
... | 26 | 56 | 0.684615 | 67 | 520 | 5.164179 | 0.552239 | 0.121387 | 0.086705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228846 | 520 | 19 | 57 | 27.368421 | 0.862843 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 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 |
2de9769f3125b8ea429624cf058f52c60b5112c2 | 556 | py | Python | src/backend/partaj/core/migrations/0009_add_size_to_referral_attachments.py | MTES-MCT/partaj | 0025c17a96d9212430d18ec36f6a2474c4609738 | [
"MIT"
] | 2 | 2020-10-15T11:28:26.000Z | 2021-06-25T15:24:33.000Z | src/backend/partaj/core/migrations/0009_add_size_to_referral_attachments.py | MTES-MCT/partaj | 0025c17a96d9212430d18ec36f6a2474c4609738 | [
"MIT"
] | 7 | 2020-10-01T14:49:51.000Z | 2022-01-24T09:44:10.000Z | src/backend/partaj/core/migrations/0009_add_size_to_referral_attachments.py | MTES-MCT/partaj | 0025c17a96d9212430d18ec36f6a2474c4609738 | [
"MIT"
] | 3 | 2020-03-18T15:53:26.000Z | 2021-09-16T14:39:27.000Z | # Generated by Django 2.2.7 on 2020-04-14 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("core", "0008_add_referral_assignments"),
]
operations = [
migrations.AddField(
model_name="referralattachment",
name... | 23.166667 | 58 | 0.546763 | 54 | 556 | 5.518519 | 0.777778 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052925 | 0.354317 | 556 | 23 | 59 | 24.173913 | 0.777159 | 0.080935 | 0 | 0.117647 | 1 | 0 | 0.182711 | 0.056974 | 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 |
2deaa75f19a7f830336a52cf00df1c389e113013 | 5,055 | py | Python | main_web/views_stencil.py | jsxjx/web_on_hbase | 277af90a18e62bf1d0d934dc9609dfd1837d6a39 | [
"MIT"
] | null | null | null | main_web/views_stencil.py | jsxjx/web_on_hbase | 277af90a18e62bf1d0d934dc9609dfd1837d6a39 | [
"MIT"
] | null | null | null | main_web/views_stencil.py | jsxjx/web_on_hbase | 277af90a18e62bf1d0d934dc9609dfd1837d6a39 | [
"MIT"
] | 1 | 2018-05-26T07:10:42.000Z | 2018-05-26T07:10:42.000Z | #coding=utf-8
from django.shortcuts import render
from django.http import HttpResponse
from hbase_function import HBASE_interface
from hbase_function import LIST_to_STR
from aircraft_config import AC_WQAR_CONFIG
import json
def storing_stencil(request):
return render(request, 'storing_stencil_html.html')
def sto... | 36.630435 | 93 | 0.650445 | 681 | 5,055 | 4.433186 | 0.155653 | 0.043061 | 0.041736 | 0.039748 | 0.304074 | 0.224246 | 0.134813 | 0.134813 | 0.095727 | 0.084465 | 0 | 0.053493 | 0.23818 | 5,055 | 138 | 94 | 36.630435 | 0.73046 | 0.012463 | 0 | 0.172727 | 0 | 0 | 0.134643 | 0.005171 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054545 | null | null | 0.081818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2dec2ba8ada5307cffa91010be7e1b7ac6147c47 | 1,114 | py | Python | src/nise/metadata/config.py | kurtp-ni/nimi-python | 4f0bccce67a69ca9f46a8ab9b07dc26ca0049729 | [
"MIT"
] | 88 | 2017-08-03T18:07:27.000Z | 2022-01-28T13:55:06.000Z | src/nise/metadata/config.py | kurtp-ni/nimi-python | 4f0bccce67a69ca9f46a8ab9b07dc26ca0049729 | [
"MIT"
] | 1,310 | 2017-07-11T18:42:44.000Z | 2022-03-28T21:03:57.000Z | src/nise/metadata/config.py | kurtp-ni/nimi-python | 4f0bccce67a69ca9f46a8ab9b07dc26ca0049729 | [
"MIT"
] | 70 | 2017-07-25T14:52:53.000Z | 2022-03-31T14:14:23.000Z | # -*- coding: utf-8 -*-
# This file is generated from NI Switch Executive API metadata version 21.0.0d1
config = {
'api_version': '21.0.0d1',
'c_function_prefix': 'niSE_',
'close_function': 'CloseSession',
'context_manager_name': {
},
'custom_types': [
],
'driver_name': 'NI Switch Execut... | 25.906977 | 79 | 0.496409 | 97 | 1,114 | 5.463918 | 0.628866 | 0.113208 | 0.096226 | 0.049057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026099 | 0.346499 | 1,114 | 42 | 80 | 26.52381 | 0.701923 | 0.088869 | 0 | 0.225 | 1 | 0 | 0.474308 | 0.103755 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2def2ad0e1bb0807143b255cd06fdd2fcfbc4e0d | 1,890 | py | Python | ethereum_gasprice/providers/etherchain_provider.py | Elastoo-Team/ethereum-gasprice-py | 66340068464991acfcbec0f7e06e6dca41735a16 | [
"MIT"
] | 4 | 2021-02-05T10:30:07.000Z | 2021-02-26T03:11:13.000Z | ethereum_gasprice/providers/etherchain_provider.py | Elastoo-Team/ethereum-gasprice-py | 66340068464991acfcbec0f7e06e6dca41735a16 | [
"MIT"
] | 6 | 2021-02-05T12:55:58.000Z | 2021-03-04T17:53:48.000Z | ethereum_gasprice/providers/etherchain_provider.py | Elastoo-Team/ethereum-gasprice-py | 66340068464991acfcbec0f7e06e6dca41735a16 | [
"MIT"
] | null | null | null | from typing import Dict, Optional, Tuple
from ethereum_gasprice.consts import GaspriceStrategy
from ethereum_gasprice.providers.base import BaseAsyncAPIGaspriceProvider, BaseSyncAPIGaspriceProvider
__all__ = ["EtherchainProvider", "AsyncEtherchainProvider"]
class EtherchainProvider(BaseSyncAPIGaspriceProvider):
... | 30.983607 | 102 | 0.632275 | 182 | 1,890 | 6.423077 | 0.39011 | 0.123182 | 0.051326 | 0.032506 | 0.306245 | 0.306245 | 0.306245 | 0.306245 | 0.306245 | 0.306245 | 0 | 0.004354 | 0.270899 | 1,890 | 60 | 103 | 31.5 | 0.843977 | 0.060847 | 0 | 0.410256 | 0 | 0 | 0.070398 | 0.013272 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.051282 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
93081e5c8f1e1557dd46d29a25c687a8397b1a5c | 647 | py | Python | models/love.py | hand-code/pbs | d5d8dc00d949b70f96118fc09c2ba8e627625591 | [
"MIT"
] | null | null | null | models/love.py | hand-code/pbs | d5d8dc00d949b70f96118fc09c2ba8e627625591 | [
"MIT"
] | null | null | null | models/love.py | hand-code/pbs | d5d8dc00d949b70f96118fc09c2ba8e627625591 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
package.module
~~~~~~~~~~~~~~
A brief description goes here.
:copyright: (c) 2016 by chenxiaofeng.
:license: LICENSE_NAME, see LICENSE_FILE for more details.
"""
from datetime import datetime
from .base import db
class Love(db.Model):
__tablename__ = 'love'
i... | 21.566667 | 68 | 0.646059 | 88 | 647 | 4.511364 | 0.522727 | 0.080605 | 0.100756 | 0.09068 | 0.143577 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009921 | 0.22102 | 647 | 29 | 69 | 22.310345 | 0.777778 | 0.281298 | 0 | 0 | 0 | 0 | 0.009153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
930bc0e4bfcd7d1dcdfaacce90817269a5755b37 | 452 | py | Python | travelapp/migrations/backup/0005_auto_20210208_1400.py | cy4ok/my-region | 8f3155354d13bc93b38b3ed824f6f0f380dac6b4 | [
"MIT"
] | null | null | null | travelapp/migrations/backup/0005_auto_20210208_1400.py | cy4ok/my-region | 8f3155354d13bc93b38b3ed824f6f0f380dac6b4 | [
"MIT"
] | 1 | 2021-03-23T16:22:13.000Z | 2021-03-23T16:22:13.000Z | travelapp/migrations/backup/0005_auto_20210208_1400.py | cy4ok/my-region | 8f3155354d13bc93b38b3ed824f6f0f380dac6b4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-08 11:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('travelapp', '0004_auto_20210208_1400'),
]
operations = [
migrations.AlterField(
model_name='traveler',
name='subscri... | 23.789474 | 105 | 0.632743 | 48 | 452 | 5.833333 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091445 | 0.25 | 452 | 18 | 106 | 25.111111 | 0.734513 | 0.099558 | 0 | 0 | 1 | 0 | 0.2 | 0.05679 | 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 |
930cda096e13a00b8589963b1efcac2dd148e59b | 6,693 | py | Python | python/examples/nfc-anticol.py | regnarg/nfc-bindings | b79cc4948097dd814600531ce9684a41bd930166 | [
"BSD-3-Clause"
] | 21 | 2015-08-30T21:07:31.000Z | 2022-01-03T12:00:53.000Z | python/examples/nfc-anticol.py | regnarg/nfc-bindings | b79cc4948097dd814600531ce9684a41bd930166 | [
"BSD-3-Clause"
] | 14 | 2015-02-07T20:40:15.000Z | 2022-01-03T13:30:55.000Z | python/examples/nfc-anticol.py | regnarg/nfc-bindings | b79cc4948097dd814600531ce9684a41bd930166 | [
"BSD-3-Clause"
] | 10 | 2015-05-20T09:22:42.000Z | 2021-12-14T12:48:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Generates one ISO14443-A anti-collision process "by-hand" """
from __future__ import print_function
import nfc
MAX_FRAME_LEN = 264
abtRawUid = bytes(12)
abtAtqa = bytes(2)
abtAts = bytes(MAX_FRAME_LEN)
szAts = 0
szCL = 1
quiet_output = False
force_rats = False
timed... | 27.207317 | 113 | 0.640072 | 947 | 6,693 | 4.409715 | 0.209081 | 0.022989 | 0.019397 | 0.022989 | 0.554119 | 0.513649 | 0.436542 | 0.411877 | 0.394636 | 0.374282 | 0 | 0.061954 | 0.230689 | 6,693 | 246 | 114 | 27.207317 | 0.749077 | 0.167638 | 0 | 0.489796 | 1 | 0 | 0.097107 | 0.01519 | 0 | 0 | 0.01953 | 0 | 0 | 1 | 0.013605 | false | 0 | 0.013605 | 0 | 0.068027 | 0.176871 | 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 |
9311662879a42315b61db2f06a65edda41b73e46 | 965 | py | Python | model_compiler/src/model_compiler/compilers/keras_model_file_to_tflite_model.py | yuanliya/Adlik | 602074b44064002fc0bb054e17a989a5bcf22e92 | [
"Apache-2.0"
] | 548 | 2019-09-27T07:37:47.000Z | 2022-03-31T05:12:38.000Z | model_compiler/src/model_compiler/compilers/keras_model_file_to_tflite_model.py | yuanliya/Adlik | 602074b44064002fc0bb054e17a989a5bcf22e92 | [
"Apache-2.0"
] | 533 | 2019-09-27T06:30:41.000Z | 2022-03-29T07:34:08.000Z | model_compiler/src/model_compiler/compilers/keras_model_file_to_tflite_model.py | yuanliya/Adlik | 602074b44064002fc0bb054e17a989a5bcf22e92 | [
"Apache-2.0"
] | 54 | 2019-10-10T02:19:31.000Z | 2021-12-28T03:37:45.000Z | # Copyright 2019 ZTE corporation. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import tensorflow as tf
from . import repository
from ..models.sources.keras_model_file import KerasModelFile
from ..models.targets.tflite_model import TfLiteModel
from .. import tflite_util
from .. import keras_util
@repo... | 38.6 | 116 | 0.8 | 125 | 965 | 5.936 | 0.424 | 0.087601 | 0.043127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007059 | 0.119171 | 965 | 24 | 117 | 40.208333 | 0.865882 | 0.091192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
931661bb31c5022ddb264427076a6149f295c400 | 736 | py | Python | 0105_rubypython/examples/html.py | eto/study | 95f506569657c174bf2347b5240768fafedaa285 | [
"BSD-3-Clause"
] | null | null | null | 0105_rubypython/examples/html.py | eto/study | 95f506569657c174bf2347b5240768fafedaa285 | [
"BSD-3-Clause"
] | null | null | null | 0105_rubypython/examples/html.py | eto/study | 95f506569657c174bf2347b5240768fafedaa285 | [
"BSD-3-Clause"
] | null | null | null | import httplib
import htmllib
import formatter
import re, sys
match = None
if len(sys.argv) > 1:
url = sys.argv[1]
match = re.match('^http:\/\/([^\/]+)(\/.*)$', url)
if match:
host, path = match.groups()
else:
print "Usage: python ", sys.argv[0], " http://host/[path]"
sys.exit(1)
h = httplib.HTTP... | 21.647059 | 62 | 0.630435 | 100 | 736 | 4.64 | 0.5 | 0.045259 | 0.034483 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013289 | 0.182065 | 736 | 33 | 63 | 22.30303 | 0.757475 | 0 | 0 | 0.142857 | 0 | 0 | 0.148098 | 0.033967 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9317ac4215847ebde667e595866fa8e5255693b9 | 25,209 | py | Python | pyrosetta_toolkit/window_modules/protocol_builder/ProtocolBuilder.py | SchiefLab/Jade | 791d26892aacf21bca733aa9c1c6ea3f2be51958 | [
"BSD-3-Clause"
] | 5 | 2017-02-24T08:55:51.000Z | 2020-09-01T01:59:33.000Z | pyrosetta_toolkit/window_modules/protocol_builder/ProtocolBuilder.py | SchiefLab/Jade | 791d26892aacf21bca733aa9c1c6ea3f2be51958 | [
"BSD-3-Clause"
] | 2 | 2020-10-27T21:03:50.000Z | 2021-11-15T17:46:45.000Z | pyrosetta_toolkit/window_modules/protocol_builder/ProtocolBuilder.py | SchiefLab/Jade | 791d26892aacf21bca733aa9c1c6ea3f2be51958 | [
"BSD-3-Clause"
] | 2 | 2019-08-01T11:21:14.000Z | 2020-09-01T01:59:35.000Z | #!/usr/bin/env python
#
# (c) Copyright Rosetta Commons Member Institutions.
# (c) This file is part of the Rosetta software suite and is made available under license.
# (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
# (c) For more information, see http://www.rosettacommons.or... | 43.918118 | 242 | 0.629021 | 2,945 | 25,209 | 5.358574 | 0.195925 | 0.029656 | 0.011406 | 0.007541 | 0.202332 | 0.13041 | 0.078512 | 0.064064 | 0.042393 | 0.039351 | 0 | 0.015599 | 0.247293 | 25,209 | 573 | 243 | 43.994764 | 0.816074 | 0.242572 | 0 | 0.159763 | 0 | 0 | 0.183411 | 0 | 0.002959 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017751 | null | null | 0.142012 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9332367534e64dc55c16e16888193df6163b9ef1 | 990 | py | Python | tests/unit/test_clients.py | strpc/easy_notifyer | 6d6eaf7edae9a709d34dda27d7384494fee0e772 | [
"MIT"
] | 6 | 2020-12-24T18:54:39.000Z | 2021-11-11T16:24:52.000Z | tests/unit/test_clients.py | strpc/easy_notifyer | 6d6eaf7edae9a709d34dda27d7384494fee0e772 | [
"MIT"
] | null | null | null | tests/unit/test_clients.py | strpc/easy_notifyer | 6d6eaf7edae9a709d34dda27d7384494fee0e772 | [
"MIT"
] | 1 | 2020-12-24T18:56:21.000Z | 2020-12-24T18:56:21.000Z | from typing import Dict
import pytest
from pytest_mock import MockerFixture
from easy_notifyer import requests
from easy_notifyer.requests import Requests as Requests
pytestmark = [
pytest.mark.asyncio,
pytest.mark.unit,
]
@pytest.mark.parametrize(
"url, params, result",
[
(
"h... | 17.368421 | 55 | 0.620202 | 106 | 990 | 5.698113 | 0.462264 | 0.049669 | 0.084437 | 0.056291 | 0.099338 | 0.099338 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0.264646 | 990 | 56 | 56 | 17.678571 | 0.82967 | 0 | 0 | 0.068182 | 0 | 0 | 0.118182 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 1 | 0.022727 | false | 0.068182 | 0.113636 | 0 | 0.204545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9332eaaa054e73e711f53a0ac29f4a26265e0ee6 | 4,002 | py | Python | Assigment-1/Previous sloutions testing/ass3.py | youssefattia98/Research-Track-Assignment-1 | 6e03bc0418967828fcfa722e1fe75c37c6bab48e | [
"MIT"
] | null | null | null | Assigment-1/Previous sloutions testing/ass3.py | youssefattia98/Research-Track-Assignment-1 | 6e03bc0418967828fcfa722e1fe75c37c6bab48e | [
"MIT"
] | null | null | null | Assigment-1/Previous sloutions testing/ass3.py | youssefattia98/Research-Track-Assignment-1 | 6e03bc0418967828fcfa722e1fe75c37c6bab48e | [
"MIT"
] | null | null | null | from __future__ import print_function
import time
from sr.robot import *
"""
run with:
$ python2 run.py ass3.py
"""
tokenissilver = 1
turndircetion = 1
a_th = 2.0
""" float: Threshold for the control of the linear distance"""
d_th = 0.4
""" float: Threshold for the control of the orientation"""
beforehit = 0.75
... | 24.552147 | 96 | 0.556472 | 585 | 4,002 | 3.748718 | 0.213675 | 0.045144 | 0.029184 | 0.01824 | 0.547652 | 0.51254 | 0.458732 | 0.401277 | 0.363885 | 0.323757 | 0 | 0.05132 | 0.318341 | 4,002 | 162 | 97 | 24.703704 | 0.752566 | 0.117191 | 0 | 0.447059 | 0 | 0 | 0.036667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035294 | null | null | 0.094118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9335738962ca7a90985c5e7fdde6a78b30b92731 | 3,486 | py | Python | HelperTools/CAV_to_constraint_arr.py | kataya/arcade-expressions | 2642d06574d67b89b8e14860e366529fc623b965 | [
"Apache-2.0"
] | 119 | 2018-03-08T21:52:25.000Z | 2022-03-21T05:01:22.000Z | HelperTools/CAV_to_constraint_arr.py | kataya/arcade-expressions | 2642d06574d67b89b8e14860e366529fc623b965 | [
"Apache-2.0"
] | 33 | 2020-06-02T02:17:54.000Z | 2020-07-30T17:27:42.000Z | HelperTools/CAV_to_constraint_arr.py | kataya/arcade-expressions | 2642d06574d67b89b8e14860e366529fc623b965 | [
"Apache-2.0"
] | 68 | 2018-03-15T00:03:10.000Z | 2022-02-28T04:20:33.000Z | import arcpy
import pandas as pd
import os
fc = r"C:\\temp\\GasPipelineEnterpriseDataManagement\\Databases\\UPDM_UtilityNetwork.gdb\\UtilityNetwork\\PipelineLine"
field_group_name = 'Limit Material By Asset Type'
def view_cav(table, subtype_field):
index = ['fieldGroupName', 'subtype', 'isRetired', 'id']
dat... | 32.579439 | 119 | 0.593804 | 440 | 3,486 | 4.565909 | 0.329545 | 0.020906 | 0.017422 | 0.025386 | 0.049776 | 0.020906 | 0.020906 | 0.020906 | 0.020906 | 0 | 0 | 0.006017 | 0.237235 | 3,486 | 106 | 120 | 32.886792 | 0.74953 | 0 | 0 | 0.2 | 0 | 0.011111 | 0.610155 | 0.139989 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011111 | false | 0 | 0.033333 | 0 | 0.111111 | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9338fb0ced391c1adfe08980ca1a0f23e09a0358 | 4,992 | py | Python | tests/test_pokerbot.py | pokermania/pokernetwork | 6e34a860659d86b6d3733b5c9649eab9f4be9c6a | [
"BSD-2-Clause"
] | 57 | 2015-05-25T05:39:03.000Z | 2021-12-03T13:30:54.000Z | tests/test_pokerbot.py | track2/pokernetwork | 6e34a860659d86b6d3733b5c9649eab9f4be9c6a | [
"BSD-2-Clause"
] | 2 | 2015-02-06T03:43:21.000Z | 2018-07-06T00:35:33.000Z | tests/test_pokerbot.py | track2/pokernetwork | 6e34a860659d86b6d3733b5c9649eab9f4be9c6a | [
"BSD-2-Clause"
] | 18 | 2015-01-26T04:54:12.000Z | 2019-11-16T09:07:07.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 Johan Euphrosine <proppy@aminche.com>
# Copyright (C) 2007, 2008, 2009 Loic Dachary <loic@dachary.org>
#
# This software's license gives you freedom; you can copy, convey,
# propagate, redistribute and/or modify this program under the terms of
# the G... | 35.657143 | 313 | 0.66847 | 674 | 4,992 | 4.851632 | 0.373887 | 0.022018 | 0.019878 | 0.017125 | 0.391437 | 0.367584 | 0.336391 | 0.315596 | 0.315596 | 0.315596 | 0 | 0.027583 | 0.172075 | 4,992 | 139 | 314 | 35.913669 | 0.76361 | 0.207131 | 0 | 0.3125 | 0 | 0.041667 | 0.468107 | 0.129606 | 0 | 0 | 0 | 0 | 0.052083 | 1 | 0.072917 | false | 0.083333 | 0.072917 | 0.010417 | 0.197917 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9344735517c6fd094cf55ceded1f3708112247db | 409 | py | Python | shapes/tests/test_pointset.py | maurobio/shapes | 6c3a8fbae02ab8571a954026c7835766ea06f236 | [
"MIT"
] | null | null | null | shapes/tests/test_pointset.py | maurobio/shapes | 6c3a8fbae02ab8571a954026c7835766ea06f236 | [
"MIT"
] | null | null | null | shapes/tests/test_pointset.py | maurobio/shapes | 6c3a8fbae02ab8571a954026c7835766ea06f236 | [
"MIT"
] | null | null | null | from unittest import TestCase
import shapes
class TestShape(TestCase):
def test_initialization1(self):
newpoints = shapes.Shape(shape_name="Tyrannosaurus")
newpoints.add_landmark([1,2])
newpoints.add_landmark([3,2])
newpoints.add_landmark([2,2])
assert(newpoints.name=='Tyr... | 27.266667 | 60 | 0.682152 | 48 | 409 | 5.666667 | 0.5 | 0.132353 | 0.220588 | 0.154412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.200489 | 409 | 14 | 61 | 29.214286 | 0.804281 | 0 | 0 | 0 | 0 | 0 | 0.06357 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 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 |
934c60253cfe247cccfb5690a0480d54bda54099 | 12,887 | py | Python | adobe_sync_test.py | sillywilly42/adobe-sync | 92368c563948c694100d656b8d3da916ad04d894 | [
"Apache-2.0"
] | null | null | null | adobe_sync_test.py | sillywilly42/adobe-sync | 92368c563948c694100d656b8d3da916ad04d894 | [
"Apache-2.0"
] | null | null | null | adobe_sync_test.py | sillywilly42/adobe-sync | 92368c563948c694100d656b8d3da916ad04d894 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
"""Tests for adobe_sync module."""
import unittest
import adobe_sync
class AdobeSyncUnderTest(adobe_sync.AdobeSync):
"""Subclasses AdobeSync in order to override init method."""
def __init__(self):
self.config = {
'host': 'non-existent.adobe.io',
'endpoint': 'v2/usermana... | 44.902439 | 100 | 0.596182 | 1,449 | 12,887 | 4.986197 | 0.168392 | 0.237509 | 0.042076 | 0.041522 | 0.628789 | 0.573426 | 0.465606 | 0.38436 | 0.296055 | 0.28609 | 0 | 0.045231 | 0.258866 | 12,887 | 286 | 101 | 45.059441 | 0.711234 | 0.116008 | 0 | 0.242718 | 0 | 0 | 0.427737 | 0.024943 | 0 | 0 | 0 | 0 | 0.019417 | 1 | 0.033981 | false | 0 | 0.014563 | 0 | 0.087379 | 0.009709 | 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 |
935a3bb796409ebd7cfc34482158c9408e466ace | 936 | py | Python | scripts/pyqtgraph-develop/examples/CLIexample.py | kuldeepaman/tf-pose | 8050912c52a7b4f3c8a2656f267d47ba21d093f6 | [
"Apache-2.0"
] | null | null | null | scripts/pyqtgraph-develop/examples/CLIexample.py | kuldeepaman/tf-pose | 8050912c52a7b4f3c8a2656f267d47ba21d093f6 | [
"Apache-2.0"
] | null | null | null | scripts/pyqtgraph-develop/examples/CLIexample.py | kuldeepaman/tf-pose | 8050912c52a7b4f3c8a2656f267d47ba21d093f6 | [
"Apache-2.0"
] | null | null | null | """
Display a plot and an image with minimal setup.
pg.plot() and pg.image() are indended to be used from an interactive prompt
to allow easy data inspection (but note that PySide unfortunately does not
call the Qt event loop while the interactive prompt is running, in this case
it is necessary to call QApplica... | 34.666667 | 84 | 0.728632 | 144 | 936 | 4.659722 | 0.611111 | 0.020864 | 0.032787 | 0.053651 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.189103 | 936 | 26 | 85 | 36 | 0.869565 | 0.519231 | 0 | 0 | 0 | 0 | 0.205811 | 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 |
9361c961dfd970f6b9e581dde08a4809362a9bcc | 205 | py | Python | math/find-angle-mbc.py | anishLearnsToCode/hackerrank-python | 7d707c07af051e7b00471ebe547effd7e1d6d9d9 | [
"MIT"
] | 2 | 2020-05-21T16:18:26.000Z | 2021-11-28T15:44:33.000Z | math/find-angle-mbc.py | anishLearnsToCode/hackerrank-python | 7d707c07af051e7b00471ebe547effd7e1d6d9d9 | [
"MIT"
] | null | null | null | math/find-angle-mbc.py | anishLearnsToCode/hackerrank-python | 7d707c07af051e7b00471ebe547effd7e1d6d9d9 | [
"MIT"
] | 2 | 2020-11-01T00:55:53.000Z | 2021-10-31T16:05:17.000Z | # https://www.hackerrank.com/challenges/find-angle/problem
import math
AB = int(input())
BC = int(input())
h = math.sqrt(pow(AB, 2) + pow(BC, 2))
print(str(round(math.degrees(math.acos(BC / h)))) + '°')
| 22.777778 | 58 | 0.64878 | 35 | 205 | 3.828571 | 0.685714 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.117073 | 205 | 8 | 59 | 25.625 | 0.723757 | 0.273171 | 0 | 0 | 0 | 0 | 0.006803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
9362058009a071560c0e5a9a20b1384f6e0367a9 | 2,032 | py | Python | demo/main_app.py | ayabel/HebSafeHarbor | 4198503d2265f1eb12b5c31d2e1b5db64296229f | [
"MIT"
] | null | null | null | demo/main_app.py | ayabel/HebSafeHarbor | 4198503d2265f1eb12b5c31d2e1b5db64296229f | [
"MIT"
] | null | null | null | demo/main_app.py | ayabel/HebSafeHarbor | 4198503d2265f1eb12b5c31d2e1b5db64296229f | [
"MIT"
] | null | null | null | import json
import requests
import streamlit as st
st.set_page_config(layout="wide", page_title="Hebrew Safe Harbor", initial_sidebar_state="collapsed")
from visualizer import visualize_response
DEFAULT_TEXT = "גדעון לבנה הגיע היום לבית החולים שערי צדק עם תלונות על כאבים בחזה"
PATH = r"../resources_old"
URL = "http... | 35.034483 | 111 | 0.543799 | 232 | 2,032 | 4.633621 | 0.508621 | 0.019535 | 0.027907 | 0.03907 | 0.044651 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013825 | 0.359252 | 2,032 | 57 | 112 | 35.649123 | 0.811828 | 0.063976 | 0 | 0.068182 | 0 | 0 | 0.220759 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.022727 | false | 0 | 0.090909 | 0 | 0.113636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9362349a46a3c9697f149977b0f232c1b23e431e | 3,393 | py | Python | whatsgramstickers/BotActions.py | hellmrf/WhatsGram-Stickers | af84f2a10628be74169c899ca7e2857288feddfa | [
"MIT"
] | 9 | 2020-07-14T08:58:10.000Z | 2022-02-02T08:29:42.000Z | whatsgramstickers/BotActions.py | killersparrow0/WhatsGram-Stickers | af84f2a10628be74169c899ca7e2857288feddfa | [
"MIT"
] | null | null | null | whatsgramstickers/BotActions.py | killersparrow0/WhatsGram-Stickers | af84f2a10628be74169c899ca7e2857288feddfa | [
"MIT"
] | 2 | 2021-01-28T21:35:47.000Z | 2021-07-18T15:06:30.000Z | import logging
from webwhatsapi import WhatsAPIDriver
from db import DB
from User import User
from StickerSet import StickerSet
from BotMessages import WHATSAPP_MESSAGES
from Constants import STAGES
class BotActions:
def __init__(self, driver: WhatsAPIDriver):
self.BOT_MESSAGES = WHATSAPP_MESSAGES
... | 36.880435 | 83 | 0.656057 | 448 | 3,393 | 4.651786 | 0.174107 | 0.100768 | 0.047505 | 0.06238 | 0.352207 | 0.28167 | 0.152591 | 0.122841 | 0.071017 | 0 | 0 | 0 | 0.248747 | 3,393 | 91 | 84 | 37.285714 | 0.817576 | 0.020925 | 0 | 0.223684 | 0 | 0 | 0.09069 | 0.037059 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.144737 | false | 0 | 0.092105 | 0.013158 | 0.447368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9366beab8b26b02f1e5e6b4357ad63c8b586e2a3 | 2,034 | py | Python | load_structs.py | jelbrek/ghidra_kernelcache | b0961b3cdfb96e8b86c89d73fdedf84affc01c77 | [
"Apache-2.0"
] | null | null | null | load_structs.py | jelbrek/ghidra_kernelcache | b0961b3cdfb96e8b86c89d73fdedf84affc01c77 | [
"Apache-2.0"
] | null | null | null | load_structs.py | jelbrek/ghidra_kernelcache | b0961b3cdfb96e8b86c89d73fdedf84affc01c77 | [
"Apache-2.0"
] | null | null | null | #import structures and typedefs from old kernelcache to a new one
#@author simo
#@category iOS.kernel
#@toolbar logos/load_structs.png
#@keybinding Meta Shift L
#@menupath
from ghidra.app.services import DataTypeManagerService
from ghidra.program.model.data import StructureDataType,PointerDataType
from ghidra.app.serv... | 25.746835 | 79 | 0.669617 | 242 | 2,034 | 5.516529 | 0.46281 | 0.022472 | 0.019476 | 0.031461 | 0.080899 | 0.040449 | 0.040449 | 0 | 0 | 0 | 0 | 0.002591 | 0.240905 | 2,034 | 78 | 80 | 26.076923 | 0.862047 | 0.078663 | 0 | 0.148936 | 0 | 0 | 0.08258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
93696defae50178e5fc97fa15734e626a9138f9c | 611 | py | Python | tests/test_dev.py | xapple/pbs3 | 07936afb8e05049d3791d24626bb8a5582e8beb9 | [
"MIT"
] | 1 | 2019-11-22T13:10:37.000Z | 2019-11-22T13:10:37.000Z | tests/test_dev.py | xapple/pbs3 | 07936afb8e05049d3791d24626bb8a5582e8beb9 | [
"MIT"
] | null | null | null | tests/test_dev.py | xapple/pbs3 | 07936afb8e05049d3791d24626bb8a5582e8beb9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Written by Lucas Sinclair.
MIT Licensed.
Contact at www.sinclair.bio
Development script to test some of the functionality in `pbs3`.
Typically you would run this file from a command line like this:
ipython3 -i -- ~/deploy/pbs3/tests/test_dev.py
"""
# Internal... | 21.068966 | 79 | 0.615385 | 79 | 611 | 4.746835 | 0.734177 | 0.096 | 0.058667 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015009 | 0.12766 | 611 | 29 | 80 | 21.068966 | 0.688555 | 0.512275 | 0 | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
936cb6a015f1dda354b523b16da85002d60cdb9e | 366 | py | Python | src/Dispatch/Engines/EngineMock.py | NikolayRag/codeg | 2af182aaab3fea7c5f94727569fa65d9adda9de0 | [
"MIT"
] | null | null | null | src/Dispatch/Engines/EngineMock.py | NikolayRag/codeg | 2af182aaab3fea7c5f94727569fa65d9adda9de0 | [
"MIT"
] | null | null | null | src/Dispatch/Engines/EngineMock.py | NikolayRag/codeg | 2af182aaab3fea7c5f94727569fa65d9adda9de0 | [
"MIT"
] | null | null | null | from ..DispatchEngine import *
class EngineMock(DispatchEngine):
nameBase = 'Mockup'
def enumerate(_defs=None):
iniDefs = {'50x50':(50,50), '200x200':(200,200)}
return iniDefs
def __init__(self, _name, privData=None):
self.size = privData
_name = f"{self.nameBase} {_name}"
DispatchEngine.__init__(s... | 15.25 | 50 | 0.691257 | 44 | 366 | 5.454545 | 0.568182 | 0.066667 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.166667 | 366 | 23 | 51 | 15.913043 | 0.721311 | 0 | 0 | 0 | 0 | 0 | 0.112022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
93785676436a40b3df2ea2cdafa24a2e30598a05 | 1,215 | py | Python | lib/dummy_classifier.py | knausj85/parrot.py | ae5dc2de6f7d2eae9436e4f1126970b1c32a5245 | [
"MIT"
] | 80 | 2019-07-17T21:52:31.000Z | 2022-03-15T20:09:45.000Z | lib/dummy_classifier.py | knausj85/parrot.py | ae5dc2de6f7d2eae9436e4f1126970b1c32a5245 | [
"MIT"
] | 4 | 2019-08-23T15:13:46.000Z | 2021-06-18T13:41:11.000Z | lib/dummy_classifier.py | knausj85/parrot.py | ae5dc2de6f7d2eae9436e4f1126970b1c32a5245 | [
"MIT"
] | 16 | 2020-09-20T10:21:29.000Z | 2022-03-17T00:43:08.000Z | import time
import numpy as np
import copy
from config.config import *
# NOTE - This classifier cannot be fit - It only supports silence and noise as categories
class DummyClassifier:
classes_ = ['silence', 'noise']
settings = {
'version': 1,
'RATE': RATE,
'CHANNELS': CHANNELS,
... | 31.973684 | 98 | 0.6107 | 138 | 1,215 | 5.246377 | 0.521739 | 0.06768 | 0.052486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016746 | 0.311934 | 1,215 | 38 | 99 | 31.973684 | 0.849282 | 0.218107 | 0 | 0 | 0 | 0 | 0.090042 | 0.022246 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
93792724ebd463da31ce6b74747879234fef84bf | 37,285 | py | Python | gerrit.py | rob-ward/gerrit-flow | 097b5ec6d967f37cd088e08d93a12114fe80e131 | [
"BSD-2-Clause"
] | 1 | 2016-04-04T12:08:44.000Z | 2016-04-04T12:08:44.000Z | gerrit.py | rob-ward/gerrit-flow | 097b5ec6d967f37cd088e08d93a12114fe80e131 | [
"BSD-2-Clause"
] | null | null | null | gerrit.py | rob-ward/gerrit-flow | 097b5ec6d967f37cd088e08d93a12114fe80e131 | [
"BSD-2-Clause"
] | null | null | null | #! /usr/bin/env python
# Copyright (c) 2013, Rob Ward
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright
# notice, this list ... | 33.711573 | 178 | 0.670752 | 5,242 | 37,285 | 4.69401 | 0.126669 | 0.05141 | 0.030887 | 0.017069 | 0.447005 | 0.397505 | 0.365521 | 0.337723 | 0.313379 | 0.297082 | 0 | 0.002759 | 0.173689 | 37,285 | 1,105 | 179 | 33.742081 | 0.795904 | 0.073273 | 0 | 0.427995 | 0 | 0.071332 | 0.428387 | 0.020379 | 0 | 0 | 0 | 0.000905 | 0 | 0 | null | null | 0.001346 | 0.013459 | null | null | 0.115747 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
937c2207b9125fe3b9240474b2871ed193551909 | 5,196 | py | Python | main.py | rumbleFTW/wordleBot | c62d3dc8fd27157195379b50e9895305c5ffbb15 | [
"MIT"
] | 1 | 2022-03-27T06:52:29.000Z | 2022-03-27T06:52:29.000Z | main.py | rumbleFTW/wordleBot | c62d3dc8fd27157195379b50e9895305c5ffbb15 | [
"MIT"
] | null | null | null | main.py | rumbleFTW/wordleBot | c62d3dc8fd27157195379b50e9895305c5ffbb15 | [
"MIT"
] | null | null | null | #importing all dependencies
from time import time
import time
from data import *
from funcs import *
from stats import *
from selenium import webdriver
TIME = 2
PATH = r"C:\Program Files (x86)\chromedriver_win32\chromedriver.exe" ... | 45.982301 | 132 | 0.581409 | 639 | 5,196 | 4.446009 | 0.27543 | 0.13094 | 0.152763 | 0.17353 | 0.437874 | 0.31503 | 0.31503 | 0 | 0 | 0 | 0 | 0.035352 | 0.297729 | 5,196 | 112 | 133 | 46.392857 | 0.743217 | 0.081409 | 0 | 0 | 0 | 0 | 0.120129 | 0.035737 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.068182 | 0 | 0.102273 | 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 |
937fd7b4a52c8fa5a6e8178dd5838442b3a5a3cd | 1,189 | py | Python | CONTENT/PYTHON/LEETCODE/221_maximal_square/maximal_square.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 13 | 2021-03-11T00:25:22.000Z | 2022-03-19T00:19:23.000Z | CONTENT/PYTHON/LEETCODE/221_maximal_square/maximal_square.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 162 | 2021-03-09T01:52:11.000Z | 2022-03-12T01:09:07.000Z | CONTENT/PYTHON/LEETCODE/221_maximal_square/maximal_square.py | impastasyndrome/DS-ALGO-OFFICIAL | c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a | [
"Apache-2.0"
] | 12 | 2021-04-26T19:43:01.000Z | 2022-01-31T08:36:29.000Z | class Solution:
# @param {character[][]} matrix
# @return {integer}
def maximalSquare(self, matrix):
if not matrix:
return 0
max_square = 0
self.visited = []
for line in matrix:
row = []
for c in line:
row.append(0)
... | 33.971429 | 55 | 0.397813 | 134 | 1,189 | 3.477612 | 0.238806 | 0.259657 | 0.154506 | 0.111588 | 0.171674 | 0.064378 | 0 | 0 | 0 | 0 | 0 | 0.029364 | 0.484441 | 1,189 | 34 | 56 | 34.970588 | 0.730832 | 0.039529 | 0 | 0 | 0 | 0 | 0.000878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0 | 0 | 0.125 | 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 |
fa72ac16027af5bc197cfe2d4f76198a703b1a5b | 6,617 | py | Python | fundamentals/files/tag.py | mtbannister/fundamentals | f1ba77ded115c727432220e50b2e20d251b2e225 | [
"MIT"
] | null | null | null | fundamentals/files/tag.py | mtbannister/fundamentals | f1ba77ded115c727432220e50b2e20d251b2e225 | [
"MIT"
] | null | null | null | fundamentals/files/tag.py | mtbannister/fundamentals | f1ba77ded115c727432220e50b2e20d251b2e225 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
# encoding: utf-8
"""
*Add tags and ratings to your macOS files and folders*
:Author:
David Young
:Date Created:
June 16, 2017
"""
################# GLOBAL IMPORTS ####################
import sys
import os
os.environ['TERM'] = 'vt100'
from fundamentals import tools
from subprocess impo... | 35.010582 | 163 | 0.562944 | 806 | 6,617 | 4.615385 | 0.222084 | 0.035753 | 0.045161 | 0.020968 | 0.602688 | 0.589785 | 0.571505 | 0.537634 | 0.52043 | 0.52043 | 0 | 0.007264 | 0.271875 | 6,617 | 188 | 164 | 35.196809 | 0.76484 | 0.068913 | 0 | 0.594828 | 0 | 0.068966 | 0.32766 | 0.067254 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051724 | 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 |
fa7e886d59945951c8d2470cb7d0b9339ba9f131 | 3,299 | py | Python | sonoff-debug/sonoff-debug.py | lfasci/HASS-sonoff-ewelink | 058b31034010aad7138cb124f3a628848e19d91a | [
"MIT"
] | 1 | 2020-02-08T02:55:40.000Z | 2020-02-08T02:55:40.000Z | sonoff-debug/sonoff-debug.py | on2fl/HASS-sonoff-ewelink | 058b31034010aad7138cb124f3a628848e19d91a | [
"MIT"
] | null | null | null | sonoff-debug/sonoff-debug.py | on2fl/HASS-sonoff-ewelink | 058b31034010aad7138cb124f3a628848e19d91a | [
"MIT"
] | 1 | 2019-03-08T14:09:55.000Z | 2019-03-08T14:09:55.000Z | # -*- coding: utf-8 -*-
import argparse, sys, json, time, random, pprint, base64, requests, hmac, hashlib, re
# named params
if not sys.argv[1].startswith('-') and not sys.argv[2].startswith('-'):
username = sys.argv[1]
password = sys.argv[2]
else:
parser=argparse.ArgumentParser()
parser.add_argument('-u', '--u... | 31.721154 | 115 | 0.650803 | 462 | 3,299 | 4.551948 | 0.372294 | 0.034237 | 0.038041 | 0.049453 | 0.21826 | 0.192582 | 0.077984 | 0.077984 | 0.005706 | 0.005706 | 0 | 0.039409 | 0.138527 | 3,299 | 103 | 116 | 32.029126 | 0.700563 | 0.043953 | 0 | 0.08 | 0 | 0.053333 | 0.311903 | 0.097708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0.066667 | 0.013333 | 0 | 0.106667 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fa8cc62e3a19de007d4d43ae44880f26e6acb407 | 906 | py | Python | addons/stock/wizard/stock_track_confirmation.py | jjiege/odoo | fd5b8ad387c1881f349d125cbd56433f4d49398f | [
"MIT"
] | null | null | null | addons/stock/wizard/stock_track_confirmation.py | jjiege/odoo | fd5b8ad387c1881f349d125cbd56433f4d49398f | [
"MIT"
] | null | null | null | addons/stock/wizard/stock_track_confirmation.py | jjiege/odoo | fd5b8ad387c1881f349d125cbd56433f4d49398f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models, fields, tools
class StockTrackConfirmation(models.TransientModel):
_name = 'stock.track.confirmation'
_description = 'Stock Track Confirmation'
tracking_line_ids = fields.One2... | 36.24 | 115 | 0.721854 | 107 | 906 | 5.981308 | 0.504673 | 0.09375 | 0.103125 | 0.090625 | 0.10625 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00651 | 0.152318 | 906 | 24 | 116 | 37.75 | 0.826823 | 0.103753 | 0 | 0 | 0 | 0 | 0.274413 | 0.059333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0.066667 | 0.933333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fa96b2d27ce684b68fd5b027bab47e72d7fb5902 | 565 | py | Python | newuser.py | Frosne/PrDepl | cbeccabfdcdc6af754e5566e5b495ad42bc764d3 | [
"MIT"
] | null | null | null | newuser.py | Frosne/PrDepl | cbeccabfdcdc6af754e5566e5b495ad42bc764d3 | [
"MIT"
] | null | null | null | newuser.py | Frosne/PrDepl | cbeccabfdcdc6af754e5566e5b495ad42bc764d3 | [
"MIT"
] | null | null | null | import crypt
import pwd
import os
def createUser(name, username, password):
counter = 0;
_username = username;
flag = 0;
while 1:
try:
if flag == 1:
break;
pwd.getpwnam(_username)
_username = username + str(counter);
counter = counter+1;
except KeyError:
flag = 1;
encPass = crypt.crypt(... | 26.904762 | 100 | 0.60177 | 67 | 565 | 4.970149 | 0.492537 | 0.144144 | 0.096096 | 0.138138 | 0.222222 | 0.222222 | 0.222222 | 0.222222 | 0 | 0 | 0 | 0.024444 | 0.20354 | 565 | 21 | 101 | 26.904762 | 0.715556 | 0.063717 | 0 | 0 | 0 | 0 | 0.10586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.210526 | 0.157895 | 0 | 0.263158 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fa96e4c42aa4a6d284a803eae5d37802e8183e35 | 3,517 | py | Python | applications/find_oms.py | theGrue/llama_slobber | 31746edbcef5055729947dbd25cf570990f96ba0 | [
"MIT"
] | 5 | 2019-01-02T03:01:19.000Z | 2021-09-03T18:52:39.000Z | applications/find_oms.py | theGrue/llama_slobber | 31746edbcef5055729947dbd25cf570990f96ba0 | [
"MIT"
] | 3 | 2019-03-06T19:01:55.000Z | 2019-03-06T23:36:43.000Z | applications/find_oms.py | theGrue/llama_slobber | 31746edbcef5055729947dbd25cf570990f96ba0 | [
"MIT"
] | 1 | 2019-10-25T03:02:45.000Z | 2019-10-25T03:02:45.000Z | #!/usr/bin/python
# Copyright (c) 2018 Warren Usui, MIT License
"""
Find Pdp (players defended poorly) values for all players
"""
from operator import itemgetter
import os
from llama_slobber import find_stored_stat
from llama_slobber import stringify
from llama_slobber import gen_html_page
BAD_DEF_VALUES = [[9, 5], ... | 29.308333 | 78 | 0.577765 | 473 | 3,517 | 4.164905 | 0.327696 | 0.028426 | 0.024365 | 0.033503 | 0.022335 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.294854 | 3,517 | 119 | 79 | 29.554622 | 0.769355 | 0.199033 | 0 | 0 | 0 | 0 | 0.064599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0.052632 | 0.065789 | 0 | 0.171053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fa98d37a3325051b1ee59100ad06e79fa18c830e | 1,101 | py | Python | survey/attributes/_abstract/respondent_attribute.py | vahndi/quant-survey | 1a0fcf0c22e2c7306cba0218f82d24c97d28ee1f | [
"MIT"
] | 2 | 2021-04-10T21:50:36.000Z | 2022-03-26T16:46:52.000Z | survey/attributes/_abstract/respondent_attribute.py | vahndi/quant-survey | 1a0fcf0c22e2c7306cba0218f82d24c97d28ee1f | [
"MIT"
] | 11 | 2020-08-30T18:47:14.000Z | 2021-09-09T15:57:19.000Z | survey/attributes/_abstract/respondent_attribute.py | vahndi/quant-survey | 1a0fcf0c22e2c7306cba0218f82d24c97d28ee1f | [
"MIT"
] | null | null | null | from matplotlib.axes import Axes
from pandas import Series
from typing import TYPE_CHECKING, Optional
from survey.mixins.filtering import FilterableMixin
if TYPE_CHECKING:
from survey import Survey
class RespondentAttribute(FilterableMixin, object):
"""
Represents an Attribute that is present for all Re... | 27.525 | 76 | 0.653043 | 128 | 1,101 | 5.578125 | 0.5625 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002451 | 0.258856 | 1,101 | 39 | 77 | 28.230769 | 0.872549 | 0.295186 | 0 | 0 | 0 | 0 | 0.062411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.25 | 0.05 | 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 |
faa5efce7569dca19151f68622e7efc67b7f6a11 | 1,232 | py | Python | tapas/utils/constants.py | Martin36/tapas | c2578e8dfaa862ae0eaa3ae3ade6808c81200ddf | [
"Apache-2.0"
] | 816 | 2020-03-31T15:15:56.000Z | 2022-03-31T19:28:02.000Z | tapas/utils/constants.py | Fgerald/tapas | 2987658c3b65c5ab6e698d6c57823dc30d3d0f96 | [
"Apache-2.0"
] | 155 | 2020-05-02T15:45:42.000Z | 2022-03-31T08:35:23.000Z | tapas/utils/constants.py | Fgerald/tapas | 2987658c3b65c5ab6e698d6c57823dc30d3d0f96 | [
"Apache-2.0"
] | 173 | 2020-05-01T02:39:38.000Z | 2022-03-30T06:43:29.000Z | # coding=utf-8
# Copyright 2019 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 34.222222 | 74 | 0.733766 | 196 | 1,232 | 4.535714 | 0.545918 | 0.067492 | 0.057368 | 0.035996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019173 | 0.195617 | 1,232 | 35 | 75 | 35.2 | 0.877901 | 0.742695 | 0 | 0 | 0 | 0 | 0.052083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
faa67876de65cd83d60441f32e47f1eb929f71b7 | 10,232 | py | Python | Wind_SMS_software/STICS_data_processing/python_scripts/batch_sub_process.py | lynnbwilsoniii/Wind_Decom_Code | ef596644fe0ed3df5ff3b462602e7550a04323e2 | [
"Apache-2.0"
] | null | null | null | Wind_SMS_software/STICS_data_processing/python_scripts/batch_sub_process.py | lynnbwilsoniii/Wind_Decom_Code | ef596644fe0ed3df5ff3b462602e7550a04323e2 | [
"Apache-2.0"
] | null | null | null | Wind_SMS_software/STICS_data_processing/python_scripts/batch_sub_process.py | lynnbwilsoniii/Wind_Decom_Code | ef596644fe0ed3df5ff3b462602e7550a04323e2 | [
"Apache-2.0"
] | null | null | null | import subprocess as sub
import sys
import os
import uuid
import calendar
import datetime
import cPickle as pickle
import shutil
#input_file = open('/shrg1/wind/sw/STICS_data_processing/input_info/input_info.txt', 'r')
input_file=open('/home/kploof/STICS_data_processing/input_info/input_info.txt', 'r')
file_lines = i... | 37.896296 | 174 | 0.745211 | 1,620 | 10,232 | 4.472222 | 0.174691 | 0.070807 | 0.09441 | 0.112767 | 0.483782 | 0.45383 | 0.426777 | 0.395169 | 0.263216 | 0.112077 | 0 | 0.01323 | 0.113565 | 10,232 | 269 | 175 | 38.037175 | 0.785557 | 0.164679 | 0 | 0.157635 | 0 | 0 | 0.300687 | 0.193155 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039409 | null | null | 0.1133 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
faa6da235497cae0fb37adea28e4c1e6f13975e1 | 393 | py | Python | schemes/confidence.py | ldr709/ae-generator | edafe2d97f1ee3c579bd0c48f3249f4657512148 | [
"Beerware"
] | 14 | 2015-07-06T17:12:25.000Z | 2020-05-30T17:05:14.000Z | schemes/confidence.py | ldr709/ae-generator | edafe2d97f1ee3c579bd0c48f3249f4657512148 | [
"Beerware"
] | 1 | 2016-04-21T15:11:15.000Z | 2016-04-24T18:52:30.000Z | schemes/confidence.py | ldr709/ae-generator | edafe2d97f1ee3c579bd0c48f3249f4657512148 | [
"Beerware"
] | 1 | 2019-04-18T05:18:05.000Z | 2019-04-18T05:18:05.000Z | import numpy as np
import scipy as sp
import scipy.stats
import sys
# http://stackoverflow.com/questions/15033511/compute-a-confidence-interval-from-sample-data
if __name__ == '__main__':
confidence=0.95
a = 1.0*np.array(eval(sys.argv[1]))
n = len(a)
m, se = np.mean(a), scipy.stats.sem(a)
h = se * ... | 28.071429 | 92 | 0.648855 | 69 | 393 | 3.565217 | 0.594203 | 0.089431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057927 | 0.165394 | 393 | 13 | 93 | 30.230769 | 0.692073 | 0.229008 | 0 | 0 | 0 | 0 | 0.059801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
faacae4599ac5bb56d5d0afe3330ad3d009883c4 | 504 | py | Python | example/samples/user.py | ardydedase/couchbasekit | 8ae475ace9a1567857f0e732e2a3b646e50f91a0 | [
"MIT"
] | 3 | 2016-11-15T02:02:48.000Z | 2020-04-29T04:06:20.000Z | example/samples/user.py | ardydedase/couchbasekit | 8ae475ace9a1567857f0e732e2a3b646e50f91a0 | [
"MIT"
] | null | null | null | example/samples/user.py | ardydedase/couchbasekit | 8ae475ace9a1567857f0e732e2a3b646e50f91a0 | [
"MIT"
] | 3 | 2015-03-29T22:45:44.000Z | 2016-08-05T21:35:25.000Z | #! /usr/bin/env python
import datetime
from couchbasekit import Document, Connection
from couchbasekit.fields import EmailField, PasswordField
Connection.auth('couchbasekit_samples', 'couchbasekit')
class User(Document):
__bucket_name__ = 'couchbasekit_samples'
doc_type = 'user'
structure = {
'use... | 26.526316 | 57 | 0.652778 | 45 | 504 | 7.133333 | 0.622222 | 0.099688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246032 | 504 | 19 | 58 | 26.526316 | 0.844737 | 0.06746 | 0 | 0 | 0 | 0 | 0.176972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
faacd1299660805227c1d00a38e9924ef3c491fc | 2,435 | py | Python | tracim/tracim/tests/functional/test_ldap_authentication.py | lebouquetin/tracim | dc3485f92b07ced3230834a5852c9f9574477c1c | [
"MIT"
] | 1 | 2016-09-27T12:16:05.000Z | 2016-09-27T12:16:05.000Z | tracim/tracim/tests/functional/test_ldap_authentication.py | lebouquetin/tracim | dc3485f92b07ced3230834a5852c9f9574477c1c | [
"MIT"
] | null | null | null | tracim/tracim/tests/functional/test_ldap_authentication.py | lebouquetin/tracim | dc3485f92b07ced3230834a5852c9f9574477c1c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Integration tests for the ldap authentication sub-system.
"""
from tracim.fixtures.ldap import ldap_test_server_fixtures
from nose.tools import eq_, ok_
from tracim.fixtures.users_and_groups import Test as TestFixture
from tracim.model import DBSession, User
from tracim.tests import LDAPTes... | 42.719298 | 104 | 0.698563 | 334 | 2,435 | 4.943114 | 0.239521 | 0.042399 | 0.072683 | 0.090854 | 0.609328 | 0.595397 | 0.569352 | 0.543307 | 0.543307 | 0.529982 | 0 | 0.00396 | 0.170431 | 2,435 | 56 | 105 | 43.482143 | 0.813366 | 0.180287 | 0 | 0.25 | 0 | 0 | 0.217787 | 0.157655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.107143 | 0.178571 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
faad23bf554f6f281546d6e66d8f7323d2f44f74 | 10,012 | py | Python | hard-gists/7226559/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/7226559/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/7226559/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | # coding= utf-8
from bs4 import BeautifulSoup
from ConfigParser import ConfigParser
from PySide.QtCore import QThread,Qt,Signal
from PySide.QtGui import QTableWidget,QAbstractItemView,QTableWidgetItem,QBrush,QColor,QApplication
from threading import Thread
import webbrowser
import sys
import time
#from urllib2 import u... | 40.699187 | 124 | 0.573811 | 1,176 | 10,012 | 4.792517 | 0.236395 | 0.026969 | 0.017743 | 0.023066 | 0.231015 | 0.189496 | 0.14709 | 0.099006 | 0.064585 | 0.064585 | 0 | 0.057922 | 0.263684 | 10,012 | 246 | 125 | 40.699187 | 0.706593 | 0.096484 | 0 | 0.136842 | 0 | 0.005263 | 0.23637 | 0.019614 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
faba4ae4845d08bbc5f710da1a321dede292d85c | 2,082 | py | Python | Python3/131.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | Python3/131.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | Python3/131.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 56 ms submission
class Solution:
def partition(self, s: str) -> List[List[str]]:
def make_results(index,pallindromes, result, results):
if index >= len(s):
results += result[... | 35.288136 | 105 | 0.53074 | 220 | 2,082 | 3.65 | 0.236364 | 0.061021 | 0.022416 | 0.041096 | 0.140722 | 0.109589 | 0.109589 | 0.109589 | 0.032379 | 0.032379 | 0 | 0.016492 | 0.35927 | 2,082 | 58 | 106 | 35.896552 | 0.585457 | 0 | 0 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fabd7550cfdab7b9a5adb775115f45381efec177 | 972 | py | Python | pruner.py | Machine-Learning-Security-Lab/mia_prune | 8e8ec183b9b5f8957d39ea694651270ed3211e8b | [
"MIT"
] | 2 | 2022-03-14T08:00:39.000Z | 2022-03-27T04:14:09.000Z | pruner.py | Machine-Learning-Security-Lab/mia_prune | 8e8ec183b9b5f8957d39ea694651270ed3211e8b | [
"MIT"
] | null | null | null | pruner.py | Machine-Learning-Security-Lab/mia_prune | 8e8ec183b9b5f8957d39ea694651270ed3211e8b | [
"MIT"
] | null | null | null | from nni.algorithms.compression.pytorch.pruning import LevelPruner, SlimPruner, L2FilterPruner, \
L1FilterPruner
def get_pruner(pruner_name, model, sparsity=0.5):
if pruner_name == "l1unstructure":
config_list = [{
'sparsity': sparsity,
'op_types': ["default"]
}]
... | 30.375 | 97 | 0.575103 | 87 | 972 | 6.218391 | 0.413793 | 0.147874 | 0.133087 | 0.192237 | 0.449168 | 0.449168 | 0.166359 | 0.166359 | 0 | 0 | 0 | 0.017884 | 0.309671 | 972 | 31 | 98 | 31.354839 | 0.788376 | 0 | 0 | 0.482759 | 0 | 0 | 0.136831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.206897 | 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 |
fabe3eab12fd57bc71441c4a7a735a9d804acd0f | 682 | py | Python | pg_orm/models/utils.py | Rashaad1268/PostgreSQL-Python-ORM | c2c7d23a13210b1a3c7f65b8fab90ecb743d859d | [
"MIT"
] | 7 | 2021-06-20T13:40:29.000Z | 2021-12-03T16:45:13.000Z | pg_orm/models/utils.py | Rashaad1268/Postgresql-Python-ORM | c2c7d23a13210b1a3c7f65b8fab90ecb743d859d | [
"MIT"
] | 8 | 2021-06-23T00:49:41.000Z | 2021-11-16T14:48:43.000Z | pg_orm/models/utils.py | Rashaad1268/Postgresql-Python-ORM | c2c7d23a13210b1a3c7f65b8fab90ecb743d859d | [
"MIT"
] | null | null | null | import inspect
import asyncio
from distutils.util import strtobool
def quote(arg=None):
"""Adds quotes to the given argument if the data type is str"""
if arg is None:
return ""
try:
return int(arg)
except ValueError:
try:
return float(arg)
except ValueError... | 25.259259 | 85 | 0.605572 | 79 | 682 | 5.164557 | 0.544304 | 0.066176 | 0.139706 | 0.107843 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296188 | 682 | 26 | 86 | 26.230769 | 0.85 | 0.083578 | 0 | 0.285714 | 0 | 0 | 0.019386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.142857 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
fac0d113f77083a2c5b0a9c5552b3163a50f007a | 1,977 | py | Python | public/application/test/analytika_test.py | kingGrey/analytika | 6dd269dec0885273dc56d97df7084d0f433bd4a9 | [
"MIT"
] | null | null | null | public/application/test/analytika_test.py | kingGrey/analytika | 6dd269dec0885273dc56d97df7084d0f433bd4a9 | [
"MIT"
] | 7 | 2021-08-10T22:22:11.000Z | 2021-08-10T22:40:25.000Z | public/application/test/analytika_test.py | kingGrey/analytika | 6dd269dec0885273dc56d97df7084d0f433bd4a9 | [
"MIT"
] | null | null | null | ################################################
__author__='acgreyjo'
#
# Class aims to test some of the basic simpler
# features/properties of this application that
# are deemed testable.
################################################
import os
import pandas as pd
import unittest
from analytika.publ... | 28.652174 | 80 | 0.55134 | 193 | 1,977 | 5.492228 | 0.533679 | 0.045283 | 0.037736 | 0.045283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000746 | 0.3217 | 1,977 | 68 | 81 | 29.073529 | 0.789709 | 0.303996 | 0 | 0 | 0 | 0 | 0.097222 | 0.079365 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0.037037 | 0.148148 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fac0e8a1cc1e409a5730bf2f577bdf7de810a2fc | 1,414 | py | Python | thorpy/elements/togglable.py | YannThorimbert/PyMap2D | c4ddb6bb4651f19b6ad1b4149f38e64de2daf120 | [
"MIT"
] | 27 | 2018-04-05T13:06:22.000Z | 2022-01-24T08:14:47.000Z | thorpy/elements/togglable.py | YannThorimbert/PyMap2D | c4ddb6bb4651f19b6ad1b4149f38e64de2daf120 | [
"MIT"
] | 6 | 2019-11-23T07:02:53.000Z | 2021-04-12T19:08:35.000Z | thorpy/elements/togglable.py | YannThorimbert/PyMap2D | c4ddb6bb4651f19b6ad1b4149f38e64de2daf120 | [
"MIT"
] | 7 | 2018-11-20T01:01:41.000Z | 2022-01-24T08:14:50.000Z | from pygame.event import Event, post
from thorpy.elements.clickable import Clickable
from thorpy.miscgui import constants
class Togglable(Clickable):
"""Mouse-togglable element"""
def __init__(self, text="", elements=None, normal_params=None,
press_params=None):
super(Togglable, se... | 29.458333 | 77 | 0.572136 | 156 | 1,414 | 4.935897 | 0.352564 | 0.058442 | 0.025974 | 0.064935 | 0.106494 | 0.106494 | 0.106494 | 0 | 0 | 0 | 0 | 0.005297 | 0.33239 | 1,414 | 47 | 78 | 30.085106 | 0.809322 | 0.050919 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fac32bda7c3f37539344390aafdc03b7ef495609 | 2,628 | py | Python | ufwbanbadguys.py | lao-tseu-is-alive/ufwbanbadguys | 3c1a315f7234596d9529bb8fb5a73d973fd62c46 | [
"MIT"
] | null | null | null | ufwbanbadguys.py | lao-tseu-is-alive/ufwbanbadguys | 3c1a315f7234596d9529bb8fb5a73d973fd62c46 | [
"MIT"
] | null | null | null | ufwbanbadguys.py | lao-tseu-is-alive/ufwbanbadguys | 3c1a315f7234596d9529bb8fb5a73d973fd62c46 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import re
import subprocess
# set the path of the linux ssh auth log
# TODO allow to pass this path as argument to the script
authLog = "/var/log/auth.log"
whiteList = "config/WHITELIST"
# set the maximum number of password errors before being
maxAllowedErrors = 10
# allows to test if ip is in Sunr... | 35.04 | 108 | 0.605023 | 369 | 2,628 | 4.306233 | 0.401084 | 0.007552 | 0.011328 | 0.007552 | 0.053493 | 0.035872 | 0.030208 | 0.030208 | 0.030208 | 0 | 0 | 0.017949 | 0.257991 | 2,628 | 74 | 109 | 35.513514 | 0.796923 | 0.19102 | 0 | 0.113208 | 0 | 0.018868 | 0.209655 | 0.052059 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.056604 | false | 0.018868 | 0.037736 | 0 | 0.150943 | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fac352dc437a1ad1658155df214493f3b5d3e211 | 8,000 | py | Python | P1/db_main.py | ycaK/Python | c353776ac6002d3a6ffa57e96553d0ad96668b6e | [
"Apache-2.0"
] | null | null | null | P1/db_main.py | ycaK/Python | c353776ac6002d3a6ffa57e96553d0ad96668b6e | [
"Apache-2.0"
] | null | null | null | P1/db_main.py | ycaK/Python | c353776ac6002d3a6ffa57e96553d0ad96668b6e | [
"Apache-2.0"
] | null | null | null | # Remember about: use always auto_csv()
# DONE: Create database engine
# TODO: Create server for database(DONE), Use some kind of multiprocessing in server(WON'T USE), Make server send a response
# UPDATE: Not using "multiprocessing", I've found out about handle method in threading library!
# INFO: Compatible with ... | 37.037037 | 125 | 0.444875 | 900 | 8,000 | 3.767778 | 0.173333 | 0.033618 | 0.032439 | 0.044235 | 0.403126 | 0.343556 | 0.272191 | 0.238573 | 0.194633 | 0.156296 | 0 | 0.011434 | 0.4315 | 8,000 | 215 | 126 | 37.209302 | 0.734169 | 0.075375 | 0 | 0.382979 | 0 | 0 | 0.120302 | 0 | 0 | 0 | 0 | 0.004651 | 0 | 1 | 0.058511 | false | 0.053191 | 0.021277 | 0 | 0.101064 | 0.180851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fac58e01a845f81fbf121318b806a99e36d1033b | 4,387 | py | Python | bitnigma/reflectors.py | spgill/bitnigma | 9e9cea175db983e170f0ff82170afa1a51c6de86 | [
"MIT"
] | null | null | null | bitnigma/reflectors.py | spgill/bitnigma | 9e9cea175db983e170f0ff82170afa1a51c6de86 | [
"MIT"
] | null | null | null | bitnigma/reflectors.py | spgill/bitnigma | 9e9cea175db983e170f0ff82170afa1a51c6de86 | [
"MIT"
] | null | null | null | # stdlib module imports
# third-party module imports
# local module imports
import bitnigma.rotors as rotors
def fromString(s):
'''Turn a string into an instantiated reflector'''
# Get all immediate subclasses of the reflector base class
classes = _Base.__subclasses__()
reflector = None
for c in... | 64.514706 | 752 | 0.702074 | 848 | 4,387 | 3.590802 | 0.448113 | 0.009195 | 0.011823 | 0.02069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171679 | 0.090495 | 4,387 | 67 | 753 | 65.477612 | 0.591479 | 0.097789 | 0 | 0 | 0 | 0.108108 | 0.375223 | 0.337573 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.027027 | 0.027027 | 0 | 0.72973 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fad0906087ec217684cd7548223c0c5027423b00 | 339 | py | Python | M3Coursework/test.py | GKAW/share | 2e22ce09deb1986e2e60d0bb53aafd48b1173603 | [
"MIT"
] | null | null | null | M3Coursework/test.py | GKAW/share | 2e22ce09deb1986e2e60d0bb53aafd48b1173603 | [
"MIT"
] | null | null | null | M3Coursework/test.py | GKAW/share | 2e22ce09deb1986e2e60d0bb53aafd48b1173603 | [
"MIT"
] | null | null | null | import os
import numpy as np
import matplotlib.pyplot as plt
import scipy.integrate
import pandas as pd
xlist = [0,1,2,3,4]
ylist = [5,4,3,2,1]
interplist = np.linspace(0,4,10)
print(interplist)
ynew = np.interp(interplist,xlist,ylist)
print(ynew)
plt.plot(interplist,ynew,'o',alpha=0.8)
plt.plot(xlist,ylist,'o',alp... | 17.842105 | 40 | 0.728614 | 64 | 339 | 3.859375 | 0.484375 | 0.11336 | 0.05668 | 0.064777 | 0.089069 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059603 | 0.109145 | 339 | 18 | 41 | 18.833333 | 0.758278 | 0 | 0 | 0 | 0 | 0 | 0.0059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fad5e479070e6392063f26b078a4803d2c536c53 | 2,246 | py | Python | tests/test_fastq.py | oaxiom/glbase3 | 9d3fc1efaad58ffb97e5b8126c2a96802daf9bac | [
"MIT"
] | 8 | 2019-06-11T02:13:20.000Z | 2022-02-22T09:27:23.000Z | tests/test_fastq.py | JackNg88/glbase3 | 4af190d06b89ef360dcba201d9e4e81f41ef8379 | [
"MIT"
] | 6 | 2020-12-18T15:08:14.000Z | 2021-05-22T00:31:57.000Z | tests/test_fastq.py | JackNg88/glbase3 | 4af190d06b89ef360dcba201d9e4e81f41ef8379 | [
"MIT"
] | 2 | 2020-05-06T04:27:03.000Z | 2022-02-22T09:28:25.000Z | """
FASTQ SE and PE splitter loader tester
TODO:
-----
. not in test suite
"""
import unittest, numpy
# get glbase
import sys, os
import glbase3
class Test_Fastq(unittest.TestCase):
def test_splitPE(self):
"""
@HWI-ST507:76:A81MKNABXX:7:1:5257:1711:1
CTCCTAGAGGGAAATATGGAGCAATTACATATTGTT... | 33.029412 | 108 | 0.626002 | 228 | 2,246 | 6.087719 | 0.425439 | 0.023055 | 0.025937 | 0.028818 | 0.34438 | 0.34438 | 0.34438 | 0.295389 | 0.206052 | 0.206052 | 0 | 0.078978 | 0.233304 | 2,246 | 67 | 109 | 33.522388 | 0.727062 | 0.188335 | 0 | 0.434783 | 0 | 0 | 0.175094 | 0.058989 | 0 | 0 | 0 | 0.014925 | 0.086957 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fae391c60409d4e71f461ce211e8f4aed8541f56 | 901 | py | Python | fcc_split/credo_download.py | sunlightlabs/fcc-net-neutrality-comments | 56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b | [
"MIT"
] | 18 | 2015-02-11T20:11:19.000Z | 2020-11-13T23:22:47.000Z | fcc_split/credo_download.py | sunlightlabs/fcc-net-neutrality-comments | 56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b | [
"MIT"
] | null | null | null | fcc_split/credo_download.py | sunlightlabs/fcc-net-neutrality-comments | 56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b | [
"MIT"
] | 6 | 2015-10-26T20:51:26.000Z | 2021-04-18T16:47:30.000Z | import os, json, sys, operator, urllib, urllib2
from pyquery import PyQuery as pq
def all_files(dir):
return reduce(operator.add, [[os.path.join(x[0], y) for y in x[2]] for x in os.walk(dir)])
credo_dir = sys.argv[1]
if __name__ == "__main__":
json_files = [f for f in all_files(credo_dir) if f.endswith('.jso... | 47.421053 | 152 | 0.631521 | 140 | 901 | 3.964286 | 0.507143 | 0.043243 | 0.036036 | 0.05045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006775 | 0.18091 | 901 | 19 | 152 | 47.421053 | 0.745257 | 0 | 0 | 0 | 0 | 0 | 0.162971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fae54a56db71334db7b866a9488da0061de0697f | 862 | py | Python | html/pelicanconf.py | rolando-contribute/aosabook-500lines | 639341a70a33e987a9952b40d8ef1cc9d8d31d7c | [
"CC-BY-3.0"
] | 1 | 2015-10-01T13:29:32.000Z | 2015-10-01T13:29:32.000Z | html/pelicanconf.py | rolando/aosabook-500lines | 639341a70a33e987a9952b40d8ef1cc9d8d31d7c | [
"CC-BY-3.0"
] | null | null | null | html/pelicanconf.py | rolando/aosabook-500lines | 639341a70a33e987a9952b40d8ef1cc9d8d31d7c | [
"CC-BY-3.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Tavish Armstrong'
SITENAME = u'The Performance of Open Source Software'
SITEURL = ''
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGOR... | 20.046512 | 77 | 0.683295 | 104 | 862 | 5.519231 | 0.769231 | 0.041812 | 0.041812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001422 | 0.184455 | 862 | 42 | 78 | 20.52381 | 0.815078 | 0.520882 | 0 | 0 | 0 | 0 | 0.19697 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
faee8a4c82408ddf6b5bdfc9ba6535eb6b64c1cf | 1,535 | py | Python | problems/ic_45_graph_coloring.py | gregdferrell/algo | 974ae25b028d49bcb7ded6655a7e11dcf6aa221d | [
"MIT"
] | null | null | null | problems/ic_45_graph_coloring.py | gregdferrell/algo | 974ae25b028d49bcb7ded6655a7e11dcf6aa221d | [
"MIT"
] | null | null | null | problems/ic_45_graph_coloring.py | gregdferrell/algo | 974ae25b028d49bcb7ded6655a7e11dcf6aa221d | [
"MIT"
] | null | null | null | #
# Problem: Given an undirected graph with maximum degree, find a graph coloring using at most D+1 colors.
#
def color_graph_first_available(graph, colors):
"""
Solution: For each graph node, assign to it the first color not in the list of neighbor colors.
Complexity: (where n is # nodes, d is max degrees)
Time... | 34.886364 | 105 | 0.723779 | 253 | 1,535 | 4.335968 | 0.264822 | 0.076572 | 0.054695 | 0.035552 | 0.71103 | 0.648131 | 0.648131 | 0.648131 | 0.648131 | 0.648131 | 0 | 0.003257 | 0.2 | 1,535 | 43 | 106 | 35.697674 | 0.890065 | 0.512704 | 0 | 0.5 | 0 | 0 | 0.091398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 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 |
faf1a64711622a1ac310b1321d72bfbfdb69d15f | 2,376 | py | Python | tests/test_compute_embeddings.py | danielperezr88/sentence-transformers | 56a7990c56c484e7948cf6400b54f27114bb267c | [
"Apache-2.0"
] | null | null | null | tests/test_compute_embeddings.py | danielperezr88/sentence-transformers | 56a7990c56c484e7948cf6400b54f27114bb267c | [
"Apache-2.0"
] | null | null | null | tests/test_compute_embeddings.py | danielperezr88/sentence-transformers | 56a7990c56c484e7948cf6400b54f27114bb267c | [
"Apache-2.0"
] | null | null | null | """
Computes embeddings
"""
import unittest
from sentence_transformers import SentenceTransformer
import numpy as np
class ComputeEmbeddingsTest(unittest.TestCase):
def setUp(self):
self.model = SentenceTransformer('paraphrase-distilroberta-base-v1')
def test_encode_token_embeddings(s... | 37.125 | 164 | 0.61069 | 311 | 2,376 | 4.604502 | 0.273312 | 0.056564 | 0.048883 | 0.068436 | 0.490922 | 0.454609 | 0.435056 | 0.435056 | 0.435056 | 0.435056 | 0 | 0.051911 | 0.262205 | 2,376 | 63 | 165 | 37.714286 | 0.764974 | 0.077862 | 0 | 0.205882 | 0 | 0 | 0.252404 | 0.015385 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.147059 | false | 0 | 0.088235 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
faf2a57ba82ad1165a15ff5d61f154c3dd666f25 | 449 | py | Python | afisha/urls.py | NecrOctopuS/yandex_afisha | 6e1ef420fd712871e384213dfa2996211f1fb604 | [
"MIT"
] | null | null | null | afisha/urls.py | NecrOctopuS/yandex_afisha | 6e1ef420fd712871e384213dfa2996211f1fb604 | [
"MIT"
] | 2 | 2021-06-04T23:19:13.000Z | 2021-06-10T19:25:20.000Z | afisha/urls.py | NecrOctopuS/yandex_afisha | 6e1ef420fd712871e384213dfa2996211f1fb604 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
from places import views
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.show_main),
path('places/<int:place_id>', views.show_place),
] + static(settings... | 34.538462 | 77 | 0.743875 | 62 | 449 | 5.241935 | 0.370968 | 0.123077 | 0.086154 | 0.141538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142539 | 449 | 12 | 78 | 37.416667 | 0.844156 | 0 | 0 | 0 | 0 | 0 | 0.060134 | 0.046771 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
faf35f70ea2b4e85b4251dd6b7794a3b43a841da | 2,721 | py | Python | consolemenu/format/menu_style.py | Admin9705/console-menu | 3e48985a54504ac12fd175250aa0995e56ca6165 | [
"MIT"
] | 1 | 2021-02-17T21:18:32.000Z | 2021-02-17T21:18:32.000Z | consolemenu/format/menu_style.py | Admin9705/plexguide-menu | ffd024c3da2fb732680dc5f5c1ef5e1f5967ce3a | [
"MIT"
] | null | null | null | consolemenu/format/menu_style.py | Admin9705/plexguide-menu | ffd024c3da2fb732680dc5f5c1ef5e1f5967ce3a | [
"MIT"
] | null | null | null | from consolemenu.format.menu_borders import MenuBorderStyle, MenuBorderStyleFactory
from consolemenu.format.menu_margins import MenuMargins
from consolemenu.format.menu_padding import MenuPadding
class MenuStyle(object):
"""
Class for specifying menu styling, such as margins, padding, and border style.
""... | 36.77027 | 93 | 0.69717 | 320 | 2,721 | 5.64375 | 0.184375 | 0.255814 | 0.169435 | 0.085271 | 0.296235 | 0.138427 | 0.138427 | 0.116279 | 0 | 0 | 0 | 0 | 0.24219 | 2,721 | 73 | 94 | 37.273973 | 0.875849 | 0.094083 | 0 | 0.075472 | 0 | 0 | 0.070699 | 0.008991 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169811 | false | 0 | 0.056604 | 0.075472 | 0.245283 | 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 |
faf3fbc18687594726ca15a06056dbcf925a5ab9 | 248 | py | Python | Stemming using nltk.py | KushalVijay/Natural-Language-Processing-Zero-to-Hero | 2e586d1a041465a1a669a3e5bf1ec15091fc444c | [
"MIT"
] | 17 | 2020-03-23T10:16:38.000Z | 2022-02-26T05:03:33.000Z | Stemming using nltk.py | KushalVijay/Natural-Language-Processing-Zero-to-Hero | 2e586d1a041465a1a669a3e5bf1ec15091fc444c | [
"MIT"
] | null | null | null | Stemming using nltk.py | KushalVijay/Natural-Language-Processing-Zero-to-Hero | 2e586d1a041465a1a669a3e5bf1ec15091fc444c | [
"MIT"
] | 5 | 2020-09-16T12:20:00.000Z | 2021-05-16T09:20:44.000Z | #Algos for stemming are Porter , Lancaster , Snowball
from nltk import SnowballStemmer
#Language attribute must be there
stemmer = SnowballStemmer("english")
for word in ['blogging','blogged','blogs']:
print(stemmer.stem(word))
| 20.666667 | 54 | 0.71371 | 29 | 248 | 6.103448 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185484 | 248 | 11 | 55 | 22.545455 | 0.876238 | 0.33871 | 0 | 0 | 0 | 0 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
faf7fea7fe38471eb5a14d660c75912a3f38a883 | 416 | py | Python | config.py | Muriithijoe/News-Highlight | fa1bb3c27d48f608146d20deba371a1bbc5d1f6e | [
"Unlicense"
] | null | null | null | config.py | Muriithijoe/News-Highlight | fa1bb3c27d48f608146d20deba371a1bbc5d1f6e | [
"Unlicense"
] | null | null | null | config.py | Muriithijoe/News-Highlight | fa1bb3c27d48f608146d20deba371a1bbc5d1f6e | [
"Unlicense"
] | null | null | null | import os
class Config:
NEWS_API_BASE_URL = 'https://newsapi.org/v2/sources?apiKey={}'
ARTICLES_BASE_URL = 'https://newsapi.org/v2/everything?sources={}&apikey={}'
NEWS_API_KEY=os.environ.get('NEWS_API_KEY')
SECRET_KEY=os.environ.get('SECRET_KEY')
class ProdConfig(Config):
pass
class DevConfig(Co... | 20.8 | 80 | 0.71875 | 55 | 416 | 5.218182 | 0.509091 | 0.073171 | 0.083624 | 0.132404 | 0.167247 | 0.167247 | 0 | 0 | 0 | 0 | 0 | 0.00554 | 0.132212 | 416 | 19 | 81 | 21.894737 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.329327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4f057f51fadc8a33803c3f58743855d005e00db5 | 1,593 | py | Python | test/sample.py | HyechurnJang/umbi | 521c422d870ffb9cdb300a04fde2858dba755dd0 | [
"Apache-2.0"
] | null | null | null | test/sample.py | HyechurnJang/umbi | 521c422d870ffb9cdb300a04fde2858dba755dd0 | [
"Apache-2.0"
] | null | null | null | test/sample.py | HyechurnJang/umbi | 521c422d870ffb9cdb300a04fde2858dba755dd0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 2017. 10. 12.
@author: HyechurnJang
'''
import json
from umbi import UmbiAPI
def v(data):
print json.dumps(data, indent=2)
api = UmbiAPI('85aaa4d3-333e-4212-a7bd-b64300321193')
# print 'Domains'
# v(api.Domains.Categorization('hecloud.org', 'google.com'))
#... | 21.821918 | 108 | 0.622097 | 223 | 1,593 | 4.443946 | 0.35426 | 0.084763 | 0.075681 | 0.100908 | 0.201816 | 0.117053 | 0.117053 | 0 | 0 | 0 | 0 | 0.059391 | 0.154426 | 1,593 | 72 | 109 | 22.125 | 0.676318 | 0.729441 | 0 | 0 | 0 | 0 | 0.219231 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4f08a7bb2a714c39b97c88cb6a25e1d3b20f770c | 1,175 | py | Python | dht11_mysql/dht_consola.py | ghcetraro/my-weather | 5ae2fff64ca09403c3f92a0a7b60f9534b37f0a0 | [
"MIT"
] | null | null | null | dht11_mysql/dht_consola.py | ghcetraro/my-weather | 5ae2fff64ca09403c3f92a0a7b60f9534b37f0a0 | [
"MIT"
] | null | null | null | dht11_mysql/dht_consola.py | ghcetraro/my-weather | 5ae2fff64ca09403c3f92a0a7b60f9534b37f0a0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Internet de las Cosas - http://internetdelascosas.cl
#
# Descripcion : Programa que permite obtener la lectura de un sensor DHT11
# Lenguaje : Python
# Autor : Jose Zorrilla <jzorrilla@iot.cl>
# Dependencias : Libreria de Adafruit https://github.com/adafruit/Adafruit_Python_DHT
# Web ... | 30.128205 | 85 | 0.744681 | 166 | 1,175 | 5.23494 | 0.614458 | 0.037975 | 0.055236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017653 | 0.180426 | 1,175 | 38 | 86 | 30.921053 | 0.884735 | 0.704681 | 0 | 0 | 0 | 0 | 0.121581 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4f0bdbdfd202902d9af81675faebce8a32655050 | 7,446 | py | Python | PyES.py | apulverizer/PyES | 61704f91ed678ccc6a7bc18e7d6b78960c1dae88 | [
"MIT"
] | null | null | null | PyES.py | apulverizer/PyES | 61704f91ed678ccc6a7bc18e7d6b78960c1dae88 | [
"MIT"
] | 1 | 2017-10-13T07:06:23.000Z | 2017-10-13T07:06:23.000Z | PyES.py | apulverizer/PyES | 61704f91ed678ccc6a7bc18e7d6b78960c1dae88 | [
"MIT"
] | null | null | null | import argparse
import base64
import httplib2
import json
import os
import re
import sys
import time
# import Google API functions
from apiclient import discovery
import oauth2client
from oauth2client import client
from oauth2client import tools
from apiclient import errors
# import Goose
from goose import Goose
# G... | 37.23 | 122 | 0.638867 | 929 | 7,446 | 5.038751 | 0.284177 | 0.012818 | 0.01709 | 0.016663 | 0.189703 | 0.147191 | 0.130528 | 0.130528 | 0.11301 | 0.11301 | 0 | 0.006236 | 0.267795 | 7,446 | 200 | 123 | 37.23 | 0.852348 | 0.14397 | 0 | 0.102804 | 0 | 0.009346 | 0.122708 | 0.022083 | 0 | 0 | 0 | 0.005 | 0 | 0 | null | null | 0 | 0.130841 | null | null | 0.046729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4f0e5a099ab5c6a1e6fc894350389f04b1f83034 | 10,007 | py | Python | cdp/security.py | auphofBSF/python-chrome-devtools-protocol | a5c6ecea252a0770257c7b2e08479d521ba8d12f | [
"MIT"
] | 42 | 2019-10-07T17:50:00.000Z | 2022-03-28T17:56:27.000Z | cdp/security.py | auphofBSF/python-chrome-devtools-protocol | a5c6ecea252a0770257c7b2e08479d521ba8d12f | [
"MIT"
] | 23 | 2019-06-09T19:56:25.000Z | 2022-03-02T01:53:13.000Z | cdp/security.py | auphofBSF/python-chrome-devtools-protocol | a5c6ecea252a0770257c7b2e08479d521ba8d12f | [
"MIT"
] | 15 | 2019-11-25T10:20:32.000Z | 2022-03-01T21:14:56.000Z | # DO NOT EDIT THIS FILE!
#
# This file is generated from the CDP specification. If you need to make
# changes, edit the generator and regenerate all of the modules.
#
# CDP domain: Security
from __future__ import annotations
from cdp.util import event_class, T_JSON_DICT
from dataclasses import dataclass
import enum
im... | 31.174455 | 109 | 0.681223 | 1,153 | 10,007 | 5.737207 | 0.198612 | 0.020408 | 0.036735 | 0.019652 | 0.303553 | 0.240514 | 0.198791 | 0.159486 | 0.159486 | 0.124565 | 0 | 0.001414 | 0.222644 | 10,007 | 320 | 110 | 31.271875 | 0.848952 | 0.254622 | 0 | 0.325843 | 1 | 0 | 0.134503 | 0.063074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11236 | false | 0 | 0.033708 | 0.073034 | 0.455056 | 0 | 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 |
877c50c63acf20af16f76945e1533f976d5396df | 253 | py | Python | snippets/noun_verb_adj_try1.py | Maitreyapatel/Summarizer-API | 21611a3f8a305234b5cbec4c01d625bbc051d5d1 | [
"MIT"
] | 1 | 2020-06-04T19:22:42.000Z | 2020-06-04T19:22:42.000Z | snippets/noun_verb_adj_try1.py | Maitreyapatel/Summarizer-API | 21611a3f8a305234b5cbec4c01d625bbc051d5d1 | [
"MIT"
] | null | null | null | snippets/noun_verb_adj_try1.py | Maitreyapatel/Summarizer-API | 21611a3f8a305234b5cbec4c01d625bbc051d5d1 | [
"MIT"
] | null | null | null | from collections import Counter
import nltk
def allCounter(document):
tokens = nltk.word_tokenize(document.lower())
document = nltk.Text(tokens)
tags = nltk.pos_tag(document)
return (Counter(tag for word,tag in tags))
| 21.083333 | 50 | 0.679842 | 32 | 253 | 5.3125 | 0.59375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229249 | 253 | 11 | 51 | 23 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
877ee9231ceb4e32294795fedf3408818ab23def | 1,518 | py | Python | reencoder.py | utahnlp/layer_augmentation_qa | a3dd2d7af6f45b2aa500ff7612f77c31fb879cf0 | [
"Apache-2.0"
] | 6 | 2019-10-08T11:48:21.000Z | 2021-05-28T07:00:56.000Z | reencoder.py | utahnlp/layer_augmentation_qa | a3dd2d7af6f45b2aa500ff7612f77c31fb879cf0 | [
"Apache-2.0"
] | null | null | null | reencoder.py | utahnlp/layer_augmentation_qa | a3dd2d7af6f45b2aa500ff7612f77c31fb879cf0 | [
"Apache-2.0"
] | 1 | 2020-07-02T06:31:06.000Z | 2020-07-02T06:31:06.000Z | import sys
import torch
from torch import nn
from torch.autograd import Variable
from view import *
from holder import *
from util import *
from join_table import *
from dropout_lstm import *
from locked_dropout import *
# re-encoder
class ReEncoder(torch.nn.Module):
def __init__(self, opt, shared):
super(ReEncode... | 18.975 | 76 | 0.693676 | 245 | 1,518 | 4.089796 | 0.355102 | 0.06986 | 0.038922 | 0.033932 | 0.035928 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006606 | 0.20224 | 1,518 | 79 | 77 | 19.21519 | 0.820809 | 0.081686 | 0 | 0.115385 | 0 | 0 | 0.010799 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.115385 | false | 0.115385 | 0.192308 | 0 | 0.365385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
877f038d03194e8fae428c208c7bc37b2840bb6c | 508 | py | Python | Darlington/phase2/LIST/day 47 solution/qtn2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Darlington/phase2/LIST/day 47 solution/qtn2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Darlington/phase2/LIST/day 47 solution/qtn2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | # program to generate the combinations of n distinct objects taken from the elements of a given list.
def combination(n, n_list):
if n<=0:
yield []
return
for i in range(len(n_list)):
c_num = n_list[i:i+1]
for a_num in combination(n-1, n_list[i+1:]):
yield c_num + a_n... | 29.882353 | 101 | 0.63189 | 93 | 508 | 3.333333 | 0.451613 | 0.112903 | 0.070968 | 0.116129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036082 | 0.23622 | 508 | 17 | 102 | 29.882353 | 0.762887 | 0.194882 | 0 | 0 | 1 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.125 | 0.25 | 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 |
87812c3b2ddb81f9231252225ed2b3c8de7a5557 | 2,562 | py | Python | templates/uservdc/actions.py | openvcloud/ays_templates | 7ce0bd5844ccfaefae554dd0dedeab2730a365cc | [
"Apache-2.0"
] | null | null | null | templates/uservdc/actions.py | openvcloud/ays_templates | 7ce0bd5844ccfaefae554dd0dedeab2730a365cc | [
"Apache-2.0"
] | 10 | 2017-10-25T13:23:23.000Z | 2018-03-28T16:00:06.000Z | templates/uservdc/actions.py | openvcloud/ays_templates | 7ce0bd5844ccfaefae554dd0dedeab2730a365cc | [
"Apache-2.0"
] | null | null | null |
def install(job):
service = job.service
# create user if it doesn't exists
username = service.model.dbobj.name
password = service.model.data.password
email = service.model.data.email
provider = service.model.data.provider
username = "%s@%s" % (username, provider) if provider else username... | 45.75 | 143 | 0.713895 | 325 | 2,562 | 5.529231 | 0.230769 | 0.066778 | 0.062326 | 0.072343 | 0.578186 | 0.494157 | 0.494157 | 0.440735 | 0.440735 | 0.440735 | 0 | 0.007006 | 0.164325 | 2,562 | 55 | 144 | 46.581818 | 0.832321 | 0.0605 | 0 | 0.47619 | 0 | 0 | 0.058309 | 0.029988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
87828f1ecdcd3c4c5131dbfe51e316ca966e28a9 | 1,298 | py | Python | Proj1/test.py | jouvemax/DeepLearning | 056b1be878b77c5a7dd5cff8d29ecb390be8b5de | [
"MIT"
] | null | null | null | Proj1/test.py | jouvemax/DeepLearning | 056b1be878b77c5a7dd5cff8d29ecb390be8b5de | [
"MIT"
] | null | null | null | Proj1/test.py | jouvemax/DeepLearning | 056b1be878b77c5a7dd5cff8d29ecb390be8b5de | [
"MIT"
] | null | null | null | import torch
from dlc_practical_prologue import generate_pair_sets
import torch.nn as nn
from utils import *
from utils_pipeline2 import *
import time
import models
import torch.nn.functional as F
def main():
# Set the device to cuda if it is available otherwise use the CPU
if torch.cuda.is_available():
... | 34.157895 | 104 | 0.679507 | 185 | 1,298 | 4.605405 | 0.535135 | 0.038732 | 0.030516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027081 | 0.231895 | 1,298 | 38 | 105 | 34.157895 | 0.827482 | 0.190293 | 0 | 0 | 1 | 0 | 0.1826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.296296 | 0 | 0.333333 | 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 |
8783b87574eaf5a12826054ac3742271a3875ecb | 758 | py | Python | setup.py | jchmyz/DLW | c0235dce61845cf0d2cf573d595fcc339da9d3fc | [
"MIT"
] | null | null | null | setup.py | jchmyz/DLW | c0235dce61845cf0d2cf573d595fcc339da9d3fc | [
"MIT"
] | null | null | null | setup.py | jchmyz/DLW | c0235dce61845cf0d2cf573d595fcc339da9d3fc | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name='dlw',
version='0.0.16',
author='Julia Chmyz',
author_email='julia@chmyz.com',
packages=setuptools.find_packages(),
include_package_data=True,
url='https://github.com/jchmyz/DoublyLabeledWater',
license='LICENSE.tx... | 31.583333 | 94 | 0.591029 | 79 | 758 | 5.518987 | 0.746835 | 0.045872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.277045 | 758 | 23 | 95 | 32.956522 | 0.788321 | 0 | 0 | 0 | 0 | 0 | 0.349604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
878895c3a44e558bae5c83807c5c746b6bdb2b52 | 1,140 | py | Python | care/apps/facility/migrations/0008_care_platform.py | chetanyakan/care-platform | 52cd390b711bda4d8081f9cb4aed198c3ccc4195 | [
"MIT"
] | null | null | null | care/apps/facility/migrations/0008_care_platform.py | chetanyakan/care-platform | 52cd390b711bda4d8081f9cb4aed198c3ccc4195 | [
"MIT"
] | null | null | null | care/apps/facility/migrations/0008_care_platform.py | chetanyakan/care-platform | 52cd390b711bda4d8081f9cb4aed198c3ccc4195 | [
"MIT"
] | 2 | 2020-05-21T07:18:49.000Z | 2020-11-03T12:18:43.000Z | # Generated by Django 2.2.11 on 2020-05-27 08:07
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("facility", "0007_care_platform"),
]
operations = [
migrations.AlterField(
model_name="facilitysta... | 30 | 114 | 0.508772 | 104 | 1,140 | 5.490385 | 0.634615 | 0.052539 | 0.105079 | 0.101576 | 0.161121 | 0.161121 | 0 | 0 | 0 | 0 | 0 | 0.060649 | 0.37807 | 1,140 | 37 | 115 | 30.810811 | 0.744711 | 0.040351 | 0 | 0.258065 | 1 | 0 | 0.211538 | 0.021062 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.16129 | 0 | 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 |
87918864ebd2dca800e1988367aea255f542a665 | 985 | py | Python | testproject/home/models.py | fakegit/wagtail-cache | bd8d14e7e73beb5fe93e5d9cd6267427ef05863b | [
"BSD-3-Clause"
] | null | null | null | testproject/home/models.py | fakegit/wagtail-cache | bd8d14e7e73beb5fe93e5d9cd6267427ef05863b | [
"BSD-3-Clause"
] | null | null | null | testproject/home/models.py | fakegit/wagtail-cache | bd8d14e7e73beb5fe93e5d9cd6267427ef05863b | [
"BSD-3-Clause"
] | null | null | null | from wagtail.core.models import Page
from wagtailcache.cache import WagtailCacheMixin
class WagtailPage(Page):
"""
Normal page that does not include the mixin. This page should still be
cached due to the middleware, but will not have the ability to provide
custom cache instructions or "smart" caching ... | 25.25641 | 74 | 0.697462 | 120 | 985 | 5.708333 | 0.5 | 0.070073 | 0.093431 | 0.116788 | 0.327007 | 0.254015 | 0.254015 | 0.254015 | 0.254015 | 0.254015 | 0 | 0 | 0.219289 | 985 | 38 | 75 | 25.921053 | 0.890767 | 0.412183 | 0 | 0.307692 | 0 | 0 | 0.141434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
879288bc22d59607e939f142641bf68800a37fd4 | 584 | py | Python | finance_dag.py | vannguyen3007/Apache-Airflow | 1c8a6f3c9c0022807cbae4c4f83de33b8454ae24 | [
"Apache-2.0"
] | null | null | null | finance_dag.py | vannguyen3007/Apache-Airflow | 1c8a6f3c9c0022807cbae4c4f83de33b8454ae24 | [
"Apache-2.0"
] | null | null | null | finance_dag.py | vannguyen3007/Apache-Airflow | 1c8a6f3c9c0022807cbae4c4f83de33b8454ae24 | [
"Apache-2.0"
] | null | null | null | import pprint as pp
import airflow.utils.dates
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.dummy_operator import DummyOperator
from datetime import datetime, timedelta
default_args = {
"owner": "airflow",
"start_date": airflow.utils.dates.day... | 26.545455 | 93 | 0.696918 | 75 | 584 | 5.253333 | 0.506667 | 0.083756 | 0.086294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015086 | 0.205479 | 584 | 22 | 94 | 26.545455 | 0.834052 | 0 | 0 | 0 | 0 | 0 | 0.099145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
879877df281fc4440de5df14d6a60917ab713d6a | 8,491 | py | Python | pyroms_toolbox/pyroms_toolbox/nc_create_roms_file.py | dcherian/pyroms | fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11 | [
"BSD-3-Clause"
] | null | null | null | pyroms_toolbox/pyroms_toolbox/nc_create_roms_file.py | dcherian/pyroms | fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11 | [
"BSD-3-Clause"
] | null | null | null | pyroms_toolbox/pyroms_toolbox/nc_create_roms_file.py | dcherian/pyroms | fb5d9adda3afcc4ddbe9f3cf1f0a100d43262c11 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from datetime import datetime
try:
import netCDF4 as netCDF
except:
import netCDF3 as netCDF
def nc_create_roms_file(filename, grd, ocean_time, lgrid=True):
# create file
nc = netCDF.Dataset(filename, 'w', format='NETCDF3_64BIT')
nc.Description = 'ROMS file'
nc.Author = 'pyroms... | 44.455497 | 83 | 0.625839 | 1,230 | 8,491 | 4.105691 | 0.095935 | 0.230891 | 0.059406 | 0.022178 | 0.43802 | 0.303762 | 0.159208 | 0.05703 | 0 | 0 | 0 | 0.00839 | 0.185844 | 8,491 | 190 | 84 | 44.689474 | 0.722118 | 0.005064 | 0 | 0.025316 | 0 | 0 | 0.264654 | 0.004026 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006329 | false | 0 | 0.025316 | 0 | 0.031646 | 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 |
879d7e587fbe74f8b74beb89855574583c964ef0 | 786 | py | Python | resilient-circuits/tests/conftest.py | lmahoney1/resilient-python-api | ae7db374e6e79a03e555c3b9ff3c723c3314f673 | [
"MIT"
] | null | null | null | resilient-circuits/tests/conftest.py | lmahoney1/resilient-python-api | ae7db374e6e79a03e555c3b9ff3c723c3314f673 | [
"MIT"
] | null | null | null | resilient-circuits/tests/conftest.py | lmahoney1/resilient-python-api | ae7db374e6e79a03e555c3b9ff3c723c3314f673 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2010, 2020. All Rights Reserved.
"""
Shared pytest fixtures
Note:
- Code after the 'yield' statement in a fixture
is ran after the test (or scope i.e. test session) has complete
- fx_ prefixes a 'fixture'
- Put fixture l... | 22.457143 | 71 | 0.671756 | 114 | 786 | 4.552632 | 0.649123 | 0.05395 | 0.042389 | 0.05395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01675 | 0.240458 | 786 | 34 | 72 | 23.117647 | 0.852596 | 0.684478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 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 |
879d8a59fc6a9a75ebbbd9b8467cfaef59e0df91 | 6,252 | py | Python | tamr_toolbox/project/categorization/jobs.py | ErinCompaan/tamr-toolbox | b28d7f8b981a8068a1230ec33ebfa890060b20de | [
"Apache-2.0"
] | 6 | 2021-02-09T22:27:55.000Z | 2022-01-14T18:15:17.000Z | tamr_toolbox/project/categorization/jobs.py | ErinCompaan/tamr-toolbox | b28d7f8b981a8068a1230ec33ebfa890060b20de | [
"Apache-2.0"
] | 34 | 2021-02-09T22:23:33.000Z | 2022-03-31T16:22:51.000Z | tamr_toolbox/project/categorization/jobs.py | ErinCompaan/tamr-toolbox | b28d7f8b981a8068a1230ec33ebfa890060b20de | [
"Apache-2.0"
] | 12 | 2021-02-09T21:17:10.000Z | 2022-02-09T16:35:39.000Z | """Tasks related to running jobs for Tamr Categorization projects"""
import logging
from typing import List
from tamr_unify_client.categorization.project import CategorizationProject
from tamr_unify_client.operation import Operation
from tamr_toolbox.models.project_type import ProjectType
from tamr_toolbox.utils impo... | 32.226804 | 98 | 0.698337 | 708 | 6,252 | 5.971751 | 0.149718 | 0.139073 | 0.041627 | 0.043519 | 0.709319 | 0.690397 | 0.679754 | 0.677389 | 0.603359 | 0.603359 | 0 | 0 | 0.243442 | 6,252 | 193 | 99 | 32.393782 | 0.893869 | 0.356366 | 0 | 0.598039 | 0 | 0 | 0.089012 | 0.021395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 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 |
87a1b4b61d239afa13a3f197f199a953814927fa | 4,509 | py | Python | wildcard/dashboards/admin/projects/tables.py | kickstandproject/wildcard | 0ef2a15d8ac6b1d37db964d0baa7e40f9f771bc9 | [
"Apache-2.0"
] | 2 | 2015-03-04T18:55:24.000Z | 2021-04-20T23:27:19.000Z | wildcard/dashboards/admin/projects/tables.py | kickstandproject/wildcard | 0ef2a15d8ac6b1d37db964d0baa7e40f9f771bc9 | [
"Apache-2.0"
] | null | null | null | wildcard/dashboards/admin/projects/tables.py | kickstandproject/wildcard | 0ef2a15d8ac6b1d37db964d0baa7e40f9f771bc9 | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# no... | 34.159091 | 79 | 0.672655 | 521 | 4,509 | 5.68714 | 0.383877 | 0.037125 | 0.03375 | 0.038812 | 0.256834 | 0.244347 | 0.232872 | 0.232872 | 0.209922 | 0.209922 | 0 | 0.004511 | 0.213351 | 4,509 | 131 | 80 | 34.419847 | 0.830843 | 0.197605 | 0 | 0.280488 | 0 | 0 | 0.1824 | 0.071011 | 0 | 0 | 0 | 0.007634 | 0 | 1 | 0.109756 | false | 0 | 0.073171 | 0.04878 | 0.780488 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
87a381957f9043fe6b67506b62b9eb162d35b82e | 1,188 | py | Python | listener/app_engine/stats/models.py | andymckay/arecibo | eb6787ea0a276047ef5add2df67a4dd051e5c961 | [
"Apache-2.0"
] | 6 | 2016-01-26T04:47:52.000Z | 2022-01-24T19:55:04.000Z | listener/app_engine/stats/models.py | andymckay/arecibo | eb6787ea0a276047ef5add2df67a4dd051e5c961 | [
"Apache-2.0"
] | 6 | 2017-02-12T05:11:25.000Z | 2017-02-12T05:12:15.000Z | listener/app_engine/stats/models.py | andymckay/arecibo | eb6787ea0a276047ef5add2df67a4dd051e5c961 | [
"Apache-2.0"
] | 2 | 2015-12-09T22:37:58.000Z | 2021-09-09T17:04:33.000Z | from django.utils import simplejson
from datetime import datetime
from google.appengine.ext import db
from appengine_django.models import BaseModel
from stats.signals import stats_completed
class Stats(BaseModel):
""" A series of stats for a date """
date = db.DateProperty()
timestamp = db.DateTimePrope... | 25.826087 | 70 | 0.623737 | 141 | 1,188 | 5.184397 | 0.41844 | 0.036936 | 0.04104 | 0.068399 | 0.082079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1,188 | 45 | 71 | 26.4 | 0.851981 | 0.023569 | 0 | 0.058824 | 0 | 0 | 0.003472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.147059 | 0.029412 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
87a39539cd209e9407095a656f103320f1d6c7a7 | 571 | py | Python | src/sentry/models/commitauthor.py | augustand/sentry | 9e5e0b6744d878d623f483661e40c49bb902047c | [
"BSD-3-Clause"
] | 1 | 2021-08-10T06:07:13.000Z | 2021-08-10T06:07:13.000Z | src/sentry/models/commitauthor.py | augustand/sentry | 9e5e0b6744d878d623f483661e40c49bb902047c | [
"BSD-3-Clause"
] | 5 | 2019-12-28T18:13:59.000Z | 2022-03-02T04:32:45.000Z | src/sentry/models/commitauthor.py | augustand/sentry | 9e5e0b6744d878d623f483661e40c49bb902047c | [
"BSD-3-Clause"
] | 1 | 2017-04-08T04:09:18.000Z | 2017-04-08T04:09:18.000Z | from __future__ import absolute_import, print_function
from django.db import models
from sentry.db.models import BoundedPositiveIntegerField, Model, sane_repr
class CommitAuthor(Model):
__core__ = False
organization_id = BoundedPositiveIntegerField(db_index=True)
name = models.CharField(max_length=128,... | 27.190476 | 74 | 0.726795 | 64 | 571 | 6.09375 | 0.5625 | 0.107692 | 0.097436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006397 | 0.178634 | 571 | 20 | 75 | 28.55 | 0.82516 | 0 | 0 | 0 | 0 | 0 | 0.120841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.769231 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
87b2b44525d2cd1d4d0442fffa612a8ea5cec6af | 170 | py | Python | drafts/tests/conftest.py | vintasoftware/curly-enigma | 7248f93dbe2ba22e4f883786189215cea7cf72d5 | [
"MIT"
] | null | null | null | drafts/tests/conftest.py | vintasoftware/curly-enigma | 7248f93dbe2ba22e4f883786189215cea7cf72d5 | [
"MIT"
] | null | null | null | drafts/tests/conftest.py | vintasoftware/curly-enigma | 7248f93dbe2ba22e4f883786189215cea7cf72d5 | [
"MIT"
] | null | null | null | import pytest
from selenium.webdriver import Firefox
@pytest.yield_fixture(scope='session')
def webdriver():
driver = Firefox()
yield driver
driver.quit()
| 15.454545 | 38 | 0.723529 | 20 | 170 | 6.1 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 170 | 10 | 39 | 17 | 0.871429 | 0 | 0 | 0 | 0 | 0 | 0.041176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87b5cb456ff970da21b4c77f6a4790a470cef3e8 | 4,138 | py | Python | src/genie/libs/parser/iosxe/tests/ShowInventory/cli/equal/golden_output_asr1002_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowInventory/cli/equal/golden_output_asr1002_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowInventory/cli/equal/golden_output_asr1002_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"main": {
"chassis": {
"ASR1002-X": {
"descr": "Cisco ASR1002-X Chassis",
"name": "Chassis",
"pid": "ASR1002-X",
"sn": "FOX1111P1M1",
"vid": "V07",
}
}
},
"slot": {
... | 35.067797 | 75 | 0.235863 | 242 | 4,138 | 4.028926 | 0.235537 | 0.098462 | 0.065641 | 0.073846 | 0.506667 | 0.418462 | 0.365128 | 0.307692 | 0.307692 | 0.307692 | 0 | 0.113232 | 0.632914 | 4,138 | 117 | 76 | 35.367521 | 0.528637 | 0 | 0 | 0.393162 | 0 | 0 | 0.257854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87b6e6a7b3a4903c1bf70cf54c22fcb475068cce | 979 | py | Python | django/alumnos/Equipo 6/project/my_web/my_web/personas/models.py | R3SWebDevelopment/CeroUnoApprenticeshipProgramPython | b00b3dce329240889401627e99b72d3d9cadb7d9 | [
"MIT"
] | 1 | 2019-11-29T21:34:42.000Z | 2019-11-29T21:34:42.000Z | django/alumnos/Equipo 6/project/my_web/my_web/personas/models.py | R3SWebDevelopment/CeroUnoApprenticeshipProgramPython | b00b3dce329240889401627e99b72d3d9cadb7d9 | [
"MIT"
] | null | null | null | django/alumnos/Equipo 6/project/my_web/my_web/personas/models.py | R3SWebDevelopment/CeroUnoApprenticeshipProgramPython | b00b3dce329240889401627e99b72d3d9cadb7d9 | [
"MIT"
] | 1 | 2019-11-30T17:51:50.000Z | 2019-11-30T17:51:50.000Z | from django.db import models
GENERO_CHOICES = [
('M', 'MASCULINO'),
('F', 'FEMENINO')
]
class Persona(models.Model):
nombre = models.CharField(max_length=200, null=False, blank=False)
apellido_paterno = models.CharField(max_length=200, null=False, blank=False)
fecha_nacimiento = models.DateTimeFi... | 46.619048 | 124 | 0.738509 | 126 | 979 | 5.531746 | 0.412698 | 0.10043 | 0.080344 | 0.109039 | 0.33142 | 0.295552 | 0.295552 | 0.295552 | 0.295552 | 0.163558 | 0 | 0.008159 | 0.123596 | 979 | 20 | 125 | 48.95 | 0.804196 | 0 | 0 | 0 | 0 | 0 | 0.107252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0.0625 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
87bad072ee035175b5efa86c7213c9f3bf40a721 | 217 | py | Python | tutorial/dictiiion.py | fsbr/robot-arm | 5b481dda7cd0332adc895c49db697d8df5ea7728 | [
"MIT"
] | null | null | null | tutorial/dictiiion.py | fsbr/robot-arm | 5b481dda7cd0332adc895c49db697d8df5ea7728 | [
"MIT"
] | null | null | null | tutorial/dictiiion.py | fsbr/robot-arm | 5b481dda7cd0332adc895c49db697d8df5ea7728 | [
"MIT"
] | null | null | null | A = 1
connection= {
A : ['B'],
'B' : ['A', 'B', 'D'],
'C' : ['A'],
'D' : ['E','A'],
'E' : ['B']
}
for f in connection:
print(connection['B'])
print(connection[id])
| 16.692308 | 30 | 0.341014 | 26 | 217 | 2.846154 | 0.461538 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.37788 | 217 | 12 | 31 | 18.083333 | 0.540741 | 0 | 0 | 0 | 0 | 0 | 0.059908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87bb9a9edc87fae06ba552e164e5ba07759560ed | 3,265 | py | Python | apis/nb/clients/task_service_client/models/AugmentedTaskDTO.py | CiscoDevNet/APIC-EM-Generic-Scripts- | 74211d9488f1e77cf56ef86dba20ec8e8eb49cc1 | [
"ECL-2.0",
"Apache-2.0"
] | 45 | 2016-06-09T15:41:25.000Z | 2019-08-06T17:13:11.000Z | apis/nb/clients/task_service_client/models/AugmentedTaskDTO.py | CiscoDevNet/APIC-EM-Generic-Scripts | 74211d9488f1e77cf56ef86dba20ec8e8eb49cc1 | [
"ECL-2.0",
"Apache-2.0"
] | 36 | 2016-06-12T03:03:56.000Z | 2017-03-13T18:20:11.000Z | apis/nb/clients/task_service_client/models/AugmentedTaskDTO.py | CiscoDevNet/APIC-EM-Generic-Scripts | 74211d9488f1e77cf56ef86dba20ec8e8eb49cc1 | [
"ECL-2.0",
"Apache-2.0"
] | 15 | 2016-06-22T03:51:37.000Z | 2019-07-10T10:06:02.000Z | #!/usr/bin/env python
#pylint: skip-file
# This source code is licensed under the Apache license found in the
# LICENSE file in the root directory of this project.
class AugmentedTaskDTO(object):
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the... | 20.664557 | 97 | 0.366616 | 209 | 3,265 | 5.708134 | 0.296651 | 0.052808 | 0.030176 | 0.020117 | 0.063705 | 0.063705 | 0.063705 | 0.063705 | 0.063705 | 0.063705 | 0 | 0 | 0.545482 | 3,265 | 157 | 98 | 20.796178 | 0.803908 | 0.163553 | 0 | 0 | 0 | 0 | 0.166228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87bc557a5ddf15d9425da2af2ed407c2bc5628a6 | 544 | py | Python | django_multitenant/tests/migrations/0007_alter_foreignkey_field.py | Digital-and-Code-UK-Ltd/django-multitenant | 957b0814e0f12c44d733a2e60436db91906be292 | [
"MIT"
] | null | null | null | django_multitenant/tests/migrations/0007_alter_foreignkey_field.py | Digital-and-Code-UK-Ltd/django-multitenant | 957b0814e0f12c44d733a2e60436db91906be292 | [
"MIT"
] | null | null | null | django_multitenant/tests/migrations/0007_alter_foreignkey_field.py | Digital-and-Code-UK-Ltd/django-multitenant | 957b0814e0f12c44d733a2e60436db91906be292 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2019-03-01 08:45
from django.db import migrations
import django.db.models.deletion
import django_multitenant.fields
class Migration(migrations.Migration):
dependencies = [
("tests", "0006_subtask_project"),
]
operations = [
migrations.AlterField(
... | 23.652174 | 79 | 0.628676 | 58 | 544 | 5.793103 | 0.62069 | 0.071429 | 0.083333 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.266544 | 544 | 22 | 80 | 24.727273 | 0.794486 | 0.082721 | 0 | 0.125 | 1 | 0 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87c2d81a404540fec7715aa0c406a66a7b146a3a | 1,767 | py | Python | newsletter/test/test_newsletter_model.py | hossainchisty/Multi-Vendor-eCommerce | 42c5f62b8b098255cc9ea57858d3cc7de94bd76a | [
"MIT"
] | 16 | 2021-09-22T19:08:28.000Z | 2022-03-18T18:57:02.000Z | newsletter/test/test_newsletter_model.py | hossainchisty/Multi-Vendor-eCommerce | 42c5f62b8b098255cc9ea57858d3cc7de94bd76a | [
"MIT"
] | 6 | 2021-09-30T12:36:02.000Z | 2022-03-18T22:18:00.000Z | newsletter/test/test_newsletter_model.py | hossainchisty/Multi-Vendor-eCommerce | 42c5f62b8b098255cc9ea57858d3cc7de94bd76a | [
"MIT"
] | 6 | 2021-12-06T02:04:51.000Z | 2022-03-13T14:38:14.000Z | from django.test import TestCase
from newsletter.models import Subscriber
class NewsletterModelTest(TestCase):
""" Test suite for customer model """
def setUp(self):
""" Set up test database """
Subscriber.objects.create(email='test@gmail.com', confirmed=True)
Subscriber.obj... | 40.159091 | 89 | 0.666667 | 195 | 1,767 | 5.933333 | 0.261538 | 0.055315 | 0.060501 | 0.073466 | 0.554019 | 0.433881 | 0.290406 | 0.203976 | 0.119274 | 0.119274 | 0 | 0.003592 | 0.212224 | 1,767 | 43 | 90 | 41.093023 | 0.827586 | 0.14884 | 0 | 0 | 0 | 0 | 0.116726 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.333333 | false | 0 | 0.083333 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.