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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b88fca2ebe335e0075492e9a81b964d8fd3677ae | 2,595 | py | Python | cdc/src/NoteDeid.py | ZebinKang/cdc | a32fe41892021d29a1d9c534728a92b67f9b6cea | [
"MIT"
] | null | null | null | cdc/src/NoteDeid.py | ZebinKang/cdc | a32fe41892021d29a1d9c534728a92b67f9b6cea | [
"MIT"
] | null | null | null | cdc/src/NoteDeid.py | ZebinKang/cdc | a32fe41892021d29a1d9c534728a92b67f9b6cea | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
The MIT License (MIT)
Copyright (c) 2016 Wei-Hung Weng
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limita... | 47.181818 | 391 | 0.665511 | 389 | 2,595 | 4.413882 | 0.465296 | 0.051252 | 0.029121 | 0.040769 | 0.242283 | 0.242283 | 0.211998 | 0.171229 | 0.171229 | 0.171229 | 0 | 0.008817 | 0.169557 | 2,595 | 54 | 392 | 48.055556 | 0.787935 | 0.031599 | 0 | 0 | 0 | 0.105263 | 0.505027 | 0.117556 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.263158 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b892a01e77462df62b5d9db18651eb65be2d4626 | 571 | py | Python | datasets/__init__.py | cogito233/text-autoaugment | cae3cfddaba9da01cf291f975e5cf4f734634b51 | [
"MIT"
] | 1 | 2021-09-08T12:00:11.000Z | 2021-09-08T12:00:11.000Z | datasets/__init__.py | cogito233/text-autoaugment | cae3cfddaba9da01cf291f975e5cf4f734634b51 | [
"MIT"
] | null | null | null | datasets/__init__.py | cogito233/text-autoaugment | cae3cfddaba9da01cf291f975e5cf4f734634b51 | [
"MIT"
] | null | null | null | from .imdb import IMDB
from .sst5 import SST5
from .sst2 import SST2
from .trec import TREC
from .yelp2 import YELP2
from .yelp5 import YELP5
__all__ = ('IMDB', 'SST2', 'SST5', 'TREC', 'YELP2', 'YELP5')
def get_dataset(dataset_name, examples, tokenizer, text_transform=None):
dataset_name = dataset_name.lower()
... | 24.826087 | 73 | 0.640981 | 69 | 571 | 5.144928 | 0.304348 | 0.123944 | 0.107042 | 0.157746 | 0.230986 | 0.230986 | 0 | 0 | 0 | 0 | 0 | 0.045767 | 0.234676 | 571 | 22 | 74 | 25.954545 | 0.76659 | 0 | 0 | 0 | 0 | 0 | 0.091068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b894aa5fcf5ee5c3c91a08a010d10cc426cae285 | 857 | py | Python | npc/gui/util.py | Arent128/npc | c8a1e227a1d4d7c540c4f4427b611ffc290535ee | [
"MIT"
] | null | null | null | npc/gui/util.py | Arent128/npc | c8a1e227a1d4d7c540c4f4427b611ffc290535ee | [
"MIT"
] | null | null | null | npc/gui/util.py | Arent128/npc | c8a1e227a1d4d7c540c4f4427b611ffc290535ee | [
"MIT"
] | null | null | null | # Helpers common to the gui
from contextlib import contextmanager
from PyQt5 import QtWidgets
@contextmanager
def safe_command(command):
"""
Helper to suppress AttributeErrors from commands
Args:
command (callable): The command to run. Any AttributeError raised by
the command will be ... | 27.645161 | 83 | 0.679113 | 106 | 857 | 5.471698 | 0.537736 | 0.017241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001577 | 0.26021 | 857 | 30 | 84 | 28.566667 | 0.913249 | 0.547258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b89711b17746d4b4271b066247a24c7b87a987eb | 5,711 | py | Python | test/test_html.py | dominickpastore/pymd4c | 7fac37348b1e2520532c83bcb84b9cfecbcdff0c | [
"MIT"
] | 7 | 2020-04-30T08:27:44.000Z | 2022-02-09T12:23:07.000Z | test/test_html.py | dominickpastore/pymd4c | 7fac37348b1e2520532c83bcb84b9cfecbcdff0c | [
"MIT"
] | 23 | 2020-05-29T14:58:46.000Z | 2021-11-10T23:44:25.000Z | test/test_html.py | dominickpastore/pymd4c | 7fac37348b1e2520532c83bcb84b9cfecbcdff0c | [
"MIT"
] | 2 | 2020-09-17T19:40:44.000Z | 2021-07-13T16:43:18.000Z | # Based on spec_tests.py from
# https://github.com/commonmark/commonmark-spec/blob/master/test/spec_tests.py
# and
# https://github.com/github/cmark-gfm/blob/master/test/spec_tests.py
import sys
import os
import os.path
import re
import md4c
import md4c.domparser
import pytest
from normalize import normalize_html
ex... | 33.994048 | 78 | 0.615304 | 693 | 5,711 | 4.867244 | 0.235209 | 0.052179 | 0.026682 | 0.022532 | 0.242514 | 0.16306 | 0.138156 | 0.125111 | 0.125111 | 0.125111 | 0 | 0.017179 | 0.276309 | 5,711 | 167 | 79 | 34.197605 | 0.798451 | 0.145684 | 0 | 0.183333 | 0 | 0 | 0.089534 | 0.018238 | 0 | 0 | 0 | 0.011976 | 0.016667 | 1 | 0.05 | false | 0 | 0.066667 | 0.008333 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b89c391348948a67ee076b201c2356ffbd5b2843 | 418 | py | Python | fifth.py | leephoter/coding-exam | a95fdd6e8477651da811b5b5a93b7214914e9418 | [
"MIT"
] | null | null | null | fifth.py | leephoter/coding-exam | a95fdd6e8477651da811b5b5a93b7214914e9418 | [
"MIT"
] | null | null | null | fifth.py | leephoter/coding-exam | a95fdd6e8477651da811b5b5a93b7214914e9418 | [
"MIT"
] | null | null | null | # abba
# foo bar bar foo
text1 = list(input())
text2 = input().split()
# text1 = set(text1)
print(text1)
print(text2)
for i in range(len(text1)):
if text1[i] == "a":
text1[i] = 1
else:
text1[i] = 0
for i in range(len(text2)):
if text2[i] == "foo":
text2[i] = 1
else:
te... | 14.928571 | 27 | 0.543062 | 64 | 418 | 3.546875 | 0.34375 | 0.132159 | 0.132159 | 0.176211 | 0.123348 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073333 | 0.282297 | 418 | 27 | 28 | 15.481481 | 0.683333 | 0.093301 | 0 | 0.35 | 0 | 0 | 0.010667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3 | 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 |
b89c5decc2d125e57179ddb7e0fbbf5b7fa1d17a | 864 | py | Python | login_checks.py | mhhoban/basic-blog | 107d6df7c8374ae088097780a15364bb96394664 | [
"MIT"
] | null | null | null | login_checks.py | mhhoban/basic-blog | 107d6df7c8374ae088097780a15364bb96394664 | [
"MIT"
] | null | null | null | login_checks.py | mhhoban/basic-blog | 107d6df7c8374ae088097780a15364bb96394664 | [
"MIT"
] | null | null | null | """
Methods for user login
"""
from cgi import escape
from google.appengine.ext import ndb
def login_fields_complete(post_data):
"""
validates that both login fields were filled in
:param post_data:
:return:
"""
try:
user_id = escape(post_data['user_id'], quote=True)
except KeyErr... | 18 | 75 | 0.611111 | 110 | 864 | 4.618182 | 0.381818 | 0.11811 | 0.055118 | 0.090551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283565 | 864 | 47 | 76 | 18.382979 | 0.820679 | 0.168981 | 0 | 0.272727 | 0 | 0 | 0.075301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.181818 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b89ead298075031fa1c3f90802815475e6fa1de6 | 594 | py | Python | setup.py | ANich/patois-stopwords | 37e63a0d9df60c7273dd7664a024e02cfcfb04c7 | [
"MIT"
] | null | null | null | setup.py | ANich/patois-stopwords | 37e63a0d9df60c7273dd7664a024e02cfcfb04c7 | [
"MIT"
] | null | null | null | setup.py | ANich/patois-stopwords | 37e63a0d9df60c7273dd7664a024e02cfcfb04c7 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='patois-stop-words',
version='0.0.1',
description='A list of patois stop words.',
long_description=open('README.md').read(),
license='MIT',
author='Alexander Nicholson',
author_email='alexj.nich@hotmail.com',
url='https://github.co... | 27 | 53 | 0.62963 | 67 | 594 | 5.477612 | 0.716418 | 0.108992 | 0.163488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008584 | 0.215488 | 594 | 21 | 54 | 28.285714 | 0.77897 | 0 | 0 | 0 | 0 | 0 | 0.409091 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b8a3792b87c74a7c4d324caa87c2a3a3046ea018 | 319 | py | Python | gargantua/utils/elasticsearch.py | Laisky/laisky-blog | ebe7dadf8fce283ebab0539926ad1be1246e5156 | [
"Apache-2.0"
] | 18 | 2015-05-08T02:06:39.000Z | 2022-03-05T21:36:48.000Z | gargantua/utils/elasticsearch.py | Laisky/laisky-blog | ebe7dadf8fce283ebab0539926ad1be1246e5156 | [
"Apache-2.0"
] | 131 | 2015-01-22T14:54:59.000Z | 2022-02-16T15:14:10.000Z | gargantua/utils/elasticsearch.py | Laisky/laisky-blog | ebe7dadf8fce283ebab0539926ad1be1246e5156 | [
"Apache-2.0"
] | 3 | 2016-01-11T13:52:41.000Z | 2019-06-12T08:54:15.000Z | import json
def parse_search_resp(resp):
return [i['_source'] for i in json.loads(resp)['hits']['hits']]
def generate_keyword_search(keyword, field='post_content'):
query = {
"query": {
"match": {
field: keyword
}
}
}
return json.dumps(query)
| 18.764706 | 67 | 0.539185 | 35 | 319 | 4.742857 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.322884 | 319 | 16 | 68 | 19.9375 | 0.768519 | 0 | 0 | 0 | 1 | 0 | 0.115987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8a39d8abd6a6f5c91947df5a4f7859aa7716d4d | 957 | py | Python | HackerRank/Python_Learn/03_Strings/13_The_Minion_Game.py | Zubieta/CPP | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | 8 | 2017-03-02T07:56:45.000Z | 2021-08-07T20:20:19.000Z | HackerRank/Python_Learn/03_Strings/13_The_Minion_Game.py | zubie7a/Algorithms | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | null | null | null | HackerRank/Python_Learn/03_Strings/13_The_Minion_Game.py | zubie7a/Algorithms | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | 1 | 2021-08-07T20:20:20.000Z | 2021-08-07T20:20:20.000Z | # https://www.hackerrank.com/challenges/the-minion-game
from collections import Counter
def minion_game(string):
# your code goes here
string = string.lower()
consonants = set("bcdfghjklmnpqrstvwxyz")
vowels = set("aeiou")
# Stuart will get 1 point for every non-distinct substring that starts
# ... | 36.807692 | 77 | 0.640543 | 140 | 957 | 4.3 | 0.535714 | 0.049834 | 0.054817 | 0.059801 | 0.056478 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00436 | 0.281087 | 957 | 25 | 78 | 38.28 | 0.87064 | 0.392894 | 0 | 0 | 0 | 0 | 0.082024 | 0.036649 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | 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 |
b8a8d25a2989246934825ecb3bded3322cd894bb | 446 | py | Python | students/migrations/0010_institutionalemail_title_email.py | estudeplus/perfil | 58b847aa226b885ca6a7a128035f09de2322519f | [
"MIT"
] | null | null | null | students/migrations/0010_institutionalemail_title_email.py | estudeplus/perfil | 58b847aa226b885ca6a7a128035f09de2322519f | [
"MIT"
] | 21 | 2019-05-11T18:01:10.000Z | 2022-02-10T11:22:01.000Z | students/migrations/0010_institutionalemail_title_email.py | estudeplus/perfil | 58b847aa226b885ca6a7a128035f09de2322519f | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-06-30 00:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('students', '0009_auto_20190629_0125'),
]
operations = [
migrations.AddField(
model_name='institutionalemail',
name='... | 23.473684 | 94 | 0.630045 | 49 | 446 | 5.612245 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099698 | 0.257848 | 446 | 18 | 95 | 24.777778 | 0.731118 | 0.100897 | 0 | 0 | 1 | 0 | 0.190476 | 0.057644 | 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 |
b8a965e925e8c33d2b6141373da012de99c134f6 | 1,197 | py | Python | ics/structures/secu_avb_settings.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 45 | 2017-10-17T08:42:08.000Z | 2022-02-21T16:26:48.000Z | ics/structures/secu_avb_settings.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 106 | 2017-03-07T21:10:39.000Z | 2022-03-29T15:32:46.000Z | ics/structures/secu_avb_settings.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 17 | 2017-04-04T12:30:22.000Z | 2022-01-28T05:30:25.000Z | # This file was auto generated; Do not modify, if you value your sanity!
import ctypes
import enum
from ics.structures.can_settings import *
from ics.structures.canfd_settings import *
from ics.structures.s_text_api_settings import *
class flags(ctypes.Structure):
_pack_ = 2
_fields_ = [
('disableUsb... | 27.837209 | 72 | 0.670844 | 141 | 1,197 | 5.319149 | 0.475177 | 0.093333 | 0.069333 | 0.104 | 0.152 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037076 | 0.211362 | 1,197 | 42 | 73 | 28.5 | 0.757415 | 0.05848 | 0 | 0.125 | 1 | 0 | 0.180605 | 0.066726 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15625 | 0 | 0.34375 | 0 | 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 |
b8ae248b83fdee036686d9358abb1c53e99adc81 | 26,125 | py | Python | tests/configured_tests.py | maxcountryman/flask-security | ccb41df095177b11e8526958c1001d2f887d9feb | [
"MIT"
] | null | null | null | tests/configured_tests.py | maxcountryman/flask-security | ccb41df095177b11e8526958c1001d2f887d9feb | [
"MIT"
] | null | null | null | tests/configured_tests.py | maxcountryman/flask-security | ccb41df095177b11e8526958c1001d2f887d9feb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import with_statement
import base64
import time
import simplejson as json
from flask.ext.security.utils import capture_registrations, \
capture_reset_password_requests, capture_passwordless_login_requests
from flask.ext.security.forms import LoginForm, ConfirmRegisterForm,... | 33.407928 | 104 | 0.633952 | 2,909 | 26,125 | 5.462702 | 0.095222 | 0.021081 | 0.050217 | 0.023409 | 0.637153 | 0.578252 | 0.49097 | 0.395884 | 0.364043 | 0.313511 | 0 | 0.005332 | 0.246201 | 26,125 | 781 | 105 | 33.450704 | 0.801605 | 0.000804 | 0 | 0.455017 | 0 | 0.00346 | 0.221562 | 0.063408 | 0 | 0 | 0 | 0 | 0.157439 | 1 | 0.112457 | false | 0.193772 | 0.015571 | 0 | 0.238754 | 0.00519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b8b1d87440313264fbf621f72a939400ed1ccedc | 390 | py | Python | Global and Local Inversions/Solution.py | chandrikadeb7/Awesome-LeetCode-Python | 57902d3394761afd9a51b6405c085c87526e647e | [
"MIT"
] | 2 | 2021-07-16T06:46:58.000Z | 2021-12-08T01:15:09.000Z | Global and Local Inversions/Solution.py | chandrikadeb7/Awesome-LeetCode-Python | 57902d3394761afd9a51b6405c085c87526e647e | [
"MIT"
] | null | null | null | Global and Local Inversions/Solution.py | chandrikadeb7/Awesome-LeetCode-Python | 57902d3394761afd9a51b6405c085c87526e647e | [
"MIT"
] | null | null | null | class Solution:
def isIdealPermutation(self, A: List[int]) -> bool:
n = len(A)
g = local = 0
for i in range(1, n):
if A[i] < A[i-1]:
local += 1
if A[i] < i:
diff = i - A[i]
... | 32.5 | 55 | 0.315385 | 45 | 390 | 2.733333 | 0.511111 | 0.065041 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035503 | 0.566667 | 390 | 11 | 56 | 35.454545 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 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 |
b8b4581f931e18341efca7f99abcc93a3432695c | 13,076 | py | Python | queryable_properties/properties/common.py | W1ldPo1nter/django-queryable-properties | 9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1 | [
"BSD-3-Clause"
] | 36 | 2019-10-22T11:44:37.000Z | 2022-03-15T21:27:03.000Z | queryable_properties/properties/common.py | W1ldPo1nter/django-queryable-properties | 9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1 | [
"BSD-3-Clause"
] | 6 | 2020-10-03T15:13:26.000Z | 2021-09-25T14:05:50.000Z | queryable_properties/properties/common.py | W1ldPo1nter/django-queryable-properties | 9bb4ecb4fbdd7a9e0f610f937c8101a643027fb1 | [
"BSD-3-Clause"
] | 3 | 2021-04-26T08:30:46.000Z | 2021-08-18T09:04:49.000Z | # encoding: utf-8
import operator
import six
from django.db.models import BooleanField, Field, Q
from ..utils.internal import MISSING_OBJECT, ModelAttributeGetter, QueryPath
from .base import QueryableProperty
from .mixins import AnnotationGetterMixin, AnnotationMixin, boolean_filter, LookupFilterMixin
class Boole... | 45.245675 | 119 | 0.613643 | 1,484 | 13,076 | 5.258086 | 0.178571 | 0.019608 | 0.011662 | 0.016148 | 0.459567 | 0.350763 | 0.319236 | 0.300013 | 0.226964 | 0.226964 | 0 | 0.000227 | 0.324946 | 13,076 | 288 | 120 | 45.402778 | 0.883766 | 0.496406 | 0 | 0.15534 | 0 | 0 | 0.006194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194175 | false | 0 | 0.07767 | 0.058252 | 0.504854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b8b92ae2e5cf67849b6f6b332521716f375c2982 | 3,960 | py | Python | sookie.py | anygard/sookie | 5732f7644d2d908911735e62c8574863825174a2 | [
"MIT"
] | null | null | null | sookie.py | anygard/sookie | 5732f7644d2d908911735e62c8574863825174a2 | [
"MIT"
] | null | null | null | sookie.py | anygard/sookie | 5732f7644d2d908911735e62c8574863825174a2 | [
"MIT"
] | null | null | null |
""" Sookie, is a waiter, waits for a socket to be listening then it moves on
Usage:
sookie <socket> [--timeout=<to>] [--retry=<rt>] [--logsocket=<ls>] [--logfacility=<lf>] [--loglevel=<ll>]
sookie -h | --help
sookie --version
Options:
-h --help Show this screen
--version ... | 30.697674 | 109 | 0.630303 | 477 | 3,960 | 5.155136 | 0.36478 | 0.0366 | 0.056934 | 0.00976 | 0.06588 | 0.06588 | 0.04636 | 0 | 0 | 0 | 0 | 0.005771 | 0.256061 | 3,960 | 128 | 110 | 30.9375 | 0.828921 | 0 | 0 | 0.162162 | 0 | 0 | 0.132696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.094595 | null | null | 0.067568 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b8bd59b6d2fd731f6b088f01ce1a174d704adcae | 7,568 | py | Python | tests/test_mongoengine_dsl.py | StoneMoe/mongoengine_dsl | 310d77c30e77ba1f695b3d644737fcfc3c2ab304 | [
"MIT"
] | 3 | 2021-08-25T02:08:34.000Z | 2022-03-23T08:32:09.000Z | tests/test_mongoengine_dsl.py | StoneMoe/mongoengine_dsl | 310d77c30e77ba1f695b3d644737fcfc3c2ab304 | [
"MIT"
] | 1 | 2021-08-24T09:41:11.000Z | 2021-08-24T10:02:43.000Z | tests/test_mongoengine_dsl.py | StoneMoe/mongoengine_dsl | 310d77c30e77ba1f695b3d644737fcfc3c2ab304 | [
"MIT"
] | 1 | 2021-08-24T14:25:28.000Z | 2021-08-24T14:25:28.000Z | #!/usr/bin/env python
import unittest
from mongoengine import Document, Q, StringField, connect
from mongoengine_dsl import Query
from mongoengine_dsl.errors import InvalidSyntaxError, TransformHookError
from tests.utils import ts2dt
class DSLTest(unittest.TestCase):
def test_whitespace(self):
self.asser... | 35.698113 | 88 | 0.532505 | 918 | 7,568 | 4.311547 | 0.139434 | 0.109146 | 0.157655 | 0.192016 | 0.721324 | 0.658161 | 0.587923 | 0.537898 | 0.478019 | 0.417888 | 0 | 0.064449 | 0.296776 | 7,568 | 211 | 89 | 35.867299 | 0.679256 | 0.017442 | 0 | 0.26738 | 0 | 0 | 0.234415 | 0.009021 | 0 | 0 | 0 | 0 | 0.278075 | 1 | 0.090909 | false | 0 | 0.026738 | 0 | 0.13369 | 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 |
b8c32fb0b4535e967806c491e7dce8ba89fb1433 | 1,134 | py | Python | app/cachedmodel/migrations/0001_initial.py | Uniquode/uniquode2 | 385f3e0b26383c042d8da64b52350e82414580ea | [
"MIT"
] | null | null | null | app/cachedmodel/migrations/0001_initial.py | Uniquode/uniquode2 | 385f3e0b26383c042d8da64b52350e82414580ea | [
"MIT"
] | null | null | null | app/cachedmodel/migrations/0001_initial.py | Uniquode/uniquode2 | 385f3e0b26383c042d8da64b52350e82414580ea | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-19 03:41
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
class Migration(migrations.Migration):
initial = True
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
]
operations =... | 32.4 | 128 | 0.574074 | 111 | 1,134 | 5.720721 | 0.558559 | 0.075591 | 0.110236 | 0.099213 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030902 | 0.286596 | 1,134 | 34 | 129 | 33.352941 | 0.754017 | 0.039683 | 0 | 0.074074 | 1 | 0 | 0.162833 | 0.048758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.259259 | 0 | 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 |
b210a7b86cf5f45e110a190e8d8eb560c075e998 | 397 | py | Python | dotacni_matice/migrations/0002_history.py | CzechInvest/ciis | c6102598f564a717472e5e31e7eb894bba2c8104 | [
"MIT"
] | 1 | 2019-05-26T22:24:01.000Z | 2019-05-26T22:24:01.000Z | dotacni_matice/migrations/0002_history.py | CzechInvest/ciis | c6102598f564a717472e5e31e7eb894bba2c8104 | [
"MIT"
] | 6 | 2019-01-22T14:53:43.000Z | 2020-09-22T16:20:28.000Z | dotacni_matice/migrations/0002_history.py | CzechInvest/ciis | c6102598f564a717472e5e31e7eb894bba2c8104 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-12-27 18:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dotacni_matice', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='dotacnititul',
name='history',... | 20.894737 | 58 | 0.602015 | 42 | 397 | 5.619048 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.282116 | 397 | 18 | 59 | 22.055556 | 0.761404 | 0.11335 | 0 | 0 | 1 | 0 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b213326f9b1abfe3dfc2e0c0ee4f51afa2c00f6e | 778 | py | Python | Software_University/python_basics/exam_preparation/4_exam_prep/renovation.py | Ivanazzz/SoftUni-W3resource-Python | 892321a290e22a91ff2ac2fef5316179a93f2f17 | [
"MIT"
] | 1 | 2022-01-26T07:38:11.000Z | 2022-01-26T07:38:11.000Z | Software_University/python_basics/exam_preparation/4_exam_prep/renovation.py | Ivanazzz/SoftUni-W3resource-Python | 892321a290e22a91ff2ac2fef5316179a93f2f17 | [
"MIT"
] | null | null | null | Software_University/python_basics/exam_preparation/4_exam_prep/renovation.py | Ivanazzz/SoftUni-W3resource-Python | 892321a290e22a91ff2ac2fef5316179a93f2f17 | [
"MIT"
] | null | null | null | from math import ceil
walls_hight = int(input())
walls_witdh = int(input())
percentage_walls_tottal_area_not_painted = int(input())
total_walls_area = walls_hight * walls_witdh * 4
quadratic_meters_left = total_walls_area - ceil(total_walls_area * percentage_walls_tottal_area_not_painted / 100)
while True:
paint... | 32.416667 | 114 | 0.717224 | 109 | 778 | 4.779817 | 0.385321 | 0.172745 | 0.21881 | 0.095969 | 0.230326 | 0.134357 | 0 | 0 | 0 | 0 | 0 | 0.0096 | 0.196658 | 778 | 23 | 115 | 33.826087 | 0.824 | 0 | 0 | 0.157895 | 0 | 0 | 0.210797 | 0.065553 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.157895 | 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 |
b21881d06efcd08194a38d1b8b2a7efa72fa56b5 | 890 | py | Python | src/tools/checkDeckByUrl.py | kentokura/xenoparts | d861ca474accdf1ec7bcf6afcac6be9246cf4c85 | [
"MIT"
] | null | null | null | src/tools/checkDeckByUrl.py | kentokura/xenoparts | d861ca474accdf1ec7bcf6afcac6be9246cf4c85 | [
"MIT"
] | null | null | null | src/tools/checkDeckByUrl.py | kentokura/xenoparts | d861ca474accdf1ec7bcf6afcac6be9246cf4c85 | [
"MIT"
] | null | null | null | # coding: utf-8
# Your code here!
import csv
def encode_cardd_by_url(url: str) -> dict:
"""
入力:デッキURL
出力:{ card_id, num }
処理:
URLから、カードidごとの枚数の辞書を作成する
"""
site_url, card_url = url.split("c=")
card_url, key_card_url = card_url.split("&")
arr_card_id = card_url.split(".")
... | 22.25 | 77 | 0.61573 | 125 | 890 | 4.112 | 0.44 | 0.093385 | 0.052529 | 0.062257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001517 | 0.259551 | 890 | 39 | 78 | 22.820513 | 0.778452 | 0.231461 | 0 | 0 | 0 | 0 | 0.041538 | 0.033846 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b21e3496e5fd13e41a572208964a13c7cf7ed7c2 | 3,032 | py | Python | UsbVibrationDevice.py | Suitceyes-Project-Code/Vibration-Pattern-Player | 44d8bac61eed0ee7712eb0299d0d7029f688fe24 | [
"MIT"
] | null | null | null | UsbVibrationDevice.py | Suitceyes-Project-Code/Vibration-Pattern-Player | 44d8bac61eed0ee7712eb0299d0d7029f688fe24 | [
"MIT"
] | null | null | null | UsbVibrationDevice.py | Suitceyes-Project-Code/Vibration-Pattern-Player | 44d8bac61eed0ee7712eb0299d0d7029f688fe24 | [
"MIT"
] | 1 | 2021-10-04T14:26:49.000Z | 2021-10-04T14:26:49.000Z | import PyCmdMessenger
from VestDeviceBase import VestDevice
class UsbVestDevice(VestDevice):
"""
Basic interface for sending commands to the vest using a
serial port connection.
"""
commands = [["PinSet","gg"],
["PinMute","g"],
["GloveSet","gg*"],
["... | 30.938776 | 115 | 0.539248 | 328 | 3,032 | 4.865854 | 0.338415 | 0.070175 | 0.067669 | 0.028195 | 0.078321 | 0.078321 | 0.078321 | 0.042607 | 0.042607 | 0 | 0 | 0.009146 | 0.350923 | 3,032 | 98 | 116 | 30.938776 | 0.801829 | 0.297823 | 0 | 0 | 0 | 0 | 0.088553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b22419f7d9aaad90e17b3010a06a273060fa238e | 1,729 | py | Python | mem_py/login/forms.py | Ciuel/Proyecto-Django | a466659fa7e84e77d0692f4f3c3f8c5f541079d4 | [
"MIT"
] | null | null | null | mem_py/login/forms.py | Ciuel/Proyecto-Django | a466659fa7e84e77d0692f4f3c3f8c5f541079d4 | [
"MIT"
] | null | null | null | mem_py/login/forms.py | Ciuel/Proyecto-Django | a466659fa7e84e77d0692f4f3c3f8c5f541079d4 | [
"MIT"
] | 1 | 2021-07-17T19:41:40.000Z | 2021-07-17T19:41:40.000Z | from django import forms
from django.contrib.auth.forms import UserCreationForm,AuthenticationForm
from .models import UserProfile
# Create your forms here
class LoginForm(AuthenticationForm):
def __init__(self, request, *args, **kwargs):
super().__init__(self, request, *args, **kwargs)
self.fiel... | 39.295455 | 90 | 0.632736 | 168 | 1,729 | 6.380952 | 0.345238 | 0.093284 | 0.095149 | 0.156716 | 0.442164 | 0.404851 | 0.326493 | 0.326493 | 0.326493 | 0.326493 | 0 | 0.004491 | 0.227299 | 1,729 | 43 | 91 | 40.209302 | 0.797904 | 0.012724 | 0 | 0.378378 | 0 | 0 | 0.218897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.243243 | 0.081081 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b224f08977080d30a8248e3383147fd3fad725df | 1,487 | py | Python | numpy_examples/basic_5_structured_arrays.py | stealthness/sklearn-examples | e755fd3804cc15dd28ff2a38e299e80c83565d0a | [
"BSD-3-Clause"
] | null | null | null | numpy_examples/basic_5_structured_arrays.py | stealthness/sklearn-examples | e755fd3804cc15dd28ff2a38e299e80c83565d0a | [
"BSD-3-Clause"
] | null | null | null | numpy_examples/basic_5_structured_arrays.py | stealthness/sklearn-examples | e755fd3804cc15dd28ff2a38e299e80c83565d0a | [
"BSD-3-Clause"
] | null | null | null | """
Purpose of this file is to give examples of structured arrays
This script is partially dirived from the LinkedIn learning course
https://www.linkedin.com/learning/numpy-data-science-essential-training/create-arrays-from-python-structures
"""
import numpy as np
person_data_def = [('name', 'S6'), ('height', 'f8'),... | 33.795455 | 108 | 0.718897 | 245 | 1,487 | 4.277551 | 0.436735 | 0.13645 | 0.060115 | 0.053435 | 0.071565 | 0.071565 | 0 | 0 | 0 | 0 | 0 | 0.041991 | 0.135171 | 1,487 | 44 | 109 | 33.795455 | 0.772939 | 0.359785 | 0 | 0 | 0 | 0 | 0.391906 | 0.112886 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b22bc88a2d140b8c45a0fbac6ce8fea46af69f26 | 1,036 | py | Python | courses/python/mflac/vuln_app/patched_admin.py | tank1st99/securitygym | 2e4fbdf8002afbe51648706906f0db2c294362a6 | [
"MIT"
] | 49 | 2021-05-20T12:49:28.000Z | 2022-03-13T11:35:03.000Z | courses/python/mflac/vuln_app/patched_admin.py | tank1st99/securitygym | 2e4fbdf8002afbe51648706906f0db2c294362a6 | [
"MIT"
] | null | null | null | courses/python/mflac/vuln_app/patched_admin.py | tank1st99/securitygym | 2e4fbdf8002afbe51648706906f0db2c294362a6 | [
"MIT"
] | 5 | 2021-05-20T12:58:34.000Z | 2021-12-05T19:08:13.000Z | import functools
from flask import Blueprint
from flask import render_template
from flask import g
from flask import redirect
from flask import url_for
from flask import flash
from mflac.vuln_app.db import get_db
bp = Blueprint("admin", __name__, url_prefix="/admin")
def admin_required(view):
@functools.wraps(... | 25.268293 | 76 | 0.697876 | 146 | 1,036 | 4.773973 | 0.356164 | 0.077475 | 0.129125 | 0.074605 | 0.275466 | 0.275466 | 0.180775 | 0.180775 | 0.180775 | 0.180775 | 0 | 0 | 0.197876 | 1,036 | 40 | 77 | 25.9 | 0.838749 | 0 | 0 | 0.258065 | 0 | 0 | 0.146718 | 0.02027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.258065 | 0 | 0.645161 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b22e87213200baf4d5c3c89eb335262571cc546e | 1,486 | py | Python | HackerEarth/Python/BasicProgramming/InputOutput/BasicsOfInputOutput/MinimizeCost.py | cychitivav/programming_exercises | e8e7ddb4ec4eea52ee0d3826a144c7dc97195e78 | [
"MIT"
] | null | null | null | HackerEarth/Python/BasicProgramming/InputOutput/BasicsOfInputOutput/MinimizeCost.py | cychitivav/programming_exercises | e8e7ddb4ec4eea52ee0d3826a144c7dc97195e78 | [
"MIT"
] | null | null | null | HackerEarth/Python/BasicProgramming/InputOutput/BasicsOfInputOutput/MinimizeCost.py | cychitivav/programming_exercises | e8e7ddb4ec4eea52ee0d3826a144c7dc97195e78 | [
"MIT"
] | null | null | null | #!/Usr/bin/env python
"""
You are given an array of numbers Ai which contains positive as well as negative numbers . The cost of the array can be defined as C(X)
C(x) = |A1 + T1| + |A2 + T2| + ... + |An + Tn|, where T is the transfer array which contains N zeros initially.
You need to minimize this cost. You ca... | 31.617021 | 362 | 0.691117 | 271 | 1,486 | 3.760148 | 0.523985 | 0.007851 | 0.017664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042683 | 0.227456 | 1,486 | 46 | 363 | 32.304348 | 0.841463 | 0.861373 | 0 | 0 | 0 | 0 | 0.344371 | 0.145695 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2341f237ea46f0ced528101120f6ba97f84d73f | 14,362 | py | Python | ci/unit_tests/functions_deploy/main_test.py | xverges/watson-assistant-workbench | b899784506c7469be332cb58ed447ca8f607ed30 | [
"Apache-2.0"
] | 1 | 2020-03-27T16:39:38.000Z | 2020-03-27T16:39:38.000Z | ci/unit_tests/functions_deploy/main_test.py | xverges/watson-assistant-workbench | b899784506c7469be332cb58ed447ca8f607ed30 | [
"Apache-2.0"
] | 1 | 2021-01-29T16:14:58.000Z | 2021-02-03T16:10:07.000Z | ci/unit_tests/functions_deploy/main_test.py | xverges/watson-assistant-workbench | b899784506c7469be332cb58ed447ca8f607ed30 | [
"Apache-2.0"
] | 1 | 2021-01-22T13:13:36.000Z | 2021-01-22T13:13:36.000Z | """
Copyright 2019 IBM Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | 49.524138 | 137 | 0.598176 | 1,289 | 14,362 | 6.573313 | 0.250582 | 0.020772 | 0.014163 | 0.016523 | 0.479051 | 0.460876 | 0.456745 | 0.422283 | 0.408828 | 0.399858 | 0 | 0.004194 | 0.302743 | 14,362 | 289 | 138 | 49.695502 | 0.841921 | 0.152625 | 0 | 0.465969 | 0 | 0 | 0.189792 | 0.111166 | 0 | 0 | 0 | 0 | 0.031414 | 1 | 0.062827 | false | 0.089005 | 0.052356 | 0 | 0.136126 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2376657b0293a1d78aa6eb2c5f7730819b325c9 | 867 | py | Python | pychron/experiment/tests/comment_template.py | ael-noblegas/pychron | 6ebbbb1f66a614972b62b7a9be4c784ae61b5d62 | [
"Apache-2.0"
] | 1 | 2019-02-27T21:57:44.000Z | 2019-02-27T21:57:44.000Z | pychron/experiment/tests/comment_template.py | ael-noblegas/pychron | 6ebbbb1f66a614972b62b7a9be4c784ae61b5d62 | [
"Apache-2.0"
] | 80 | 2018-07-17T20:10:20.000Z | 2021-08-17T15:38:24.000Z | pychron/experiment/tests/comment_template.py | AGESLDEO/pychron | 1a81e05d9fba43b797f335ceff6837c016633bcf | [
"Apache-2.0"
] | null | null | null |
from __future__ import absolute_import
__author__ = 'ross'
import unittest
from pychron.experiment.utilities.comment_template import CommentTemplater
class MockFactory(object):
irrad_level = 'A'
irrad_hole = '9'
class CommentTemplaterTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
... | 22.815789 | 78 | 0.682814 | 105 | 867 | 5.285714 | 0.428571 | 0.072072 | 0.064865 | 0.097297 | 0.2 | 0.2 | 0.2 | 0.2 | 0 | 0 | 0 | 0.010189 | 0.207612 | 867 | 37 | 79 | 23.432432 | 0.797671 | 0 | 0 | 0 | 0 | 0 | 0.140878 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.208333 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2377bde1e5c8e5670fad099a5e53482fcf577c1 | 1,823 | py | Python | apps/roles/views.py | andipandiber/CajaAhorros | cb0769fc04529088768ea650f9ee048bd9a55837 | [
"MIT"
] | null | null | null | apps/roles/views.py | andipandiber/CajaAhorros | cb0769fc04529088768ea650f9ee048bd9a55837 | [
"MIT"
] | 8 | 2021-03-30T13:39:24.000Z | 2022-03-12T00:36:15.000Z | apps/roles/views.py | andresbermeoq/CajaAhorros | cb0769fc04529088768ea650f9ee048bd9a55837 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.urls import reverse_lazy
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import CreateView, ListView, UpdateView, DeleteView, TemplateView
from .models import Role
class baseView(LoginRequiredMixin, TemplateView):
template_name = ... | 29.403226 | 91 | 0.705979 | 221 | 1,823 | 5.597285 | 0.298643 | 0.080032 | 0.090542 | 0.076799 | 0.354891 | 0.248989 | 0.248989 | 0.248989 | 0.248989 | 0.181892 | 0 | 0 | 0.185409 | 1,823 | 61 | 92 | 29.885246 | 0.832997 | 0 | 0 | 0.340909 | 0 | 0 | 0.130913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.113636 | 0.022727 | 0.840909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b238f91a5ac084ae34b9c4b97d9a95b7ebca4518 | 418 | py | Python | hlwtadmin/migrations/0035_location_disambiguation.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 1 | 2020-10-16T16:29:01.000Z | 2020-10-16T16:29:01.000Z | hlwtadmin/migrations/0035_location_disambiguation.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 365 | 2020-02-03T12:46:53.000Z | 2022-02-27T17:20:46.000Z | hlwtadmin/migrations/0035_location_disambiguation.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0 on 2020-07-22 08:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hlwtadmin', '0034_auto_20200722_1000'),
]
operations = [
migrations.AddField(
model_name='location',
name='disambiguat... | 22 | 74 | 0.617225 | 45 | 418 | 5.622222 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108197 | 0.270335 | 418 | 18 | 75 | 23.222222 | 0.721311 | 0.102871 | 0 | 0 | 1 | 0 | 0.144772 | 0.061662 | 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 |
b23ae56df03e56d6049586357b729e447c6dec2f | 658 | py | Python | 819. Rotate Array/Slicing.py | tulsishankarreddy/leetcode | fffe90b0ab43a57055c248550f31ac18967fe183 | [
"MIT"
] | 1 | 2022-01-19T16:26:49.000Z | 2022-01-19T16:26:49.000Z | 819. Rotate Array/Slicing.py | tulsishankarreddy/leetcode | fffe90b0ab43a57055c248550f31ac18967fe183 | [
"MIT"
] | null | null | null | 819. Rotate Array/Slicing.py | tulsishankarreddy/leetcode | fffe90b0ab43a57055c248550f31ac18967fe183 | [
"MIT"
] | null | null | null | ''' This can be solved using the slicing method used in list. We have to modify the list by take moving the
last part of the array in reverse order and joining it with the remaining part of the list to its right'''
class Solution:
def rotate(self, nums: List[int], k: int) -> None:
"""
Do not return... | 54.833333 | 120 | 0.600304 | 104 | 658 | 3.798077 | 0.548077 | 0.063291 | 0.091139 | 0.098734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302432 | 658 | 12 | 120 | 54.833333 | 0.860566 | 0.647416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b23ca7a903bc4922dc5e8b76e4f255954b93daec | 10,324 | py | Python | ecs/notifications/models.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 9 | 2017-02-13T18:17:13.000Z | 2020-11-21T20:15:54.000Z | ecs/notifications/models.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 2 | 2021-05-20T14:26:47.000Z | 2021-05-20T14:26:48.000Z | ecs/notifications/models.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 4 | 2017-04-02T18:48:59.000Z | 2021-11-23T15:40:35.000Z | from importlib import import_module
from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext
from django.template import loader
from django.utils.text import slugify
from django.utils import timezone
from revers... | 37.955882 | 117 | 0.6852 | 1,113 | 10,324 | 6.142857 | 0.213836 | 0.02662 | 0.040222 | 0.039491 | 0.20667 | 0.159427 | 0.127834 | 0.078689 | 0.043586 | 0.043586 | 0 | 0.001988 | 0.220263 | 10,324 | 271 | 118 | 38.095941 | 0.847329 | 0 | 0 | 0.152074 | 0 | 0 | 0.077586 | 0.019275 | 0 | 0 | 0 | 0 | 0.009217 | 1 | 0.092166 | false | 0 | 0.087558 | 0.018433 | 0.534562 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b23d36fa5033cff1b7860caf5d44f22ca9d35ade | 3,422 | py | Python | iwjam_import.py | patrickgh3/iwjam | fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be | [
"MIT"
] | null | null | null | iwjam_import.py | patrickgh3/iwjam | fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be | [
"MIT"
] | null | null | null | iwjam_import.py | patrickgh3/iwjam | fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be | [
"MIT"
] | null | null | null | from lxml import etree
import os
import sys
import shutil
import iwjam_util
# Performs an import of a mod project into a base project given a
# previously computed ProjectDiff between them,
# and a list of folder names to prefix
# ('%modname%' will be replaced with the mod's name)
def do_import(base_dir, mod_dir, pdif... | 36.404255 | 78 | 0.63647 | 483 | 3,422 | 4.333333 | 0.287785 | 0.0301 | 0.0215 | 0.024845 | 0.139035 | 0.130913 | 0.091734 | 0.042045 | 0.042045 | 0.042045 | 0 | 0.001986 | 0.264465 | 3,422 | 93 | 79 | 36.795699 | 0.829559 | 0.259205 | 0 | 0 | 0 | 0 | 0.01953 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.153846 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b24345cfa90040fa81b341f92e8e1c158be7a95e | 673 | py | Python | dvc/parsing/__init__.py | mbraakhekke/dvc | 235d4c9a94603131e00c9b770125584fdb369481 | [
"Apache-2.0"
] | null | null | null | dvc/parsing/__init__.py | mbraakhekke/dvc | 235d4c9a94603131e00c9b770125584fdb369481 | [
"Apache-2.0"
] | null | null | null | dvc/parsing/__init__.py | mbraakhekke/dvc | 235d4c9a94603131e00c9b770125584fdb369481 | [
"Apache-2.0"
] | null | null | null | import logging
from itertools import starmap
from funcy import join
from .context import Context
from .interpolate import resolve
logger = logging.getLogger(__name__)
STAGES = "stages"
class DataResolver:
def __init__(self, d):
self.context = Context()
self.data = d
def _resolve_entry(sel... | 24.035714 | 71 | 0.665676 | 84 | 673 | 5.154762 | 0.369048 | 0.055427 | 0.050808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225854 | 673 | 27 | 72 | 24.925926 | 0.831094 | 0 | 0 | 0 | 0 | 0 | 0.056464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.263158 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b243f7691e46a57fcead4522c62b345ef6662d0c | 1,692 | py | Python | interviewbit/TwoPointers/kthsmallest.py | zazhang/coding-problems | 704f0ab22ecdc5fca1978ac7791f43258eb441dd | [
"MIT"
] | null | null | null | interviewbit/TwoPointers/kthsmallest.py | zazhang/coding-problems | 704f0ab22ecdc5fca1978ac7791f43258eb441dd | [
"MIT"
] | null | null | null | interviewbit/TwoPointers/kthsmallest.py | zazhang/coding-problems | 704f0ab22ecdc5fca1978ac7791f43258eb441dd | [
"MIT"
] | null | null | null | #!usr/bin/env ipython
"""Coding interview problem (array, math):
See `https://www.interviewbit.com/problems/kth-smallest-element-in-the-array/`
Find the kth smallest element in an unsorted array of non-negative integers.
Definition of kth smallest element:
kth smallest element is the minimum possible n such that t... | 26.030769 | 105 | 0.613475 | 264 | 1,692 | 3.856061 | 0.450758 | 0.011788 | 0.070727 | 0.039293 | 0.072692 | 0.072692 | 0.072692 | 0.072692 | 0.072692 | 0.072692 | 0 | 0.023451 | 0.294326 | 1,692 | 64 | 106 | 26.4375 | 0.829146 | 0.184397 | 0 | 0.285714 | 0 | 0 | 0.010596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b244e34a9bc2f4dc206325d9907079cdca8ac5ad | 1,021 | py | Python | Test/test_conf_ap/conf_hostapd/create_config.py | liquidinvestigations/wifi-test | beae8674730d78330b1b18214c86206d858ed604 | [
"MIT"
] | null | null | null | Test/test_conf_ap/conf_hostapd/create_config.py | liquidinvestigations/wifi-test | beae8674730d78330b1b18214c86206d858ed604 | [
"MIT"
] | null | null | null | Test/test_conf_ap/conf_hostapd/create_config.py | liquidinvestigations/wifi-test | beae8674730d78330b1b18214c86206d858ed604 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from hostapdconf.parser import HostapdConf
from hostapdconf import helpers as ha
import subprocess
def create_hostapd_conf(ssid, password, interface):
"""
Create a new hostapd.conf with the given ssid, password, interface.
Overwrites the current config file.
"""
subprocess... | 27.594595 | 75 | 0.695397 | 139 | 1,021 | 4.928058 | 0.553957 | 0.080292 | 0.049635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009592 | 0.183154 | 1,021 | 36 | 76 | 28.361111 | 0.811751 | 0.227228 | 0 | 0 | 0 | 0 | 0.191099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.157895 | 0.157895 | 0 | 0.210526 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b245f0f4f9cda0ef7cfead4f0aa73f69f90186e7 | 1,669 | py | Python | tests/test_paddle.py | ankitshah009/MMdnn | a03d800eb4016765e97f82eb5d2e69f98de3a9cf | [
"MIT"
] | 3,442 | 2017-11-20T08:39:51.000Z | 2019-05-06T10:51:19.000Z | tests/test_paddle.py | ankitshah009/MMdnn | a03d800eb4016765e97f82eb5d2e69f98de3a9cf | [
"MIT"
] | 430 | 2017-11-29T04:21:48.000Z | 2019-05-06T05:37:37.000Z | tests/test_paddle.py | ankitshah009/MMdnn | a03d800eb4016765e97f82eb5d2e69f98de3a9cf | [
"MIT"
] | 683 | 2017-11-20T08:50:34.000Z | 2019-05-04T04:25:14.000Z | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
from conversion_imagenet import TestModels
from conversion_imagenet import is_paddle_supported
def get_test_table():
return { 'paddle' : {
'resnet50' : [
TestModels.onnx_emit,
... | 30.345455 | 56 | 0.559617 | 146 | 1,669 | 5.993151 | 0.294521 | 0.336 | 0.061714 | 0.096 | 0.541714 | 0.541714 | 0.541714 | 0.541714 | 0.541714 | 0.541714 | 0 | 0.006692 | 0.373277 | 1,669 | 54 | 57 | 30.907407 | 0.829828 | 0.177951 | 0 | 0.416667 | 0 | 0 | 0.030905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.194444 | 0.027778 | 0.305556 | 0.027778 | 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 |
b2473e8998bf083e1cd206ca3716ffba6efcc23c | 1,778 | py | Python | stickyuploads/utils.py | caktus/django-sticky-uploads | a57539655ba991f63f31f0a5c98d790947bcd1b8 | [
"BSD-3-Clause"
] | 11 | 2015-08-14T14:38:02.000Z | 2019-12-16T14:39:30.000Z | stickyuploads/utils.py | caktus/django-sticky-uploads | a57539655ba991f63f31f0a5c98d790947bcd1b8 | [
"BSD-3-Clause"
] | 16 | 2015-08-05T14:02:19.000Z | 2018-03-28T15:43:47.000Z | stickyuploads/utils.py | caktus/django-sticky-uploads | a57539655ba991f63f31f0a5c98d790947bcd1b8 | [
"BSD-3-Clause"
] | 6 | 2015-08-14T12:34:52.000Z | 2019-10-16T04:18:37.000Z | from __future__ import unicode_literals
import os
from django.core import signing
from django.core.exceptions import ImproperlyConfigured
from django.core.files.storage import get_storage_class
from django.utils.functional import LazyObject
def serialize_upload(name, storage, url):
"""
Serialize uploaded fi... | 29.147541 | 79 | 0.654668 | 204 | 1,778 | 5.534314 | 0.343137 | 0.074402 | 0.037201 | 0.044287 | 0.044287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251969 | 1,778 | 60 | 80 | 29.633333 | 0.848872 | 0.186164 | 0 | 0.153846 | 0 | 0 | 0.045161 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.076923 | false | 0.025641 | 0.179487 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b252bb8863e2cde9dc1c8cf3fba5014be866dbed | 5,607 | py | Python | gnuradio-3.7.13.4/gr-qtgui/apps/plot_spectrogram_base.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | 1 | 2021-03-09T07:32:37.000Z | 2021-03-09T07:32:37.000Z | gnuradio-3.7.13.4/gr-qtgui/apps/plot_spectrogram_base.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | gnuradio-3.7.13.4/gr-qtgui/apps/plot_spectrogram_base.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# ... | 32.789474 | 97 | 0.619939 | 770 | 5,607 | 4.301299 | 0.303896 | 0.028986 | 0.033213 | 0.023551 | 0.224336 | 0.181763 | 0.152174 | 0.152174 | 0.128019 | 0.128019 | 0 | 0.015729 | 0.2743 | 5,607 | 170 | 98 | 32.982353 | 0.798231 | 0.147316 | 0 | 0.188034 | 0 | 0 | 0.109523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.128205 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b2587d1aad26d95bdbf9bbeb64895092e8199eaa | 1,467 | py | Python | alipay/aop/api/domain/TaxReceiptOnceInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/TaxReceiptOnceInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/TaxReceiptOnceInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class TaxReceiptOnceInfo(object):
def __init__(self):
self._cognizant_mobile = None
self._ep_tax_id = None
@property
def cognizant_mobile(self):
return self._cognizant_... | 26.196429 | 83 | 0.611452 | 189 | 1,467 | 4.391534 | 0.222222 | 0.271084 | 0.126506 | 0.092771 | 0.291566 | 0.248193 | 0.1 | 0.057831 | 0 | 0 | 0 | 0.000967 | 0.29516 | 1,467 | 55 | 84 | 26.672727 | 0.801741 | 0.02863 | 0 | 0.097561 | 0 | 0 | 0.090077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.04878 | 0.04878 | 0.365854 | 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 |
b259ceb8b82845e18e8b6159d8f807dea2a352fc | 1,478 | py | Python | scripts/rgb2labels.py | theRealSuperMario/supermariopy | 9fff8275278ff26caff50da86109c25d276bb30b | [
"MIT"
] | 36 | 2019-07-14T16:10:37.000Z | 2022-03-29T10:11:03.000Z | scripts/rgb2labels.py | theRealSuperMario/supermariopy | 9fff8275278ff26caff50da86109c25d276bb30b | [
"MIT"
] | 3 | 2019-10-09T15:11:13.000Z | 2021-07-31T02:17:43.000Z | scripts/rgb2labels.py | theRealSuperMario/supermariopy | 9fff8275278ff26caff50da86109c25d276bb30b | [
"MIT"
] | 14 | 2019-08-29T14:11:54.000Z | 2022-03-06T13:41:56.000Z | import numpy as np
from matplotlib import pyplot as plt
"""
https://stackoverflow.com/questions/42750910/convert-rgb-image-to-index-image/62980021#62980021
convert semantic labels from RGB coding to index coding
Steps:
1. define COLORS (see below)
2. hash colors
3. run rgb2index(segmentation_rgb)
see example below
T... | 28.980392 | 95 | 0.696888 | 236 | 1,478 | 4.279661 | 0.385593 | 0.021782 | 0.020792 | 0.015842 | 0.039604 | 0.039604 | 0.039604 | 0.039604 | 0.039604 | 0.039604 | 0 | 0.07496 | 0.151556 | 1,478 | 50 | 96 | 29.56 | 0.730463 | 0.038566 | 0 | 0 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.16 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b2600eaa1ce4c305aedb5991b27f9834888e24d3 | 512 | py | Python | setup.py | drrobotk/multilateral_index_calc | 7b1cf2f178e4407167c90ed64743f9357da1d4f0 | [
"MIT"
] | 3 | 2021-11-27T00:00:56.000Z | 2022-02-14T09:58:33.000Z | setup.py | drrobotk/multilateral_index_calc | 7b1cf2f178e4407167c90ed64743f9357da1d4f0 | [
"MIT"
] | null | null | null | setup.py | drrobotk/multilateral_index_calc | 7b1cf2f178e4407167c90ed64743f9357da1d4f0 | [
"MIT"
] | null | null | null | from gettext import find
from setuptools import setup, find_packages
setup(
name='PriceIndexCalc',
version='0.1-dev9',
description='Price Index Calculator using bilateral and multilateral methods',
author='Dr. Usman Kayani',
url='https://github.com/drrobotk/PriceIndexCalc',
author_email='usman.... | 32 | 82 | 0.703125 | 62 | 512 | 5.693548 | 0.790323 | 0.067989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006912 | 0.152344 | 512 | 16 | 83 | 32 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.37232 | 0.044834 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2604e0c3e4e10fe06252e6006860caca1b86c21 | 480 | py | Python | cryptofeed_werks/bigquery_storage/constants.py | globophobe/crypto-tick-data | 7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4 | [
"MIT"
] | null | null | null | cryptofeed_werks/bigquery_storage/constants.py | globophobe/crypto-tick-data | 7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4 | [
"MIT"
] | null | null | null | cryptofeed_werks/bigquery_storage/constants.py | globophobe/crypto-tick-data | 7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4 | [
"MIT"
] | null | null | null | import os
try:
from google.cloud import bigquery # noqa
except ImportError:
BIGQUERY = False
else:
BIGQUERY = True
GOOGLE_APPLICATION_CREDENTIALS = "GOOGLE_APPLICATION_CREDENTIALS"
BIGQUERY_LOCATION = "BIGQUERY_LOCATION"
BIGQUERY_DATASET = "BIGQUERY_DATASET"
def use_bigquery():
return (
B... | 20 | 65 | 0.729167 | 53 | 480 | 6.358491 | 0.433962 | 0.151335 | 0.249258 | 0.089021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204167 | 480 | 23 | 66 | 20.869565 | 0.882199 | 0.008333 | 0 | 0 | 0 | 0 | 0.132911 | 0.063291 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0.058824 | 0.294118 | 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 |
b264318ef812ccb5494cb1fbb53e013385e1b79c | 970 | py | Python | leetcode/87. Scramble String.py | CSU-FulChou/IOS_er | 4286677854c4afe61f745bfd087527e369402dc7 | [
"MIT"
] | 2 | 2020-02-10T15:20:03.000Z | 2020-02-23T07:23:57.000Z | leetcode/87. Scramble String.py | CSU-FulChou/IOS_er | 4286677854c4afe61f745bfd087527e369402dc7 | [
"MIT"
] | null | null | null | leetcode/87. Scramble String.py | CSU-FulChou/IOS_er | 4286677854c4afe61f745bfd087527e369402dc7 | [
"MIT"
] | 1 | 2020-02-24T04:46:44.000Z | 2020-02-24T04:46:44.000Z | # 2021.04.16 hard:
class Solution:
def isScramble(self, s1: str, s2: str) -> bool:
'''
dp 问题:
1. 子字符串应该一样长. 很简单已经保证了
子字符串一样,那么久直接返回 True
2. 子字符串中 存在的字母应该一样, 同一个字母的数量应该一样多 Count()
两种分割方式,交换 或者 不交换不断的迭代下去:
分割的两种方式要写对!
'''
@cache
def df... | 33.448276 | 98 | 0.5 | 121 | 970 | 4 | 0.454545 | 0.072314 | 0.068182 | 0.070248 | 0.157025 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0.06734 | 0.387629 | 970 | 29 | 99 | 33.448276 | 0.747475 | 0.201031 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b264888cc9f1eb496c9df03db998069fffdf3f86 | 3,079 | py | Python | packaging/setup/plugins/ovirt-engine-setup/all-in-one/super_user.py | SunOfShine/ovirt-engine | 7684597e2d38ff854e629e5cbcbb9f21888cb498 | [
"Apache-2.0"
] | 1 | 2021-02-02T05:38:35.000Z | 2021-02-02T05:38:35.000Z | packaging/setup/plugins/ovirt-engine-setup/all-in-one/super_user.py | SunOfShine/ovirt-engine | 7684597e2d38ff854e629e5cbcbb9f21888cb498 | [
"Apache-2.0"
] | null | null | null | packaging/setup/plugins/ovirt-engine-setup/all-in-one/super_user.py | SunOfShine/ovirt-engine | 7684597e2d38ff854e629e5cbcbb9f21888cb498 | [
"Apache-2.0"
] | null | null | null | #
# ovirt-engine-setup -- ovirt engine setup
# Copyright (C) 2013 Red Hat, Inc.
#
# 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 r... | 28.775701 | 76 | 0.616759 | 329 | 3,079 | 5.665654 | 0.468085 | 0.064378 | 0.053648 | 0.075107 | 0.162017 | 0.13412 | 0.052575 | 0.052575 | 0 | 0 | 0 | 0.004645 | 0.300747 | 3,079 | 106 | 77 | 29.04717 | 0.861124 | 0.226697 | 0 | 0.089552 | 0 | 0 | 0.053373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0.238806 | 0.089552 | 0 | 0.179104 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b26b3c9bc4d2fbf8cbbb44a23143622070070eef | 316 | py | Python | create.py | devanshsharma22/ONE | 27450ff2e9e07164527043a161274495ef3a1178 | [
"CC-BY-3.0"
] | null | null | null | create.py | devanshsharma22/ONE | 27450ff2e9e07164527043a161274495ef3a1178 | [
"CC-BY-3.0"
] | null | null | null | create.py | devanshsharma22/ONE | 27450ff2e9e07164527043a161274495ef3a1178 | [
"CC-BY-3.0"
] | null | null | null | from flask import Flask
from models import *
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL')
app.config['SQLALCHEMY_TRACK_MODIFICATIONS']=False
db.init_app(app)
def main():
db.create_all()
if __name__ == "__main__":
with app.app_context():
main()
| 15.8 | 70 | 0.708861 | 43 | 316 | 4.744186 | 0.604651 | 0.088235 | 0.186275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158228 | 316 | 19 | 71 | 16.631579 | 0.766917 | 0 | 0 | 0 | 0 | 0 | 0.231013 | 0.167722 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 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 |
b26beef2d3bbff1212787d1023080b96af3af78b | 1,160 | py | Python | jmetex/main.py | innovocloud/jmetex | 5e7c4d9695174fe2f5c3186b8bbb41857e9715df | [
"Apache-2.0"
] | 2 | 2018-02-19T14:21:31.000Z | 2018-03-15T03:16:05.000Z | jmetex/main.py | innovocloud/jmetex | 5e7c4d9695174fe2f5c3186b8bbb41857e9715df | [
"Apache-2.0"
] | null | null | null | jmetex/main.py | innovocloud/jmetex | 5e7c4d9695174fe2f5c3186b8bbb41857e9715df | [
"Apache-2.0"
] | null | null | null | import sys
import time
import argparse
from prometheus_client import start_http_server, Metric, REGISTRY, Summary
from .interfacecollector import InterfaceCollector
from .opticalcollector import OpticalCollector
def main():
parser = argparse.ArgumentParser(description='JunOS API to Prometheus exporter')
parse... | 40 | 96 | 0.675862 | 134 | 1,160 | 5.746269 | 0.365672 | 0.058442 | 0.11039 | 0.098701 | 0.241558 | 0.181818 | 0.109091 | 0.109091 | 0.109091 | 0 | 0 | 0.0011 | 0.216379 | 1,160 | 28 | 97 | 41.428571 | 0.845985 | 0 | 0 | 0 | 0 | 0 | 0.133621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.166667 | 0.25 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2769b5ec360ec5dc6f9171e3632b3ef3f3dc0c8 | 570 | py | Python | python/ray/rllib/models/tf/tf_modelv2.py | alex-petrenko/ray | dfc94ce7bcd5d9d008822efdeec17c3f6bb9c606 | [
"Apache-2.0"
] | 1 | 2020-09-27T08:48:11.000Z | 2020-09-27T08:48:11.000Z | python/ray/rllib/models/tf/tf_modelv2.py | JunpingDu/ray | 214f09d969480279930994cabbcc2a75535cc6ca | [
"Apache-2.0"
] | 4 | 2019-03-04T13:03:24.000Z | 2019-06-06T11:25:07.000Z | python/ray/rllib/models/tf/tf_modelv2.py | JunpingDu/ray | 214f09d969480279930994cabbcc2a75535cc6ca | [
"Apache-2.0"
] | 1 | 2020-04-30T09:06:20.000Z | 2020-04-30T09:06:20.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from ray.rllib.models.modelv2 import ModelV2
from ray.rllib.utils import try_import_tf
tf = try_import_tf()
class TFModelV2(ModelV2):
"""TF version of ModelV2."""
def __init__(self, obs_space, actio... | 23.75 | 74 | 0.642105 | 66 | 570 | 5.030303 | 0.454545 | 0.090361 | 0.144578 | 0.096386 | 0.313253 | 0.313253 | 0.313253 | 0.313253 | 0.313253 | 0.313253 | 0 | 0.014851 | 0.291228 | 570 | 23 | 75 | 24.782609 | 0.806931 | 0.038596 | 0 | 0 | 0 | 0 | 0.00369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.470588 | 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 |
b27e60d49c438918ac9f9898312b3fc091fc3cf6 | 35,738 | py | Python | src/proto/runtime_pb2_grpc.py | layotto/python-sdk | dac5833ebbfe16d6e5b6322041ca65431096f14b | [
"Apache-2.0"
] | null | null | null | src/proto/runtime_pb2_grpc.py | layotto/python-sdk | dac5833ebbfe16d6e5b6322041ca65431096f14b | [
"Apache-2.0"
] | 1 | 2022-02-23T14:37:01.000Z | 2022-02-23T14:37:01.000Z | src/proto/runtime_pb2_grpc.py | layotto/python-sdk | dac5833ebbfe16d6e5b6322041ca65431096f14b | [
"Apache-2.0"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
import runtime_pb2 as runtime__pb2
class RuntimeStub(object):
"""Missing associ... | 45.352792 | 129 | 0.651603 | 3,133 | 35,738 | 7.162464 | 0.072774 | 0.047683 | 0.032086 | 0.036096 | 0.68525 | 0.626961 | 0.59844 | 0.562611 | 0.520544 | 0.515463 | 0 | 0.006971 | 0.273462 | 35,738 | 787 | 130 | 45.410419 | 0.857269 | 0.049387 | 0 | 0.56315 | 1 | 0 | 0.094387 | 0.058025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068351 | false | 0 | 0.004458 | 0.032689 | 0.109955 | 0 | 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 |
b2842ba57b4666045fc4763a33435c2f652b5394 | 5,668 | py | Python | uroboros-diversification/src/diversification/bb_branchfunc_diversify.py | whj0401/RLOBF | 2755eb5e21e4f2445a7791a1159962e80a5739ca | [
"MIT"
] | 3 | 2020-12-11T06:15:17.000Z | 2021-04-24T07:09:03.000Z | uroboros-diversification/src/diversification/bb_branchfunc_diversify.py | whj0401/RLOBF | 2755eb5e21e4f2445a7791a1159962e80a5739ca | [
"MIT"
] | null | null | null | uroboros-diversification/src/diversification/bb_branchfunc_diversify.py | whj0401/RLOBF | 2755eb5e21e4f2445a7791a1159962e80a5739ca | [
"MIT"
] | 2 | 2021-03-10T17:46:33.000Z | 2021-03-31T08:00:27.000Z | from analysis.visit import *
from disasm.Types import *
from utils.ail_utils import *
from utils.pp_print import *
from junkcodes import get_junk_codes
obfs_proportion = 0.015
class bb_branchfunc_diversify(ailVisitor):
def __init__(self, funcs, fb_tbl, cfg_tbl):
ailVisitor.__init__(self)
self.fu... | 46.459016 | 128 | 0.534227 | 673 | 5,668 | 4.228826 | 0.219911 | 0.034434 | 0.035137 | 0.039353 | 0.267393 | 0.227337 | 0.185172 | 0.145819 | 0.119115 | 0.119115 | 0 | 0.011053 | 0.361503 | 5,668 | 121 | 129 | 46.842975 | 0.775352 | 0.085392 | 0 | 0.0625 | 0 | 0 | 0.046544 | 0.004231 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052083 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b286d23fc369a16764ed55694919ccd382975d06 | 138 | py | Python | main1.py | dubblin27/bible-of-algo | 4f893ba0d32d8d169abf4c4485f105cc8169cdbb | [
"MIT"
] | null | null | null | main1.py | dubblin27/bible-of-algo | 4f893ba0d32d8d169abf4c4485f105cc8169cdbb | [
"MIT"
] | null | null | null | main1.py | dubblin27/bible-of-algo | 4f893ba0d32d8d169abf4c4485f105cc8169cdbb | [
"MIT"
] | null | null | null | su = 0
a = [3,5,6,2,7,1]
print(sum(a))
x, y = input("Enter a two value: ").split()
x = int(x)
y = int(y)
su = a[y] + sum(a[:y])
print(su) | 17.25 | 44 | 0.514493 | 34 | 138 | 2.088235 | 0.558824 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063063 | 0.195652 | 138 | 8 | 45 | 17.25 | 0.576577 | 0 | 0 | 0 | 0 | 0 | 0.136691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b292be09587a07ede608a3607cc6852e3db17188 | 925 | py | Python | tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/plugin/Platform_plugin/PlatformWeTest/__init__.py | Passer-D/GameAISDK | a089330a30b7bfe1f6442258a12d8c0086240606 | [
"Apache-2.0"
] | 1,210 | 2020-08-18T07:57:36.000Z | 2022-03-31T15:06:05.000Z | tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/plugin/Platform_plugin/PlatformWeTest/__init__.py | guokaiSama/GameAISDK | a089330a30b7bfe1f6442258a12d8c0086240606 | [
"Apache-2.0"
] | 37 | 2020-08-24T02:48:38.000Z | 2022-01-30T06:41:52.000Z | tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/plugin/Platform_plugin/PlatformWeTest/__init__.py | guokaiSama/GameAISDK | a089330a30b7bfe1f6442258a12d8c0086240606 | [
"Apache-2.0"
] | 275 | 2020-08-18T08:35:16.000Z | 2022-03-31T15:06:07.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making GameAISDK available.
This source code file is licensed under the GNU General Public License Version 3.
For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package.
Copyright... | 35.576923 | 111 | 0.776216 | 125 | 925 | 5.584 | 0.584 | 0.045845 | 0.040115 | 0.077364 | 0.226361 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.143784 | 925 | 25 | 112 | 37 | 0.866162 | 0.412973 | 0 | 0 | 0 | 0 | 0.061682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b293b0671b5147e6e833e70a808c61e5033f825f | 579 | py | Python | python/codingbat/src/sum_double.py | christopher-burke/warmups | 140c96ada87ec5e9faa4622504ddee18840dce4a | [
"MIT"
] | null | null | null | python/codingbat/src/sum_double.py | christopher-burke/warmups | 140c96ada87ec5e9faa4622504ddee18840dce4a | [
"MIT"
] | 2 | 2022-03-10T03:49:14.000Z | 2022-03-14T00:49:54.000Z | python/codingbat/src/sum_double.py | christopher-burke/warmups | 140c96ada87ec5e9faa4622504ddee18840dce4a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""sum_double
Given two int values, return their sum.
Unless the two values are the same, then return double their sum.
sum_double(1, 2) → 3
sum_double(3, 2) → 5
sum_double(2, 2) → 8
source: https://codingbat.com/prob/p141905
"""
def sum_double(a: int, b: int) -> int:
"""Sum Double.
... | 18.09375 | 65 | 0.618307 | 99 | 579 | 3.484848 | 0.383838 | 0.234783 | 0.121739 | 0.063768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.240069 | 579 | 31 | 66 | 18.677419 | 0.722727 | 0.53886 | 0 | 0 | 0 | 0 | 0.03252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.333333 | 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 |
b293f0ceac4f743a52151b0799d4e433f9e36af9 | 366 | py | Python | src/draw.py | mattdesl/inkyphat-mods | 2867161e66ffce87b75170e081f5ab481ce5e6b1 | [
"MIT"
] | 7 | 2020-04-25T09:24:18.000Z | 2022-01-02T03:24:24.000Z | src/draw.py | mattdesl/inkyphat-mods | 2867161e66ffce87b75170e081f5ab481ce5e6b1 | [
"MIT"
] | null | null | null | src/draw.py | mattdesl/inkyphat-mods | 2867161e66ffce87b75170e081f5ab481ce5e6b1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
from PIL import Image
from inky import InkyPHAT
print("""Inky pHAT/wHAT: Logo
Displays the Inky pHAT/wHAT logo.
""")
type = "phat"
colour = "black"
inky_display = InkyPHAT(colour)
inky_display.set_border(inky_display.BLACK)
img = Image.open("assets/InkypHAT-212x104-bw.png")
i... | 18.3 | 50 | 0.762295 | 56 | 366 | 4.857143 | 0.535714 | 0.202206 | 0.088235 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018462 | 0.112022 | 366 | 20 | 51 | 18.3 | 0.818462 | 0.054645 | 0 | 0 | 0 | 0 | 0.271676 | 0.086705 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0.076923 | 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 |
b296a32574784e1bd7a3f60cbb896711ff7dd880 | 1,230 | py | Python | newsapp/tests.py | Esther-Anyona/four-one-one | 6a5e019b35710941a669c1b49e993b683c99d615 | [
"MIT"
] | null | null | null | newsapp/tests.py | Esther-Anyona/four-one-one | 6a5e019b35710941a669c1b49e993b683c99d615 | [
"MIT"
] | null | null | null | newsapp/tests.py | Esther-Anyona/four-one-one | 6a5e019b35710941a669c1b49e993b683c99d615 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import *
from django.contrib.auth.models import User
# Create your tests here.
user = User.objects.get(id=1)
profile = Profile.objects.get(id=1)
neighbourhood = Neighbourhood.objects.get(id=1)
class TestBusiness(TestCase):
def setUp(self):
self.business=Busin... | 30 | 170 | 0.702439 | 148 | 1,230 | 5.736486 | 0.324324 | 0.127208 | 0.075383 | 0.045936 | 0.288575 | 0.288575 | 0.167256 | 0.167256 | 0.167256 | 0.167256 | 0 | 0.005964 | 0.182114 | 1,230 | 40 | 171 | 30.75 | 0.837972 | 0.06748 | 0 | 0.153846 | 0 | 0 | 0.041084 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0 | 0.115385 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b296bd14330ba64af65527855f690dd49d0a2709 | 4,620 | py | Python | ssdlite/load_caffe_weights.py | kkrpawkal/MobileNetv2-SSDLite | b434ed07b46d6e7f733ec97e180b57c8db30cae3 | [
"MIT"
] | null | null | null | ssdlite/load_caffe_weights.py | kkrpawkal/MobileNetv2-SSDLite | b434ed07b46d6e7f733ec97e180b57c8db30cae3 | [
"MIT"
] | null | null | null | ssdlite/load_caffe_weights.py | kkrpawkal/MobileNetv2-SSDLite | b434ed07b46d6e7f733ec97e180b57c8db30cae3 | [
"MIT"
] | null | null | null | import numpy as np
import sys,os
caffe_root = '/home/yaochuanqi/work/ssd/caffe/'
sys.path.insert(0, caffe_root + 'python')
import caffe
deploy_proto = 'deploy.prototxt'
save_model = 'deploy.caffemodel'
weights_dir = 'output'
box_layers = ['conv_13/expand', 'Conv_1', 'layer_19_2_2', 'layer_19_2_3', 'layer_19... | 54.352941 | 124 | 0.541775 | 548 | 4,620 | 4.375912 | 0.169708 | 0.108841 | 0.140117 | 0.140117 | 0.672644 | 0.610926 | 0.578816 | 0.491243 | 0.477064 | 0.457048 | 0 | 0.019059 | 0.295887 | 4,620 | 84 | 125 | 55 | 0.718106 | 0 | 0 | 0.381579 | 0 | 0 | 0.148733 | 0.028578 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039474 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b29b61190657129eadf2448fe993cb4e944db000 | 1,096 | py | Python | t/unit/utils/test_div.py | kaiix/kombu | 580b5219cc50cad278c4b664d0e0f85e37a5e9ea | [
"BSD-3-Clause"
] | 1,920 | 2015-01-03T15:43:23.000Z | 2022-03-30T19:30:35.000Z | t/unit/utils/test_div.py | kaiix/kombu | 580b5219cc50cad278c4b664d0e0f85e37a5e9ea | [
"BSD-3-Clause"
] | 949 | 2015-01-02T18:56:00.000Z | 2022-03-31T23:14:59.000Z | t/unit/utils/test_div.py | kaiix/kombu | 580b5219cc50cad278c4b664d0e0f85e37a5e9ea | [
"BSD-3-Clause"
] | 833 | 2015-01-07T23:56:35.000Z | 2022-03-31T22:04:11.000Z | import pickle
from io import BytesIO, StringIO
from kombu.utils.div import emergency_dump_state
class MyStringIO(StringIO):
def close(self):
pass
class MyBytesIO(BytesIO):
def close(self):
pass
class test_emergency_dump_state:
def test_dump(self, stdouts):
fh = MyBytesIO()
... | 23.319149 | 69 | 0.595803 | 124 | 1,096 | 5.129032 | 0.346774 | 0.081761 | 0.113208 | 0.050314 | 0.355346 | 0.289308 | 0.289308 | 0.289308 | 0.132075 | 0.132075 | 0 | 0 | 0.29562 | 1,096 | 46 | 70 | 23.826087 | 0.823834 | 0 | 0 | 0.363636 | 0 | 0 | 0.024635 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 1 | 0.151515 | false | 0.060606 | 0.090909 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b29e142efe612167f93b68a27b4c24715a4da2ff | 1,058 | py | Python | zkpytb/json.py | zertrin/zkpytb | 066662d9c7bd233f977302cb11cf888a2a1828d2 | [
"MIT"
] | 2 | 2021-07-17T19:30:17.000Z | 2022-02-14T04:55:46.000Z | zkpytb/json.py | zertrin/zkpytb | 066662d9c7bd233f977302cb11cf888a2a1828d2 | [
"MIT"
] | null | null | null | zkpytb/json.py | zertrin/zkpytb | 066662d9c7bd233f977302cb11cf888a2a1828d2 | [
"MIT"
] | null | null | null | """
Helper functions related to json
Author: Marc Gallet
"""
import datetime
import decimal
import json
import uuid
import pathlib
class JSONEncoder(json.JSONEncoder):
"""
A custom JSONEncoder that can handle a bit more data types than the one from stdlib.
"""
def default(self, o):
# early ... | 27.128205 | 88 | 0.618147 | 127 | 1,058 | 5.141732 | 0.480315 | 0.091884 | 0.099541 | 0.085758 | 0.101072 | 0.101072 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29206 | 1,058 | 38 | 89 | 27.842105 | 0.871829 | 0.258979 | 0 | 0.181818 | 0 | 0 | 0.003958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.045455 | 0.227273 | 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 |
b29e7d32ca4c3f659315bd72acd899c4542a2363 | 1,960 | py | Python | back_end/consts.py | DoctorChe/crash_map | e540ab8a45f67ff78c9993ac3eb1b413d4786cd9 | [
"MIT"
] | 1 | 2019-04-04T21:55:24.000Z | 2019-04-04T21:55:24.000Z | back_end/consts.py | DoctorChe/crash_map | e540ab8a45f67ff78c9993ac3eb1b413d4786cd9 | [
"MIT"
] | 2 | 2019-04-14T10:11:25.000Z | 2019-04-25T20:49:54.000Z | back_end/consts.py | DoctorChe/crash_map | e540ab8a45f67ff78c9993ac3eb1b413d4786cd9 | [
"MIT"
] | null | null | null | # encoding: utf-8
# input data constants
MARI_EL = 'Республика Марий Эл'
YOSHKAR_OLA = 'Республика Марий Эл, Йошкар-Ола'
VOLZHSK = 'Республика Марий Эл, Волжск'
VOLZHSK_ADM = 'Республика Марий Эл, Волжский район'
MOUNTIN = 'Республика Марий Эл, Горномарийский район'
ZVENIGOVO = 'Республика Марий Эл, Звениговский райо... | 26.849315 | 175 | 0.758673 | 261 | 1,960 | 5.563218 | 0.51341 | 0.17562 | 0.199036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061788 | 0.14949 | 1,960 | 73 | 176 | 26.849315 | 0.809238 | 0.048469 | 0 | 0 | 0 | 0 | 0.419355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
b2a18a1d5893e676f4cfbf5555c659a91725ab53 | 52,309 | py | Python | tagger-algo.py | li992/MAT | a5fb87b2d1ef667e5eb4a1c4e87caae6f1f75292 | [
"Apache-2.0"
] | null | null | null | tagger-algo.py | li992/MAT | a5fb87b2d1ef667e5eb4a1c4e87caae6f1f75292 | [
"Apache-2.0"
] | null | null | null | tagger-algo.py | li992/MAT | a5fb87b2d1ef667e5eb4a1c4e87caae6f1f75292 | [
"Apache-2.0"
] | null | null | null | import glob,os,stanza,argparse
from datetime import datetime
# route initiation
directory_path = os.getcwd()
#stanford tagger initiation
nlp = stanza.Pipeline('en')
dimDict ={}
# type specifiers
have = ["have","has","'ve","had","having","hath"]
do = ["do","does","did","doing","done"]
wp = ["who","whom","whose","whic... | 71.853022 | 3,008 | 0.580569 | 7,132 | 52,309 | 4.156758 | 0.179473 | 0.080955 | 0.083991 | 0.047561 | 0.636781 | 0.588646 | 0.548674 | 0.496391 | 0.468529 | 0.425218 | 0 | 0.011652 | 0.225602 | 52,309 | 728 | 3,009 | 71.853022 | 0.720203 | 0.024088 | 0 | 0.435811 | 0 | 0.003378 | 0.20742 | 0.000941 | 0 | 0 | 0 | 0 | 0.001689 | 1 | 0.013514 | false | 0.005068 | 0.003378 | 0 | 0.037162 | 0.030405 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2aacb8c58e5a1abfc8fe218bf0ba965384b2044 | 1,032 | py | Python | library/real/display_real.py | console-beaver/MIT-Racecar-cbeast | f7f9c156e7072da7acc680ae1ad1de344253ae05 | [
"MIT"
] | null | null | null | library/real/display_real.py | console-beaver/MIT-Racecar-cbeast | f7f9c156e7072da7acc680ae1ad1de344253ae05 | [
"MIT"
] | null | null | null | library/real/display_real.py | console-beaver/MIT-Racecar-cbeast | f7f9c156e7072da7acc680ae1ad1de344253ae05 | [
"MIT"
] | null | null | null | """
Copyright Harvey Mudd College
MIT License
Spring 2020
Contains the Display module of the racecar_core library
"""
import cv2 as cv
import os
from nptyping import NDArray
from display import Display
class DisplayReal(Display):
__WINDOW_NAME: str = "RACECAR display window"
__DISPLAY: str = ":1"
def _... | 23.454545 | 78 | 0.587209 | 124 | 1,032 | 4.58871 | 0.491935 | 0.135325 | 0.112478 | 0.094903 | 0.084359 | 0.084359 | 0 | 0 | 0 | 0 | 0 | 0.012748 | 0.315891 | 1,032 | 43 | 79 | 24 | 0.793201 | 0.106589 | 0 | 0.275862 | 0 | 0 | 0.126915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.068966 | 0.137931 | 0 | 0.344828 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2adb9d7006450ffeda3b214aef1de0a2d913357 | 1,335 | py | Python | test_default.py | dukedhx/tokenflex-reporting-python-script | f837b4e4a1cf388620da94abbaddab6bcabd51a8 | [
"MIT"
] | 4 | 2018-12-17T09:09:44.000Z | 2020-12-15T16:35:47.000Z | test_default.py | dukedhx/tokenflex-reporting-python-script | f837b4e4a1cf388620da94abbaddab6bcabd51a8 | [
"MIT"
] | null | null | null | test_default.py | dukedhx/tokenflex-reporting-python-script | f837b4e4a1cf388620da94abbaddab6bcabd51a8 | [
"MIT"
] | 4 | 2019-09-01T10:08:32.000Z | 2021-01-09T10:12:46.000Z | #####################################################################
## Copyright (c) Autodesk, Inc. All rights reserved
## Written by Forge Partner Development
##
## Permission to use, copy, modify, and distribute this software in
## object code form for any purpose and without fee is hereby granted,
## provided that... | 32.560976 | 70 | 0.691386 | 153 | 1,335 | 6.013072 | 0.647059 | 0.023913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00175 | 0.14382 | 1,335 | 40 | 71 | 33.375 | 0.80315 | 0.513858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.3125 | 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 |
a22fe2112341437f4d8c36db1b3319ad00230552 | 2,274 | py | Python | fuzzinator/tracker/github_tracker.py | akosthekiss/fuzzinator | 194e199bb0efea26b857ad05f381f72e7a9b8f66 | [
"BSD-3-Clause"
] | null | null | null | fuzzinator/tracker/github_tracker.py | akosthekiss/fuzzinator | 194e199bb0efea26b857ad05f381f72e7a9b8f66 | [
"BSD-3-Clause"
] | null | null | null | fuzzinator/tracker/github_tracker.py | akosthekiss/fuzzinator | 194e199bb0efea26b857ad05f381f72e7a9b8f66 | [
"BSD-3-Clause"
] | 1 | 2018-06-28T05:21:21.000Z | 2018-06-28T05:21:21.000Z | # Copyright (c) 2016-2022 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
# This file may not be copied, modified, or distributed except
# according to those terms.
try:
# FIXME: very nasty, but a recent PyGithub version began ... | 34.454545 | 145 | 0.670624 | 282 | 2,274 | 5.347518 | 0.531915 | 0.023873 | 0.013263 | 0.025199 | 0.088859 | 0.054377 | 0 | 0 | 0 | 0 | 0 | 0.028752 | 0.235268 | 2,274 | 65 | 146 | 34.984615 | 0.838413 | 0.505717 | 0 | 0.227273 | 0 | 0 | 0.093422 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.136364 | false | 0.045455 | 0.136364 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2315dd43508aee4e316bc2ccbff15322163a590 | 2,624 | py | Python | qmdz_const.py | cygnushan/measurement | 644e8b698faf50dcc86d88834675d6adf1281b10 | [
"MIT"
] | 1 | 2022-03-18T18:38:02.000Z | 2022-03-18T18:38:02.000Z | qmdz_const.py | cygnushan/measurement | 644e8b698faf50dcc86d88834675d6adf1281b10 | [
"MIT"
] | null | null | null | qmdz_const.py | cygnushan/measurement | 644e8b698faf50dcc86d88834675d6adf1281b10 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
import os
from init_op import read_config
# ROOT_PATH = os.path.split(os.path.realpath(__file__))[0]
if getattr(sys, 'frozen', None):
ROOT_DIR = os.path.dirname(sys.executable)
else:
ROOT_DIR = os.path.dirname(__file__)
VI_CONF_PATH = ROOT_DIR + "\conf\VI_CONF.ini"
ST_CON... | 24.523364 | 92 | 0.596418 | 497 | 2,624 | 2.965795 | 0.438632 | 0.017639 | 0.014247 | 0.013569 | 0.108548 | 0.029851 | 0.029851 | 0.024423 | 0 | 0 | 0 | 0.193802 | 0.176067 | 2,624 | 106 | 93 | 24.754717 | 0.487974 | 0.075076 | 0 | 0 | 0 | 0 | 0.170873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.042254 | 0 | 0.070423 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a232ee55bbdd0227f3c92c01f62af655cba96907 | 2,088 | py | Python | project/repository/user.py | tobiasaditya/fastapi-blog | 0f50f4261755f926ce9e951db8237a5f38384dcb | [
"MIT"
] | null | null | null | project/repository/user.py | tobiasaditya/fastapi-blog | 0f50f4261755f926ce9e951db8237a5f38384dcb | [
"MIT"
] | null | null | null | project/repository/user.py | tobiasaditya/fastapi-blog | 0f50f4261755f926ce9e951db8237a5f38384dcb | [
"MIT"
] | null | null | null | from typing import List
from fastapi import APIRouter
from fastapi.params import Depends
from fastapi import HTTPException, status
from sqlalchemy.orm.session import Session
from project import schema, models, database, hashing
router = APIRouter(
prefix="/user",
tags=['Users']
)
@router.post('/new')
def crea... | 33.142857 | 102 | 0.724617 | 291 | 2,088 | 5.037801 | 0.24055 | 0.092087 | 0.05457 | 0.081855 | 0.415416 | 0.38131 | 0.321965 | 0.321965 | 0.321965 | 0.321965 | 0 | 0.005011 | 0.139847 | 2,088 | 62 | 103 | 33.677419 | 0.811247 | 0.414272 | 0 | 0 | 0 | 0 | 0.040698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.071429 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a248fa91871a4d64d360baf9357e2574f6ec13d4 | 218 | py | Python | Ports.py | bullgom/pysnn2 | dad5ae26b029afd5c5bf76fe141249b0f7b7a36c | [
"MIT"
] | null | null | null | Ports.py | bullgom/pysnn2 | dad5ae26b029afd5c5bf76fe141249b0f7b7a36c | [
"MIT"
] | null | null | null | Ports.py | bullgom/pysnn2 | dad5ae26b029afd5c5bf76fe141249b0f7b7a36c | [
"MIT"
] | null | null | null | AP = "AP"
BP = "BP"
ARRIVE = "ARRIVE"
NEUROMODULATORS = "NEUROMODULATORS"
TARGET = "TARGET"
OBSERVE = "OBSERVE"
SET_FREQUENCY = "SET_FREQUENCY"
DEACTIVATE = "DEACTIVATE"
ENCODE_INFORMATION = "ENCODE_INFORMATION"
| 13.625 | 41 | 0.724771 | 22 | 218 | 7 | 0.5 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151376 | 218 | 15 | 42 | 14.533333 | 0.832432 | 0 | 0 | 0 | 0 | 0 | 0.362385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
a25ad39526f4933af2df581028f2688cffce6933 | 2,117 | py | Python | pychron/fractional_loss_calculator.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 31 | 2016-03-07T02:38:17.000Z | 2022-02-14T18:23:43.000Z | pychron/fractional_loss_calculator.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 1,626 | 2015-01-07T04:52:35.000Z | 2022-03-25T19:15:59.000Z | pychron/fractional_loss_calculator.py | UIllinoisHALPychron/pychron | f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc | [
"Apache-2.0"
] | 26 | 2015-05-23T00:10:06.000Z | 2022-03-07T16:51:57.000Z | # ===============================================================================
# Copyright 2019 ross
#
# 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/LICE... | 34.145161 | 82 | 0.616911 | 269 | 2,117 | 4.684015 | 0.468401 | 0.047619 | 0.020635 | 0.025397 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011014 | 0.185168 | 2,117 | 61 | 83 | 34.704918 | 0.71942 | 0.359471 | 0 | 0.060606 | 0 | 0 | 0.054518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.151515 | 0 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a26034218c90d245fe24941c0da299f8ed7dd85c | 667 | py | Python | config/urls.py | erik-sn/tagmap | 8131fac833cf4edd20ac3497377ec2145fa75bcc | [
"MIT"
] | null | null | null | config/urls.py | erik-sn/tagmap | 8131fac833cf4edd20ac3497377ec2145fa75bcc | [
"MIT"
] | null | null | null | config/urls.py | erik-sn/tagmap | 8131fac833cf4edd20ac3497377ec2145fa75bcc | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls import url, include
from django.contrib import admin
from api.views import index
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^api/', include('api.urls')),
]
# troubleshooting tool
if settings.TOOLBAR:
import debug_toolbar
urlpatterns ... | 25.653846 | 57 | 0.706147 | 94 | 667 | 4.93617 | 0.510638 | 0.034483 | 0.096983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175412 | 667 | 25 | 58 | 26.68 | 0.843636 | 0.029985 | 0 | 0.133333 | 0 | 0 | 0.087607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a275677a628b972b4fd284b9ad40ccf51d3ac9ae | 390 | py | Python | prplatform/exercises/migrations/0002_auto_20180508_1200.py | piehei/prplatform | f3248b66019f207bb06a4681a62057e175408b3e | [
"MIT"
] | 3 | 2018-10-07T18:50:01.000Z | 2020-07-29T14:43:51.000Z | prplatform/exercises/migrations/0002_auto_20180508_1200.py | piehei/prplatform | f3248b66019f207bb06a4681a62057e175408b3e | [
"MIT"
] | 9 | 2019-08-26T11:55:00.000Z | 2020-05-04T13:56:06.000Z | prplatform/exercises/migrations/0002_auto_20180508_1200.py | piehei/prplatform | f3248b66019f207bb06a4681a62057e175408b3e | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-05-08 12:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('courses', '0013_auto_20180426_0754'),
('exercises', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='GeneralE... | 20.526316 | 47 | 0.610256 | 39 | 390 | 5.948718 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123675 | 0.274359 | 390 | 18 | 48 | 21.666667 | 0.696113 | 0.115385 | 0 | 0 | 1 | 0 | 0.244898 | 0.067055 | 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 |
a277d99ca9d564507caf9cea939d843c77111614 | 777 | py | Python | spirit/utils/paginator/infinite_paginator.py | rterehov/Spirit | 515894001da9d499852b7ebde25892d290e26c38 | [
"MIT"
] | null | null | null | spirit/utils/paginator/infinite_paginator.py | rterehov/Spirit | 515894001da9d499852b7ebde25892d290e26c38 | [
"MIT"
] | null | null | null | spirit/utils/paginator/infinite_paginator.py | rterehov/Spirit | 515894001da9d499852b7ebde25892d290e26c38 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.http import Http404
from infinite_scroll_pagination.paginator import SeekPaginator, EmptyPage
def paginate(request, query_set, lookup_field, per_page=15, page_var='value'):
# TODO: remove
page_pk = request.GET.get(page_var, None)
... | 24.28125 | 86 | 0.700129 | 103 | 777 | 5.048544 | 0.446602 | 0.061538 | 0.05 | 0.053846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019512 | 0.208494 | 777 | 31 | 87 | 25.064516 | 0.826016 | 0.057915 | 0 | 0.222222 | 0 | 0 | 0.006868 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a27856f4617a1105202515667ba0f2cfc6adb560 | 10,172 | py | Python | lib/exaproxy/configuration.py | oriolarcas/exaproxy | 5dc732760d811fd4986f83e6dd78d29228927aec | [
"BSD-2-Clause"
] | 124 | 2015-01-03T10:42:17.000Z | 2021-12-24T05:30:25.000Z | lib/exaproxy/configuration.py | oriolarcas/exaproxy | 5dc732760d811fd4986f83e6dd78d29228927aec | [
"BSD-2-Clause"
] | 14 | 2015-02-06T02:21:16.000Z | 2019-01-10T18:22:18.000Z | lib/exaproxy/configuration.py | oriolarcas/exaproxy | 5dc732760d811fd4986f83e6dd78d29228927aec | [
"BSD-2-Clause"
] | 25 | 2015-04-11T04:01:57.000Z | 2021-07-21T07:46:31.000Z | # encoding: utf-8
"""
configuration.py
Created by Thomas Mangin on 2011-11-29.
Copyright (c) 2011-2013 Exa Networks. All rights reserved.
"""
# NOTE: reloading mid-program not possible
import os
import sys
import logging
import pwd
import math
import socket
import struct
_application = None
_config = None
_defaul... | 27.197861 | 128 | 0.665946 | 1,405 | 10,172 | 4.701779 | 0.182206 | 0.029973 | 0.019679 | 0.02422 | 0.316682 | 0.267787 | 0.229034 | 0.193612 | 0.175749 | 0.132153 | 0 | 0.009437 | 0.177055 | 10,172 | 373 | 129 | 27.270777 | 0.779716 | 0.017794 | 0 | 0.273333 | 0 | 0.016667 | 0.099909 | 0.002231 | 0 | 0 | 0.001014 | 0 | 0 | 0 | null | null | 0.003333 | 0.03 | null | null | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a285b6ae623657a020499a2ec4ea9b0765d78e0b | 5,708 | py | Python | expenses/migrations/0001_initial.py | inducer/expensely | b88b830e466db63cce5acfcdb0269411c7b39358 | [
"MIT",
"Unlicense"
] | 1 | 2021-07-02T02:03:09.000Z | 2021-07-02T02:03:09.000Z | expenses/migrations/0001_initial.py | inducer/expensely | b88b830e466db63cce5acfcdb0269411c7b39358 | [
"MIT",
"Unlicense"
] | null | null | null | expenses/migrations/0001_initial.py | inducer/expensely | b88b830e466db63cce5acfcdb0269411c7b39358 | [
"MIT",
"Unlicense"
] | 2 | 2016-08-24T05:25:57.000Z | 2018-12-31T01:06:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-24 23:01
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | 43.572519 | 148 | 0.576384 | 542 | 5,708 | 5.920664 | 0.204797 | 0.032409 | 0.052353 | 0.082269 | 0.636024 | 0.618573 | 0.567778 | 0.567778 | 0.567778 | 0.549704 | 0 | 0.010051 | 0.285389 | 5,708 | 130 | 149 | 43.907692 | 0.776661 | 0.011913 | 0 | 0.54918 | 1 | 0 | 0.121164 | 0.011708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040984 | 0 | 0.07377 | 0 | 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 |
a288d8b6411de0a207c959a000823b29df69e32d | 743 | py | Python | src/server.py | awsassets/superfish | 77d93ec864de22b592bc4b69aa5ab7580aa383ab | [
"MIT"
] | null | null | null | src/server.py | awsassets/superfish | 77d93ec864de22b592bc4b69aa5ab7580aa383ab | [
"MIT"
] | null | null | null | src/server.py | awsassets/superfish | 77d93ec864de22b592bc4b69aa5ab7580aa383ab | [
"MIT"
] | null | null | null | import flask ; from flask import *
def Serve(email_form, password_form, rd, dic, host="0.0.0.0", port="8080"):
app = Flask(__name__, template_folder="../clone")
# login storage
class Login:
email = ""
pwd = ""
ip = ""
# forms
@app.get("/")
def index():
retu... | 24.766667 | 75 | 0.561238 | 92 | 743 | 4.413043 | 0.456522 | 0.014778 | 0.014778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015066 | 0.28533 | 743 | 30 | 76 | 24.766667 | 0.749529 | 0.025572 | 0 | 0 | 0 | 0 | 0.084488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.095238 | 0.047619 | 0.047619 | 0.47619 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a28aac04289f6912a4237acfbf9626f8b5f787ef | 593 | py | Python | SOURCE/test_ex01.py | PinkPhayate/Information_Access_Design | a6ae3b055e971708d67fda7129e51cd0d9b16d2f | [
"MIT"
] | null | null | null | SOURCE/test_ex01.py | PinkPhayate/Information_Access_Design | a6ae3b055e971708d67fda7129e51cd0d9b16d2f | [
"MIT"
] | null | null | null | SOURCE/test_ex01.py | PinkPhayate/Information_Access_Design | a6ae3b055e971708d67fda7129e51cd0d9b16d2f | [
"MIT"
] | null | null | null | import re,io,os.path,os
def remove_tag(str):
alldigit = re.compile(r"^<.+")
if alldigit.search(str) != None:
return False
return True
for line in open('./../text_list', "r"):
filename = './../TXT/tragedies/'+line.rstrip()
print filename
f = open("./../TXT/test_"+line.rstrip(),"w")
... | 25.782609 | 75 | 0.53457 | 77 | 593 | 4.064935 | 0.532468 | 0.095847 | 0.057508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006726 | 0.247892 | 593 | 22 | 76 | 26.954545 | 0.695067 | 0.045531 | 0 | 0 | 0 | 0 | 0.143872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a298626351e920d8afa27758b5249b92283fda64 | 308 | py | Python | package_name/__init__.py | netserf/template-python-repo | f6a2612b0e2dfd766c1287abb6e17f13fca44b93 | [
"MIT"
] | null | null | null | package_name/__init__.py | netserf/template-python-repo | f6a2612b0e2dfd766c1287abb6e17f13fca44b93 | [
"MIT"
] | null | null | null | package_name/__init__.py | netserf/template-python-repo | f6a2612b0e2dfd766c1287abb6e17f13fca44b93 | [
"MIT"
] | null | null | null | # `name` is the name of the package as used for `pip install package`
name = "package-name"
# `path` is the name of the package for `import package`
path = name.lower().replace("-", "_").replace(" ", "_")
version = "0.1.0"
author = "Author Name"
author_email = ""
description = "" # summary
license = "MIT"
| 30.8 | 69 | 0.655844 | 44 | 308 | 4.522727 | 0.522727 | 0.050251 | 0.090452 | 0.110553 | 0.211055 | 0.211055 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.172078 | 308 | 9 | 70 | 34.222222 | 0.768627 | 0.422078 | 0 | 0 | 0 | 0 | 0.201149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a29c18ce763ea0eb8b5497234efc7ee7fced0caa | 440 | py | Python | home/pi/_testing/logging-test.py | rc-bellergy/pxpi | e3d6d1d1a1f6d1fdf53341d314e7d549c8e84a68 | [
"MIT"
] | 26 | 2020-02-16T09:14:16.000Z | 2022-03-28T07:39:47.000Z | home/pi/_testing/logging-test.py | rc-bellergy/pxpi | e3d6d1d1a1f6d1fdf53341d314e7d549c8e84a68 | [
"MIT"
] | 1 | 2020-10-04T03:48:09.000Z | 2020-10-05T01:47:09.000Z | home/pi/_testing/logging-test.py | rc-bellergy/pxpi | e3d6d1d1a1f6d1fdf53341d314e7d549c8e84a68 | [
"MIT"
] | 7 | 2020-10-04T03:45:36.000Z | 2022-02-28T16:54:36.000Z | #!/usr/bin/env python
import logging
import logging.handlers
import os
# Logging to file
dir_path = os.path.dirname(os.path.realpath(__file__))
logging.basicConfig(filename=dir_path + "/test.log", format='%(asctime)s - %(message)s', level=logging.INFO, filemode='w')
# Logging messages to the console
console = loggin... | 25.882353 | 122 | 0.747727 | 59 | 440 | 5.474576 | 0.576271 | 0.080495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104545 | 440 | 17 | 123 | 25.882353 | 0.819797 | 0.184091 | 0 | 0 | 0 | 0 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a29c642613fdef33219868f8958a1851ae0b81aa | 1,556 | py | Python | test_client.py | ericjmartin/slackview | 28797ca06e13f5c9f97c1755e613c0e402ae0ea4 | [
"MIT"
] | null | null | null | test_client.py | ericjmartin/slackview | 28797ca06e13f5c9f97c1755e613c0e402ae0ea4 | [
"MIT"
] | null | null | null | test_client.py | ericjmartin/slackview | 28797ca06e13f5c9f97c1755e613c0e402ae0ea4 | [
"MIT"
] | null | null | null | import os
from slack_sdk.web import WebClient
from slack_sdk.socket_mode import SocketModeClient
# Initialize SocketModeClient with an app-level token + WebClient
client = SocketModeClient(
# This app-level token will be used only for establishing a connection
app_token=os.environ.get("SLACK_APP_TOKEN")
# ... | 39.897436 | 85 | 0.720437 | 207 | 1,556 | 5.299517 | 0.449275 | 0.054695 | 0.043756 | 0.049225 | 0.100273 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004781 | 0.193445 | 1,556 | 39 | 86 | 39.897436 | 0.869323 | 0.311054 | 0 | 0 | 0 | 0 | 0.089454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.24 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2a490d7174747d1795eadc9407c26effc4b112a | 14,165 | py | Python | mod_equations-master/mod_equations.py | userElaina/hg8 | 235dbeca3d58b94e1378ac4240ed8424791ae561 | [
"MIT"
] | null | null | null | mod_equations-master/mod_equations.py | userElaina/hg8 | 235dbeca3d58b94e1378ac4240ed8424791ae561 | [
"MIT"
] | null | null | null | mod_equations-master/mod_equations.py | userElaina/hg8 | 235dbeca3d58b94e1378ac4240ed8424791ae561 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Author @55-AA
19 July, 2016
'''
import copy
def gcd(a, b):
"""
Return the greatest common denominator of integers a and b.
gmpy2.gcd(a, b)
"""
while b:
a, b = b, a % b
return a
def lcm(a, b):
return a * b / (gcd(a, b))
def egcd(a, b)... | 27.34556 | 266 | 0.454712 | 1,922 | 14,165 | 3.299168 | 0.168574 | 0.015455 | 0.019871 | 0.022709 | 0.23971 | 0.185144 | 0.166693 | 0.143037 | 0.051254 | 0.051254 | 0 | 0.137951 | 0.37515 | 14,165 | 517 | 267 | 27.398453 | 0.578014 | 0.030851 | 0 | 0.151976 | 0 | 0 | 0.02731 | 0.002269 | 0 | 0 | 0.082017 | 0 | 0.006079 | 0 | null | null | 0.00304 | 0.009119 | null | null | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a2a5a42b6d09e31e44930e2b97a11e3ac6f3bf02 | 6,304 | py | Python | vnpy/app/portfolio_strategy/strategies/daily_amplitude_2_days_volitility_strategy.py | franklili3/vnpy | 4d710553302eb3587e4acb2ff8ce151660fb9c17 | [
"MIT"
] | null | null | null | vnpy/app/portfolio_strategy/strategies/daily_amplitude_2_days_volitility_strategy.py | franklili3/vnpy | 4d710553302eb3587e4acb2ff8ce151660fb9c17 | [
"MIT"
] | null | null | null | vnpy/app/portfolio_strategy/strategies/daily_amplitude_2_days_volitility_strategy.py | franklili3/vnpy | 4d710553302eb3587e4acb2ff8ce151660fb9c17 | [
"MIT"
] | null | null | null | from typing import List, Dict
from datetime import datetime
import numpy as np
from vnpy.app.portfolio_strategy import StrategyTemplate, StrategyEngine
from vnpy.trader.utility import BarGenerator, ArrayManager
from vnpy.trader.object import BarData
from vnpy.trader.constant import Interval
class AmplitudeVolitilit... | 32 | 92 | 0.584391 | 786 | 6,304 | 4.426209 | 0.215013 | 0.064386 | 0.034493 | 0.043691 | 0.277666 | 0.221903 | 0.221903 | 0.200057 | 0.191434 | 0.17735 | 0 | 0.008128 | 0.316942 | 6,304 | 197 | 93 | 32 | 0.799814 | 0.085977 | 0 | 0.166667 | 0 | 0 | 0.029035 | 0.004405 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009259 | 0.064815 | null | null | 0.046296 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a2a95220c05c2685607d88d70a06cedd80129fc1 | 2,489 | py | Python | CareerTinderServer/CareerTinder/migrations/0002_auto_20160918_0011.py | sarojaerabelli/HVGS | 86ec3d2de496540ca439c40f4a0c58c47aa181cf | [
"MIT"
] | 1 | 2016-09-18T16:40:27.000Z | 2016-09-18T16:40:27.000Z | CareerTinderServer/CareerTinder/migrations/0002_auto_20160918_0011.py | sarojaerabelli/HVGS | 86ec3d2de496540ca439c40f4a0c58c47aa181cf | [
"MIT"
] | null | null | null | CareerTinderServer/CareerTinder/migrations/0002_auto_20160918_0011.py | sarojaerabelli/HVGS | 86ec3d2de496540ca439c40f4a0c58c47aa181cf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-18 04:11
from __future__ import unicode_literals
import CareerTinder.listfield
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('CareerTinder', '0001_initial'),
]
operations = [
... | 30.728395 | 143 | 0.546002 | 236 | 2,489 | 5.597458 | 0.355932 | 0.081756 | 0.10598 | 0.13626 | 0.526117 | 0.479182 | 0.335352 | 0.246783 | 0.246783 | 0.204391 | 0 | 0.022063 | 0.326235 | 2,489 | 80 | 144 | 31.1125 | 0.765653 | 0.02732 | 0 | 0.547945 | 1 | 0 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041096 | 0 | 0.082192 | 0 | 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 |
a2b000534f69d5e5c990ba8c2baa88de9b69fc99 | 1,920 | py | Python | corefacility/core/models/module.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | corefacility/core/models/module.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | corefacility/core/models/module.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | import uuid
from django.db import models
class Module(models.Model):
"""
Defines the information related to the application module that is stored to the
database, not as a Django application
"""
uuid = models.UUIDField(db_index=True, editable=False, primary_key=True, default=uuid.uuid4,
... | 60 | 117 | 0.621354 | 235 | 1,920 | 4.965957 | 0.417021 | 0.061697 | 0.072836 | 0.089974 | 0.075407 | 0.039417 | 0 | 0 | 0 | 0 | 0 | 0.006038 | 0.309896 | 1,920 | 31 | 118 | 61.935484 | 0.874717 | 0.060938 | 0 | 0 | 0 | 0 | 0.307347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a2b2ffb533dae5272cd3fbc1cefbb22e54b5762b | 1,181 | py | Python | 14-semparsing/ucca/scripts/find_constructions.py | ariasjose/nn4nlp-code | 7327ea3e93161afbc8c008e287b646daa802be4d | [
"Apache-2.0"
] | null | null | null | 14-semparsing/ucca/scripts/find_constructions.py | ariasjose/nn4nlp-code | 7327ea3e93161afbc8c008e287b646daa802be4d | [
"Apache-2.0"
] | null | null | null | 14-semparsing/ucca/scripts/find_constructions.py | ariasjose/nn4nlp-code | 7327ea3e93161afbc8c008e287b646daa802be4d | [
"Apache-2.0"
] | null | null | null | from argparse import ArgumentParser
from ucca import constructions
from ucca.ioutil import read_files_and_dirs
if __name__ == "__main__":
argparser = ArgumentParser(description="Extract linguistic constructions from UCCA corpus.")
argparser.add_argument("passages", nargs="+", help="the corpus, given as... | 47.24 | 113 | 0.624047 | 131 | 1,181 | 5.473282 | 0.442748 | 0.033473 | 0.058577 | 0.04463 | 0.072524 | 0.072524 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266723 | 1,181 | 24 | 114 | 49.208333 | 0.827945 | 0 | 0 | 0.090909 | 0 | 0 | 0.163354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.272727 | 0.136364 | 0 | 0.136364 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a2bd228991060d0a29b89ddd1eb606ca0ff8fed6 | 1,044 | py | Python | bulletin/factories.py | ralphqq/ph-earthquake-dashboard | b9a599e92844b13fd1f7e3f54e087ec0ab6bc53a | [
"MIT"
] | null | null | null | bulletin/factories.py | ralphqq/ph-earthquake-dashboard | b9a599e92844b13fd1f7e3f54e087ec0ab6bc53a | [
"MIT"
] | 7 | 2020-06-05T20:14:42.000Z | 2022-03-02T15:00:30.000Z | bulletin/factories.py | ralphqq/ph-earthquake-dashboard | b9a599e92844b13fd1f7e3f54e087ec0ab6bc53a | [
"MIT"
] | null | null | null | from datetime import timedelta
import random
from django.utils import timezone
import factory
class BulletinFactory(factory.DjangoModelFactory):
class Meta:
model = 'bulletin.Bulletin'
url = factory.Sequence(lambda n: f'https://www.sitepage.com/{n}')
latitude = factory.Faker(
... | 23.2 | 70 | 0.573755 | 113 | 1,044 | 5.176991 | 0.495575 | 0.102564 | 0.14359 | 0.177778 | 0.280342 | 0.280342 | 0.280342 | 0.280342 | 0 | 0 | 0 | 0.035562 | 0.326628 | 1,044 | 44 | 71 | 23.727273 | 0.796586 | 0.047893 | 0 | 0.216216 | 0 | 0 | 0.09322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.108108 | 0 | 0.378378 | 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 |
a2c5873d31b6625bca48f32ced06274ab2625243 | 12,181 | py | Python | twitter/Update.py | bhargavz/py-twitter-sentiment-analysis | fc611df592ed607e58c2600bd20fceffa309108c | [
"MIT"
] | null | null | null | twitter/Update.py | bhargavz/py-twitter-sentiment-analysis | fc611df592ed607e58c2600bd20fceffa309108c | [
"MIT"
] | null | null | null | twitter/Update.py | bhargavz/py-twitter-sentiment-analysis | fc611df592ed607e58c2600bd20fceffa309108c | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# FILE: Update.py
#
# This class provides mechanisms to update, reply to, retweet status
# messages and send direct messages
#
# Copyright by Author. All rights reserved. Not for reuse without
# express permissions.
#
import sys, time, json, logging
from sochi.twit... | 33.190736 | 153 | 0.531566 | 1,412 | 12,181 | 4.407224 | 0.157932 | 0.032139 | 0.031496 | 0.022979 | 0.387434 | 0.350153 | 0.301302 | 0.221276 | 0.193476 | 0.16214 | 0 | 0.004209 | 0.356375 | 12,181 | 366 | 154 | 33.281421 | 0.789541 | 0.094409 | 0 | 0.377698 | 0 | 0.003597 | 0.09304 | 0.008848 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014388 | null | null | 0.046763 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a2cef5581d6639f72a0f834dc67419807bab8ec4 | 759 | py | Python | dear_petition/petition/migrations/0008_auto_20200208_0222.py | robert-w-gries/dear-petition | 35244afc8e967b41ae5265ae31fd13b26e4e835a | [
"MIT"
] | 4 | 2020-04-01T14:42:45.000Z | 2021-12-12T21:11:11.000Z | dear_petition/petition/migrations/0008_auto_20200208_0222.py | robert-w-gries/dear-petition | 35244afc8e967b41ae5265ae31fd13b26e4e835a | [
"MIT"
] | 142 | 2019-08-12T19:08:34.000Z | 2022-03-29T23:05:35.000Z | dear_petition/petition/migrations/0008_auto_20200208_0222.py | robert-w-gries/dear-petition | 35244afc8e967b41ae5265ae31fd13b26e4e835a | [
"MIT"
] | 8 | 2020-02-04T20:37:00.000Z | 2021-03-28T13:28:32.000Z | # Generated by Django 2.2.4 on 2020-02-08 02:22
from django.db import migrations
def move_batch_fks(apps, schema_editor):
Batch = apps.get_model("petition", "Batch")
CIPRSRecord = apps.get_model("petition", "CIPRSRecord")
for batch in Batch.objects.all():
print(f"Adding batch {batch.pk} to {batch... | 29.192308 | 76 | 0.671937 | 98 | 759 | 5.071429 | 0.530612 | 0.060362 | 0.04829 | 0.080483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05124 | 0.202899 | 759 | 25 | 77 | 30.36 | 0.770248 | 0.059289 | 0 | 0 | 1 | 0 | 0.172753 | 0.064607 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.294118 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2d1763a00e0070a7178e1445d0a7e1fdef3a6a9 | 34,160 | py | Python | tool/pylib/generator/output/PartBuilder.py | mever/qooxdoo | 2bb08cb6c4ddfaf2425e6efff07deb17e960a050 | [
"MIT"
] | 1 | 2021-02-05T23:00:25.000Z | 2021-02-05T23:00:25.000Z | tool/pylib/generator/output/PartBuilder.py | mever/qooxdoo | 2bb08cb6c4ddfaf2425e6efff07deb17e960a050 | [
"MIT"
] | 3 | 2019-02-18T04:22:52.000Z | 2021-02-21T15:02:54.000Z | tool/pylib/generator/output/PartBuilder.py | mever/qooxdoo | 2bb08cb6c4ddfaf2425e6efff07deb17e960a050 | [
"MIT"
] | 1 | 2021-06-03T23:08:44.000Z | 2021-06-03T23:08:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
#
# qooxdoo - the new era of web development
#
# http://qooxdoo.org
#
# Copyright:
# 2006-2010 1&1 Internet AG, Germany, http://www.1und1.de
#
# License:
# MIT: https://opensource.org... | 42.593516 | 157 | 0.600907 | 3,526 | 34,160 | 5.756948 | 0.171299 | 0.048771 | 0.026799 | 0.003104 | 0.174294 | 0.120055 | 0.082566 | 0.04951 | 0.046406 | 0.036159 | 0 | 0.002485 | 0.30483 | 34,160 | 801 | 158 | 42.646692 | 0.852318 | 0.243823 | 0 | 0.263499 | 0 | 0.00216 | 0.068685 | 0.006998 | 0 | 0 | 0 | 0.001248 | 0.00216 | 0 | null | null | 0.00216 | 0.015119 | null | null | 0.006479 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a2d721ef72b39de52022137d721dac292cbddcad | 890 | py | Python | Python/Topics/Sending-Email/05-pdf-attachment.py | shihab4t/Software-Development | 0843881f2ba04d9fca34e44443b5f12f509f671e | [
"Unlicense"
] | null | null | null | Python/Topics/Sending-Email/05-pdf-attachment.py | shihab4t/Software-Development | 0843881f2ba04d9fca34e44443b5f12f509f671e | [
"Unlicense"
] | null | null | null | Python/Topics/Sending-Email/05-pdf-attachment.py | shihab4t/Software-Development | 0843881f2ba04d9fca34e44443b5f12f509f671e | [
"Unlicense"
] | null | null | null | import imghdr
import smtplib
import os
from email.message import EmailMessage
EMAIL_ADDRESS = os.environ.get("GMAIL_ADDRESS")
EMAIL_PASSWORD = os.environ.get("GMAIL_APP_PASS")
pdfs = ["/home/shihab4t/Downloads/Profile.pdf"]
with smtplib.SMTP_SSL("smtp.gmail.com", 465) as smtp:
smtp.login(EMAIL_ADDRESS, EMAIL_P... | 26.969697 | 69 | 0.665169 | 120 | 890 | 4.8 | 0.541667 | 0.0625 | 0.041667 | 0.059028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010043 | 0.216854 | 890 | 32 | 70 | 27.8125 | 0.816356 | 0 | 0 | 0 | 0 | 0 | 0.257303 | 0.064045 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0.173913 | 0 | 0.173913 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a2df2293ad90461c1622171c3d5669f2f6f7fd84 | 2,791 | py | Python | yggdrasil/metaschema/datatypes/InstanceMetaschemaType.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | yggdrasil/metaschema/datatypes/InstanceMetaschemaType.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | yggdrasil/metaschema/datatypes/InstanceMetaschemaType.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | null | null | null | from yggdrasil.metaschema.datatypes import MetaschemaTypeError
from yggdrasil.metaschema.datatypes.MetaschemaType import MetaschemaType
from yggdrasil.metaschema.datatypes.JSONObjectMetaschemaType import (
JSONObjectMetaschemaType)
from yggdrasil.metaschema.properties.ArgsMetaschemaProperty import (
ArgsMetasch... | 34.036585 | 78 | 0.636331 | 288 | 2,791 | 6.104167 | 0.357639 | 0.025597 | 0.052332 | 0.054608 | 0.112628 | 0.048919 | 0.048919 | 0.048919 | 0.048919 | 0 | 0 | 0.001002 | 0.284486 | 2,791 | 81 | 79 | 34.45679 | 0.879319 | 0.322465 | 0 | 0.071429 | 0 | 0 | 0.089138 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.071429 | false | 0 | 0.095238 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a2df9c5cd443a1cdbe81e54c4e448271480f6781 | 368 | py | Python | battleships/migrations/0004_auto_20181202_1852.py | ArturAdamczyk/Battleships | 748e4fa87ed0c17c57abbdf5a0a2bca3c91dff24 | [
"MIT"
] | null | null | null | battleships/migrations/0004_auto_20181202_1852.py | ArturAdamczyk/Battleships | 748e4fa87ed0c17c57abbdf5a0a2bca3c91dff24 | [
"MIT"
] | null | null | null | battleships/migrations/0004_auto_20181202_1852.py | ArturAdamczyk/Battleships | 748e4fa87ed0c17c57abbdf5a0a2bca3c91dff24 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2018-12-02 17:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('battleships', '0003_auto_20181202_1832'),
]
operations = [
migrations.RenameField(
model_name='coordinate',
old_name='ship',... | 19.368421 | 51 | 0.589674 | 39 | 368 | 5.410256 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124031 | 0.298913 | 368 | 18 | 52 | 20.444444 | 0.693798 | 0.122283 | 0 | 0 | 1 | 0 | 0.165109 | 0.071651 | 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 |
a2e589c4ee6ca6ac8b468da944e0f2d14d31872f | 695 | py | Python | toto/methods/client_error.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | toto/methods/client_error.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | toto/methods/client_error.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | import logging
from toto.invocation import *
@requires('client_error', 'client_type')
def invoke(handler, parameters):
'''A convenince method for writing browser errors
to Toto's server log. It works with the ``registerErrorHandler()`` method in ``toto.js``.
The "client_error" parameter should be set to the str... | 36.578947 | 91 | 0.723741 | 99 | 695 | 4.979798 | 0.525253 | 0.089249 | 0.077079 | 0.10142 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155396 | 695 | 18 | 92 | 38.611111 | 0.839864 | 0.576978 | 0 | 0 | 0 | 0 | 0.247273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a2e5b6c37644bb0cda6e0ffc3d078b3332260604 | 1,945 | py | Python | parallelformers/policies/gptj.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 454 | 2021-07-18T02:51:23.000Z | 2022-03-31T04:00:53.000Z | parallelformers/policies/gptj.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 16 | 2021-07-18T10:47:21.000Z | 2022-03-22T18:49:57.000Z | parallelformers/policies/gptj.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 33 | 2021-07-18T04:48:28.000Z | 2022-03-14T22:16:36.000Z | # Copyright 2021 TUNiB inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | 28.188406 | 74 | 0.607712 | 224 | 1,945 | 5.169643 | 0.491071 | 0.051813 | 0.058722 | 0.027634 | 0.081174 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007396 | 0.304884 | 1,945 | 68 | 75 | 28.602941 | 0.849112 | 0.303856 | 0 | 0.4 | 0 | 0 | 0.130045 | 0.017937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.133333 | 0.355556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a2e61afbf4f6a03e376d0464c7acf87dc5bb080e | 503 | py | Python | app/modules/checkerbox.py | hboueix/PyCheckers | c1339a004f30f76a33461b52f9633bbbd1204bb0 | [
"MIT"
] | null | null | null | app/modules/checkerbox.py | hboueix/PyCheckers | c1339a004f30f76a33461b52f9633bbbd1204bb0 | [
"MIT"
] | null | null | null | app/modules/checkerbox.py | hboueix/PyCheckers | c1339a004f30f76a33461b52f9633bbbd1204bb0 | [
"MIT"
] | null | null | null | import pygame
class Checkerbox(pygame.sprite.Sprite):
def __init__(self, size, color, coords):
super().__init__()
self.rect = pygame.Rect(coords[0], coords[1], size, size)
self.color = color
self.hovered = False
def draw(self, screen):
pygame.draw.rect(screen, self.co... | 23.952381 | 65 | 0.606362 | 62 | 503 | 4.758065 | 0.435484 | 0.081356 | 0.108475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.272366 | 503 | 20 | 66 | 25.15 | 0.800546 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2f4994690266aa4a640429912d46124db104724 | 1,461 | py | Python | tests/unittests/types/test_array.py | TrigonDev/apgorm | 5b593bfb5a200708869e079248c25786608055d6 | [
"MIT"
] | 8 | 2022-01-21T23:07:29.000Z | 2022-03-26T12:03:57.000Z | tests/unittests/types/test_array.py | TrigonDev/apgorm | 5b593bfb5a200708869e079248c25786608055d6 | [
"MIT"
] | 22 | 2021-12-23T00:43:41.000Z | 2022-03-23T13:17:32.000Z | tests/unittests/types/test_array.py | TrigonDev/apgorm | 5b593bfb5a200708869e079248c25786608055d6 | [
"MIT"
] | 3 | 2022-01-15T20:58:33.000Z | 2022-01-26T21:36:13.000Z | # MIT License
#
# Copyright (c) 2021 TrigonDev
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, pu... | 38.447368 | 79 | 0.750171 | 217 | 1,461 | 5.023041 | 0.516129 | 0.080734 | 0.023853 | 0.033028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003292 | 0.168378 | 1,461 | 37 | 80 | 39.486486 | 0.893827 | 0.735113 | 0 | 0 | 0 | 0 | 0.074176 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2f8a7986f7bf085148eeaed0a44176810f81182 | 747 | py | Python | code/searchers.py | trunc8/mespp | 8348bdd0ba8f584ef7196c0064b8e5bafa38a0fb | [
"MIT"
] | 2 | 2021-07-07T17:01:17.000Z | 2022-03-30T05:28:44.000Z | code/searchers.py | trunc8/mespp | 8348bdd0ba8f584ef7196c0064b8e5bafa38a0fb | [
"MIT"
] | null | null | null | code/searchers.py | trunc8/mespp | 8348bdd0ba8f584ef7196c0064b8e5bafa38a0fb | [
"MIT"
] | 1 | 2021-07-07T17:00:54.000Z | 2021-07-07T17:00:54.000Z | #!/usr/bin/env python3
# trunc8 did this
import numpy as np
class Searchers:
def __init__(self, g,
N=100,
M=2,
initial_positions=np.array([90,58]),
target_initial_position=45):
'''
g: Graph of environment
N: Number of vertices
M: Number of ... | 25.758621 | 58 | 0.649264 | 96 | 747 | 4.875 | 0.510417 | 0.17094 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027322 | 0.26506 | 747 | 29 | 59 | 25.758621 | 0.825137 | 0.255689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a2fa1506f35030e5726f14dab7372d11ea530f9d | 1,015 | py | Python | vogue/api/api_v1/api.py | mayabrandi/vogue | 463e6417a9168eadb0d11dea2d0f97919494bcd3 | [
"MIT"
] | 1 | 2021-12-16T19:29:17.000Z | 2021-12-16T19:29:17.000Z | vogue/api/api_v1/api.py | mayabrandi/vogue | 463e6417a9168eadb0d11dea2d0f97919494bcd3 | [
"MIT"
] | 188 | 2018-10-25T06:13:17.000Z | 2022-02-25T19:47:06.000Z | vogue/api/api_v1/api.py | mayabrandi/vogue | 463e6417a9168eadb0d11dea2d0f97919494bcd3 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from vogue.api.api_v1.endpoints import (
insert_documents,
home,
common_trends,
sequencing,
genootype,
reagent_labels,
prepps,
bioinfo_covid,
bioinfo_micro,
bioinfo_mip,
update,
)
from vogue.settings import static_files
app = FastAPI()
app.mount... | 27.432432 | 64 | 0.747783 | 130 | 1,015 | 5.607692 | 0.269231 | 0.150892 | 0.241427 | 0.09465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00111 | 0.112315 | 1,015 | 36 | 65 | 28.194444 | 0.807991 | 0 | 0 | 0 | 0 | 0 | 0.105419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.09375 | 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 |
a2fe2076a061b4411e718858d451c717a3acc756 | 318 | py | Python | Chapter01/displacy-save-as-image-1-4-5.py | indrasmartmob/Mastering-spaCy | 756876902eee8437d6d9ddcef2ba7ffabfc970a3 | [
"MIT"
] | 76 | 2021-07-07T14:32:42.000Z | 2022-03-27T17:15:15.000Z | Chapter01/displacy-save-as-image-1-4-5.py | indrasmartmob/Mastering-spaCy | 756876902eee8437d6d9ddcef2ba7ffabfc970a3 | [
"MIT"
] | 4 | 2021-08-18T18:08:23.000Z | 2022-03-27T03:30:27.000Z | Chapter01/displacy-save-as-image-1-4-5.py | indrasmartmob/Mastering-spaCy | 756876902eee8437d6d9ddcef2ba7ffabfc970a3 | [
"MIT"
] | 38 | 2021-07-09T22:23:38.000Z | 2022-03-12T07:11:37.000Z | #!/usr/bin/env python3
import spacy
from spacy import displacy
from pathlib import Path
nlp = spacy.load("en_core_web_md")
doc = nlp("I'm a butterfly.")
svg = displacy.render(doc, style="dep", jupyter=False)
filename = "butterfly.svg"
output_path = Path(filename)
output_path.open("w", encoding="utf-8").write(svg)
| 22.714286 | 54 | 0.735849 | 51 | 318 | 4.490196 | 0.686275 | 0.104803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.113208 | 318 | 13 | 55 | 24.461538 | 0.804965 | 0.066038 | 0 | 0 | 0 | 0 | 0.176271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0c042004c2d10428499c1e729e50d34d388b3eb9 | 519 | py | Python | sources/101_test.py | Painatalman/python101 | 9727ca03da46f81813fc2d338b8ba22fc0d8b78b | [
"Apache-2.0"
] | null | null | null | sources/101_test.py | Painatalman/python101 | 9727ca03da46f81813fc2d338b8ba22fc0d8b78b | [
"Apache-2.0"
] | null | null | null | sources/101_test.py | Painatalman/python101 | 9727ca03da46f81813fc2d338b8ba22fc0d8b78b | [
"Apache-2.0"
] | null | null | null | from fruits import validate_fruit
fruits = ["banana", "lemon", "apple", "orange", "batman"]
print fruits
def list_fruits(fruits, byName=True):
if byName:
# WARNING: this won't make a copy of the list and return it. It will change the list FOREVER
fruits.sort()
for index, fruit in enumerate... | 22.565217 | 100 | 0.628131 | 73 | 519 | 4.410959 | 0.575342 | 0.080745 | 0.099379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265896 | 519 | 22 | 101 | 23.590909 | 0.845144 | 0.17341 | 0 | 0.153846 | 0 | 0 | 0.152225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c08ff139766a0d536bcc09bc242b07f333b8755 | 853 | py | Python | HackerRank/Two Sum/Two Sum.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 9 | 2020-07-02T06:06:17.000Z | 2022-02-26T11:08:09.000Z | HackerRank/Two Sum/Two Sum.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 1 | 2021-11-04T17:26:36.000Z | 2021-11-04T17:26:36.000Z | HackerRank/Two Sum/Two Sum.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 8 | 2021-01-31T10:31:12.000Z | 2022-03-13T09:15:55.000Z | class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
"""Naive Logic"""
''' for i in range(len(nums)):
left = nums[i+1:]
for j in range(len(left)):
if (nums[i]+left[j]) ==target :
return i,j+i+1
'''
'''Better... | 32.807692 | 64 | 0.444314 | 114 | 853 | 3.280702 | 0.263158 | 0.048128 | 0.064171 | 0.088235 | 0.251337 | 0.144385 | 0 | 0 | 0 | 0 | 0 | 0.009766 | 0.399766 | 853 | 26 | 65 | 32.807692 | 0.720703 | 0 | 0 | 0.2 | 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 |
0c09891ffb40760a1dcac5e46984a7d055ce0caf | 2,587 | py | Python | web/app/djrq/admin/admin.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | 1 | 2016-11-23T20:50:00.000Z | 2016-11-23T20:50:00.000Z | web/app/djrq/admin/admin.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | 15 | 2017-01-15T04:18:40.000Z | 2017-02-25T04:13:06.000Z | web/app/djrq/admin/admin.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | null | null | null | # encoding: utf-8
from web.ext.acl import when
from ..templates.admin.admintemplate import page as _page
from ..templates.admin.requests import requeststemplate, requestrow
from ..templates.requests import requestrow as rr
from ..send_update import send_update
import cinje
@when(when.matches(True, 'session.authentica... | 43.847458 | 198 | 0.709702 | 307 | 2,587 | 5.80456 | 0.28013 | 0.039282 | 0.039282 | 0.044893 | 0.145903 | 0.051627 | 0.051627 | 0.051627 | 0.051627 | 0 | 0 | 0.001947 | 0.20603 | 2,587 | 58 | 199 | 44.603448 | 0.865628 | 0.036722 | 0 | 0.085106 | 0 | 0 | 0.069964 | 0.008444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0.021277 | 0.404255 | 0 | 0.553191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0c0c55cfe0bc18dae70bf566cb7d439dd048fafe | 602 | py | Python | udp/src/server.py | matthewchute/net-prot | 82d2d92b3c88afb245161780fdd7909d7bf15eb1 | [
"MIT"
] | null | null | null | udp/src/server.py | matthewchute/net-prot | 82d2d92b3c88afb245161780fdd7909d7bf15eb1 | [
"MIT"
] | null | null | null | udp/src/server.py | matthewchute/net-prot | 82d2d92b3c88afb245161780fdd7909d7bf15eb1 | [
"MIT"
] | null | null | null | import constants, helpers, os
temp_msg = None
whole_msg = b''
file_path = None
helpers.sock.bind(constants.IP_PORT)
print "Server Ready"
# recieve
while temp_msg != constants.EOF:
datagram = helpers.sock.recvfrom(constants.BUFFER_SIZE)
temp_msg = datagram[0]
if file_path is None:
print("Receiv... | 22.296296 | 79 | 0.696013 | 86 | 602 | 4.651163 | 0.465116 | 0.105 | 0.065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002037 | 0.184385 | 602 | 26 | 80 | 23.153846 | 0.812627 | 0.011628 | 0 | 0 | 0 | 0 | 0.059122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | 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 |
0c0dcfc232bbe604e854e762de0825bd246ecc01 | 3,697 | py | Python | sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/hostname_configuration.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/hostname_configuration.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/hostname_configuration.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 1 | 2019-06-17T22:18:23.000Z | 2019-06-17T22:18:23.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 48.012987 | 94 | 0.678117 | 426 | 3,697 | 5.751174 | 0.366197 | 0.029388 | 0.063673 | 0.022857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00166 | 0.185285 | 3,697 | 76 | 95 | 48.644737 | 0.811753 | 0.572085 | 0 | 0 | 0 | 0 | 0.337725 | 0.072122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.076923 | 0.038462 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.