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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b8d3d6eef9923c53e2c72ef3ffa4d51959b6e188 | 263 | py | Python | run_perf_benchmarks.py | alirezajahani60/FabFlee | e2cfdb6efc758281e123f6acc1b06f93176dd756 | [
"BSD-3-Clause"
] | null | null | null | run_perf_benchmarks.py | alirezajahani60/FabFlee | e2cfdb6efc758281e123f6acc1b06f93176dd756 | [
"BSD-3-Clause"
] | null | null | null | run_perf_benchmarks.py | alirezajahani60/FabFlee | e2cfdb6efc758281e123f6acc1b06f93176dd756 | [
"BSD-3-Clause"
] | null | null | null | from base.fab import *
from plugins.FabFlee.FabFlee import *
@task
def flee_get_perf(results_dir):
print("{}/{}".format(env.local_results,results_dir))
my_file = open("{}/{}/perf.log".format(env.local_results,results_dir), 'r')
print(my_file.read())
| 29.222222 | 79 | 0.703422 | 39 | 263 | 4.512821 | 0.589744 | 0.170455 | 0.159091 | 0.238636 | 0.352273 | 0.352273 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114068 | 263 | 8 | 80 | 32.875 | 0.755365 | 0 | 0 | 0 | 0 | 0 | 0.076046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
b8dcb2e38617c441c3331cf21108a3eb3fba7a49 | 3,094 | py | Python | test_main.py | zenranda/proj10-gcalfinal | ee32beb3ef570b23883d41f84394b28818e5a07c | [
"Artistic-2.0"
] | null | null | null | test_main.py | zenranda/proj10-gcalfinal | ee32beb3ef570b23883d41f84394b28818e5a07c | [
"Artistic-2.0"
] | 2 | 2021-02-08T20:17:57.000Z | 2021-04-30T20:38:59.000Z | test_main.py | zenranda/proj10-gcalfinal | ee32beb3ef570b23883d41f84394b28818e5a07c | [
"Artistic-2.0"
] | null | null | null | ###
#Various nose tests. If you want to adapt this for your own use, be aware that the start/end block list has a very specific formatting.
###
import get_freebusy
import arrow
from operator import itemgetter
from pymongo import MongoClient
import secrets.admin_secrets
import secrets.client_secrets
MONGO_CLI... | 55.25 | 624 | 0.649968 | 578 | 3,094 | 3.430796 | 0.230104 | 0.08472 | 0.060514 | 0.085729 | 0.533535 | 0.474029 | 0.378215 | 0.297529 | 0.279375 | 0.239032 | 0 | 0.290058 | 0.170976 | 3,094 | 56 | 625 | 55.25 | 0.483041 | 0.101487 | 0 | 0.128205 | 0 | 0 | 0.509205 | 0.19514 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0.025641 | 0.153846 | 0 | 0.230769 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
b8e81060803693ffd42ace6d2aecd7a9dd90f046 | 417 | py | Python | testing/resources/test_g.py | tongni1975/processing.py | 0b9ad68a1dc289d5042d1d3b132c13cc157d3f88 | [
"Apache-2.0"
] | null | null | null | testing/resources/test_g.py | tongni1975/processing.py | 0b9ad68a1dc289d5042d1d3b132c13cc157d3f88 | [
"Apache-2.0"
] | 1 | 2021-06-25T15:36:38.000Z | 2021-06-25T15:36:38.000Z | testing/resources/test_g.py | tongni1975/processing.py | 0b9ad68a1dc289d5042d1d3b132c13cc157d3f88 | [
"Apache-2.0"
] | null | null | null | import processing.opengl.PGraphics3D
def setup():
size(100, 100, P3D)
def draw():
# check that "g" is defined and is the expected type
assert(isinstance(g, processing.opengl.PGraphics3D))
# check that the alias cameraMatrix->camera is working as expected
g.camera(0, 0, -10, 0, 0, 0, 0, 1, 0)
... | 26.0625 | 70 | 0.654676 | 62 | 417 | 4.403226 | 0.548387 | 0.029304 | 0.197802 | 0.14652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079511 | 0.215827 | 417 | 15 | 71 | 27.8 | 0.755352 | 0.275779 | 0 | 0 | 0 | 0 | 0.006689 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0 | null | null | 0 | 0.1 | null | null | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7710dc16a8fbe11c81dbff2a20f74da32953814d | 1,550 | py | Python | solutions/python3/problem1265.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | solutions/python3/problem1265.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | solutions/python3/problem1265.py | tjyiiuan/LeetCode | abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
1265. Print Immutable Linked List in Reverse
You are given an immutable linked list, print out all values of each node in reverse with the help of the following
interface:
ImmutableListNode: An interface of immutable linked list, you are given the head of the list.
You need to use the foll... | 29.245283 | 116 | 0.74129 | 218 | 1,550 | 5.270642 | 0.426606 | 0.078329 | 0.067885 | 0.020888 | 0.038294 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014412 | 0.194194 | 1,550 | 52 | 117 | 29.807692 | 0.905524 | 0.682581 | 0 | 0.181818 | 0 | 0 | 0.094444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.181818 | 0 | 0 | 0.545455 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
77135615dccca76a8c5274c97ffda5de511d3e32 | 87 | py | Python | Python/Sum/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 5 | 2020-08-29T15:15:31.000Z | 2022-03-01T18:22:34.000Z | Python/Sum/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | null | null | null | Python/Sum/main.py | drtierney/hyperskill-problems | b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0 | [
"MIT"
] | 1 | 2020-12-02T11:13:14.000Z | 2020-12-02T11:13:14.000Z | num1 = input()
num2 = input()
num3 = input()
print(int(num1) + int(num2) + int(num3))
| 14.5 | 40 | 0.609195 | 13 | 87 | 4.076923 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.172414 | 87 | 5 | 41 | 17.4 | 0.652778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 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 | 2 |
7730282673237879a35fb5efc177b9a2f6881b87 | 514 | py | Python | cheers/settings/prod.py | bahattincinic/cheers | 4443b23ad752c233743d71d1e035b757583a05f3 | [
"MIT"
] | 3 | 2019-03-12T03:38:13.000Z | 2021-03-15T16:48:49.000Z | cheers/settings/prod.py | bahattincinic/cheers | 4443b23ad752c233743d71d1e035b757583a05f3 | [
"MIT"
] | null | null | null | cheers/settings/prod.py | bahattincinic/cheers | 4443b23ad752c233743d71d1e035b757583a05f3 | [
"MIT"
] | 2 | 2022-01-05T11:43:42.000Z | 2022-03-16T00:05:19.000Z | from .base import *
import os
import dj_database_url
ALLOWED_HOSTS = ['*']
DEBUG = False
MIDDLEWARE += [
'whitenoise.middleware.WhiteNoiseMiddleware'
]
INSTALLED_APPS = [
'whitenoise.runserver_nostatic',
] + INSTALLED_APPS
DATABASES = {
'default': dj_database_url.config()
}
EMAIL_USE_TLS = True
EM... | 17.133333 | 59 | 0.743191 | 66 | 514 | 5.454545 | 0.469697 | 0.15 | 0.133333 | 0.188889 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134241 | 514 | 29 | 60 | 17.724138 | 0.808989 | 0 | 0 | 0 | 0 | 0 | 0.258755 | 0.138132 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.157895 | 0 | 0.157895 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7732a52cf70bb1c65299ac307a32800ed068e230 | 854 | py | Python | src/7/accessing_variables_defined_inside_a_closure/example2.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 14 | 2017-05-20T04:06:46.000Z | 2022-01-23T06:48:45.000Z | src/7/accessing_variables_defined_inside_a_closure/example2.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 1 | 2021-06-10T20:17:55.000Z | 2021-06-10T20:17:55.000Z | src/7/accessing_variables_defined_inside_a_closure/example2.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 15 | 2017-03-29T17:57:33.000Z | 2021-08-24T02:20:08.000Z | # Example of faking classes with a closure
import sys
class ClosureInstance:
def __init__(self, locals=None):
if locals is None:
locals = sys._getframe(1).f_locals
# Update instance dictionary with callables
self.__dict__.update((key,value) for key, value in locals.items()
... | 20.829268 | 73 | 0.580796 | 106 | 854 | 4.358491 | 0.471698 | 0.051948 | 0.058442 | 0.060606 | 0.058442 | 0.058442 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.297424 | 854 | 40 | 74 | 21.35 | 0.761667 | 0.139344 | 0 | 0.107143 | 0 | 0 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.035714 | 0.107143 | 0.428571 | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
7759ab5bb6b2419c0cf09ba0f8c0454651c021e4 | 3,618 | py | Python | src/morphforge/simulation/neuron/core/neuronsimulationenvironment.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | 1 | 2021-01-21T11:31:59.000Z | 2021-01-21T11:31:59.000Z | src/morphforge/simulation/neuron/core/neuronsimulationenvironment.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | null | null | null | src/morphforge/simulation/neuron/core/neuronsimulationenvironment.py | mikehulluk/morphforge | 2a95096f144ed4ea487decb735ce66706357d3c7 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are m... | 37.6875 | 75 | 0.725263 | 399 | 3,618 | 6.518797 | 0.423559 | 0.048443 | 0.073818 | 0.05767 | 0.189927 | 0.132257 | 0.052288 | 0.052288 | 0.052288 | 0.052288 | 0 | 0.001654 | 0.164456 | 3,618 | 95 | 76 | 38.084211 | 0.85875 | 0.408789 | 0 | 0.046512 | 0 | 0 | 0.002848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0.209302 | 0.093023 | 0.837209 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
91f45538afa3b794621cc7c469da195bbca2956a | 627 | py | Python | samples/cordic/cordic_golden.py | hj424/heterocl | e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b | [
"Apache-2.0"
] | 236 | 2019-05-19T01:48:11.000Z | 2022-03-31T09:03:54.000Z | samples/cordic/cordic_golden.py | hj424/heterocl | e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b | [
"Apache-2.0"
] | 248 | 2019-05-17T19:18:36.000Z | 2022-03-30T21:25:47.000Z | samples/cordic/cordic_golden.py | hj424/heterocl | e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b | [
"Apache-2.0"
] | 85 | 2019-05-17T20:09:27.000Z | 2022-02-28T20:19:00.000Z | import numpy as np
golden = np.array([
[100.0, 100.0],
[206.226840616, 179.610387213],
[1190.25124092, 1197.15702025],
[1250.76639667, 1250.3933971],
[1261.76760093, 1250.17718583],
[1237.4846285, 1237.56490579],
[1273.56730356, 1266.82141705],
[1272.899992, 1259.92589118],
[1.17000308922e-06, ... | 31.35 | 41 | 0.700159 | 87 | 627 | 5.045977 | 0.735632 | 0.018223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.710432 | 0.113238 | 627 | 19 | 42 | 33 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
91f4996456aabf6bbe1ac697a26d604a9883879d | 98 | py | Python | src/game_client/conf.py | adapiekarska/network-pong | c6a88b66570f26aea9c9976eb16953c480b846ec | [
"MIT"
] | 2 | 2018-11-14T17:25:24.000Z | 2019-12-09T17:57:30.000Z | src/game_client/conf.py | adapiekarska/network-pong | c6a88b66570f26aea9c9976eb16953c480b846ec | [
"MIT"
] | null | null | null | src/game_client/conf.py | adapiekarska/network-pong | c6a88b66570f26aea9c9976eb16953c480b846ec | [
"MIT"
] | null | null | null | """
User configuration file for the client.
"""
SERVER_ADDRESS = "127.0.0.1"
SERVER_PORT = 50000
| 14 | 39 | 0.704082 | 15 | 98 | 4.466667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13253 | 0.153061 | 98 | 6 | 40 | 16.333333 | 0.674699 | 0.397959 | 0 | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
91f69a518f7a745cba0d44a46ab85227b8ebc8dd | 636 | py | Python | 8. str_range/test_solution.py | dcragusa/WeeklyPythonExerciseB2 | a7da3830e27891060dcfb0804c81f52b1f250ce8 | [
"MIT"
] | null | null | null | 8. str_range/test_solution.py | dcragusa/WeeklyPythonExerciseB2 | a7da3830e27891060dcfb0804c81f52b1f250ce8 | [
"MIT"
] | null | null | null | 8. str_range/test_solution.py | dcragusa/WeeklyPythonExerciseB2 | a7da3830e27891060dcfb0804c81f52b1f250ce8 | [
"MIT"
] | null | null | null | from solution import str_range
def test_same_start_end():
r = str_range('a', 'a')
assert iter(r) == r
assert ''.join(list(r)) == 'a'
def test_simple():
r = str_range('a', 'c')
assert ''.join(list(r)) == 'abc'
def test_simple_with_step():
r = str_range('a', 'c', 2)
assert ''.join(list(r... | 18.171429 | 37 | 0.606918 | 99 | 636 | 3.616162 | 0.292929 | 0.134078 | 0.125698 | 0.209497 | 0.195531 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005837 | 0.191824 | 636 | 34 | 38 | 18.705882 | 0.690661 | 0 | 0 | 0 | 0 | 0 | 0.034591 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.227273 | false | 0 | 0.045455 | 0 | 0.272727 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
91fa4adf813afeff4ee8cff082ebb2bd99d4723f | 269 | py | Python | Python3/Coursera/003_quadratic_roots/solution.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | Python3/Coursera/003_quadratic_roots/solution.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | Python3/Coursera/003_quadratic_roots/solution.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | import sys
import math
if __name__ == '__main__':
a = int(sys.argv[1])
b = int(sys.argv[2])
c = int(sys.argv[3])
d = b * b - 4 * a * c
x1 = (-b + math.sqrt(d)) / (2 * a)
x2 = (-b - math.sqrt(d)) / (2 * a)
print(int(x1))
print(int(x2))
| 19.214286 | 38 | 0.472119 | 48 | 269 | 2.479167 | 0.416667 | 0.151261 | 0.252101 | 0.168067 | 0.201681 | 0.201681 | 0 | 0 | 0 | 0 | 0 | 0.053476 | 0.304833 | 269 | 13 | 39 | 20.692308 | 0.582888 | 0 | 0 | 0 | 0 | 0 | 0.02974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
6221e9086b65f59966870eca97102d109aabb9a1 | 3,458 | py | Python | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/interface/dhcpv4discoveredinfo/dhcpv4discoveredinfo.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/interface/dhcpv4discoveredinfo/dhcpv4discoveredinfo.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/interface/dhcpv4discoveredinfo/dhcpv4discoveredinfo.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | 34.58 | 217 | 0.738577 | 468 | 3,458 | 5.401709 | 0.440171 | 0.03481 | 0.033228 | 0.060918 | 0.089003 | 0.079114 | 0.026108 | 0 | 0 | 0 | 0 | 0.01073 | 0.19144 | 3,458 | 99 | 218 | 34.929293 | 0.893419 | 0.703297 | 0 | 0.259259 | 0 | 0 | 0.123986 | 0.032445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0.074074 | 0 | 0.703704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
6224e1d3f02d7b9dda37a271e14789ceeccd2dd5 | 574 | py | Python | code_hashers/attendant.py | ksajan/iis-ms-del | 6339f639d674fedb88454b43dcd64493be2a4558 | [
"MIT"
] | 2 | 2019-12-24T13:32:22.000Z | 2019-12-26T11:26:08.000Z | code_hashers/attendant.py | ksajan/iis-ms-del | 6339f639d674fedb88454b43dcd64493be2a4558 | [
"MIT"
] | 1 | 2019-12-26T07:53:34.000Z | 2019-12-26T07:53:34.000Z | code_hashers/attendant.py | ksajan/iis-ms-del | 6339f639d674fedb88454b43dcd64493be2a4558 | [
"MIT"
] | 35 | 2019-12-22T05:05:43.000Z | 2019-12-22T07:16:56.000Z | class ParkingLot:
def __init__(self, username, latitude, longitude, totalSpace, costHour):
self.username = username
self.latitude = latitude
self.longitude = longitude
self.totalSpace = totalSpace
self.availableSpace = totalSpace
self.costHour = costHour
def getS... | 24.956522 | 76 | 0.651568 | 55 | 574 | 6.654545 | 0.327273 | 0.131148 | 0.060109 | 0.103825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002387 | 0.270035 | 574 | 22 | 77 | 26.090909 | 0.871122 | 0.029617 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0 | 0.0625 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
622f91861f9e766601a659b3e6368f910237afb0 | 159 | py | Python | Source Codes Testing/list1.py | urstrulykkr/Python | 098ed5d391f0e62d4950ca80cc57a032c65d1637 | [
"MIT"
] | null | null | null | Source Codes Testing/list1.py | urstrulykkr/Python | 098ed5d391f0e62d4950ca80cc57a032c65d1637 | [
"MIT"
] | null | null | null | Source Codes Testing/list1.py | urstrulykkr/Python | 098ed5d391f0e62d4950ca80cc57a032c65d1637 | [
"MIT"
] | null | null | null | lst1=list()
lst1.append('K')
lst1.append('A')
lst2=['U', 'S', 'H', 'I', 'K']
print(lst1+lst2)
print(lst2[0] +lst2[1]+lst1[1])
for i in lst1+lst2:
print(i)
| 14.454545 | 32 | 0.578616 | 31 | 159 | 2.967742 | 0.483871 | 0.217391 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100719 | 0.125786 | 159 | 10 | 33 | 15.9 | 0.561151 | 0 | 0 | 0 | 0 | 0 | 0.044025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 1 | 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 | 2 |
623f19da861cce44fb9bf0964c673c92b5ac9b2f | 713 | py | Python | learn_big_data_on_aws/config.py | MacHu-GWU/learn_big_data_on_aws-project | 0db78c35a1712fdd905763fd299663982e44601c | [
"MIT"
] | null | null | null | learn_big_data_on_aws/config.py | MacHu-GWU/learn_big_data_on_aws-project | 0db78c35a1712fdd905763fd299663982e44601c | [
"MIT"
] | null | null | null | learn_big_data_on_aws/config.py | MacHu-GWU/learn_big_data_on_aws-project | 0db78c35a1712fdd905763fd299663982e44601c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from s3pathlib import S3Path
class Config:
aws_profile = "aws_data_lab_sanhe"
aws_region = "us-east-2"
# where you store data, artifacts
bucket = "aws-data-lab-sanhe-for-everything-us-east-2"
# s3 folder for data lake
dataset_prefix = "poc/2022-02-26-learn_big_data_on_... | 24.586207 | 67 | 0.695652 | 98 | 713 | 4.857143 | 0.5 | 0.081933 | 0.113445 | 0.063025 | 0.151261 | 0.151261 | 0.151261 | 0 | 0 | 0 | 0 | 0.033569 | 0.206171 | 713 | 28 | 68 | 25.464286 | 0.80742 | 0.186536 | 0 | 0.133333 | 0 | 0 | 0.228223 | 0.151568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.133333 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
6244eae08f282f33089c904acc046111406cab02 | 234 | py | Python | ex15.py | phyupyarko/python-exercises | f231ca8c8c1f2614bb166cc72ce45860eff88c1d | [
"MIT"
] | null | null | null | ex15.py | phyupyarko/python-exercises | f231ca8c8c1f2614bb166cc72ce45860eff88c1d | [
"MIT"
] | null | null | null | ex15.py | phyupyarko/python-exercises | f231ca8c8c1f2614bb166cc72ce45860eff88c1d | [
"MIT"
] | null | null | null | from sys import argv
script, filename=argv
txt = open(filename)
print(f"Here's your file {filename}:")
print(txt.read())
print("Type the filename again:")
file_again = input("> ")
txt_again = open (file_again)
print(txt_again.read())
| 23.4 | 38 | 0.726496 | 37 | 234 | 4.486486 | 0.513514 | 0.156627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 234 | 9 | 39 | 26 | 0.801932 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.444444 | 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 | 1 | 0 | 2 |
6250a79068b77c4892032d50b57910bd5cac5d15 | 42,245 | py | Python | uhd_restpy/testplatform/sessions/ixnetwork/topology/ospfv3_c029fd7cd4a9e9897b7b4e4547458751.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | uhd_restpy/testplatform/sessions/ixnetwork/topology/ospfv3_c029fd7cd4a9e9897b7b4e4547458751.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | uhd_restpy/testplatform/sessions/ixnetwork/topology/ospfv3_c029fd7cd4a9e9897b7b4e4547458751.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | 41.951341 | 565 | 0.639981 | 4,679 | 42,245 | 5.696089 | 0.110707 | 0.022963 | 0.044199 | 0.025364 | 0.680399 | 0.653047 | 0.639764 | 0.606784 | 0.580144 | 0.54176 | 0 | 0.009511 | 0.245852 | 42,245 | 1,006 | 566 | 41.993042 | 0.82705 | 0.534075 | 0 | 0.365385 | 0 | 0 | 0.107858 | 0.011262 | 0 | 0 | 0 | 0 | 0 | 1 | 0.224359 | false | 0 | 0.112179 | 0 | 0.554487 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
62592611062846e8ddc9453d08b3f9cc749f88fa | 129 | py | Python | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/20.03-File-handling.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/20.03-File-handling.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/20.03-File-handling.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | file = open("text.txt", "r")
file2 = open("text2.txt", "w")
for data in file:
file2.write(data)
file.close()
file2.close()
| 14.333333 | 30 | 0.620155 | 21 | 129 | 3.809524 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.162791 | 129 | 8 | 31 | 16.125 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0.147287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
6261861dfa046a0934777f8f23b5ec284278ef51 | 1,115 | py | Python | py_connect/exceptions.py | iparaskev/py_connect | 43476cddfb25130d058fcf59928454f867af8feb | [
"BSD-3-Clause"
] | 5 | 2021-03-19T07:05:50.000Z | 2021-03-31T22:53:52.000Z | py_connect/exceptions.py | iparaskev/py_connect | 43476cddfb25130d058fcf59928454f867af8feb | [
"BSD-3-Clause"
] | null | null | null | py_connect/exceptions.py | iparaskev/py_connect | 43476cddfb25130d058fcf59928454f867af8feb | [
"BSD-3-Clause"
] | null | null | null | """Exceptions of the library"""
class PyConnectError(Exception):
"""Base class for all exceptions in py_connect."""
class InvalidPowerCombination(PyConnectError):
"""Connection of different power pins."""
class MaxConnectionsError(PyConnectError):
"""Interface has exceeded it's max connections limit."... | 24.23913 | 67 | 0.744395 | 115 | 1,115 | 7.208696 | 0.608696 | 0.012063 | 0.055489 | 0.079614 | 0.086852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148879 | 1,115 | 45 | 68 | 24.777778 | 0.873551 | 0.464574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
626b51aefb27ae8f4702b720697fa00e55d0360c | 1,309 | py | Python | robot_simulator/grid/positioning.py | darshikaf/toy-robot-simulator | 408d160033728d65e9bac376d3af7fc84c520f31 | [
"MIT"
] | null | null | null | robot_simulator/grid/positioning.py | darshikaf/toy-robot-simulator | 408d160033728d65e9bac376d3af7fc84c520f31 | [
"MIT"
] | null | null | null | robot_simulator/grid/positioning.py | darshikaf/toy-robot-simulator | 408d160033728d65e9bac376d3af7fc84c520f31 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import annotations
import math
class Point:
def __init__(self, x: int = 0, y: int = 0):
self.x = x
self.y = y
def __eq__(self, other: object) -> bool:
if isinstance(other, Point):
return (self.x == other.x) an... | 27.270833 | 71 | 0.578304 | 183 | 1,309 | 3.918033 | 0.256831 | 0.041841 | 0.030683 | 0.052999 | 0.281729 | 0.192469 | 0.131102 | 0.131102 | 0.131102 | 0 | 0 | 0.013934 | 0.287242 | 1,309 | 47 | 72 | 27.851064 | 0.754555 | 0.032086 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.060606 | 0 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
626ca157c2ac9db263365279311bac86dc999674 | 328 | py | Python | backmarker/api/viewsets/driver_viewset.py | jmp/backmarker | e12a094d92dec798ad10aa8890fabe84f946c303 | [
"MIT"
] | null | null | null | backmarker/api/viewsets/driver_viewset.py | jmp/backmarker | e12a094d92dec798ad10aa8890fabe84f946c303 | [
"MIT"
] | null | null | null | backmarker/api/viewsets/driver_viewset.py | jmp/backmarker | e12a094d92dec798ad10aa8890fabe84f946c303 | [
"MIT"
] | null | null | null | from rest_framework.viewsets import ReadOnlyModelViewSet
from backmarker.api.serializers.driver_serializer import DriverSerializer
from backmarker.models.driver import Driver
class DriverViewSet(ReadOnlyModelViewSet):
queryset = Driver.objects.all()
serializer_class = DriverSerializer
lookup_field = "ref... | 29.818182 | 73 | 0.829268 | 33 | 328 | 8.121212 | 0.636364 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115854 | 328 | 10 | 74 | 32.8 | 0.924138 | 0 | 0 | 0 | 0 | 0 | 0.027439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
62735fa3cb9b4a375ffe477b83e79ab29f0e085c | 537 | py | Python | plugs_newsletter/emails.py | solocompt/plugs-newsletter | 57b9aa2caf9ed5bd5adf25839dbf52b85c0afa53 | [
"MIT"
] | 1 | 2017-01-10T23:24:55.000Z | 2017-01-10T23:24:55.000Z | plugs_newsletter/emails.py | solocompt/plugs-newsletter | 57b9aa2caf9ed5bd5adf25839dbf52b85c0afa53 | [
"MIT"
] | 1 | 2017-01-08T00:01:21.000Z | 2017-01-08T00:01:21.000Z | plugs_newsletter/emails.py | solocompt/plugs-newsletter | 57b9aa2caf9ed5bd5adf25839dbf52b85c0afa53 | [
"MIT"
] | null | null | null | """
Plugs Newsletter Emails
"""
from plugs_mail.mail import PlugsMail
class NewsletterSubscribed(PlugsMail):
"""
Email sent to subscriber after newsletter subscription
"""
template = 'NEWSLETTER_SUBSCRIBED'
description = 'Email sent to subscriber after newsletter subscription'
class NewsletterUns... | 26.85 | 76 | 0.748603 | 51 | 537 | 7.823529 | 0.411765 | 0.090226 | 0.110276 | 0.210526 | 0.591479 | 0.591479 | 0.591479 | 0 | 0 | 0 | 0 | 0 | 0.182495 | 537 | 19 | 77 | 28.263158 | 0.908884 | 0.251397 | 0 | 0 | 0 | 0 | 0.423077 | 0.120879 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 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 | 1 | 0 | 0 | 2 |
62758b3a2a4619c1b6d03498fcd2b870db5024e4 | 495 | py | Python | gail/crowd_sim/configs/icra_benchmark/sarl.py | ben-milanko/PyTorch-RL | 4d7be8a7f26f21b490c93191dca1844046a092df | [
"MIT"
] | null | null | null | gail/crowd_sim/configs/icra_benchmark/sarl.py | ben-milanko/PyTorch-RL | 4d7be8a7f26f21b490c93191dca1844046a092df | [
"MIT"
] | null | null | null | gail/crowd_sim/configs/icra_benchmark/sarl.py | ben-milanko/PyTorch-RL | 4d7be8a7f26f21b490c93191dca1844046a092df | [
"MIT"
] | null | null | null | from configs.icra_benchmark.config import BaseEnvConfig, BasePolicyConfig, BaseTrainConfig, Config
class EnvConfig(BaseEnvConfig):
def __init__(self, debug=False):
super(EnvConfig, self).__init__(debug)
class PolicyConfig(BasePolicyConfig):
def __init__(self, debug=False):
super(PolicyConfig... | 27.5 | 98 | 0.733333 | 52 | 495 | 6.5 | 0.403846 | 0.06213 | 0.097633 | 0.142012 | 0.230769 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 495 | 17 | 99 | 29.117647 | 0.816425 | 0 | 0 | 0.272727 | 0 | 0 | 0.008081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
627d2e10dedbd895286404f157c63ff39dd0589c | 368 | py | Python | experiments/duet_dataloader/input_file_generator.py | 18praveenb/ss-vq-vae | 89e76d69d6127b27ae4cc066a1a1f9c4147fb020 | [
"Apache-2.0"
] | null | null | null | experiments/duet_dataloader/input_file_generator.py | 18praveenb/ss-vq-vae | 89e76d69d6127b27ae4cc066a1a1f9c4147fb020 | [
"Apache-2.0"
] | null | null | null | experiments/duet_dataloader/input_file_generator.py | 18praveenb/ss-vq-vae | 89e76d69d6127b27ae4cc066a1a1f9c4147fb020 | [
"Apache-2.0"
] | null | null | null | genres = ['blues', 'classical', 'country', 'disco', 'hiphop', 'jazz', 'metal', 'pop', 'reggae', 'rock']
num_files = 100
with open(f'INPUT_FULL', 'w') as f:
for genre in genres:
for i in range(num_files):
for j in range(6):
f.write(f'/datasets/duet/genres/{genre}.{i:05d}.{j}.wav /... | 52.571429 | 121 | 0.578804 | 57 | 368 | 3.684211 | 0.596491 | 0.07619 | 0.171429 | 0.219048 | 0.295238 | 0.295238 | 0.295238 | 0.295238 | 0 | 0 | 0 | 0.027119 | 0.19837 | 368 | 7 | 121 | 52.571429 | 0.684746 | 0 | 0 | 0 | 0 | 0.142857 | 0.428184 | 0.249322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
6289a72aad33159f7d054947864a1fb1eeedfac8 | 2,756 | py | Python | ROSITA/ARMCycleCounterImpl.py | 0xADE1A1DE/Rosita | 13a669c1877b2eb5a36be6b41a6f840d83ffd46a | [
"Apache-2.0"
] | 10 | 2020-11-22T08:17:08.000Z | 2021-12-17T04:06:01.000Z | ROSITA/ARMCycleCounterImpl.py | 0xADE1A1DE/Rosita | 13a669c1877b2eb5a36be6b41a6f840d83ffd46a | [
"Apache-2.0"
] | null | null | null | ROSITA/ARMCycleCounterImpl.py | 0xADE1A1DE/Rosita | 13a669c1877b2eb5a36be6b41a6f840d83ffd46a | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 University of Adelaide
#
# 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 ... | 29.010526 | 74 | 0.697388 | 354 | 2,756 | 5.293785 | 0.353107 | 0.05603 | 0.097118 | 0.072038 | 0.350053 | 0.23159 | 0.167022 | 0.167022 | 0.167022 | 0.148346 | 0 | 0.229698 | 0.21807 | 2,756 | 95 | 75 | 29.010526 | 0.639907 | 0.302975 | 0 | 0.309091 | 0 | 0 | 0.001582 | 0 | 0 | 0 | 0.009494 | 0 | 0 | 1 | 0.218182 | false | 0 | 0 | 0.054545 | 0.6 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6561c740148f4e9dc7f6313a8907266fbf944537 | 233 | py | Python | backend/src/urls.py | Ornstein89/LeadersOfDigital2021_FoxhoundTeam | a376525b07b900bd69dbc274daef66ddad7f1800 | [
"MIT"
] | null | null | null | backend/src/urls.py | Ornstein89/LeadersOfDigital2021_FoxhoundTeam | a376525b07b900bd69dbc274daef66ddad7f1800 | [
"MIT"
] | null | null | null | backend/src/urls.py | Ornstein89/LeadersOfDigital2021_FoxhoundTeam | a376525b07b900bd69dbc274daef66ddad7f1800 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
from src.base import urls as base_api
urlpatterns = [
path('admin/', admin.site.urls),
path('rest_api/', include(
base_api.urlpatterns
)),
] | 21.181818 | 37 | 0.690987 | 32 | 233 | 4.9375 | 0.46875 | 0.126582 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197425 | 233 | 11 | 38 | 21.181818 | 0.84492 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
65795b0076fedc356eabb71c92883de2bfec241d | 261 | py | Python | tests/test_crud/conftest.py | amisadmin/fastapi_amis_admin | 07967a31c46cb6e8e0b4ca703d6d815c2091624a | [
"Apache-2.0"
] | 166 | 2022-02-05T15:52:51.000Z | 2022-03-31T10:57:35.000Z | tests/test_crud/conftest.py | amisadmin/fastapi_amis_admin | 07967a31c46cb6e8e0b4ca703d6d815c2091624a | [
"Apache-2.0"
] | 9 | 2022-02-17T07:32:58.000Z | 2022-03-31T13:46:24.000Z | tests/test_crud/conftest.py | amisadmin/fastapi_amis_admin | 07967a31c46cb6e8e0b4ca703d6d815c2091624a | [
"Apache-2.0"
] | 15 | 2022-02-10T07:24:17.000Z | 2022-03-24T04:08:10.000Z | import pytest
from tests.test_crud.main import app
@pytest.fixture(scope='session', autouse=True)
def startup():
import asyncio
# asyncio.run(app.router.startup())
loop = asyncio.get_event_loop()
loop.run_until_complete(app.router.startup())
| 21.75 | 49 | 0.731801 | 36 | 261 | 5.166667 | 0.638889 | 0.096774 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141762 | 261 | 11 | 50 | 23.727273 | 0.830357 | 0.126437 | 0 | 0 | 0 | 0 | 0.030973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
657f66cb6267b45323c6fdaa161920c2b665fce3 | 24,375 | py | Python | XOconv/pycgtypes/mat4.py | jsburg/xdsme | 3fc9ed185ab78e1a42306edf24e681981eacd221 | [
"BSD-3-Clause"
] | 16 | 2016-05-20T11:19:40.000Z | 2021-01-01T19:44:23.000Z | XOconv/pycgtypes/mat4.py | jsburg/xdsme | 3fc9ed185ab78e1a42306edf24e681981eacd221 | [
"BSD-3-Clause"
] | 11 | 2016-09-09T15:00:15.000Z | 2021-05-07T15:02:10.000Z | XOconv/pycgtypes/mat4.py | jsburg/xdsme | 3fc9ed185ab78e1a42306edf24e681981eacd221 | [
"BSD-3-Clause"
] | 9 | 2016-12-15T16:00:06.000Z | 2021-09-10T08:34:14.000Z | ######################################################################
# mat4 - Matrix class (4x4 matrix)
#
# Copyright (C) 2002, Matthias Baas (baas@ira.uka.de)
#
# You may distribute under the terms of the BSD license, as
# specified in the file license.txt.
####################################################... | 36.057692 | 109 | 0.454974 | 3,579 | 24,375 | 3.065381 | 0.100866 | 0.026069 | 0.029806 | 0.030262 | 0.468508 | 0.458481 | 0.442075 | 0.436514 | 0.425303 | 0.390028 | 0 | 0.206001 | 0.379241 | 24,375 | 675 | 110 | 36.111111 | 0.519067 | 0.027528 | 0 | 0.227041 | 0 | 0 | 0.033511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012755 | null | null | 0.002551 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
65958e7861004b1f3934ff47c4a5e6dfe2a86170 | 239 | py | Python | iot/common_functions/all_imports.py | sankaet/IOT-DB | a554f49b9c25ae1a9a91b6a2564489b999da03bd | [
"MIT"
] | 1 | 2016-10-26T23:10:57.000Z | 2016-10-26T23:10:57.000Z | iot/common_functions/all_imports.py | sankaet/IOT-DB | a554f49b9c25ae1a9a91b6a2564489b999da03bd | [
"MIT"
] | null | null | null | iot/common_functions/all_imports.py | sankaet/IOT-DB | a554f49b9c25ae1a9a91b6a2564489b999da03bd | [
"MIT"
] | null | null | null | from pymongo import MongoClient
from bson import ObjectId
from bson.json_util import dumps
from json import loads
client = MongoClient('localhost', 27017)
IOT_DB = client.iot_db
IOT_SCHEMAS = IOT_DB.iot_schemas
IOT_DATA = IOT_DB.iot_data | 23.9 | 40 | 0.820084 | 39 | 239 | 4.794872 | 0.435897 | 0.106952 | 0.128342 | 0.160428 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023923 | 0.125523 | 239 | 10 | 41 | 23.9 | 0.870813 | 0 | 0 | 0 | 0 | 0 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
659ffa3c1d30e46aa593ca5d32d54d54bd7d5e35 | 218 | py | Python | plugins/pick/choices.py | rbracken/internbot | 58b802e0dd7597ace12acd9342bb938e2f33c25d | [
"BSD-2-Clause"
] | 1 | 2016-09-24T16:00:06.000Z | 2016-09-24T16:00:06.000Z | plugins/pick/choices.py | rbracken/internbot | 58b802e0dd7597ace12acd9342bb938e2f33c25d | [
"BSD-2-Clause"
] | null | null | null | plugins/pick/choices.py | rbracken/internbot | 58b802e0dd7597ace12acd9342bb938e2f33c25d | [
"BSD-2-Clause"
] | null | null | null | # Add your own choices here!
fruit = ["apples", "oranges", "pears", "grapes", "blueberries"]
lunch = ["pho", "timmies", "thai", "burgers", "buffet!", "indian", "montanas"]
situations = {"fruit":fruit, "lunch":lunch}
| 36.333333 | 79 | 0.62844 | 24 | 218 | 5.708333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12844 | 218 | 5 | 80 | 43.6 | 0.721053 | 0.119266 | 0 | 0 | 0 | 0 | 0.457895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
65ac8cde7af97a0e6637820254f0d7a893315eae | 143 | py | Python | src/settings.py | MichaelJWelsh/bot-evolution | 6d8e3449fc5350f47e91a6aa7a3e8b719c0c2f16 | [
"MIT"
] | 151 | 2017-05-01T02:47:34.000Z | 2022-01-21T17:08:11.000Z | src/settings.py | MichaelJWelsh/bot-evolution | 6d8e3449fc5350f47e91a6aa7a3e8b719c0c2f16 | [
"MIT"
] | null | null | null | src/settings.py | MichaelJWelsh/bot-evolution | 6d8e3449fc5350f47e91a6aa7a3e8b719c0c2f16 | [
"MIT"
] | 26 | 2017-05-01T21:41:02.000Z | 2021-12-21T11:40:20.000Z | """
This module contains the general settings used across modules.
"""
FPS = 60
WINDOW_WIDTH = 1100
WINDOW_HEIGHT = 600
TIME_MULTIPLIER = 1.0
| 15.888889 | 62 | 0.748252 | 21 | 143 | 4.952381 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092437 | 0.167832 | 143 | 8 | 63 | 17.875 | 0.781513 | 0.433566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
65ae5ae925181ff1d726f472dfbdd87ce820d687 | 9,535 | py | Python | aiida/orm/entities.py | PercivalN/aiida-core | b215ed5a7ce9342bb7f671b67e95c1f474cc5940 | [
"BSD-2-Clause"
] | 1 | 2019-07-31T04:08:13.000Z | 2019-07-31T04:08:13.000Z | aiida/orm/entities.py | PercivalN/aiida-core | b215ed5a7ce9342bb7f671b67e95c1f474cc5940 | [
"BSD-2-Clause"
] | null | null | null | aiida/orm/entities.py | PercivalN/aiida-core | b215ed5a7ce9342bb7f671b67e95c1f474cc5940 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 32.431973 | 116 | 0.627687 | 1,121 | 9,535 | 5.214095 | 0.211418 | 0.060051 | 0.031138 | 0.032335 | 0.282293 | 0.24722 | 0.216082 | 0.188024 | 0.179299 | 0.179299 | 0 | 0.000722 | 0.273309 | 9,535 | 293 | 117 | 32.542662 | 0.842834 | 0.476875 | 0 | 0.17 | 0 | 0 | 0.030538 | 0 | 0 | 0 | 0 | 0 | 0.01 | 1 | 0.22 | false | 0 | 0.11 | 0.01 | 0.57 | 0.01 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
65be1ffede01306450a5f34b42845bf53968f1d8 | 248 | py | Python | pre_definition/solve_caller.py | sr9000/stepik_code_task_baking | 60a5197f659db1734132eeb9d82624f1b7aaeb3f | [
"MIT"
] | null | null | null | pre_definition/solve_caller.py | sr9000/stepik_code_task_baking | 60a5197f659db1734132eeb9d82624f1b7aaeb3f | [
"MIT"
] | null | null | null | pre_definition/solve_caller.py | sr9000/stepik_code_task_baking | 60a5197f659db1734132eeb9d82624f1b7aaeb3f | [
"MIT"
] | null | null | null | from collections.abc import Iterable as ABCIterable
def call_with_args(func, args):
if isinstance(args, dict):
return func(**args)
elif isinstance(args, ABCIterable):
return func(*args)
else:
return func(args)
| 22.545455 | 51 | 0.665323 | 31 | 248 | 5.258065 | 0.580645 | 0.196319 | 0.257669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241935 | 248 | 10 | 52 | 24.8 | 0.867021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 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 | 1 | 0 | 0 | 2 |
65c451b4c4af62ac430c54bacf4793ebfef0c2ef | 48,201 | py | Python | pysnmp-with-texts/DOCS-LOADBALANCING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/DOCS-LOADBALANCING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/DOCS-LOADBALANCING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module DOCS-LOADBALANCING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DOCS-LOADBALANCING-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:53:17 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 187.552529 | 4,381 | 0.801954 | 5,662 | 48,201 | 6.82674 | 0.119922 | 0.009055 | 0.074431 | 0.008175 | 0.350063 | 0.240033 | 0.210385 | 0.191318 | 0.173596 | 0.160867 | 0 | 0.043466 | 0.097903 | 48,201 | 256 | 4,382 | 188.285156 | 0.845476 | 0.007012 | 0 | 0.028455 | 0 | 0.178862 | 0.441865 | 0.088289 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036585 | 0 | 0.052846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
65cc242de89c19efa4090dc93f9caa33777e25e0 | 837 | py | Python | monitor/monitorlibs/sendemail.py | vaedit/- | 4e68910737ac794390df05ac34a6cf46339b0002 | [
"Apache-2.0"
] | 1 | 2021-04-09T05:47:42.000Z | 2021-04-09T05:47:42.000Z | monitor/monitorlibs/sendemail.py | vaedit/python-monitor-script | 4e68910737ac794390df05ac34a6cf46339b0002 | [
"Apache-2.0"
] | null | null | null | monitor/monitorlibs/sendemail.py | vaedit/python-monitor-script | 4e68910737ac794390df05ac34a6cf46339b0002 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import smtplib
from email.mime.text import MIMEText
from email.header import Header
#发送邮件函数
def smail(sub,body):
tolist = ["xx@qq.com", "xx@qq.com"]
cc = ["xx@qq.com", "xx@163.com"]
sender = '管理员 <worktest2020@163.com>'
subject = sub
smtpserver = 'smtp.1... | 26.15625 | 54 | 0.577061 | 113 | 837 | 4.265487 | 0.486726 | 0.049793 | 0.043568 | 0.037344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033123 | 0.242533 | 837 | 31 | 55 | 27 | 0.727129 | 0.056153 | 0 | 0 | 0 | 0 | 0.174079 | 0.027954 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.076923 | 0.115385 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
65da9cfd0758b74606005cccaa574f86bf734619 | 969 | py | Python | sharpy/linear/utils/sselements.py | ACea15/sharpy | c89ecb74be3cb9e37b23ac8a282c73b9b55dd792 | [
"BSD-3-Clause"
] | 80 | 2018-08-30T13:01:52.000Z | 2022-03-24T15:02:48.000Z | sharpy/linear/utils/sselements.py | ACea15/sharpy | c89ecb74be3cb9e37b23ac8a282c73b9b55dd792 | [
"BSD-3-Clause"
] | 88 | 2018-05-17T16:18:58.000Z | 2022-03-11T21:05:48.000Z | sharpy/linear/utils/sselements.py | ACea15/sharpy | c89ecb74be3cb9e37b23ac8a282c73b9b55dd792 | [
"BSD-3-Clause"
] | 44 | 2018-01-02T14:27:28.000Z | 2022-03-12T13:49:36.000Z | """
Linear State Space Element Class
"""
class Element(object):
"""
State space member
"""
def __init__(self):
self.sys_id = str() # A string with the name of the element
self.sys = None # The actual object
self.ss = None # The state space object
self.settings = ... | 28.5 | 119 | 0.643963 | 141 | 969 | 4.340426 | 0.468085 | 0.04902 | 0.088235 | 0.084967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287926 | 969 | 34 | 120 | 28.5 | 0.886957 | 0.569659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
65de85c428d2e16780398c226cf7243329f834fa | 1,895 | py | Python | arrp/utils/sanitize.py | LucaCappelletti94/arrp_dataset | bcea455a504e8ff718458ce12623c63e0314badb | [
"MIT"
] | null | null | null | arrp/utils/sanitize.py | LucaCappelletti94/arrp_dataset | bcea455a504e8ff718458ce12623c63e0314badb | [
"MIT"
] | null | null | null | arrp/utils/sanitize.py | LucaCappelletti94/arrp_dataset | bcea455a504e8ff718458ce12623c63e0314badb | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from typing import Tuple, Dict
from .load_csv import load_raw_classes, load_raw_epigenomic_data, load_raw_nucleotides_sequences
from .store_csv import store_raw_classes, store_raw_epigenomic_data, store_raw_nucleotides_sequences
from auto_tqdm import tqdm
def drop_unknown_datapoi... | 67.678571 | 213 | 0.803694 | 235 | 1,895 | 6.123404 | 0.204255 | 0.305768 | 0.138985 | 0.166782 | 0.533704 | 0.374566 | 0.257123 | 0.257123 | 0.119527 | 0.119527 | 0 | 0.000601 | 0.121372 | 1,895 | 28 | 214 | 67.678571 | 0.863664 | 0.022164 | 0 | 0 | 0 | 0 | 0.016775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.24 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
65ded556650f5e35ee3489143d332a0dbd1e324c | 7,857 | py | Python | plugin.video.plexodus/resources/lib/indexers/fanarttv.py | MR-Unknown-Cm/addons | 8df1ebe58c95620bb02a05dbae7bf37954915cbd | [
"Apache-2.0"
] | 1 | 2020-03-03T10:01:21.000Z | 2020-03-03T10:01:21.000Z | plugin.video.plexodus/resources/lib/indexers/fanarttv.py | MR-Unknown-Cm/addons | 8df1ebe58c95620bb02a05dbae7bf37954915cbd | [
"Apache-2.0"
] | null | null | null | plugin.video.plexodus/resources/lib/indexers/fanarttv.py | MR-Unknown-Cm/addons | 8df1ebe58c95620bb02a05dbae7bf37954915cbd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
plexOdus Add-on
'''
import json
from resources.lib.modules import client
from resources.lib.modules import control
user = control.setting('fanart.tv.user')
if user == '' or user is None:
user = 'cf0ebcc2f7b824bd04cf3a318f15c17d'
headers = {'api-key': '3eb5ed2c401a206391ea8d1a031... | 38.704433 | 187 | 0.54881 | 1,071 | 7,857 | 4.015873 | 0.084034 | 0.048361 | 0.072541 | 0.060451 | 0.741223 | 0.709602 | 0.698907 | 0.696582 | 0.690537 | 0.690537 | 0 | 0.03911 | 0.267787 | 7,857 | 203 | 188 | 38.704434 | 0.7085 | 0.004836 | 0 | 0.688623 | 0 | 0 | 0.12103 | 0.008197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011976 | false | 0 | 0.017964 | 0 | 0.053892 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
028e7466100505ca2d031073edf99db35fd3966b | 2,773 | py | Python | registration_eval/different_days/dd_compute_dense_transformation_error.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | 2 | 2015-09-18T00:17:16.000Z | 2019-02-06T04:41:29.000Z | registration_eval/different_days/dd_compute_dense_transformation_error.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | null | null | null | registration_eval/different_days/dd_compute_dense_transformation_error.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
compute_transformation_error.py
Created by Maria Isabel Restrepo on 2012-09-24.
Copyright (c) 2012 . All rights reserved.
This script computes the distances betweeen an estimated similarity transformation and its ground trutrransformation is used to transform a "source" coor... | 48.649123 | 200 | 0.695636 | 385 | 2,773 | 4.802597 | 0.38961 | 0.048675 | 0.063277 | 0.09735 | 0.502434 | 0.502434 | 0.502434 | 0.502434 | 0.502434 | 0.501352 | 0 | 0.096092 | 0.215651 | 2,773 | 57 | 201 | 48.649123 | 0.754023 | 0.596827 | 0 | 0 | 0 | 0 | 0.020672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.846154 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
028f14718283c8b1eabad98e17db6f0ca1dee6eb | 16,301 | py | Python | migrations/versions/be21086640ad_country_added.py | anjinkristou/assistor | 02d9b826b9d8844d475c11c33db48cf278282183 | [
"MIT"
] | 1 | 2022-01-29T14:00:32.000Z | 2022-01-29T14:00:32.000Z | migrations/versions/be21086640ad_country_added.py | anjinkristou/assistor | 02d9b826b9d8844d475c11c33db48cf278282183 | [
"MIT"
] | null | null | null | migrations/versions/be21086640ad_country_added.py | anjinkristou/assistor | 02d9b826b9d8844d475c11c33db48cf278282183 | [
"MIT"
] | null | null | null | """Country added
Revision ID: be21086640ad
Revises: 153f720f966f
Create Date: 2021-11-09 15:34:04.306218
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'be21086640ad'
down_revision = '153f720f966f'
branch_labels = None
depends_on = None
naming_convention = {
... | 55.070946 | 123 | 0.587081 | 2,255 | 16,301 | 4.216408 | 0.609756 | 0.014724 | 0.008835 | 0.010517 | 0.112221 | 0.083824 | 0.056794 | 0.033025 | 0.018511 | 0.018511 | 0 | 0.143142 | 0.139439 | 16,301 | 295 | 124 | 55.257627 | 0.534645 | 0.018097 | 0 | 0.007246 | 0 | 0.275362 | 0.927171 | 0.013025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007246 | false | 0 | 0.007246 | 0 | 0.014493 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02967401719aa2d8549023548710f426054a51b3 | 371 | py | Python | tests/conftest.py | charles-cooper/crvfunder | 63b4041ff06ff6ea943a7d69ae233719c4411bbd | [
"MIT"
] | 6 | 2022-03-17T21:10:41.000Z | 2022-03-27T04:38:53.000Z | tests/conftest.py | charles-cooper/crvfunder | 63b4041ff06ff6ea943a7d69ae233719c4411bbd | [
"MIT"
] | null | null | null | tests/conftest.py | charles-cooper/crvfunder | 63b4041ff06ff6ea943a7d69ae233719c4411bbd | [
"MIT"
] | 2 | 2022-03-26T03:37:40.000Z | 2022-03-28T22:01:20.000Z | import pytest
pytest_plugins = ["fixtures.accounts", "fixtures.deployments"]
def pytest_sessionfinish(session, exitstatus):
if exitstatus == pytest.ExitCode.NO_TESTS_COLLECTED:
# we treat "no tests collected" as passing
session.exitstatus = pytest.ExitCode.OK
@pytest.fixture(autouse=True)
def i... | 24.733333 | 62 | 0.749326 | 43 | 371 | 6.325581 | 0.627907 | 0.125 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156334 | 371 | 14 | 63 | 26.5 | 0.86901 | 0.107817 | 0 | 0 | 0 | 0 | 0.112462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
02b6186616262617c89a1e33d1bf620cc853ca2d | 334 | py | Python | 28. Implement strStr()/solution.py | alexwhyy/leetcode | 41664aa48137677d2f98817b9c512d76f13c525f | [
"MIT"
] | null | null | null | 28. Implement strStr()/solution.py | alexwhyy/leetcode | 41664aa48137677d2f98817b9c512d76f13c525f | [
"MIT"
] | null | null | null | 28. Implement strStr()/solution.py | alexwhyy/leetcode | 41664aa48137677d2f98817b9c512d76f13c525f | [
"MIT"
] | null | null | null | class Solution:
def strStr(self, haystack: str, needle: str) -> int:
if needle == "":
return 0
for i in range(0, len(haystack) - len(needle) + 1):
print(haystack[i : i + len(needle)], needle)
if haystack[i : i + len(needle)] == needle:
return i
... | 37.111111 | 59 | 0.502994 | 42 | 334 | 4 | 0.452381 | 0.160714 | 0.119048 | 0.154762 | 0.297619 | 0.297619 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.365269 | 334 | 9 | 60 | 37.111111 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.555556 | 0.111111 | 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 | 1 | 0 | 0 | 2 |
02c92d6241ebe854f6a64f06a949f8d5440cd141 | 13,749 | py | Python | matching/retrieval.py | Macielyoung/sentence_representation_matching | aa33147eb870a805f69dbc54c2177b11a94cf814 | [
"Apache-2.0"
] | 22 | 2022-01-24T10:08:39.000Z | 2022-03-31T10:47:05.000Z | matching/retrieval.py | Macielyoung/sentence_representation_matching | aa33147eb870a805f69dbc54c2177b11a94cf814 | [
"Apache-2.0"
] | 3 | 2022-03-06T11:52:25.000Z | 2022-03-15T06:32:17.000Z | matching/retrieval.py | Macielyoung/sentence_representation_matching | aa33147eb870a805f69dbc54c2177b11a94cf814 | [
"Apache-2.0"
] | 5 | 2022-02-28T09:13:04.000Z | 2022-03-22T12:50:09.000Z | from simcse import SimCSE
from esimcse import ESimCSE
from promptbert import PromptBERT
from sbert import SBERT
from cosent import CoSent
from config import Params
from log import logger
import torch
from transformers import AutoTokenizer
class SimCSERetrieval(object):
def __init__(self, pretrained_model_path, si... | 48.928826 | 128 | 0.630664 | 1,331 | 13,749 | 6.202104 | 0.083396 | 0.051484 | 0.047244 | 0.04361 | 0.761599 | 0.709267 | 0.702483 | 0.6149 | 0.59576 | 0.588007 | 0 | 0.009685 | 0.286566 | 13,749 | 281 | 129 | 48.928826 | 0.831889 | 0.049167 | 0 | 0.657534 | 0 | 0 | 0.064304 | 0.001914 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09589 | false | 0 | 0.041096 | 0 | 0.232877 | 0.045662 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 2 |
02e3d3385e104cc569c1458b36ecf6ad0a158a11 | 613 | py | Python | lintcode/499.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | lintcode/499.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | lintcode/499.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | """
499. Word Count (Map Reduce)
https://www.lintcode.com/problem/word-count-map-reduce/description
"""
class WordCount:
# @param {str} line a text, for example "Bye Bye see you next"
def mapper(self, _, line):
# Write your code here
# Please use 'yield key, value'
word_lists = line.spl... | 29.190476 | 66 | 0.611746 | 88 | 613 | 4.227273 | 0.568182 | 0.064516 | 0.064516 | 0.096774 | 0.209677 | 0.209677 | 0.209677 | 0.209677 | 0.209677 | 0 | 0 | 0.009132 | 0.285481 | 613 | 20 | 67 | 30.65 | 0.840183 | 0.546493 | 0 | 0 | 0 | 0 | 0.003788 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02ed59dd65e3f0007ed59a3660fc0e47a1a878ad | 461 | py | Python | config/dotenv.py | CharuchithRanjit/open-pos | ac749a0f2a6c59077d2c13f13e776963e130501f | [
"MIT"
] | null | null | null | config/dotenv.py | CharuchithRanjit/open-pos | ac749a0f2a6c59077d2c13f13e776963e130501f | [
"MIT"
] | null | null | null | config/dotenv.py | CharuchithRanjit/open-pos | ac749a0f2a6c59077d2c13f13e776963e130501f | [
"MIT"
] | null | null | null | """
Loads dotenv variables
Classes:
None
Functions:
None
Misc variables:
DATABASE_KEY (str) -- The key for the database
DATABASE_PASSWORD (str) -- The password for the database
DATABASE_URL (str) -- The url for the database
"""
import os
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv())
DATABA... | 20.954545 | 56 | 0.776573 | 67 | 461 | 5.149254 | 0.328358 | 0.095652 | 0.121739 | 0.127536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121475 | 461 | 22 | 57 | 20.954545 | 0.851852 | 0.481562 | 0 | 0 | 0 | 0 | 0.176724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
02f1e521d0c60cd1bdde651eb786414631bc4c55 | 1,377 | py | Python | classifier.py | hemu243/focus-web-crawler | 8e882315d947f04b207ec76a64fa952f18105d73 | [
"MIT"
] | 2 | 2020-02-03T02:31:09.000Z | 2021-02-03T11:54:44.000Z | classifier.py | hemu243/focus-web-crawler | 8e882315d947f04b207ec76a64fa952f18105d73 | [
"MIT"
] | null | null | null | classifier.py | hemu243/focus-web-crawler | 8e882315d947f04b207ec76a64fa952f18105d73 | [
"MIT"
] | null | null | null | #
from abc import ABCMeta
import metapy
class WebClassifier(object):
"""
This module is abstract module which needs to be called by
inherit
"""
__metaclass__ = ABCMeta
def __init__(self, configFile):
"""
Initialized basic of classifier like fwd index, index
:param configFile:
"""
#metapy.log_to_stde... | 30.6 | 97 | 0.760349 | 172 | 1,377 | 5.97093 | 0.418605 | 0.043817 | 0.054528 | 0.064265 | 0.171373 | 0.11295 | 0.11295 | 0.11295 | 0.11295 | 0 | 0 | 0.001729 | 0.159768 | 1,377 | 45 | 98 | 30.6 | 0.885912 | 0.43573 | 0 | 0.153846 | 0 | 0 | 0.126227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
02f2dc9948709df77cd05687fd7477b4be25fe0c | 609 | py | Python | backend/tests/access/test_access_event_publish.py | fjacob21/mididecweb | b65f28eb6fdeafa265796b6190a4264a5eac54ce | [
"MIT"
] | null | null | null | backend/tests/access/test_access_event_publish.py | fjacob21/mididecweb | b65f28eb6fdeafa265796b6190a4264a5eac54ce | [
"MIT"
] | 88 | 2016-11-12T14:54:38.000Z | 2018-08-02T00:25:07.000Z | backend/tests/access/test_access_event_publish.py | mididecouverte/mididecweb | b65f28eb6fdeafa265796b6190a4264a5eac54ce | [
"MIT"
] | null | null | null | from src.access import EventPublishAccess
from generate_access_data import generate_access_data
def test_publish_event_access():
sessions = generate_access_data()
event = sessions['user'].events.get('test')
useraccess = EventPublishAccess(sessions['user'], event)
manageraccess = EventPublishAccess(ses... | 38.0625 | 66 | 0.760263 | 62 | 609 | 7.322581 | 0.403226 | 0.229075 | 0.118943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 609 | 15 | 67 | 40.6 | 0.864762 | 0 | 0 | 0 | 1 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02f7dfdc4c7be780ca3def3290b1d78bbe909246 | 959 | py | Python | setup.py | jnsgruk/lightkube-models | 7fce1ed1d00ee599eaa4fad82868ec6b55c84c8d | [
"MIT"
] | 1 | 2021-10-14T08:49:10.000Z | 2021-10-14T08:49:10.000Z | setup.py | jnsgruk/lightkube-models | 7fce1ed1d00ee599eaa4fad82868ec6b55c84c8d | [
"MIT"
] | 2 | 2021-10-14T18:09:31.000Z | 2021-10-14T18:09:52.000Z | setup.py | jnsgruk/lightkube-models | 7fce1ed1d00ee599eaa4fad82868ec6b55c84c8d | [
"MIT"
] | 1 | 2021-10-13T15:08:58.000Z | 2021-10-13T15:08:58.000Z | from setuptools import setup
from pathlib import Path
from lightkube.models import __version__
setup(
name='lightkube-models',
version=__version__,
description='Models and Resources for lightkube module',
long_description=Path("README.md").read_text(),
long_description_content_type="text/markdown... | 33.068966 | 60 | 0.667362 | 100 | 959 | 6.26 | 0.58 | 0.095847 | 0.159744 | 0.166134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011796 | 0.20438 | 959 | 28 | 61 | 34.25 | 0.80865 | 0 | 0 | 0 | 0 | 0 | 0.527633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.12 | 0 | 0.12 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02fc1e3721895fe496443e7ceaa950d900683542 | 3,002 | py | Python | examples/session2-fi/start2.py | futurice/PythonInBrowser | 066ab28ffad265efc7968b87f33dab2c68216d9d | [
"MIT"
] | 4 | 2015-12-08T19:34:49.000Z | 2019-09-08T22:11:05.000Z | examples/session2-fi/start2.py | futurice/PythonInBrowser | 066ab28ffad265efc7968b87f33dab2c68216d9d | [
"MIT"
] | 18 | 2016-10-14T13:48:39.000Z | 2019-10-11T12:14:21.000Z | examples/session2-fi/start2.py | futurice/PythonInBrowser | 066ab28ffad265efc7968b87f33dab2c68216d9d | [
"MIT"
] | 4 | 2015-11-18T15:18:43.000Z | 2018-03-02T09:36:23.000Z | # Käydään läpi mitä opimme viime viikolla (ja myös jotakin uutta)
# Jos jokin asia mietityttää, kysy vain rohkeasti apua!
##### INFO #####
# Viime viikon tärkeimmät asiat olivat:
# 1. print-komento
# 2. muuttujan käyttö
# 3. kilpikonnan käyttäminen piirtämiseen
# Ohelmointi vaatii usein tiedon etsimistä muista lähtei... | 37.525 | 110 | 0.758161 | 351 | 3,002 | 6.48433 | 0.646724 | 0.014499 | 0.026362 | 0.031634 | 0.088752 | 0.088752 | 0.088752 | 0.049209 | 0.049209 | 0.049209 | 0 | 0.010156 | 0.147235 | 3,002 | 79 | 111 | 38 | 0.878906 | 0.935376 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
02fe1589d692043102c05d5d014222183830f3c7 | 45,373 | py | Python | clients/python/core_pb2.py | cloudwheels/grpc-test-gateway | 5fe6564804cc1dfd2761138977d9282519b8ffc6 | [
"MIT"
] | 3 | 2020-05-01T15:27:18.000Z | 2020-05-28T15:11:34.000Z | clients/python/core_pb2.py | cloudwheels/grpc-test-gateway | 5fe6564804cc1dfd2761138977d9282519b8ffc6 | [
"MIT"
] | null | null | null | clients/python/core_pb2.py | cloudwheels/grpc-test-gateway | 5fe6564804cc1dfd2761138977d9282519b8ffc6 | [
"MIT"
] | 3 | 2020-09-15T17:24:52.000Z | 2021-07-07T10:01:25.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: core.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflecti... | 42.885633 | 2,847 | 0.760518 | 4,972 | 45,373 | 6.711585 | 0.079646 | 0.043512 | 0.058016 | 0.065268 | 0.660144 | 0.625921 | 0.585975 | 0.553671 | 0.414684 | 0.400479 | 0 | 0.024895 | 0.128865 | 45,373 | 1,057 | 2,848 | 42.926206 | 0.819359 | 0.082935 | 0 | 0.573932 | 1 | 0.027382 | 0.210507 | 0.169905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0.027382 | 0.013143 | 0 | 0.043812 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f301917c422d9318495feced737c153caa8bd9a9 | 290 | py | Python | baekjoon/not-classified/10844/10844.py | honux77/algorithm | 2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee | [
"MIT"
] | 2 | 2019-02-08T01:23:07.000Z | 2020-11-19T12:23:52.000Z | baekjoon/not-classified/10844/10844.py | honux77/algorithm | 2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee | [
"MIT"
] | null | null | null | baekjoon/not-classified/10844/10844.py | honux77/algorithm | 2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee | [
"MIT"
] | null | null | null | n = int(input())
s = [[0] * 10 for _ in range(n + 1)]
s[1] = [0] + [1] * 9
mod = 1000 ** 3
for i in range(2, n + 1):
for j in range(0, 9 + 1):
if j >= 1:
s[i][j] += s[i - 1][j - 1]
if j <= 8:
s[i][j] += s[i - 1][j + 1]
print(sum(s[n]) % mod) | 19.333333 | 38 | 0.358621 | 60 | 290 | 1.716667 | 0.35 | 0.07767 | 0.07767 | 0.07767 | 0.15534 | 0.15534 | 0.15534 | 0.15534 | 0 | 0 | 0 | 0.135593 | 0.389655 | 290 | 15 | 39 | 19.333333 | 0.446328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 1 | 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 | 2 |
f3052e2208b42e9e168f9e6bcc11e27d4f1b41d3 | 9,922 | py | Python | mc/opcodes.py | iximeow/binja-m16c | debf368e5df90a96d6c8b0bc128626a9d6834bb4 | [
"0BSD"
] | 12 | 2020-01-15T00:51:06.000Z | 2021-10-02T12:45:50.000Z | mc/opcodes.py | iximeow/binja-m16c | debf368e5df90a96d6c8b0bc128626a9d6834bb4 | [
"0BSD"
] | 2 | 2020-02-03T08:26:26.000Z | 2020-07-01T19:51:44.000Z | mc/opcodes.py | iximeow/binja-m16c | debf368e5df90a96d6c8b0bc128626a9d6834bb4 | [
"0BSD"
] | 4 | 2020-02-03T07:51:12.000Z | 2021-02-14T19:13:07.000Z | import re
from . import tables
from .instr import Instruction
from .instr.nop import *
from .instr.alu import *
from .instr.bcd import *
from .instr.bit import *
from .instr.flag import *
from .instr.mov import *
from .instr.smov import *
from .instr.ld_st import *
from .instr.stack import *
from .instr.jmp import *
f... | 28.429799 | 99 | 0.621951 | 1,289 | 9,922 | 4.408068 | 0.282389 | 0.028159 | 0.031679 | 0.004752 | 0.060718 | 0.05051 | 0.038719 | 0.038719 | 0.030271 | 0 | 0 | 0.266937 | 0.253175 | 9,922 | 348 | 100 | 28.511494 | 0.499865 | 0.029127 | 0 | 0.055147 | 0 | 0 | 0.311552 | 0.032932 | 0 | 0 | 0 | 0 | 0.011029 | 1 | 0.022059 | false | 0 | 0.058824 | 0 | 0.080882 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
f3126093965615fe8a8564523762df648831f740 | 171 | py | Python | functional_tests.py | idanmel/soccer_friends | db370c384e99308c5f6a39a18eac1556b83cc786 | [
"MIT"
] | null | null | null | functional_tests.py | idanmel/soccer_friends | db370c384e99308c5f6a39a18eac1556b83cc786 | [
"MIT"
] | null | null | null | functional_tests.py | idanmel/soccer_friends | db370c384e99308c5f6a39a18eac1556b83cc786 | [
"MIT"
] | null | null | null | from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://localhost:8000')
try:
assert 'Django' in browser.title
finally:
browser.close()
| 17.1 | 36 | 0.730994 | 21 | 171 | 5.952381 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.146199 | 171 | 9 | 37 | 19 | 0.828767 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 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 | 2 |
f3128d3872baa827767bd09bf278c2956175ee90 | 963 | py | Python | lorenzsj/blog/views.py | lorenzsj/lorenzsj | 631c6632f8fe70a021836c52aafd8746e13fc8a8 | [
"MIT"
] | null | null | null | lorenzsj/blog/views.py | lorenzsj/lorenzsj | 631c6632f8fe70a021836c52aafd8746e13fc8a8 | [
"MIT"
] | null | null | null | lorenzsj/blog/views.py | lorenzsj/lorenzsj | 631c6632f8fe70a021836c52aafd8746e13fc8a8 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from rest_framework import viewsets
from rest_framework import permissions
from rest_framework.response import Response
from blog.models import Post
from blog.serializers import PostSerializer
from blog.serializers import UserSerializer
from blog.permissions import IsAuthor... | 31.064516 | 74 | 0.764278 | 100 | 963 | 7.29 | 0.48 | 0.043896 | 0.069959 | 0.0631 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15784 | 963 | 31 | 75 | 31.064516 | 0.89889 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
f3163b561595dcd3e021c0a5f070a6337bbb8499 | 1,745 | py | Python | model/k1_clustering_pre-processing.py | not-a-hot-dog/spotify_project | b928fecb136cffdd62c650b054ca543047800f11 | [
"MIT"
] | null | null | null | model/k1_clustering_pre-processing.py | not-a-hot-dog/spotify_project | b928fecb136cffdd62c650b054ca543047800f11 | [
"MIT"
] | 1 | 2019-12-08T17:23:49.000Z | 2019-12-08T17:23:49.000Z | model/k1_clustering_pre-processing.py | not-a-hot-dog/spotify_project | b928fecb136cffdd62c650b054ca543047800f11 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from model.helper_functions import build_playlist_features
print('Reading data into memory')
pid_list = np.genfromtxt('../data/train_pids.csv', skip_header=1, dtype=int)
playlistfile = '../data/playlists.csv'
playlist_df = pd.read_csv(playlistfile)
trackfile = '../data/songs_1000... | 52.878788 | 117 | 0.837249 | 257 | 1,745 | 5.291829 | 0.319066 | 0.235294 | 0.145588 | 0.165441 | 0.413235 | 0.380882 | 0.329412 | 0.197059 | 0.135294 | 0.095588 | 0 | 0.007322 | 0.060745 | 1,745 | 32 | 118 | 54.53125 | 0.822453 | 0.062464 | 0 | 0 | 0 | 0 | 0.217391 | 0.159829 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 0.12 | 0 | 0 | 0 | null | 1 | 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 | 2 |
f316cbca5e61cde2ebe07f8eb9690a7626e13407 | 497 | py | Python | agenda/tests/test_models.py | migueleichler/django-tdd | 5b8bd6088b5e2de4d70026b761391bce3aa52f32 | [
"MIT"
] | null | null | null | agenda/tests/test_models.py | migueleichler/django-tdd | 5b8bd6088b5e2de4d70026b761391bce3aa52f32 | [
"MIT"
] | null | null | null | agenda/tests/test_models.py | migueleichler/django-tdd | 5b8bd6088b5e2de4d70026b761391bce3aa52f32 | [
"MIT"
] | null | null | null | from django.test import TestCase
from agenda.models import Compromisso
from model_mommy import mommy
class CompromissoModelTest(TestCase):
def setUp(self):
self.instance = mommy.make('Compromisso')
def test_string_representation(self):
self.assertEqual(str(self.instance), self.instance.titu... | 27.611111 | 75 | 0.750503 | 57 | 497 | 6.45614 | 0.526316 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160966 | 497 | 17 | 76 | 29.235294 | 0.882494 | 0 | 0 | 0 | 0 | 0 | 0.022133 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.272727 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f3200d5d53315321e6ef6c3cef5d42425590c96b | 743 | py | Python | strings/reverse_string.py | ahcode0919/python-ds-algorithms | 0d617b78c50b6c18da40d9fa101438749bfc82e1 | [
"MIT"
] | null | null | null | strings/reverse_string.py | ahcode0919/python-ds-algorithms | 0d617b78c50b6c18da40d9fa101438749bfc82e1 | [
"MIT"
] | null | null | null | strings/reverse_string.py | ahcode0919/python-ds-algorithms | 0d617b78c50b6c18da40d9fa101438749bfc82e1 | [
"MIT"
] | 3 | 2020-10-07T20:24:45.000Z | 2020-12-16T04:53:19.000Z | from typing import List, Optional
def reverse_string(string: str) -> str:
return string[::-1]
def reverse_string_in_place(string: [str]):
index = 0
length = len(string)
middle = length / 2
while index < middle:
string[index], string[length - 1 - index] = string[length - 1 - index], strin... | 28.576923 | 93 | 0.643338 | 105 | 743 | 4.419048 | 0.27619 | 0.096983 | 0.137931 | 0.109914 | 0.271552 | 0.18319 | 0.081897 | 0 | 0 | 0 | 0 | 0.022184 | 0.211306 | 743 | 25 | 94 | 29.72 | 0.769625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.117647 | 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 | 1 | 0 | 0 | 0 | 2 |
b825f9f00f6901c5d7cf23cfa47cb3197933eecd | 1,855 | py | Python | loadbalanceRL/utils/exceptions.py | fqzhou/LoadBalanceControl-RL | 689eec3b3b27e121aa45d2793e411f1863f6fc0b | [
"MIT"
] | 11 | 2018-10-29T06:50:43.000Z | 2022-03-28T14:26:09.000Z | loadbalanceRL/utils/exceptions.py | fqzhou/LoadBalanceControl-RL | 689eec3b3b27e121aa45d2793e411f1863f6fc0b | [
"MIT"
] | 1 | 2022-03-01T13:46:25.000Z | 2022-03-01T13:46:25.000Z | loadbalanceRL/utils/exceptions.py | fqzhou/LoadBalanceControl-RL | 689eec3b3b27e121aa45d2793e411f1863f6fc0b | [
"MIT"
] | 6 | 2019-02-05T20:01:53.000Z | 2020-09-04T12:30:00.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Definition of all Rainman2 exceptions
"""
__author__ = 'Ari Saha (arisaha@icloud.com), Mingyang Liu(liux3941@umn.edu)'
__date__ = 'Wednesday, February 14th 2018, 11:38:08 am'
class FileOpenError(IOError):
"""
Exception raised when a file couldn't be opene... | 21.079545 | 77 | 0.698652 | 203 | 1,855 | 6.344828 | 0.374384 | 0.11646 | 0.147516 | 0.206522 | 0.551242 | 0.551242 | 0.551242 | 0.40528 | 0.215839 | 0.215839 | 0 | 0.01325 | 0.226954 | 1,855 | 87 | 78 | 21.321839 | 0.884937 | 0.476011 | 0 | 0.454545 | 0 | 0 | 0.13121 | 0.053503 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.454545 | 0 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b83a4b8131231e8ffeccb27881d8404fa73c602e | 649 | py | Python | dynamic programming/python/leetcode303_Range_Sum_Query_Immutable.py | wenxinjie/leetcode | c459a01040c8fe0783e15a16b8d7cca4baf4612a | [
"Apache-2.0"
] | null | null | null | dynamic programming/python/leetcode303_Range_Sum_Query_Immutable.py | wenxinjie/leetcode | c459a01040c8fe0783e15a16b8d7cca4baf4612a | [
"Apache-2.0"
] | null | null | null | dynamic programming/python/leetcode303_Range_Sum_Query_Immutable.py | wenxinjie/leetcode | c459a01040c8fe0783e15a16b8d7cca4baf4612a | [
"Apache-2.0"
] | null | null | null | # Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.
# Example:
# Given nums = [-2, 0, 3, -5, 2, -1]
# sumRange(0, 2) -> 1
# sumRange(2, 5) -> -1
# sumRange(0, 5) -> -3
class NumArray:
def __init__(self, nums):
"""
:type nums: List[int]
... | 20.935484 | 103 | 0.497689 | 94 | 649 | 3.404255 | 0.468085 | 0.140625 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042056 | 0.340524 | 649 | 31 | 104 | 20.935484 | 0.703271 | 0.474576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b84e7cc9d16e3f0b3e8a9ecacf33341e96af47cb | 102 | py | Python | Desafio 46.py | MisaelGuilherme/100_Exercicios_Em_Python | 8c4cdad7e60201abcdd2c4a5646f52aed4e7041e | [
"MIT"
] | null | null | null | Desafio 46.py | MisaelGuilherme/100_Exercicios_Em_Python | 8c4cdad7e60201abcdd2c4a5646f52aed4e7041e | [
"MIT"
] | null | null | null | Desafio 46.py | MisaelGuilherme/100_Exercicios_Em_Python | 8c4cdad7e60201abcdd2c4a5646f52aed4e7041e | [
"MIT"
] | null | null | null | print('====== DESAFIO 46 ======')
import time
for c in range(10,-1,-1):
time.sleep(1)
print(c) | 20.4 | 33 | 0.539216 | 17 | 102 | 3.235294 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 0.186275 | 102 | 5 | 34 | 20.4 | 0.578313 | 0 | 0 | 0 | 0 | 0 | 0.23301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 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 | 2 |
b876fc588cb708294748bda2b97c2a9bb2b7cc83 | 539 | py | Python | files/OOP/Encapsulation/Encapsulation 3.py | grzegorzpikus/grzegorzpikus.github.io | 652233e0b98f48a3396583bab2559f5981bac8ad | [
"CC-BY-3.0"
] | null | null | null | files/OOP/Encapsulation/Encapsulation 3.py | grzegorzpikus/grzegorzpikus.github.io | 652233e0b98f48a3396583bab2559f5981bac8ad | [
"CC-BY-3.0"
] | null | null | null | files/OOP/Encapsulation/Encapsulation 3.py | grzegorzpikus/grzegorzpikus.github.io | 652233e0b98f48a3396583bab2559f5981bac8ad | [
"CC-BY-3.0"
] | null | null | null | class BankAccount:
def __init__(self, checking = None, savings = None):
self._checking = checking
self._savings = savings
def get_checking(self):
return self._checking
def set_checking(self, new_checking):
self._checking = new_checking
def get_savings(self):
return self._savings
def s... | 22.458333 | 54 | 0.747681 | 74 | 539 | 5.081081 | 0.256757 | 0.119681 | 0.074468 | 0.090426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02193 | 0.153989 | 539 | 24 | 55 | 22.458333 | 0.802632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0 | 0.117647 | 0.470588 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
b894e0eb0f3f3a5eab5eca43855c560fff5104ea | 2,040 | py | Python | meterbus/wtelegram_header.py | noda/pyMeterBus | a1bb6b6ef9b3db4583dfb2b154e4f65365dee9d9 | [
"BSD-3-Clause"
] | 44 | 2016-12-11T14:43:14.000Z | 2022-03-17T18:31:14.000Z | meterbus/wtelegram_header.py | noda/pyMeterBus | a1bb6b6ef9b3db4583dfb2b154e4f65365dee9d9 | [
"BSD-3-Clause"
] | 13 | 2017-11-29T14:36:34.000Z | 2020-12-20T18:33:35.000Z | meterbus/wtelegram_header.py | noda/pyMeterBus | a1bb6b6ef9b3db4583dfb2b154e4f65365dee9d9 | [
"BSD-3-Clause"
] | 32 | 2015-09-15T12:23:19.000Z | 2022-03-22T08:32:22.000Z | import simplejson as json
from .telegram_field import TelegramField
class WTelegramHeader(object):
def __init__(self):
# self._startField = TelegramField()
self._lField = TelegramField()
self._cField = TelegramField()
# self._crcField = TelegramField()
# self._stopField = T... | 24 | 60 | 0.601471 | 204 | 2,040 | 5.882353 | 0.259804 | 0.075 | 0.081667 | 0.096667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00694 | 0.293627 | 2,040 | 84 | 61 | 24.285714 | 0.825815 | 0.284804 | 0 | 0.116279 | 0 | 0 | 0.004875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255814 | false | 0 | 0.046512 | 0.139535 | 0.465116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
b898caf8e8371912904209cfea669349d7d43e84 | 453 | py | Python | SimplePyGA/FitnessCalc/__init__.py | UglySoftware/SimplePyGA | 2cc0ef5709800059b323de2be6ea8bf77fb94384 | [
"MIT"
] | 1 | 2019-09-03T17:52:12.000Z | 2019-09-03T17:52:12.000Z | SimplePyGA/FitnessCalc/__init__.py | UglySoftware/SimplePyGA | 2cc0ef5709800059b323de2be6ea8bf77fb94384 | [
"MIT"
] | null | null | null | SimplePyGA/FitnessCalc/__init__.py | UglySoftware/SimplePyGA | 2cc0ef5709800059b323de2be6ea8bf77fb94384 | [
"MIT"
] | 1 | 2019-09-03T17:52:13.000Z | 2019-09-03T17:52:13.000Z | #-----------------------------------------------------------------------
#
# __init__.py (FitnessCalc)
#
# FitnessCalc package init module
#
# Copyright and Distribution
#
# Part of SimplePyGA: Simple Genetic Algorithms in Python
# Copyright (c) 2016 Terry McKiernan (terry@mckiernan.com)
# Released under The MI... | 32.357143 | 72 | 0.503311 | 39 | 453 | 5.74359 | 0.794872 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010127 | 0.128035 | 453 | 14 | 73 | 32.357143 | 0.556962 | 0.940397 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8a9652011ddd210555829c017c928bd04cf38bf | 920 | py | Python | azure_utility_tool/config.py | alextricity25/azure_utility_tool | 2975b5f415e5c64335618e83ed0216b7923c4166 | [
"MIT"
] | 5 | 2020-01-02T03:12:14.000Z | 2020-08-19T02:31:19.000Z | azure_utility_tool/config.py | alextricity25/azure_utility_tool | 2975b5f415e5c64335618e83ed0216b7923c4166 | [
"MIT"
] | null | null | null | azure_utility_tool/config.py | alextricity25/azure_utility_tool | 2975b5f415e5c64335618e83ed0216b7923c4166 | [
"MIT"
] | 2 | 2020-03-16T00:19:06.000Z | 2020-08-20T19:31:10.000Z | """
Author: Miguel Alex Cantu
Email: miguel.can2@gmail.com
Date: 12/21/2019
Description:
Loads Azure Utility Tool configuration file. The configuration
file is a blend of what the Microsoft Authentication Library
requires and some extra directives that the Auzre Utility
Tool requires. It is a JSON file ... | 34.074074 | 71 | 0.702174 | 127 | 920 | 5 | 0.551181 | 0.069291 | 0.075591 | 0.050394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012748 | 0.232609 | 920 | 26 | 72 | 35.384615 | 0.886686 | 0.476087 | 0 | 0 | 0 | 0 | 0.187764 | 0.046414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b8ab8fab99f75b9332a0131cf9ea65ac9a6bcb59 | 1,848 | py | Python | python_app/supervised_learning/train_data/Data.py | 0xsuu/Project-Mahjong | e82edc67651ff93c8ec158b590cd728f28504be9 | [
"Apache-2.0"
] | 9 | 2018-06-08T00:09:08.000Z | 2021-11-17T11:05:11.000Z | python_app/supervised_learning/train_data/Data.py | 0xsuu/Project-Mahjong | e82edc67651ff93c8ec158b590cd728f28504be9 | [
"Apache-2.0"
] | 1 | 2020-04-25T12:43:26.000Z | 2020-04-25T12:43:26.000Z | python_app/supervised_learning/train_data/Data.py | 0xsuu/Project-Mahjong | e82edc67651ff93c8ec158b590cd728f28504be9 | [
"Apache-2.0"
] | 2 | 2019-05-30T07:18:45.000Z | 2019-11-05T09:15:13.000Z | #!/usr/bin/env python3
'''
The MIT License (MIT)
Copyright (c) 2014 Mark Haines
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without... | 36.96 | 82 | 0.682359 | 260 | 1,848 | 4.796154 | 0.476923 | 0.070569 | 0.02085 | 0.036889 | 0.049719 | 0.049719 | 0.049719 | 0.049719 | 0.049719 | 0.049719 | 0 | 0.003592 | 0.246753 | 1,848 | 49 | 83 | 37.714286 | 0.892241 | 0.594697 | 0 | 0.105263 | 0 | 0 | 0.010753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0 | 0.105263 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
b8ae0034ffcbb27bca0f7745d8873b03677fa88a | 1,569 | py | Python | autobiography.py | wcmckee/wcmckee | 19315a37b592b7bcebb5f2720c965aea58f928ce | [
"MIT"
] | null | null | null | autobiography.py | wcmckee/wcmckee | 19315a37b592b7bcebb5f2720c965aea58f928ce | [
"MIT"
] | null | null | null | autobiography.py | wcmckee/wcmckee | 19315a37b592b7bcebb5f2720c965aea58f928ce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <markdowncell>
# My name is William Clifford Mckee and this is my autobiography. Written in November 2014.
#
# Structure:
#
# <markdowncell>
# Hello and goodNIĢ
# testing one two there.
# <markdowncell>
# Hello. Testing one two three.
# Screw you guys. I'm g... | 32.020408 | 185 | 0.733588 | 257 | 1,569 | 4.478599 | 0.634241 | 0.010426 | 0.022589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007217 | 0.205226 | 1,569 | 48 | 186 | 32.6875 | 0.915798 | 0.942001 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8b45d47d2d2b0c8935936a0ff5a2cb55518f1d6 | 2,558 | py | Python | experiments/examples/example_run_bench_s1_periodic_bench.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 18 | 2020-11-22T16:03:08.000Z | 2022-03-15T12:11:46.000Z | experiments/examples/example_run_bench_s1_periodic_bench.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 2 | 2022-01-04T08:10:17.000Z | 2022-01-05T08:13:14.000Z | experiments/examples/example_run_bench_s1_periodic_bench.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 6 | 2021-03-08T07:08:52.000Z | 2022-02-24T12:00:43.000Z | """
training a super-network and periodically evaluating its performance on bench architectures
a work in this direction exists: https://arxiv.org/abs/2001.01431
"""
from uninas.main import Main
# default configurations, for the search process and the network design
# config_files = "{path_conf_bench_tasks}/s1_fairna... | 41.258065 | 114 | 0.69742 | 347 | 2,558 | 4.821326 | 0.443804 | 0.029886 | 0.089659 | 0.086073 | 0.233712 | 0.139869 | 0.094441 | 0.057382 | 0.057382 | 0.057382 | 0 | 0.02623 | 0.165364 | 2,558 | 61 | 115 | 41.934426 | 0.757377 | 0.306099 | 0 | 0 | 0 | 0 | 0.638177 | 0.490598 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b8b7e91501f23e4c04cf067b13d9a9480a460c77 | 59 | py | Python | python/testData/debug/test4.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/debug/test4.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/debug/test4.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 1 | 2020-11-27T10:36:50.000Z | 2020-11-27T10:36:50.000Z | xval = 0
xvalue1 = 1
xvalue2 = 2
print(xvalue1 + xvalue2)
| 9.833333 | 24 | 0.677966 | 9 | 59 | 4.444444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 0.220339 | 59 | 5 | 25 | 11.8 | 0.717391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 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 | 2 |
b211aa66d913dc22688021d4550c75de1f8811d6 | 2,877 | py | Python | tests/sdict/test_sdict_substitutor.py | nikitanovosibirsk/district42-exp-types | e36e43da62f32d58d4b14c65afa16856dc8849e1 | [
"Apache-2.0"
] | null | null | null | tests/sdict/test_sdict_substitutor.py | nikitanovosibirsk/district42-exp-types | e36e43da62f32d58d4b14c65afa16856dc8849e1 | [
"Apache-2.0"
] | 2 | 2021-08-01T05:02:21.000Z | 2021-08-01T10:06:28.000Z | tests/sdict/test_sdict_substitutor.py | nikitanovosibirsk/district42-exp-types | e36e43da62f32d58d4b14c65afa16856dc8849e1 | [
"Apache-2.0"
] | null | null | null | from _pytest.python_api import raises
from baby_steps import given, then, when
from district42 import schema
from revolt import substitute
from revolt.errors import SubstitutionError
from district42_exp_types.sdict import schema_sdict
def test_sdict_substitution():
with given:
sch = schema_sdict
wit... | 23.77686 | 54 | 0.468891 | 264 | 2,877 | 4.950758 | 0.189394 | 0.143076 | 0.079572 | 0.116297 | 0.748279 | 0.729916 | 0.628156 | 0.521041 | 0.510329 | 0.510329 | 0 | 0.007088 | 0.41154 | 2,877 | 120 | 55 | 23.975 | 0.764914 | 0 | 0 | 0.777778 | 0 | 0 | 0.072993 | 0 | 0 | 0 | 0 | 0 | 0.080808 | 1 | 0.050505 | false | 0 | 0.060606 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b212f83168a6342d8bcbdaa233860a911b7cdadb | 1,117 | py | Python | drf_ujson/parsers.py | radzhome/drf-ujson-renderer | b65c01edc5311404178a9d245d40ccc10733c5d7 | [
"MIT"
] | null | null | null | drf_ujson/parsers.py | radzhome/drf-ujson-renderer | b65c01edc5311404178a9d245d40ccc10733c5d7 | [
"MIT"
] | null | null | null | drf_ujson/parsers.py | radzhome/drf-ujson-renderer | b65c01edc5311404178a9d245d40ccc10733c5d7 | [
"MIT"
] | 1 | 2019-04-04T13:25:22.000Z | 2019-04-04T13:25:22.000Z | from __future__ import unicode_literals
import codecs
from django.conf import settings
from rest_framework.compat import six
from rest_framework.parsers import BaseParser, ParseError
from rest_framework import renderers
from rest_framework.settings import api_settings
import ujson
class UJSONParser(BaseParser):
... | 32.852941 | 78 | 0.72068 | 133 | 1,117 | 5.849624 | 0.488722 | 0.041131 | 0.087404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21128 | 1,117 | 33 | 79 | 33.848485 | 0.883087 | 0.08863 | 0 | 0 | 0 | 0 | 0.045965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.380952 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b24fa470c54ab2d92980faab3b5c114f1efa0392 | 151 | py | Python | Recursion/recursiopow.py | TheG0dfath3r/Python | 73f40e9828b953c3e614a21a8980eaa81b5c066e | [
"MIT"
] | null | null | null | Recursion/recursiopow.py | TheG0dfath3r/Python | 73f40e9828b953c3e614a21a8980eaa81b5c066e | [
"MIT"
] | null | null | null | Recursion/recursiopow.py | TheG0dfath3r/Python | 73f40e9828b953c3e614a21a8980eaa81b5c066e | [
"MIT"
] | 2 | 2019-09-30T21:17:57.000Z | 2019-10-01T16:23:33.000Z | x=int(input("no 1 "))
y=int(input("no 2 "))
def pow(x,y):
if y!=0:
return(x*pow(x,y-1))
else:
return 1
print(pow(x,y))
| 16.777778 | 29 | 0.463576 | 30 | 151 | 2.333333 | 0.466667 | 0.171429 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048077 | 0.311258 | 151 | 8 | 30 | 18.875 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
b267e740ceab58f8898f41e8edaa0a8a6747e59b | 6,299 | py | Python | 4_neural_networks.py | scientificprogrammer123/Udacity_Machine-Learning | e6f5a73724ac51c9dcc9c28ee1652991982598ca | [
"MIT"
] | null | null | null | 4_neural_networks.py | scientificprogrammer123/Udacity_Machine-Learning | e6f5a73724ac51c9dcc9c28ee1652991982598ca | [
"MIT"
] | null | null | null | 4_neural_networks.py | scientificprogrammer123/Udacity_Machine-Learning | e6f5a73724ac51c9dcc9c28ee1652991982598ca | [
"MIT"
] | 1 | 2021-04-14T22:04:52.000Z | 2021-04-14T22:04:52.000Z | # lesson 1: neural networks
# cell body, neuron, axon, synapse
# spike trains travel down the axon, and causes excitation to occur at other axons.
# a computation unit.
#
# x1 -> w1 ->
# x2 -> w2 -> theta -> y
# x3 -> w3 ->
#
# sum_{=1}^{k} xi*wi, activation
# >=theta, firing threshold
#
# For percept... | 29.712264 | 111 | 0.62883 | 1,046 | 6,299 | 3.764818 | 0.304971 | 0.013713 | 0.013713 | 0.010157 | 0.117065 | 0.073134 | 0.050279 | 0.047994 | 0.041138 | 0.041138 | 0 | 0.047891 | 0.277346 | 6,299 | 212 | 112 | 29.712264 | 0.817223 | 0.90173 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b26b2d344b00d14f7c80d63267fca336b474dfed | 287 | py | Python | FluentPython/ch02/cartesian.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2020-10-12T13:33:29.000Z | 2020-10-12T13:33:29.000Z | FluentPython/ch02/cartesian.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | null | null | null | FluentPython/ch02/cartesian.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2016-11-09T07:28:45.000Z | 2016-11-09T07:28:45.000Z | #!/usr/bin/env python
colors = ['white', 'black']
sizes = ['S', 'M', 'L']
tshirts = [(color, size) for size in sizes
for color in colors ]
print(tshirts)
tshirts = [(color, size) for color in colors
for size in sizes ]
print(tshirts)
| 22.076923 | 46 | 0.54007 | 37 | 287 | 4.189189 | 0.459459 | 0.154839 | 0.206452 | 0.245161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.320557 | 287 | 12 | 47 | 23.916667 | 0.794872 | 0.069686 | 0 | 0.25 | 0 | 0 | 0.048872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
b27869ddfe009d8e2d025f4f2f3d4a1de697cced | 1,401 | py | Python | EventManager/Home/models.py | 201901407/woc3.0-eventmanager-DarshilParikh | 8174cd5373e3f3e4723a9fd6381266a56dddc4e6 | [
"MIT"
] | 1 | 2021-01-03T13:57:38.000Z | 2021-01-03T13:57:38.000Z | EventManager/Home/models.py | 201901407/woc3.0-eventmanager-DarshilParikh | 8174cd5373e3f3e4723a9fd6381266a56dddc4e6 | [
"MIT"
] | null | null | null | EventManager/Home/models.py | 201901407/woc3.0-eventmanager-DarshilParikh | 8174cd5373e3f3e4723a9fd6381266a56dddc4e6 | [
"MIT"
] | null | null | null | from django.db import models
import uuid, datetime
from django.utils import timezone
# Create your models here.
class User(models.Model):
user_id = models.CharField(max_length=100,default=uuid.uuid4)
email = models.EmailField(max_length=100)
name = models.CharField(max_length=100)
password = models.Ch... | 35.025 | 97 | 0.751606 | 176 | 1,401 | 5.789773 | 0.3125 | 0.114818 | 0.158979 | 0.211973 | 0.354269 | 0.326791 | 0.088322 | 0.088322 | 0.088322 | 0 | 0 | 0.034483 | 0.15132 | 1,401 | 39 | 98 | 35.923077 | 0.82254 | 0.017131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.034483 | 0.103448 | 0.068966 | 1 | 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 | 1 | 0 | 0 | 2 |
b27af965481a6eface77ab77feda170f704b5500 | 543 | py | Python | photoseleven/db.py | photoseleven/photoseleven-backend | 2e511d5e48477b6b41a6d98f0630b1bcada8a298 | [
"MIT"
] | null | null | null | photoseleven/db.py | photoseleven/photoseleven-backend | 2e511d5e48477b6b41a6d98f0630b1bcada8a298 | [
"MIT"
] | null | null | null | photoseleven/db.py | photoseleven/photoseleven-backend | 2e511d5e48477b6b41a6d98f0630b1bcada8a298 | [
"MIT"
] | 1 | 2020-03-29T11:20:40.000Z | 2020-03-29T11:20:40.000Z | import click
from flask import current_app, g
from flask.cli import with_appcontext
from flask_pymongo import PyMongo
from werkzeug.security import check_password_hash, generate_password_hash
def get_db():
if 'db' not in g:
mongo = PyMongo(current_app)
g.db = mongo.db
g.db_client = mongo.c... | 19.392857 | 73 | 0.692449 | 87 | 543 | 4.114943 | 0.390805 | 0.111732 | 0.061453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220994 | 543 | 27 | 74 | 20.111111 | 0.846336 | 0 | 0 | 0 | 1 | 0 | 0.023985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.277778 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b27c6063523b17b12c8d4769a34a8058b47c5491 | 366 | py | Python | DataStructures/Stacks/Stack.py | hhimmmmii/Data_Structures_and_Algorithms | 21169d21172fd1242cbb998324a6953b0c32cd05 | [
"MIT"
] | null | null | null | DataStructures/Stacks/Stack.py | hhimmmmii/Data_Structures_and_Algorithms | 21169d21172fd1242cbb998324a6953b0c32cd05 | [
"MIT"
] | 2 | 2020-10-05T05:23:40.000Z | 2020-10-15T17:34:32.000Z | DataStructures/Stacks/Stack.py | hhimmmmii/Data_Structures_and_Algorithms | 21169d21172fd1242cbb998324a6953b0c32cd05 | [
"MIT"
] | 10 | 2020-10-03T06:31:41.000Z | 2020-12-28T18:54:40.000Z | class Stack:
def __init__(self):
self.stack = []
def add(self, dataval):
# Use list append method to add element
if dataval not in self.stack:
self.stack.append(dataval)
return True
else:
return False
# Use peek to look at the top of the stack
d... | 22.875 | 42 | 0.57377 | 50 | 366 | 4.12 | 0.54 | 0.174757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.349727 | 366 | 16 | 43 | 22.875 | 0.861345 | 0.213115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b27fdc318377fdd21756f01199453a4713d91df6 | 1,794 | py | Python | forecast_box/validate.py | kyleclo/forecast-box | 5b965f0c7f45c92e800c31df1c7a12a6d08527b1 | [
"Apache-2.0"
] | 1 | 2017-02-08T19:34:35.000Z | 2017-02-08T19:34:35.000Z | forecast_box/validate.py | kyleclo/forecast-box | 5b965f0c7f45c92e800c31df1c7a12a6d08527b1 | [
"Apache-2.0"
] | null | null | null | forecast_box/validate.py | kyleclo/forecast-box | 5b965f0c7f45c92e800c31df1c7a12a6d08527b1 | [
"Apache-2.0"
] | null | null | null | """
Validation
"""
import numpy as np
import pandas as pd
from model import Model
# TODO: different versions with resampling or subsampling
# TODO: return DataFrame of forecasted_values along with metric?
def validate_model(name, params, time_series, metric_fun):
"""Evaluates performance of Model forecast met... | 36.612245 | 79 | 0.696767 | 233 | 1,794 | 5.124464 | 0.274678 | 0.159129 | 0.054439 | 0.035176 | 0.478224 | 0.442211 | 0.40201 | 0.40201 | 0.40201 | 0.261307 | 0 | 0.004196 | 0.202899 | 1,794 | 48 | 80 | 37.375 | 0.830769 | 0.476031 | 0 | 0 | 0 | 0 | 0.070743 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | null | null | 0 | 0.176471 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b28976d7d07ee0d85891e3ce1f95a592baa06a72 | 717 | py | Python | highway_env/__init__.py | songanz/highway-env | ac21d1da25e224dbdbf8ba39509f4013bd029f52 | [
"MIT"
] | 1 | 2019-11-06T15:28:27.000Z | 2019-11-06T15:28:27.000Z | highway_env/__init__.py | songanz/highway-env | ac21d1da25e224dbdbf8ba39509f4013bd029f52 | [
"MIT"
] | null | null | null | highway_env/__init__.py | songanz/highway-env | ac21d1da25e224dbdbf8ba39509f4013bd029f52 | [
"MIT"
] | 1 | 2019-07-22T03:37:09.000Z | 2019-07-22T03:37:09.000Z | from gym.envs.registration import register
register(
id='highway-v0',
entry_point='highway_env.envs:HighwayEnv',
)
register(
id='highway-continuous-v0',
entry_point='highway_env.envs:HighwayEnvCon',
)
register(
id='highway-continuous-intrinsic-rew-v0',
entry_point='highway_env.envs:HighwayEnv... | 18.384615 | 63 | 0.714086 | 91 | 717 | 5.406593 | 0.340659 | 0.142276 | 0.170732 | 0.270325 | 0.422764 | 0.422764 | 0.158537 | 0 | 0 | 0 | 0 | 0.017974 | 0.146444 | 717 | 38 | 64 | 18.868421 | 0.785948 | 0 | 0 | 0.225806 | 0 | 0 | 0.440725 | 0.369596 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b28b8885604c48606cb8d4e162a310c2bb979435 | 1,005 | py | Python | tests/test_topic_matching.py | InfraPixels/powerlibs-aws-sqs-dequeue_to_api | 67ae744c96c7658229acc6fd1b1c432d24f0817d | [
"MIT"
] | null | null | null | tests/test_topic_matching.py | InfraPixels/powerlibs-aws-sqs-dequeue_to_api | 67ae744c96c7658229acc6fd1b1c432d24f0817d | [
"MIT"
] | null | null | null | tests/test_topic_matching.py | InfraPixels/powerlibs-aws-sqs-dequeue_to_api | 67ae744c96c7658229acc6fd1b1c432d24f0817d | [
"MIT"
] | 1 | 2021-05-26T00:16:26.000Z | 2021-05-26T00:16:26.000Z | def test_topic_regexp_matching(dequeuer):
msg = {'company_name': 'test_company'}
actions_1 = tuple(dequeuer.get_actions_for_topic('object__created', msg))
actions_2 = tuple(dequeuer.get_actions_for_topic('object__deleted', msg))
actions_3 = tuple(dequeuer.get_actions_for_topic('otherthing__created', msg... | 38.653846 | 82 | 0.736318 | 138 | 1,005 | 4.92029 | 0.246377 | 0.082474 | 0.141384 | 0.20324 | 0.745214 | 0.66863 | 0.66863 | 0.639175 | 0.5243 | 0.5243 | 0 | 0.022119 | 0.145274 | 1,005 | 25 | 83 | 40.2 | 0.768335 | 0 | 0 | 0.421053 | 0 | 0 | 0.18806 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.105263 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b28d0dae8fb9ed9ee50b81bbf1aae13554854cbe | 1,352 | py | Python | src/baskerville/models/model_interface.py | deflect-ca/baskerville | 9659f4b39ab66fcf5329a4eccff15e97245b04f0 | [
"CC-BY-4.0"
] | 2 | 2021-12-03T11:26:38.000Z | 2022-01-12T22:24:29.000Z | src/baskerville/models/model_interface.py | deflect-ca/baskerville | 9659f4b39ab66fcf5329a4eccff15e97245b04f0 | [
"CC-BY-4.0"
] | 3 | 2022-01-19T15:17:37.000Z | 2022-03-22T04:55:22.000Z | src/baskerville/models/model_interface.py | deflect-ca/baskerville | 9659f4b39ab66fcf5329a4eccff15e97245b04f0 | [
"CC-BY-4.0"
] | null | null | null | # Copyright (c) 2020, eQualit.ie inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import inspect
import logging
class ModelInterface(object):
def __init__(self):
super().__init__()
self... | 26 | 71 | 0.621302 | 170 | 1,352 | 4.588235 | 0.435294 | 0.064103 | 0.05 | 0.041026 | 0.079487 | 0.079487 | 0.079487 | 0 | 0 | 0 | 0 | 0.004115 | 0.281065 | 1,352 | 51 | 72 | 26.509804 | 0.798354 | 0.134615 | 0 | 0.121212 | 0 | 0 | 0.097938 | 0.06701 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0.121212 | 0.060606 | 0.060606 | 0.484848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b299f61f9bab8f0fdfd0cbba6dbcac61cd8b37ce | 239 | py | Python | dags/minimal_dag.py | MarcusJones/kaggle_petfinder_adoption | 2d745b48405f4d4211b523eae272b9169fcf9fa2 | [
"MIT"
] | 1 | 2019-01-24T04:22:39.000Z | 2019-01-24T04:22:39.000Z | dags/minimal_dag.py | MarcusJones/kaggle_petfinder_adoption | 2d745b48405f4d4211b523eae272b9169fcf9fa2 | [
"MIT"
] | null | null | null | dags/minimal_dag.py | MarcusJones/kaggle_petfinder_adoption | 2d745b48405f4d4211b523eae272b9169fcf9fa2 | [
"MIT"
] | null | null | null | import airflow as af
from airflow.operators.dummy_operator import DummyOperator
from datetime import datetime
with af.DAG('minimal_dag', start_date=datetime(2016, 1, 1)) as dag:
op = DummyOperator(task_id='op')
op.dag is dag # True
| 23.9 | 67 | 0.76569 | 38 | 239 | 4.710526 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029268 | 0.142259 | 239 | 9 | 68 | 26.555556 | 0.843902 | 0.016736 | 0 | 0 | 0 | 0 | 0.056034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b2a1766bc5fbc87d90f9559b3c26e49052f3b261 | 869 | py | Python | tests/test_tunnels_released.py | jhaapako/tcf | ecd75404459c6fec9d9fa1522b70a8deab896644 | [
"Apache-2.0"
] | 24 | 2018-08-21T18:04:48.000Z | 2022-02-07T22:50:06.000Z | tests/test_tunnels_released.py | jhaapako/tcf | ecd75404459c6fec9d9fa1522b70a8deab896644 | [
"Apache-2.0"
] | 16 | 2018-08-21T18:03:52.000Z | 2022-03-01T17:15:42.000Z | tests/test_tunnels_released.py | jhaapako/tcf | ecd75404459c6fec9d9fa1522b70a8deab896644 | [
"Apache-2.0"
] | 29 | 2018-08-22T19:40:59.000Z | 2021-12-21T11:13:23.000Z | #! /usr/bin/python3
#
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
# pylint: disable = missing-docstring
import os
import socket
import commonl.testing
import tcfl
import tcfl.tc
srcdir = os.path.dirname(__file__)
ttbd = commonl.testing.test_ttbd(config_files = [
# strip to re... | 24.138889 | 77 | 0.700806 | 127 | 869 | 4.637795 | 0.685039 | 0.03056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023743 | 0.176064 | 869 | 35 | 78 | 24.828571 | 0.798883 | 0.334868 | 0 | 0 | 0 | 0 | 0.116152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.3125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
b2a64ad7dcb9aaa41898aea3c2d8af7ef4fc0f3f | 1,582 | py | Python | template.py | deepak7376/design_pattern | 855aa0879d478f7b2682c2ae5e92599b5c81a1c6 | [
"MIT"
] | null | null | null | template.py | deepak7376/design_pattern | 855aa0879d478f7b2682c2ae5e92599b5c81a1c6 | [
"MIT"
] | null | null | null | template.py | deepak7376/design_pattern | 855aa0879d478f7b2682c2ae5e92599b5c81a1c6 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class AverageCalculator(ABC):
def average(self):
try:
num_items = 0
total_sum = 0
while self.has_next():
total_sum += self.next_item()
num_items += 1
if num_items == 0:
ra... | 21.972222 | 78 | 0.583439 | 188 | 1,582 | 4.765957 | 0.324468 | 0.044643 | 0.053571 | 0.046875 | 0.303571 | 0.183036 | 0.066964 | 0 | 0 | 0 | 0 | 0.014774 | 0.315424 | 1,582 | 72 | 79 | 21.972222 | 0.812558 | 0.073957 | 0 | 0.395833 | 0 | 0 | 0.027379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0.020833 | 0.041667 | 0.4375 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a22cbabe9b6d8f3afdad45c7ee147591f90ad7e9 | 3,406 | py | Python | src/npu/comprehension.py | feagi/feagi | 598abbe294b5d9cd7ff34861fa6568ba899b2ab8 | [
"Apache-2.0"
] | 1 | 2022-03-17T08:27:11.000Z | 2022-03-17T08:27:11.000Z | src/npu/comprehension.py | feagi/feagi | 598abbe294b5d9cd7ff34861fa6568ba899b2ab8 | [
"Apache-2.0"
] | 1 | 2022-02-10T16:30:35.000Z | 2022-02-10T16:33:21.000Z | src/npu/comprehension.py | feagi/feagi | 598abbe294b5d9cd7ff34861fa6568ba899b2ab8 | [
"Apache-2.0"
] | 1 | 2022-02-07T22:15:54.000Z | 2022-02-07T22:15:54.000Z |
# Copyright 2016-2022 The FEAGI Authors. All Rights Reserved.
#
# 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 applic... | 44.233766 | 120 | 0.620376 | 416 | 3,406 | 4.862981 | 0.314904 | 0.192783 | 0.226891 | 0.1478 | 0.460702 | 0.433515 | 0.420662 | 0.342561 | 0.26693 | 0.229857 | 0 | 0.015091 | 0.260716 | 3,406 | 76 | 121 | 44.815789 | 0.788324 | 0.426307 | 0 | 0.470588 | 0 | 0 | 0.152038 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.029412 | false | 0 | 0 | 0 | 0.147059 | 0.176471 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a22d14123c5934e462a7334c1d55b574adf6c9be | 3,403 | py | Python | 10-19/14. normalize_sentences/test_normalize_sentences.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | 1 | 2021-11-30T05:03:24.000Z | 2021-11-30T05:03:24.000Z | 10-19/14. normalize_sentences/test_normalize_sentences.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | null | null | null | 10-19/14. normalize_sentences/test_normalize_sentences.py | dcragusa/PythonMorsels | 5f75b51a68769036e4004e9ccdada6b220124ab6 | [
"MIT"
] | 2 | 2021-04-18T05:26:43.000Z | 2021-11-28T18:46:43.000Z | import unittest
from textwrap import dedent
from normalize_sentences import normalize_sentences
class NormalizeSentencesTests(unittest.TestCase):
"""Tests for normalize_sentences."""
maxDiff = 1000
def test_no_sentences(self):
sentence = "This isn't a sentence"
self.assertEqual(normali... | 33.362745 | 78 | 0.601234 | 394 | 3,403 | 5.088832 | 0.284264 | 0.107731 | 0.107731 | 0.14813 | 0.766085 | 0.766085 | 0.685287 | 0.685287 | 0.685287 | 0.685287 | 0 | 0.014462 | 0.309139 | 3,403 | 101 | 79 | 33.693069 | 0.838367 | 0.095504 | 0 | 0.506494 | 0 | 0 | 0.3642 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 1 | 0.103896 | false | 0 | 0.038961 | 0 | 0.168831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a23aa98e817822c0db3ba0e76ac9fe51cc297075 | 486 | py | Python | Exercism/triangle/triangle.py | adityaarakeri/Interview-solved | e924011d101621c7121f4f86d82bee089f4c1e25 | [
"MIT"
] | 46 | 2019-10-14T01:21:35.000Z | 2022-01-08T23:55:15.000Z | Exercism/triangle/triangle.py | Siddhant-K-code/Interview-solved | e924011d101621c7121f4f86d82bee089f4c1e25 | [
"MIT"
] | 53 | 2019-10-03T17:16:43.000Z | 2020-12-08T12:48:19.000Z | Exercism/triangle/triangle.py | Siddhant-K-code/Interview-solved | e924011d101621c7121f4f86d82bee089f4c1e25 | [
"MIT"
] | 96 | 2019-10-03T18:12:10.000Z | 2021-03-14T19:41:06.000Z | def is_triangle(func):
def wrapped(sides):
if any(i <= 0 for i in sides):
return False
sum_ = sum(sides)
if any(sides[i] > sum_ - sides[i] for i in range(3)):
return False
return func(sides)
return wrapped
@is_triangle
def is_equilateral(sides):
retu... | 19.44 | 61 | 0.602881 | 72 | 486 | 3.944444 | 0.319444 | 0.193662 | 0.137324 | 0.158451 | 0.239437 | 0.161972 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.279835 | 486 | 24 | 62 | 20.25 | 0.797143 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
a2431b76a7fd7273de98b3d8241bb7216ee7d296 | 2,182 | py | Python | python/src/main/python/pygw/query/aggregation_query_builder.py | radiant-maxar/geowave | 2d9f39d32e4621c8f5965a4dffff0623c1c03231 | [
"Apache-2.0"
] | 280 | 2017-06-14T01:26:19.000Z | 2022-03-28T15:45:23.000Z | python/src/main/python/pygw/query/aggregation_query_builder.py | radiant-maxar/geowave | 2d9f39d32e4621c8f5965a4dffff0623c1c03231 | [
"Apache-2.0"
] | 458 | 2017-06-12T20:00:59.000Z | 2022-03-31T04:41:59.000Z | python/src/main/python/pygw/query/aggregation_query_builder.py | radiant-maxar/geowave | 2d9f39d32e4621c8f5965a4dffff0623c1c03231 | [
"Apache-2.0"
] | 135 | 2017-06-12T20:39:34.000Z | 2022-03-15T13:42:30.000Z | #
# Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
#
# See the NOTICE file distributed with this work for additional information regarding copyright
# ownership. All rights reserved. This program and the accompanying materials are made available
# under the terms of the Apache License, Version 2.0 whic... | 35.193548 | 120 | 0.651696 | 255 | 2,182 | 5.439216 | 0.458824 | 0.034607 | 0.039654 | 0.033165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007233 | 0.239688 | 2,182 | 61 | 121 | 35.770492 | 0.828813 | 0.572869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
a25a329785c9f77e159427cefe14e85a15f3128c | 157 | py | Python | ch02/number_eight.py | joy-joy/pcc | 6c7d166a1694a2c3f371307aea6c4bdf340c4c42 | [
"MIT"
] | null | null | null | ch02/number_eight.py | joy-joy/pcc | 6c7d166a1694a2c3f371307aea6c4bdf340c4c42 | [
"MIT"
] | null | null | null | ch02/number_eight.py | joy-joy/pcc | 6c7d166a1694a2c3f371307aea6c4bdf340c4c42 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 9 00:00:43 2018
@author: joy
"""
print(5 + 3)
print(9 - 1)
print(2 * 4)
print(16//2) | 13.083333 | 35 | 0.573248 | 30 | 157 | 3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173228 | 0.191083 | 157 | 12 | 36 | 13.083333 | 0.535433 | 0.592357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
a25c1f80b839438c40bc8b1ec20e3dcbcc9d3fa1 | 181 | py | Python | proxy_config.py | Nou4r/YandexMail-Account-Creator | b65f24630d23c59dfb8d196f3efe5a222aa3e11a | [
"MIT"
] | 1 | 2021-11-23T05:28:16.000Z | 2021-11-23T05:28:16.000Z | proxy_config.py | Nou4r/YandexMail-Account-Creator | b65f24630d23c59dfb8d196f3efe5a222aa3e11a | [
"MIT"
] | null | null | null | proxy_config.py | Nou4r/YandexMail-Account-Creator | b65f24630d23c59dfb8d196f3efe5a222aa3e11a | [
"MIT"
] | null | null | null | try:
with open('proxies.txt', 'r') as file:
proxy = [ line.rstrip() for line in file.readlines()]
except FileNotFoundError:
raise Exception('Proxies.txt not found.') | 36.2 | 61 | 0.662983 | 24 | 181 | 5 | 0.833333 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19337 | 181 | 5 | 62 | 36.2 | 0.821918 | 0 | 0 | 0 | 0 | 0 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
a25efb76b91de6c5a6535d8621723808a44381dd | 8,046 | py | Python | dilami_calendar/constants.py | Jangal/python-deylami-calendar | 65b4a36ea6d9cba71b7086b3c488fd6842ead687 | [
"MIT"
] | 12 | 2019-08-05T19:11:24.000Z | 2021-11-17T03:52:12.000Z | dilami_calendar/constants.py | Jangal/python-dilami-calendar | 65b4a36ea6d9cba71b7086b3c488fd6842ead687 | [
"MIT"
] | 2 | 2019-08-03T05:42:02.000Z | 2021-12-01T07:34:26.000Z | dilami_calendar/constants.py | Jangal/python-dilami-calendar | 65b4a36ea6d9cba71b7086b3c488fd6842ead687 | [
"MIT"
] | null | null | null | DILAMI_WEEKDAY_NAMES = {
0: "شمبه",
1: "یکشمبه",
2: "دۊشمبه",
3: "سۊشمبه",
4: "چارشمبه",
5: "پئنشمبه",
6: "جۊمه",
}
DILAMI_MONTH_NAMES = {
0: "پنجيک",
1: "نؤرۊز ما",
2: "کۊرچ ٚ ما",
3: "أرئه ما",
4: "تیر ما",
5: "مۊردال ما",
6: "شریرما",
7: "أمیر ما",
8: ... | 10.007463 | 41 | 0.393239 | 847 | 8,046 | 3.730815 | 0.969303 | 0.003797 | 0.009494 | 0.011392 | 0.015823 | 0 | 0 | 0 | 0 | 0 | 0 | 0.722222 | 0.498881 | 8,046 | 803 | 42 | 10.019925 | 0.061012 | 0.009943 | 0 | 0 | 0 | 0 | 0.016826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
a25fceaa81b9a2397bbf59a5c9765ebd1d84a0d6 | 324 | py | Python | inputs/sineClock.py | hongaar/ringctl | 9e2adbdf16e85852019466e42be9d88a9e63cde5 | [
"MIT"
] | null | null | null | inputs/sineClock.py | hongaar/ringctl | 9e2adbdf16e85852019466e42be9d88a9e63cde5 | [
"MIT"
] | null | null | null | inputs/sineClock.py | hongaar/ringctl | 9e2adbdf16e85852019466e42be9d88a9e63cde5 | [
"MIT"
] | null | null | null | import math
from inputs.sine import Sine
from inputs.timeElapsed import TimeElapsed
from utils.number import Number
class SineClock(Number):
def __init__(self, sine: Sine):
self.__sine = sine
self.__elapsed = TimeElapsed()
def get(self):
return self.__sine.at_time(self.__elapsed.get(... | 20.25 | 56 | 0.70679 | 42 | 324 | 5.142857 | 0.428571 | 0.111111 | 0.111111 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20679 | 324 | 15 | 57 | 21.6 | 0.840467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
a26b73d904e11aae41e76e1fb93f09e8f345dc84 | 534 | py | Python | projects/cassava-leaf-disease/code/src/config.py | dric2018/coding-room | ff538ed16d09ab4918d1b0d55aef09fe95b1078a | [
"MIT"
] | 1 | 2021-02-02T08:30:50.000Z | 2021-02-02T08:30:50.000Z | projects/cassava-leaf-disease/code/src/.ipynb_checkpoints/config-checkpoint.py | dric2018/coding-room | ff538ed16d09ab4918d1b0d55aef09fe95b1078a | [
"MIT"
] | null | null | null | projects/cassava-leaf-disease/code/src/.ipynb_checkpoints/config-checkpoint.py | dric2018/coding-room | ff538ed16d09ab4918d1b0d55aef09fe95b1078a | [
"MIT"
] | 1 | 2021-03-09T14:27:00.000Z | 2021-03-09T14:27:00.000Z | import os
class Config:
data_dir = os.path.abspath('../data/input/')
models_dir = os.path.abspath('../models')
logs_dir = os.path.abspath('../logs')
train_data_dir = os.path.abspath('../data/input/train_images')
test_data_dir = os.path.abspath('../data/input/test_images')
num_epochs = 15
l... | 25.428571 | 66 | 0.629213 | 80 | 534 | 3.95 | 0.525 | 0.079114 | 0.142405 | 0.253165 | 0.275316 | 0.275316 | 0.275316 | 0 | 0 | 0 | 0 | 0.068293 | 0.23221 | 534 | 21 | 67 | 25.428571 | 0.702439 | 0 | 0 | 0 | 0 | 0 | 0.166355 | 0.095327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 1 | 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 | 1 | 0 | 0 | 2 |
a26c405342f3cf01116c7589d07a48162ad6f4f5 | 1,265 | py | Python | midburn/migrations/0007_auto_20160116_0902.py | mtr574/projectMidbrunFirstReg | 2569c3f07e1af746bfc1f213632708c76d8fc829 | [
"Apache-2.0"
] | null | null | null | midburn/migrations/0007_auto_20160116_0902.py | mtr574/projectMidbrunFirstReg | 2569c3f07e1af746bfc1f213632708c76d8fc829 | [
"Apache-2.0"
] | 1 | 2016-01-22T09:32:04.000Z | 2016-01-22T12:14:12.000Z | midburn/migrations/0007_auto_20160116_0902.py | mtr574/projectMidbrunFirstReg | 2569c3f07e1af746bfc1f213632708c76d8fc829 | [
"Apache-2.0"
] | 3 | 2016-11-04T12:10:03.000Z | 2017-02-23T08:52:53.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('midburn', '0006_auto_20160116_0842'),
]
operations = [
migrations.AlterField(
model_name='camp',
nam... | 29.418605 | 88 | 0.575494 | 121 | 1,265 | 5.785124 | 0.355372 | 0.142857 | 0.178571 | 0.207143 | 0.735714 | 0.735714 | 0.697143 | 0.634286 | 0.454286 | 0.454286 | 0 | 0.033067 | 0.306719 | 1,265 | 42 | 89 | 30.119048 | 0.765108 | 0.016601 | 0 | 0.555556 | 0 | 0 | 0.098229 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.138889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a27af76ac557d5a5a06d9803200c94099e5080e2 | 301 | py | Python | scikit/Adaboost/example.py | JayMiao/MLAction | fec1c08fa33ed1f5d9b0befecc6dac551cc02302 | [
"MIT"
] | 1 | 2017-02-13T10:25:11.000Z | 2017-02-13T10:25:11.000Z | scikit/Adaboost/example.py | JayMiao/MLAction | fec1c08fa33ed1f5d9b0befecc6dac551cc02302 | [
"MIT"
] | null | null | null | scikit/Adaboost/example.py | JayMiao/MLAction | fec1c08fa33ed1f5d9b0befecc6dac551cc02302 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from sklearn.datasets import load_iris
from sklearn.model_selection import cross_val_score
from sklearn.ensemble import AdaBoostClassifier
iris = load_iris()
clf = AdaBoostClassifier(n_estimators=1000)
scores = cross_val_score(clf, iris.data, iris.target)
print scores.mean() | 30.1 | 53 | 0.800664 | 42 | 301 | 5.547619 | 0.595238 | 0.141631 | 0.111588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.10299 | 301 | 10 | 54 | 30.1 | 0.844444 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.428571 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a280eaab2887649d537621914d70995f7a90e0ab | 327 | py | Python | rotary/rotary/doctype/monthly_report/monthly_report.py | neilLasrado/rotary | 66659b41c6fbd04d22aa368573c786dabe1102e5 | [
"MIT"
] | null | null | null | rotary/rotary/doctype/monthly_report/monthly_report.py | neilLasrado/rotary | 66659b41c6fbd04d22aa368573c786dabe1102e5 | [
"MIT"
] | null | null | null | rotary/rotary/doctype/monthly_report/monthly_report.py | neilLasrado/rotary | 66659b41c6fbd04d22aa368573c786dabe1102e5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Neil Lasrado and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.utils import now
class MonthlyReport(Document):
def on_submit(self):
self.date =... | 25.153846 | 51 | 0.770642 | 45 | 327 | 5.466667 | 0.733333 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017794 | 0.140673 | 327 | 12 | 52 | 27.25 | 0.857651 | 0.363914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
a281068a96d517af66fbb0b7cc8c9a41a817af13 | 109 | py | Python | kili/mutations/project_version/fragments.py | ASonay/kili-playground | 9624073703b5e6151cf496f44f17f531576875b7 | [
"Apache-2.0"
] | 214 | 2019-08-05T14:55:01.000Z | 2022-03-28T21:02:22.000Z | kili/mutations/project_version/fragments.py | x213212/kili-playground | dfb94c2d54bedfd7fec452b91f811587a2156c13 | [
"Apache-2.0"
] | 10 | 2020-05-14T10:44:16.000Z | 2022-03-08T09:39:24.000Z | kili/mutations/project_version/fragments.py | x213212/kili-playground | dfb94c2d54bedfd7fec452b91f811587a2156c13 | [
"Apache-2.0"
] | 19 | 2019-11-26T22:41:09.000Z | 2022-01-16T19:17:38.000Z | """
Fragments of project version mutations
"""
PROJECT_VERSION_FRAGMENT = '''
content
id
name
projectId
'''
| 9.909091 | 38 | 0.733945 | 12 | 109 | 6.5 | 0.833333 | 0.358974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 109 | 10 | 39 | 10.9 | 0.83871 | 0.348624 | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
a281d5a3c0cadb9b0e4f53931b714575ab5662a4 | 169 | py | Python | test/test.py | ttkltll/fisher | 8889705c7bde10304cfde7972b805226ac59d735 | [
"MIT"
] | null | null | null | test/test.py | ttkltll/fisher | 8889705c7bde10304cfde7972b805226ac59d735 | [
"MIT"
] | 3 | 2020-09-15T23:37:18.000Z | 2020-09-16T00:36:55.000Z | test/test.py | ttkltll/fisher | 8889705c7bde10304cfde7972b805226ac59d735 | [
"MIT"
] | 1 | 2020-09-15T02:55:54.000Z | 2020-09-15T02:55:54.000Z | from flask import Flask, current_app, request, Request
app = Flask(__name__)
ctx = app.app_context()
ctx.push()
current_app.static_floder = 'static'
ctx.pop()
app.run
| 16.9 | 54 | 0.751479 | 26 | 169 | 4.576923 | 0.538462 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12426 | 169 | 9 | 55 | 18.777778 | 0.804054 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 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 | 2 |
a2a9aa208a483f748111656782f9fb6afead659b | 910 | py | Python | tests/test_client.py | nyush-se-spring2021-forum/OurTieba | e7c5d75686e9cfda35050b8e40166d8a1d6ae83d | [
"MIT"
] | null | null | null | tests/test_client.py | nyush-se-spring2021-forum/OurTieba | e7c5d75686e9cfda35050b8e40166d8a1d6ae83d | [
"MIT"
] | 20 | 2021-04-08T11:16:51.000Z | 2021-05-21T16:17:51.000Z | tests/test_client.py | nyush-se-spring2021-forum/OurTieba | e7c5d75686e9cfda35050b8e40166d8a1d6ae83d | [
"MIT"
] | null | null | null | class TestClient:
"""
Test before_request and after_request decorators in __init__.py.
"""
def test_1(self, client): # disallowed methods
res = client.put("/")
assert res.status_code == 405
assert b"Method Not Allowed" in res.content
res = client.options("/api/post/add... | 33.703704 | 74 | 0.615385 | 121 | 910 | 4.520661 | 0.396694 | 0.082267 | 0.137112 | 0.173675 | 0.552102 | 0.535649 | 0.535649 | 0.535649 | 0.535649 | 0.535649 | 0 | 0.029762 | 0.261538 | 910 | 26 | 75 | 35 | 0.784226 | 0.116484 | 0 | 0.555556 | 0 | 0 | 0.186785 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a2b509c564ad0b2601ed7a285ba7c94de901b242 | 754 | py | Python | 01_numbers.py | fernandobd42/Introduction_Python | 7a656df1341bda4e657baa146c28b98bef211fc6 | [
"OLDAP-2.5",
"Python-2.0",
"OLDAP-2.4",
"OLDAP-2.3"
] | 1 | 2016-10-02T00:51:43.000Z | 2016-10-02T00:51:43.000Z | 01_numbers.py | fernandobd42/Introduction_Python | 7a656df1341bda4e657baa146c28b98bef211fc6 | [
"OLDAP-2.5",
"Python-2.0",
"OLDAP-2.4",
"OLDAP-2.3"
] | null | null | null | 01_numbers.py | fernandobd42/Introduction_Python | 7a656df1341bda4e657baa146c28b98bef211fc6 | [
"OLDAP-2.5",
"Python-2.0",
"OLDAP-2.4",
"OLDAP-2.3"
] | null | null | null | x = 1 #x recebe 1
#print irá printar(mostrar) o valor desejado;
print(x) # resultado: 1
print(x + 4) # é possível somar uma variável com um número, desde que a variável tenha um valor definido - resultado: 5
print(2 * 2) #um asterisco é usado para multiplicar - resultado: 4
print(3 ** 3) #dois asterisco é usado para el... | 53.857143 | 119 | 0.706897 | 137 | 754 | 3.890511 | 0.430657 | 0.056285 | 0.093809 | 0.071295 | 0.06379 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043118 | 0.200265 | 754 | 13 | 120 | 58 | 0.840796 | 0.823607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.7 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.