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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a956e60e232ae11510915bb8fb87553bf07d34c | 482 | py | Python | docs/getting_started/example1.py | dmtx97/netopsauto | fdb3c3f756b4093c1ae16c8851cbb365a7eaedae | [
"MIT"
] | null | null | null | docs/getting_started/example1.py | dmtx97/netopsauto | fdb3c3f756b4093c1ae16c8851cbb365a7eaedae | [
"MIT"
] | null | null | null | docs/getting_started/example1.py | dmtx97/netopsauto | fdb3c3f756b4093c1ae16c8851cbb365a7eaedae | [
"MIT"
] | null | null | null | from netopsauto.juniper import Juniper
from pprint import pprint
switch = Juniper("host_name", "host_address", "user", "password")
# We can optionally call initialize_device() to directly utilize the PyEZ Device instance
dev = switch.initialize_device()
dev.open()
pprint(dev.facts)
dev.close()
# p... | 28.352941 | 118 | 0.761411 | 64 | 482 | 5.65625 | 0.65625 | 0.088398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13278 | 482 | 17 | 118 | 28.352941 | 0.866029 | 0.514523 | 0 | 0 | 0 | 0 | 0.153488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.285714 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7a99458282dc0488ff318057c5e21f1efd842fa4 | 549 | py | Python | docfly/util.py | MacHu-GWU/docfly-project | 9fdba29290d6b856a6b42dc4194f937d3e1e9326 | [
"MIT"
] | null | null | null | docfly/util.py | MacHu-GWU/docfly-project | 9fdba29290d6b856a6b42dc4194f937d3e1e9326 | [
"MIT"
] | null | null | null | docfly/util.py | MacHu-GWU/docfly-project | 9fdba29290d6b856a6b42dc4194f937d3e1e9326 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
utilities.
"""
from __future__ import print_function, unicode_literals
import os
def make_dir(abspath):
"""
Make an empty directory.
"""
try:
os.mkdir(abspath)
print("Made: %s" % abspath)
except: # pragma: no cover
pass
def make_file(abspath... | 17.15625 | 55 | 0.544627 | 68 | 549 | 4.279412 | 0.558824 | 0.041237 | 0.068729 | 0.116838 | 0.274914 | 0.274914 | 0.274914 | 0.274914 | 0.274914 | 0 | 0 | 0.007937 | 0.311475 | 549 | 31 | 56 | 17.709677 | 0.761905 | 0.220401 | 0 | 0.533333 | 0 | 0 | 0.059278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.133333 | 0.133333 | 0 | 0.266667 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7a9f6132ab8ecf2b7bdae091b5444d488461a223 | 1,141 | py | Python | lib/stat.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 4 | 2020-07-21T09:47:52.000Z | 2022-01-05T21:43:36.000Z | lib/stat.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 1 | 2020-09-23T20:46:33.000Z | 2020-09-23T20:59:57.000Z | lib/stat.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 4 | 2020-07-13T00:45:24.000Z | 2021-09-04T14:50:46.000Z | # Module 'stat'
# Defines constants and functions for interpreting stat/lstat struct
# as returned by posix.stat() and posix.lstat() (if it exists).
# XXX This module may have to be adapted for UNIXoid systems whose
# <sys/stat.h> deviates from AT&T or BSD UNIX; their S_IF* constants
# may differ.
# Suggested usage:... | 19.672414 | 68 | 0.687117 | 197 | 1,141 | 3.771574 | 0.467005 | 0.048452 | 0.096904 | 0.141319 | 0.188425 | 0.188425 | 0 | 0 | 0 | 0 | 0 | 0.075964 | 0.226994 | 1,141 | 57 | 69 | 20.017544 | 0.76644 | 0.315513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a9ff67707d04272313258d16bd2056d813bec04 | 1,368 | py | Python | 22.reactor-reboot/py/part2.py | rolandbernard/adventofcode-2021 | 9249815af62d0fcf79b71357330a1456ea3be1ed | [
"BSD-2-Clause"
] | null | null | null | 22.reactor-reboot/py/part2.py | rolandbernard/adventofcode-2021 | 9249815af62d0fcf79b71357330a1456ea3be1ed | [
"BSD-2-Clause"
] | null | null | null | 22.reactor-reboot/py/part2.py | rolandbernard/adventofcode-2021 | 9249815af62d0fcf79b71357330a1456ea3be1ed | [
"BSD-2-Clause"
] | null | null | null |
import sys
seq = []
for line in sys.stdin.read().strip().split('\n'):
on, pos = line.split(' ')
iv = tuple(tuple(int(v) for v in l.split('=')[1].split('..')) for l in line.split(','))
seq.append((on == 'on', iv))
def splitIntersection(i0, i1):
xs, ys, zs = [sorted(i0[i] + i1[i]) for i in range(3)]
... | 31.813953 | 105 | 0.442251 | 258 | 1,368 | 2.341085 | 0.193798 | 0.044702 | 0.033113 | 0.039735 | 0.139073 | 0.039735 | 0.039735 | 0.039735 | 0 | 0 | 0 | 0.110778 | 0.267544 | 1,368 | 42 | 106 | 32.571429 | 0.492016 | 0 | 0 | 0 | 0 | 0 | 0.011713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.029412 | 0 | 0.088235 | 0.029412 | 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 |
7aa50286e2bd6c034e70ef9d7148bd9a16c1bded | 312 | py | Python | aux/isos_exec_script.py | MarkusZehner/isos | 8c5b80cc921781ca53f8c54f69d59711bcaf37a1 | [
"MIT"
] | null | null | null | aux/isos_exec_script.py | MarkusZehner/isos | 8c5b80cc921781ca53f8c54f69d59711bcaf37a1 | [
"MIT"
] | null | null | null | aux/isos_exec_script.py | MarkusZehner/isos | 8c5b80cc921781ca53f8c54f69d59711bcaf37a1 | [
"MIT"
] | null | null | null | import sys
from isos.search_and_deploy import cronjob_task
if __name__ == '__main__':
directory = sys.argv[1]
print(directory)
dbname = sys.argv[2]
user = sys.argv[3]
password = sys.argv[4]
port = int(sys.argv[5])
cronjob_task(directory, dbname, user, password, port)
| 24 | 57 | 0.644231 | 43 | 312 | 4.395349 | 0.581395 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021097 | 0.240385 | 312 | 12 | 58 | 26 | 0.776371 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7aa801df29d0b94afa59da27e8d5edfce550d930 | 1,757 | py | Python | tests/test_25_kanatext_aslist_length.py | KaKkouo/kana_text | 8b6a505be94225c10269f527b35ec821cdafe058 | [
"BSD-2-Clause"
] | 1 | 2021-10-02T02:43:21.000Z | 2021-10-02T02:43:21.000Z | tests/test_25_kanatext_aslist_length.py | KaKkouo/kana_text | 8b6a505be94225c10269f527b35ec821cdafe058 | [
"BSD-2-Clause"
] | 13 | 2021-11-01T13:27:25.000Z | 2022-03-01T18:51:35.000Z | tests/test_25_kanatext_aslist_length.py | KaKkouo/kana_text | 8b6a505be94225c10269f527b35ec821cdafe058 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
import sys
import pytest
from src import KanaText
#オプションと文字データの文字数の多少
testcase01i = [ #テストケース
'いろはにほへと|壱弐参四五六七八九',
'いろはにほへと|壱弐参四五六七八九^',
'いろはにほへと|壱弐参四五六七八九^111010111',
'いろはにほへと|壱弐参四五六七八九^1201012',
'いろはにほへと|壱弐参四五六七八九^33',
'いろはにほへと|壱弐参四五六七八九^45',
'いろはにほへと|壱弐参四五六七八九^55',
... | 29.283333 | 76 | 0.467274 | 183 | 1,757 | 4.480874 | 0.355191 | 0.234146 | 0.056098 | 0.078049 | 0.158537 | 0.131707 | 0.131707 | 0.070732 | 0 | 0 | 0 | 0.035579 | 0.24815 | 1,757 | 59 | 77 | 29.779661 | 0.585163 | 0.036426 | 0 | 0.153846 | 0 | 0 | 0.255924 | 0.087085 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.019231 | false | 0 | 0.057692 | 0 | 0.076923 | 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 |
7aa96622144b10cea5b4143a006ed0e5b6313628 | 3,139 | py | Python | leagues/migrations/0001_initial.py | sornars/leaguetracker | b83cd21db2edfeeeaecc27b768107e5b7bf0cd93 | [
"MIT"
] | null | null | null | leagues/migrations/0001_initial.py | sornars/leaguetracker | b83cd21db2edfeeeaecc27b768107e5b7bf0cd93 | [
"MIT"
] | null | null | null | leagues/migrations/0001_initial.py | sornars/leaguetracker | b83cd21db2edfeeeaecc27b768107e5b7bf0cd93 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-23 16:20
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | 39.734177 | 133 | 0.589041 | 300 | 3,139 | 6.013333 | 0.303333 | 0.031042 | 0.046563 | 0.073171 | 0.474501 | 0.474501 | 0.416851 | 0.416851 | 0.395233 | 0.395233 | 0 | 0.011469 | 0.277795 | 3,139 | 78 | 134 | 40.24359 | 0.784296 | 0.021663 | 0 | 0.485714 | 1 | 0 | 0.112777 | 0.015645 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.114286 | 0 | 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 |
7aacb62a4899041c9ad9347e259e978406cc6da1 | 1,148 | py | Python | lib/pycoin/pycoin/services/blockr_io.py | AYCHDO/Dominus | d7065816febafb6cf0fb1142ff7dc7e454c835ad | [
"MIT"
] | 68 | 2015-08-30T13:23:12.000Z | 2022-02-26T06:59:15.000Z | lib/pycoin/pycoin/services/blockr_io.py | AYCHDO/Dominus | d7065816febafb6cf0fb1142ff7dc7e454c835ad | [
"MIT"
] | 44 | 2016-02-14T02:08:00.000Z | 2020-11-11T09:03:55.000Z | lib/pycoin/pycoin/services/blockr_io.py | AYCHDO/Dominus | d7065816febafb6cf0fb1142ff7dc7e454c835ad | [
"MIT"
] | 56 | 2015-08-26T12:49:20.000Z | 2022-02-17T19:06:36.000Z | import io
import json
try:
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen
from pycoin.convention import btc_to_satoshi
from pycoin.tx import Tx, Spendable
from pycoin.serialize import b2h_rev, h2b, h2b_rev
def spendables_for_address(bitcoin_address):
"""
Return a ... | 29.435897 | 87 | 0.658537 | 169 | 1,148 | 4.349112 | 0.384615 | 0.021769 | 0.032653 | 0.043537 | 0.155102 | 0.155102 | 0.155102 | 0.092517 | 0 | 0 | 0 | 0.012945 | 0.192509 | 1,148 | 38 | 88 | 30.210526 | 0.779935 | 0.075784 | 0 | 0.08 | 0 | 0 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.32 | 0 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7ab2c66bc7e71b2f31665a3e2c2bcd1b370956dd | 356 | py | Python | addons/website_helpdesk_support_ticket/models/analytic_account_line.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | addons/website_helpdesk_support_ticket/models/analytic_account_line.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | addons/website_helpdesk_support_ticket/models/analytic_account_line.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | 1 | 2021-05-05T07:59:08.000Z | 2021-05-05T07:59:08.000Z | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class AnalyticLine(models.Model):
_inherit = "account.analytic.line"
invoiced_created = fields.Boolean(
string="Invoiced",
copy=False,
)
time_in = fields.Float(
string='Time In',
)
time_out = fields.Floa... | 19.777778 | 38 | 0.58427 | 39 | 356 | 5.230769 | 0.666667 | 0.058824 | 0.166667 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.286517 | 356 | 17 | 39 | 20.941176 | 0.799213 | 0.058989 | 0 | 0 | 0 | 0 | 0.132132 | 0.063063 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.461538 | 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 |
7ab90bf6ae16c56e6e527aa38e5c76dead6732b6 | 904 | py | Python | section4/starter/math_quiz.py | koltpython/python-exercises-spring2020 | e46234601d4c77a1fe50edb405eac0ce0a8fac14 | [
"MIT"
] | 1 | 2020-02-03T06:49:01.000Z | 2020-02-03T06:49:01.000Z | section4/starter/math_quiz.py | koltpython/python-exercises-spring2020 | e46234601d4c77a1fe50edb405eac0ce0a8fac14 | [
"MIT"
] | null | null | null | section4/starter/math_quiz.py | koltpython/python-exercises-spring2020 | e46234601d4c77a1fe50edb405eac0ce0a8fac14 | [
"MIT"
] | null | null | null | import random
#To welcome the user
def welcome():
print('This is a math quiz program, GOOD LUCK!')
print('It will continue until user enters a wrong answer')
#Choose a random mathematical operation
# Hint: use random.randint(a,b)
def choosing_operation():
#Your code starts here
#Your code ends h... | 25.828571 | 98 | 0.742257 | 134 | 904 | 4.970149 | 0.447761 | 0.072072 | 0.063063 | 0.081081 | 0.372372 | 0.318318 | 0.318318 | 0.318318 | 0.165165 | 0.165165 | 0 | 0 | 0.19469 | 904 | 35 | 99 | 25.828571 | 0.914835 | 0.634956 | 0 | 0 | 0 | 0 | 0.277603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7abba5b007158b49f17416292fa99d24ba9c7a08 | 1,381 | py | Python | qatrack/qa/migrations/0003_auto_20171103_1256.py | randlet/qatrackplus-ci | ba11d39a07382b11394aaffd0df692b4ddc6239b | [
"MIT"
] | 4 | 2016-08-29T15:31:01.000Z | 2021-05-08T23:16:37.000Z | qatrack/qa/migrations/0003_auto_20171103_1256.py | randlet/qatrackplus-ci | ba11d39a07382b11394aaffd0df692b4ddc6239b | [
"MIT"
] | 5 | 2020-02-12T01:21:59.000Z | 2021-06-10T21:18:24.000Z | qatrack/qa/migrations/0003_auto_20171103_1256.py | randlet/qatrackplus-ci | ba11d39a07382b11394aaffd0df692b4ddc6239b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-03 16:56
from __future__ import unicode_literals
from django.contrib.auth.management import create_permissions
from django.contrib.auth.models import Permission, Group
from django.db import migrations
def add_in_progress_perm(apps, schema_editor):
... | 34.525 | 305 | 0.721941 | 176 | 1,381 | 5.380682 | 0.471591 | 0.084477 | 0.059134 | 0.053854 | 0.158395 | 0.158395 | 0.095037 | 0.095037 | 0 | 0 | 0 | 0.029643 | 0.169442 | 1,381 | 39 | 306 | 35.410256 | 0.79599 | 0.04924 | 0 | 0 | 1 | 0 | 0.237405 | 0.017557 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.16 | 0 | 0.36 | 0 | 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 |
7abde9e00d3e7d46ff7154caa38be193b193801c | 2,230 | py | Python | paasta_tools/list_marathon_service_instances.py | oholiab/paasta | f008e07622aaf09b43513fcaaef501e320870ae6 | [
"Apache-2.0"
] | null | null | null | paasta_tools/list_marathon_service_instances.py | oholiab/paasta | f008e07622aaf09b43513fcaaef501e320870ae6 | [
"Apache-2.0"
] | 4 | 2021-02-08T20:55:34.000Z | 2021-03-26T00:29:25.000Z | paasta_tools/list_marathon_service_instances.py | oholiab/paasta | f008e07622aaf09b43513fcaaef501e320870ae6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2015 Yelp 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 ag... | 35.967742 | 110 | 0.720179 | 311 | 2,230 | 5.032154 | 0.456592 | 0.034505 | 0.016613 | 0.020447 | 0.033227 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004981 | 0.189686 | 2,230 | 61 | 111 | 36.557377 | 0.861096 | 0.25426 | 0 | 0 | 0 | 0 | 0.167123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | 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 |
7abe6f48e84cf9329731f4cc025e209f3d15c6ce | 458 | py | Python | wrapt_timeout_decorator/__doc__.py | isaa-ctaylor/wrapt_timeout_decorator | daea3a4fd946baf15c0ea296a7a5f22015835512 | [
"MIT"
] | 56 | 2019-04-20T06:42:18.000Z | 2022-03-25T13:40:37.000Z | wrapt_timeout_decorator/__doc__.py | isaa-ctaylor/wrapt_timeout_decorator | daea3a4fd946baf15c0ea296a7a5f22015835512 | [
"MIT"
] | 29 | 2019-04-02T17:00:19.000Z | 2022-03-02T00:07:08.000Z | wrapt_timeout_decorator/__doc__.py | isaa-ctaylor/wrapt_timeout_decorator | daea3a4fd946baf15c0ea296a7a5f22015835512 | [
"MIT"
] | 11 | 2019-04-11T15:42:28.000Z | 2022-02-21T20:55:43.000Z | # PROJ
try:
from . import __init__conf__
except ImportError: # pragma: no cover
# imports for doctest
import __init__conf__ # type: ignore # pragma: no cover
__doc__ = f"""\
Usage:
{__init__conf__.shell_command} (-h | -v | -i)
Options:
-h, --help show help
... | 21.809524 | 70 | 0.591703 | 55 | 458 | 4.509091 | 0.690909 | 0.096774 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.31441 | 458 | 20 | 71 | 22.9 | 0.789809 | 0.159389 | 0 | 0 | 0 | 0 | 0.638522 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f817b6ee4a52c3e509d43a952321f329c00007a | 600 | py | Python | skytour/skytour/apps/observe/migrations/0010_alter_observinglocation_status.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | null | null | null | skytour/skytour/apps/observe/migrations/0010_alter_observinglocation_status.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | 1 | 2022-03-17T01:19:23.000Z | 2022-03-17T01:19:23.000Z | skytour/skytour/apps/observe/migrations/0010_alter_observinglocation_status.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2021-12-21 20:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('observe', '0009_alter_observinglocation_options'),
]
operations = [
migrations.AlterField(
model_name='observinglocation',
... | 31.578947 | 242 | 0.621667 | 59 | 600 | 6.220339 | 0.728814 | 0.054496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042105 | 0.208333 | 600 | 18 | 243 | 33.333333 | 0.730526 | 0.071667 | 0 | 0 | 1 | 0 | 0.286486 | 0.064865 | 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 |
8f8adb6c03a6881b7bc60b8b5cc1057879a9169b | 5,093 | py | Python | pythonExcelReader/OpenANPR-master/experimental/exp5.py | amirsaleh-salehzadeh/BehaveNet | 1dcdfa3d9efd022f29f37495be15f9657c5e7374 | [
"MIT"
] | 1 | 2019-03-06T13:45:23.000Z | 2019-03-06T13:45:23.000Z | pythonExcelReader/OpenANPR-master/experimental/exp5.py | amirsaleh-salehzadeh/BehaveNet | 1dcdfa3d9efd022f29f37495be15f9657c5e7374 | [
"MIT"
] | null | null | null | pythonExcelReader/OpenANPR-master/experimental/exp5.py | amirsaleh-salehzadeh/BehaveNet | 1dcdfa3d9efd022f29f37495be15f9657c5e7374 | [
"MIT"
] | 1 | 2019-12-19T15:12:53.000Z | 2019-12-19T15:12:53.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
exp5.py
Experiment 5: playing with the 'other' OpenCV API.
Created by Oliver Smith on 2009-08-31.
Copyright (c) 2009 Oliver Smith. All rights reserved.
"""
import sys
import os
from getopt import getopt
import math
import cv
from exputil import *
from connected import *
... | 26.664921 | 73 | 0.643825 | 919 | 5,093 | 3.501632 | 0.265506 | 0.008701 | 0.008701 | 0.009944 | 0.051585 | 0.03729 | 0.01243 | 0 | 0 | 0 | 0 | 0.04066 | 0.20322 | 5,093 | 190 | 74 | 26.805263 | 0.752341 | 0.173179 | 0 | 0.014388 | 0 | 0 | 0.024886 | 0 | 0 | 0 | 0 | 0.005263 | 0 | 0 | null | null | 0 | 0.05036 | null | null | 0.007194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f90666ef3de66d07bb02ed4f2fd46d0855b37e6 | 537 | py | Python | utils/plot.py | DaisukeMiyamoto/asm-neurons | f34f64fac6062bbf8433911399d3f4753072ac31 | [
"Apache-2.0"
] | null | null | null | utils/plot.py | DaisukeMiyamoto/asm-neurons | f34f64fac6062bbf8433911399d3f4753072ac31 | [
"Apache-2.0"
] | null | null | null | utils/plot.py | DaisukeMiyamoto/asm-neurons | f34f64fac6062bbf8433911399d3f4753072ac31 | [
"Apache-2.0"
] | null | null | null | import matplotlib
matplotlib.use('Agg')
import numpy as np
import matplotlib.pyplot as plt
import sys
argvs = sys.argv
argc = len(argvs)
if argc < 3:
print 'Usage: ./%s [input_filename] [output_filename]' % (argvs[0])
quit()
in_datafile = argvs[1]
out_imagefile = argvs[2]
title = ''
if len(argvs) > 3:
t... | 16.78125 | 71 | 0.672253 | 86 | 537 | 4.127907 | 0.534884 | 0.090141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0.158287 | 537 | 31 | 72 | 17.322581 | 0.75885 | 0 | 0 | 0 | 0 | 0 | 0.148976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f9c542c2ff34811f042300a0ed7de01bf0ca4bc | 535 | py | Python | netgeardisc.py | nfirvine/netgeardisc | f2397d44bc6fda65ee8d7baf6a07e33cf2d49b93 | [
"MIT"
] | 5 | 2015-03-06T03:08:09.000Z | 2021-07-02T15:21:07.000Z | netgeardisc.py | nfirvine/netgeardisc | f2397d44bc6fda65ee8d7baf6a07e33cf2d49b93 | [
"MIT"
] | null | null | null | netgeardisc.py | nfirvine/netgeardisc | f2397d44bc6fda65ee8d7baf6a07e33cf2d49b93 | [
"MIT"
] | 1 | 2015-03-06T03:08:10.000Z | 2015-03-06T03:08:10.000Z | import socket
import time
import sys
if len(sys.argv) < 2 or sys.argv[1] in ('-h', '--help'):
print('netgeardisc <my IP>')
sys.exit(1)
else:
me = sys.argv[1]
p = b'000200000000000000000000000100000c07d2f20000000000000000000000000000000000000000'
sout = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
so... | 23.26087 | 87 | 0.699065 | 71 | 535 | 5.211268 | 0.633803 | 0.056757 | 0.043243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208889 | 0.158879 | 535 | 22 | 88 | 24.318182 | 0.613333 | 0 | 0 | 0 | 0 | 0 | 0.220561 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f9fa938b0dad2e98a6f6151fb7e665b2d6dbdbe | 1,958 | py | Python | fpiweb/migrations/0014_auto_20190523_2043.py | snelzing/Food-Pantry-Inventory | ff8803cc53ceeb012fb97c60373734f03f03bf6a | [
"MIT"
] | 22 | 2019-02-19T23:31:08.000Z | 2022-01-18T11:35:45.000Z | fpiweb/migrations/0014_auto_20190523_2043.py | snelzing/Food-Pantry-Inventory | ff8803cc53ceeb012fb97c60373734f03f03bf6a | [
"MIT"
] | 149 | 2019-02-20T21:20:22.000Z | 2022-03-11T23:49:08.000Z | fpiweb/migrations/0014_auto_20190523_2043.py | snelzing/Food-Pantry-Inventory | ff8803cc53ceeb012fb97c60373734f03f03bf6a | [
"MIT"
] | 28 | 2019-02-19T21:33:24.000Z | 2021-05-28T22:44:39.000Z | # Generated by Django 2.2 on 2019-05-24 00:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fpiweb', '0013_auto_20190420_1612'),
]
operations = [
migrations.AlterModelOptions(
name='activity',
options={'orderin... | 39.16 | 165 | 0.614913 | 193 | 1,958 | 6.062176 | 0.445596 | 0.075214 | 0.105983 | 0.099145 | 0.149573 | 0.105128 | 0 | 0 | 0 | 0 | 0 | 0.022176 | 0.263023 | 1,958 | 49 | 166 | 39.959184 | 0.788635 | 0.021961 | 0 | 0.44186 | 1 | 0 | 0.324098 | 0.012023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.093023 | 0 | 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 |
8fa64e6826fe81150e49f09c4431972df80e5051 | 5,456 | py | Python | networks/infill/ub_uresnet_infill.py | LArbys/ublarcvserver | 02381c937f49a2eab2f754017ab431c3f6fa70d7 | [
"Apache-2.0"
] | 2 | 2020-07-09T19:34:03.000Z | 2021-06-21T23:09:23.000Z | networks/infill/ub_uresnet_infill.py | LArbys/ublarcvserver | 02381c937f49a2eab2f754017ab431c3f6fa70d7 | [
"Apache-2.0"
] | null | null | null | networks/infill/ub_uresnet_infill.py | LArbys/ublarcvserver | 02381c937f49a2eab2f754017ab431c3f6fa70d7 | [
"Apache-2.0"
] | null | null | null | import os,sys
import torch as torch
import torch.nn as nn
import math
from common_layers import *
###########################################################
#
# U-ResNet
# U-net witih ResNet modules
#
# Semantic segmentation network used by MicroBooNE
# to label track/shower pixels
#
# resnet implemen... | 36.61745 | 130 | 0.582661 | 711 | 5,456 | 4.33052 | 0.248945 | 0.120818 | 0.066255 | 0.058461 | 0.336798 | 0.253004 | 0.093862 | 0.093862 | 0.086392 | 0.052614 | 0 | 0.052965 | 0.27676 | 5,456 | 148 | 131 | 36.864865 | 0.727319 | 0.153409 | 0 | 0.097561 | 0 | 0 | 0.04039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060976 | null | null | 0.170732 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fa80ff2ca860a9f1cda89698eefc7b893d43d61 | 3,027 | py | Python | config/settings/common.py | Ameriks/drklauns | bc8febd72ed6d3f685cf9ad48b487d5c9bb4170e | [
"MIT"
] | null | null | null | config/settings/common.py | Ameriks/drklauns | bc8febd72ed6d3f685cf9ad48b487d5c9bb4170e | [
"MIT"
] | null | null | null | config/settings/common.py | Ameriks/drklauns | bc8febd72ed6d3f685cf9ad48b487d5c9bb4170e | [
"MIT"
] | null | null | null | import environ
ROOT_DIR = environ.Path(__file__) - 3 # (drklauns/config/settings/common.py - 3 = drklauns/)
APPS_DIR = ROOT_DIR.path('drklauns')
env = environ.Env()
LOCALE_PATHS = [
str(APPS_DIR.path('locale')),
]
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.cont... | 27.026786 | 98 | 0.661051 | 310 | 3,027 | 6.270968 | 0.374194 | 0.080247 | 0.064815 | 0.095679 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004928 | 0.195573 | 3,027 | 111 | 99 | 27.27027 | 0.793429 | 0.017179 | 0 | 0.033333 | 0 | 0 | 0.514632 | 0.403633 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.011111 | 0.011111 | 0 | 0.011111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fab4db9db8f23b39e5b6941c7be2e2c880d2a1f | 774 | py | Python | setup.py | the-darklord/Wikidata_Harvester | 94cdc9eaa85e62662b40c0c708d1d186195dceab | [
"MIT"
] | null | null | null | setup.py | the-darklord/Wikidata_Harvester | 94cdc9eaa85e62662b40c0c708d1d186195dceab | [
"MIT"
] | null | null | null | setup.py | the-darklord/Wikidata_Harvester | 94cdc9eaa85e62662b40c0c708d1d186195dceab | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name = 'wikidata',
packages = ['wikidata'], # this must be the same as the name above
version = '0.1',
description = 'An API for exploiting Wikidata dump',
author = 'Jacques Fize, Gaurav Shrivastava',
author_email = 'jacques.fize@cirad.fr, gauravsh033@gmail.com',
keywor... | 33.652174 | 68 | 0.622739 | 82 | 774 | 5.853659 | 0.743902 | 0.09375 | 0.104167 | 0.108333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01528 | 0.239018 | 774 | 23 | 69 | 33.652174 | 0.79966 | 0.074935 | 0 | 0.086957 | 0 | 0 | 0.553221 | 0.060224 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8fb36c73e6a40bd971dff3ebd9a44c6e7c5607f7 | 2,776 | py | Python | api/number2text/app/core/language_manager.py | FranzDiebold/numerus-textus | 2abd1cd25e980a81a412e1ac471c3e0fb210e622 | [
"MIT"
] | 4 | 2018-01-22T06:40:45.000Z | 2020-02-04T19:46:28.000Z | api/number2text/app/core/language_manager.py | FranzDiebold/numerus-textus | 2abd1cd25e980a81a412e1ac471c3e0fb210e622 | [
"MIT"
] | null | null | null | api/number2text/app/core/language_manager.py | FranzDiebold/numerus-textus | 2abd1cd25e980a81a412e1ac471c3e0fb210e622 | [
"MIT"
] | null | null | null | import functools
from django.core.exceptions import ObjectDoesNotExist
from django.core.cache import cache
from django.utils.translation import ugettext as _
from app.models.test_language import TestLanguage
from app.models.german_language import GermanLanguage
from app.models.english_language import EnglishLanguage
... | 40.823529 | 167 | 0.688761 | 333 | 2,776 | 5.306306 | 0.237237 | 0.062252 | 0.033956 | 0.047538 | 0.269383 | 0.16695 | 0.109225 | 0.109225 | 0.053198 | 0 | 0 | 0.001401 | 0.228746 | 2,776 | 67 | 168 | 41.432836 | 0.823914 | 0.052233 | 0 | 0.142857 | 0 | 0 | 0.026667 | 0.008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.142857 | 0.081633 | 0.612245 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8fbc73b4cc5801b2094692885ba43f8d50f558ac | 15,509 | py | Python | python/ledap_tools.py | mknowlton15/genesis | 80b1baa621d7dbfea84a3b128b565dd92918d55f | [
"MIT"
] | null | null | null | python/ledap_tools.py | mknowlton15/genesis | 80b1baa621d7dbfea84a3b128b565dd92918d55f | [
"MIT"
] | null | null | null | python/ledap_tools.py | mknowlton15/genesis | 80b1baa621d7dbfea84a3b128b565dd92918d55f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#Steven Guinn
#01/04/2016
#University of Maryland Center for Environmental Science
#Appalachian Laboratory http://www.al.umces.edu/
#301 689 7146
#301 Braddock Rd Frostburg MD 215325
import os,sys
from osgeo import gdal
from osgeo import gdal_array
from osgeo.gdal_array import *
... | 33.788671 | 173 | 0.686182 | 2,543 | 15,509 | 4.05348 | 0.175777 | 0.006403 | 0.005239 | 0.006597 | 0.239038 | 0.182577 | 0.155316 | 0.134944 | 0.127571 | 0.092161 | 0 | 0.035287 | 0.137533 | 15,509 | 458 | 174 | 33.862445 | 0.735347 | 0.185376 | 0 | 0.156085 | 0 | 0.007937 | 0.034591 | 0.005449 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002646 | 0.031746 | null | null | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fbd1caf5275da4e36278a2cfeb2b96bda476a3c | 2,032 | py | Python | Initialise.py | dushyantRathore/Gmail-Notifier | a6d777a7554ede8e8c660c2bc815b034c3dbedf7 | [
"MIT"
] | null | null | null | Initialise.py | dushyantRathore/Gmail-Notifier | a6d777a7554ede8e8c660c2bc815b034c3dbedf7 | [
"MIT"
] | null | null | null | Initialise.py | dushyantRathore/Gmail-Notifier | a6d777a7554ede8e8c660c2bc815b034c3dbedf7 | [
"MIT"
] | null | null | null | import smtplib
import imaplib
import email
import pickle
from Tkinter import *
# Initialisation Function
class initialise():
def __init__(self):
self.root = Tk()
self.root.title("Gmail Notifier")
self.mainframe = Frame(self.root, padx=10, pady=10)
self.label1 = Label(self.mainfr... | 26.736842 | 85 | 0.606299 | 251 | 2,032 | 4.808765 | 0.38247 | 0.075394 | 0.062138 | 0.070423 | 0.169014 | 0.09942 | 0 | 0 | 0 | 0 | 0 | 0.037698 | 0.255906 | 2,032 | 75 | 86 | 27.093333 | 0.760582 | 0.03248 | 0 | 0 | 0 | 0 | 0.085671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0.102041 | 0.102041 | 0 | 0.163265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8fc083792cba4c7fc1d2f94dbb904af0e57ae84e | 641 | py | Python | testsetup.py | xpertbaseline/uitests | cabd6f84e5854757a00ea333680a406b0d427d1d | [
"MIT"
] | null | null | null | testsetup.py | xpertbaseline/uitests | cabd6f84e5854757a00ea333680a406b0d427d1d | [
"MIT"
] | null | null | null | testsetup.py | xpertbaseline/uitests | cabd6f84e5854757a00ea333680a406b0d427d1d | [
"MIT"
] | null | null | null | from locators import *
from utilities import *
from browserSetUp import *
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
class TestSetUp:
def __init__(self):
self.utilities = Utilities()
self.driver = DriverSetup(os.getenv('BROWSER'))
self.locator = Temperatu... | 29.136364 | 68 | 0.702028 | 77 | 641 | 5.727273 | 0.480519 | 0.090703 | 0.049887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196568 | 641 | 21 | 69 | 30.52381 | 0.856311 | 0 | 0 | 0 | 0 | 0 | 0.020313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.294118 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8fc636dfa04c30d7ccf3999d30b991b5de6d8988 | 2,689 | py | Python | vyperlogix/misc/paths.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | 1 | 2020-09-29T01:36:33.000Z | 2020-09-29T01:36:33.000Z | vyperlogix/misc/paths.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | vyperlogix/misc/paths.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | __copyright__ = """\
(c). Copyright 2008-2020, Vyper Logix Corp., All Rights Reserved.
Published under Creative Commons License
(http://creativecommons.org/licenses/by-nc/3.0/)
restricted to non-commercial educational use only.,
http://www.VyperLogix.com for details
THE AUTHOR VYPER LOGIX CORP DISCLAIMS ALL WARRA... | 32.792683 | 177 | 0.648196 | 406 | 2,689 | 4.229064 | 0.391626 | 0.017472 | 0.026209 | 0.037857 | 0.087362 | 0.036109 | 0.036109 | 0 | 0 | 0 | 0 | 0.013054 | 0.202306 | 2,689 | 81 | 178 | 33.197531 | 0.787413 | 0 | 0 | 0.083333 | 0 | 0 | 0.374256 | 0.055804 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013889 | 0.041667 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fc93afb29eb4aadfef34254130a202ad34f591b | 1,274 | py | Python | awards/tests.py | dicksonkariuki/Awards | 232fe015d3beac30c48ffe0a7be76f637b56d8cb | [
"Unlicense"
] | null | null | null | awards/tests.py | dicksonkariuki/Awards | 232fe015d3beac30c48ffe0a7be76f637b56d8cb | [
"Unlicense"
] | 6 | 2019-11-27T07:22:03.000Z | 2021-06-10T22:19:12.000Z | awards/tests.py | dicksonkariuki/Awards | 232fe015d3beac30c48ffe0a7be76f637b56d8cb | [
"Unlicense"
] | null | null | null | from django.test import TestCase
from .models import *
from django.contrib.auth.models import User
import datetime as dt
# Create your tests here.
class categoriesTestClass(TestCase):
def setUp(self):
self.photos = categories(categories='Art')
def test_instance(self):
self.assertTrue(isinstance... | 27.695652 | 59 | 0.669545 | 153 | 1,274 | 5.48366 | 0.261438 | 0.076281 | 0.066746 | 0.114422 | 0.564958 | 0.507747 | 0.507747 | 0.443385 | 0.331347 | 0 | 0 | 0.00398 | 0.211146 | 1,274 | 45 | 60 | 28.311111 | 0.830846 | 0.018053 | 0 | 0.411765 | 0 | 0 | 0.015224 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.294118 | false | 0 | 0.117647 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8fd9154ac8d640ae9c4ce6763fbbcb5d54025cfc | 4,129 | py | Python | src/olympus/utils/_r2_score.py | priyansh-1902/olympus | f57ad769918c0d5d805c439ab5ffbd180af698fa | [
"MIT"
] | null | null | null | src/olympus/utils/_r2_score.py | priyansh-1902/olympus | f57ad769918c0d5d805c439ab5ffbd180af698fa | [
"MIT"
] | null | null | null | src/olympus/utils/_r2_score.py | priyansh-1902/olympus | f57ad769918c0d5d805c439ab5ffbd180af698fa | [
"MIT"
] | null | null | null | """Replacement r2_score function for when sklearn is not available."""
import numpy as np
#===============================================================================
# BSD 3-Clause License
# Copyright (c) 2007-2021 The scikit-learn developers.
# All rights reserved.
# Redistribution and use in source and binary... | 44.880435 | 93 | 0.697748 | 591 | 4,129 | 4.796954 | 0.41286 | 0.021164 | 0.008466 | 0.01164 | 0.146032 | 0.111464 | 0.093827 | 0.077601 | 0.077601 | 0.077601 | 0 | 0.012195 | 0.205619 | 4,129 | 91 | 94 | 45.373626 | 0.852134 | 0.727053 | 0 | 0 | 0 | 0 | 0.058462 | 0 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.210526 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fe18c0169b6032a15aa41a0da0becc4888831c2 | 1,925 | py | Python | swift/codegen/lib/dbscheme.py | redsun82/codeql | cbdd4927cee593b715d8469240ce1d31edaaef9b | [
"MIT"
] | null | null | null | swift/codegen/lib/dbscheme.py | redsun82/codeql | cbdd4927cee593b715d8469240ce1d31edaaef9b | [
"MIT"
] | 4 | 2022-03-10T10:47:29.000Z | 2022-03-10T10:53:59.000Z | swift/codegen/lib/dbscheme.py | redsun82/codeql | cbdd4927cee593b715d8469240ce1d31edaaef9b | [
"MIT"
] | null | null | null | """ dbscheme format representation """
import logging
from dataclasses import dataclass
from typing import ClassVar, List
log = logging.getLogger(__name__)
dbscheme_keywords = {"case", "boolean", "int", "string", "type"}
@dataclass
class DbColumn:
schema_name: str
type: str
binding: bool = False
fi... | 18.333333 | 64 | 0.629091 | 237 | 1,925 | 4.983122 | 0.308017 | 0.094835 | 0.03387 | 0.038103 | 0.179509 | 0.094835 | 0 | 0 | 0 | 0 | 0 | 0.003566 | 0.271688 | 1,925 | 104 | 65 | 18.509615 | 0.838802 | 0.015584 | 0 | 0.315068 | 0 | 0 | 0.027557 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 1 | 0.082192 | false | 0 | 0.041096 | 0 | 0.657534 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8fec40e793236405252306472202ed7c18d34399 | 3,436 | py | Python | raven/utils/encoding.py | MyCollege/raven | 9447f3a55ae7703afe84c3493625e3c3fb700700 | [
"BSD-3-Clause"
] | null | null | null | raven/utils/encoding.py | MyCollege/raven | 9447f3a55ae7703afe84c3493625e3c3fb700700 | [
"BSD-3-Clause"
] | null | null | null | raven/utils/encoding.py | MyCollege/raven | 9447f3a55ae7703afe84c3493625e3c3fb700700 | [
"BSD-3-Clause"
] | null | null | null | """
raven.utils.encoding
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import six
import warnings
def force_text(s, encoding='utf-8', strings_only=False, errors='strict'):
"""
Similar to smart_text, e... | 35.791667 | 97 | 0.61234 | 447 | 3,436 | 4.621924 | 0.391499 | 0.023717 | 0.03727 | 0.023233 | 0.07938 | 0.062924 | 0 | 0 | 0 | 0 | 0 | 0.008983 | 0.287253 | 3,436 | 95 | 98 | 36.168421 | 0.834626 | 0.321595 | 0 | 0.321429 | 0 | 0 | 0.069523 | 0.013992 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.089286 | false | 0 | 0.071429 | 0 | 0.303571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8fed6d37136cb43fecdd084322e1469fd8a32888 | 1,645 | py | Python | compile_to_rpn.py | DTSCode/rpn | f156b8acfde61111b9f9bbfb4a329159e29452f1 | [
"MIT"
] | null | null | null | compile_to_rpn.py | DTSCode/rpn | f156b8acfde61111b9f9bbfb4a329159e29452f1 | [
"MIT"
] | null | null | null | compile_to_rpn.py | DTSCode/rpn | f156b8acfde61111b9f9bbfb4a329159e29452f1 | [
"MIT"
] | null | null | null | import operator_table, colors
def is_num(obj):
try:
float(obj)
return True
except ValueError:
return False
def compile_to_rpn(tokens):
operator_stack = []
rpn_code = []
for token in tokens:
if is_num(token):
rpn_code.append(token)
elif token =... | 26.532258 | 289 | 0.531915 | 172 | 1,645 | 4.895349 | 0.273256 | 0.169834 | 0.133017 | 0.099762 | 0.450119 | 0.311164 | 0.230404 | 0.133017 | 0.133017 | 0.133017 | 0 | 0.009533 | 0.36231 | 1,645 | 61 | 290 | 26.967213 | 0.793136 | 0 | 0 | 0.372093 | 0 | 0 | 0.039514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | null | null | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ffef15dc029cd3e417ae94cecb116dab8904bf1 | 211 | py | Python | Python-Practice.Program/ComputeSis_p2.py | dcod3r/Hacktoberfest-2021 | a69167321cf3475e625407446e2b6c8e54829df1 | [
"Apache-2.0"
] | 2 | 2021-10-01T13:52:55.000Z | 2021-10-01T13:52:58.000Z | Python-Practice.Program/ComputeSis_p2.py | dcod3r/Hacktoberfest-2021 | a69167321cf3475e625407446e2b6c8e54829df1 | [
"Apache-2.0"
] | 2 | 2021-09-30T16:33:25.000Z | 2021-10-14T06:15:43.000Z | Python-Practice.Program/ComputeSis_p2.py | dcod3r/Hacktoberfest-2021 | a69167321cf3475e625407446e2b6c8e54829df1 | [
"Apache-2.0"
] | 8 | 2021-09-30T15:55:49.000Z | 2021-10-14T07:57:13.000Z | a,b = input("Enter A(x1, y1): ").split()
c,d = input("Enter B(x2, y2): ").split()
distance = pow((pow((int(c)-int(a)),2) + pow((int(d)-int(b)),2)), 0.5)
print("Distance between points A and B: ",distance)
| 35.166667 | 71 | 0.56872 | 40 | 211 | 3 | 0.525 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.146919 | 211 | 5 | 72 | 42.2 | 0.622222 | 0 | 0 | 0 | 0 | 0 | 0.326829 | 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 |
8fff74067e5f95883947dffc14e9d5e4a5938e53 | 640 | py | Python | src/data_hub/tnris_org/migrations/0002_auto_20190710_1153.py | TNRIS/api.tnris.org | 46620a4edf0682c158907f110158110801e9c398 | [
"MIT"
] | 6 | 2019-05-22T20:01:45.000Z | 2020-08-18T12:05:12.000Z | src/data_hub/tnris_org/migrations/0002_auto_20190710_1153.py | TNRIS/api.tnris.org | 46620a4edf0682c158907f110158110801e9c398 | [
"MIT"
] | 73 | 2019-05-22T19:57:30.000Z | 2022-03-12T00:59:33.000Z | src/data_hub/tnris_org/migrations/0002_auto_20190710_1153.py | TNRIS/api.tnris.org | 46620a4edf0682c158907f110158110801e9c398 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.13 on 2019-07-10 16:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tnris_org', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='tnrisdocurl',
name='doc_name',
... | 26.666667 | 97 | 0.6125 | 68 | 640 | 5.617647 | 0.602941 | 0.104712 | 0.13089 | 0.151832 | 0.314136 | 0.314136 | 0.314136 | 0.314136 | 0.314136 | 0.314136 | 0 | 0.055794 | 0.271875 | 640 | 23 | 98 | 27.826087 | 0.763949 | 0.071875 | 0 | 0.235294 | 1 | 0 | 0.14527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89029dedc3e067fb9b0e55fe9fa4b7a4dc5b0a16 | 3,326 | py | Python | V2RaycSpider0825/spiderNest/V2Ray_vms.py | TOMJERRY23333/V2RayCloudSpider | 0647db8c7b67e4393d1f65dadc08d7e16c1dc324 | [
"MIT"
] | 1 | 2020-09-16T12:59:32.000Z | 2020-09-16T12:59:32.000Z | V2RaycSpider0825/spiderNest/V2Ray_vms.py | TOMJERRY23333/V2RayCloudSpider | 0647db8c7b67e4393d1f65dadc08d7e16c1dc324 | [
"MIT"
] | null | null | null | V2RaycSpider0825/spiderNest/V2Ray_vms.py | TOMJERRY23333/V2RayCloudSpider | 0647db8c7b67e4393d1f65dadc08d7e16c1dc324 | [
"MIT"
] | null | null | null | from spiderNest.preIntro import *
from MiddleKey import VMes_IO
import threading
"""#######################################################################################"""
# 机场官网
fa = FakeAccount()
ufo_SignUP = random.choice(fa.air_target('v2ray'))
ufo_SignIn = '/'.join(ufo_SignUP.split('/')[:-1] + ['login'])
# 账号信... | 26.822581 | 93 | 0.535478 | 341 | 3,326 | 4.973607 | 0.460411 | 0.028892 | 0.019458 | 0.033608 | 0.149175 | 0.050708 | 0.050708 | 0.050708 | 0.050708 | 0 | 0 | 0.003333 | 0.278413 | 3,326 | 123 | 94 | 27.04065 | 0.703333 | 0.159351 | 0 | 0.072727 | 0 | 0 | 0.047093 | 0.020885 | 0 | 0 | 0 | 0 | 0.036364 | 1 | 0.109091 | false | 0.127273 | 0.054545 | 0 | 0.181818 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
890ad2cac54681305a50b8fa01e8fdb3df0d5954 | 3,083 | py | Python | .py_files/decisiontreeclassifier(telco_dataset).py | husain97/ML_Algorithms_Comparison_Study-Telco-Dataset- | c95475a28ef28cda01cac4e2c9d56a0f32b47d45 | [
"Apache-2.0"
] | 2 | 2020-01-02T13:52:34.000Z | 2020-01-05T04:29:44.000Z | .py_files/decisiontreeclassifier(telco_dataset).py | husain97/ML_Algorithms_Comparison_Study-Telco-Dataset- | c95475a28ef28cda01cac4e2c9d56a0f32b47d45 | [
"Apache-2.0"
] | null | null | null | .py_files/decisiontreeclassifier(telco_dataset).py | husain97/ML_Algorithms_Comparison_Study-Telco-Dataset- | c95475a28ef28cda01cac4e2c9d56a0f32b47d45 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""DecisionTreeClassifier(Telco Dataset).ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1lSnAsYluPfeTR_sbPvf5qGcz1wBwhRNW
"""
import pandas as pd
import numpy as np
from google.colab import files
uploaded = files.upload()... | 32.114583 | 92 | 0.752189 | 420 | 3,083 | 5.321429 | 0.354762 | 0.054139 | 0.020134 | 0.037584 | 0.612528 | 0.612528 | 0.596421 | 0.596421 | 0.596421 | 0.596421 | 0 | 0.00928 | 0.126176 | 3,083 | 96 | 93 | 32.114583 | 0.820342 | 0.099254 | 0 | 0.615385 | 1 | 0 | 0.158656 | 0.01301 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.276923 | 0 | 0.276923 | 0.123077 | 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 |
89195579572d80d7265c982b7e72a2a5a51e607f | 753 | py | Python | tests/test_counters.py | automerge/automerge-py | ea93f6a65144435e780e9477dc9b6e580a6d22c7 | [
"MIT"
] | 11 | 2021-05-29T03:14:12.000Z | 2022-02-22T02:57:13.000Z | tests/test_counters.py | automerge/automerge-py | ea93f6a65144435e780e9477dc9b6e580a6d22c7 | [
"MIT"
] | null | null | null | tests/test_counters.py | automerge/automerge-py | ea93f6a65144435e780e9477dc9b6e580a6d22c7 | [
"MIT"
] | 1 | 2021-04-16T20:26:44.000Z | 2021-04-16T20:26:44.000Z | import json
import unittest
from automerge import doc
from automerge.datatypes import Counter
class TestCounters(unittest.TestCase):
def test_make_counters_behave_like_primitive_numbers(self):
d0 = doc.Doc(initial_data={"birds": Counter(3)})
self.assertEqual(d0["birds"], 3)
self.assertTrue... | 35.857143 | 71 | 0.660027 | 103 | 753 | 4.650485 | 0.446602 | 0.087683 | 0.037578 | 0.050104 | 0.146138 | 0.146138 | 0.146138 | 0.146138 | 0 | 0 | 0 | 0.034596 | 0.193891 | 753 | 20 | 72 | 37.65 | 0.75453 | 0 | 0 | 0 | 0 | 0 | 0.112882 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64df68190e99486e0adf8e4254be80d677514a1c | 968 | py | Python | src/scripts/drunkjudge.py | jphacks/NG_1707 | 76866bfa4a9f26494eadda22ead8c79ae91530e3 | [
"MIT"
] | null | null | null | src/scripts/drunkjudge.py | jphacks/NG_1707 | 76866bfa4a9f26494eadda22ead8c79ae91530e3 | [
"MIT"
] | 2 | 2017-10-21T08:12:25.000Z | 2017-10-22T00:31:13.000Z | src/scripts/drunkjudge.py | jphacks/NG_1707 | 76866bfa4a9f26494eadda22ead8c79ae91530e3 | [
"MIT"
] | 1 | 2017-10-21T04:57:21.000Z | 2017-10-21T04:57:21.000Z | # -*- coding: utf-8 -*-
"""
2017/06/26
RGB値それぞれの画像
python 2.7.13
opencv 3.XX
numpy 1.12.1
"""
import numpy as np
import cv2
import sys
def drunkjudge(file_name):
# 画像の読み込み
img_color = cv2.imread(file_name)
# RGB値をそれぞれ抽出
imgR = img_color[:,:,2]
imgG = img_color[:,:,1]
imgB = img... | 23.609756 | 89 | 0.672521 | 145 | 968 | 4.275862 | 0.37931 | 0.270968 | 0.120968 | 0.058065 | 0.164516 | 0.103226 | 0.103226 | 0.103226 | 0 | 0 | 0 | 0.064475 | 0.182851 | 968 | 40 | 90 | 24.2 | 0.719343 | 0.282025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.368421 | 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 |
64e64b847f37b6a4499f2c01bd469a5913e0ea2f | 1,880 | py | Python | tests/test_util.py | wikimedia/quibble | f0a837bc930e96f4cc336b578ffdfe26748af55d | [
"Apache-2.0"
] | 4 | 2019-06-15T21:20:03.000Z | 2020-11-10T19:24:32.000Z | tests/test_util.py | wikimedia/quibble | f0a837bc930e96f4cc336b578ffdfe26748af55d | [
"Apache-2.0"
] | null | null | null | tests/test_util.py | wikimedia/quibble | f0a837bc930e96f4cc336b578ffdfe26748af55d | [
"Apache-2.0"
] | 3 | 2019-03-01T08:06:28.000Z | 2020-08-18T21:18:57.000Z | from unittest import mock
import pytest
import quibble.util
from quibble.util import (
isCoreOrVendor,
isExtOrSkin,
move_item_to_head,
php_version,
)
def test_parallel_run_accepts_an_empty_list_of_tasks():
quibble.util.parallel_run([])
assert True
# quibble.util.isCoreOrVendor
def test_is... | 23.5 | 64 | 0.73617 | 242 | 1,880 | 5.46281 | 0.268595 | 0.06354 | 0.037821 | 0.05295 | 0.207262 | 0.130106 | 0.083207 | 0 | 0 | 0 | 0 | 0.014465 | 0.154255 | 1,880 | 79 | 65 | 23.797468 | 0.816981 | 0.02766 | 0 | 0 | 0 | 0.021739 | 0.19726 | 0.038904 | 0 | 0 | 0 | 0 | 0.304348 | 1 | 0.26087 | false | 0 | 0.086957 | 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 |
64e68d71e9367b3b196648ba269e0028b4bf1da3 | 1,300 | py | Python | yelp_data_parsing.py | tsmanikandan/CSE469-Yelp | 0a49d582399198c1ab56e58c65cb2abea0a24cd2 | [
"MIT"
] | null | null | null | yelp_data_parsing.py | tsmanikandan/CSE469-Yelp | 0a49d582399198c1ab56e58c65cb2abea0a24cd2 | [
"MIT"
] | null | null | null | yelp_data_parsing.py | tsmanikandan/CSE469-Yelp | 0a49d582399198c1ab56e58c65cb2abea0a24cd2 | [
"MIT"
] | null | null | null | import ujson, json
import sets
import io
busdata = []
with open('business.json', 'rb') as bus:
for line in bus:
business = ujson.loads(line)
busdata.append(business)
print "Opened Yelp JSON file"
citydict = {}
citylist = []
for business in busdata:
citylist.append(business['city'].lower())
c... | 25.490196 | 80 | 0.625385 | 154 | 1,300 | 5.253247 | 0.448052 | 0.121137 | 0.13597 | 0.049444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002006 | 0.233077 | 1,300 | 50 | 81 | 26 | 0.809428 | 0 | 0 | 0.105263 | 0 | 0 | 0.17 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078947 | null | null | 0.131579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64e82dc3c42b2fe35720c86bebe004832c8a1d54 | 939 | py | Python | benchmarks/simpl/vips/src/gettext-fix.py | nicholasjalbert/Thrille | 117dbdbe93f81eec9398a75aebc62543498363ac | [
"OLDAP-2.8"
] | 2 | 2015-02-19T13:15:08.000Z | 2018-05-30T05:34:15.000Z | benchmarks/simpl/vips/src/gettext-fix.py | nicholasjalbert/Thrille | 117dbdbe93f81eec9398a75aebc62543498363ac | [
"OLDAP-2.8"
] | null | null | null | benchmarks/simpl/vips/src/gettext-fix.py | nicholasjalbert/Thrille | 117dbdbe93f81eec9398a75aebc62543498363ac | [
"OLDAP-2.8"
] | null | null | null | # Cleans up a problem in the gettext distribution
#
#
# Author: Nick Jalbert (jalbert@eecs.berkeley.edu)
#
import os
import sys
def fixWriteCatalog():
print "Fixing write-catalog.c file..."
cwd = os.getcwd()
gettext_path = os.path.join(cwd, "gettext-0.17", "gettext-tools", "src")
assert os.path.... | 21.837209 | 77 | 0.623003 | 129 | 939 | 4.364341 | 0.48062 | 0.127886 | 0.046181 | 0.063943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.237487 | 939 | 42 | 78 | 22.357143 | 0.780726 | 0.103301 | 0 | 0 | 0 | 0 | 0.244019 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0 | null | null | 0 | 0.086957 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64eb491f71eb3ceaf0e684eec6e4c5ef2d39c445 | 1,296 | py | Python | fxchangeterm/main/currency_converter.py | collinsuzebu/fxchangeterm | 8630f056eb0eb65f58f2c54253e6ada2fd154957 | [
"MIT"
] | 1 | 2020-09-06T03:24:01.000Z | 2020-09-06T03:24:01.000Z | fxchangeterm/main/currency_converter.py | collinsuzebu/fxchangeterm | 8630f056eb0eb65f58f2c54253e6ada2fd154957 | [
"MIT"
] | null | null | null | fxchangeterm/main/currency_converter.py | collinsuzebu/fxchangeterm | 8630f056eb0eb65f58f2c54253e6ada2fd154957 | [
"MIT"
] | null | null | null |
import json
from .currency import Currency
class CurrencyConverter:
def __init__(self, default_currency, new_currency=None):
self._default_currency = default_currency
self._new_currency = new_currency
self._converters = {
Currency.USD: self._to_usd,
Currency.EUR: self._to_eur,
Currency.GBP: self._to... | 21.245902 | 69 | 0.724537 | 179 | 1,296 | 4.988827 | 0.290503 | 0.073908 | 0.067189 | 0.053751 | 0.071669 | 0.071669 | 0.071669 | 0 | 0 | 0 | 0 | 0.001852 | 0.166667 | 1,296 | 61 | 70 | 21.245902 | 0.825 | 0 | 0 | 0.097561 | 0 | 0 | 0.054012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0 | 0.073171 | 0.073171 | 0.512195 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
64f77241c530d284e81b74bde30132da676c95d3 | 1,551 | py | Python | src/tests/network/conftest.py | mhubii/GIFT-Grab | c9678e25edbd0403b25366d60a3e2e2e5c32320f | [
"BSD-3-Clause"
] | 41 | 2017-06-24T21:58:17.000Z | 2022-03-29T04:44:05.000Z | src/tests/network/conftest.py | mhubii/GIFT-Grab | c9678e25edbd0403b25366d60a3e2e2e5c32320f | [
"BSD-3-Clause"
] | 91 | 2017-06-14T09:57:40.000Z | 2020-12-02T11:36:19.000Z | src/tests/network/conftest.py | mhubii/GIFT-Grab | c9678e25edbd0403b25366d60a3e2e2e5c32320f | [
"BSD-3-Clause"
] | 15 | 2017-05-21T14:04:50.000Z | 2021-11-22T06:03:26.000Z | from pytest import fixture
from pygiftgrab import ColourSpace
def pytest_addoption(parser):
parser.addoption('--address', action='store',
help='Network source address')
parser.addoption('--init-delay', action='store', type=float,
help='Network source initialisation de... | 31.653061 | 79 | 0.659574 | 170 | 1,551 | 5.958824 | 0.329412 | 0.086871 | 0.093781 | 0.108588 | 0.242843 | 0.061204 | 0 | 0 | 0 | 0 | 0 | 0.007341 | 0.209542 | 1,551 | 48 | 80 | 32.3125 | 0.818923 | 0 | 0 | 0.138889 | 0 | 0 | 0.260477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0.111111 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
64f876ba87680db96b6d87c8bb57cc60b43024a3 | 482 | py | Python | example/recharge_pinless.py | takumade/Hot-Recharge-ZW | 9d59bcdb83c0ad38c7a4b944bc74e82ed20adda1 | [
"MIT"
] | 8 | 2020-07-22T07:25:48.000Z | 2021-12-18T17:38:45.000Z | example/recharge_pinless.py | takumade/Hot-Recharge-ZW | 9d59bcdb83c0ad38c7a4b944bc74e82ed20adda1 | [
"MIT"
] | 2 | 2020-12-28T07:31:49.000Z | 2021-09-15T20:49:34.000Z | example/recharge_pinless.py | DonnC/Hot-Recharge-ZW | 51bf6bf09aea879dc06f99f6ac7752b354ed3be8 | [
"MIT"
] | 2 | 2021-02-04T10:01:23.000Z | 2021-02-13T23:17:20.000Z | # recharge_pinless.py
# @author: Donald Chinhuru
# @created: 09 Dec 2019
# @updated: 09 Mar 2020
import hotrecharge
# use config helper class
config = hotrecharge.HRAuthConfig(
access_code='',
access_password='',
reference=''
)
api = hotrecharge.HotRecharge(config=config)
try:
res... | 20.083333 | 69 | 0.670124 | 56 | 482 | 5.714286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.215768 | 482 | 23 | 70 | 20.956522 | 0.798942 | 0.23444 | 0 | 0 | 0 | 0 | 0.126844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
64ff2d2766ace662ed1bcd3bf8437face4e29239 | 1,071 | py | Python | 004__cartesian_coordinate_system/spherical2cartesian.py | AstrophysicsAndPython/astrophysicsandpython__main | b8f8d38ee38865eea8c742c1964aeabec1c510bb | [
"Apache-2.0"
] | null | null | null | 004__cartesian_coordinate_system/spherical2cartesian.py | AstrophysicsAndPython/astrophysicsandpython__main | b8f8d38ee38865eea8c742c1964aeabec1c510bb | [
"Apache-2.0"
] | 4 | 2022-02-10T08:44:01.000Z | 2022-03-30T19:43:04.000Z | 004__cartesian_coordinate_system/spherical2cartesian.py | AstrophysicsAndPython/astrophysicsandpython__main | b8f8d38ee38865eea8c742c1964aeabec1c510bb | [
"Apache-2.0"
] | null | null | null | """
Created on May 12 22:47:36 2022
"""
import numpy as np
def spherical2cartesian(spherical_coordinates, deg_rad: str = 'rad'):
"""
Converts spherical coordinates to Cartesian/rectangular coordinates.
Parameters
----------
spherical_coordinates:
A tuple containing spherical coordinates.... | 24.340909 | 87 | 0.643324 | 132 | 1,071 | 5.106061 | 0.5 | 0.237389 | 0.068249 | 0.077151 | 0.124629 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.253035 | 1,071 | 43 | 88 | 24.906977 | 0.8225 | 0.492997 | 0 | 0 | 0 | 0 | 0.012685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 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 |
8f05857a29a85d3c407cc7e18a9909f46f19579d | 223 | py | Python | FTP/conf/settings.py | yezimai/oldboyProject | 889eebc2e6158b07ac0964b25eb01df743ad0117 | [
"Apache-2.0"
] | null | null | null | FTP/conf/settings.py | yezimai/oldboyProject | 889eebc2e6158b07ac0964b25eb01df743ad0117 | [
"Apache-2.0"
] | null | null | null | FTP/conf/settings.py | yezimai/oldboyProject | 889eebc2e6158b07ac0964b25eb01df743ad0117 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
BIND_HOST='0.0.0.0'
BIND_PORT=9999
USER_HOME = '%s/var/users' %BASE_DIR
USER_ACCOUNT={
'alex':{'password':'123456',
'quotation':1000000,#1GB
'expire':'2017-01-22'
}
} | 18.583333 | 36 | 0.560538 | 31 | 223 | 3.870968 | 0.83871 | 0.05 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178161 | 0.219731 | 223 | 12 | 37 | 18.583333 | 0.511494 | 0.103139 | 0 | 0 | 0 | 0 | 0.313131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8f09c73f27b291c64b9f4b1c6becbda95c418d6e | 268 | py | Python | osrc/rate_limit.py | dmessing/osrc | 7f07ac5cac184d48c0b04e2e5098970a13d3cc15 | [
"MIT"
] | 279 | 2015-01-05T15:29:07.000Z | 2021-12-12T08:58:20.000Z | osrc/rate_limit.py | dmessing/osrc | 7f07ac5cac184d48c0b04e2e5098970a13d3cc15 | [
"MIT"
] | 24 | 2015-01-01T00:06:06.000Z | 2020-08-25T07:41:52.000Z | osrc/rate_limit.py | dmessing/osrc | 7f07ac5cac184d48c0b04e2e5098970a13d3cc15 | [
"MIT"
] | 63 | 2015-01-16T09:59:00.000Z | 2020-08-11T16:05:52.000Z | # -*- coding: utf-8 -*-
from __future__ import division, print_function
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address
__all__ = ["limiter"]
limiter = Limiter(
key_func=get_remote_address,
global_limits=["10/minute"],
)
| 20.615385 | 49 | 0.753731 | 35 | 268 | 5.285714 | 0.628571 | 0.097297 | 0.172973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013043 | 0.141791 | 268 | 12 | 50 | 22.333333 | 0.791304 | 0.078358 | 0 | 0 | 0 | 0 | 0.065306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8f0c02164ea0fe03fbf102b2994c76eada349a26 | 1,075 | py | Python | setup.py | ismaillatona/strongswan | f6464e1355cbbf9ae2f3fb146e4c3428ef56f66a | [
"MIT"
] | null | null | null | setup.py | ismaillatona/strongswan | f6464e1355cbbf9ae2f3fb146e4c3428ef56f66a | [
"MIT"
] | null | null | null | setup.py | ismaillatona/strongswan | f6464e1355cbbf9ae2f3fb146e4c3428ef56f66a | [
"MIT"
] | null | null | null | from setuptools import setup
with open('README.rst') as file:
long_description = file.read()
setup(
name="vici",
version="@EGG_VERSION@",
description="Native Python interface for strongSwan's VICI protocol",
long_description=long_description,
author="strongSwan Project",
author_email="info... | 33.59375 | 73 | 0.632558 | 110 | 1,075 | 6.118182 | 0.609091 | 0.141159 | 0.185736 | 0.154532 | 0.080238 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013285 | 0.229767 | 1,075 | 31 | 74 | 34.677419 | 0.799517 | 0 | 0 | 0 | 0 | 0 | 0.564651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 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 |
8f0d5d930713fff749015edcc2a84f81a85c9319 | 774 | py | Python | package_name/module.py | kashik0i/py-json-mysql-wrapper | d9373e68037861656ca2ffd0430c0aa7ea751704 | [
"MIT"
] | 23 | 2019-10-12T07:54:08.000Z | 2022-03-28T19:59:11.000Z | package_name/module.py | kashik0i/py-json-mysql-wrapper | d9373e68037861656ca2ffd0430c0aa7ea751704 | [
"MIT"
] | 76 | 2021-03-23T10:59:03.000Z | 2022-03-07T22:11:15.000Z | package_name/module.py | kashik0i/py-json-mysql-wrapper | d9373e68037861656ca2ffd0430c0aa7ea751704 | [
"MIT"
] | 11 | 2019-06-26T08:57:37.000Z | 2022-02-27T06:28:44.000Z | """
Module provides a simple cubic_rectification function.
"""
import numpy as np
def cubic_rectification(x, verbose=False):
"""
Rectified cube of an array.
Parameters
----------
x : numpy.ndarray
Input array.
verbose : bool, optional
Whether to print out details. Default is ... | 21.5 | 78 | 0.613695 | 97 | 774 | 4.876289 | 0.639175 | 0.07611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005329 | 0.27261 | 774 | 35 | 79 | 22.114286 | 0.834814 | 0.653747 | 0 | 0 | 0 | 0 | 0.163842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8f188da67e7fc2414a83e54f2906e2ddd55b3407 | 665 | py | Python | app/consumers.py | hongphuong0211/Shrimp-Farming-Management-System | ffc172612dd75e58aa091b0bbb64d5c699b546d0 | [
"MIT"
] | 1 | 2021-07-15T17:29:08.000Z | 2021-07-15T17:29:08.000Z | app/consumers.py | hongphuong0211/Shrimp-Farming-Management-System | ffc172612dd75e58aa091b0bbb64d5c699b546d0 | [
"MIT"
] | null | null | null | app/consumers.py | hongphuong0211/Shrimp-Farming-Management-System | ffc172612dd75e58aa091b0bbb64d5c699b546d0 | [
"MIT"
] | 2 | 2021-07-22T09:46:07.000Z | 2021-12-17T06:11:26.000Z | from channels.generic.websocket import AsyncWebsocketConsumer
import json
class Consumer(AsyncWebsocketConsumer):
async def connect(self):
self.user_name = self.scope['url_route']['kwargs']['user_name']
await self.channel_layer.group_add(
self.user_name,
self.channel_name
... | 24.62963 | 71 | 0.633083 | 76 | 665 | 5.355263 | 0.473684 | 0.110565 | 0.088452 | 0.117936 | 0.304668 | 0.176904 | 0.176904 | 0.176904 | 0 | 0 | 0 | 0 | 0.273684 | 665 | 27 | 72 | 24.62963 | 0.84265 | 0 | 0 | 0.222222 | 0 | 0 | 0.042042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f1cdb75f69bfa30071b9d0a89c66f4663f27705 | 463 | py | Python | amy/workshops/migrations/0136_auto_20180524_1042.py | code-review-doctor/amy | 268c1a199510457891459f3ddd73fcce7fe2b974 | [
"MIT"
] | 53 | 2015-01-10T17:39:19.000Z | 2019-06-12T17:36:34.000Z | amy/workshops/migrations/0136_auto_20180524_1042.py | code-review-doctor/amy | 268c1a199510457891459f3ddd73fcce7fe2b974 | [
"MIT"
] | 1,176 | 2015-01-02T06:32:47.000Z | 2019-06-18T11:57:47.000Z | amy/workshops/migrations/0136_auto_20180524_1042.py | code-review-doctor/amy | 268c1a199510457891459f3ddd73fcce7fe2b974 | [
"MIT"
] | 44 | 2015-01-03T15:08:56.000Z | 2019-06-09T05:33:08.000Z | # Generated by Django 2.0.5 on 2018-05-24 15:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('workshops', '0135_auto_20180519_1403'),
]
operations = [
migrations.AlterModelOptions(
name='person',
options={'ordering': [... | 25.722222 | 159 | 0.632829 | 49 | 463 | 5.857143 | 0.836735 | 0.090592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087571 | 0.235421 | 463 | 17 | 160 | 27.235294 | 0.723164 | 0.097192 | 0 | 0 | 1 | 0 | 0.350962 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f25899b5cca6bb0bfd5032e9782083a5e0fe262 | 7,420 | py | Python | grading/mossum/mossum/mossum.py | mahsu/cs5356 | 570403fb1321de97710c90c961ac040f7ad51c16 | [
"CC-BY-4.0",
"MIT"
] | 32 | 2017-08-23T19:12:56.000Z | 2022-01-14T18:55:36.000Z | grading/mossum/mossum/mossum.py | mahsu/cs5356 | 570403fb1321de97710c90c961ac040f7ad51c16 | [
"CC-BY-4.0",
"MIT"
] | 113 | 2017-08-23T20:35:29.000Z | 2017-12-05T10:55:42.000Z | grading/mossum/mossum/mossum.py | mahsu/cs5356 | 570403fb1321de97710c90c961ac040f7ad51c16 | [
"CC-BY-4.0",
"MIT"
] | 391 | 2017-08-23T19:01:23.000Z | 2020-12-01T07:02:11.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Mossum is a tool for summarizing results from Stanford's Moss. The tool
generates a graph for (multiple) results from Moss, which can help in
identifying groups of students that have shared solutions.
The tool can also generate a report, which shows which solutions ar... | 32.121212 | 114 | 0.609569 | 994 | 7,420 | 4.469819 | 0.242455 | 0.028359 | 0.053567 | 0.012379 | 0.139996 | 0.109611 | 0.088679 | 0.051317 | 0.020707 | 0 | 0 | 0.002913 | 0.259704 | 7,420 | 230 | 115 | 32.26087 | 0.805935 | 0.065499 | 0 | 0.105263 | 1 | 0 | 0.167076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.052632 | 0.005848 | 0.19883 | 0.011696 | 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 |
8f2b0bc00d4d23b77956c73843d36e1aadf63a54 | 8,055 | py | Python | src/web/monacotests.py | hulu/monaco | 689dbc4e6a2b2363b612756300ba030330bb3516 | [
"MIT"
] | 29 | 2015-10-06T22:58:56.000Z | 2022-02-09T21:53:50.000Z | src/web/monacotests.py | shalomabitan/monaco | 689dbc4e6a2b2363b612756300ba030330bb3516 | [
"MIT"
] | null | null | null | src/web/monacotests.py | shalomabitan/monaco | 689dbc4e6a2b2363b612756300ba030330bb3516 | [
"MIT"
] | 7 | 2016-03-02T05:15:18.000Z | 2022-02-09T21:54:02.000Z | #!/usr/bin/python
'''
This defines system tests that can be run against a running installation of Monaco
to verify the consistency/sanity/status of it's internals
'''
import redis
import schema
import re
import logging
import StringIO
# tests
def check_all_apps_in_apps_list(testlogger, r):
'''
Check if the mon... | 36.121076 | 154 | 0.625698 | 1,148 | 8,055 | 4.228223 | 0.186411 | 0.028842 | 0.012979 | 0.035229 | 0.383189 | 0.315822 | 0.214874 | 0.156366 | 0.132056 | 0.132056 | 0 | 0.004456 | 0.275605 | 8,055 | 222 | 155 | 36.283784 | 0.827421 | 0.008442 | 0 | 0.380117 | 0 | 0.011696 | 0.145583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02924 | 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 |
8f2bc7719026a92c4ac35fa5ddff915a7564e40c | 563 | py | Python | app/main/model/snapshot_model.py | ZididadaSunshine/Statistics-API | 571e694640067f7f644f97e715aa8d2bcc5293b6 | [
"Unlicense"
] | null | null | null | app/main/model/snapshot_model.py | ZididadaSunshine/Statistics-API | 571e694640067f7f644f97e715aa8d2bcc5293b6 | [
"Unlicense"
] | 2 | 2018-11-29T13:52:25.000Z | 2018-11-29T14:10:36.000Z | app/main/model/snapshot_model.py | ZididadaSunshine/Statistics-API | 571e694640067f7f644f97e715aa8d2bcc5293b6 | [
"Unlicense"
] | null | null | null | from app.main import db
class Snapshot(db.Model):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
spans_from = db.Column(db.DateTime, nullable=False)
spans_to = db.Column(db.DateTime, nullable=False)
statistics = db.Column(db.JSON, nullable=False)
sentiment = db.Column(db.Float, n... | 37.533333 | 80 | 0.706927 | 81 | 563 | 4.790123 | 0.407407 | 0.123711 | 0.154639 | 0.061856 | 0.257732 | 0.159794 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154529 | 563 | 14 | 81 | 40.214286 | 0.815126 | 0 | 0 | 0 | 0 | 0 | 0.14032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.090909 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8f37d1f9ba7814c1fd974afcda19e8ab77f9ab41 | 2,796 | py | Python | scrapeconfig_server/scrapeconfig_dashboard/feeds.py | MikeKMiller/ScraperEngine | 45b14c74a4edf304ad51b02feb51d2e3c03c6c1a | [
"BSD-3-Clause"
] | null | null | null | scrapeconfig_server/scrapeconfig_dashboard/feeds.py | MikeKMiller/ScraperEngine | 45b14c74a4edf304ad51b02feb51d2e3c03c6c1a | [
"BSD-3-Clause"
] | null | null | null | scrapeconfig_server/scrapeconfig_dashboard/feeds.py | MikeKMiller/ScraperEngine | 45b14c74a4edf304ad51b02feb51d2e3c03c6c1a | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.syndication.views import Feed
#from django.urls import reverse
from .models import JobItem
from django.utils.feedgenerator import Rss201rev2Feed
from django.utils.feedgenerator import Atom1Feed
from datetime import datetime
# RSS feeds powered by Django's syndication framework use MIME type
# 'a... | 28.824742 | 84 | 0.607654 | 356 | 2,796 | 4.730337 | 0.348315 | 0.024941 | 0.035629 | 0.021378 | 0.263658 | 0.191211 | 0.152019 | 0.152019 | 0.152019 | 0.0962 | 0 | 0.010463 | 0.282189 | 2,796 | 96 | 85 | 29.125 | 0.8286 | 0.232117 | 0 | 0.155556 | 0 | 0 | 0.081147 | 0.028676 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | 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 |
8f458cfa9eba348325a8a7f44b10434a51120763 | 385 | py | Python | ege_theme/templatetags/common_utils.py | suap-ead/lib_theme | 3a07c96226dfc0dfbb2e7d9bf09c45f0ea77b6ed | [
"MIT"
] | null | null | null | ege_theme/templatetags/common_utils.py | suap-ead/lib_theme | 3a07c96226dfc0dfbb2e7d9bf09c45f0ea77b6ed | [
"MIT"
] | 3 | 2020-10-02T16:47:06.000Z | 2021-11-04T00:55:30.000Z | suap_ead/templatetags/common_utils.py | suap-ead/suap_ead | 480027d2bd1682e6f707c0638155f53e19f0a225 | [
"MIT"
] | 1 | 2018-09-12T12:46:27.000Z | 2018-09-12T12:46:27.000Z | from django import template
from django.contrib import admin
register = template.Library()
class CustomRequest:
def __init__(self, user):
self.user = user
@register.simple_tag(takes_context=True)
def get_app_list(context, **kwargs):
custom_request = CustomRequest(context['request'].user)
app_li... | 22.647059 | 59 | 0.750649 | 51 | 385 | 5.392157 | 0.529412 | 0.101818 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 385 | 16 | 60 | 24.0625 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8f48206cdb4b908e15ab7345e7083f6c968c09ba | 267 | py | Python | tests/test_sync.py | waketzheng/aiopathlib | b362d136fca183243d6b06020724e2ecd4afef0e | [
"MIT"
] | 2 | 2022-02-10T07:31:48.000Z | 2022-02-23T23:19:03.000Z | tests/test_sync.py | waketzheng/aiopathlib | b362d136fca183243d6b06020724e2ecd4afef0e | [
"MIT"
] | null | null | null | tests/test_sync.py | waketzheng/aiopathlib | b362d136fca183243d6b06020724e2ecd4afef0e | [
"MIT"
] | null | null | null | from pathlib import Path
from aiopathlib import AsyncPath
def test_glob_rglob():
ap = AsyncPath(__file__).parent
p = Path(ap)
assert [Path(i) for i in ap.glob("*")] == list(p.glob("*"))
assert [Path(i) for i in ap.rglob("*")] == list(p.rglob("*"))
| 24.272727 | 65 | 0.621723 | 41 | 267 | 3.902439 | 0.463415 | 0.125 | 0.1375 | 0.175 | 0.2375 | 0.2375 | 0.2375 | 0 | 0 | 0 | 0 | 0 | 0.191011 | 267 | 10 | 66 | 26.7 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.014981 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 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 |
8f5658e76000c204d82be74bc47629e4d5da130b | 1,753 | py | Python | amd64-linux/lib/python/mod_CS8900A_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 1 | 2020-06-15T10:41:18.000Z | 2020-06-15T10:41:18.000Z | amd64-linux/lib/python/mod_CS8900A_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | null | null | null | amd64-linux/lib/python/mod_CS8900A_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 3 | 2020-08-10T10:25:02.000Z | 2021-09-12T01:12:09.000Z | from cli import *
from string import *
import nic_common
import sim_commands
#
# --------------------- info, status --------------------
#
def get_info(obj):
return ([(None,
[("interrupt device", obj.irq_dev.name),
("interrupt level", obj.irq_level)])] +
nic_common.get_ni... | 39.840909 | 65 | 0.470622 | 208 | 1,753 | 3.759615 | 0.336538 | 0.07289 | 0.14578 | 0.242967 | 0.340153 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056511 | 0.30348 | 1,753 | 43 | 66 | 40.767442 | 0.583948 | 0.031375 | 0 | 0 | 0 | 0 | 0.158796 | 0 | 0 | 0 | 0.027155 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0.058824 | 0.235294 | 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 |
8f58e9b59c99927785749d4cbb92509054cd427a | 929 | py | Python | final_project/machinetranslation/tests/test_translation.py | codedoga/xzceb-flask_eng_fr | 3750d2b0854901b63acba5b23813f3b3b2c47d44 | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/tests/test_translation.py | codedoga/xzceb-flask_eng_fr | 3750d2b0854901b63acba5b23813f3b3b2c47d44 | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/tests/test_translation.py | codedoga/xzceb-flask_eng_fr | 3750d2b0854901b63acba5b23813f3b3b2c47d44 | [
"Apache-2.0"
] | null | null | null | import unittest
from machinetranslation.translator import english_french, french_english
class TestStringMethods(unittest.TestCase):
englishText = "Hello"
frenchText = "Bonjour"
# test function to test equality of two value
def test_french(self):
firstValue = self.englishText
secondVal... | 29.967742 | 72 | 0.707212 | 91 | 929 | 7.021978 | 0.351648 | 0.043818 | 0.156495 | 0.225352 | 0.314554 | 0.245696 | 0.178404 | 0.178404 | 0 | 0 | 0 | 0 | 0.218515 | 929 | 31 | 73 | 29.967742 | 0.880165 | 0.046286 | 0 | 0.173913 | 0 | 0 | 0.022599 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.173913 | false | 0 | 0.086957 | 0 | 0.391304 | 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 |
8f596b18c706336593698bfb69ecf4a1cc0fb331 | 733 | py | Python | src/main/python/pgshovel/replication/__main__.py | disqus/pgshovel | dc8039f9fe3331a99f10b7e6309151c08a292879 | [
"Apache-2.0"
] | 13 | 2015-08-21T09:10:23.000Z | 2021-08-15T20:26:00.000Z | src/main/python/pgshovel/replication/__main__.py | disqus/pgshovel | dc8039f9fe3331a99f10b7e6309151c08a292879 | [
"Apache-2.0"
] | 29 | 2015-08-14T03:09:55.000Z | 2015-09-15T19:29:14.000Z | src/main/python/pgshovel/replication/__main__.py | disqus/pgshovel | dc8039f9fe3331a99f10b7e6309151c08a292879 | [
"Apache-2.0"
] | 1 | 2015-08-26T05:55:33.000Z | 2015-08-26T05:55:33.000Z | import functools
import yaml
import click
from pgshovel.utilities.components import configure
from pgshovel.utilities.commands import entrypoint
@click.command()
@click.argument('configuration', type=click.File('rb')) # TODO: YamlFile
@click.argument('set')
@entrypoint
def main(cluster, configuration, set):
co... | 23.645161 | 73 | 0.717599 | 78 | 733 | 6.512821 | 0.448718 | 0.129921 | 0.082677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159618 | 733 | 30 | 74 | 24.433333 | 0.824675 | 0.0191 | 0 | 0 | 0 | 0 | 0.072524 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.045455 | false | 0 | 0.227273 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8f5c3f545ad5e6ea51c399d108a4fe0466169dca | 1,029 | py | Python | test/functional/node_test.py | agoragames/pluto | c5f8b01a74a2c63d376b2436745a590708b62304 | [
"MIT"
] | null | null | null | test/functional/node_test.py | agoragames/pluto | c5f8b01a74a2c63d376b2436745a590708b62304 | [
"MIT"
] | null | null | null | test/functional/node_test.py | agoragames/pluto | c5f8b01a74a2c63d376b2436745a590708b62304 | [
"MIT"
] | null | null | null |
from chai import Chai
from pluto.node import Node
class ScheduleTest(Node):
def run(self):
print 'run schedule test'
class NodeTest(Chai):
def setUp(self):
super(NodeTest,self).setUp()
Node.backend = {}
Node.backend.drop()
def test_node_can_save(self):
n = Node()
n.save()
def test_... | 23.386364 | 61 | 0.643343 | 142 | 1,029 | 4.514085 | 0.302817 | 0.112324 | 0.056162 | 0.043682 | 0.25897 | 0.180967 | 0.180967 | 0 | 0 | 0 | 0 | 0.008516 | 0.201166 | 1,029 | 43 | 62 | 23.930233 | 0.77129 | 0 | 0 | 0.181818 | 0 | 0 | 0.038911 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 0 | null | null | 0.030303 | 0.060606 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f5c89a59b9c7dfac1efc57e802a0c7d67b17e59 | 1,039 | py | Python | otcextensions/sdk/deh/v1/host_type.py | zsoltn/python-otcextensions | 4c0fa22f095ebd5f9636ae72acbae5048096822c | [
"Apache-2.0"
] | 10 | 2018-03-03T17:59:59.000Z | 2020-01-08T10:03:00.000Z | otcextensions/sdk/deh/v1/host_type.py | zsoltn/python-otcextensions | 4c0fa22f095ebd5f9636ae72acbae5048096822c | [
"Apache-2.0"
] | 208 | 2020-02-10T08:27:46.000Z | 2022-03-29T15:24:21.000Z | otcextensions/sdk/deh/v1/host_type.py | zsoltn/python-otcextensions | 4c0fa22f095ebd5f9636ae72acbae5048096822c | [
"Apache-2.0"
] | 15 | 2020-04-01T20:45:54.000Z | 2022-03-23T12:45:43.000Z | # 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
# distributed under t... | 35.827586 | 79 | 0.74206 | 146 | 1,039 | 5.178082 | 0.589041 | 0.079365 | 0.034392 | 0.042328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004684 | 0.178056 | 1,039 | 28 | 80 | 37.107143 | 0.880562 | 0.578441 | 0 | 0 | 0 | 0 | 0.28673 | 0.14455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8f66fc5147058be6f5ce51fa30480158e1df1ab0 | 2,888 | py | Python | bpexts/optim/conjugate_gradient.py | f-dangel/hbp | 3ed208ce16fae1c2697e1d5220de91205e1d13c3 | [
"MIT"
] | 13 | 2020-02-27T00:24:27.000Z | 2022-01-09T05:35:46.000Z | bpexts/optim/conjugate_gradient.py | f-dangel/hbp | 3ed208ce16fae1c2697e1d5220de91205e1d13c3 | [
"MIT"
] | 5 | 2021-06-08T21:00:04.000Z | 2022-03-12T00:17:39.000Z | bpexts/optim/conjugate_gradient.py | f-dangel/hbp | 3ed208ce16fae1c2697e1d5220de91205e1d13c3 | [
"MIT"
] | 2 | 2020-09-10T03:34:07.000Z | 2022-01-09T05:35:50.000Z | """ Conjugate gradient solver. Solve A*x = b with PSD matrix A"""
import torch
def cg(A, b, x0=None, tol=1e-5, maxiter=None, atol=None):
"""PyTorch implementation of conjugate gradient algorithm. Solve A*x=b.
The interface is similar to CG provided by scipy.sparse.linalg.cg.
Device is inferred by vector... | 34.795181 | 76 | 0.636773 | 405 | 2,888 | 4.466667 | 0.419753 | 0.042565 | 0.016584 | 0.008845 | 0.02764 | 0.02764 | 0 | 0 | 0 | 0 | 0 | 0.010446 | 0.270776 | 2,888 | 82 | 77 | 35.219512 | 0.848528 | 0.500346 | 0 | 0 | 0 | 0 | 0.021887 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.058824 | false | 0 | 0.029412 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8f68566053465f050e9b53722de189dcfd1e98bd | 441 | py | Python | tests/common.py | caplena/caplena-python | ba714edb11df69798b25c8b8b8623e0d5f75f982 | [
"MIT"
] | 6 | 2022-03-06T02:03:44.000Z | 2022-03-31T09:34:04.000Z | tests/common.py | caplena/caplena-python | ba714edb11df69798b25c8b8b8623e0d5f75f982 | [
"MIT"
] | 1 | 2022-03-06T04:38:15.000Z | 2022-03-09T11:35:57.000Z | tests/common.py | caplena/caplena-python | ba714edb11df69798b25c8b8b8623e0d5f75f982 | [
"MIT"
] | null | null | null | from caplena.api.api_base_uri import ApiBaseUri
from caplena.configuration import Configuration
from caplena.http.requests_http_client import RequestsHttpClient
from caplena.logging.logger import LoggingLevel
common_api_key = "4e5df2b6f642bf4f6b9eb36af587eef96dbc4b8e"
common_config = Configuration(
api_key=common... | 31.5 | 64 | 0.845805 | 51 | 441 | 7.039216 | 0.431373 | 0.122563 | 0.05571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04798 | 0.102041 | 441 | 13 | 65 | 33.923077 | 0.858586 | 0 | 0 | 0 | 0 | 0 | 0.090703 | 0.090703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8f6a5974d89b7a66921db8f1336ca22d0479a309 | 453 | py | Python | web/utils/slug_generator.py | tpaulus/url-shortner-flask | f42e3a46f0899c2f42e5444943f9e56706b40179 | [
"MIT"
] | null | null | null | web/utils/slug_generator.py | tpaulus/url-shortner-flask | f42e3a46f0899c2f42e5444943f9e56706b40179 | [
"MIT"
] | null | null | null | web/utils/slug_generator.py | tpaulus/url-shortner-flask | f42e3a46f0899c2f42e5444943f9e56706b40179 | [
"MIT"
] | null | null | null | import logging
import random
from constants import SLUG_LENGTH, SLUG_CHARACTERS, RESERVED_SLUGS
log = logging.getLogger(__name__)
def generate_slug() -> str:
while True:
slug = "".join([random.choice(SLUG_CHARACTERS) for _ in range(SLUG_LENGTH)])
if slug not in RESERVED_SLUGS:
return... | 28.3125 | 112 | 0.695364 | 59 | 453 | 5.135593 | 0.627119 | 0.066007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229581 | 453 | 15 | 113 | 30.2 | 0.868195 | 0 | 0 | 0 | 1 | 0 | 0.187638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f6b6a62e0c9808fa4271eb0ea992363483d6f6f | 446 | py | Python | scripts/profile_rec.py | Helma-T/recsys-course-2016-pub | 28bea50e211137f03c39ec97566510ba331946c9 | [
"MIT"
] | 24 | 2016-10-29T19:11:18.000Z | 2022-02-23T14:59:24.000Z | scripts/profile_rec.py | Helma-T/recsys-course-2016-pub | 28bea50e211137f03c39ec97566510ba331946c9 | [
"MIT"
] | 2 | 2016-11-07T11:22:29.000Z | 2016-11-23T16:51:10.000Z | scripts/profile_rec.py | mquad/recsys-course-2016-pub | 28bea50e211137f03c39ec97566510ba331946c9 | [
"MIT"
] | 22 | 2016-10-27T23:10:11.000Z | 2020-04-22T12:38:21.000Z | import pstats, cProfile
import scipy.sparse as sps
import numpy as np
from recpy.recommenders.mf import AsySVD as Recommender
# from recpy.recommenders.mf import FunkSVD as Recommender
np.random.seed(1)
X = sps.rand(1000, 2000, format='csr', density=0.01)
print(X.nnz)
rec = Recommender(iters=1)
cProfile.runctx("rec.fi... | 29.733333 | 66 | 0.751121 | 71 | 446 | 4.676056 | 0.619718 | 0.054217 | 0.126506 | 0.138554 | 0.174699 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032419 | 0.100897 | 446 | 14 | 67 | 31.857143 | 0.795511 | 0.125561 | 0 | 0 | 0 | 0 | 0.10567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8f71976235c2aabc52006bb14b639e991bf43eb0 | 7,413 | py | Python | software/python/common/_AltirocProbe.py | s-sacerdoti/atlas-altiroc-daq | 3b053d04f62f604daa1da8c773651af802b01166 | [
"BSD-3-Clause-LBNL"
] | null | null | null | software/python/common/_AltirocProbe.py | s-sacerdoti/atlas-altiroc-daq | 3b053d04f62f604daa1da8c773651af802b01166 | [
"BSD-3-Clause-LBNL"
] | null | null | null | software/python/common/_AltirocProbe.py | s-sacerdoti/atlas-altiroc-daq | 3b053d04f62f604daa1da8c773651af802b01166 | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-05-27T14:35:24.000Z | 2020-05-27T14:35:24.000Z | #!/usr/bin/env python3
##############################################################################
## This file is part of 'ATLAS ALTIROC DEV'.
## It is subject to the license terms in the LICENSE.txt file found in the
## top-level directory of this distribution and at:
## https://confluence.slac.stanford.edu/d... | 33.391892 | 90 | 0.376905 | 537 | 7,413 | 5.113594 | 0.318436 | 0.061544 | 0.06118 | 0.06555 | 0.436635 | 0.359068 | 0.321559 | 0.288784 | 0.216679 | 0.119446 | 0 | 0.028747 | 0.51666 | 7,413 | 221 | 91 | 33.542986 | 0.73765 | 0.071496 | 0 | 0.511364 | 0 | 0 | 0.083631 | 0.007901 | 0 | 0 | 0.001193 | 0 | 0 | 1 | 0.017045 | false | 0 | 0.011364 | 0 | 0.034091 | 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 |
8f74a0fb521c9a79d7f05f9160c6200e8c9ea2f7 | 17,905 | py | Python | semi_supervised_typed/dgm.py | kiwi0fruit/jats-semi-supervised-pytorch | 67e9bb85f09f8ef02e17e495784d1d9a71c3adec | [
"MIT"
] | null | null | null | semi_supervised_typed/dgm.py | kiwi0fruit/jats-semi-supervised-pytorch | 67e9bb85f09f8ef02e17e495784d1d9a71c3adec | [
"MIT"
] | null | null | null | semi_supervised_typed/dgm.py | kiwi0fruit/jats-semi-supervised-pytorch | 67e9bb85f09f8ef02e17e495784d1d9a71c3adec | [
"MIT"
] | null | null | null | from typing import List, Tuple, Callable, Type
import torch as tr
from torch import Tensor, nn
from beta_tcvae_typed import Verbose, XYDictStrZ, KLDLoss
from .vae import (Encoder, Decoder, LadderEncoder, LadderDecoder, VariationalAutoencoder, DecoderPassthrough,
LadderKLDLoss, Perceptron, PostInit)
f... | 41.542923 | 115 | 0.615973 | 2,318 | 17,905 | 4.509491 | 0.119931 | 0.012245 | 0.02363 | 0.018368 | 0.524921 | 0.488185 | 0.457094 | 0.410504 | 0.363149 | 0.334067 | 0 | 0.005043 | 0.269031 | 17,905 | 430 | 116 | 41.639535 | 0.793628 | 0.186317 | 0 | 0.362903 | 0 | 0 | 0.001434 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 1 | 0.133065 | false | 0.064516 | 0.028226 | 0.016129 | 0.362903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8f74b87c1a92b045a4110599df490c737cbd0ba4 | 1,088 | py | Python | flask_app/model/simswap.py | AI3SW/ai_job_teacher_flask | 13a8271df1b165e951b90e28ce495a3e44fc833f | [
"MIT"
] | null | null | null | flask_app/model/simswap.py | AI3SW/ai_job_teacher_flask | 13a8271df1b165e951b90e28ce495a3e44fc833f | [
"MIT"
] | null | null | null | flask_app/model/simswap.py | AI3SW/ai_job_teacher_flask | 13a8271df1b165e951b90e28ce495a3e44fc833f | [
"MIT"
] | null | null | null | import logging
import requests
from flask_app.model.declarations import BaseModel
logger = logging.getLogger(__name__)
class SimSwapModel(BaseModel):
def __init__(self):
self.predictor = None
self.sim_swap_url = ""
def init_model(self, config):
self.sim_swap_url = config['MODEL_CONF... | 25.904762 | 74 | 0.626838 | 128 | 1,088 | 5.046875 | 0.398438 | 0.043344 | 0.051084 | 0.065015 | 0.120743 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007782 | 0.29136 | 1,088 | 41 | 75 | 26.536585 | 0.830091 | 0.117647 | 0 | 0.076923 | 0 | 0 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0.076923 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8f7a405882bb5c1c310fb9d5000a5c57f86057c0 | 33,499 | py | Python | app3.py | KalraH/HKProject-1 | 73902d5c46356dedb43742a95b24541c5021298f | [
"Apache-2.0"
] | null | null | null | app3.py | KalraH/HKProject-1 | 73902d5c46356dedb43742a95b24541c5021298f | [
"Apache-2.0"
] | null | null | null | app3.py | KalraH/HKProject-1 | 73902d5c46356dedb43742a95b24541c5021298f | [
"Apache-2.0"
] | null | null | null | """
Created on Fri Sept 6 21:15:33 2020
@author: Hariom Kalra
"""
# Importing Libraries
import pandas as pd
import webbrowser
import dash
import dash_html_components as html
from dash.dependencies import Input, Output
import dash_core_components as dcc
import plotly.graph_objects as go
import plotly.exp... | 54.736928 | 156 | 0.319024 | 2,182 | 33,499 | 4.754812 | 0.157654 | 0.015904 | 0.032386 | 0.021687 | 0.337446 | 0.303133 | 0.276819 | 0.270169 | 0.232386 | 0.211373 | 0 | 0.011777 | 0.60966 | 33,499 | 611 | 157 | 54.826514 | 0.781661 | 0.063315 | 0 | 0.298876 | 0 | 0 | 0.112512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024719 | false | 0.017978 | 0.020225 | 0 | 0.062921 | 0.074157 | 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 |
8f7efdd6ccdcdef6a51781bce355c0a63fc31d6e | 1,935 | py | Python | mapek_framework/src/test_mapek_framework/test_components.py | imcatta/ros-mapek-framework | 55e5aa299d322df4edea9b5898e969add122c445 | [
"MIT"
] | 1 | 2019-08-18T17:36:42.000Z | 2019-08-18T17:36:42.000Z | mapek_framework/src/test_mapek_framework/test_components.py | imcatta/ros-mapek-framework | 55e5aa299d322df4edea9b5898e969add122c445 | [
"MIT"
] | 4 | 2019-02-01T13:07:49.000Z | 2019-02-04T14:10:46.000Z | mapek_framework/src/test_mapek_framework/test_components.py | imcatta/ros-mapek-framework | 55e5aa299d322df4edea9b5898e969add122c445 | [
"MIT"
] | 1 | 2019-09-06T13:03:51.000Z | 2019-09-06T13:03:51.000Z | import unittest
import mock
from mapek_framework.components import _MapeComponent, MonitorComponent, AnalyzeComponent, PlanComponent, ExecuteComponent
from mapek_framework import ManagedSystem, Interaction
class MyMapeComponent1(_MapeComponent):
input_interactions = [Interaction('ii', None)] * 3
output_inter... | 33.362069 | 122 | 0.734367 | 190 | 1,935 | 7.205263 | 0.347368 | 0.040906 | 0.070124 | 0.039445 | 0.080351 | 0.080351 | 0.080351 | 0.080351 | 0.080351 | 0 | 0 | 0.010107 | 0.181912 | 1,935 | 57 | 123 | 33.947368 | 0.854706 | 0 | 0 | 0.121951 | 0 | 0 | 0.027907 | 0 | 0 | 0 | 0 | 0 | 0.243902 | 1 | 0.121951 | false | 0.073171 | 0.097561 | 0 | 0.365854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8f7f0381cc789f1dec6877ee46c42bd830ca6262 | 3,201 | py | Python | tests/test_tengri.py | robertdurkaj/tengri | 938bf295b129d4f27658aa4d107df442525be678 | [
"MIT"
] | null | null | null | tests/test_tengri.py | robertdurkaj/tengri | 938bf295b129d4f27658aa4d107df442525be678 | [
"MIT"
] | 2 | 2017-03-02T13:19:42.000Z | 2017-03-07T14:04:34.000Z | tests/test_tengri.py | robertdurkaj/tengri | 938bf295b129d4f27658aa4d107df442525be678 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
tests.tengri
-----------------
Unit tests.
:copyright: (c) 2017 by Robert Durkaj.
:license: MIT, see the LICENSE for more details.
"""
import pytest
import mock
import io
from tengri import weather
from tengri import web
@pytest.fixture(scope="module")
def root():
... | 24.623077 | 73 | 0.662605 | 430 | 3,201 | 4.681395 | 0.274419 | 0.045206 | 0.038748 | 0.03378 | 0.216592 | 0.146051 | 0.146051 | 0.146051 | 0.108296 | 0.108296 | 0 | 0.005734 | 0.182755 | 3,201 | 129 | 74 | 24.813953 | 0.763379 | 0.168072 | 0 | 0.064516 | 0 | 0 | 0.142745 | 0.060618 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.225806 | false | 0 | 0.080645 | 0 | 0.322581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56a90646f4b6137de1ce54db10ad3363b78b2efe | 3,122 | py | Python | src/cli.py | darobin/critic | 9d09f3ae45d0b37fb899c5323409c06e8622a2a1 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-12-04T18:43:10.000Z | 2020-12-04T18:43:10.000Z | src/cli.py | darobin/critic | 9d09f3ae45d0b37fb899c5323409c06e8622a2a1 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/cli.py | darobin/critic | 9d09f3ae45d0b37fb899c5323409c06e8622a2a1 | [
"Apache-2.0",
"MIT"
] | null | null | null | # -*- mode: python; encoding: utf-8 -*-
#
# Copyright 2012 Jens Lindström, Opera Software ASA
#
# 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... | 34.307692 | 110 | 0.60378 | 367 | 3,122 | 5.027248 | 0.373297 | 0.03252 | 0.022764 | 0.027642 | 0.089973 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0.005467 | 0.296925 | 3,122 | 90 | 111 | 34.688889 | 0.83508 | 0.195067 | 0 | 0.25 | 0 | 0 | 0.100521 | 0.035242 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
56b4a481f83be259c5b453537d2d2b83076fd671 | 3,026 | py | Python | backup_cisco.py | markheinemann/cisco_backup_jump_server | b459c07be1256127fe11988f7b1c83ae5740eb61 | [
"MIT"
] | null | null | null | backup_cisco.py | markheinemann/cisco_backup_jump_server | b459c07be1256127fe11988f7b1c83ae5740eb61 | [
"MIT"
] | null | null | null | backup_cisco.py | markheinemann/cisco_backup_jump_server | b459c07be1256127fe11988f7b1c83ae5740eb61 | [
"MIT"
] | 1 | 2021-11-23T17:52:47.000Z | 2021-11-23T17:52:47.000Z | import time
from netmiko import ConnectHandler, redispatch
from netmiko.ssh_exception import NetMikoTimeoutException
from netmiko.ssh_exception import NetMikoAuthenticationException
from paramiko.ssh_exception import SSHException
from getpass import getpass
# tested in python3.7
# this script is useful when there is a... | 37.358025 | 96 | 0.673827 | 371 | 3,026 | 5.412399 | 0.382749 | 0.059761 | 0.026892 | 0.032869 | 0.101096 | 0.065737 | 0.037849 | 0.037849 | 0.037849 | 0 | 0 | 0.006034 | 0.233311 | 3,026 | 80 | 97 | 37.825 | 0.859483 | 0.250496 | 0 | 0.163934 | 0 | 0 | 0.167556 | 0.010667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.065574 | 0.098361 | 0 | 0.098361 | 0.147541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56b4de8ec1037c6b049b217db7eb4b0ec8ef5b23 | 3,288 | py | Python | python/test2.py | ostravaTokyo/hfls | 12bb1a1e0c0e171f3b32bd3aa8eebaafd9fa7cbc | [
"Unlicense"
] | null | null | null | python/test2.py | ostravaTokyo/hfls | 12bb1a1e0c0e171f3b32bd3aa8eebaafd9fa7cbc | [
"Unlicense"
] | null | null | null | python/test2.py | ostravaTokyo/hfls | 12bb1a1e0c0e171f3b32bd3aa8eebaafd9fa7cbc | [
"Unlicense"
] | null | null | null | import numpy as np
from scipy import sparse
import scipy.sparse.linalg as spla
import pylab as plt
from scipy.linalg import block_diag
#
#
nSub = 2
def load_matrix_basic(pathToFile,makeSparse,makeSymmetric, offset):
f0 = open(pathToFile).readlines()
firstLine = f0.pop(0) #removes the first line
tmp = np.z... | 34.25 | 84 | 0.627737 | 552 | 3,288 | 3.432971 | 0.155797 | 0.110818 | 0.158311 | 0.180475 | 0.622164 | 0.528232 | 0.387863 | 0.245383 | 0.189974 | 0.058047 | 0 | 0.045981 | 0.212895 | 3,288 | 95 | 85 | 34.610526 | 0.686244 | 0.035584 | 0 | 0.078125 | 0 | 0 | 0.156546 | 0.152435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.078125 | 0 | 0.140625 | 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 |
56b7e41d9750874903a621d17ff87c9463209951 | 800 | py | Python | plantit/plantit/auth/views.py | Computational-Plant-Science/plan | 88ffeda7830291631c719398a60e07ced0433a5f | [
"BSD-3-Clause"
] | 8 | 2020-10-14T03:02:33.000Z | 2022-01-22T04:49:49.000Z | plantit/plantit/auth/views.py | Computational-Plant-Science/plan | 88ffeda7830291631c719398a60e07ced0433a5f | [
"BSD-3-Clause"
] | 232 | 2020-08-24T03:16:55.000Z | 2022-03-30T20:19:05.000Z | plantit/plantit/auth/views.py | Computational-Plant-Science/plan | 88ffeda7830291631c719398a60e07ced0433a5f | [
"BSD-3-Clause"
] | null | null | null | import json
from django.http import HttpResponse
from django.contrib.auth import authenticate, login, logout
def login_view(request):
if request.method == 'POST':
json_data = json.loads(request.body)
try:
username = json_data['username']
except KeyError:
return Htt... | 24.242424 | 74 | 0.63 | 82 | 800 | 6.085366 | 0.414634 | 0.180361 | 0.08016 | 0.128257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2825 | 800 | 32 | 75 | 25 | 0.869338 | 0 | 0 | 0.26087 | 0 | 0 | 0.085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.130435 | 0.130435 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56b999baf3e314442848149325a012d549edbfad | 1,986 | py | Python | pollapp/forms.py | pesusieni999/mtgwebsite | 974e6930a98decda2887449c3a8bf815b928021e | [
"MIT"
] | null | null | null | pollapp/forms.py | pesusieni999/mtgwebsite | 974e6930a98decda2887449c3a8bf815b928021e | [
"MIT"
] | null | null | null | pollapp/forms.py | pesusieni999/mtgwebsite | 974e6930a98decda2887449c3a8bf815b928021e | [
"MIT"
] | null | null | null | """
Define forms for Polls application.
"""
from django import forms
from .models import Poll, PollAnswer
__author__ = "pesusieni999"
__copyright__ = "Copyright 2017, MtG website Project"
__credits__ = ["pesusieni999"]
__license__ = "MIT"
__version__ = "0.0.1"
__maintainer__ = "pesusieni999"
__email__ = "pesusieni9... | 27.583333 | 87 | 0.598691 | 199 | 1,986 | 5.708543 | 0.477387 | 0.052817 | 0.06162 | 0.09243 | 0.169014 | 0.169014 | 0.142606 | 0.077465 | 0 | 0 | 0 | 0.015048 | 0.263847 | 1,986 | 71 | 88 | 27.971831 | 0.76197 | 0.160624 | 0 | 0.097561 | 0 | 0 | 0.259789 | 0.013673 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.02439 | false | 0 | 0.04878 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
56bf3316bbb9b9110d5314b23c44afbe63fdc6cf | 1,885 | py | Python | ps2_analysis/data.py | spascou/ps2-analysis | 00f99b009d15d4c401a3338ddd0408ac7eedcc0b | [
"MIT"
] | 2 | 2020-06-25T17:19:05.000Z | 2020-10-13T06:08:39.000Z | ps2_analysis/data.py | spascou/ps2-analysis | 00f99b009d15d4c401a3338ddd0408ac7eedcc0b | [
"MIT"
] | null | null | null | ps2_analysis/data.py | spascou/ps2-analysis | 00f99b009d15d4c401a3338ddd0408ac7eedcc0b | [
"MIT"
] | null | null | null | from typing import Any, Dict
from ps2_census.enums import ResistType
from .enums import DamageLocation, DamageTargetType
DAMAGE_TARGET_TYPE_DATA: Dict[DamageTargetType, Dict[str, Any]] = {
DamageTargetType.INFANTRY_BASELINE: {"health": 500, "shields": 500},
DamageTargetType.INFANTRY_AUXILIARY_SHIELD: {"healt... | 34.272727 | 85 | 0.540584 | 151 | 1,885 | 6.463576 | 0.397351 | 0.172131 | 0.081967 | 0.077869 | 0.26332 | 0.197746 | 0.077869 | 0 | 0 | 0 | 0 | 0.045643 | 0.360743 | 1,885 | 54 | 86 | 34.907407 | 0.764315 | 0 | 0 | 0.254902 | 0 | 0 | 0.080106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56bfe6105c8d1f3f1c37f43576778ca3917404ba | 2,928 | py | Python | laser_tracking/scripts/pidPlanner.py | headcrabned/teamcat | d3364401bab636929bda03690569f6938dceac47 | [
"MIT"
] | null | null | null | laser_tracking/scripts/pidPlanner.py | headcrabned/teamcat | d3364401bab636929bda03690569f6938dceac47 | [
"MIT"
] | null | null | null | laser_tracking/scripts/pidPlanner.py | headcrabned/teamcat | d3364401bab636929bda03690569f6938dceac47 | [
"MIT"
] | 2 | 2017-04-11T01:20:57.000Z | 2018-04-16T03:09:44.000Z | #!/usr/bin/env python
import rospy
import tf
import std_msgs.msg
from math import atan2, hypot
from geometry_msgs.msg import PoseStamped #laser location
from geometry_msgs.msg import Twist #high level motor control (linear and angular bot velocity)
from nav_msgs.msg import Odometry #Get the robot position
from WheelVel... | 38.025974 | 130 | 0.640369 | 441 | 2,928 | 4.154195 | 0.426304 | 0.015284 | 0.011463 | 0.019651 | 0.06441 | 0.03548 | 0.03548 | 0.027293 | 0 | 0 | 0 | 0.027298 | 0.249317 | 2,928 | 77 | 131 | 38.025974 | 0.806187 | 0.389686 | 0 | 0 | 0 | 0 | 0.067352 | 0.026256 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.191489 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56c04bf4816dc3d9ff61ee3c9d274aad15e76a12 | 1,326 | py | Python | catalog/migrations/0001_initial.py | discovery-131794/django_local_library | 1222e219fa6148f0c892e50d9eed3040a51c0f8a | [
"Apache-2.0"
] | null | null | null | catalog/migrations/0001_initial.py | discovery-131794/django_local_library | 1222e219fa6148f0c892e50d9eed3040a51c0f8a | [
"Apache-2.0"
] | 3 | 2020-06-06T01:50:18.000Z | 2021-06-10T22:52:15.000Z | catalog/migrations/0001_initial.py | discovery-131794/django_local_library | 1222e219fa6148f0c892e50d9eed3040a51c0f8a | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.15 on 2020-03-19 02:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Email',
fields=[
... | 39 | 143 | 0.599548 | 139 | 1,326 | 5.589928 | 0.453237 | 0.072072 | 0.056628 | 0.056628 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024121 | 0.249623 | 1,326 | 33 | 144 | 40.181818 | 0.756784 | 0.034691 | 0 | 0.307692 | 1 | 0 | 0.124413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56c360c6def5b13c5665df36ef8aca9aad0bb56e | 393 | py | Python | tests/test_corkus.py | MrBartusek/corkus.py | 031c11e3e251f0bddbcb67415564357460fe7fea | [
"MIT"
] | 5 | 2021-09-10T14:20:15.000Z | 2022-01-09T11:27:49.000Z | tests/test_corkus.py | MrBartusek/corkus.py | 031c11e3e251f0bddbcb67415564357460fe7fea | [
"MIT"
] | 11 | 2021-08-15T09:39:09.000Z | 2022-01-12T14:11:24.000Z | tests/test_corkus.py | MrBartusek/corkus.py | 031c11e3e251f0bddbcb67415564357460fe7fea | [
"MIT"
] | 2 | 2021-12-01T23:33:14.000Z | 2022-01-12T11:08:18.000Z | # pylint: disable=attribute-defined-outside-init
import unittest
from tests import vcr
from corkus import Corkus
class TestCorkus(unittest.IsolatedAsyncioTestCase):
@vcr.use_cassette
async def test_context_manager(self):
async with Corkus() as corkus:
player = await corkus.player.get('MrBa... | 30.230769 | 61 | 0.735369 | 45 | 393 | 6.355556 | 0.688889 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183206 | 393 | 12 | 62 | 32.75 | 0.890966 | 0.117048 | 0 | 0 | 0 | 0 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
56c4468c3e2b0581687ff08ee151ab95428d8641 | 455 | py | Python | Bake_bot/migrations/0013_order_customer_chat_id.py | annfike/Bake_Cake_bot | 9407f99d1832d0bd5be409d1c02a6dfa8c3a4fff | [
"MIT"
] | null | null | null | Bake_bot/migrations/0013_order_customer_chat_id.py | annfike/Bake_Cake_bot | 9407f99d1832d0bd5be409d1c02a6dfa8c3a4fff | [
"MIT"
] | null | null | null | Bake_bot/migrations/0013_order_customer_chat_id.py | annfike/Bake_Cake_bot | 9407f99d1832d0bd5be409d1c02a6dfa8c3a4fff | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-29 13:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Bake_bot', '0012_alter_order_customer'),
]
operations = [
migrations.AddField(
model_name='order',
name='customer_ch... | 23.947368 | 109 | 0.630769 | 54 | 455 | 5.148148 | 0.777778 | 0.043165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064897 | 0.254945 | 455 | 18 | 110 | 25.277778 | 0.755162 | 0.098901 | 0 | 0 | 1 | 0 | 0.176471 | 0.061275 | 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 |
56c6cc8e1b265fea5ac56b5d6328b7594b9e2da9 | 967 | py | Python | swmm_calibration/classes/spotpy_setup.py | mmmatthew/swmm_calibration | b6bcd1bdb71d25f2095c6863609735de8e3bd6bc | [
"MIT"
] | 5 | 2019-10-22T03:56:21.000Z | 2021-05-23T02:39:14.000Z | swmm_calibration/classes/spotpy_setup.py | mmmatthew/swmm_calibration | b6bcd1bdb71d25f2095c6863609735de8e3bd6bc | [
"MIT"
] | 2 | 2019-07-12T01:04:09.000Z | 2021-06-01T23:29:30.000Z | swmm_calibration/classes/spotpy_setup.py | mmmatthew/swmm_calibration | b6bcd1bdb71d25f2095c6863609735de8e3bd6bc | [
"MIT"
] | 3 | 2019-03-12T15:01:33.000Z | 2021-12-01T07:35:40.000Z | import spotpy
class SpotpySwmmSetup(object):
def __init__(self, model, calib_params, objective_function):
self.model = model
self.objectivefunction = objective_function
self.prior_dist = [None]*len(calib_params)
# remap calibration parameters into list format
for key, value... | 30.21875 | 114 | 0.660807 | 108 | 967 | 5.777778 | 0.490741 | 0.086538 | 0.0625 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002755 | 0.249224 | 967 | 31 | 115 | 31.193548 | 0.856749 | 0.083764 | 0 | 0 | 0 | 0 | 0.018203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0.05 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56c919fdaab34682556f1f576837272212535a7b | 15,241 | py | Python | query_mgrast_md5_annotation.py | leejz/meta-omics-scripts | 7189f03e7656a1eff2a7c3df8d929fc0d52b7dd8 | [
"MIT"
] | null | null | null | query_mgrast_md5_annotation.py | leejz/meta-omics-scripts | 7189f03e7656a1eff2a7c3df8d929fc0d52b7dd8 | [
"MIT"
] | null | null | null | query_mgrast_md5_annotation.py | leejz/meta-omics-scripts | 7189f03e7656a1eff2a7c3df8d929fc0d52b7dd8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
--------------------------------------------------------------------------------
Created: Jackson Lee 11/20/14
This script reads in a tab delimited file of sequence headers with md5 keys
and determines a unique search set to lookup in the mgrast md5 tab delimited
database file. The script t... | 42.572626 | 176 | 0.624237 | 1,837 | 15,241 | 5.019053 | 0.27055 | 0.00987 | 0.013015 | 0.013666 | 0.283406 | 0.249566 | 0.236334 | 0.197072 | 0.17744 | 0.16551 | 0 | 0.136778 | 0.258382 | 15,241 | 357 | 177 | 42.691877 | 0.678935 | 0.066728 | 0 | 0.31016 | 0 | 0.005348 | 0.136177 | 0.013228 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026738 | null | null | 0.106952 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56ccd3230b5d8ef01b136b1ffd9a84053b4fea27 | 1,957 | py | Python | day 12/Martijn - Python/passage_pathing.py | AE-nv/aedvent-code-2021 | 7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7 | [
"MIT"
] | 1 | 2021-12-02T12:09:11.000Z | 2021-12-02T12:09:11.000Z | day 12/Martijn - Python/passage_pathing.py | AE-nv/aedvent-code-2021 | 7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7 | [
"MIT"
] | null | null | null | day 12/Martijn - Python/passage_pathing.py | AE-nv/aedvent-code-2021 | 7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7 | [
"MIT"
] | 1 | 2021-12-01T21:14:41.000Z | 2021-12-01T21:14:41.000Z | def append_node_to_dict(node1, node2, dict_connections):
if not node1 in dict_connections:
dict_connections[node1] = [node2]
else:
node_connections = dict_connections[node1]
if not node2 in node_connections:
node_connections.append(node2)
dict_connections[node1] =... | 32.081967 | 78 | 0.648952 | 241 | 1,957 | 5.045643 | 0.240664 | 0.209704 | 0.085526 | 0.039474 | 0.162829 | 0.105263 | 0.067434 | 0.067434 | 0 | 0 | 0 | 0.014344 | 0.251916 | 1,957 | 61 | 79 | 32.081967 | 0.816257 | 0 | 0 | 0.1 | 0 | 0 | 0.030644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.02 | 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 |
56d01841d2156b3b5d862b54d1e4cda34ff2e9cb | 28,612 | py | Python | dna_lib_tests.py | uskovboris/coursera_bioinformatics | fcbbb23019ad67d5e3562c4590aa1f88c871fed2 | [
"MIT"
] | null | null | null | dna_lib_tests.py | uskovboris/coursera_bioinformatics | fcbbb23019ad67d5e3562c4590aa1f88c871fed2 | [
"MIT"
] | null | null | null | dna_lib_tests.py | uskovboris/coursera_bioinformatics | fcbbb23019ad67d5e3562c4590aa1f88c871fed2 | [
"MIT"
] | null | null | null | import unittest
from dna_lib import *
class NucleotideToNumberTest(unittest.TestCase):
def test_dna_adenine_to_number(self):
self.assertEqual(nucleotide_to_number('A'), 0)
def test_dna_thymine_to_number(self):
self.assertEqual(nucleotide_to_number('T'), 3)
def test_dna_cytos... | 50.730496 | 214 | 0.6124 | 3,456 | 28,612 | 4.898438 | 0.141493 | 0.032666 | 0.023923 | 0.041113 | 0.605411 | 0.543564 | 0.502215 | 0.438833 | 0.402682 | 0.330911 | 0 | 0.017143 | 0.274186 | 28,612 | 563 | 215 | 50.820604 | 0.797515 | 0.268559 | 0 | 0.128676 | 0 | 0 | 0.124553 | 0.050904 | 0 | 0 | 0 | 0 | 0.345588 | 1 | 0.290441 | false | 0 | 0.007353 | 0 | 0.356618 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56d1950f36c21e5acb375141976ab134eec4535b | 2,604 | py | Python | dsb2018-train.py | aaalgo/picpac-demos | a6c6b1b6c487d3de62722a7a7c8c8762c32c527b | [
"BSD-2-Clause"
] | 15 | 2018-02-01T04:08:18.000Z | 2018-08-01T01:41:03.000Z | dsb2018-train.py | aaalgo/picpac-demos | a6c6b1b6c487d3de62722a7a7c8c8762c32c527b | [
"BSD-2-Clause"
] | null | null | null | dsb2018-train.py | aaalgo/picpac-demos | a6c6b1b6c487d3de62722a7a7c8c8762c32c527b | [
"BSD-2-Clause"
] | 6 | 2018-02-01T14:24:21.000Z | 2019-04-06T16:25:29.000Z | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import shutil
import math
from glob import glob
import cv2
import random
import copy
import numpy as np
import imageio
from skimage import measure
import logging
import subproc... | 28.304348 | 86 | 0.579877 | 342 | 2,604 | 4.307018 | 0.345029 | 0.02444 | 0.037339 | 0.02444 | 0.040733 | 0.029871 | 0 | 0 | 0 | 0 | 0 | 0.028603 | 0.301843 | 2,604 | 91 | 87 | 28.615385 | 0.781628 | 0.059908 | 0 | 0.054795 | 0 | 0 | 0.073011 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 1 | 0.027397 | false | 0.054795 | 0.219178 | 0 | 0.273973 | 0.027397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56d1acde837fde0b6c4e1741d57b133c2a289c1e | 3,739 | py | Python | python/maheen_code/script_testGPU.py | maheenRashid/caffe | 82d7b1f19f49942be1f9a8d60bf3afa52c01c300 | [
"BSD-2-Clause"
] | null | null | null | python/maheen_code/script_testGPU.py | maheenRashid/caffe | 82d7b1f19f49942be1f9a8d60bf3afa52c01c300 | [
"BSD-2-Clause"
] | null | null | null | python/maheen_code/script_testGPU.py | maheenRashid/caffe | 82d7b1f19f49942be1f9a8d60bf3afa52c01c300 | [
"BSD-2-Clause"
] | null | null | null | import numpy as np
import util
# import cudarray as ca
import time
import cProfile
import StringIO
import pstats
# def normalize(matrix,gpuFlag=False):
# if gpuFlag==True:
# norm=ca.sqrt(ca.sum(ca.power(matrix,2),1,keepdims=True));
# matrix_n=matrix/norm
# else:
# norm=np.sqrt(np.sum(np.... | 23.515723 | 78 | 0.626638 | 539 | 3,739 | 4.19666 | 0.217069 | 0.028294 | 0.015915 | 0.024757 | 0.276304 | 0.230769 | 0.215738 | 0.189213 | 0.120248 | 0.120248 | 0 | 0.027176 | 0.222519 | 3,739 | 159 | 79 | 23.515723 | 0.750946 | 0.253009 | 0 | 0.348837 | 0 | 0 | 0.030764 | 0.014839 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069767 | null | null | 0.232558 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56e55de3f6186781ccd8c2ec4c66afc72bed7efa | 279 | py | Python | active_ap/test_new.py | Rui-Chun/ESP32-CSI-Collection-and-Display | 36b8a21b28aee63888456f1797c54bdb0f42029a | [
"MIT"
] | 1 | 2021-05-11T12:12:07.000Z | 2021-05-11T12:12:07.000Z | active_ap/test_new.py | Rui-Chun/ESP32-CSI-Collection-and-Display | 36b8a21b28aee63888456f1797c54bdb0f42029a | [
"MIT"
] | null | null | null | active_ap/test_new.py | Rui-Chun/ESP32-CSI-Collection-and-Display | 36b8a21b28aee63888456f1797c54bdb0f42029a | [
"MIT"
] | 2 | 2021-11-09T08:00:11.000Z | 2022-01-17T03:14:21.000Z | import pyqtgraph as pg
import numpy as np
x = np.arange(1000)
y = np.random.normal(size=(3, 1000))
plotWidget = pg.plot(title="Three plot curves")
for i in range(3):
plotWidget.plot(x, y[i], pen=(i,3)) ## setting pen=(i,3) automaticaly creates three different-colored pens
| 31 | 111 | 0.706093 | 49 | 279 | 4.020408 | 0.612245 | 0.040609 | 0.050761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05042 | 0.146953 | 279 | 8 | 112 | 34.875 | 0.777311 | 0.240143 | 0 | 0 | 0 | 0 | 0.081731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
56ed90e60a4c8395c1afdc2c657a13c96297efa6 | 1,384 | py | Python | setup.py | terrabasedb/python-driver | af3bbe9df1f1b47b79a0e81f386c3483c3dc35b7 | [
"Apache-2.0"
] | null | null | null | setup.py | terrabasedb/python-driver | af3bbe9df1f1b47b79a0e81f386c3483c3dc35b7 | [
"Apache-2.0"
] | null | null | null | setup.py | terrabasedb/python-driver | af3bbe9df1f1b47b79a0e81f386c3483c3dc35b7 | [
"Apache-2.0"
] | null | null | null | #
# Created on Fri Jul 24 2020
#
# This file is a part of the Python TerrabaseDB driver
#
# Copyright (c) 2020, Sayan Nandan <ohsayan at outlook dot com>
# Licensed under the Apache License, Version 2.0 (the "License");
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | 34.6 | 74 | 0.699422 | 184 | 1,384 | 5.25 | 0.543478 | 0.062112 | 0.046584 | 0.05383 | 0.231884 | 0.231884 | 0.231884 | 0.231884 | 0.231884 | 0.231884 | 0 | 0.018034 | 0.198699 | 1,384 | 39 | 75 | 35.487179 | 0.853021 | 0.532514 | 0 | 0 | 0 | 0 | 0.558214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56f0a389d7eae9acb764037c0473577212539d37 | 444 | py | Python | python/meta_policy_araali.py | SidharthAnand/api | 99d4b614b1535590a79a4a839fd31dd28a3524c3 | [
"MIT"
] | 4 | 2021-01-24T01:33:13.000Z | 2022-03-19T12:57:50.000Z | python/meta_policy_araali.py | SidharthAnand/api | 99d4b614b1535590a79a4a839fd31dd28a3524c3 | [
"MIT"
] | 4 | 2021-03-16T16:36:12.000Z | 2021-06-26T16:40:47.000Z | python/meta_policy_araali.py | SidharthAnand/api | 99d4b614b1535590a79a4a839fd31dd28a3524c3 | [
"MIT"
] | 7 | 2021-01-07T15:53:51.000Z | 2021-06-21T18:17:00.000Z | import api
class MpAraali:
policies = [
api.AcceptLink(filters=[
api.f.endpoint("process", ["autok8s", "guarantor"], who="client"),
api.f.endpoint("dns_pattern", ":.*.aws.araalinetworks.com:", who="server"),
], changes=[
("server", "dns_pattern", ... | 29.6 | 91 | 0.536036 | 43 | 444 | 5.488372 | 0.651163 | 0.033898 | 0.101695 | 0.228814 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003096 | 0.272523 | 444 | 14 | 92 | 31.714286 | 0.727554 | 0 | 0 | 0 | 0 | 0 | 0.337838 | 0.128378 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.25 | 0.083333 | 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 |
56f3b2b8a5aed21b7f60faab9831808dbd077da3 | 534 | py | Python | pydis_site/apps/api/migrations/0026_use_proper_default_for_infraction_insertion_date.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 700 | 2018-11-17T15:56:51.000Z | 2022-03-30T22:53:17.000Z | pydis_site/apps/api/migrations/0026_use_proper_default_for_infraction_insertion_date.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 542 | 2018-11-17T13:39:42.000Z | 2022-03-31T11:24:00.000Z | pydis_site/apps/api/migrations/0026_use_proper_default_for_infraction_insertion_date.py | Transfusion/site | 6992491f8c5f074e17c34d09553a715425112652 | [
"MIT"
] | 178 | 2018-11-21T09:06:56.000Z | 2022-03-31T07:43:28.000Z | # Generated by Django 2.1.5 on 2019-01-09 19:50
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('api', '0025_allow_custom_inserted_at_infraction_field'),
]
operations = [
migrations.AlterField(
mo... | 26.7 | 141 | 0.668539 | 64 | 534 | 5.4375 | 0.71875 | 0.063218 | 0.109195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046229 | 0.230337 | 534 | 19 | 142 | 28.105263 | 0.800487 | 0.08427 | 0 | 0 | 1 | 0 | 0.252567 | 0.094456 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56f4a1370960826101c69b0ea491d80616854a0c | 1,961 | py | Python | scripts/common.py | VisualComputingInstitute/BiternionNets-ROS | f29aca8d761d453ccef372d648a805aec7347091 | [
"MIT"
] | 12 | 2016-04-19T13:24:59.000Z | 2021-06-02T10:32:00.000Z | scripts/common.py | VisualComputingInstitute/BiternionNets-ROS | f29aca8d761d453ccef372d648a805aec7347091 | [
"MIT"
] | 4 | 2016-02-28T21:48:07.000Z | 2018-10-28T15:59:26.000Z | scripts/common.py | VisualComputingInstitute/BiternionNets-ROS | f29aca8d761d453ccef372d648a805aec7347091 | [
"MIT"
] | 8 | 2016-08-29T13:17:11.000Z | 2020-08-18T08:21:40.000Z | import numpy as np
def deg2bit(deg):
rad = np.deg2rad(deg)
return np.array([np.cos(rad), np.sin(rad)]).T
def bit2deg(angles_bit):
return (np.rad2deg(np.arctan2(angles_bit[:,1], angles_bit[:,0])) + 360) % 360
def flipbiternions(bits):
bits = bits.copy()
bits[:,1] *= -1
return bits
def ensemble_degree... | 27.236111 | 109 | 0.643549 | 322 | 1,961 | 3.900621 | 0.459627 | 0.025478 | 0.007166 | 0.009554 | 0.031847 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037834 | 0.218256 | 1,961 | 71 | 110 | 27.619718 | 0.781474 | 0.343192 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.028571 | 0.028571 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
710068383974c7266885a9c54fae1c92bcf62004 | 1,943 | py | Python | apps/resources/migrations/0001_initial.py | ShAlireza/gamein-backend | cd7db7a06cacb4398fb89d291e7fc796702157a2 | [
"MIT"
] | 5 | 2020-05-26T12:50:29.000Z | 2020-06-09T19:22:16.000Z | apps/resources/migrations/0001_initial.py | ShAlireza/gamein-backend | cd7db7a06cacb4398fb89d291e7fc796702157a2 | [
"MIT"
] | 7 | 2021-03-30T13:28:52.000Z | 2022-01-13T02:45:23.000Z | apps/resources/migrations/0001_initial.py | ShAlireza/gamein-backend | cd7db7a06cacb4398fb89d291e7fc796702157a2 | [
"MIT"
] | 1 | 2020-05-29T14:08:05.000Z | 2020-05-29T14:08:05.000Z | # Generated by Django 2.2.8 on 2019-12-26 22:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Document',
fields=[
... | 42.23913 | 154 | 0.591868 | 203 | 1,943 | 5.527094 | 0.310345 | 0.093583 | 0.042781 | 0.085562 | 0.578431 | 0.537433 | 0.508021 | 0.476827 | 0.476827 | 0.400178 | 0 | 0.023142 | 0.266083 | 1,943 | 45 | 155 | 43.177778 | 0.763675 | 0.02316 | 0 | 0.394737 | 1 | 0 | 0.10443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 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 |
710fd06b4b5fa5f31cf191f3edee202e1e5e4428 | 4,570 | py | Python | server/apps/api/viewsets.py | IvanDubrowin/simple-shop | 7eb3b3a82863ee382692498812954a2f4530dafe | [
"MIT"
] | null | null | null | server/apps/api/viewsets.py | IvanDubrowin/simple-shop | 7eb3b3a82863ee382692498812954a2f4530dafe | [
"MIT"
] | 8 | 2021-03-30T13:03:15.000Z | 2022-03-12T00:22:52.000Z | server/apps/api/viewsets.py | IvanDubrowin/simple-shop | 7eb3b3a82863ee382692498812954a2f4530dafe | [
"MIT"
] | null | null | null | from django.db.models.query import QuerySet
from django.http import Http404
from django.utils.decorators import method_decorator
from django.views.decorators.cache import cache_page
from rest_framework.decorators import action
from rest_framework.generics import get_object_or_404
from rest_framework.mixins import (Crea... | 35.984252 | 85 | 0.700438 | 464 | 4,570 | 6.773707 | 0.262931 | 0.041998 | 0.064906 | 0.041998 | 0.301304 | 0.269488 | 0.253898 | 0.244989 | 0.239262 | 0.207445 | 0 | 0.01012 | 0.2 | 4,570 | 126 | 86 | 36.269841 | 0.849562 | 0.02954 | 0 | 0.27957 | 0 | 0 | 0.020119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.172043 | 0.053763 | 0.591398 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
711b02c25575dfc6c4b819be61bdca98dac20eba | 1,690 | py | Python | script/scriptCompition.py | heartstchr/newsSentiment | 192d6197dd7cdb5de5fb1dd6a324b5c1f478de2b | [
"MIT"
] | null | null | null | script/scriptCompition.py | heartstchr/newsSentiment | 192d6197dd7cdb5de5fb1dd6a324b5c1f478de2b | [
"MIT"
] | null | null | null | script/scriptCompition.py | heartstchr/newsSentiment | 192d6197dd7cdb5de5fb1dd6a324b5c1f478de2b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import urllib2
import sqlite3
import json
import string
from BeautifulSoup import BeautifulSoup # available at: http://www.crummy.com/software/BeautifulSoup/
conn = sqlite3.connect("espionage.sqlite")
conn.row_factory = sqlite3.Row
base_url='https://www.moneycontrol.com'
def get_search_resul... | 31.886792 | 154 | 0.688757 | 239 | 1,690 | 4.723849 | 0.552301 | 0.026572 | 0.042516 | 0.031887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.177515 | 1,690 | 53 | 155 | 31.886792 | 0.790647 | 0.152663 | 0 | 0 | 0 | 0.029412 | 0.232908 | 0.029301 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147059 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
711bc637a7bc2d084a8d387494a6fa57f6bd0458 | 427 | py | Python | paint/migrations/0024_auto_20200425_2330.py | atulk17/Paint-App | 4b56455596d140cee4a9b19c71fe82364c3f3b7c | [
"BSD-2-Clause"
] | null | null | null | paint/migrations/0024_auto_20200425_2330.py | atulk17/Paint-App | 4b56455596d140cee4a9b19c71fe82364c3f3b7c | [
"BSD-2-Clause"
] | null | null | null | paint/migrations/0024_auto_20200425_2330.py | atulk17/Paint-App | 4b56455596d140cee4a9b19c71fe82364c3f3b7c | [
"BSD-2-Clause"
] | 1 | 2020-05-31T11:37:48.000Z | 2020-05-31T11:37:48.000Z | # Generated by Django 3.0.5 on 2020-04-25 18:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('paint', '0023_auto_20200425_2318'),
]
operations = [
migrations.AlterField(
model_name='sale_consists_of',
... | 22.473684 | 64 | 0.590164 | 44 | 427 | 5.568182 | 0.818182 | 0.097959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104027 | 0.302108 | 427 | 18 | 65 | 23.722222 | 0.718121 | 0.105386 | 0 | 0 | 1 | 0 | 0.165746 | 0.063536 | 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 |
7122e4fef312b213c678539058023f4cf674bea7 | 1,709 | py | Python | wordler/utils.py | jacobepst/wordler | 8be72a60fa4252664fbee27c272c7e543afa7ee1 | [
"MIT"
] | null | null | null | wordler/utils.py | jacobepst/wordler | 8be72a60fa4252664fbee27c272c7e543afa7ee1 | [
"MIT"
] | null | null | null | wordler/utils.py | jacobepst/wordler | 8be72a60fa4252664fbee27c272c7e543afa7ee1 | [
"MIT"
] | null | null | null | """Constants and helper functions used in this module"""
from wordler.__about__ import __title__
from enum import Enum
import logging
from typing import List, Union
from pkg_resources import resource_filename
ALPHABET = "abcdefghijklmnopqrstuvwxyz".upper()
def get_full_dicionary(word_length: int = 5) -> List[str]:... | 31.648148 | 83 | 0.709187 | 236 | 1,709 | 4.966102 | 0.470339 | 0.055461 | 0.015358 | 0.023891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000725 | 0.19251 | 1,709 | 53 | 84 | 32.245283 | 0.848551 | 0.241077 | 0 | 0 | 0 | 0 | 0.070579 | 0.020619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.166667 | 0.033333 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
712a5774e554791f7ebc9add2ec3e69be0005429 | 467 | py | Python | src/sponsorApp/migrations/0030_auto_20200506_1934.py | patelgaurank/SocialSponsorProject | 4a5485cc1e4576d67b8a627221c09f9448b64171 | [
"MIT"
] | null | null | null | src/sponsorApp/migrations/0030_auto_20200506_1934.py | patelgaurank/SocialSponsorProject | 4a5485cc1e4576d67b8a627221c09f9448b64171 | [
"MIT"
] | null | null | null | src/sponsorApp/migrations/0030_auto_20200506_1934.py | patelgaurank/SocialSponsorProject | 4a5485cc1e4576d67b8a627221c09f9448b64171 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-05-06 23:34
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sponsorApp', '0029_auto_20200506_1931'),
]
operations = [
migrations.AlterField(
model_name='loggeduser',
... | 23.35 | 98 | 0.631692 | 51 | 467 | 5.705882 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140805 | 0.254818 | 467 | 19 | 99 | 24.578947 | 0.695402 | 0.09636 | 0 | 0 | 1 | 0 | 0.140476 | 0.054762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
712b823866654d068b5a85269d25e8550a0dab9c | 2,603 | py | Python | academy_app/migrations/0002_auto_20211112_1619.py | mukesh0x0/CyberAcademy | efe4bdee49827aec5ae8fdf8d270f7964cb7d437 | [
"MIT"
] | 1 | 2021-11-20T15:12:45.000Z | 2021-11-20T15:12:45.000Z | academy_app/migrations/0002_auto_20211112_1619.py | mukesh0x0/CyberAcademy | efe4bdee49827aec5ae8fdf8d270f7964cb7d437 | [
"MIT"
] | null | null | null | academy_app/migrations/0002_auto_20211112_1619.py | mukesh0x0/CyberAcademy | efe4bdee49827aec5ae8fdf8d270f7964cb7d437 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-12 16:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('academy_app', '0001_init... | 46.482143 | 159 | 0.631195 | 272 | 2,603 | 5.860294 | 0.290441 | 0.089711 | 0.052698 | 0.082811 | 0.56399 | 0.56399 | 0.472396 | 0.472396 | 0.472396 | 0.472396 | 0 | 0.009524 | 0.233577 | 2,603 | 55 | 160 | 47.327273 | 0.789474 | 0.017288 | 0 | 0.469388 | 1 | 0 | 0.145931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061224 | 0 | 0.122449 | 0 | 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 |
7133d074de1df6940e687423ac393f815d697194 | 1,362 | py | Python | setup.py | aspose-diagram-cloud/aspose-diagram-cloud-python | 58254fccb833fb7e3a0453407e21b55edb96b81c | [
"MIT"
] | 3 | 2019-12-10T08:42:21.000Z | 2022-02-04T19:14:02.000Z | setup.py | aspose-diagram-cloud/aspose-diagram-cloud-python | 58254fccb833fb7e3a0453407e21b55edb96b81c | [
"MIT"
] | null | null | null | setup.py | aspose-diagram-cloud/aspose-diagram-cloud-python | 58254fccb833fb7e3a0453407e21b55edb96b81c | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Aspose.Diagram Cloud API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 3.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import sys
from setuptools import setup, f... | 29.608696 | 125 | 0.704112 | 161 | 1,362 | 5.919255 | 0.546584 | 0.095488 | 0.113326 | 0.044071 | 0.079748 | 0.079748 | 0.079748 | 0 | 0 | 0 | 0 | 0.013193 | 0.165198 | 1,362 | 45 | 126 | 30.266667 | 0.824978 | 0.27533 | 0 | 0 | 1 | 0 | 0.539349 | 0.074502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.