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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3acee6b394ee9cc776b0a34e348bdc806db4720e | 2,064 | py | Python | brudnopis.py | Shandelier/py-tf-movenet-fork | f3eb866665f9e23ec313edf68df6302dd5786ed6 | [
"Apache-2.0"
] | 1 | 2021-06-09T07:05:23.000Z | 2021-06-09T07:05:23.000Z | brudnopis.py | Shandelier/python-movenet | f3eb866665f9e23ec313edf68df6302dd5786ed6 | [
"Apache-2.0"
] | null | null | null | brudnopis.py | Shandelier/python-movenet | f3eb866665f9e23ec313edf68df6302dd5786ed6 | [
"Apache-2.0"
] | null | null | null | # from sklearn.utils import shuffle
# import util as ut
# import os
# import pandas as pd
# import training_util as tut
# import numpy as np
# def sample_2000():
# file_paths, file_names, pose_type = ut.get_csvs_paths(
# os.path.join("5-people-csvs"))
# init = list.pop(file_paths)
# ds = pd.read_... | 23.724138 | 89 | 0.601744 | 300 | 2,064 | 4.023333 | 0.413333 | 0.020713 | 0.024855 | 0.023198 | 0.124275 | 0.057995 | 0.057995 | 0.057995 | 0.057995 | 0 | 0 | 0.026616 | 0.235465 | 2,064 | 86 | 90 | 24 | 0.738276 | 0.869186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ad380b2ffcde7df6679cbb1d4378e9417a3ee46 | 5,675 | py | Python | modules/decompressor/uatg_decompressor_floating_01.py | incoresemi/chromite_uatg_tests | ff3116407c16eef0e73a1f3527075efdb2a4eb14 | [
"BSD-3-Clause"
] | 3 | 2021-09-17T04:53:08.000Z | 2021-09-17T06:14:23.000Z | modules/decompressor/uatg_decompressor_floating_01.py | incoresemi/chromite_uatg_tests | ff3116407c16eef0e73a1f3527075efdb2a4eb14 | [
"BSD-3-Clause"
] | 3 | 2022-01-04T06:52:50.000Z | 2022-02-09T13:25:29.000Z | modules/decompressor/uatg_decompressor_floating_01.py | incoresemi/chromite_uatg_tests | ff3116407c16eef0e73a1f3527075efdb2a4eb14 | [
"BSD-3-Clause"
] | 2 | 2022-01-04T04:36:40.000Z | 2022-01-04T05:32:24.000Z | # python program to generate an assembly file which checks if mis-predictions
# occur In addition to this, the GHR is also filled with ones (additional
# test case) uses assembly macros
from typing import Dict, List, Union, Any
# To-Do -> Create another function which prints the includes and other
# assembler directi... | 37.091503 | 91 | 0.514185 | 674 | 5,675 | 4.151335 | 0.353116 | 0.013581 | 0.022873 | 0.012866 | 0.087205 | 0.060758 | 0.018585 | 0 | 0 | 0 | 0 | 0.028475 | 0.374978 | 5,675 | 152 | 92 | 37.335526 | 0.760361 | 0.135507 | 0 | 0.028571 | 1 | 0 | 0.305698 | 0.053693 | 0 | 0 | 0.002674 | 0 | 0 | 1 | 0.038095 | false | 0.009524 | 0.028571 | 0 | 0.104762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3adcf1fe5d6dea4fb1870fe9017321b2ad54e8fe | 3,278 | py | Python | Blocky-autoPWN.py | z3rObyte/HackTheBox-Autopwn | 6477f43a0a845adee715ffe1bc4ade62aeb3e679 | [
"Apache-2.0"
] | 1 | 2021-08-25T14:01:13.000Z | 2021-08-25T14:01:13.000Z | Blocky-autoPWN.py | z3rObyte/HackTheBox-Autopwn | 6477f43a0a845adee715ffe1bc4ade62aeb3e679 | [
"Apache-2.0"
] | null | null | null | Blocky-autoPWN.py | z3rObyte/HackTheBox-Autopwn | 6477f43a0a845adee715ffe1bc4ade62aeb3e679 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import zipfile
from pwn import * # pip3 install pwn
banner = """
____ __ __ __ ____ _ ___ __
/ __ )/ /___ _____/ /____ __ ____ ___ __/ /_____ / __ \ | / / | / /
/ __ / / __ \/ ___/ //_/ / / /_____/ __ `/ / / / __/ __ \/ /_/ ... | 28.017094 | 136 | 0.566809 | 368 | 3,278 | 4.63587 | 0.516304 | 0.014068 | 0.023447 | 0.014068 | 0.039859 | 0.017585 | 0 | 0 | 0 | 0 | 0 | 0.02831 | 0.267236 | 3,278 | 116 | 137 | 28.258621 | 0.681932 | 0.122636 | 0 | 0.095238 | 0 | 0.079365 | 0.418791 | 0.041216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.079365 | 0.031746 | 0 | 0.079365 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3ae00d3abfc861f7559fd9d0fd444be28cadc9c5 | 3,175 | py | Python | test/molecular_map_test/single_protein_explicit_mapping/test_single_protein_explicit_mapping.py | fieryd/cgmap | 8b09cf1392d22be4f735d3259ee9d624f3e45210 | [
"Apache-2.0"
] | 5 | 2018-03-05T07:10:09.000Z | 2019-09-11T19:33:56.000Z | test/molecular_map_test/single_protein_explicit_mapping/test_single_protein_explicit_mapping.py | fieryd/cgmap | 8b09cf1392d22be4f735d3259ee9d624f3e45210 | [
"Apache-2.0"
] | 3 | 2017-05-02T21:47:38.000Z | 2020-07-16T20:12:19.000Z | test/molecular_map_test/single_protein_explicit_mapping/test_single_protein_explicit_mapping.py | fieryd/cgmap | 8b09cf1392d22be4f735d3259ee9d624f3e45210 | [
"Apache-2.0"
] | 4 | 2017-09-18T20:02:33.000Z | 2021-11-01T15:51:51.000Z | #!/usr/bin/env python2
import sys
sys.path.append('../../../src/')
import cgmap as cg
import mdtraj as md
import md_check as check
############################### config #####################################
input_traj = "protein.trr"
input_top = "protein.pdb"
output_traj = "protein.trr"
output_top = "protein.pdb... | 28.097345 | 128 | 0.589606 | 399 | 3,175 | 4.506266 | 0.320802 | 0.050056 | 0.041713 | 0.021135 | 0.173526 | 0.156841 | 0.156841 | 0.136819 | 0.136819 | 0.136819 | 0 | 0.007953 | 0.247559 | 3,175 | 112 | 129 | 28.348214 | 0.744663 | 0.115276 | 0 | 0.191781 | 0 | 0 | 0.078348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054795 | null | null | 0.054795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ae65789d9458479266b8a51662e5436d0fc02db | 525 | py | Python | TNP Cell Website/classroom/views/classroom.py | kaustubh240897/Quizapplication | dcdf05670da649b602f26013a95b89b5c3a1585a | [
"MIT"
] | 2 | 2018-11-04T06:44:58.000Z | 2018-11-15T19:19:19.000Z | TNP Cell Website/classroom/views/classroom.py | kaustubh240897/Quizapplication | dcdf05670da649b602f26013a95b89b5c3a1585a | [
"MIT"
] | 2 | 2018-10-29T15:27:16.000Z | 2018-10-30T08:38:37.000Z | TNP Cell Website/classroom/views/classroom.py | kaustubh240897/Training_and_Placement_cell_IIITV | dcdf05670da649b602f26013a95b89b5c3a1585a | [
"MIT"
] | 3 | 2018-10-29T15:00:44.000Z | 2020-10-14T13:05:10.000Z | from django.shortcuts import redirect, render
from django.views.generic import TemplateView
class SignUpView(TemplateView):
template_name = 'registration/signup.html'
#homePage
def home(request):
if request.user.is_authenticated:
if request.user.is_teacher:
return redirect('teachers:my_jo... | 25 | 52 | 0.72 | 65 | 525 | 5.676923 | 0.569231 | 0.04065 | 0.070461 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182857 | 525 | 20 | 53 | 26.25 | 0.86014 | 0.026667 | 0 | 0 | 0 | 0 | 0.198428 | 0.131631 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3ae8972b7f0c8d8ea6d2f5706159829160fedc21 | 6,119 | py | Python | kolab/yk/yk.py | roy029/kolab | 10a3054da5e7c96c575de1336056eee65368c087 | [
"MIT"
] | null | null | null | kolab/yk/yk.py | roy029/kolab | 10a3054da5e7c96c575de1336056eee65368c087 | [
"MIT"
] | 1 | 2021-11-14T05:38:27.000Z | 2021-11-14T05:38:27.000Z | kolab/yk/yk.py | roy029/kolab | 10a3054da5e7c96c575de1336056eee65368c087 | [
"MIT"
] | 7 | 2020-11-02T13:05:44.000Z | 2022-01-09T11:06:04.000Z | from os import read
import sys
import pegtree as pg
import csv
from pegtree.optimizer import optimize
peg = pg.grammar('yk.tpeg')
parse = pg.generate(peg)
VAR_literal = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
NAME_literal = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ'
VAL_literal = 'abcdefgh... | 32.897849 | 86 | 0.484393 | 717 | 6,119 | 4.012552 | 0.157601 | 0.012513 | 0.050052 | 0.078206 | 0.394508 | 0.374001 | 0.353146 | 0.327772 | 0.281891 | 0.281891 | 0 | 0.01772 | 0.382089 | 6,119 | 185 | 87 | 33.075676 | 0.74319 | 0.041837 | 0 | 0.378205 | 1 | 0 | 0.064979 | 0.026676 | 0 | 0 | 0 | 0.005405 | 0 | 1 | 0.032051 | false | 0.00641 | 0.032051 | 0 | 0.166667 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3aeaaea0220995b51a401a8289992641fdab006b | 238 | py | Python | ytdl_gui/__init__.py | Aakodal/ytdl-python | fa40b7722fb51c8cad17d690b83b0f08f36c203a | [
"MIT"
] | null | null | null | ytdl_gui/__init__.py | Aakodal/ytdl-python | fa40b7722fb51c8cad17d690b83b0f08f36c203a | [
"MIT"
] | null | null | null | ytdl_gui/__init__.py | Aakodal/ytdl-python | fa40b7722fb51c8cad17d690b83b0f08f36c203a | [
"MIT"
] | null | null | null | import bottle
root = __import__("pathlib").Path(__file__).resolve().parent
bottle.TEMPLATE_PATH = [str(root / "views")]
app = bottle.default_app()
host = "127.0.0.1"
port = "65534"
from . import controller
from . import download_video
| 19.833333 | 60 | 0.722689 | 33 | 238 | 4.878788 | 0.69697 | 0.124224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052885 | 0.12605 | 238 | 11 | 61 | 21.636364 | 0.721154 | 0 | 0 | 0 | 0 | 0 | 0.109244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3aedb392cb14830050e8adbbfe3be5d562d42189 | 2,264 | py | Python | spotify/migrations/0001_initial.py | FattyMango/Syncfy | 291bda024d91f9c6fd5f59c073ecf16c90325d8a | [
"Apache-2.0"
] | null | null | null | spotify/migrations/0001_initial.py | FattyMango/Syncfy | 291bda024d91f9c6fd5f59c073ecf16c90325d8a | [
"Apache-2.0"
] | null | null | null | spotify/migrations/0001_initial.py | FattyMango/Syncfy | 291bda024d91f9c6fd5f59c073ecf16c90325d8a | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.3 on 2021-05-07 18:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 47.166667 | 146 | 0.628534 | 251 | 2,264 | 5.482072 | 0.314741 | 0.040698 | 0.040698 | 0.063953 | 0.56686 | 0.516715 | 0.516715 | 0.516715 | 0.516715 | 0.452762 | 0 | 0.016213 | 0.237191 | 2,264 | 47 | 147 | 48.170213 | 0.780544 | 0.019876 | 0 | 0.425 | 1 | 0 | 0.099684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3aef6a1d97b22b7334946b3961dc63d93d47db28 | 752 | py | Python | api/serializers.py | isabella232/urlprompt | b689ed0f2e82633653d181959af304590fea8b02 | [
"Apache-2.0"
] | null | null | null | api/serializers.py | isabella232/urlprompt | b689ed0f2e82633653d181959af304590fea8b02 | [
"Apache-2.0"
] | 6 | 2021-09-30T11:31:58.000Z | 2022-03-21T15:12:28.000Z | api/serializers.py | isabella232/urlprompt | b689ed0f2e82633653d181959af304590fea8b02 | [
"Apache-2.0"
] | 1 | 2022-03-27T16:53:05.000Z | 2022-03-27T16:53:05.000Z | from rest_framework import serializers
from core.models import Prompt, CustomUser
class CustomUserSerializer(serializers.ModelSerializer):
class Meta:
model = CustomUser
fields = ["id", "username"]
class PromptSerializer(serializers.HyperlinkedModelSerializer):
created_by = CustomUserSeriali... | 31.333333 | 93 | 0.682181 | 72 | 752 | 6.986111 | 0.486111 | 0.053678 | 0.083499 | 0.139165 | 0.234592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196809 | 752 | 23 | 94 | 32.695652 | 0.832781 | 0 | 0 | 0.294118 | 0 | 0 | 0.160904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3af3501863237636c8ad601e7b05518a6b063f13 | 1,550 | py | Python | phr/ciudadano/migrations/0053_antecedentereaccionadversamedicamento.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/ciudadano/migrations/0053_antecedentereaccionadversamedicamento.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/ciudadano/migrations/0053_antecedentereaccionadversamedicamento.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-02 14:10
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('ciudadano', '0052_auto_20170920_1003'),
]
operations = [
migrat... | 41.891892 | 140 | 0.593548 | 153 | 1,550 | 5.849673 | 0.542484 | 0.035754 | 0.040223 | 0.058101 | 0.082682 | 0.082682 | 0 | 0 | 0 | 0 | 0 | 0.038294 | 0.25871 | 1,550 | 36 | 141 | 43.055556 | 0.740644 | 0.043871 | 0 | 0 | 1 | 0 | 0.167681 | 0.040568 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3af623d8cb194fe7d9a3384310c51e0b984f4828 | 302 | py | Python | Tracking/Image/pygui1.py | RoosterQMonee/GTAG-PyAI | 1bef3cfc85da034f9129a008bd6c5e9114ce3cfd | [
"MIT"
] | null | null | null | Tracking/Image/pygui1.py | RoosterQMonee/GTAG-PyAI | 1bef3cfc85da034f9129a008bd6c5e9114ce3cfd | [
"MIT"
] | 1 | 2022-03-30T14:11:13.000Z | 2022-03-30T14:11:37.000Z | Tracking/Image/pygui1.py | RoosterQMonee/GTAG-PyAI | 1bef3cfc85da034f9129a008bd6c5e9114ce3cfd | [
"MIT"
] | null | null | null | from pyautogui import *
import pyautogui
import time
while 1:
if pyautogui.locateOnScreen('img.png', region=(150,175,350,600), grayscale=True, confidence=0.8) != None:
print("I can see it")
time.sleep(0.5)
else:
print("I am unable to see it")
time.sleep(0.5)
| 25.166667 | 109 | 0.625828 | 46 | 302 | 4.108696 | 0.695652 | 0.15873 | 0.095238 | 0.148148 | 0.169312 | 0.169312 | 0 | 0 | 0 | 0 | 0 | 0.082969 | 0.241722 | 302 | 11 | 110 | 27.454545 | 0.742358 | 0 | 0 | 0.2 | 0 | 0 | 0.13245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3 | 0 | 0.3 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aaebe47258a943fd8be9436d233e4c883e9d3710 | 13,212 | py | Python | iarm_kernel/iarmkernel.py | howardjp/iMCS-48 | b545a37a9b15fdcdacb4e2ba263f45a9c62df079 | [
"MIT"
] | 20 | 2016-05-16T18:23:49.000Z | 2021-08-06T17:15:34.000Z | iarm_kernel/iarmkernel.py | howardjp/iMCS-48 | b545a37a9b15fdcdacb4e2ba263f45a9c62df079 | [
"MIT"
] | 11 | 2016-07-14T17:57:10.000Z | 2020-11-18T21:11:21.000Z | iarm_kernel/iarmkernel.py | howardjp/iMCS-48 | b545a37a9b15fdcdacb4e2ba263f45a9c62df079 | [
"MIT"
] | 4 | 2016-08-14T19:11:21.000Z | 2021-08-18T09:38:25.000Z | from ipykernel.kernelbase import Kernel
from iarm.arm import Arm
import re
import warnings
import iarm.exceptions
class ArmKernel(Kernel):
implementation = 'IArm'
implementation_version = '0.1.0'
language = 'ARM'
language_version = iarm.__version__
language_info = {
'name': 'ARM Coretex M0... | 37.748571 | 128 | 0.546776 | 1,471 | 13,212 | 4.764106 | 0.194426 | 0.055651 | 0.031535 | 0.0371 | 0.484446 | 0.460331 | 0.393408 | 0.379424 | 0.357163 | 0.310074 | 0 | 0.007606 | 0.343249 | 13,212 | 349 | 129 | 37.856734 | 0.800046 | 0.192174 | 0 | 0.430622 | 0 | 0 | 0.095524 | 0 | 0 | 0 | 0 | 0.011461 | 0 | 1 | 0.066986 | false | 0 | 0.028708 | 0 | 0.196172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aaecb8a64722e04f0363e0de885f9fecd7b99152 | 383 | py | Python | pyweb/com/xsqt/Student.py | zhougithui/python | fbac0b2508545083044eafde4bf6eb58d4606eb5 | [
"Apache-2.0"
] | null | null | null | pyweb/com/xsqt/Student.py | zhougithui/python | fbac0b2508545083044eafde4bf6eb58d4606eb5 | [
"Apache-2.0"
] | null | null | null | pyweb/com/xsqt/Student.py | zhougithui/python | fbac0b2508545083044eafde4bf6eb58d4606eb5 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/evn python
class Student(object):
__slots__ = ('__birth', '__age')
@property
def birth(self):
return self.__birth
@birth.setter
def birth(self, value):
self.__birth = value
@property
def age(self):
return 2015 - self.__birth
if __name__ == '__main__... | 15.958333 | 36 | 0.587467 | 45 | 383 | 4.511111 | 0.511111 | 0.133005 | 0.118227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029304 | 0.287206 | 383 | 23 | 37 | 16.652174 | 0.714286 | 0.05483 | 0 | 0.133333 | 0 | 0 | 0.055402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.133333 | 0.466667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
aaf93a0fc8d0fd36a7282b6699c6daddec972081 | 1,172 | py | Python | examples/sample.py | odra/habet | cb791c3367f06fff0a6557fe5697033b2262bfc8 | [
"MIT"
] | null | null | null | examples/sample.py | odra/habet | cb791c3367f06fff0a6557fe5697033b2262bfc8 | [
"MIT"
] | null | null | null | examples/sample.py | odra/habet | cb791c3367f06fff0a6557fe5697033b2262bfc8 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
import sys
sys.path.append('../')
from habet import Application, Response, Handler, errors
import json
#custom error register
class InvalidJSONError(errors.BaseServerError):
def __init__(self, *args, **kwargs):
super(InvalidJSONError, self).__init__(*args, **kwargs)
self.status = 4... | 21.309091 | 63 | 0.672355 | 142 | 1,172 | 5.401408 | 0.5 | 0.054759 | 0.070404 | 0.041721 | 0.073012 | 0.073012 | 0 | 0 | 0 | 0 | 0 | 0.009395 | 0.182594 | 1,172 | 54 | 64 | 21.703704 | 0.791232 | 0.078498 | 0 | 0.057143 | 0 | 0 | 0.107176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | null | null | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aafc4992c92b83ce538e9440118f026965da7bbf | 6,158 | py | Python | camshot.py | corerd/camshot | b85787a27eac97ed6c9617203aab0e0a62a4960a | [
"MIT"
] | 1 | 2020-06-14T11:01:34.000Z | 2020-06-14T11:01:34.000Z | camshot.py | corerd/camshot | b85787a27eac97ed6c9617203aab0e0a62a4960a | [
"MIT"
] | null | null | null | camshot.py | corerd/camshot | b85787a27eac97ed6c9617203aab0e0a62a4960a | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Corrado Ubezio
#
# 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 rig... | 39.729032 | 142 | 0.709159 | 794 | 6,158 | 5.332494 | 0.350126 | 0.033066 | 0.046292 | 0.021729 | 0.057629 | 0.02598 | 0.02598 | 0.02598 | 0.02598 | 0.02598 | 0 | 0.013601 | 0.200065 | 6,158 | 154 | 143 | 39.987013 | 0.84592 | 0.232868 | 0 | 0.065421 | 0 | 0.009346 | 0.126679 | 0.012369 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093458 | null | null | 0.028037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c900a339bfb670f70e69fd6eb2b9f7f8d65dd5a7 | 946 | py | Python | city_scrapers/spiders/det_downtown_development_authority.py | just-hugo/city-scrapers-det | 76b52f11506c99e19b7fcaf135cc7570257a2b62 | [
"MIT"
] | 1 | 2020-10-01T18:27:59.000Z | 2020-10-01T18:27:59.000Z | city_scrapers/spiders/det_downtown_development_authority.py | just-hugo/city-scrapers-det | 76b52f11506c99e19b7fcaf135cc7570257a2b62 | [
"MIT"
] | 9 | 2019-11-30T21:33:24.000Z | 2021-04-07T19:26:47.000Z | city_scrapers/spiders/det_downtown_development_authority.py | just-hugo/city-scrapers-det | 76b52f11506c99e19b7fcaf135cc7570257a2b62 | [
"MIT"
] | 5 | 2019-12-20T17:29:10.000Z | 2021-02-14T01:32:26.000Z | from city_scrapers_core.constants import BOARD
from city_scrapers_core.spiders import CityScrapersSpider
from city_scrapers.mixins import DetAuthorityMixin
class DetDowntownDevelopmentAuthoritySpider(DetAuthorityMixin, CityScrapersSpider):
name = "det_downtown_development_authority"
agency = "Detroit Downtow... | 35.037037 | 83 | 0.663848 | 101 | 946 | 6.069307 | 0.623762 | 0.039152 | 0.078303 | 0.065253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017784 | 0.227273 | 946 | 26 | 84 | 36.384615 | 0.820793 | 0 | 0 | 0 | 0 | 0 | 0.276956 | 0.035941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c903dd831993098c836cb5e931cb47ef98a3829d | 4,869 | py | Python | python/aocrecs/logic/minimap.py | Rotzbua/aocrecs.com | 2f03ece75e7367a99e5f36874727cd5bb90508f7 | [
"MIT"
] | 7 | 2019-10-08T09:04:48.000Z | 2021-02-06T00:05:53.000Z | python/aocrecs/logic/minimap.py | happyleavesaoc/aocrecs.com | 2f03ece75e7367a99e5f36874727cd5bb90508f7 | [
"MIT"
] | 10 | 2020-01-18T22:14:09.000Z | 2021-07-31T21:43:05.000Z | python/aocrecs/logic/minimap.py | happyleavesaoc/aocrecs.com | 2f03ece75e7367a99e5f36874727cd5bb90508f7 | [
"MIT"
] | 5 | 2020-05-08T11:35:14.000Z | 2022-01-16T12:41:57.000Z | """Generate SVG minimap."""
from aioify import wrap as aiowrap
from subprocess import Popen, PIPE
import math
import xml.etree.ElementTree as ET
from aocrecs.consts import PREDATOR_IDS, HERDABLE_IDS, HUNT_IDS, BOAR_IDS, FISH_IDS, FORAGE_ID, TC_IDS
GOLD_COLOR = '#FFC700'
STONE_COLOR = '#919191'
FOOD_COLOR = '#A5C46C'... | 36.609023 | 142 | 0.59047 | 633 | 4,869 | 4.412322 | 0.281201 | 0.021482 | 0.025063 | 0.030433 | 0.190834 | 0.142857 | 0.095238 | 0.095238 | 0.092732 | 0.074114 | 0 | 0.022941 | 0.256932 | 4,869 | 132 | 143 | 36.886364 | 0.749033 | 0.048265 | 0 | 0.084906 | 1 | 0 | 0.079704 | 0 | 0 | 0 | 0 | 0.007576 | 0 | 1 | 0.04717 | false | 0 | 0.056604 | 0 | 0.150943 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c90520de032ac5944e1b5e55e1cdb770212939a5 | 3,526 | py | Python | Application/views.py | gdimitris/FleetManagerBackend | 1a5f0c26a4279894b6ed6507cf729f88502d0883 | [
"MIT"
] | null | null | null | Application/views.py | gdimitris/FleetManagerBackend | 1a5f0c26a4279894b6ed6507cf729f88502d0883 | [
"MIT"
] | null | null | null | Application/views.py | gdimitris/FleetManagerBackend | 1a5f0c26a4279894b6ed6507cf729f88502d0883 | [
"MIT"
] | 1 | 2020-05-05T05:42:00.000Z | 2020-05-05T05:42:00.000Z | import os
from datetime import datetime
from flask import render_template, request, jsonify, send_from_directory, url_for
from Application import app, db
from Application.db_operations import update_researcher_timestamp, insert_location_point_in_db, \
insert_or_update_existing_researcher, get_all_researchers_from_d... | 33.903846 | 99 | 0.731707 | 475 | 3,526 | 5.157895 | 0.256842 | 0.05551 | 0.065306 | 0.026122 | 0.332653 | 0.164082 | 0.110204 | 0.110204 | 0.057143 | 0.057143 | 0 | 0.007843 | 0.132161 | 3,526 | 103 | 100 | 34.23301 | 0.79281 | 0 | 0 | 0.12987 | 0 | 0 | 0.161373 | 0.053602 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064935 | null | null | 0.025974 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c905ade7488a7156992eba8440fe0b587bb04770 | 347 | py | Python | app/app.py | JulesGrd/Twitter-Dog-Bot | d0b8a12afbf7ca1c42c540032d1ad9ff5681701b | [
"MIT"
] | 2 | 2021-10-08T21:43:44.000Z | 2021-10-08T22:19:22.000Z | app/app.py | JulesGrd/Twitter-Dog-Bot | d0b8a12afbf7ca1c42c540032d1ad9ff5681701b | [
"MIT"
] | 1 | 2021-11-07T20:07:53.000Z | 2021-11-07T20:07:53.000Z | app/app.py | JulesGrd/Twitter-Dog-Bot | d0b8a12afbf7ca1c42c540032d1ad9ff5681701b | [
"MIT"
] | 1 | 2021-11-07T18:05:19.000Z | 2021-11-07T18:05:19.000Z | import tweepy
import dog
from postDog import postDog
from config import data
if __name__ == '__main__':
auth = tweepy.OAuthHandler(data["OAUTH_HANDLER_1"], data["OAUTH_HANDLER_2"])
auth.set_access_token(data["API_KEY_1"], data["API_KEY_2"])
api = tweepy.API(auth)
dogPic = dog.getDog(filename='assets... | 21.6875 | 80 | 0.717579 | 50 | 347 | 4.62 | 0.52 | 0.077922 | 0.138528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013652 | 0.15562 | 347 | 15 | 81 | 23.133333 | 0.774744 | 0 | 0 | 0 | 0 | 0 | 0.195965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c90f386866b7264c9826cea39ffcc2b6fd5aaf00 | 394 | py | Python | blog/urls.py | encukou/Zpetnovazebnik | 0d058fd67049a3d42814b04486bde93bc406fa3b | [
"MIT"
] | 1 | 2019-12-04T10:10:53.000Z | 2019-12-04T10:10:53.000Z | blog/urls.py | encukou/Zpetnovazebnik | 0d058fd67049a3d42814b04486bde93bc406fa3b | [
"MIT"
] | 14 | 2019-04-07T07:46:07.000Z | 2022-03-11T23:44:31.000Z | blog/urls.py | encukou/Zpetnovazebnik | 0d058fd67049a3d42814b04486bde93bc406fa3b | [
"MIT"
] | 1 | 2019-02-16T09:25:51.000Z | 2019-02-16T09:25:51.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.course_list, name='course_list'),
path('<course_slug>/', views.session_list, name='session_list'),
path('<course_slug>/<session_slug>/', views.session_detail, name='session_detail'),
path('<course_slug>/<session_slug>/<pas... | 35.818182 | 114 | 0.72335 | 52 | 394 | 5.153846 | 0.326923 | 0.11194 | 0.156716 | 0.134328 | 0.186567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106599 | 394 | 10 | 115 | 39.4 | 0.761364 | 0 | 0 | 0 | 0 | 0 | 0.360406 | 0.230964 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c916da29a2d83f2c59eacc745d8499ef2a44d2e6 | 1,215 | py | Python | tests/python-playground/least_abs_dev_0.py | marcocannici/scs | 799a4f7daed4294cd98c73df71676195e6c63de4 | [
"MIT"
] | 25 | 2017-06-30T15:31:33.000Z | 2021-04-21T20:12:18.000Z | tests/python-playground/least_abs_dev_0.py | marcocannici/scs | 799a4f7daed4294cd98c73df71676195e6c63de4 | [
"MIT"
] | 34 | 2017-06-07T01:18:17.000Z | 2021-04-24T09:44:00.000Z | tests/python-playground/least_abs_dev_0.py | marcocannici/scs | 799a4f7daed4294cd98c73df71676195e6c63de4 | [
"MIT"
] | 13 | 2017-06-07T01:16:09.000Z | 2021-06-07T09:12:56.000Z | # This is automatically-generated code.
# Uses the jinja2 library for templating.
import cvxpy as cp
import numpy as np
import scipy as sp
# setup
problemID = "least_abs_dev_0"
prob = None
opt_val = None
# Variable declarations
import scipy.sparse as sps
np.random.seed(0)
m = 5000
n = 200
A = np.random.rand... | 18.409091 | 69 | 0.650206 | 180 | 1,215 | 4.3 | 0.461111 | 0.062016 | 0.067183 | 0.036176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028542 | 0.192593 | 1,215 | 65 | 70 | 18.692308 | 0.760449 | 0.169547 | 0 | 0 | 1 | 0 | 0.101202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.121212 | 0 | 0.151515 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c91a77c07622a3736aa47e0888f81515c8655b66 | 746 | py | Python | ivoire/__init__.py | Julian/Ivoire | af3f4ac77daf9d6c5167ef8a906557cc9d1d0ba7 | [
"MIT"
] | 9 | 2015-02-05T12:16:47.000Z | 2022-02-04T07:48:23.000Z | ivoire/__init__.py | Julian/Ivoire | af3f4ac77daf9d6c5167ef8a906557cc9d1d0ba7 | [
"MIT"
] | 1 | 2018-02-11T16:31:36.000Z | 2018-02-11T16:31:36.000Z | ivoire/__init__.py | Julian/Ivoire | af3f4ac77daf9d6c5167ef8a906557cc9d1d0ba7 | [
"MIT"
] | null | null | null | """
Ivoire is an RSpec-like testing framework for Python.
Globals defined in this module:
current_result: Should be set by a runner to an object that has the same
interface as unittest.TestResult. It will be used by every
example that is instantiated to record test results d... | 26.642857 | 78 | 0.727882 | 93 | 746 | 5.688172 | 0.645161 | 0.049149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230563 | 746 | 27 | 79 | 27.62963 | 0.921603 | 0.55496 | 0 | 0 | 0 | 0 | 0.018576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c92cee00e5a3f53b6fcf563376119be5a8fa6b38 | 645 | py | Python | fusion/dataset/mnist_svhn/transforms.py | Mrinal18/fusion | 34e563f2e50139385577c3880c5de11f8a73f220 | [
"BSD-3-Clause"
] | 14 | 2021-04-05T01:25:12.000Z | 2022-02-17T19:44:28.000Z | fusion/dataset/mnist_svhn/transforms.py | Mrinal18/fusion | 34e563f2e50139385577c3880c5de11f8a73f220 | [
"BSD-3-Clause"
] | 1 | 2021-07-05T08:32:49.000Z | 2021-07-05T12:34:57.000Z | fusion/dataset/mnist_svhn/transforms.py | Mrinal18/fusion | 34e563f2e50139385577c3880c5de11f8a73f220 | [
"BSD-3-Clause"
] | 1 | 2022-02-01T21:56:11.000Z | 2022-02-01T21:56:11.000Z | from torch import Tensor
from torchvision import transforms
class SVHNTransform:
"""
"""
def __call__(self, x) -> Tensor:
"""
Make SVHN transform
Args:
x: Input tensor
Return:
Transform tensor
"""
x = transforms.ToTensor()(x)
... | 17.916667 | 42 | 0.493023 | 60 | 645 | 5.166667 | 0.383333 | 0.106452 | 0.070968 | 0.077419 | 0.648387 | 0.648387 | 0.367742 | 0.367742 | 0.367742 | 0.367742 | 0 | 0.010444 | 0.406202 | 645 | 35 | 43 | 18.428571 | 0.798956 | 0.232558 | 0 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c934c6f917f8d18513144569e61a6ad4e232777a | 651 | py | Python | apps/main/proc_scraper.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | 1 | 2022-02-15T14:03:10.000Z | 2022-02-15T14:03:10.000Z | apps/main/proc_scraper.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | null | null | null | apps/main/proc_scraper.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | null | null | null | #sub processes to scrape using the normal Google scraper
#include libs
import sys
sys.path.insert(0, '..')
from include import *
def save_sources():
call(["python3", "job_save_sources.py"])
def scraper():
call(["python3", "job_scraper.py"])
def reset_scraper():
call(["python3", "job_reset_scraper.py"])
... | 22.448276 | 56 | 0.738863 | 85 | 651 | 5.505882 | 0.388235 | 0.094017 | 0.119658 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02253 | 0.113671 | 651 | 28 | 57 | 23.25 | 0.788562 | 0.102919 | 0 | 0 | 0 | 0 | 0.176976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9378ebb2e19a75b65829de15453b31293aca652 | 3,060 | py | Python | src/odin-http/odin/http/models.py | wenshuoliu/odin | 7998ee7541b3de44dd149899168983e964f2b8f7 | [
"Apache-2.0"
] | 4 | 2020-12-15T15:57:14.000Z | 2020-12-16T21:52:23.000Z | src/odin-http/odin/http/models.py | wenshuoliu/odin | 7998ee7541b3de44dd149899168983e964f2b8f7 | [
"Apache-2.0"
] | 2 | 2021-03-15T02:49:56.000Z | 2021-03-27T12:42:38.000Z | src/odin-http/odin/http/models.py | wenshuoliu/odin | 7998ee7541b3de44dd149899168983e964f2b8f7 | [
"Apache-2.0"
] | 5 | 2020-12-15T19:09:00.000Z | 2021-04-21T20:40:38.000Z | #from pydantic import BaseModel as Model
# This gives us backwards compatible API calls
from fastapi_camelcase import CamelModel as Model
from typing import Optional, List
from datetime import date, datetime
class UserDefinition(Model):
username: str
password: Optional[str] = None
firstname: Optional[str]... | 21.103448 | 80 | 0.693137 | 335 | 3,060 | 6.268657 | 0.361194 | 0.073333 | 0.064286 | 0.020952 | 0.04381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000415 | 0.212092 | 3,060 | 144 | 81 | 21.25 | 0.870593 | 0.062418 | 0 | 0.175258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.010309 | 0.030928 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c941a3a73b37c420856313d2ddda37d278df3e52 | 1,021 | py | Python | 2021/day2.py | MadsPoder/advent-of-code | 4f190e18d24332e21308a7d251c331777b52a5f1 | [
"MIT"
] | 2 | 2019-12-02T22:27:59.000Z | 2019-12-04T07:48:27.000Z | 2021/day2.py | MadsPoder/advent-of-code | 4f190e18d24332e21308a7d251c331777b52a5f1 | [
"MIT"
] | null | null | null | 2021/day2.py | MadsPoder/advent-of-code | 4f190e18d24332e21308a7d251c331777b52a5f1 | [
"MIT"
] | null | null | null | # Playing with pattern matching in python 3.10
# Add lambda to parse commands into command and corresponding units
parse_command = lambda x, y: (x, int(y))
# Read puzzle input
with open ('day2.txt') as fp:
commands = [parse_command(*x.strip().split(' ')) for x in fp.readlines()]
horizontal_position = 0
depth = 0... | 25.525 | 77 | 0.613124 | 126 | 1,021 | 4.888889 | 0.373016 | 0.233766 | 0.073052 | 0.077922 | 0.37013 | 0.37013 | 0.37013 | 0.37013 | 0.37013 | 0.37013 | 0 | 0.015048 | 0.284035 | 1,021 | 40 | 78 | 25.525 | 0.827633 | 0.139079 | 0 | 0.666667 | 0 | 0 | 0.040046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c96971b273caac5ab991341745cb2d8e72b76d77 | 2,519 | py | Python | tests/api_resources/test_application_fee.py | bhch/async-stripe | 75d934a8bb242f664e7be30812c12335cf885287 | [
"MIT",
"BSD-3-Clause"
] | 8 | 2021-05-29T08:57:58.000Z | 2022-02-19T07:09:25.000Z | tests/api_resources/test_application_fee.py | bhch/async-stripe | 75d934a8bb242f664e7be30812c12335cf885287 | [
"MIT",
"BSD-3-Clause"
] | 5 | 2021-05-31T10:18:36.000Z | 2022-01-25T11:39:03.000Z | tests/api_resources/test_application_fee.py | bhch/async-stripe | 75d934a8bb242f664e7be30812c12335cf885287 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-05-29T13:27:10.000Z | 2021-05-29T13:27:10.000Z | from __future__ import absolute_import, division, print_function
import stripe
import pytest
pytestmark = pytest.mark.asyncio
TEST_RESOURCE_ID = "fee_123"
TEST_FEEREFUND_ID = "fr_123"
class TestApplicationFee(object):
async def test_is_listable(self, request_mock):
resources = await stripe.Applicatio... | 35.985714 | 78 | 0.687574 | 273 | 2,519 | 6.051282 | 0.223443 | 0.079903 | 0.09322 | 0.050847 | 0.709443 | 0.709443 | 0.688862 | 0.533898 | 0.506053 | 0.476998 | 0 | 0.008718 | 0.225883 | 2,519 | 69 | 79 | 36.507246 | 0.838462 | 0 | 0 | 0.285714 | 0 | 0 | 0.087336 | 0.063517 | 0 | 0 | 0 | 0 | 0.267857 | 1 | 0 | false | 0 | 0.053571 | 0 | 0.089286 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c96a052abb332bba00f134e10d854c779b770b2a | 866 | py | Python | code/busyschedule.py | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 8 | 2020-02-21T22:21:01.000Z | 2022-02-16T05:30:54.000Z | code/busyschedule.py | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | null | null | null | code/busyschedule.py | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 3 | 2020-08-05T05:42:35.000Z | 2021-08-30T05:39:51.000Z | def busyschedule():
times = input()
while (times != 0):
timeList = []
for i in range(0, times):
timeS = raw_input()
time = timeS.split()
time[0] = time[0].split(":")
if time[1] == "a.m.":
if time[0][0] == "12":
t... | 30.928571 | 82 | 0.39261 | 95 | 866 | 3.568421 | 0.252632 | 0.147493 | 0.141593 | 0.106195 | 0.492625 | 0.492625 | 0.439528 | 0.241888 | 0.241888 | 0.241888 | 0 | 0.063008 | 0.431871 | 866 | 28 | 83 | 30.928571 | 0.626016 | 0 | 0 | 0.291667 | 0 | 0 | 0.010381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9702823a44c14ac03b736bffeea367a229f28da | 6,612 | py | Python | testscripts/RDKB/component/CMAgent/TS_CMAGENT_SetSessionId.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/CMAgent/TS_CMAGENT_SetSessionId.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/CMAgent/TS_CMAGENT_SetSessionId.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2016 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not... | 44.675676 | 259 | 0.73775 | 898 | 6,612 | 5.335189 | 0.331849 | 0.043623 | 0.021916 | 0.011689 | 0.111668 | 0.096431 | 0.082655 | 0.069714 | 0.069714 | 0.069714 | 0 | 0.008704 | 0.16591 | 6,612 | 147 | 260 | 44.979592 | 0.860018 | 0.181639 | 0 | 0.166667 | 0 | 0 | 0.365314 | 0.032595 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | null | null | 0.361111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c970887827dfacb25a04d949c110b21b2a98595f | 492 | py | Python | blu/config.py | coolman565/blu_two | 5c7626145b3644570be99ff0267f88bd61b9806c | [
"MIT"
] | null | null | null | blu/config.py | coolman565/blu_two | 5c7626145b3644570be99ff0267f88bd61b9806c | [
"MIT"
] | 1 | 2021-06-01T21:57:23.000Z | 2021-06-01T21:57:23.000Z | blu/config.py | coolman565/blu_two | 5c7626145b3644570be99ff0267f88bd61b9806c | [
"MIT"
] | null | null | null | import logging
import yaml
logger = logging.getLogger(__name__)
class Config(object):
__instance__ = None
cfg = {}
def __new__(cls, *args, **kwargs):
if Config.__instance__ is None:
Config.__instance__ = object.__new__(cls)
return Config.__instance__
def load(self, loca... | 23.428571 | 66 | 0.632114 | 57 | 492 | 4.964912 | 0.631579 | 0.14841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254065 | 492 | 20 | 67 | 24.6 | 0.771117 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c9778ad426ae5b59849224563d916aed7af67c6a | 2,438 | py | Python | dnsdetect.py | bhaveshgoyal/DNSpoPy | 978beae9028b6122f1d9c1e7316e630ed466a628 | [
"MIT"
] | 3 | 2022-01-03T12:10:41.000Z | 2022-03-21T22:14:51.000Z | dnsdetect.py | bhaveshgoyal/DNSpoPy | 978beae9028b6122f1d9c1e7316e630ed466a628 | [
"MIT"
] | null | null | null | dnsdetect.py | bhaveshgoyal/DNSpoPy | 978beae9028b6122f1d9c1e7316e630ed466a628 | [
"MIT"
] | null | null | null | #import pcap
#import dpkt
#import dnet
from collections import defaultdict
from scapy.all import *
from scapy.all import send as ssend
import netifaces
import getopt
import datetime
conf.sniff_promisc=True
pcap_specified = False
detection_map = defaultdict(list)
def detect_poison(pkt):
global pcap_specified
if IP i... | 29.731707 | 123 | 0.651354 | 361 | 2,438 | 4.307479 | 0.362881 | 0.034727 | 0.057878 | 0.023151 | 0.109325 | 0.088746 | 0.088746 | 0.048875 | 0.048875 | 0.048875 | 0 | 0.010825 | 0.204266 | 2,438 | 81 | 124 | 30.098765 | 0.790722 | 0.035275 | 0 | 0.171429 | 0 | 0 | 0.139753 | 0 | 0.014286 | 0 | 0 | 0 | 0.014286 | 0 | null | null | 0 | 0.085714 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c97d6ba493e05a165ce59471439dfde7e1eb3a10 | 2,953 | py | Python | utils.py | sthagen/example-app-report | dedb70755debfbe959d00515b101314dfeed6ec1 | [
"MIT"
] | 1 | 2021-09-05T18:12:27.000Z | 2021-09-05T18:12:27.000Z | utils.py | sthagen/example-app-report | dedb70755debfbe959d00515b101314dfeed6ec1 | [
"MIT"
] | null | null | null | utils.py | sthagen/example-app-report | dedb70755debfbe959d00515b101314dfeed6ec1 | [
"MIT"
] | null | null | null | import os
from dash import dcc, html
URL_PATH_SEP = '/'
URL_BASE_PATHNAME = os.getenv('REPORT_URL_BASE', URL_PATH_SEP)
if URL_BASE_PATHNAME[-1] != URL_PATH_SEP:
URL_BASE_PATHNAME += URL_PATH_SEP
def Header(app):
return html.Div([get_header(app), html.Br([]), get_menu()])
def get_header(app):
header = h... | 29.53 | 79 | 0.385371 | 255 | 2,953 | 4.32549 | 0.34902 | 0.050771 | 0.095195 | 0.043518 | 0.150499 | 0.045331 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.500508 | 2,953 | 99 | 80 | 29.828283 | 0.744407 | 0.021673 | 0 | 0.359551 | 0 | 0 | 0.165453 | 0.034339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044944 | false | 0 | 0.022472 | 0.011236 | 0.11236 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c984c4501d6e403db82fdd8d7b4131f8e313f048 | 1,004 | py | Python | test/test_reference.py | ognibit/sudoku-solver | 1c47b80b36b4bd57a11a4084e04defd849531782 | [
"Apache-2.0"
] | null | null | null | test/test_reference.py | ognibit/sudoku-solver | 1c47b80b36b4bd57a11a4084e04defd849531782 | [
"Apache-2.0"
] | null | null | null | test/test_reference.py | ognibit/sudoku-solver | 1c47b80b36b4bd57a11a4084e04defd849531782 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pytest
from sudoku import SudokuLine, build_rows, build_columns
from sudoku import SudokuSquare, build_squares
def test_reference():
dimension = 3
dim_pow = dimension ** 2
board = np.zeros((dim_pow, dim_pow), dtype='int')
symbols = np.arange(1, dim_pow + 1)
squares = build_squares(board... | 23.348837 | 56 | 0.657371 | 179 | 1,004 | 3.625698 | 0.178771 | 0.101695 | 0.086287 | 0.061633 | 0.302003 | 0.126348 | 0.093991 | 0 | 0 | 0 | 0 | 0.084423 | 0.162351 | 1,004 | 42 | 57 | 23.904762 | 0.687277 | 0 | 0 | 0 | 0 | 0 | 0.002988 | 0 | 0 | 0 | 0 | 0 | 0.483871 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c985d647edcaf8c1a409b8e34f91d4add29cf574 | 1,424 | py | Python | ReaderBoard/Score.py | JongbinRyu/Ajou_Challenge | 26c1e6e8464f2b50941dccbbca017ab99b6d4489 | [
"MIT"
] | null | null | null | ReaderBoard/Score.py | JongbinRyu/Ajou_Challenge | 26c1e6e8464f2b50941dccbbca017ab99b6d4489 | [
"MIT"
] | null | null | null | ReaderBoard/Score.py | JongbinRyu/Ajou_Challenge | 26c1e6e8464f2b50941dccbbca017ab99b6d4489 | [
"MIT"
] | null | null | null | import os
import json
import datetime
from pytz import timezone, utc
def update_total_score(name_list_dict, score_rules, now_kst_aware, penalty_const=.1):
"""
Update Total Score when scheduled day written in "ScoreRule.json"
:param name_list_dict: This contains contestants score info loaded from "namelist.... | 45.935484 | 95 | 0.67486 | 203 | 1,424 | 4.497537 | 0.374384 | 0.098576 | 0.060241 | 0.030668 | 0.096386 | 0.054765 | 0 | 0 | 0 | 0 | 0 | 0.005381 | 0.216994 | 1,424 | 31 | 96 | 45.935484 | 0.813453 | 0.288624 | 0 | 0.2 | 0 | 0 | 0.152905 | 0.023445 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.25 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a30c4f34a3721276b10ca7d81878d13ffef5c2e3 | 1,342 | py | Python | back-end/api/migrations/0003_address_event.py | tuftsjumbocode/bostonathleticsassociation | 4a01607bd530e9f4973d3b345a442b4eceafa8e1 | [
"MIT"
] | 2 | 2017-01-30T01:33:07.000Z | 2017-02-12T22:00:19.000Z | back-end/api/migrations/0003_address_event.py | tuftsjumbocode/bostonathleticsassociation | 4a01607bd530e9f4973d3b345a442b4eceafa8e1 | [
"MIT"
] | 90 | 2017-02-02T01:56:30.000Z | 2017-05-07T02:58:46.000Z | back-end/api/migrations/0003_address_event.py | tuftsjumbocode/bostonathleticsassociation | 4a01607bd530e9f4973d3b345a442b4eceafa8e1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-19 08:29
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20161006_0128'),
]
operations = [... | 34.410256 | 114 | 0.551416 | 127 | 1,342 | 5.685039 | 0.527559 | 0.103878 | 0.038781 | 0.060942 | 0.218837 | 0.218837 | 0.218837 | 0.218837 | 0.218837 | 0.218837 | 0 | 0.039362 | 0.299553 | 1,342 | 38 | 115 | 35.315789 | 0.728723 | 0.050671 | 0 | 0.322581 | 1 | 0 | 0.089693 | 0.018096 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a30c6a24fddc04808da5db4f7c0d305641d9674e | 8,505 | py | Python | Pre-Processing/generate_tfrecords.py | beric7/COCO-Bridge | c3ae8e5eb72cbc2fce982215c55bac09844764d8 | [
"Apache-2.0"
] | 2 | 2020-07-06T23:25:12.000Z | 2021-09-21T23:11:55.000Z | Pre-Processing/generate_tfrecords.py | beric7/COCO-Bridge | c3ae8e5eb72cbc2fce982215c55bac09844764d8 | [
"Apache-2.0"
] | null | null | null | Pre-Processing/generate_tfrecords.py | beric7/COCO-Bridge | c3ae8e5eb72cbc2fce982215c55bac09844764d8 | [
"Apache-2.0"
] | null | null | null | # generate_tfrecords.py
# Note: substantial portions of this code, expecially the create_tf_example() function, are credit to Dat Tran
# see his website here: https://towardsdatascience.com/how-to-train-your-own-object-detector-with-tensorflows-object-detector-api-bec72ecfe1d9
# and his GitHub here: https://github.com... | 45 | 142 | 0.642563 | 982 | 8,505 | 5.422607 | 0.273931 | 0.021033 | 0.015023 | 0.011268 | 0.132958 | 0.091643 | 0.073052 | 0.059906 | 0.059906 | 0.059906 | 0 | 0.002975 | 0.170135 | 8,505 | 189 | 143 | 45 | 0.751488 | 0.273016 | 0 | 0.059406 | 1 | 0 | 0.173579 | 0.038402 | 0 | 0 | 0 | 0.005291 | 0 | 1 | 0.059406 | false | 0 | 0.069307 | 0 | 0.267327 | 0.069307 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a31137aa372b035d450bbbaac3b873065c92d845 | 2,059 | py | Python | modules/yatse/templatetags/strings.py | Hinnack/yatse | 3386630d974cfe2d832c0297defd1822e463855d | [
"MIT"
] | null | null | null | modules/yatse/templatetags/strings.py | Hinnack/yatse | 3386630d974cfe2d832c0297defd1822e463855d | [
"MIT"
] | 1 | 2021-02-22T18:06:52.000Z | 2021-02-22T18:06:52.000Z | modules/yatse/templatetags/strings.py | Hinnack/yatse | 3386630d974cfe2d832c0297defd1822e463855d | [
"MIT"
] | null | null | null | from django import template
from django.conf import settings
from django.utils.translation import ugettext as _
from django.forms.forms import pretty_name
#from yats.diff import generate_patch_html
import re
try:
import json
except ImportError:
from django.utils import simplejson as json
register = template.L... | 27.824324 | 107 | 0.599806 | 253 | 2,059 | 4.778656 | 0.379447 | 0.034739 | 0.047146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003344 | 0.273919 | 2,059 | 73 | 108 | 28.205479 | 0.805351 | 0.045168 | 0 | 0.036364 | 1 | 0 | 0.095214 | 0.016293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.145455 | 0.036364 | 0.381818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a316647d2535cb3b325343092f5d4ee583cf738e | 2,862 | py | Python | tests/test_init.py | Javex/pyramid_crud | 873ca8a84c9e5030257a327259f7f1972ba42c9d | [
"MIT"
] | 4 | 2015-03-04T11:35:15.000Z | 2017-05-05T04:00:26.000Z | tests/test_init.py | Javex/pyramid_crud | 873ca8a84c9e5030257a327259f7f1972ba42c9d | [
"MIT"
] | 16 | 2015-02-14T00:56:03.000Z | 2015-02-19T22:23:13.000Z | tests/test_init.py | Javex/pyramid_crud | 873ca8a84c9e5030257a327259f7f1972ba42c9d | [
"MIT"
] | 3 | 2015-08-25T13:20:17.000Z | 2020-05-10T19:02:18.000Z | import pyramid_crud
import pytest
from pyramid.exceptions import ConfigurationError
from pyramid.interfaces import ISessionFactory
@pytest.fixture
def static_prefix(config):
"Add a static URL prefix with the name '/testprefix'"
config.add_settings({'crud.static_url_prefix': '/testprefix'})
@pytest.fixture
d... | 30.446809 | 74 | 0.759609 | 347 | 2,862 | 5.991354 | 0.170029 | 0.084656 | 0.046176 | 0.075036 | 0.741703 | 0.67773 | 0.637326 | 0.501684 | 0.426647 | 0.376142 | 0 | 0.000403 | 0.133124 | 2,862 | 93 | 75 | 30.774194 | 0.837566 | 0.030748 | 0 | 0.522388 | 0 | 0 | 0.169811 | 0.037037 | 0 | 0 | 0 | 0 | 0.059701 | 1 | 0.223881 | false | 0 | 0.059701 | 0 | 0.283582 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a31fd12f7a47de59f2c6b4b5f49ad1fb2f1eaf44 | 244 | py | Python | app/generator-input.py | consoles/dsa4js | 83a064c3485e33bf3f0c70a10167b8a5bc08e10e | [
"MIT"
] | 2 | 2018-01-19T08:16:13.000Z | 2019-08-15T12:26:08.000Z | app/generator-input.py | consoles/dsa4js | 83a064c3485e33bf3f0c70a10167b8a5bc08e10e | [
"MIT"
] | null | null | null | app/generator-input.py | consoles/dsa4js | 83a064c3485e33bf3f0c70a10167b8a5bc08e10e | [
"MIT"
] | 1 | 2019-08-15T12:26:11.000Z | 2019-08-15T12:26:11.000Z | #!/usr/bin python
#coding:utf-8
#
# 生成10^7个乱序整数
import random
RANGE = 10000000
f = open('../test/input/bitSort.input','w')
for i in random.sample(range(RANGE),RANGE):
f.write(str(i) + '\n')
f.close()
print 'generator input file success!' | 15.25 | 43 | 0.672131 | 39 | 244 | 4.205128 | 0.769231 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056872 | 0.135246 | 244 | 16 | 44 | 15.25 | 0.720379 | 0.163934 | 0 | 0 | 0 | 0 | 0.293532 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a32a2a3e9e3b2d5447dc0047b1a00f9577f9eedc | 13,924 | py | Python | build_github_actions.py | Geequlim/ECMAScript | 8817a9f63b28d07bde65334e8663d324da06282b | [
"MIT"
] | 155 | 2019-02-04T20:24:35.000Z | 2020-07-10T00:14:37.000Z | build_github_actions.py | Geequlim/ECMAScript | 8817a9f63b28d07bde65334e8663d324da06282b | [
"MIT"
] | 25 | 2019-02-15T05:36:02.000Z | 2020-07-10T08:06:00.000Z | build_github_actions.py | Geequlim/ECMAScript | 8817a9f63b28d07bde65334e8663d324da06282b | [
"MIT"
] | 13 | 2019-04-09T09:32:55.000Z | 2020-07-07T20:56:46.000Z | #!/usr/bin/env python
"""
run this every time you upgrade the godot-base version to generate new matching github workflows
You must be in this directory, and in the modules subfolder of godot (just as if you would install this project into godot)
usage:
python build_github_actions.py --godot-version "3.4.4-stable" --g... | 40.242775 | 214 | 0.568946 | 1,621 | 13,924 | 4.689081 | 0.219618 | 0.026839 | 0.029075 | 0.021181 | 0.287462 | 0.192475 | 0.177082 | 0.143665 | 0.048941 | 0.048941 | 0 | 0.012491 | 0.292804 | 13,924 | 345 | 215 | 40.35942 | 0.759318 | 0.101408 | 0 | 0.106061 | 1 | 0.007576 | 0.34248 | 0.08305 | 0 | 0 | 0 | 0 | 0.011364 | 1 | 0.045455 | false | 0 | 0.026515 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a32cb578d2151333cae6b68de0344e2c78b2c29d | 875 | py | Python | wapps/gallery/migrations/0002_manual_album_image_deletion.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 7 | 2018-01-17T20:26:59.000Z | 2022-03-23T08:12:00.000Z | wapps/gallery/migrations/0002_manual_album_image_deletion.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 511 | 2017-10-21T17:59:50.000Z | 2022-03-28T18:49:21.000Z | wapps/gallery/migrations/0002_manual_album_image_deletion.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 2 | 2018-05-02T08:27:42.000Z | 2020-08-17T18:42:49.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-26 06:57
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
from wapps.utils import get_image_model
def drop_empty_gallery_images(apps, schema_editor):
AlbumImage = apps.get_model('galle... | 28.225806 | 121 | 0.693714 | 104 | 875 | 5.596154 | 0.586538 | 0.041237 | 0.04811 | 0.075601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02983 | 0.195429 | 875 | 30 | 122 | 29.166667 | 0.796875 | 0.083429 | 0 | 0 | 1 | 0 | 0.080201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a32cce774b4abbb45c4fa0ea764a45099fab3182 | 6,888 | py | Python | lib/examples/TOA_balance.py | CliMT/climt-legacy | adbd4fe77426c90deb8d2c046a2f3dc3b72df89e | [
"BSD-3-Clause"
] | null | null | null | lib/examples/TOA_balance.py | CliMT/climt-legacy | adbd4fe77426c90deb8d2c046a2f3dc3b72df89e | [
"BSD-3-Clause"
] | null | null | null | lib/examples/TOA_balance.py | CliMT/climt-legacy | adbd4fe77426c90deb8d2c046a2f3dc3b72df89e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import climt
from pylab import *
# Replicates the behavior of the online radiation calculator
# see maths.ucd.ie/~rca
scheme = 'ccm3'
Insolation = 337. #* .75
Imbalance = 30.
Albedo = 30. /100.
CO2 = 350.
CH4 = 1.7 + 1.e-9
N2O = 0. + 1.e-... | 30.613333 | 123 | 0.612079 | 1,143 | 6,888 | 3.612423 | 0.247594 | 0.007992 | 0.019375 | 0.027125 | 0.29208 | 0.217244 | 0.177525 | 0.168322 | 0.118188 | 0.075805 | 0 | 0.059308 | 0.206882 | 6,888 | 224 | 124 | 30.75 | 0.696504 | 0.123693 | 0 | 0.104651 | 0 | 0.017442 | 0.155417 | 0.016031 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011628 | null | null | 0.052326 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a339e1e76e5e76805cb412ba27d8dde8548e8e54 | 1,474 | py | Python | spearmint/transformations/demos/bibeta/show_warp_bibeta.py | fernandezdaniel/Spearmint | 3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84 | [
"RSA-MD"
] | 6 | 2021-06-29T11:26:49.000Z | 2022-01-20T18:12:47.000Z | spearmint/transformations/demos/bibeta/show_warp_bibeta.py | fernandezdaniel/Spearmint | 3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84 | [
"RSA-MD"
] | null | null | null | spearmint/transformations/demos/bibeta/show_warp_bibeta.py | fernandezdaniel/Spearmint | 3c9e0a4be6108c3d652606bd957f0c9ae1bfaf84 | [
"RSA-MD"
] | 9 | 2018-06-28T13:06:35.000Z | 2021-06-20T18:21:58.000Z | #Bibeta in action.
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import beta
from scipy.stats import randint
def plot_1D_function(x, y, y_name='y'):
ax = plt.subplot(111)
ax.plot(x, y, label=y_name)
plt.legend(loc='best')
plt.title(y_name)
plt.show()
def fixed_ob... | 29.48 | 94 | 0.720488 | 286 | 1,474 | 3.433566 | 0.20979 | 0.132383 | 0.099796 | 0.11609 | 0.433809 | 0.319756 | 0.14053 | 0.14053 | 0 | 0 | 0 | 0.074074 | 0.139077 | 1,474 | 49 | 95 | 30.081633 | 0.699764 | 0.011533 | 0 | 0 | 0 | 0 | 0.059753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a33e27da81bb7bce9e69f05f780fb86f4b322234 | 501 | py | Python | tests/test_trinomial.py | caltechlibrary/trinomial | 0313e16400aca50f54bfe79080a10a1977702e9a | [
"BSD-3-Clause"
] | 1 | 2021-05-22T17:29:17.000Z | 2021-05-22T17:29:17.000Z | tests/test_trinomial.py | caltechlibrary/trinomial | 0313e16400aca50f54bfe79080a10a1977702e9a | [
"BSD-3-Clause"
] | null | null | null | tests/test_trinomial.py | caltechlibrary/trinomial | 0313e16400aca50f54bfe79080a10a1977702e9a | [
"BSD-3-Clause"
] | null | null | null | import os
import pytest
import sys
from time import time
try:
thisdir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(thisdir, '..'))
except:
sys.path.append('..')
import trinomial
def test_basic():
trinomial.set_unique_key('x')
assert trinomial.anon('foo@bar.com') == ... | 22.772727 | 56 | 0.686627 | 69 | 501 | 4.84058 | 0.434783 | 0.053892 | 0.170659 | 0.197605 | 0.473054 | 0.473054 | 0.473054 | 0.359281 | 0.359281 | 0.359281 | 0 | 0.049412 | 0.151697 | 501 | 21 | 57 | 23.857143 | 0.736471 | 0 | 0 | 0.294118 | 0 | 0 | 0.137725 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a344e089a4efbd0afbd6c50e23cff7269d7dd9c8 | 1,931 | py | Python | gum/managers.py | marcosgabarda/django-gum | 796a496e95391aab9e462bde6d8f775534d5f6c6 | [
"MIT"
] | 16 | 2015-05-04T18:47:33.000Z | 2021-02-03T17:10:40.000Z | gum/managers.py | marcosgabarda/django-gum | 796a496e95391aab9e462bde6d8f775534d5f6c6 | [
"MIT"
] | 4 | 2015-09-08T14:48:31.000Z | 2016-09-09T09:49:41.000Z | gum/managers.py | marcosgabarda/django-gum | 796a496e95391aab9e462bde6d8f775534d5f6c6 | [
"MIT"
] | 2 | 2015-05-04T18:39:23.000Z | 2016-04-18T14:35:47.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from gum.utils import elasticsearch_connection
class ElasticsearchManager(object):
"""Like a `ModelManager` gives to the user methods to apply queries
to Elasticsearch from a specific model.
"""
def __init__(self, model=None, mapping_ty... | 32.183333 | 86 | 0.658726 | 216 | 1,931 | 5.740741 | 0.361111 | 0.079839 | 0.072581 | 0.033871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000686 | 0.245469 | 1,931 | 59 | 87 | 32.728814 | 0.850377 | 0.32522 | 0 | 0.08 | 0 | 0 | 0.033276 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.2 | false | 0 | 0.08 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a34ab44ceb198f7ffec0e7a91a4d37823eb68330 | 4,734 | py | Python | sobit_bringup/src/joint_state_listner.py | Choi-Laboratory/sobit_blue | 81a228390e1726653d54f33afb3fbb1c1fdb5b24 | [
"Apache-2.0"
] | null | null | null | sobit_bringup/src/joint_state_listner.py | Choi-Laboratory/sobit_blue | 81a228390e1726653d54f33afb3fbb1c1fdb5b24 | [
"Apache-2.0"
] | null | null | null | sobit_bringup/src/joint_state_listner.py | Choi-Laboratory/sobit_blue | 81a228390e1726653d54f33afb3fbb1c1fdb5b24 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import rospy
import math
from sensor_msgs.msg import *
from geometry_msgs.msg import *
from sobit_bringup.msg import *
#---グローバル変数-----------------------------
motion = [0]*21
TIME = 0.1
serial_joint = Serial_motion()
state_jointstate = JointState()
state_jointstate.name =["... | 37.872 | 322 | 0.603929 | 668 | 4,734 | 4.017964 | 0.185629 | 0.124069 | 0.073025 | 0.088674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101073 | 0.15357 | 4,734 | 124 | 323 | 38.177419 | 0.568505 | 0.19793 | 0 | 0 | 0 | 0 | 0.133739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067568 | null | null | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a354ea47baa38abfde41024d2fd179d6d96966cf | 1,207 | py | Python | testbed_frontend/api/emulation/emulation_handler.py | Ncu-software-research-center/IIOT-testbed | b4c8f91d1fd1e596d2262152ce99afeb22976f7a | [
"Apache-2.0"
] | 1 | 2021-05-25T09:33:28.000Z | 2021-05-25T09:33:28.000Z | testbed_frontend/api/emulation/emulation_handler.py | Ncu-software-research-center/IIOT-testbed | b4c8f91d1fd1e596d2262152ce99afeb22976f7a | [
"Apache-2.0"
] | 6 | 2020-06-06T01:59:09.000Z | 2021-06-10T20:17:56.000Z | testbed_frontend/api/emulation/emulation_handler.py | Ncu-software-research-center/IIOT-testbed | b4c8f91d1fd1e596d2262152ce99afeb22976f7a | [
"Apache-2.0"
] | null | null | null | '''
Vortex OpenSplice
This software and documentation are Copyright 2006 to TO_YEAR ADLINK
Technology Limited, its affiliated companies and licensors. All rights
reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lice... | 32.621622 | 92 | 0.729909 | 159 | 1,207 | 5.484277 | 0.660377 | 0.057339 | 0.034404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009326 | 0.200497 | 1,207 | 36 | 93 | 33.527778 | 0.894301 | 0.540182 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.1875 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a3644bcfb5d4ed17d821b83cba8aacde7ddfe23f | 1,411 | py | Python | setup.py | hodgestar/tesseract-control-software | 41f47a4b901a0069f1745c90abe28f0778704b0e | [
"MIT"
] | 2 | 2019-07-13T14:15:30.000Z | 2020-01-04T10:44:47.000Z | setup.py | hodgestar/tesseract-control-software | 41f47a4b901a0069f1745c90abe28f0778704b0e | [
"MIT"
] | null | null | null | setup.py | hodgestar/tesseract-control-software | 41f47a4b901a0069f1745c90abe28f0778704b0e | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="tessled",
version="0.0.1",
url='http://github.com/hodgestar/tesseract-control-software',
license='MIT',
description="Tesseract control software and simulator.",
long_description=open('README.rst', 'r').read(),
author='Simon Cross',
... | 30.673913 | 65 | 0.593196 | 131 | 1,411 | 6.29771 | 0.671756 | 0.069091 | 0.090909 | 0.06303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006673 | 0.256556 | 1,411 | 45 | 66 | 31.355556 | 0.77979 | 0.00567 | 0 | 0.090909 | 0 | 0 | 0.506781 | 0.116345 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.022727 | 0 | 0.022727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a36a758d49817dccb80abed74b7ead8eedf80c06 | 456 | py | Python | python_loop/groom_lt1.py | hesthers/self-python-practice- | 79e7a86385e599ca430af761f533f6eaf90aa448 | [
"MIT"
] | 1 | 2021-09-07T00:26:56.000Z | 2021-09-07T00:26:56.000Z | python_loop/groom_lt1.py | hesthers/self-python-practice | 79e7a86385e599ca430af761f533f6eaf90aa448 | [
"MIT"
] | null | null | null | python_loop/groom_lt1.py | hesthers/self-python-practice | 79e7a86385e599ca430af761f533f6eaf90aa448 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# UTF-8 encoding when using korean
import numpy as np
import math
input_l = []
while True:
user_input = int(input(''))
input_l.append(user_input)
if len(input_l[1:]) == input_l[0]:
#user_input = user_input.split('\n')
cnt_input = []
for i in range(1, len(input_l)):
if np.sqrt(input... | 17.538462 | 54 | 0.640351 | 79 | 456 | 3.506329 | 0.468354 | 0.173285 | 0.075812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.190789 | 456 | 25 | 55 | 18.24 | 0.734417 | 0.195175 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.117647 | 0 | 0.117647 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a36c8b3504ed6254b18b5d9848ed7acfd15782c9 | 454 | py | Python | setup.py | hasangchun/ContextNet | da2515bb506a304186c9f579b251be8f086c541a | [
"Apache-2.0"
] | 8 | 2021-06-20T17:59:22.000Z | 2021-09-15T05:28:45.000Z | setup.py | hasangchun/ContextNet | da2515bb506a304186c9f579b251be8f086c541a | [
"Apache-2.0"
] | 2 | 2021-12-02T20:33:08.000Z | 2021-12-28T14:23:17.000Z | setup.py | hasangchun/ContextNet | da2515bb506a304186c9f579b251be8f086c541a | [
"Apache-2.0"
] | 3 | 2022-02-02T10:36:01.000Z | 2022-03-03T09:04:37.000Z | from setuptools import setup, find_packages
setup(
name='ContextNet',
version='latest',
packages=find_packages(),
description='ContextNet: Improving Convolutional Neural Networks for Automatic Speech Recognition with Global Context',
author='Sangchun Ha',
author_email='seomk9896@naver.com',
... | 28.375 | 123 | 0.698238 | 51 | 454 | 6.117647 | 0.823529 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.174009 | 454 | 16 | 124 | 28.375 | 0.808 | 0 | 0 | 0 | 0 | 0 | 0.454945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3725144f31da3c2b8b26f9fa9ea6b635892f533 | 76,062 | py | Python | socfakerservice/api/api.py | MSAdministrator/soc-faker-service | f3c401f8d6931d1c421f594dc8f1137f2ad984aa | [
"MIT"
] | 1 | 2021-04-11T05:53:38.000Z | 2021-04-11T05:53:38.000Z | socfakerservice/api/api.py | MSAdministrator/soc-faker-service | f3c401f8d6931d1c421f594dc8f1137f2ad984aa | [
"MIT"
] | null | null | null | socfakerservice/api/api.py | MSAdministrator/soc-faker-service | f3c401f8d6931d1c421f594dc8f1137f2ad984aa | [
"MIT"
] | 1 | 2021-04-11T05:53:42.000Z | 2021-04-11T05:53:42.000Z | from flask import Blueprint, render_template, request, abort, jsonify, Response
from socfakerservice import status, HTMLRenderer, set_renderers
from socfakerservice.model import TokenModel
from socfaker import SocFaker
socfaker = SocFaker()
api_bp = Blueprint(
'api',
__name__
)
def validate_request(request)... | 28.349609 | 162 | 0.639623 | 8,715 | 76,062 | 5.46288 | 0.054045 | 0.022265 | 0.097965 | 0.106366 | 0.707408 | 0.534374 | 0.451868 | 0.397236 | 0.297717 | 0.232435 | 0 | 0.003886 | 0.248889 | 76,062 | 2,682 | 163 | 28.360179 | 0.829445 | 0.376022 | 0 | 0.244186 | 0 | 0.001163 | 0.139906 | 0.063001 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246512 | false | 0 | 0.004651 | 0.001163 | 0.497674 | 0.002326 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3775d28ecda7be7aab9864818d4a6bf38e3387c | 6,032 | py | Python | garcon/activity.py | mortaliorchard/garcon | 281221c63da0b2ea3ea51174a3d5878d1de8f487 | [
"MIT"
] | null | null | null | garcon/activity.py | mortaliorchard/garcon | 281221c63da0b2ea3ea51174a3d5878d1de8f487 | [
"MIT"
] | null | null | null | garcon/activity.py | mortaliorchard/garcon | 281221c63da0b2ea3ea51174a3d5878d1de8f487 | [
"MIT"
] | null | null | null | """
Activity
========
Activities are self generated classes to which you can pass an identifier,
and a list of tasks to perform. The activities are in between the decider and
the task.
For ease, two types of task runners are available: SyncTasks and AsyncTasks. If
you need something more specific, you should either c... | 28.587678 | 79 | 0.629145 | 734 | 6,032 | 5.115804 | 0.271117 | 0.023968 | 0.011984 | 0.018109 | 0.091079 | 0.091079 | 0.031425 | 0.031425 | 0.031425 | 0.031425 | 0 | 0.001404 | 0.291777 | 6,032 | 210 | 80 | 28.72381 | 0.877575 | 0.425895 | 0 | 0.134146 | 1 | 0 | 0.029185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134146 | false | 0 | 0.036585 | 0 | 0.280488 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a37e426d249e4fa306b483523b559a9a0ae9cff3 | 2,563 | py | Python | map_reduce/core/data_source.py | HuynhThanhQuan/graph-network | e429a641e7baecad9765700cac580cfbdedbe1bd | [
"MIT"
] | null | null | null | map_reduce/core/data_source.py | HuynhThanhQuan/graph-network | e429a641e7baecad9765700cac580cfbdedbe1bd | [
"MIT"
] | 11 | 2020-11-13T18:29:37.000Z | 2022-02-10T00:25:15.000Z | map_reduce/core/data_source.py | HuynhThanhQuan/graph-network | e429a641e7baecad9765700cac580cfbdedbe1bd | [
"MIT"
] | null | null | null | import os
from time import time
import pandas as pd
from sqlalchemy import create_engine
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
class AbstractDataSource:
def __int__(self):
pass
class AbstractDataSourcePointer(AbstractDataSource):
def __int__(self):
... | 35.109589 | 106 | 0.587593 | 264 | 2,563 | 5.469697 | 0.310606 | 0.034626 | 0.034626 | 0.039474 | 0.020776 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007848 | 0.303941 | 2,563 | 72 | 107 | 35.597222 | 0.80157 | 0 | 0 | 0.122807 | 0 | 0 | 0.125634 | 0.019508 | 0 | 0 | 0 | 0 | 0.017544 | 1 | 0.175439 | false | 0.070175 | 0.087719 | 0.017544 | 0.385965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a37f76a50ac5297fbe0ae2e72f8f20c6b13bb7e0 | 2,761 | py | Python | 2018/16/main.py | zelane/advent-of-code-2016 | 72ebda3ec4eca4d1921dd8d94f2f84bbd0566fc5 | [
"MIT"
] | null | null | null | 2018/16/main.py | zelane/advent-of-code-2016 | 72ebda3ec4eca4d1921dd8d94f2f84bbd0566fc5 | [
"MIT"
] | null | null | null | 2018/16/main.py | zelane/advent-of-code-2016 | 72ebda3ec4eca4d1921dd8d94f2f84bbd0566fc5 | [
"MIT"
] | null | null | null | from copy import copy
import re
class Cpu:
def __init__(self, mem):
self.mem = mem
def addr(self, a, b, c):
self.mem[c] = self.mem[a] + self.mem[b]
def addi(self, a, b, c):
self.mem[c] = self.mem[a] + b
def mulr(self, a, b, c):
self.mem[c] = self.mem[a] * self.mem[b]... | 23.801724 | 75 | 0.522637 | 457 | 2,761 | 3.09628 | 0.19256 | 0.192933 | 0.135689 | 0.079152 | 0.40636 | 0.382332 | 0.349823 | 0.326502 | 0.326502 | 0.326502 | 0 | 0.017662 | 0.302789 | 2,761 | 115 | 76 | 24.008696 | 0.717403 | 0 | 0 | 0.071429 | 0 | 0 | 0.028613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.02381 | 0 | 0.261905 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a387303aea958c01ac561cbc1d4a035d79ef4112 | 486 | py | Python | app/user_api/user_api.py | Basselbi/hikma-health-backend | 0f891821a04aa103fff62097443bd585bc342dbc | [
"MIT"
] | null | null | null | app/user_api/user_api.py | Basselbi/hikma-health-backend | 0f891821a04aa103fff62097443bd585bc342dbc | [
"MIT"
] | null | null | null | app/user_api/user_api.py | Basselbi/hikma-health-backend | 0f891821a04aa103fff62097443bd585bc342dbc | [
"MIT"
] | null | null | null | from flask import Blueprint, request, jsonify
from web_util import assert_data_has_keys
from users.user import User
user_api = Blueprint('users_api', __name__, url_prefix='/api/user')
@user_api.route('/reset_password', methods=['POST'])
def sync():
params = assert_data_has_keys(request, {'email', 'password', 'ne... | 34.714286 | 81 | 0.73251 | 65 | 486 | 5.184615 | 0.492308 | 0.071217 | 0.077151 | 0.10089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115226 | 486 | 13 | 82 | 37.384615 | 0.783721 | 0 | 0 | 0 | 0 | 0 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0.4 | 0.3 | 0 | 0.5 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a39ce7f687dbc4302e562228dd957da1ccaaa084 | 315 | py | Python | catalog/bindings/wfs/get_capabilities_2.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/wfs/get_capabilities_2.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/wfs/get_capabilities_2.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.wfs.get_capabilities_type_2 import GetCapabilitiesType2
__NAMESPACE__ = "http://www.opengis.net/wfs/2.0"
@dataclass
class GetCapabilities2(GetCapabilitiesType2):
class Meta:
name = "GetCapabilities"
namespace = "http://www.opengis.net/wfs/2.0"
| 26.25 | 69 | 0.755556 | 37 | 315 | 6.243243 | 0.594595 | 0.112554 | 0.138528 | 0.199134 | 0.268398 | 0.268398 | 0.268398 | 0.268398 | 0 | 0 | 0 | 0.02963 | 0.142857 | 315 | 11 | 70 | 28.636364 | 0.825926 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
a39e36cdbd6fb2489b1dabdf74c900884f32c597 | 718 | py | Python | setup.py | Gearheart-team/django-accounts | e0c2f12d350846fa31143b6dbdb0cf6fa713fb11 | [
"MIT"
] | null | null | null | setup.py | Gearheart-team/django-accounts | e0c2f12d350846fa31143b6dbdb0cf6fa713fb11 | [
"MIT"
] | null | null | null | setup.py | Gearheart-team/django-accounts | e0c2f12d350846fa31143b6dbdb0cf6fa713fb11 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='izeni-django-accounts',
version='1.1.2a',
namespace_packages=['izeni', 'izeni.django'],
packages=find_packages(),
include_package_data=True,
author='Izeni, Inc.',
author_email='django-accounts@izeni.com',
description=open('README.... | 29.916667 | 107 | 0.637883 | 93 | 718 | 4.83871 | 0.612903 | 0.088889 | 0.106667 | 0.075556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035654 | 0.179666 | 718 | 23 | 108 | 31.217391 | 0.728353 | 0.04039 | 0 | 0 | 0 | 0.047619 | 0.438953 | 0.132267 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3a01913f52507b8c2e9c60bffcef520ae43b4db | 1,036 | py | Python | pypeit/core/wavecal/spectrographs/templ_soar_goodman.py | rcooke-ast/PYPIT | 0cb9c4cb422736b855065a35aefc2bdba6d51dd0 | [
"BSD-3-Clause"
] | null | null | null | pypeit/core/wavecal/spectrographs/templ_soar_goodman.py | rcooke-ast/PYPIT | 0cb9c4cb422736b855065a35aefc2bdba6d51dd0 | [
"BSD-3-Clause"
] | null | null | null | pypeit/core/wavecal/spectrographs/templ_soar_goodman.py | rcooke-ast/PYPIT | 0cb9c4cb422736b855065a35aefc2bdba6d51dd0 | [
"BSD-3-Clause"
] | null | null | null | """ Generate the wavelength templates for SOAR Goodman"""
import os
from pypeit.core.wavecal import templates
from IPython import embed
def soar_goodman_400(overwrite=False):
binspec = 2
outroot = 'soar_goodman_400_SYZY.fits'
# PypeIt fits
wpath = os.path.join(templates.template_path, 'SOAR_Goodman',... | 31.393939 | 85 | 0.638031 | 128 | 1,036 | 4.882813 | 0.507813 | 0.088 | 0.0896 | 0.0736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044561 | 0.263514 | 1,036 | 33 | 86 | 31.393939 | 0.774574 | 0.078185 | 0 | 0 | 1 | 0 | 0.120507 | 0.090909 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3a50e8b6b7936872866a8a4572b115958922c08 | 713 | py | Python | console/middleware.py | laincloud/Console | 9d4fb68ad5378279697803ca45a4eda58d72d9a3 | [
"MIT"
] | 11 | 2016-05-04T11:55:01.000Z | 2018-09-29T01:00:05.000Z | console/middleware.py | laincloud/Console | 9d4fb68ad5378279697803ca45a4eda58d72d9a3 | [
"MIT"
] | 21 | 2016-05-25T06:54:44.000Z | 2019-06-06T00:38:38.000Z | console/middleware.py | laincloud/Console | 9d4fb68ad5378279697803ca45a4eda58d72d9a3 | [
"MIT"
] | 16 | 2016-05-13T08:20:43.000Z | 2021-12-31T09:23:14.000Z | # -*- coding: utf-8
from django.http import JsonResponse, HttpResponse
# from commons.settings import ARCHON_HOST
class CORSMiddleware:
def process_request(self, request):
if request.method == 'OPTIONS':
r = HttpResponse('', content_type='text/plain', status=200)
r['Access-Contro... | 32.409091 | 100 | 0.605891 | 78 | 713 | 5.487179 | 0.615385 | 0.121495 | 0.098131 | 0.088785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016605 | 0.239832 | 713 | 21 | 101 | 33.952381 | 0.773063 | 0.081346 | 0 | 0 | 0 | 0 | 0.263804 | 0.161043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6e596f23ab56bd2dd8dd6ce01540892f3e46cdad | 1,076 | py | Python | tests/test_migrate.py | tvcsantos/Flexget | e08ce2957dd4f0668911d1e56347369939e4d0a5 | [
"MIT"
] | 1 | 2017-08-25T07:17:04.000Z | 2017-08-25T07:17:04.000Z | tests/test_migrate.py | tvcsantos/Flexget | e08ce2957dd4f0668911d1e56347369939e4d0a5 | [
"MIT"
] | 1 | 2018-06-09T18:03:35.000Z | 2018-06-09T18:03:35.000Z | tests/test_migrate.py | tvcsantos/Flexget | e08ce2957dd4f0668911d1e56347369939e4d0a5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, division, absolute_import
import os
from tests import FlexGetBase
class TestMigrate(FlexGetBase):
__yaml__ = """
tasks:
test:
mock:
- {title: 'foobar'}
accept_all: yes
"""
def setup(self):
import log... | 31.647059 | 132 | 0.636617 | 127 | 1,076 | 5.220472 | 0.629921 | 0.066365 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007528 | 0.259294 | 1,076 | 33 | 133 | 32.606061 | 0.824341 | 0.305762 | 0 | 0 | 0 | 0 | 0.237517 | 0 | 0 | 0 | 0 | 0.030303 | 0.045455 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e5ab1e623f341546ab1d75882702a30b02894e2 | 3,704 | py | Python | scenes/capture/motor_pi/stepper/motorclient.py | tum-pbs/reconstructScalarFlows | 948efeaa99b90c3879f9fb544da9a596b0cb5852 | [
"Apache-2.0"
] | null | null | null | scenes/capture/motor_pi/stepper/motorclient.py | tum-pbs/reconstructScalarFlows | 948efeaa99b90c3879f9fb544da9a596b0cb5852 | [
"Apache-2.0"
] | 1 | 2020-02-20T12:37:38.000Z | 2020-02-20T17:04:53.000Z | scenes/capture/motor_pi/stepper/motorclient.py | tum-pbs/reconstructScalarFlows | 948efeaa99b90c3879f9fb544da9a596b0cb5852 | [
"Apache-2.0"
] | 3 | 2020-01-23T04:32:46.000Z | 2020-02-20T05:48:36.000Z | #!/usr/bin/env python2
import sys
import socket
import datetime
import math
import time
from time import sleep
# The c binary for controlling the stepper motor is loaded via ctypes
from ctypes import *
stepper_lib = cdll.LoadLibrary('./stepper.so')
# buffer containing the incomplete commands
recvBuffer = str()
# ... | 23.896774 | 78 | 0.560475 | 455 | 3,704 | 4.503297 | 0.382418 | 0.019522 | 0.01757 | 0.025378 | 0.054661 | 0.02733 | 0.02733 | 0 | 0 | 0 | 0 | 0.015226 | 0.343952 | 3,704 | 154 | 79 | 24.051948 | 0.827984 | 0.269708 | 0 | 0.26506 | 0 | 0 | 0.132336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084337 | null | null | 0.108434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e6b8e97a66c01a64f2cca3a534d23843f440130 | 560 | py | Python | setup.py | garethrylance/python-sdk-example | 3f21c3a6c28f46050688ce1be66e33433a801e7c | [
"CC0-1.0"
] | null | null | null | setup.py | garethrylance/python-sdk-example | 3f21c3a6c28f46050688ce1be66e33433a801e7c | [
"CC0-1.0"
] | null | null | null | setup.py | garethrylance/python-sdk-example | 3f21c3a6c28f46050688ce1be66e33433a801e7c | [
"CC0-1.0"
] | null | null | null | from setuptools import setup
setup(
name="python-sdk-example",
version="0.1",
description="The dispatch model loader - lambda part.",
url="https://github.com/garethrylance/python-sdk-example",
author="Gareth Rylance",
author_email="gareth@rylance.me.uk",
packages=["example_sdk"],
instal... | 31.111111 | 82 | 0.671429 | 63 | 560 | 5.825397 | 0.777778 | 0.049046 | 0.087193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006303 | 0.15 | 560 | 17 | 83 | 32.941176 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.423214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e702ceebd6384acfed75804122d1e9b9864c6c7 | 2,776 | py | Python | add.py | plasticuproject/cert-dbms | 0a8f1d8eb69610fa1c0403c08d3d3ac057e3d698 | [
"MIT"
] | null | null | null | add.py | plasticuproject/cert-dbms | 0a8f1d8eb69610fa1c0403c08d3d3ac057e3d698 | [
"MIT"
] | null | null | null | add.py | plasticuproject/cert-dbms | 0a8f1d8eb69610fa1c0403c08d3d3ac057e3d698 | [
"MIT"
] | 1 | 2020-10-27T12:06:36.000Z | 2020-10-27T12:06:36.000Z | #!/usr/bin/python3
"""add.py"""
from sys import argv
import datetime
import sqlite3
import pathlib
PATH = pathlib.Path.cwd()
HELP_TEXT = '''
Usage: add.py [-h] directory
-h, --help bring up this help message
directory directory with certs to add
'''
def add_certs(cert_dir: str) -> None:
"""... | 30.844444 | 193 | 0.583934 | 372 | 2,776 | 4.188172 | 0.325269 | 0.035944 | 0.028883 | 0.019255 | 0.047497 | 0.047497 | 0.047497 | 0.047497 | 0.047497 | 0 | 0 | 0.008776 | 0.302233 | 2,776 | 89 | 194 | 31.191011 | 0.79556 | 0.161023 | 0 | 0.193548 | 0 | 0.032258 | 0.268948 | 0.009528 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.016129 | false | 0 | 0.064516 | 0 | 0.080645 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e7bea4cb2b85ac4aa392fccc69253e8cb2356b9 | 547 | py | Python | text-boxes/test-textbox01.py | rajorshi-mukherjee/gui-python | 356eef26975e63de48b441d336d75a1f9c232cf3 | [
"MIT"
] | null | null | null | text-boxes/test-textbox01.py | rajorshi-mukherjee/gui-python | 356eef26975e63de48b441d336d75a1f9c232cf3 | [
"MIT"
] | 3 | 2022-01-02T18:04:24.000Z | 2022-01-12T16:35:31.000Z | text-boxes/test-textbox01.py | rajorshi-mukherjee/gui-python | 356eef26975e63de48b441d336d75a1f9c232cf3 | [
"MIT"
] | null | null | null | # !/usr/bin/python3
from tkinter import *
top = Tk()
top.geometry("400x250")
name = Label(top, text = "Name").place(x = 30,y = 50)
email = Label(top, text = "Email").place(x = 30, y = 90)
password = Label(top, text = "Password").place(x = 30, y = 130)
sbmitbtn = Button(top, text = "Submit",act... | 30.388889 | 117 | 0.575868 | 82 | 547 | 3.841463 | 0.463415 | 0.133333 | 0.101587 | 0.114286 | 0.107937 | 0.107937 | 0 | 0 | 0 | 0 | 0 | 0.096698 | 0.224863 | 547 | 18 | 118 | 30.388889 | 0.646226 | 0.031079 | 0 | 0 | 0 | 0 | 0.074004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6e7e694936dd85ec6e3ce90826c00f74519f89dc | 5,590 | py | Python | predict_image.py | sempwn/kaggle-cats-v-dogs | 0b0e50ca5208248d18b31bfdd456cdb6401060d7 | [
"MIT"
] | null | null | null | predict_image.py | sempwn/kaggle-cats-v-dogs | 0b0e50ca5208248d18b31bfdd456cdb6401060d7 | [
"MIT"
] | null | null | null | predict_image.py | sempwn/kaggle-cats-v-dogs | 0b0e50ca5208248d18b31bfdd456cdb6401060d7 | [
"MIT"
] | null | null | null | '''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- crea... | 38.287671 | 111 | 0.719499 | 856 | 5,590 | 4.620327 | 0.292056 | 0.072819 | 0.038685 | 0.072314 | 0.323641 | 0.29507 | 0.29507 | 0.29507 | 0.29507 | 0.280405 | 0 | 0.062159 | 0.148122 | 5,590 | 145 | 112 | 38.551724 | 0.768375 | 0.17424 | 0 | 0.217949 | 0 | 0 | 0.136494 | 0.017816 | 0 | 0 | 0 | 0.006897 | 0.012821 | 0 | null | null | 0 | 0.141026 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e8c6eb072fed5f8eeeb59211773c40061897cf1 | 383 | py | Python | backend/urls.py | starmarek/organize-me-2 | bd9b73d3e6d9a4ebc4cbb8a20c97729bdc6b1377 | [
"MIT"
] | 1 | 2021-03-09T20:49:51.000Z | 2021-03-09T20:49:51.000Z | backend/urls.py | starmarek/organize-me-2 | bd9b73d3e6d9a4ebc4cbb8a20c97729bdc6b1377 | [
"MIT"
] | 7 | 2021-05-08T11:05:15.000Z | 2021-05-08T11:12:27.000Z | backend/urls.py | starmarek/organize-me-2 | bd9b73d3e6d9a4ebc4cbb8a20c97729bdc6b1377 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import include, path
from rest_framework import routers
from .shifts.views import ShiftView
from .workers.views import WorkerView
router = routers.DefaultRouter()
router.register("workers", WorkerView)
router.register("shifts", ShiftView)
urlpatterns = [
path("ad... | 23.9375 | 38 | 0.762402 | 47 | 383 | 6.191489 | 0.446809 | 0.068729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122715 | 383 | 15 | 39 | 25.533333 | 0.866071 | 0 | 0 | 0 | 0 | 0 | 0.049608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6e922f24956d34276912f3a429414da7e22eb9ef | 14,915 | py | Python | Prioritize/get_HPO_similarity_score.py | mbosio85/ediva | c0a1aa4dd8951fa659483164c3706fb9374beb95 | [
"MIT"
] | 1 | 2021-02-23T07:42:42.000Z | 2021-02-23T07:42:42.000Z | Prioritize/get_HPO_similarity_score.py | mbosio85/ediva | c0a1aa4dd8951fa659483164c3706fb9374beb95 | [
"MIT"
] | null | null | null | Prioritize/get_HPO_similarity_score.py | mbosio85/ediva | c0a1aa4dd8951fa659483164c3706fb9374beb95 | [
"MIT"
] | 1 | 2019-09-26T01:21:06.000Z | 2019-09-26T01:21:06.000Z | ## how we measure the similarity between two lists w/ IC per each node
## we have a DAG strucutre
## goal is for each Gene !! output a 'semantic distance'
# based on https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2756558/ [but different]
# with this two equal nodes will have distance '0'
# maximum distance is -2log(1/... | 32.852423 | 158 | 0.578947 | 2,174 | 14,915 | 3.859246 | 0.168813 | 0.0236 | 0.012515 | 0.006436 | 0.195709 | 0.137545 | 0.109535 | 0.10143 | 0.096901 | 0.073063 | 0 | 0.012192 | 0.301576 | 14,915 | 453 | 159 | 32.924945 | 0.793223 | 0.309554 | 0 | 0.219124 | 0 | 0 | 0.044644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003984 | 0.027888 | null | null | 0.047809 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e94f020370af25596b5a73fe263fae2cf996278 | 668 | py | Python | deploy/virenv/lib/python2.7/site-packages/haystack/outputters/__init__.py | wangvictor2012/liuwei | 0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1 | [
"BSD-3-Clause"
] | null | null | null | deploy/virenv/lib/python2.7/site-packages/haystack/outputters/__init__.py | wangvictor2012/liuwei | 0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1 | [
"BSD-3-Clause"
] | null | null | null | deploy/virenv/lib/python2.7/site-packages/haystack/outputters/__init__.py | wangvictor2012/liuwei | 0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
:mod:`haystack.outputs` -- classes that create an output
==============================================================================
"""
from haystack import utils
class Outputter(object):
""" Outputter interface """
def __init__(self, memory_handler):
self._memory_h... | 27.833333 | 85 | 0.591317 | 69 | 668 | 5.391304 | 0.565217 | 0.174731 | 0.182796 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.178144 | 668 | 23 | 86 | 29.043478 | 0.672131 | 0.267964 | 0 | 0 | 0 | 0 | 0.040084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e99d90082f82cff092fcb68582087a7ab692e17 | 2,264 | py | Python | examples.py | ThyagoFRTS/power-eletric | dd26cd5ffb2aca0741d8983e57351488badc64da | [
"MIT"
] | 1 | 2021-11-07T02:31:58.000Z | 2021-11-07T02:31:58.000Z | examples.py | ThyagoFRTS/power-eletric | dd26cd5ffb2aca0741d8983e57351488badc64da | [
"MIT"
] | null | null | null | examples.py | ThyagoFRTS/power-eletric | dd26cd5ffb2aca0741d8983e57351488badc64da | [
"MIT"
] | null | null | null | from power_sizing import calculate_power_luminance
from power_sizing import calculate_number_and_power_of_tugs
from conductor_sizing import conduction_capacity
from conductor_sizing import minimum_section
from conductor_sizing import voltage_drop
from conductor_sizing import harmonic_rate
from neutral_sizing import get... | 48.170213 | 153 | 0.774293 | 331 | 2,264 | 5.096677 | 0.329305 | 0.065205 | 0.041494 | 0.059277 | 0.263782 | 0.233551 | 0.158862 | 0 | 0 | 0 | 0 | 0.045294 | 0.12235 | 2,264 | 47 | 154 | 48.170213 | 0.803724 | 0.469523 | 0 | 0 | 0 | 0 | 0.026205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6e9df45528e4294de8ca5838baa62293adbb002d | 784 | py | Python | myapp/migrations/0008_doctordata_specialist.py | sarodemayur55/Hospital_Management_Website | a90e64d2b02482d7ad69a807365bdc0abfca4212 | [
"Apache-2.0"
] | 1 | 2022-02-08T16:37:43.000Z | 2022-02-08T16:37:43.000Z | myapp/migrations/0008_doctordata_specialist.py | sarodemayur55/Hospital_Management_Website | a90e64d2b02482d7ad69a807365bdc0abfca4212 | [
"Apache-2.0"
] | null | null | null | myapp/migrations/0008_doctordata_specialist.py | sarodemayur55/Hospital_Management_Website | a90e64d2b02482d7ad69a807365bdc0abfca4212 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.6 on 2021-05-15 11:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0007_auto_20210317_1817'),
]
operations = [
migrations.CreateModel(
name='doctordata',
fields=[
... | 27.034483 | 83 | 0.53699 | 70 | 784 | 5.914286 | 0.642857 | 0.130435 | 0.120773 | 0.135266 | 0.347826 | 0.222222 | 0.222222 | 0 | 0 | 0 | 0 | 0.066794 | 0.331633 | 784 | 28 | 84 | 28 | 0.723282 | 0.057398 | 0 | 0.363636 | 1 | 0 | 0.09498 | 0.031208 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ea734988dbfada1408954f978d47bd46b1b2de0 | 1,994 | py | Python | Array.diff.py | ErosMLima/last-classes-js-py-node-php | 14775adaa3372c03c1e73d0699516f759e162dc5 | [
"MIT"
] | 2 | 2020-08-01T03:31:28.000Z | 2021-02-02T15:17:31.000Z | Array.diff.py | ErosMLima/last-classes-js-py-node-php | 14775adaa3372c03c1e73d0699516f759e162dc5 | [
"MIT"
] | null | null | null | Array.diff.py | ErosMLima/last-classes-js-py-node-php | 14775adaa3372c03c1e73d0699516f759e162dc5 | [
"MIT"
] | null | null | null | #Array.diff.py OKS
function array_diff(a, b) {
return a.filter(function(x) { return b,index(x) == -1; });
}
#solution 2 for array,diff
function array_diff(a, b) {
return a.filter(e => !b.includes(e));
}
function array_diff(a, b) {
return a.filter(e => !b.includes(e));
}
#Bouncing Balls ok ... | 18.127273 | 76 | 0.587763 | 269 | 1,994 | 4.342007 | 0.334572 | 0.027397 | 0.03339 | 0.034247 | 0.1875 | 0.143836 | 0.116438 | 0.116438 | 0.089041 | 0.089041 | 0 | 0.015232 | 0.242728 | 1,994 | 110 | 77 | 18.127273 | 0.758278 | 0 | 0 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ea869001bb831aa67afe2e798624becb8124601 | 4,535 | py | Python | scripts/bcbb_helpers/process_run_info.py | parlundin/scilifelab | e5f4be45e2e9ff6c0756be46ad34dfb7d20a4b4a | [
"MIT"
] | 1 | 2016-03-21T14:04:09.000Z | 2016-03-21T14:04:09.000Z | scripts/bcbb_helpers/process_run_info.py | parlundin/scilifelab | e5f4be45e2e9ff6c0756be46ad34dfb7d20a4b4a | [
"MIT"
] | 35 | 2015-01-22T08:25:02.000Z | 2020-02-17T12:09:12.000Z | scripts/bcbb_helpers/process_run_info.py | parlundin/scilifelab | e5f4be45e2e9ff6c0756be46ad34dfb7d20a4b4a | [
"MIT"
] | 6 | 2015-01-16T15:32:08.000Z | 2020-01-30T14:34:40.000Z | #!/usr/bin/env python
import os
import sys
import yaml
from optparse import OptionParser
def main(run_info_yaml, lane, out_file, genome_build, barcode_type, trim, ascii, analysis, description, clear_description, verbose):
if verbose: print "Verifying that %s exists" % run_info_yaml
assert os.path.exists(r... | 44.460784 | 132 | 0.622712 | 559 | 4,535 | 4.865832 | 0.21288 | 0.030882 | 0.061765 | 0.030882 | 0.291176 | 0.194485 | 0.186029 | 0.124632 | 0.09375 | 0.09375 | 0 | 0.00411 | 0.248953 | 4,535 | 101 | 133 | 44.90099 | 0.79448 | 0.016759 | 0 | 0.068966 | 0 | 0 | 0.177922 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0 | null | null | 0 | 0.045977 | null | null | 0.16092 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ea998dc1fdefa4215c75aefbef6ea7363fe98e0 | 2,396 | py | Python | main.py | smartsnake/PasswordGenerator | 985f05b81271d7a18c0f99fc77870754c48102d5 | [
"MIT"
] | null | null | null | main.py | smartsnake/PasswordGenerator | 985f05b81271d7a18c0f99fc77870754c48102d5 | [
"MIT"
] | null | null | null | main.py | smartsnake/PasswordGenerator | 985f05b81271d7a18c0f99fc77870754c48102d5 | [
"MIT"
] | null | null | null | import sys,os
import argparse
from util.MongoUtil import MongoUtil
from util.Generator import Generator
#Custom help messages
def help_msg(name=None):
return '''main.py [-h] [--length LENGTH] [--search SEARCHFIELD SEARCHTEXT]
'''
def search_usage():
return'''python main.py --search website example.... | 34.724638 | 117 | 0.603506 | 257 | 2,396 | 5.55642 | 0.470817 | 0.012605 | 0.035714 | 0.02521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006444 | 0.287563 | 2,396 | 69 | 118 | 34.724638 | 0.830111 | 0.070117 | 0 | 0.142857 | 0 | 0 | 0.269456 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.040816 | false | 0.183673 | 0.22449 | 0.040816 | 0.285714 | 0.122449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6eaca75829400aaa4a8f204a5c147dfdc9d105dc | 655 | py | Python | brain_games/games/gcd.py | belousovromnik/python-project-lvl1 | 11b4160b083b38c64b42ddd529d1379538eb9230 | [
"MIT"
] | null | null | null | brain_games/games/gcd.py | belousovromnik/python-project-lvl1 | 11b4160b083b38c64b42ddd529d1379538eb9230 | [
"MIT"
] | null | null | null | brain_games/games/gcd.py | belousovromnik/python-project-lvl1 | 11b4160b083b38c64b42ddd529d1379538eb9230 | [
"MIT"
] | null | null | null | import random
from brain_games.constants import MINIMAL_RANDOM, MAXIMAL_RANDOM
def greeting():
return 'Find the greatest common divisor of given numbers.'
def main_action():
first_el = random.randint(MINIMAL_RANDOM, MAXIMAL_RANDOM)
second_el = random.randint(MINIMAL_RANDOM, MAXIMAL_RANDOM)
correct_... | 24.259259 | 64 | 0.728244 | 92 | 655 | 4.880435 | 0.445652 | 0.089087 | 0.13363 | 0.173719 | 0.182628 | 0.182628 | 0.182628 | 0 | 0 | 0 | 0 | 0.001887 | 0.19084 | 655 | 26 | 65 | 25.192308 | 0.845283 | 0.027481 | 0 | 0 | 0 | 0 | 0.086614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6eba09dcdf024f11f4d2e6c7da43fa66a4daf005 | 788 | py | Python | Curso de Python/Mundo 2/aula12/ex045.py | josevini/python | 45cde6d0ae8310b1d8ebb30ae1dd17c0ad0dd02a | [
"MIT"
] | null | null | null | Curso de Python/Mundo 2/aula12/ex045.py | josevini/python | 45cde6d0ae8310b1d8ebb30ae1dd17c0ad0dd02a | [
"MIT"
] | null | null | null | Curso de Python/Mundo 2/aula12/ex045.py | josevini/python | 45cde6d0ae8310b1d8ebb30ae1dd17c0ad0dd02a | [
"MIT"
] | null | null | null | from time import sleep
from random import randint
itens = ('Pedra', 'Papel', 'Tesoura')
print('Suas opções: ')
print("""[ 0 ] PEDRA
[ 1 ] PAPEL
[ 2 ] TESOURA""")
computador = randint(0,2)
jogador = int(input('Qual é a sua jogada? '))
print('JO')
sleep(1)
print('KEN')
sleep(1)
print('PO!!!')
print('-=' * 11)
print('Comp... | 29.185185 | 110 | 0.651015 | 111 | 788 | 4.621622 | 0.369369 | 0.05848 | 0.042885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035061 | 0.167513 | 788 | 26 | 111 | 30.307692 | 0.746951 | 0 | 0 | 0.153846 | 0 | 0 | 0.234772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6ec48fdaa8687076f0c91144e66c1442f92aee33 | 402 | py | Python | examples/modular_bot/bot.py | fuzzysearch404/discord-ext-modules | f97406dedee6cd8862bcc1f15ff994dde79f4c90 | [
"MIT"
] | null | null | null | examples/modular_bot/bot.py | fuzzysearch404/discord-ext-modules | f97406dedee6cd8862bcc1f15ff994dde79f4c90 | [
"MIT"
] | null | null | null | examples/modular_bot/bot.py | fuzzysearch404/discord-ext-modules | f97406dedee6cd8862bcc1f15ff994dde79f4c90 | [
"MIT"
] | null | null | null | import discord
from discord.ext.modules import ModularCommandClient
if __name__ == "__main__":
client = ModularCommandClient(intents=discord.Intents.none())
@client.event
async def on_ready():
print("Logged on as {0}!".format(client.user))
client.load_extension("commands.hello_module")
c... | 26.8 | 65 | 0.731343 | 48 | 402 | 5.8125 | 0.6875 | 0.071685 | 0.136201 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002924 | 0.149254 | 402 | 14 | 66 | 28.714286 | 0.812866 | 0 | 0 | 0 | 0 | 0 | 0.208955 | 0.11194 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ec6806b3360ba70b659e8d4a38b4d380d150247 | 1,842 | py | Python | sftpgo_client/base/models/crypt_fs_config.py | ramnes/sftpgo-client | 016da5e11274362eb2e4c2d0e78e2b88c25ea515 | [
"MIT"
] | 5 | 2021-03-23T15:59:30.000Z | 2021-06-30T09:50:55.000Z | sftpgo_client/base/models/crypt_fs_config.py | ramnes/sftpgo-client | 016da5e11274362eb2e4c2d0e78e2b88c25ea515 | [
"MIT"
] | 2 | 2021-03-24T22:06:12.000Z | 2021-07-28T11:59:52.000Z | sftpgo_client/base/models/crypt_fs_config.py | ramnes/sftpgo-client | 016da5e11274362eb2e4c2d0e78e2b88c25ea515 | [
"MIT"
] | 1 | 2022-01-18T17:04:32.000Z | 2022-01-18T17:04:32.000Z | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.secret import Secret
from ..types import UNSET, Unset
T = TypeVar("T", bound="CryptFsConfig")
@attr.s(auto_attribs=True)
class CryptFsConfig:
"""Crypt filesystem configuration details"""
passphrase: Union[Unset, Secret] = U... | 29.238095 | 77 | 0.647123 | 218 | 1,842 | 5.256881 | 0.298165 | 0.139616 | 0.125654 | 0.070681 | 0.052356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245928 | 1,842 | 62 | 78 | 29.709677 | 0.825054 | 0.02063 | 0 | 0 | 0 | 0 | 0.01891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0.272727 | 0.090909 | 0.068182 | 0.431818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6ec8b33e8b06b3f5e838904586efee4b116849d8 | 3,705 | py | Python | networking-master/CodeBlue.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 8 | 2019-02-17T20:11:46.000Z | 2019-10-18T06:27:16.000Z | networking-master/CodeBlue.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | null | null | null | networking-master/CodeBlue.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 4 | 2019-02-17T23:00:18.000Z | 2019-10-18T06:27:14.000Z | import cb, time, struct, sys, random, string
try:
import console
console.set_color(0.0,0.2,1)
print """
_____ _ _____ _
| |___ _| |___| __ | |_ _ ___
| --| . | . | -_| __ -| | | | -_|
|_____|___|___|___|_____|_|___|___|
_____
_ __/ ___/
... | 23.301887 | 98 | 0.57139 | 469 | 3,705 | 4.089552 | 0.275053 | 0.025026 | 0.015641 | 0.010428 | 0.025026 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014722 | 0.266667 | 3,705 | 158 | 99 | 23.449367 | 0.691204 | 0 | 0 | 0.404255 | 0 | 0 | 0.231579 | 0.018893 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.042553 | 0.021277 | null | null | 0.156028 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ecb7c2943ca6eaec822d4f6b7669ca1cd39c2c1 | 13,004 | py | Python | src/panoramic/cli/errors.py | kubamahnert/panoramic-cli | 036f45a05d39f5762088ce23dbe367b938192f79 | [
"MIT"
] | 5 | 2020-11-13T17:26:59.000Z | 2021-03-19T15:11:26.000Z | src/panoramic/cli/errors.py | kubamahnert/panoramic-cli | 036f45a05d39f5762088ce23dbe367b938192f79 | [
"MIT"
] | 5 | 2020-10-28T10:22:35.000Z | 2021-01-27T17:33:58.000Z | src/panoramic/cli/errors.py | kubamahnert/panoramic-cli | 036f45a05d39f5762088ce23dbe367b938192f79 | [
"MIT"
] | 3 | 2021-01-26T07:58:03.000Z | 2021-03-11T13:28:34.000Z | import functools
import os
import signal
import sys
from abc import ABC
from enum import Enum
from pathlib import Path
from typing import Callable, ClassVar, List, Optional
from jsonschema.exceptions import ValidationError as JsonSchemaValidationError
from requests.exceptions import RequestException
from yaml.error im... | 30.383178 | 119 | 0.661181 | 1,493 | 13,004 | 5.48493 | 0.170797 | 0.024789 | 0.038955 | 0.017462 | 0.493223 | 0.481866 | 0.436561 | 0.406887 | 0.365857 | 0.356087 | 0 | 0.000401 | 0.232236 | 13,004 | 427 | 120 | 30.454333 | 0.819812 | 0.098277 | 0 | 0.440154 | 0 | 0.007722 | 0.166235 | 0.010104 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177606 | false | 0.019305 | 0.050193 | 0 | 0.532819 | 0.003861 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6edba8dc188676342b22f5209b14d0e344cc743f | 21,822 | py | Python | util/process_results.py | blackoutjack/jamweaver | 31533556617e9190e565b2c9edd7e7752ce71f32 | [
"BSD-3-Clause"
] | 2 | 2015-08-14T12:34:27.000Z | 2015-10-15T04:07:17.000Z | util/process_results.py | blackoutjack/jamweaver | 31533556617e9190e565b2c9edd7e7752ce71f32 | [
"BSD-3-Clause"
] | null | null | null | util/process_results.py | blackoutjack/jamweaver | 31533556617e9190e565b2c9edd7e7752ce71f32 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
#
# This script is used to analyze, tabulate, and graph data generated by
# the JAM weaver and by JAMScript performance instrumentation. It was
# used to produce figures presented in the experimental results section
# of ``Efficient Runtime Enforcement Techniques for Policy Weaving,''
# published at F... | 32.091176 | 242 | 0.645129 | 2,920 | 21,822 | 4.765411 | 0.154452 | 0.011642 | 0.010349 | 0.011067 | 0.353503 | 0.316277 | 0.253827 | 0.2424 | 0.222709 | 0.205246 | 0 | 0.022933 | 0.226698 | 21,822 | 679 | 243 | 32.138439 | 0.801659 | 0.100357 | 0 | 0.337209 | 1 | 0.013566 | 0.146223 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 1 | 0.050388 | false | 0 | 0.021318 | 0 | 0.096899 | 0.007752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6eec71c6872297c8b70027ce91c50b56182bea2c | 5,440 | py | Python | LetsCook/recipes/views.py | ivo-bass/iCook | c45f97ac3d8da0c52ccd85ecac0bab51bc4c8048 | [
"MIT"
] | 1 | 2021-08-05T07:15:59.000Z | 2021-08-05T07:15:59.000Z | LetsCook/recipes/views.py | ivo-bass/iCook | c45f97ac3d8da0c52ccd85ecac0bab51bc4c8048 | [
"MIT"
] | null | null | null | LetsCook/recipes/views.py | ivo-bass/iCook | c45f97ac3d8da0c52ccd85ecac0bab51bc4c8048 | [
"MIT"
] | null | null | null | from django.db import transaction
from django.shortcuts import render, redirect
from django.urls import reverse_lazy, reverse
from django.views.generic import CreateView, ListView, DeleteView, UpdateView, DetailView
from django.contrib.auth.mixins import LoginRequiredMixin
from LetsCook.common.forms import CommentForm... | 35.096774 | 96 | 0.662316 | 623 | 5,440 | 5.642055 | 0.24077 | 0.042674 | 0.039829 | 0.019346 | 0.302987 | 0.268848 | 0.252916 | 0.226458 | 0.175249 | 0.175249 | 0 | 0.000242 | 0.24136 | 5,440 | 154 | 97 | 35.324675 | 0.851466 | 0.114522 | 0 | 0.365385 | 0 | 0 | 0.069545 | 0.005104 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.096154 | 0.028846 | 0.519231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
42b6226b2537a6c2f5c9d9708d383f584b883497 | 214 | py | Python | tests/test0.py | Rfys/ConcreteStructures | a6cf18dc4697643bc6acffe6d228c4f9fc55f127 | [
"MIT"
] | 1 | 2021-08-20T19:28:11.000Z | 2021-08-20T19:28:11.000Z | tests/test0.py | arifyunando/ConcreteStructures | a6cf18dc4697643bc6acffe6d228c4f9fc55f127 | [
"MIT"
] | null | null | null | tests/test0.py | arifyunando/ConcreteStructures | a6cf18dc4697643bc6acffe6d228c4f9fc55f127 | [
"MIT"
] | null | null | null | cond = True
while cond:
x = int(input("Input X Value :"))
y = 10 if (x > 10) else 5 if (x < 5) else x
print("{} is the Y value".format(y))
cond = True if input("continue? y/n :") == "y" else False
| 26.75 | 61 | 0.546729 | 39 | 214 | 3 | 0.487179 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03871 | 0.275701 | 214 | 7 | 62 | 30.571429 | 0.716129 | 0 | 0 | 0 | 0 | 0 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42be5593e5ad34672a3cc8c35480ab8277503b75 | 366 | py | Python | zoo_checks/migrations/0016_auto_20190609_2337.py | falkben/zoo-checks | b1d6cf980088664b1feded4a1e08a82c6f358c33 | [
"Apache-2.0"
] | null | null | null | zoo_checks/migrations/0016_auto_20190609_2337.py | falkben/zoo-checks | b1d6cf980088664b1feded4a1e08a82c6f358c33 | [
"Apache-2.0"
] | 3 | 2019-06-01T14:56:19.000Z | 2019-06-03T13:53:27.000Z | zoo_checks/migrations/0016_auto_20190609_2337.py | falkben/zoo-checks | b1d6cf980088664b1feded4a1e08a82c6f358c33 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.2 on 2019-06-10 03:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('zoo_checks', '0015_auto_20190609_2303'),
]
operations = [
migrations.RenameField(
model_name='enclosure',
old_name='user',
... | 19.263158 | 50 | 0.587432 | 40 | 366 | 5.2 | 0.8 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121094 | 0.300546 | 366 | 18 | 51 | 20.333333 | 0.691406 | 0.122951 | 0 | 0 | 1 | 0 | 0.159875 | 0.0721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42c257f8e741fb7454d04ca5e731e44ef13939f5 | 1,973 | py | Python | scripts/upload_certificates_to_ssm.py | ministryofjustice/bichard7-next-shared-infrastructure | 97ca93e00494e0e7df37dbf03dc6639a60fef956 | [
"MIT"
] | 2 | 2021-12-17T10:42:44.000Z | 2022-03-02T11:05:57.000Z | scripts/upload_certificates_to_ssm.py | ministryofjustice/bichard7-next-shared-infrastructure | 97ca93e00494e0e7df37dbf03dc6639a60fef956 | [
"MIT"
] | 4 | 2022-01-24T17:25:29.000Z | 2022-03-07T10:20:52.000Z | scripts/upload_certificates_to_ssm.py | ministryofjustice/bichard7-next-shared-infrastructure | 97ca93e00494e0e7df37dbf03dc6639a60fef956 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import boto3
import os
import base64
"""
Uploads pre-generated certificates to SSM for the ci to consume
example
WORKSPACE=dev-next ENVIRONMENT=sandbox aws-vault exec sandbox-shared -- make upload-certificates
"""
class UploadCertificates(object):
ssm_client = None
environment = None... | 29.893939 | 108 | 0.598074 | 214 | 1,973 | 5.317757 | 0.406542 | 0.070299 | 0.061511 | 0.079086 | 0.264499 | 0.245167 | 0.193322 | 0.193322 | 0.193322 | 0.121265 | 0 | 0.007736 | 0.27927 | 1,973 | 65 | 109 | 30.353846 | 0.792546 | 0.010644 | 0 | 0.040816 | 1 | 0 | 0.20124 | 0.089064 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.061224 | 0 | 0.204082 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42c29f19d671bb8c233ec4e951db0332a942d9aa | 1,709 | py | Python | OPManager.py | eduze/GenerativeDetector | 4aa85e1977abe0e400962dff12b3d0a26900bfd3 | [
"Apache-2.0"
] | 1 | 2018-05-11T03:12:11.000Z | 2018-05-11T03:12:11.000Z | OPManager.py | eduze/GenerativeDetector | 4aa85e1977abe0e400962dff12b3d0a26900bfd3 | [
"Apache-2.0"
] | null | null | null | OPManager.py | eduze/GenerativeDetector | 4aa85e1977abe0e400962dff12b3d0a26900bfd3 | [
"Apache-2.0"
] | null | null | null | import multiprocessing
from multiprocessing import Queue
from OpenPersonDetector import OpenPersonDetector
from newgen.GenerativeDetector import AbstractDetectorGenerator
class ManagedOPDetector:
def __init__(self, input_queue, output_queue):
self.input_queue = input_queue
self.output_queue = ou... | 32.245283 | 98 | 0.693973 | 181 | 1,709 | 6.237569 | 0.276243 | 0.124004 | 0.113375 | 0.093003 | 0.215235 | 0.150576 | 0.150576 | 0.093888 | 0.093888 | 0.093888 | 0 | 0.00076 | 0.230544 | 1,709 | 52 | 99 | 32.865385 | 0.857795 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.102564 | 0.025641 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42c5815338a4f22f9d03e6f124f41c7f94882e58 | 5,702 | py | Python | tests/__init__.py | open-contracting/pelican-backend | dee9afb48f7485f94544bcfbb977558d638098cd | [
"BSD-3-Clause"
] | 1 | 2021-07-21T15:23:22.000Z | 2021-07-21T15:23:22.000Z | tests/__init__.py | open-contracting/pelican-backend | dee9afb48f7485f94544bcfbb977558d638098cd | [
"BSD-3-Clause"
] | 40 | 2021-06-29T23:53:14.000Z | 2022-02-23T20:14:11.000Z | tests/__init__.py | open-contracting/pelican-backend | dee9afb48f7485f94544bcfbb977558d638098cd | [
"BSD-3-Clause"
] | null | null | null | import json
import os
from contextlib import AbstractContextManager
from tools import settings
def is_subset_dict(subset, superset):
return subset.items() <= superset.items()
def read(basename):
with open(os.path.join("tests", "fixtures", f"{basename}.json")) as f:
return json.load(f)
class overr... | 29.853403 | 117 | 0.452999 | 509 | 5,702 | 4.980354 | 0.214145 | 0.021302 | 0.04142 | 0.037475 | 0.620118 | 0.563708 | 0.531755 | 0.512032 | 0.499014 | 0.460355 | 0 | 0.007656 | 0.450193 | 5,702 | 190 | 118 | 30.010526 | 0.800957 | 0.051035 | 0 | 0.550336 | 0 | 0 | 0.058084 | 0 | 0 | 0 | 0 | 0 | 0.060403 | 1 | 0.09396 | false | 0.107383 | 0.026846 | 0.006711 | 0.208054 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
42e5f4e73286a21248ce1ddfed9d74e5f150cd54 | 7,012 | py | Python | accelbyte_py_sdk/api/basic/models/a_dto_object_for_equ8_user_status.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/basic/models/a_dto_object_for_equ8_user_status.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | 1 | 2021-10-13T03:46:58.000Z | 2021-10-13T03:46:58.000Z | accelbyte_py_sdk/api/basic/models/a_dto_object_for_equ8_user_status.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: justice_py_sdk_codegen/__main__.py
# justice-basic-service (1.36.3)
# pylint: disable=d... | 35.06 | 202 | 0.592698 | 751 | 7,012 | 5.3502 | 0.171771 | 0.074664 | 0.039821 | 0.04231 | 0.285217 | 0.148333 | 0.050772 | 0.01991 | 0.01991 | 0 | 0 | 0.005211 | 0.315744 | 7,012 | 199 | 203 | 35.236181 | 0.832222 | 0.17684 | 0 | 0.24031 | 1 | 0 | 0.060999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100775 | false | 0 | 0.023256 | 0.031008 | 0.294574 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42ead0688f656228fb0df39a2d45d3c1dd001507 | 532 | py | Python | iaso/migrations/0115_auto_20220124_1120.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | null | null | null | iaso/migrations/0115_auto_20220124_1120.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | null | null | null | iaso/migrations/0115_auto_20220124_1120.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | 1 | 2022-03-23T16:44:12.000Z | 2022-03-23T16:44:12.000Z | # Generated by Django 3.1.14 on 2022-01-24 11:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("iaso", "0114_auto_20220117_1609"),
]
operations = [
migrations.RenameField(
model_name="entity",
old_name="instance... | 22.166667 | 58 | 0.565789 | 54 | 532 | 5.444444 | 0.759259 | 0.061224 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088154 | 0.317669 | 532 | 23 | 59 | 23.130435 | 0.721763 | 0.086466 | 0 | 0.235294 | 1 | 0 | 0.126033 | 0.047521 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42efdd1edf57c5e0230ae9edaa82d469b2ef9074 | 2,591 | py | Python | product/admin.py | NarminSH/e-commerce-sellshop-project | a753038c8265473021e21f75b6b095bdc25f43d6 | [
"MIT"
] | null | null | null | product/admin.py | NarminSH/e-commerce-sellshop-project | a753038c8265473021e21f75b6b095bdc25f43d6 | [
"MIT"
] | null | null | null | product/admin.py | NarminSH/e-commerce-sellshop-project | a753038c8265473021e21f75b6b095bdc25f43d6 | [
"MIT"
] | null | null | null | from django.contrib import admin
from modeltranslation.admin import TranslationAdmin
from product.models import (Category, Discount, Review, Product, Properity, ProperityOption,
Image, ShoppingCart, Tag,Wishlist,Color)
class ReviewAdmin(admin.ModelAdmin):
list_display = ('name', 'product', 'creat... | 31.987654 | 93 | 0.703589 | 284 | 2,591 | 6.172535 | 0.190141 | 0.092413 | 0.095836 | 0.123217 | 0.514546 | 0.426697 | 0.32915 | 0.220194 | 0.220194 | 0.148317 | 0 | 0 | 0.131609 | 2,591 | 81 | 94 | 31.987654 | 0.779111 | 0 | 0 | 0.150943 | 0 | 0 | 0.26929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056604 | 0 | 0.773585 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
42eff7b73d4d9e9bde660bd60b5a65140cceb73c | 3,009 | py | Python | aikatsu_ranking.py | yokky21/aikatsu-ranking | 10d8e4d827414120e721640d42874c26f25c4811 | [
"MIT"
] | null | null | null | aikatsu_ranking.py | yokky21/aikatsu-ranking | 10d8e4d827414120e721640d42874c26f25c4811 | [
"MIT"
] | null | null | null | aikatsu_ranking.py | yokky21/aikatsu-ranking | 10d8e4d827414120e721640d42874c26f25c4811 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.6
# vim: ts=4 sw=4
import requests, lxml.html, json, sys, os, configparser, re
from datetime import datetime
from mastodon import *
## Initializing
host = 'https://bpnavi.jp'
ua = 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko... | 33.065934 | 154 | 0.599535 | 407 | 3,009 | 4.292383 | 0.400491 | 0.036062 | 0.032055 | 0.045793 | 0.115627 | 0.105323 | 0.105323 | 0.036634 | 0.036634 | 0.036634 | 0 | 0.023872 | 0.234297 | 3,009 | 90 | 155 | 33.433333 | 0.734375 | 0.070455 | 0 | 0.061538 | 0 | 0.015385 | 0.198561 | 0.054317 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0 | false | 0.015385 | 0.046154 | 0 | 0.046154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42f0f632b463ffb1c555335ca23b1393342b2700 | 1,091 | py | Python | L11-LP-farm-example.py | jdherman/eci273 | 86828b2e075258afdd528e86295170e162cc99e3 | [
"MIT"
] | 10 | 2018-12-23T02:59:06.000Z | 2021-12-07T11:55:21.000Z | L11-LP-farm-example.py | jdherman/eci273 | 86828b2e075258afdd528e86295170e162cc99e3 | [
"MIT"
] | null | null | null | L11-LP-farm-example.py | jdherman/eci273 | 86828b2e075258afdd528e86295170e162cc99e3 | [
"MIT"
] | 7 | 2018-12-21T02:06:51.000Z | 2021-12-11T02:36:47.000Z | import numpy as np
import matplotlib.pyplot as plt
from scipy import optimize
# Lecture 11 2-user water allocation example
# First approach: scipy.optimize.linprog
# need matrix form: minimize c^T * x, subject to Ax <= b
c = [-5, -3] # negative to maximize
A = [[10,5], [1,1.5], [2,2], [-1,0], [0,-1]]
b = [20, 3, 4.5... | 23.717391 | 78 | 0.582035 | 173 | 1,091 | 3.66474 | 0.479769 | 0.047319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048251 | 0.240147 | 1,091 | 45 | 79 | 24.244444 | 0.716526 | 0.734189 | 0 | 0 | 0 | 0 | 0.04943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
42f12d3200ce4d7e07aaba09b537e0ff03fb831a | 1,471 | py | Python | prev_ob_models/exclude/GilraBhalla2015/synapses/synapseConstantsMinimal.py | fameshpatel/olfactorybulb | 8d7a644b4560309ef177c0590ff73ed4c2432604 | [
"MIT"
] | null | null | null | prev_ob_models/exclude/GilraBhalla2015/synapses/synapseConstantsMinimal.py | fameshpatel/olfactorybulb | 8d7a644b4560309ef177c0590ff73ed4c2432604 | [
"MIT"
] | null | null | null | prev_ob_models/exclude/GilraBhalla2015/synapses/synapseConstantsMinimal.py | fameshpatel/olfactorybulb | 8d7a644b4560309ef177c0590ff73ed4c2432604 | [
"MIT"
] | null | null | null | ## This file used to be programmatically generated for converging to best fit Activity Dependent Inhibition curve.
## But that doesn't give decent result, so set by hand.
import sys
sys.path.extend(["../networks"])
## do not import networkConstants as that imports this file, and it's circular then!!!
from networkConst... | 54.481481 | 114 | 0.755948 | 244 | 1,471 | 4.442623 | 0.471311 | 0.055351 | 0.01107 | 0.042435 | 0.126384 | 0.100554 | 0.100554 | 0 | 0 | 0 | 0 | 0.042915 | 0.160435 | 1,471 | 26 | 115 | 56.576923 | 0.834818 | 0.745751 | 0 | 0.2 | 1 | 0 | 0.033233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42f674ee12a896bdc6fefab4b830b689f09ef5e4 | 499 | py | Python | agoge/__init__.py | Nintorac/agoge | 0abe66e41e4fcd865854cc009374e2a52ef5671c | [
"MIT"
] | null | null | null | agoge/__init__.py | Nintorac/agoge | 0abe66e41e4fcd865854cc009374e2a52ef5671c | [
"MIT"
] | null | null | null | agoge/__init__.py | Nintorac/agoge | 0abe66e41e4fcd865854cc009374e2a52ef5671c | [
"MIT"
] | null | null | null | from .utils import defaults_f
DEFAULTS = defaults_f({
'ARTIFACTS_ROOT': '~/agoge/artifacts',
'TQDM_DISABLED': False,
'TRIAL_ROOT': 'Worker',
'BUCKET': 'nintorac_model_serving',
'BASE_URL': 'https://github.com/Nintorac/NeuralDX7-weights/raw/master'
})
from .data_handler import DataHandler
from .mod... | 31.1875 | 74 | 0.771543 | 60 | 499 | 6.216667 | 0.65 | 0.048257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002294 | 0.126253 | 499 | 16 | 75 | 31.1875 | 0.853211 | 0 | 0 | 0 | 0 | 0 | 0.304 | 0.044 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6e001fac10af046d03ee8754375ce8c560a47171 | 773 | py | Python | _estudoPython_solid/requests/request.py | carlos-freitas-gitHub/Python_Analise_De_Dados | 74a72772179f45684f4f12acd4ad607c99ed8107 | [
"Apache-2.0"
] | null | null | null | _estudoPython_solid/requests/request.py | carlos-freitas-gitHub/Python_Analise_De_Dados | 74a72772179f45684f4f12acd4ad607c99ed8107 | [
"Apache-2.0"
] | null | null | null | _estudoPython_solid/requests/request.py | carlos-freitas-gitHub/Python_Analise_De_Dados | 74a72772179f45684f4f12acd4ad607c99ed8107 | [
"Apache-2.0"
] | null | null | null | '''requests
biblioteca beaultiful solp para páginas web.
'''
from builtins import print
import requests
'''compartilhando o cabeçario http, vem junto com requesição
cabecalho = {'User-agent': 'Windows 12',
'Referer': 'https://google.com.br'}
meus_cookies = {'Ultima-visita': '10-10-2020'}
meus_... | 28.62963 | 67 | 0.641656 | 91 | 773 | 5.395604 | 0.67033 | 0.044807 | 0.04888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030995 | 0.206986 | 773 | 26 | 68 | 29.730769 | 0.769984 | 0.068564 | 0 | 0.166667 | 0 | 0 | 0.154605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6e01596134dc9f1610c5e8f76e5d30c43961114c | 23,738 | py | Python | Tac Tac Toe/ttt_mobile_1080p.py | promitbasak/TicTacToe-Pygame | 6114cee9498d70942f48a0b6eb360f02bcf72df0 | [
"MIT"
] | 3 | 2020-06-15T13:50:51.000Z | 2021-08-18T05:10:17.000Z | Tac Tac Toe/ttt_mobile_1080p.py | promitbasak/TicTacToe-Pygame | 6114cee9498d70942f48a0b6eb360f02bcf72df0 | [
"MIT"
] | null | null | null | Tac Tac Toe/ttt_mobile_1080p.py | promitbasak/TicTacToe-Pygame | 6114cee9498d70942f48a0b6eb360f02bcf72df0 | [
"MIT"
] | 1 | 2020-06-15T13:52:49.000Z | 2020-06-15T13:52:49.000Z | import pygame
import random
import sys
Xfactor = 1.35
Yfactor = 3.2
CELLS = 9
PLAYERS = 2
CORNERS = [1, 3, 7, 9]
NON_CORNERS = [2, 4, 6, 8]
board = {}
for i in range(9):
board[i + 1] = 0
signs = {0: " ", 1: "X", 2: "O"}
winner = None
boardX = 10
boardY = 464
icon = pygame.image.load("ttticon2.png"... | 32.742069 | 95 | 0.433566 | 2,586 | 23,738 | 3.967904 | 0.096288 | 0.039177 | 0.018712 | 0.028165 | 0.670402 | 0.641458 | 0.586395 | 0.530455 | 0.512523 | 0.477536 | 0 | 0.050208 | 0.452102 | 23,738 | 724 | 96 | 32.787293 | 0.738736 | 0.028098 | 0 | 0.684641 | 0 | 0 | 0.020423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037582 | false | 0.058824 | 0.004902 | 0.004902 | 0.184641 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6e0dc799717432679f99b12ed1cdbf0dbbf71f58 | 829 | py | Python | calculator.py | MateusLinharesDeAelencarLima/Calculator | 44e836aa92fd76d21b4c5f0edfcb5419886f1df6 | [
"CC0-1.0"
] | null | null | null | calculator.py | MateusLinharesDeAelencarLima/Calculator | 44e836aa92fd76d21b4c5f0edfcb5419886f1df6 | [
"CC0-1.0"
] | 1 | 2021-09-10T21:13:16.000Z | 2021-09-23T16:13:08.000Z | calculator.py | MateusLinharesDeAelencarLima/Calculator | 44e836aa92fd76d21b4c5f0edfcb5419886f1df6 | [
"CC0-1.0"
] | null | null | null | from functions.summation import summation
from functions.subtraction import subtraction
from functions.multiplication import multiplication
from functions.division import division
from functions.exponential import exponential
from functions.root import root
num1 = float(input('número 1: '))
num2 = float(input('número ... | 34.541667 | 51 | 0.784077 | 118 | 829 | 5.40678 | 0.279661 | 0.122257 | 0.103448 | 0.188088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038251 | 0.117008 | 829 | 23 | 52 | 36.043478 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.196622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e0f3ad7fb4aa74ebb70351b2ab8036b7bfa68b3 | 2,949 | py | Python | tests.py | suetAndTie/ekho | fbf8a19e1babc3fc0f11220ec9440a7f05f4bfcd | [
"MIT"
] | 1 | 2019-01-31T19:17:01.000Z | 2019-01-31T19:17:01.000Z | tests.py | suetAndTie/ekho | fbf8a19e1babc3fc0f11220ec9440a7f05f4bfcd | [
"MIT"
] | null | null | null | tests.py | suetAndTie/ekho | fbf8a19e1babc3fc0f11220ec9440a7f05f4bfcd | [
"MIT"
] | null | null | null | ! pip install -q librosa nltk
import torch
import numpy as np
import librosa
import librosa.display
import IPython
from IPython.display import Audio
# need this for English text processing frontend
import nltk
! python -m nltk.downloader cmudict
preset = "20180505_deepvoice3_ljspeech.json"
checkpoint_path = "20180505... | 32.406593 | 106 | 0.758901 | 410 | 2,949 | 5.363415 | 0.497561 | 0.029559 | 0.021828 | 0.027285 | 0.11005 | 0.070032 | 0.070032 | 0.022738 | 0 | 0 | 0 | 0.031039 | 0.147847 | 2,949 | 90 | 107 | 32.766667 | 0.844011 | 0.055273 | 0 | 0.028986 | 0 | 0 | 0.344728 | 0.029147 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.217391 | null | null | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e154f31690fe2c1e126dc21483f4d1d4a667900 | 348 | py | Python | Python_Files/murach/book_apps/ch13/factorial_recursion.py | Interloper2448/BCGPortfolio | c4c160a835c64c8d099d44c0995197f806ccc824 | [
"MIT"
] | null | null | null | Python_Files/murach/book_apps/ch13/factorial_recursion.py | Interloper2448/BCGPortfolio | c4c160a835c64c8d099d44c0995197f806ccc824 | [
"MIT"
] | null | null | null | Python_Files/murach/book_apps/ch13/factorial_recursion.py | Interloper2448/BCGPortfolio | c4c160a835c64c8d099d44c0995197f806ccc824 | [
"MIT"
] | null | null | null | def factorial(num):
if num == 0:
return 1
else:
return num * factorial(num - 1)
def main():
print("0! =", factorial(0))
print("1! =", factorial(1))
print("2! =", factorial(2))
print("3! =", factorial(3))
print("4! =", factorial(4))
print("5! =", factorial(5))
if __name_... | 20.470588 | 39 | 0.514368 | 44 | 348 | 3.886364 | 0.340909 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059055 | 0.270115 | 348 | 16 | 40 | 21.75 | 0.614173 | 0 | 0 | 0 | 0 | 0 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6e20db78562463b54a9444adfca80573369e9be8 | 2,026 | py | Python | python/rail-fence-cipher/rail_fence_cipher.py | rootulp/exercism | 312a053ad1d375752acf0fce062ee7b9c643a149 | [
"MIT"
] | 41 | 2015-02-09T18:08:45.000Z | 2022-03-06T15:23:32.000Z | python/rail-fence-cipher/rail_fence_cipher.py | DucChuyenSoftwareEngineer/exercism | fb7820a1ba162b888a39f1b86cbe5d3ca3b15d4f | [
"MIT"
] | 21 | 2019-12-28T17:47:06.000Z | 2021-02-27T19:43:00.000Z | python/rail-fence-cipher/rail_fence_cipher.py | DucChuyenSoftwareEngineer/exercism | fb7820a1ba162b888a39f1b86cbe5d3ca3b15d4f | [
"MIT"
] | 18 | 2016-04-29T14:35:12.000Z | 2021-06-23T07:32:29.000Z | class Rails:
def __init__(self, num_rails):
self.num_rails = num_rails
self.rails = [[] for _ in range(num_rails)]
def populate_rails_linear(self, message, rail_lengths):
message_list = list(message)
for rail in self.linear_iterator(rail_lengths):
rail.append(messag... | 30.69697 | 70 | 0.638203 | 261 | 2,026 | 4.712644 | 0.16092 | 0.065041 | 0.036585 | 0.042276 | 0.249594 | 0.249594 | 0.213821 | 0.168293 | 0 | 0 | 0 | 0.005438 | 0.273939 | 2,026 | 65 | 71 | 31.169231 | 0.830727 | 0 | 0 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215686 | false | 0 | 0 | 0.039216 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e253d478e601785b1142f2b0dc902543e75cdbc | 179 | py | Python | part1/03.py | jbaltop/57_Challenges | fa66ac584fc02761803fbd5692b737a73bd57983 | [
"MIT"
] | 31 | 2017-10-08T15:57:07.000Z | 2021-06-16T11:55:05.000Z | part1/03.py | jbaltop/57_Challenges | fa66ac584fc02761803fbd5692b737a73bd57983 | [
"MIT"
] | 1 | 2021-04-30T20:39:01.000Z | 2021-04-30T20:39:01.000Z | part1/03.py | jbaltop/57_Challenges | fa66ac584fc02761803fbd5692b737a73bd57983 | [
"MIT"
] | 7 | 2017-10-16T17:13:36.000Z | 2019-07-03T16:24:01.000Z | def main():
quote = input("What is the quote?\n")
person = input("Who said it?\n")
speech = "\n" + person + " says, " + '"' + quote + '"'
print(speech)
main()
| 16.272727 | 58 | 0.502793 | 23 | 179 | 3.913043 | 0.652174 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27933 | 179 | 10 | 59 | 17.9 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0.251397 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.