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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e5f3b0cdd509b5f013deac017dd76bc3e1c1511f | 3,256 | py | Python | application/workprogramsapp/folders_ans_statistic/serializers.py | dimova17/analytics_backend | 4ee4762f8766073e57266fa281b78b742df8ca5e | [
"MIT"
] | 1 | 2021-08-24T08:52:54.000Z | 2021-08-24T08:52:54.000Z | application/workprogramsapp/folders_ans_statistic/serializers.py | dimova17/analytics_backend | 4ee4762f8766073e57266fa281b78b742df8ca5e | [
"MIT"
] | 35 | 2020-06-06T01:48:56.000Z | 2022-03-09T08:59:48.000Z | application/workprogramsapp/folders_ans_statistic/serializers.py | dimova17/analytics_backend | 4ee4762f8766073e57266fa281b78b742df8ca5e | [
"MIT"
] | 31 | 2020-04-26T13:12:53.000Z | 2022-03-28T13:13:35.000Z | from rest_framework import serializers
from dataprocessing.serializers import userProfileSerializer
from workprogramsapp.folders_ans_statistic.models import Folder, WorkProgramInFolder, AcademicPlanInFolder, \
DisciplineBlockModuleInFolder, IndividualImplementationAcademicPlanInFolder
from workprogramsapp.individu... | 37.425287 | 143 | 0.767506 | 271 | 3,256 | 9.01107 | 0.287823 | 0.06552 | 0.076167 | 0.085995 | 0.382473 | 0.316953 | 0.271908 | 0.17199 | 0.17199 | 0.056511 | 0 | 0 | 0.157248 | 3,256 | 86 | 144 | 37.860465 | 0.889942 | 0.066032 | 0 | 0.407407 | 0 | 0 | 0.096274 | 0.060336 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.092593 | 0 | 0.537037 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f9032796a8218a1a3a008fcb307ee9f6706988d1 | 3,589 | py | Python | HoverGames_FireDetection/modules/CameraCapture/app/main.py | howeverpw/Hovergames | 71f4e589bc68afc95d4d7a15b4cd187636cb87d0 | [
"BSD-3-Clause"
] | null | null | null | HoverGames_FireDetection/modules/CameraCapture/app/main.py | howeverpw/Hovergames | 71f4e589bc68afc95d4d7a15b4cd187636cb87d0 | [
"BSD-3-Clause"
] | null | null | null | HoverGames_FireDetection/modules/CameraCapture/app/main.py | howeverpw/Hovergames | 71f4e589bc68afc95d4d7a15b4cd187636cb87d0 | [
"BSD-3-Clause"
] | null | null | null |
import os
import random
import sys
import time
import iothub_client
from iothub_client import (IoTHubModuleClient, IoTHubClientError, IoTHubError,
IoTHubMessage, IoTHubMessageDispositionResult,
IoTHubTransportProvider)
import CameraCapture
from ... | 32.044643 | 209 | 0.648091 | 348 | 3,589 | 6.422414 | 0.336207 | 0.032215 | 0.060403 | 0.025503 | 0.075168 | 0.039374 | 0 | 0 | 0 | 0 | 0 | 0.006787 | 0.261076 | 3,589 | 111 | 210 | 32.333333 | 0.835973 | 0 | 0 | 0.036585 | 0 | 0 | 0.094559 | 0.013966 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f904cc1a2442cf26f7f284a7810a6609861680fb | 10,245 | py | Python | BlobSegmentation/my_prefetchingIter.py | ForrestPi/DefectDetection | 7e999335ffbd50519cdfaba7de0d6bfa306a579a | [
"Unlicense"
] | 4 | 2020-06-03T08:10:13.000Z | 2021-06-11T09:46:48.000Z | BlobSegmentation/my_prefetchingIter.py | ForrestPi/DefectDetection | 7e999335ffbd50519cdfaba7de0d6bfa306a579a | [
"Unlicense"
] | null | null | null | BlobSegmentation/my_prefetchingIter.py | ForrestPi/DefectDetection | 7e999335ffbd50519cdfaba7de0d6bfa306a579a | [
"Unlicense"
] | 1 | 2020-04-14T08:28:04.000Z | 2020-04-14T08:28:04.000Z | # -*- coding: utf-8 -*-
# 该版本的输入尺寸为50x50
mxnet_095 = '/home/forrest/MXNet/mxnet-0.9.5/python'
import sys
sys.path.append(mxnet_095)
import mxnet
import cPickle
import numpy
import random
import threading
import cv2
import time
import logging
import data_augmentation_util
class MyDataBatch():
def __init__(self):
... | 35.947368 | 152 | 0.582333 | 1,313 | 10,245 | 4.309977 | 0.195735 | 0.031101 | 0.026506 | 0.011663 | 0.254109 | 0.204276 | 0.111681 | 0.087648 | 0.080226 | 0.048772 | 0 | 0.022025 | 0.308638 | 10,245 | 285 | 153 | 35.947368 | 0.776931 | 0.05798 | 0 | 0.135747 | 0 | 0 | 0.034784 | 0.007164 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027149 | 0.045249 | null | null | 0.013575 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f906c49eb5a0de0e2738fac39f425f94f9b88d25 | 1,638 | py | Python | bclaw_runner/tests/test_string_subs.py | jack-e-tabaska/BayerCLAW | 7e94777f4a5b155a3beead625c460117ffcb56af | [
"BSD-3-Clause"
] | null | null | null | bclaw_runner/tests/test_string_subs.py | jack-e-tabaska/BayerCLAW | 7e94777f4a5b155a3beead625c460117ffcb56af | [
"BSD-3-Clause"
] | null | null | null | bclaw_runner/tests/test_string_subs.py | jack-e-tabaska/BayerCLAW | 7e94777f4a5b155a3beead625c460117ffcb56af | [
"BSD-3-Clause"
] | null | null | null | from ..src.runner.string_subs import substitute
def test_substitute_string():
subs = {
"w": "was",
"x": "am",
"y": {
"z": "very",
"t": "singular",
},
"p": ["exemplar", {"what": "model"}, "blueprint"],
"q": ["modern", "major"],
}
targe... | 21.552632 | 70 | 0.277778 | 120 | 1,638 | 3.75 | 0.4 | 0.017778 | 0.075556 | 0.115556 | 0.142222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01928 | 0.525031 | 1,638 | 75 | 71 | 21.84 | 0.559126 | 0 | 0 | 0.394366 | 0 | 0.014085 | 0.199023 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 1 | 0.028169 | false | 0 | 0.014085 | 0 | 0.042254 | 0.014085 | 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 |
f90a376b58995e13a8859b882985c0de63c9d591 | 1,664 | py | Python | synbio_rbs/sim/eva.py | mholowko/Solaris | 25f65e72667f1e92e0d5c26bc9cbe159a6a15ace | [
"Apache-2.0"
] | null | null | null | synbio_rbs/sim/eva.py | mholowko/Solaris | 25f65e72667f1e92e0d5c26bc9cbe159a6a15ace | [
"Apache-2.0"
] | null | null | null | synbio_rbs/sim/eva.py | mholowko/Solaris | 25f65e72667f1e92e0d5c26bc9cbe159a6a15ace | [
"Apache-2.0"
] | null | null | null | # direct to proper path
import os
import sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
sys.path.append(module_path)
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib import cm, rcParams
from matplotlib.colors import ListedColormap, ... | 29.192982 | 81 | 0.729567 | 259 | 1,664 | 4.451737 | 0.343629 | 0.104944 | 0.084996 | 0.019081 | 0.060711 | 0.036427 | 0 | 0 | 0 | 0 | 0 | 0.007018 | 0.14363 | 1,664 | 56 | 82 | 29.714286 | 0.802105 | 0.152644 | 0 | 0 | 0 | 0 | 0.143571 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.194444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f9100cab26ed84c125b7aa84f49054db85c675cb | 670 | py | Python | ABC/157/c.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/157/c.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/157/c.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | def main():
# input
N, M = map(int, input().split())
scs = [list(map(int, input().split())) for _ in range(M)]
# compute
if N == 1:
numbers = range(0, 10)
elif N == 2:
numbers = range(10, 100)
else:
numbers = range(100, 1000)
for i in numbers:
flag = True... | 20.30303 | 61 | 0.437313 | 83 | 670 | 3.421687 | 0.457831 | 0.06338 | 0.077465 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048843 | 0.419403 | 670 | 32 | 62 | 20.9375 | 0.681234 | 0.029851 | 0 | 0.2 | 0 | 0 | 0.012384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.08 | 0 | 0 | 0.04 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f91093c23d86fed8f7601a28c08014d4bb80d134 | 1,077 | py | Python | src/docker-images/zookeeper/get_server_ord.py | resouer/DLWorkspace | e19e8193fec12cb07db487318235ed4611dd2cfd | [
"MIT"
] | 25 | 2019-03-11T03:35:45.000Z | 2020-08-01T08:55:23.000Z | src/docker-images/zookeeper/get_server_ord.py | resouer/DLWorkspace | e19e8193fec12cb07db487318235ed4611dd2cfd | [
"MIT"
] | null | null | null | src/docker-images/zookeeper/get_server_ord.py | resouer/DLWorkspace | e19e8193fec12cb07db487318235ed4611dd2cfd | [
"MIT"
] | 10 | 2019-01-24T01:58:25.000Z | 2020-04-04T04:48:01.000Z | #!/usr/bin/python
import argparse
import socket
import os
import subprocess
if __name__ == '__main__':
parser = argparse.ArgumentParser(description = "Identify the ordinary number of current zookeeper node in the server list. ")
parser.add_argument("--ensemble",
help="list of zookeeper node... | 28.342105 | 130 | 0.576602 | 121 | 1,077 | 5.024793 | 0.479339 | 0.042763 | 0.055921 | 0.095395 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003979 | 0.299907 | 1,077 | 37 | 131 | 29.108108 | 0.802387 | 0.014856 | 0 | 0.133333 | 0 | 0 | 0.179236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f91ab995ca35e9a072b76c9de44a3749176d1103 | 149 | py | Python | exercicios/exercicio066.py | NicoCassio/cursoemvideo-python | 2686ff74f4d45bdb0dc194f49f4dd19aae629d52 | [
"MIT"
] | null | null | null | exercicios/exercicio066.py | NicoCassio/cursoemvideo-python | 2686ff74f4d45bdb0dc194f49f4dd19aae629d52 | [
"MIT"
] | null | null | null | exercicios/exercicio066.py | NicoCassio/cursoemvideo-python | 2686ff74f4d45bdb0dc194f49f4dd19aae629d52 | [
"MIT"
] | null | null | null | s = 0
t = 0
while True:
n = int(input('Número: '))
if n == 999:
break
s += n
t += 1
print(f'Soma: {s}')
print(f'Total: {t}')
| 13.545455 | 30 | 0.442953 | 26 | 149 | 2.538462 | 0.653846 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0.342282 | 149 | 10 | 31 | 14.9 | 0.612245 | 0 | 0 | 0 | 0 | 0 | 0.181208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
f91d77465a7d4aca0049aa210cb7710f044fd8c2 | 4,901 | py | Python | eq3bt/tests/test_thermostat.py | Hummel95/python-eq3bt | e90d93cfe352c8f0ad3ef2a7d6c9adb57e577477 | [
"MIT"
] | 1 | 2019-10-21T20:53:08.000Z | 2019-10-21T20:53:08.000Z | eq3bt/tests/test_thermostat.py | Hummel95/python-eq3bt | e90d93cfe352c8f0ad3ef2a7d6c9adb57e577477 | [
"MIT"
] | null | null | null | eq3bt/tests/test_thermostat.py | Hummel95/python-eq3bt | e90d93cfe352c8f0ad3ef2a7d6c9adb57e577477 | [
"MIT"
] | null | null | null | from unittest import TestCase
import codecs
from datetime import datetime, timedelta
from eq3bt import Thermostat, TemperatureException
from eq3bt.eq3btsmart import (PROP_NTFY_HANDLE, PROP_ID_QUERY,
PROP_INFO_QUERY, Mode)
ID_RESPONSE = b'01780000807581626163606067659e'
STATUS_RESPONSES... | 27.379888 | 78 | 0.634768 | 586 | 4,901 | 5.088737 | 0.233788 | 0.058685 | 0.072435 | 0.085513 | 0.348759 | 0.203219 | 0.118042 | 0.094567 | 0 | 0 | 0 | 0.057386 | 0.256886 | 4,901 | 178 | 79 | 27.533708 | 0.761395 | 0.010202 | 0 | 0.251852 | 0 | 0 | 0.063571 | 0.012384 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.222222 | false | 0 | 0.037037 | 0 | 0.281481 | 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 |
f92284c6d98e51868173d6f2287f0661c3715ebd | 777 | py | Python | src/python/__init__.py | danakianfar/Computational-Intelligence | 62a464ecdb318bb8c0b31c814daa1158d68a3c4b | [
"MIT"
] | null | null | null | src/python/__init__.py | danakianfar/Computational-Intelligence | 62a464ecdb318bb8c0b31c814daa1158d68a3c4b | [
"MIT"
] | null | null | null | src/python/__init__.py | danakianfar/Computational-Intelligence | 62a464ecdb318bb8c0b31c814daa1158d68a3c4b | [
"MIT"
] | 1 | 2018-06-12T20:43:29.000Z | 2018-06-12T20:43:29.000Z | def dump_vector(x):
return ",".join(map(str, x))
def dump_matrix(xs):
vs = map(dump_vector, xs)
return "{0}#{1}#{2}".format(xs.shape[0], xs.shape[1], "|".join(vs))
def dump_pca(pca):
return "{0}\n{1}".format(dump_matrix(pca.components_.T), dump_vector(pca.mean_))
def dump_mlp(mlp):
activation = m... | 27.75 | 86 | 0.60103 | 128 | 777 | 3.515625 | 0.335938 | 0.062222 | 0.044444 | 0.04 | 0.133333 | 0.133333 | 0.133333 | 0.133333 | 0.133333 | 0.133333 | 0 | 0.017685 | 0.199485 | 777 | 27 | 87 | 28.777778 | 0.705788 | 0 | 0 | 0.181818 | 0 | 0 | 0.048906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f925464a45ce7ddb65492f53f6697d2e0fe2b62d | 2,624 | py | Python | vul/4-thinkphp-getshell.py | zx273983653/vulscan | 787397e267c4e6469522ee0abe55b3e98f968d4a | [
"MIT"
] | 582 | 2019-02-23T09:23:33.000Z | 2022-03-31T04:42:08.000Z | vul/4-thinkphp-getshell.py | git-wsf/vulscan | 112f8d6104daecfaaad579f73029a26d56aaa9b3 | [
"MIT"
] | 6 | 2019-03-20T10:37:48.000Z | 2020-03-10T06:20:07.000Z | vul/4-thinkphp-getshell.py | git-wsf/vulscan | 112f8d6104daecfaaad579f73029a26d56aaa9b3 | [
"MIT"
] | 183 | 2019-02-23T06:00:18.000Z | 2022-03-20T02:17:57.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (c) 2014-2015 pocsuite developers (http://seebug.org)
See the file 'docs/COPYING' for copying permission
"""
#命令行
from pocsuite import pocsuite_cli
#验证模块
from pocsuite import pocsuite_verify
#攻击模块
from pocsuite import pocsuite_attack
#控制台模式
from pocsuite impo... | 30.511628 | 100 | 0.609375 | 315 | 2,624 | 5.015873 | 0.561905 | 0.053165 | 0.04557 | 0.065823 | 0.03038 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036617 | 0.261052 | 2,624 | 85 | 101 | 30.870588 | 0.778236 | 0.185213 | 0 | 0.109091 | 0 | 0 | 0.183653 | 0.046922 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.145455 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9261a0588df5e03b93efb72775345419559244c | 1,799 | py | Python | banks/assemble.py | andyhy/reaticulate | 639f04a216ee559518900b4809103cd9e8ebc2a3 | [
"Apache-2.0"
] | 71 | 2017-11-27T01:27:27.000Z | 2022-03-17T21:00:45.000Z | banks/assemble.py | andyhy/reaticulate | 639f04a216ee559518900b4809103cd9e8ebc2a3 | [
"Apache-2.0"
] | 165 | 2017-11-22T01:39:03.000Z | 2022-02-26T17:07:10.000Z | banks/assemble.py | andyhy/reaticulate | 639f04a216ee559518900b4809103cd9e8ebc2a3 | [
"Apache-2.0"
] | 34 | 2018-07-04T20:07:11.000Z | 2022-03-29T07:27:22.000Z | import sys
import re
import os
from glob import glob
def usage():
print 'Usage: {} [outfile]'.format(sys.argv[0])
def assemble(outfname):
"""
Assembles the master factory bank file from individual banks.
"""
seen = {}
programs = {}
banks = glob('*.reabank') + glob('*/*.reaban... | 34.596154 | 106 | 0.449138 | 179 | 1,799 | 4.469274 | 0.418994 | 0.02625 | 0.035 | 0.03 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006641 | 0.414119 | 1,799 | 52 | 107 | 34.596154 | 0.752372 | 0 | 0 | 0.111111 | 0 | 0 | 0.107656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088889 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f92892d7202af828d0d66798223e5fac972b2ca4 | 7,193 | py | Python | apps/financeiro/models.py | akaytatsu/incricao_conferencia | 9ab774c6fe30cdb1a45d3732ade394df6e3b4258 | [
"MIT"
] | null | null | null | apps/financeiro/models.py | akaytatsu/incricao_conferencia | 9ab774c6fe30cdb1a45d3732ade394df6e3b4258 | [
"MIT"
] | 3 | 2019-12-22T22:07:48.000Z | 2019-12-23T21:38:31.000Z | apps/financeiro/models.py | akaytatsu/inscricao_conferencia | 9ab774c6fe30cdb1a45d3732ade394df6e3b4258 | [
"MIT"
] | null | null | null | from django.db import models
from apps.data.models import Conferencia
from apps.accounts.models import Account
class Receitas(models.Model):
_TIPO_RECEITA = (
(1, 'PagSeguro'),
(2, 'Oferta'),
(3, 'Outro'),
)
tipo_receita = models.IntegerField(choices=_TIPO_RECEITA, default=1, ve... | 39.521978 | 120 | 0.67524 | 800 | 7,193 | 5.88875 | 0.16875 | 0.063044 | 0.046699 | 0.059223 | 0.601783 | 0.572702 | 0.48079 | 0.48079 | 0.459138 | 0.424963 | 0 | 0.004626 | 0.218546 | 7,193 | 181 | 121 | 39.740331 | 0.833482 | 0.014459 | 0 | 0.268908 | 0 | 0 | 0.183538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084034 | false | 0.067227 | 0.02521 | 0.02521 | 0.394958 | 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 |
00612faa3749d6f311cf91b37c626e9cc6b92295 | 880 | py | Python | src/keygenerator.py | MattHartshorn/otp-encryption | b55d95467b0c1d8042ca6a90884e21f48149dd93 | [
"MIT"
] | null | null | null | src/keygenerator.py | MattHartshorn/otp-encryption | b55d95467b0c1d8042ca6a90884e21f48149dd93 | [
"MIT"
] | null | null | null | src/keygenerator.py | MattHartshorn/otp-encryption | b55d95467b0c1d8042ca6a90884e21f48149dd93 | [
"MIT"
] | null | null | null | import random
seeded = False
def generate(size, bytes = False):
""" Randomly generates a binary string key that can used for encryption
Arguments:
size -- The number of bits or bytes the key should contain
bytes -- The input size will be in bits if True, otherwise in bytes
Returns:
The g... | 24.444444 | 97 | 0.627273 | 126 | 880 | 4.380952 | 0.531746 | 0.025362 | 0.047101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007862 | 0.277273 | 880 | 36 | 98 | 24.444444 | 0.860063 | 0.440909 | 0 | 0 | 1 | 0 | 0.135198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.307692 | 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 |
006a775b14c64fe2489c52c706172ffca6e4a1b2 | 2,644 | py | Python | autoencoder/data_generator.py | natashanorsker/fagprojekt | ef9a8cc2128c43d891c8a7a47e14916af2b9c602 | [
"MIT"
] | 1 | 2021-02-15T08:08:38.000Z | 2021-02-15T08:08:38.000Z | autoencoder/data_generator.py | natashanorsker/fagprojekt | ef9a8cc2128c43d891c8a7a47e14916af2b9c602 | [
"MIT"
] | 3 | 2021-02-24T10:43:41.000Z | 2021-06-21T12:54:51.000Z | autoencoder/data_generator.py | natashanorsker/fagprojekt | ef9a8cc2128c43d891c8a7a47e14916af2b9c602 | [
"MIT"
] | 1 | 2021-02-15T10:50:19.000Z | 2021-02-15T10:50:19.000Z | import numpy as np
import keras
import cv2
from tensorflow.python.keras.utils.data_utils import Sequence
import os
from utilities import labels_from_ids
class DataGenerator(Sequence):
'Generates data for Keras'
def __init__(self, list_ids, batch_size=64, dim=(96, 96, 3), shuffle=True, labels=False, ids=False)... | 29.377778 | 104 | 0.614977 | 374 | 2,644 | 4.139037 | 0.296791 | 0.054264 | 0.042636 | 0.02584 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013684 | 0.281392 | 2,644 | 89 | 105 | 29.707865 | 0.801053 | 0.135401 | 0 | 0.032258 | 1 | 0 | 0.08655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.096774 | 0 | 0.306452 | 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 |
0070b16b35a3bd67ec96f093ab59902b9eb37f77 | 426 | py | Python | backend_django/type/migrations/0003_auto_20170319_0947.py | mehranagh20/Typonent | 702ae3e018dcffb952c870b0a680f2475845b744 | [
"MIT"
] | 4 | 2017-03-24T19:14:29.000Z | 2017-04-02T18:23:25.000Z | backend_django/type/migrations/0003_auto_20170319_0947.py | mehranagh20/typing_site | 702ae3e018dcffb952c870b0a680f2475845b744 | [
"MIT"
] | 4 | 2017-03-25T20:25:04.000Z | 2017-03-31T17:18:23.000Z | backend_django/type/migrations/0003_auto_20170319_0947.py | mehranagh20/typing_site | 702ae3e018dcffb952c870b0a680f2475845b744 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-19 09:47
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('type', '0002_user_is_staff'),
]
operations = [
migrations.RenameField(
... | 20.285714 | 48 | 0.603286 | 49 | 426 | 4.979592 | 0.755102 | 0.057377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068404 | 0.279343 | 426 | 20 | 49 | 21.3 | 0.726384 | 0.159624 | 0 | 0 | 1 | 0 | 0.129577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0076d2c2cff0b5c08581f90593868ce8e76098b4 | 1,194 | py | Python | problem4/solution.py | Ptrak/AdventOfCode2019 | 2f96d32e02d9d7d5a44ca7758a47d70ece253796 | [
"Apache-2.0"
] | null | null | null | problem4/solution.py | Ptrak/AdventOfCode2019 | 2f96d32e02d9d7d5a44ca7758a47d70ece253796 | [
"Apache-2.0"
] | null | null | null | problem4/solution.py | Ptrak/AdventOfCode2019 | 2f96d32e02d9d7d5a44ca7758a47d70ece253796 | [
"Apache-2.0"
] | null | null | null |
def meets_criteria(number):
num_str = str(number)
# check to see if two number are the same next to each other
i = 1
previous = num_str[0]
while i < 6 :
if previous == num_str[i]:
break
previous = num_str[i]
i+=1
if i == 6:
return 0
# no more ... | 19.258065 | 64 | 0.48995 | 168 | 1,194 | 3.380952 | 0.297619 | 0.105634 | 0.221831 | 0.158451 | 0.389085 | 0.373239 | 0.276408 | 0.213028 | 0.213028 | 0.213028 | 0 | 0.06 | 0.413735 | 1,194 | 62 | 65 | 19.258065 | 0.751429 | 0.135678 | 0 | 0.608696 | 0 | 0 | 0.02729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0.021739 | 0 | 0 | 0.108696 | 0.021739 | 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 |
0078e5002f28e0c1b2364dcf6040c2ebd2aeafa9 | 1,080 | py | Python | mesa/model.py | kstaats/mesa | a9d9290e9f2068bd9790b79ee7500ca020834ff6 | [
"Apache-2.0"
] | null | null | null | mesa/model.py | kstaats/mesa | a9d9290e9f2068bd9790b79ee7500ca020834ff6 | [
"Apache-2.0"
] | null | null | null | mesa/model.py | kstaats/mesa | a9d9290e9f2068bd9790b79ee7500ca020834ff6 | [
"Apache-2.0"
] | 1 | 2019-01-29T03:40:27.000Z | 2019-01-29T03:40:27.000Z | # -*- coding: utf-8 -*-
"""
The model class for Mesa framework.
Core Objects: Model
"""
import numpy as np
class Model:
""" Base class for models. """
def __init__(self, seed=None):
""" Create a new model. Overload this method with the actual code to
start the model.
Args:
... | 23.478261 | 76 | 0.573148 | 132 | 1,080 | 4.643939 | 0.530303 | 0.052202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008357 | 0.335185 | 1,080 | 45 | 77 | 24 | 0.845404 | 0.462963 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.066667 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
00825f91dda9dc2ae86f8bddacb965df35f17ccd | 1,420 | py | Python | python/codewar/del_low_rating.py | Talgatovich/algorithms-templates | e7c6fd71451304ed0dacc393c3f30ca3f5282d46 | [
"MIT"
] | null | null | null | python/codewar/del_low_rating.py | Talgatovich/algorithms-templates | e7c6fd71451304ed0dacc393c3f30ca3f5282d46 | [
"MIT"
] | null | null | null | python/codewar/del_low_rating.py | Talgatovich/algorithms-templates | e7c6fd71451304ed0dacc393c3f30ca3f5282d46 | [
"MIT"
] | null | null | null | import copy
"""Из массива целых чисел удалите наименьшее значение.
Не мутируйте исходный массив/список. Если есть несколько элементов
с одинаковым значением, удалите элемент с меньшим индексом.
Если вы получите пустой массив/список, верните пустой массив/список.
Не изменяйте порядок оставшихся элементов."""
def rem... | 28.979592 | 77 | 0.604225 | 189 | 1,420 | 4.417989 | 0.349206 | 0.167665 | 0.017964 | 0.100599 | 0.439521 | 0.434731 | 0.434731 | 0.332934 | 0.256287 | 0.131737 | 0 | 0.047442 | 0.242958 | 1,420 | 48 | 78 | 29.583333 | 0.729302 | 0.035211 | 0 | 0.28125 | 0 | 0 | 0.171802 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.0625 | false | 0 | 0.03125 | 0 | 0.15625 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0084b7af76cb348f067e27a579c8622500b5ea7f | 435 | py | Python | pytests/logic/test_serialization.py | OneManEquipe/thinkerino | 4b9508156371643f31d1d26608e42e3aafcb0153 | [
"MIT"
] | 1 | 2020-05-02T19:44:18.000Z | 2020-05-02T19:44:18.000Z | pytests/logic/test_serialization.py | OneManEquipe/aitools | 4b9508156371643f31d1d26608e42e3aafcb0153 | [
"MIT"
] | 29 | 2019-08-07T17:49:03.000Z | 2021-08-31T10:25:00.000Z | pytests/logic/test_serialization.py | OneManEquipe/thinkerino | 4b9508156371643f31d1d26608e42e3aafcb0153 | [
"MIT"
] | null | null | null | import pickle
from aitools.logic.core import Expression
from aitools.logic.language import Language
from aitools.logic.utils import constants, expr
def test_expression_pickling_works():
language = Language()
a, b = constants('a, b', language=language)
e1: Expression = expr(a, b)
pickled = pickle.dum... | 25.588235 | 49 | 0.731034 | 57 | 435 | 5.526316 | 0.438596 | 0.104762 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.181609 | 435 | 17 | 50 | 25.588235 | 0.873596 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0 | 0.333333 | 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 |
00855a76f5bce202282fee89338c39b004474860 | 1,926 | py | Python | engine/staticanalysis.py | still-learning-ev/MALDY-PyWebView | 8bb28c5aa19fead585fd1ca73f42f20d5c18bd26 | [
"bzip2-1.0.6"
] | null | null | null | engine/staticanalysis.py | still-learning-ev/MALDY-PyWebView | 8bb28c5aa19fead585fd1ca73f42f20d5c18bd26 | [
"bzip2-1.0.6"
] | null | null | null | engine/staticanalysis.py | still-learning-ev/MALDY-PyWebView | 8bb28c5aa19fead585fd1ca73f42f20d5c18bd26 | [
"bzip2-1.0.6"
] | null | null | null | import pandas as pd
import numpy as np
import os
import pickle
import sklearn.ensemble as ek
from sklearn.model_selection import cross_validate, train_test_split
from sklearn import tree, linear_model
from sklearn.feature_selection import SelectFromModel
from sklearn.externals import joblib
from sklearn.naive_bayes imp... | 38.52 | 80 | 0.6973 | 278 | 1,926 | 4.669065 | 0.370504 | 0.09322 | 0.050077 | 0.024653 | 0.228043 | 0.169492 | 0.114022 | 0 | 0 | 0 | 0 | 0.004513 | 0.194704 | 1,926 | 50 | 81 | 38.52 | 0.832366 | 0.116822 | 0 | 0 | 0 | 0 | 0.112684 | 0.023599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.425 | 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 |
008997001ef7b27f9e83f94be4ff05951356afcb | 434 | py | Python | djnago_portfolio/projects/models.py | RohanMiraje/my_django_learning_start | 57f5dd0c984862119a551e640bf4b31d583b4353 | [
"MIT"
] | null | null | null | djnago_portfolio/projects/models.py | RohanMiraje/my_django_learning_start | 57f5dd0c984862119a551e640bf4b31d583b4353 | [
"MIT"
] | null | null | null | djnago_portfolio/projects/models.py | RohanMiraje/my_django_learning_start | 57f5dd0c984862119a551e640bf4b31d583b4353 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Project(models.Model):
title = models.CharField(max_length=100)
description = models.TextField()
technology = models.CharField(max_length=20)
# image = models.FilePathField(path='/projects/img')
image = models.CharField(max_length=100)
... | 39.454545 | 114 | 0.739631 | 56 | 434 | 5.678571 | 0.589286 | 0.141509 | 0.169811 | 0.226415 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023936 | 0.133641 | 434 | 11 | 114 | 39.454545 | 0.821809 | 0.43318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00908089d11c00c22d4f0e95c73c62851cb385be | 6,490 | py | Python | mandates_1030/src/excel2csv.py | fdurant/tpviz | 0027bc386a1ac95aa7b918aeb94cc22287d005c2 | [
"MIT"
] | null | null | null | mandates_1030/src/excel2csv.py | fdurant/tpviz | 0027bc386a1ac95aa7b918aeb94cc22287d005c2 | [
"MIT"
] | null | null | null | mandates_1030/src/excel2csv.py | fdurant/tpviz | 0027bc386a1ac95aa7b918aeb94cc22287d005c2 | [
"MIT"
] | null | null | null | import argparse
import csv
import sys
from xlrd import open_workbook
import re
import codecs
import hashlib
def init():
parser = argparse.ArgumentParser()
parser.add_argument('--infile', dest='infile',
help='input file with mandate data in MS Excel format',
requ... | 36.875 | 110 | 0.530663 | 656 | 6,490 | 5.169207 | 0.239329 | 0.025951 | 0.061929 | 0.042465 | 0.296963 | 0.277499 | 0.24565 | 0.233265 | 0.233265 | 0.205544 | 0 | 0.018954 | 0.32527 | 6,490 | 175 | 111 | 37.085714 | 0.755424 | 0.076579 | 0 | 0.190083 | 0 | 0.008264 | 0.151338 | 0.014548 | 0 | 0 | 0 | 0 | 0.016529 | 0 | null | null | 0 | 0.057851 | null | null | 0.041322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0090ea5f39a8104e46477553616c28019228c637 | 4,127 | py | Python | Python_webscraping-textmining/Webscraping/Script - New Zealand Herald.py | Martin20494/Python_Webscraping-TextMining | f1067c39e9102c716bb8eb76b16e2fbdec537686 | [
"MIT"
] | null | null | null | Python_webscraping-textmining/Webscraping/Script - New Zealand Herald.py | Martin20494/Python_Webscraping-TextMining | f1067c39e9102c716bb8eb76b16e2fbdec537686 | [
"MIT"
] | null | null | null | Python_webscraping-textmining/Webscraping/Script - New Zealand Herald.py | Martin20494/Python_Webscraping-TextMining | f1067c39e9102c716bb8eb76b16e2fbdec537686 | [
"MIT"
] | null | null | null | import os
import re
import requests
from bs4 import BeautifulSoup
mainweb = 'https://www.nzherald.co.nz/nzh-search/NZH/pollutant/'
punctuations = '''!()-[]{};:'"\,<>./?@#$%^&*_~'''
page_start = 1
page_end = 51
def webpage(mainweb, page_start, page_end):
'''Getting webpage'''
list_results = []
... | 31.503817 | 133 | 0.530409 | 467 | 4,127 | 4.569593 | 0.271949 | 0.044986 | 0.02343 | 0.052484 | 0.234302 | 0.194002 | 0.165886 | 0.165886 | 0.123711 | 0.123711 | 0 | 0.0085 | 0.344318 | 4,127 | 131 | 134 | 31.503817 | 0.780118 | 0.063727 | 0 | 0.297297 | 0 | 0 | 0.078341 | 0.016536 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.09009 | 0.036036 | 0 | 0.171171 | 0.009009 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0091babc4975550f00ef50d16e446e56b417966a | 2,559 | py | Python | scripts/player_web/test.py | WUyinwei-hah/rmua19_ignition_simulator | 7a694e63548410b9866c91e17c6ce0857b30f225 | [
"Apache-2.0"
] | null | null | null | scripts/player_web/test.py | WUyinwei-hah/rmua19_ignition_simulator | 7a694e63548410b9866c91e17c6ce0857b30f225 | [
"Apache-2.0"
] | null | null | null | scripts/player_web/test.py | WUyinwei-hah/rmua19_ignition_simulator | 7a694e63548410b9866c91e17c6ce0857b30f225 | [
"Apache-2.0"
] | null | null | null | # ==========================================
# packages for ros
# ==========================================
import rclpy
import sys
from sensor_msgs.msg import Image
import cv2
import base64
import time
import numpy as np
from rmoss_interfaces.msg import ChassisCmd
from rmoss_interfaces.msg import GimbalCmd
from rmo... | 35.054795 | 106 | 0.584994 | 318 | 2,559 | 4.371069 | 0.286164 | 0.015827 | 0.023022 | 0.031655 | 0.236691 | 0.117986 | 0.117986 | 0.117986 | 0.083453 | 0.083453 | 0 | 0.03001 | 0.192653 | 2,559 | 73 | 107 | 35.054795 | 0.642788 | 0.465416 | 0 | 0.083333 | 0 | 0 | 0.105856 | 0.078078 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.388889 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
00921aa1dd60bbb33b63cc51efc2cbcde6351010 | 3,017 | py | Python | axol_node/plugins/resources/resource_remove_alert_server.py | kelceydamage/axol | b5288577ee769bcd609c361cb0ac5e2a678289da | [
"Apache-2.0"
] | null | null | null | axol_node/plugins/resources/resource_remove_alert_server.py | kelceydamage/axol | b5288577ee769bcd609c361cb0ac5e2a678289da | [
"Apache-2.0"
] | null | null | null | axol_node/plugins/resources/resource_remove_alert_server.py | kelceydamage/axol | b5288577ee769bcd609c361cb0ac5e2a678289da | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
#-----------------------------------------#
# Copyright [2015] [Kelcey Jamison-Damage]
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.or... | 35.916667 | 92 | 0.697713 | 372 | 3,017 | 5.459677 | 0.41129 | 0.043328 | 0.041359 | 0.039389 | 0.172821 | 0.097489 | 0.097489 | 0.097489 | 0.097489 | 0.097489 | 0 | 0.003167 | 0.162744 | 3,017 | 83 | 93 | 36.349398 | 0.800871 | 0.233013 | 0 | 0.150943 | 0 | 0 | 0.172601 | 0.046983 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.188679 | 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 |
009a9b2578ca5c874524e68296c41366cc391a88 | 11,369 | py | Python | analyzer/random-process-name/src/ng_model.py | Foundstone/OpenCNA | ff2ff08b9f6439cd1176bf020ea428cc03710d17 | [
"Apache-2.0"
] | 7 | 2017-11-29T23:24:12.000Z | 2021-02-01T02:33:51.000Z | analyzer/random-process-name/src/ng_model.py | Foundstone/OpenCNA | ff2ff08b9f6439cd1176bf020ea428cc03710d17 | [
"Apache-2.0"
] | null | null | null | analyzer/random-process-name/src/ng_model.py | Foundstone/OpenCNA | ff2ff08b9f6439cd1176bf020ea428cc03710d17 | [
"Apache-2.0"
] | 4 | 2017-11-29T16:29:16.000Z | 2018-01-19T17:00:29.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
################################################################################
# Copyright (c) 2017 McAfee Inc. - All Rights Reserved.
################################################################################
__author__ = "Jorge Couchet"
import math
import pickle
imp... | 37.521452 | 98 | 0.590817 | 1,341 | 11,369 | 4.679344 | 0.134974 | 0.027092 | 0.074104 | 0.093705 | 0.506932 | 0.398247 | 0.332908 | 0.281753 | 0.243506 | 0.229004 | 0 | 0.011233 | 0.318762 | 11,369 | 302 | 99 | 37.645695 | 0.798967 | 0.02111 | 0 | 0.365759 | 0 | 0 | 0.037946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019455 | null | null | 0.038911 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
00a2fb68a862e76ae8519125e08fb8341b909529 | 5,715 | py | Python | main.py | slickwillymerf/python-network-cdp-seed-crawler | dcb9a8524897c9e8d67bea4c39e79fbbf1d474d9 | [
"Apache-2.0"
] | 4 | 2022-02-07T16:53:18.000Z | 2022-02-11T13:57:53.000Z | main.py | slickwillymerf/python-network-cdp-seed-crawler | dcb9a8524897c9e8d67bea4c39e79fbbf1d474d9 | [
"Apache-2.0"
] | null | null | null | main.py | slickwillymerf/python-network-cdp-seed-crawler | dcb9a8524897c9e8d67bea4c39e79fbbf1d474d9 | [
"Apache-2.0"
] | 1 | 2022-02-08T08:56:06.000Z | 2022-02-08T08:56:06.000Z | # This script is meant to SSH into a 'seed' device, then discover the seed-device's CDP neighbors.
# Once it has discovered its neighbors and their physical connections, it then repeats the process
import yaml
import sys
from pprint import pprint
from getpass import getpass
from cdp_parse_functions import * # ... | 45.72 | 193 | 0.593526 | 625 | 5,715 | 5.2368 | 0.2608 | 0.065995 | 0.064161 | 0.04583 | 0.212038 | 0.11213 | 0.081882 | 0.034219 | 0 | 0 | 0 | 0.000671 | 0.217848 | 5,715 | 124 | 194 | 46.08871 | 0.731544 | 0.212073 | 0 | 0.183099 | 0 | 0 | 0.219499 | 0.013736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0.070423 | 0.070423 | 0 | 0.084507 | 0.15493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
00a61af404c3180bcac42ab7bb5310e2e7152006 | 6,306 | py | Python | vumi/tests/test_sentry.py | seidu626/vumi | 62eae205a07029bc7ab382086715694548001876 | [
"BSD-3-Clause"
] | 199 | 2015-01-05T09:04:24.000Z | 2018-08-15T17:02:49.000Z | vumi/tests/test_sentry.py | seidu626/vumi | 62eae205a07029bc7ab382086715694548001876 | [
"BSD-3-Clause"
] | 187 | 2015-01-06T15:22:38.000Z | 2018-07-14T13:15:29.000Z | vumi/tests/test_sentry.py | seidu626/vumi | 62eae205a07029bc7ab382086715694548001876 | [
"BSD-3-Clause"
] | 86 | 2015-01-31T02:47:08.000Z | 2018-12-01T11:59:47.000Z | """Tests for vumi.sentry."""
import logging
import base64
import json
import sys
import traceback
from twisted.internet.defer import inlineCallbacks, Deferred
from twisted.web import http
from twisted.python.failure import Failure
from twisted.python.log import LogPublisher
from vumi.tests.utils import MockHttpServe... | 33.189474 | 78 | 0.602918 | 682 | 6,306 | 5.43695 | 0.239003 | 0.052589 | 0.051241 | 0.047195 | 0.20685 | 0.158576 | 0.145092 | 0.125674 | 0.090076 | 0.06041 | 0 | 0.016265 | 0.268792 | 6,306 | 189 | 79 | 33.365079 | 0.787899 | 0.007295 | 0 | 0.202614 | 0 | 0 | 0.087655 | 0.009953 | 0 | 0 | 0 | 0 | 0.117647 | 0 | null | null | 0 | 0.111111 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00adffce7ad4a137dbe711940df2f2c09e3d6878 | 1,018 | py | Python | config.py | masonsxu/red-flask | e8b978ee08072efcb2b3b7964065f272d8c875ab | [
"MIT"
] | 161 | 2018-10-23T07:06:46.000Z | 2021-12-06T09:33:20.000Z | config.py | masonsxu/red-flask | e8b978ee08072efcb2b3b7964065f272d8c875ab | [
"MIT"
] | null | null | null | config.py | masonsxu/red-flask | e8b978ee08072efcb2b3b7964065f272d8c875ab | [
"MIT"
] | 15 | 2019-05-02T07:17:21.000Z | 2021-11-25T05:25:22.000Z | # -*- coding: utf-8 -*-
# @ Time : 2020/9/8 14:56
# @ Author : Redtree
# @ File : config.py
# @ Desc :
VERSION = 'V0.1'
'''
database_setting
'''
DIALCT = "mysql"
DRIVER = "pymysql"
USERNAME = "mysql-username"
PASSWORD = "123456"
HOST = "数据库连接地址"
PORT = "数据库服务端口"
DATABASE = "testdb"
DB_URI = "{}+{}://{}:{}@{}:{}... | 19.576923 | 105 | 0.72888 | 122 | 1,018 | 5.868852 | 0.721311 | 0.058659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058101 | 0.120825 | 1,018 | 52 | 106 | 19.576923 | 0.741899 | 0.138507 | 0 | 0 | 0 | 0 | 0.180223 | 0.055821 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
00ae62f8588f29b30133f34c3c796917bf1eeb42 | 903 | py | Python | elasticsearch_helpers/merge_links.py | capjamesg/indieweb-search | 856ac117974bba593549136dfc17c3402c9f0066 | [
"MIT"
] | 14 | 2021-08-31T14:36:55.000Z | 2022-03-14T15:14:14.000Z | elasticsearch_helpers/merge_links.py | capjamesg/indieweb-search | 856ac117974bba593549136dfc17c3402c9f0066 | [
"MIT"
] | 22 | 2021-09-24T06:21:49.000Z | 2022-02-13T15:41:57.000Z | elasticsearch_helpers/merge_links.py | capjamesg/indieweb-search | 856ac117974bba593549136dfc17c3402c9f0066 | [
"MIT"
] | 1 | 2021-09-24T09:40:14.000Z | 2021-09-24T09:40:14.000Z | from elasticsearch import Elasticsearch
import json
es = Elasticsearch(['http://localhost:9200'])
# read pagerank_elasticsearch.json
with open('pagerank_elasticsearch.json', 'r') as f:
pagerank_elasticsearch = json.load(f)
with open('pagerank_elasticsearch_1.json', 'r') as f:
pagerank_elasticsearch_1 = json.... | 28.21875 | 79 | 0.646733 | 116 | 903 | 4.922414 | 0.431034 | 0.294221 | 0.131349 | 0.101576 | 0.101576 | 0.101576 | 0 | 0 | 0 | 0 | 0 | 0.016736 | 0.20598 | 903 | 32 | 80 | 28.21875 | 0.779637 | 0.089701 | 0 | 0 | 0 | 0 | 0.181929 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.136364 | 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 |
00b63e21242df3560a1423b394d264ef655d1a2e | 10,323 | py | Python | assessment/builder/models.py | powderflask/django_assess | cff25c0544a57ed9d7ddb3db3543268e51394875 | [
"MIT"
] | null | null | null | assessment/builder/models.py | powderflask/django_assess | cff25c0544a57ed9d7ddb3db3543268e51394875 | [
"MIT"
] | null | null | null | assessment/builder/models.py | powderflask/django_assess | cff25c0544a57ed9d7ddb3db3543268e51394875 | [
"MIT"
] | null | null | null | import json
from django.urls import reverse
from django.utils.functional import cached_property
from django.utils.text import slugify
from django.db import models
from ordered_model.models import OrderedModelManager, OrderedModel
from . import choices, validators
class ActiveManager(models.Manager):
""" Custom q... | 39.250951 | 128 | 0.660079 | 1,175 | 10,323 | 5.662128 | 0.214468 | 0.024049 | 0.018939 | 0.025252 | 0.372013 | 0.327221 | 0.275515 | 0.256726 | 0.187585 | 0.180821 | 0 | 0.004753 | 0.245859 | 10,323 | 262 | 129 | 39.400763 | 0.849839 | 0.172237 | 0 | 0.339623 | 0 | 0.012579 | 0.187176 | 0.017958 | 0 | 0 | 0 | 0.003817 | 0 | 1 | 0.150943 | false | 0 | 0.044025 | 0.09434 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
00b70852574a7ad05ac7c233261f1cf3a04199cf | 363 | py | Python | run_big_forest.py | artiomka/kaggle | 369932f4577a1c01d9c11b36071bab24b94add5a | [
"Apache-2.0"
] | null | null | null | run_big_forest.py | artiomka/kaggle | 369932f4577a1c01d9c11b36071bab24b94add5a | [
"Apache-2.0"
] | null | null | null | run_big_forest.py | artiomka/kaggle | 369932f4577a1c01d9c11b36071bab24b94add5a | [
"Apache-2.0"
] | null | null | null | import numpy as np
from sklearn.ensemble import RandomForestClassifier
X, y = np.load('train_X.npy'), np.load('train_y.npy')
print X.shape, y.shape
clf = RandomForestClassifier(max_features = 200, n_estimators = 15000, n_jobs = -1)
clf.fit(X, y)
print 'training done'
print clf.score(X, y)
from sklearn.externals import... | 30.25 | 83 | 0.757576 | 60 | 363 | 4.483333 | 0.566667 | 0.022305 | 0.081784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028037 | 0.115702 | 363 | 11 | 84 | 33 | 0.809969 | 0 | 0 | 0 | 0 | 0 | 0.134986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | null | null | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
00b7b0d54ec9c054add1d0d88a0343f59f555a1c | 929 | py | Python | pytheos/eqn_anharmonic.py | SHDShim/pytheos | be079624405e92fbec60c5ead253eb5917e55237 | [
"Apache-2.0"
] | 6 | 2017-06-23T03:28:51.000Z | 2020-12-02T01:06:50.000Z | pytheos/eqn_anharmonic.py | SHDShim/pytheos | be079624405e92fbec60c5ead253eb5917e55237 | [
"Apache-2.0"
] | 3 | 2018-03-06T00:07:51.000Z | 2018-07-18T17:42:26.000Z | pytheos/eqn_anharmonic.py | SHDShim/pytheos | be079624405e92fbec60c5ead253eb5917e55237 | [
"Apache-2.0"
] | 6 | 2017-07-11T19:40:12.000Z | 2021-01-12T02:20:39.000Z | import numpy as np
from scipy import constants
from .conversion import vol_uc2mol
def zharkov_panh(v, temp, v0, a0, m, n, z, t_ref=300.,
three_r=3. * constants.R):
"""
calculate pressure from anharmonicity for Zharkov equation
the equation is from Dorogokupets 2015
:param v: unit-cel... | 30.966667 | 73 | 0.645856 | 158 | 929 | 3.734177 | 0.417722 | 0.020339 | 0.023729 | 0.054237 | 0.149153 | 0.061017 | 0 | 0 | 0 | 0 | 0 | 0.036657 | 0.265877 | 929 | 29 | 74 | 32.034483 | 0.828446 | 0.530678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
00b9d2d653d849ec2c71a82aa1652dba9178c296 | 1,919 | py | Python | config_example.py | Karasiq/flask-apachan | 11e1e6009910dfa762c8009e6ce96dc1407160b1 | [
"MIT"
] | null | null | null | config_example.py | Karasiq/flask-apachan | 11e1e6009910dfa762c8009e6ce96dc1407160b1 | [
"MIT"
] | null | null | null | config_example.py | Karasiq/flask-apachan | 11e1e6009910dfa762c8009e6ce96dc1407160b1 | [
"MIT"
] | null | null | null | # coding=utf-8
import os
basedir = os.path.abspath(os.path.dirname(__file__))
MAX_CONTENT_LENGTH = 5 * 1024 * 1024 # 5 Мегабайт
IMG_FOLDER = 'files'
#SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://user:password@host/dbname?charset=utf8'
import tempf... | 24.291139 | 125 | 0.67431 | 254 | 1,919 | 4.858268 | 0.543307 | 0.020259 | 0.034036 | 0.032415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048765 | 0.177176 | 1,919 | 79 | 126 | 24.291139 | 0.729576 | 0.133924 | 0 | 0 | 0 | 0 | 0.246824 | 0.071385 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030303 | 0.045455 | 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 |
00c37a4a1690ea645af551f4249af13626c2d2b7 | 2,619 | py | Python | bibcat/tests/test_dc_ingester.py | KnowledgeLinks/bibcat | ed530401290865dcfefb2ae661a8880e52876a48 | [
"MIT"
] | 4 | 2018-02-13T20:36:29.000Z | 2019-09-26T14:38:25.000Z | bibcat/tests/test_dc_ingester.py | KnowledgeLinks/rdfw-bibcat | ed530401290865dcfefb2ae661a8880e52876a48 | [
"MIT"
] | 11 | 2017-10-27T17:44:46.000Z | 2018-08-15T17:27:25.000Z | bibcat/tests/test_dc_ingester.py | KnowledgeLinks/rdfw-bibcat | ed530401290865dcfefb2ae661a8880e52876a48 | [
"MIT"
] | 1 | 2017-01-23T19:52:01.000Z | 2017-01-23T19:52:01.000Z | import logging
import os
import rdflib
import requests
import sys
import unittest
import xml.etree.ElementTree as etree
#sys.path.append(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(os.path.abspath(os.path.curdir))
import ingesters
import ingesters.dc as dc
dc.NS_MGR.log_level = logging.CRITICAL
ingest... | 27 | 76 | 0.693394 | 315 | 2,619 | 5.546032 | 0.269841 | 0.089296 | 0.091586 | 0.096165 | 0.528907 | 0.496852 | 0.440183 | 0.376073 | 0.352032 | 0.280481 | 0 | 0.001907 | 0.198931 | 2,619 | 96 | 77 | 27.28125 | 0.830791 | 0.022528 | 0 | 0.367647 | 0 | 0 | 0.053927 | 0.009769 | 0 | 0 | 0 | 0 | 0.073529 | 1 | 0.205882 | false | 0.014706 | 0.132353 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00c715ef80df63effbbb62c6fc59747f17e56b47 | 310 | py | Python | Python-Practice/duplicate_items.py | MihirMore/Ineuron-Assignments | 2668abc8f517ca50b501dd165d671b082bd255ab | [
"MIT"
] | 3 | 2021-04-06T07:46:12.000Z | 2021-12-07T01:44:21.000Z | Python-Practice/duplicate_items.py | MihirMore/Ineuron-Assignments | 2668abc8f517ca50b501dd165d671b082bd255ab | [
"MIT"
] | null | null | null | Python-Practice/duplicate_items.py | MihirMore/Ineuron-Assignments | 2668abc8f517ca50b501dd165d671b082bd255ab | [
"MIT"
] | null | null | null | #Write a Python program to remove duplicates from a list.
sample_list = [10, 20, 30, 20, 10, 50, 60, 40, 80, 50, 40]
duplicate_items =set()
unique_list = []
for num in sample_list:
if num not in duplicate_items:
unique_list.append(num)
duplicate_items.add(num)
print(unique_list) | 28.181818 | 58 | 0.674194 | 50 | 310 | 4.02 | 0.58 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091667 | 0.225806 | 310 | 11 | 59 | 28.181818 | 0.745833 | 0.180645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
00cad4b3ad947d927c72066df82db1dd6e03d164 | 765 | py | Python | setup.py | oubiwann-unsupported/txRedis | 54ef2a12ad158dd528ce155fdbe8ed6e68692905 | [
"Apache-2.0"
] | null | null | null | setup.py | oubiwann-unsupported/txRedis | 54ef2a12ad158dd528ce155fdbe8ed6e68692905 | [
"Apache-2.0"
] | null | null | null | setup.py | oubiwann-unsupported/txRedis | 54ef2a12ad158dd528ce155fdbe8ed6e68692905 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='txredis',
version='2.3',
packages=['txredis'],
description='Python/Twisted client for Redis key-value store',
author='Dorian Raymer',
author_email='deldotdr@gmail.com',
maintainer='Reza Lotun',
maintainer_email='rlotun@gmail.com',
keywords=... | 29.423077 | 66 | 0.615686 | 73 | 765 | 6.410959 | 0.780822 | 0.034188 | 0.055556 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005199 | 0.245752 | 765 | 25 | 67 | 30.6 | 0.805893 | 0 | 0 | 0 | 0 | 0 | 0.512418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00cf40e1cae05c8ca3335f145e5d65e285a82b46 | 8,828 | py | Python | conedevelopment_files/bitmap.py | pbauermeister/ConeDevelopment | 586b0efca135208564149d56a7ab64c70ba052de | [
"Unlicense"
] | 1 | 2019-04-23T08:59:22.000Z | 2019-04-23T08:59:22.000Z | conedevelopment_files/bitmap.py | pbauermeister/ConeDevelopment | 586b0efca135208564149d56a7ab64c70ba052de | [
"Unlicense"
] | null | null | null | conedevelopment_files/bitmap.py | pbauermeister/ConeDevelopment | 586b0efca135208564149d56a7ab64c70ba052de | [
"Unlicense"
] | null | null | null | """
This module provides a Bitmap that can be loaded from file, and
pseudo(*) perspective-transformed.
It is implemented by a WX or PIL bitmap.
(*) "Pseudo" is meant to distinguish from real 3D->2D perspective
projection; instead of which, we proceed to 2D->2D perspective
transform here.
"""
import wx
import Image
im... | 31.641577 | 77 | 0.563208 | 1,185 | 8,828 | 4.062447 | 0.212658 | 0.009555 | 0.005609 | 0.014125 | 0.067719 | 0.043207 | 0.020773 | 0.020773 | 0.020773 | 0.020773 | 0 | 0.03308 | 0.32884 | 8,828 | 278 | 78 | 31.755396 | 0.779409 | 0.037494 | 0 | 0.046875 | 0 | 0 | 0.019843 | 0 | 0 | 0 | 0 | 0.003597 | 0.005208 | 0 | null | null | 0 | 0.036458 | null | null | 0.005208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
00cfcc482d56a04104bcc84b917690226e220c63 | 5,822 | py | Python | Lib/site-packages/gdax/FixClient.py | sanseveroj/Python27 | 24f9abb1106f5aa2ea7dfb05ec8e95fcf517cbc8 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/gdax/FixClient.py | sanseveroj/Python27 | 24f9abb1106f5aa2ea7dfb05ec8e95fcf517cbc8 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/gdax/FixClient.py | sanseveroj/Python27 | 24f9abb1106f5aa2ea7dfb05ec8e95fcf517cbc8 | [
"bzip2-1.0.6"
] | null | null | null | #! /usr/bin/env python
# Copyright 2012 Johan Astborg
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 27.592417 | 89 | 0.531948 | 648 | 5,822 | 4.743827 | 0.302469 | 0.023422 | 0.017567 | 0.027326 | 0.128822 | 0.104099 | 0.104099 | 0.104099 | 0.089785 | 0.089785 | 0 | 0.021505 | 0.313123 | 5,822 | 211 | 90 | 27.592417 | 0.747187 | 0.133631 | 0 | 0.158228 | 0 | 0 | 0.196777 | 0.010943 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012658 | 0.018987 | null | null | 0.094937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
00d5f446e2cd99644a185586481729925c9c1fc0 | 904 | py | Python | tienda/models/clientes.py | jaidis/Odoo-Plugin-Tienda | 7291954ece8f1a7d2c735333e21f6e145d6f59a8 | [
"MIT"
] | null | null | null | tienda/models/clientes.py | jaidis/Odoo-Plugin-Tienda | 7291954ece8f1a7d2c735333e21f6e145d6f59a8 | [
"MIT"
] | null | null | null | tienda/models/clientes.py | jaidis/Odoo-Plugin-Tienda | 7291954ece8f1a7d2c735333e21f6e145d6f59a8 | [
"MIT"
] | null | null | null | from odoo import models, fields, api, _
class Clientes(models.Model):
_name = 'tienda.clientes'
# codigo = fields.Integer('Codigo', required=True)
# marca = fields.Char('Marca', required=True)
dni = fields.Char('DNI', required=True)
nombre = fields.Char('Nombre', required=True)
apellidos = fie... | 37.666667 | 78 | 0.649336 | 103 | 904 | 5.669903 | 0.398058 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209071 | 904 | 23 | 79 | 39.304348 | 0.816783 | 0.10177 | 0 | 0 | 0 | 0 | 0.10754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.777778 | 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 |
00d7e5ff697d39475365e0c66fac4887d399b4c8 | 666 | py | Python | back/restapi/apps.py | ramonakira/piclodio3 | 5b0365911b8ff3c71a094a8a352c4522b74e7b7d | [
"MIT"
] | 120 | 2017-02-10T14:30:51.000Z | 2022-01-12T21:17:56.000Z | back/restapi/apps.py | ramonakira/piclodio3 | 5b0365911b8ff3c71a094a8a352c4522b74e7b7d | [
"MIT"
] | 28 | 2017-03-06T09:56:20.000Z | 2022-02-27T02:52:38.000Z | back/restapi/apps.py | ramonakira/piclodio3 | 5b0365911b8ff3c71a094a8a352c4522b74e7b7d | [
"MIT"
] | 24 | 2017-02-13T20:38:57.000Z | 2020-12-21T23:51:00.000Z | import sys
from django.apps import AppConfig
from utils.scheduler_manager import SchedulerManager
class RestapiConfig(AppConfig):
name = 'restapi'
def __init__(self, app_name, app_module):
super().__init__(app_name, app_module)
def ready(self):
argv = sys.argv
print(argv)
... | 26.64 | 101 | 0.654655 | 73 | 666 | 5.712329 | 0.561644 | 0.115108 | 0.047962 | 0.076739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262763 | 666 | 24 | 102 | 27.75 | 0.849287 | 0.051051 | 0 | 0 | 0 | 0 | 0.09062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.533333 | 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 | 0 | 1 | 0 | 0 | 1 |
00dbfcc486ad259b9ae23a093b5243d9430f2b23 | 2,050 | py | Python | MangaKisa.py | MorganDenes/MangaScraper | e27b94363637b252dd3ebffcd223a2282730f2dd | [
"Unlicense"
] | null | null | null | MangaKisa.py | MorganDenes/MangaScraper | e27b94363637b252dd3ebffcd223a2282730f2dd | [
"Unlicense"
] | null | null | null | MangaKisa.py | MorganDenes/MangaScraper | e27b94363637b252dd3ebffcd223a2282730f2dd | [
"Unlicense"
] | null | null | null | from bs4 import BeautifulSoup as bs
import requests
import cfscrape
from urllib.request import (urlopen, urlparse, urlunparse, urlretrieve)
import time
import os
from MangaToPDF import MangaToPDF
from MangaCrawler import MangaCrawler
class MangaKisa(MangaCrawler):
website = "https://mangakisa.com"
scraper =... | 33.064516 | 95 | 0.642439 | 250 | 2,050 | 5.216 | 0.484 | 0.030675 | 0.018405 | 0.023006 | 0.047546 | 0.047546 | 0 | 0 | 0 | 0 | 0 | 0.012955 | 0.209268 | 2,050 | 61 | 96 | 33.606557 | 0.791487 | 0.187317 | 0 | 0 | 0 | 0 | 0.073024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.195122 | 0.04878 | 0.560976 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
00e27e7037472f6c90d5affbf8cc1cd01d3fbb28 | 1,018 | py | Python | icof/core.py | brews/icof | 1425f0844bd0a932f04409c10e263b54a1c9d111 | [
"Apache-2.0"
] | 1 | 2021-03-24T22:50:04.000Z | 2021-03-24T22:50:04.000Z | icof/core.py | brews/icof | 1425f0844bd0a932f04409c10e263b54a1c9d111 | [
"Apache-2.0"
] | null | null | null | icof/core.py | brews/icof | 1425f0844bd0a932f04409c10e263b54a1c9d111 | [
"Apache-2.0"
] | null | null | null | from html.parser import HTMLParser
import urllib.request
class _BodyHeadParser(HTMLParser):
def __init__(self):
super().__init__()
self.in_body = False
self.in_h1 = False
self.data = None
def _body_or_head_switch_to(self, tag, switch_to=True):
if tag == "body":
... | 26.102564 | 59 | 0.626719 | 137 | 1,018 | 4.364964 | 0.386861 | 0.060201 | 0.050167 | 0.080268 | 0.113712 | 0.083612 | 0.083612 | 0 | 0 | 0 | 0 | 0.006684 | 0.265226 | 1,018 | 38 | 60 | 26.789474 | 0.792781 | 0.020629 | 0 | 0 | 0 | 0 | 0.041582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00ef9d85a265d83b42d3cb0511a8b336af07e92b | 8,603 | py | Python | tests/func/fake_api/common_serpyco.py | raphj/hapic | b169ee901005bbe535e27ec878a051c2c1226e43 | [
"MIT"
] | 20 | 2017-10-13T11:23:33.000Z | 2021-12-09T12:42:06.000Z | tests/func/fake_api/common_serpyco.py | raphj/hapic | b169ee901005bbe535e27ec878a051c2c1226e43 | [
"MIT"
] | 130 | 2017-10-10T15:09:13.000Z | 2021-12-30T10:36:08.000Z | tests/func/fake_api/common_serpyco.py | raphj/hapic | b169ee901005bbe535e27ec878a051c2c1226e43 | [
"MIT"
] | 7 | 2017-10-17T07:24:42.000Z | 2021-09-16T14:33:17.000Z | from collections import OrderedDict
from serpyco import StringFormat
# TODO BS 2018-11-27; Used for test
# tests.func.fake_api.test_fake_api\
# .test_func__test_fake_api_doc_ok__aiohttp_serpyco
# But must be replaced by atomic testing
serpyco_SWAGGER_DOC_API = {
"info": {
"description": "just an examp... | 36.764957 | 143 | 0.331512 | 500 | 8,603 | 5.57 | 0.23 | 0.061041 | 0.014004 | 0.018671 | 0.588151 | 0.574865 | 0.574865 | 0.55763 | 0.470377 | 0.394255 | 0 | 0.021251 | 0.524119 | 8,603 | 233 | 144 | 36.922747 | 0.659013 | 0.018714 | 0 | 0.462555 | 0 | 0.004405 | 0.328197 | 0.061752 | 0 | 0 | 0 | 0.004292 | 0 | 1 | 0 | false | 0 | 0.008811 | 0 | 0.008811 | 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 |
da9ae954eaded2a9d079afe4c47df05026a33b52 | 7,004 | py | Python | pyvb/vbgmm.py | lucidfrontier45/PyVB | 5218fbcf9ffa106a644e318b03a8005f3daf9f57 | [
"BSD-3-Clause"
] | 13 | 2015-07-23T07:43:35.000Z | 2021-04-05T06:04:55.000Z | pyvb/vbgmm.py | lucidfrontier45/PyVB | 5218fbcf9ffa106a644e318b03a8005f3daf9f57 | [
"BSD-3-Clause"
] | null | null | null | pyvb/vbgmm.py | lucidfrontier45/PyVB | 5218fbcf9ffa106a644e318b03a8005f3daf9f57 | [
"BSD-3-Clause"
] | 6 | 2015-11-17T21:32:55.000Z | 2020-06-17T15:59:50.000Z | import numpy as np
from scipy.cluster import vq
from .util import log_like_Gauss2
from .sampling import testData
from .emgmm import EMGMM
from .moments import *
class VBGMM(EMGMM):
"""
Gaussian Mixture Model with Variational Bayesian (VB) Learning.
This class is mostly based on the EMGMM class.
Attri... | 35.02 | 80 | 0.608081 | 918 | 7,004 | 4.477124 | 0.224401 | 0.040876 | 0.023358 | 0.019708 | 0.114355 | 0.057908 | 0.041849 | 0.022384 | 0.022384 | 0 | 0 | 0.014631 | 0.297401 | 7,004 | 199 | 81 | 35.19598 | 0.820362 | 0.117933 | 0 | 0.097222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | 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 |
daa6652f0d12b5e2a6b70b0b9db54e6a8e03e499 | 2,287 | py | Python | src/project/users/endpoints.py | pviojo/boilerplate-flask-api | 4e3832cc1a6979019311e01f60227ace0f2c3259 | [
"MIT"
] | null | null | null | src/project/users/endpoints.py | pviojo/boilerplate-flask-api | 4e3832cc1a6979019311e01f60227ace0f2c3259 | [
"MIT"
] | null | null | null | src/project/users/endpoints.py | pviojo/boilerplate-flask-api | 4e3832cc1a6979019311e01f60227ace0f2c3259 | [
"MIT"
] | null | null | null | from flask import Blueprint, jsonify, request
from .service import UserService
from project.common.decorators import require_user
users_blueprint = Blueprint('users', __name__)
@users_blueprint.route('/user/create', methods=['POST'])
def create() -> dict:
user = request.json
rsp = UserService.register(user)... | 27.554217 | 95 | 0.60035 | 279 | 2,287 | 4.827957 | 0.207885 | 0.093541 | 0.112843 | 0.10245 | 0.363029 | 0.279881 | 0.22049 | 0.177431 | 0.130661 | 0.130661 | 0 | 0.018922 | 0.237429 | 2,287 | 82 | 96 | 27.890244 | 0.75344 | 0 | 0 | 0.40625 | 0 | 0 | 0.163605 | 0.018373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.140625 | 0.046875 | 0.015625 | 0.3125 | 0.171875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
daac26876bc0f5de820538b80b60f0d99e75c080 | 1,676 | py | Python | sdk/python/pulumi_aws/outposts/get_sites.py | michael-golden/pulumi-aws | 165e876e166ecab1870e857822247585d78aef64 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/outposts/get_sites.py | michael-golden/pulumi-aws | 165e876e166ecab1870e857822247585d78aef64 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/outposts/get_sites.py | michael-golden/pulumi-aws | 165e876e166ecab1870e857822247585d78aef64 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class GetSitesResult:
... | 27.032258 | 96 | 0.627088 | 203 | 1,676 | 4.960591 | 0.497537 | 0.047666 | 0.03575 | 0.047666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00082 | 0.272673 | 1,676 | 61 | 97 | 27.47541 | 0.825267 | 0.245227 | 0 | 0 | 1 | 0 | 0.098315 | 0.02809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.166667 | 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 |
daaecaec9f1fadbc4a288607eb6ea7c9841dba20 | 589 | py | Python | web/frbb/migrations/0005_auto_20160517_0227.py | mrsemilysparkles/frbb | 6234a59910d3b31fab403232d18684813d4d2d24 | [
"Apache-2.0"
] | null | null | null | web/frbb/migrations/0005_auto_20160517_0227.py | mrsemilysparkles/frbb | 6234a59910d3b31fab403232d18684813d4d2d24 | [
"Apache-2.0"
] | null | null | null | web/frbb/migrations/0005_auto_20160517_0227.py | mrsemilysparkles/frbb | 6234a59910d3b31fab403232d18684813d4d2d24 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-17 02:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('frbb', '0004_word'),
]
operations = [
migrations.AddField(
model... | 22.653846 | 49 | 0.578947 | 59 | 589 | 5.644068 | 0.745763 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053398 | 0.300509 | 589 | 25 | 50 | 23.56 | 0.754854 | 0.113752 | 0 | 0.111111 | 1 | 0 | 0.084778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
dab2d7becd8444af14ad5a850f35227d04241d48 | 1,484 | py | Python | Factor Generator.py | vivek07kumar/Factor-Generator | 031f7076f3c269ef44f49053c99113a30ec9a45d | [
"MIT"
] | null | null | null | Factor Generator.py | vivek07kumar/Factor-Generator | 031f7076f3c269ef44f49053c99113a30ec9a45d | [
"MIT"
] | null | null | null | Factor Generator.py | vivek07kumar/Factor-Generator | 031f7076f3c269ef44f49053c99113a30ec9a45d | [
"MIT"
] | null | null | null | done = True
print()
print(' >>>>>>>>>>>>>>>>> Factor Generator <<<<<<<<<<<<<<<<<')
print()
print()
while done :
done2 = True
print()
userinput = eval(input('>> Please enter a number to know its Factor(s) : '))
print()
if userinput > 0 and type(userinput) != float:
prin... | 35.333333 | 91 | 0.38814 | 130 | 1,484 | 4.430769 | 0.353846 | 0.138889 | 0.055556 | 0.0625 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0 | 0.012959 | 0.376011 | 1,484 | 41 | 92 | 36.195122 | 0.609071 | 0 | 0 | 0.536585 | 0 | 0 | 0.345114 | 0.101178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.536585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dac2acbe56f4c689ffe6fd7f5ef5b143906b4c9d | 740 | py | Python | code/gozinta_chains/sol_548.py | bhavinjawade/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 2 | 2020-07-16T08:16:32.000Z | 2020-10-01T07:16:48.000Z | code/gozinta_chains/sol_548.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | null | null | null | code/gozinta_chains/sol_548.py | Psingh12354/project-euler-solutions | 56bf6a282730ed4b9b875fa081cf4509d9939d98 | [
"Apache-2.0"
] | 1 | 2021-05-07T18:06:08.000Z | 2021-05-07T18:06:08.000Z |
# -*- coding: utf-8 -*-
'''
File name: code\gozinta_chains\sol_548.py
Author: Vaidic Joshi
Date created: Oct 20, 2018
Python Version: 3.x
'''
# Solution to Project Euler Problem #548 :: Gozinta Chains
#
# For more information see:
# https://projecteuler.net/problem=548
# Problem Statement
'''
A goz... | 23.125 | 95 | 0.644595 | 135 | 740 | 3.518519 | 0.555556 | 0.044211 | 0.101053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118333 | 0.189189 | 740 | 31 | 96 | 23.870968 | 0.673333 | 0.404054 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dad1778fb3a555e40a8dc13398fe173be84ce919 | 14,003 | py | Python | blockfs-3.3.py | tspoolst/fuse-blockfs | 952ee1173b46dad1064dd25bc3c249d5eaa792d3 | [
"BSD-2-Clause"
] | null | null | null | blockfs-3.3.py | tspoolst/fuse-blockfs | 952ee1173b46dad1064dd25bc3c249d5eaa792d3 | [
"BSD-2-Clause"
] | null | null | null | blockfs-3.3.py | tspoolst/fuse-blockfs | 952ee1173b46dad1064dd25bc3c249d5eaa792d3 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
#[of]:imports
from __future__ import with_statement
from errno import EACCES, ENOENT, EROFS, EEXIST
from stat import S_IFDIR, S_IFLNK, S_IFREG
from threading import Lock
from time import time
from ctypes import create_string_buffer
import os, os.path, sys
from fuse import FUSE, FuseOSError, Ope... | 33.261283 | 205 | 0.6665 | 2,108 | 14,003 | 4.356736 | 0.166983 | 0.025915 | 0.028746 | 0.016006 | 0.375218 | 0.282992 | 0.224739 | 0.186084 | 0.145035 | 0.094512 | 0 | 0.014519 | 0.16875 | 14,003 | 420 | 206 | 33.340476 | 0.774485 | 0.264372 | 0 | 0.211896 | 0 | 0.007435 | 0.117607 | 0.004232 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037175 | 0.055762 | null | null | 0.003717 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dad4c1e571b7c221b163a4a3a224de4d92cf9300 | 696 | py | Python | covid19/__main__.py | easystef/covid-analysis | 42a07844115c8751e95428741d8ad96f3fb805be | [
"MIT"
] | null | null | null | covid19/__main__.py | easystef/covid-analysis | 42a07844115c8751e95428741d8ad96f3fb805be | [
"MIT"
] | null | null | null | covid19/__main__.py | easystef/covid-analysis | 42a07844115c8751e95428741d8ad96f3fb805be | [
"MIT"
] | null | null | null | import argparse
from datetime import date
from covid19 import graph as gr
def main():
parser = argparse.ArgumentParser(description="Generate graphs based on COVID-19 data from OWID")
parser.add_argument('output_dir', type=str, help="The location where the output should be stored")
parser.add_argument('co... | 29 | 111 | 0.712644 | 99 | 696 | 4.808081 | 0.545455 | 0.037815 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006885 | 0.16523 | 696 | 23 | 112 | 30.26087 | 0.812392 | 0 | 0 | 0 | 1 | 0 | 0.313218 | 0.070402 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
daddcc0445ee13f64d51ea85d29514804eae0920 | 1,046 | py | Python | tasks.py | mgcth/signal-interpreter-client | 978df5735cdbc7c05bb46230b3bbdfbf6992067d | [
"MIT"
] | null | null | null | tasks.py | mgcth/signal-interpreter-client | 978df5735cdbc7c05bb46230b3bbdfbf6992067d | [
"MIT"
] | 1 | 2021-01-23T23:11:15.000Z | 2021-01-23T23:11:15.000Z | tasks.py | mgcth/signal-interpreter-client | 978df5735cdbc7c05bb46230b3bbdfbf6992067d | [
"MIT"
] | null | null | null | import subprocess
import os
from invoke import task
SRC_DIR = "signal_interpreter_client"
TEST_DIR = "tests"
UNIT_DIR = os.path.join(TEST_DIR, "unit")
INTEGRATION_DIR = os.path.join(TEST_DIR, "integration")
COV_PATH = ".coveragerc"
@task
def style(_):
cmd = f"pycodestyle {SRC_DIR} --ignore=E501"
subprocess.c... | 22.255319 | 107 | 0.695985 | 160 | 1,046 | 4.36875 | 0.325 | 0.060086 | 0.145923 | 0.188841 | 0.517883 | 0.443491 | 0.32618 | 0.32618 | 0.131617 | 0.131617 | 0 | 0.011429 | 0.16348 | 1,046 | 46 | 108 | 22.73913 | 0.787429 | 0.080306 | 0 | 0.375 | 0 | 0.03125 | 0.334375 | 0.073958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.09375 | 0 | 0.28125 | 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 |
dade64d85844b41675682fc0f16bcc2ddae89abc | 2,637 | py | Python | students/K33402/Vlasov_Matvey/simple_drf_project/warriors_app/views.py | MatveyVlasov/ITMO_ICT_WebDevelopment_2021-2022 | c58b72869f564b778bbf226621904cfb0e4ab1b3 | [
"MIT"
] | null | null | null | students/K33402/Vlasov_Matvey/simple_drf_project/warriors_app/views.py | MatveyVlasov/ITMO_ICT_WebDevelopment_2021-2022 | c58b72869f564b778bbf226621904cfb0e4ab1b3 | [
"MIT"
] | null | null | null | students/K33402/Vlasov_Matvey/simple_drf_project/warriors_app/views.py | MatveyVlasov/ITMO_ICT_WebDevelopment_2021-2022 | c58b72869f564b778bbf226621904cfb0e4ab1b3 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework import generics
from rest_framework.response import Response
from rest_framework.views import APIView
from warriors_app.models import *
from warriors_app.serializers import *
class WarriorAPIView(APIView):
def get(self, request):
warriors = Warrior.... | 29.965909 | 112 | 0.740235 | 247 | 2,637 | 7.813765 | 0.275304 | 0.056995 | 0.070466 | 0.090674 | 0.319689 | 0.237824 | 0.196373 | 0.128497 | 0 | 0 | 0 | 0 | 0.166477 | 2,637 | 87 | 113 | 30.310345 | 0.878071 | 0.133485 | 0 | 0.28 | 0 | 0 | 0.02989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.12 | 0 | 0.84 | 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 |
dae031a95715f3f563f13ad555598e4f5995653f | 601 | py | Python | backend/items/views.py | jahidulrudro/Invoice-Maker-Django-VueJs | bc1f1ee086e666f1f7e88c9f15083d26d8af156a | [
"MIT"
] | 1 | 2019-05-24T21:40:37.000Z | 2019-05-24T21:40:37.000Z | backend/items/views.py | jahidulrudro/Invoice-Maker-Django-VueJs | bc1f1ee086e666f1f7e88c9f15083d26d8af156a | [
"MIT"
] | 15 | 2019-10-21T19:11:26.000Z | 2022-02-17T23:12:21.000Z | backend/items/views.py | jahidulrudro/Invoice-Maker-Django-VueJs | bc1f1ee086e666f1f7e88c9f15083d26d8af156a | [
"MIT"
] | null | null | null | from django.views.generic import ListView
from django_weasyprint import WeasyTemplateResponseMixin
from .models import Item
from ..company.models import Company
class ItemListView(ListView):
queryset = Item.objects.all()
template_name = 'items_list_pdf.html'
def get_context_data(self, *args, **kwargs):
... | 28.619048 | 64 | 0.750416 | 69 | 601 | 6.333333 | 0.521739 | 0.125858 | 0.05492 | 0.09611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159734 | 601 | 20 | 65 | 30.05 | 0.865347 | 0 | 0 | 0 | 0 | 0 | 0.066556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.857143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dae5fffb6a6118978855955494cc4051442ce1f4 | 1,337 | py | Python | src/methods/ConstrainedKMeans/src/example.py | ferrocactus/cellar | d1733d4643b3a4c960529806d4904ab3b3c54666 | [
"MIT"
] | 7 | 2020-11-16T16:50:37.000Z | 2021-09-08T16:56:32.000Z | src/example.py | ferrocactus/ConstrainedKMeans | f9b2bfe9c61ee1ab1e6e9f96e125ebc136220bcf | [
"MIT"
] | null | null | null | src/example.py | ferrocactus/ConstrainedKMeans | f9b2bfe9c61ee1ab1e6e9f96e125ebc136220bcf | [
"MIT"
] | 3 | 2020-07-03T04:14:55.000Z | 2021-03-14T21:51:22.000Z | import numpy as np
from matplotlib import pyplot as plt
from ConstrainedKMeans import ConstrainedKMeans as CKM
def run_test():
# Generate random dataset consisting of 5 gaussian centers
ppt = 100
free = 1000
x = []
init_labels = []
can_change = []
var = np.eye(2)
for i, mu in enumerate... | 29.065217 | 72 | 0.626776 | 212 | 1,337 | 3.816038 | 0.382075 | 0.086527 | 0.027194 | 0.046972 | 0.254635 | 0.111248 | 0 | 0 | 0 | 0 | 0 | 0.042267 | 0.221391 | 1,337 | 45 | 73 | 29.711111 | 0.73487 | 0.10546 | 0 | 0 | 1 | 0 | 0.055462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.129032 | 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 |
dae755a39a6047f2c2d6c2ace7096c68cde5b4fa | 492 | py | Python | battlenet/community/d3/career.py | gerrue/python3-django-battlenet-oauth2 | 5db0422b23f63cd4aa7dcef442fb2b947c6ccf59 | [
"MIT"
] | 15 | 2015-01-04T18:13:07.000Z | 2019-08-13T13:54:16.000Z | battlenet/community/d3/career.py | gerrue/python3-django-battlenet-oauth2 | 5db0422b23f63cd4aa7dcef442fb2b947c6ccf59 | [
"MIT"
] | 3 | 2015-09-23T19:29:19.000Z | 2019-05-13T10:24:06.000Z | battlenet/community/d3/career.py | gerrue/python3-django-battlenet-oauth2 | 5db0422b23f63cd4aa7dcef442fb2b947c6ccf59 | [
"MIT"
] | 8 | 2015-03-18T10:46:23.000Z | 2018-03-31T20:45:09.000Z | from battlenet.community import Community
class Career(Community):
ENDPOINT = "/d3/profile/%s/"
def __init__(self, *args, **kwargs):
super(Career, self).__init__(*args, **kwargs)
self.battletag = kwargs.get('battletag')
def get(self, battletag=None):
if battletag:
sel... | 28.941176 | 64 | 0.644309 | 54 | 492 | 5.703704 | 0.5 | 0.211039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002667 | 0.237805 | 492 | 17 | 64 | 28.941176 | 0.818667 | 0 | 0 | 0 | 0 | 0 | 0.087221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
daece74e3f532e1e4689fd2972b7b86329482ff3 | 1,502 | py | Python | generate_examples.py | mkrum/chessplotlib | 716fdd7543e4eaa267e742fc3e101bdb0549349d | [
"MIT"
] | null | null | null | generate_examples.py | mkrum/chessplotlib | 716fdd7543e4eaa267e742fc3e101bdb0549349d | [
"MIT"
] | null | null | null | generate_examples.py | mkrum/chessplotlib | 716fdd7543e4eaa267e742fc3e101bdb0549349d | [
"MIT"
] | null | null | null | """
Generates the baseline examples for use in the tests. If the visuals change,
this file needs to be re-run to generate new baselines.
"""
import shutil
import chess
import numpy as np
import matplotlib.pyplot as plt
from chessplotlib import plot_board, plot_move, mark_move, mark_square
with open("test/boards.txt",... | 31.291667 | 76 | 0.712383 | 250 | 1,502 | 4.14 | 0.312 | 0.067633 | 0.074396 | 0.07343 | 0.285024 | 0.248309 | 0.090821 | 0.067633 | 0.067633 | 0.067633 | 0 | 0.01072 | 0.130493 | 1,502 | 47 | 77 | 31.957447 | 0.781776 | 0.087883 | 0 | 0.222222 | 1 | 0 | 0.18649 | 0.151248 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.138889 | 0 | 0.138889 | 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 |
dafbe1fd30894a0bbc1efaace94fa810bda7e84e | 5,581 | py | Python | src/pyobo/extract.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | src/pyobo/extract.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | src/pyobo/extract.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""High level API for extracting OBO content."""
from functools import lru_cache
from typing import List, Mapping, Optional, Tuple, Union
import pandas as pd
from .cache_utils import cached_df, cached_mapping, cached_multidict
from .getters import get
from .identifier_utils import normalize_... | 31.178771 | 109 | 0.679986 | 743 | 5,581 | 4.845222 | 0.125168 | 0.033333 | 0.052778 | 0.05 | 0.577222 | 0.467222 | 0.419444 | 0.290833 | 0.241944 | 0.184722 | 0 | 0.000661 | 0.186526 | 5,581 | 178 | 110 | 31.353933 | 0.792291 | 0.10912 | 0 | 0.266055 | 0 | 0 | 0.104167 | 0.033701 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201835 | false | 0 | 0.073395 | 0 | 0.477064 | 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 |
9700ea10ce89dade5958e056267a783273d86f29 | 744 | py | Python | mbbl_envs/mbbl/config/ggnn_config.py | hbutsuak95/iv_rl | 0f72a8f077a238237027ea96b7d1160c35ac9959 | [
"MIT"
] | 9 | 2022-01-16T11:27:00.000Z | 2022-03-13T14:04:48.000Z | mbbl_envs/mbbl/config/ggnn_config.py | hbutsuak95/iv_rl | 0f72a8f077a238237027ea96b7d1160c35ac9959 | [
"MIT"
] | null | null | null | mbbl_envs/mbbl/config/ggnn_config.py | hbutsuak95/iv_rl | 0f72a8f077a238237027ea96b7d1160c35ac9959 | [
"MIT"
] | null | null | null |
def get_gnn_config(parser):
parser.add_argument('--ggnn_keep_prob', type=float, default=0.8)
parser.add_argument('--t_step', type=int, default=3)
parser.add_argument('--embed_layer', type=int, default=1)
parser.add_argument('--embed_neuron', type=int, default=256)
parser.add_argument('--prop_lay... | 35.428571 | 68 | 0.711022 | 106 | 744 | 4.735849 | 0.330189 | 0.197211 | 0.37251 | 0.113546 | 0.515936 | 0.515936 | 0.515936 | 0.384462 | 0 | 0 | 0 | 0.029052 | 0.120968 | 744 | 20 | 69 | 37.2 | 0.738532 | 0 | 0 | 0 | 0 | 0 | 0.213997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 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 |
97060597511c8ef5e9426d5dabb7e0c40957b34e | 4,861 | py | Python | tests/unittests/cli/test_cli.py | ulope/scenario-player | f466d80f54617ccaf1cb5668a3873b328c040c73 | [
"MIT"
] | null | null | null | tests/unittests/cli/test_cli.py | ulope/scenario-player | f466d80f54617ccaf1cb5668a3873b328c040c73 | [
"MIT"
] | null | null | null | tests/unittests/cli/test_cli.py | ulope/scenario-player | f466d80f54617ccaf1cb5668a3873b328c040c73 | [
"MIT"
] | null | null | null | import json
import os
import re
from pathlib import Path
from unittest.mock import patch
import pytest
from click.testing import CliRunner
from scenario_player import __version__, main
from scenario_player.exceptions.cli import WrongPassword
KEYSTORE_PATH = Path(__file__).resolve().parent.joinpath("keystore")
SCENAR... | 36.276119 | 99 | 0.641226 | 578 | 4,861 | 5.195502 | 0.271626 | 0.047952 | 0.047952 | 0.058608 | 0.363969 | 0.349983 | 0.330003 | 0.295038 | 0.249417 | 0.228771 | 0 | 0.006483 | 0.238428 | 4,861 | 133 | 100 | 36.548872 | 0.8047 | 0.067476 | 0 | 0.214953 | 0 | 0.009346 | 0.213035 | 0.064066 | 0 | 0 | 0 | 0 | 0.186916 | 1 | 0.093458 | false | 0.224299 | 0.084112 | 0.009346 | 0.233645 | 0.009346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9706a647df900fd7f0d42b751a12192e15b9f436 | 523 | py | Python | bridges/polygon.py | krs-world/bridges-python | 2d3a22d637fd75a897cc9f6b2619eeebad5942bb | [
"MIT"
] | 1 | 2020-09-21T15:13:27.000Z | 2020-09-21T15:13:27.000Z | bridges/polygon.py | BridgesUNCC/bridges-python | bf1f9697a45bf6d7748f22dbbcbff4c20cfb2229 | [
"MIT"
] | 57 | 2019-07-02T21:30:28.000Z | 2021-11-05T23:27:50.000Z | bridges/polygon.py | BridgesUNCC/bridges-python | bf1f9697a45bf6d7748f22dbbcbff4c20cfb2229 | [
"MIT"
] | 3 | 2020-03-24T16:15:20.000Z | 2021-04-14T20:44:43.000Z | from bridges.polyline import *
class Polygon(Polyline):
def __init__(self, pts = None):
"""
Constructor. Sets the number of points in the polygon
Args:
pts: number of points to be used in constructing the polygon
"""
if pts is not None:
super(Polygo... | 23.772727 | 72 | 0.558317 | 62 | 523 | 4.483871 | 0.564516 | 0.057554 | 0.100719 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.355641 | 523 | 21 | 73 | 24.904762 | 0.824926 | 0.290631 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 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 |
9716963c79b32a474c1df22dfd68bb67ba51d334 | 688 | py | Python | Maximum_Subarray/Python/shivam5992/kadane.py | Mynogs/Algorithm-Implementations | 13a74821fc1f0f7becaa9fb63b98e94134936bdb | [
"MIT"
] | 1,184 | 2015-01-01T14:11:29.000Z | 2022-03-21T19:40:47.000Z | Maximum_Subarray/Python/shivam5992/kadane.py | Mynogs/Algorithm-Implementations | 13a74821fc1f0f7becaa9fb63b98e94134936bdb | [
"MIT"
] | 89 | 2015-01-01T15:49:17.000Z | 2021-12-05T19:11:38.000Z | Maximum_Subarray/Python/shivam5992/kadane.py | Mynogs/Algorithm-Implementations | 13a74821fc1f0f7becaa9fb63b98e94134936bdb | [
"MIT"
] | 388 | 2015-01-02T03:26:17.000Z | 2022-03-24T14:36:10.000Z | from random import shuffle
'''
The maximum subarray problem is the task of finding the contiguous subarray within a
1D array of numbers (containing at least one positive number) which has the largest sum.
following implementation is the Dynamic Programming Approach
Time Complexity is O(n)
'''
def kadane(arr):
size ... | 25.481481 | 88 | 0.725291 | 113 | 688 | 4.238938 | 0.548673 | 0.058455 | 0.066806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.175872 | 688 | 26 | 89 | 26.461538 | 0.828924 | 0 | 0 | 0 | 0 | 0 | 0.095012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9719691c7096b58afadf02278348e3f67cb16c45 | 3,310 | py | Python | tests/flight_model/logic/test_airlines.py | davewalker5/FlightBookingSQL | 16ba845f8678f23766f0571fc9b8b1d6f7843525 | [
"MIT"
] | null | null | null | tests/flight_model/logic/test_airlines.py | davewalker5/FlightBookingSQL | 16ba845f8678f23766f0571fc9b8b1d6f7843525 | [
"MIT"
] | null | null | null | tests/flight_model/logic/test_airlines.py | davewalker5/FlightBookingSQL | 16ba845f8678f23766f0571fc9b8b1d6f7843525 | [
"MIT"
] | null | null | null | import unittest
from src.flight_model.model import create_database, Session, Airline
from src.flight_model.logic import create_airport
from src.flight_model.logic import create_flight, list_flights
from src.flight_model.logic import create_airline, list_airlines, get_airline, delete_airline, update_airline
from src.fli... | 37.191011 | 109 | 0.69003 | 396 | 3,310 | 5.459596 | 0.194444 | 0.06938 | 0.064755 | 0.083256 | 0.536078 | 0.477798 | 0.308973 | 0.160037 | 0 | 0 | 0 | 0.012209 | 0.208157 | 3,310 | 88 | 110 | 37.613636 | 0.812667 | 0 | 0 | 0.271429 | 0 | 0 | 0.084592 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 1 | 0.214286 | false | 0 | 0.085714 | 0 | 0.314286 | 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 |
971c69de39c1b42762a6d5229de32b6bfc2c6611 | 350 | py | Python | hanspell/cli.py | ehdgua01/py-hanspell | c1d079045b8fd16496823aeab9829d0532d4f16a | [
"MIT"
] | null | null | null | hanspell/cli.py | ehdgua01/py-hanspell | c1d079045b8fd16496823aeab9829d0532d4f16a | [
"MIT"
] | null | null | null | hanspell/cli.py | ehdgua01/py-hanspell | c1d079045b8fd16496823aeab9829d0532d4f16a | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
from spell_checker import check
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('text')
args = parser.parse_args()
result = check(args.text)
print('\033[32m{}\03... | 21.875 | 53 | 0.694286 | 45 | 350 | 5.044444 | 0.711111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03413 | 0.162857 | 350 | 15 | 54 | 23.333333 | 0.740614 | 0.122857 | 0 | 0 | 0 | 0 | 0.095082 | 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 |
971e50084c3e9a07e97a9b1000125fbdf2cae297 | 1,711 | py | Python | core/urls.py | manisharmagarg/qymatix | 0dc240970359429ae5105db79f9aebf1a99ba6fd | [
"Apache-2.0"
] | null | null | null | core/urls.py | manisharmagarg/qymatix | 0dc240970359429ae5105db79f9aebf1a99ba6fd | [
"Apache-2.0"
] | null | null | null | core/urls.py | manisharmagarg/qymatix | 0dc240970359429ae5105db79f9aebf1a99ba6fd | [
"Apache-2.0"
] | null | null | null | from django.urls import path, re_path
from tokenapi.decorators import token_required
from .views import authentication
from .views import healthcheck
from .views import login
from .views import logout
from .views import main
from .views import register
from .views import users
from .views import validate
from .views i... | 23.121622 | 70 | 0.59848 | 194 | 1,711 | 5.123711 | 0.252577 | 0.030181 | 0.135815 | 0.030181 | 0.126761 | 0.126761 | 0.080483 | 0 | 0 | 0 | 0 | 0.01609 | 0.273524 | 1,711 | 73 | 71 | 23.438356 | 0.783588 | 0.006429 | 0 | 0.376812 | 0 | 0.014493 | 0.19788 | 0.107185 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.101449 | 0.15942 | 0 | 0.15942 | 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 |
9727f693adf0ff1be535d449ccb94581f185c6bc | 6,771 | py | Python | src/tests/test_request_handle.py | mix2zeta/social-d | 923cc2b224470e940ae6ac9cc712adb685c1b216 | [
"MIT"
] | null | null | null | src/tests/test_request_handle.py | mix2zeta/social-d | 923cc2b224470e940ae6ac9cc712adb685c1b216 | [
"MIT"
] | null | null | null | src/tests/test_request_handle.py | mix2zeta/social-d | 923cc2b224470e940ae6ac9cc712adb685c1b216 | [
"MIT"
] | 1 | 2021-03-11T09:07:11.000Z | 2021-03-11T09:07:11.000Z | import os
from aiohttp.test_utils import unittest_run_loop
from conf import settings
from tests import BaseTestCase
class RequestIntegrationTest(BaseTestCase):
async def setUpAsync(self):
await super().setUpAsync()
await self.connection.execute("""
INSERT INTO data (id, type, message... | 44.84106 | 336 | 0.670359 | 1,039 | 6,771 | 4.306064 | 0.213667 | 0.077112 | 0.053643 | 0.067054 | 0.692222 | 0.691328 | 0.659365 | 0.659365 | 0.627626 | 0.625615 | 0 | 0.121337 | 0.178408 | 6,771 | 150 | 337 | 45.14 | 0.661873 | 0 | 0 | 0.45045 | 0 | 0.072072 | 0.41663 | 0.243539 | 0 | 0 | 0 | 0 | 0.207207 | 1 | 0 | false | 0 | 0.036036 | 0 | 0.045045 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
972d6707b0f0fdd68cf519f28667b9258b4c4594 | 3,801 | py | Python | tools/bin/convertAllAssignments.py | cpausmit/Tapas | 283016cebc036a703609317aafc28675b1c1ea17 | [
"MIT"
] | null | null | null | tools/bin/convertAllAssignments.py | cpausmit/Tapas | 283016cebc036a703609317aafc28675b1c1ea17 | [
"MIT"
] | null | null | null | tools/bin/convertAllAssignments.py | cpausmit/Tapas | 283016cebc036a703609317aafc28675b1c1ea17 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# --------------------------------------------------------------------------------------------------
# Convert all assignments from many separate tables per semester to a single table with additional
# semester Id.
#
#------------------------------------------------------------------------------------... | 31.413223 | 100 | 0.507498 | 377 | 3,801 | 5.103448 | 0.355438 | 0.047297 | 0.033784 | 0.04158 | 0.246882 | 0.224012 | 0.212578 | 0.212578 | 0.212578 | 0.212578 | 0 | 0.003891 | 0.256248 | 3,801 | 120 | 101 | 31.675 | 0.676689 | 0.359905 | 0 | 0.42029 | 0 | 0 | 0.285179 | 0.009992 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.144928 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9741f08bbd558b6a5458d8ed74aac58f817ff37a | 966 | py | Python | backend/coreapp/m2c_wrapper.py | zbanks/decomp.me | 39fcb7cfe75bbb1e0d34729cd2c5e28e6d7250dd | [
"MIT"
] | null | null | null | backend/coreapp/m2c_wrapper.py | zbanks/decomp.me | 39fcb7cfe75bbb1e0d34729cd2c5e28e6d7250dd | [
"MIT"
] | null | null | null | backend/coreapp/m2c_wrapper.py | zbanks/decomp.me | 39fcb7cfe75bbb1e0d34729cd2c5e28e6d7250dd | [
"MIT"
] | null | null | null | import contextlib
import io
import logging
import os
from django.utils.crypto import get_random_string
from mips_to_c.src.main import parse_flags
from mips_to_c.src.main import run
logger = logging.getLogger(__name__)
class M2CWrapper:
def decompile(c_code):
# Create temp file
temp_name = get_ran... | 24.769231 | 56 | 0.599379 | 119 | 966 | 4.647059 | 0.546218 | 0.057866 | 0.05425 | 0.039783 | 0.086799 | 0.086799 | 0.086799 | 0 | 0 | 0 | 0 | 0.004601 | 0.325052 | 966 | 38 | 57 | 25.421053 | 0.843558 | 0.049689 | 0 | 0.071429 | 0 | 0 | 0.019672 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.035714 | false | 0 | 0.25 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
975719ecab1804486669921e7d853b63ecf751c3 | 638 | py | Python | arospy/client.py | Hugal31/arospy | bd2f3880158f6a98ce38647a4da867b2bfd96ca6 | [
"MIT"
] | null | null | null | arospy/client.py | Hugal31/arospy | bd2f3880158f6a98ce38647a4da867b2bfd96ca6 | [
"MIT"
] | null | null | null | arospy/client.py | Hugal31/arospy | bd2f3880158f6a98ce38647a4da867b2bfd96ca6 | [
"MIT"
] | null | null | null | import asyncio
import logging
import os
import rospy
_logger = logging.getLogger("arospy.client")
async def spin():
"""
Wait until ROS node is shutdown. Yields activity to other threads.
@raise ROSInitException: if node is not in a properly initialized state
"""
if not rospy.core.is_initialized(... | 30.380952 | 113 | 0.68652 | 88 | 638 | 4.875 | 0.602273 | 0.083916 | 0.055944 | 0.065268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003914 | 0.19906 | 638 | 20 | 114 | 31.9 | 0.835616 | 0 | 0 | 0 | 0 | 0 | 0.197917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9759a94a9e950eaa0e4099f601c0ff33b9104ea8 | 1,914 | py | Python | option.py | vkola-lab/GraphCAM | 37b35aea9155cfa45cfe02501953dfeb559f83be | [
"MIT"
] | 6 | 2021-12-06T20:01:07.000Z | 2022-03-18T16:50:52.000Z | option.py | vkola-lab/tmi2022 | 37b35aea9155cfa45cfe02501953dfeb559f83be | [
"MIT"
] | 4 | 2022-01-02T00:09:45.000Z | 2022-01-11T03:36:22.000Z | option.py | vkola-lab/tmi2022 | 37b35aea9155cfa45cfe02501953dfeb559f83be | [
"MIT"
] | 2 | 2022-03-03T13:34:17.000Z | 2022-03-18T16:50:14.000Z | ###########################################################################
# Created by: YI ZHENG
# Email: yizheng@bu.edu
# Copyright (c) 2020
###########################################################################
import os
import argparse
import torch
class Options():
def __init__(self):
parser = a... | 45.571429 | 130 | 0.606583 | 230 | 1,914 | 4.904348 | 0.378261 | 0.103723 | 0.195922 | 0.039894 | 0.257092 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0.009044 | 0.191223 | 1,914 | 41 | 131 | 46.682927 | 0.719638 | 0.065831 | 0 | 0 | 0 | 0 | 0.287554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.259259 | 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 |
9765c421f0ff386b5ea1ff1433aea4699bb7633e | 1,096 | py | Python | drf_auth/serializers.py | TheArtling/django-drf-auth | 732183fae6cb129a1bf5c0c619fbd76e366ab392 | [
"MIT"
] | null | null | null | drf_auth/serializers.py | TheArtling/django-drf-auth | 732183fae6cb129a1bf5c0c619fbd76e366ab392 | [
"MIT"
] | null | null | null | drf_auth/serializers.py | TheArtling/django-drf-auth | 732183fae6cb129a1bf5c0c619fbd76e366ab392 | [
"MIT"
] | null | null | null | """Serializers for the drf_auth app."""
from django.contrib.auth import get_user_model
from rest_framework import serializers
class LoginSerializer(serializers.Serializer):
"""Serializer for the login API."""
email = serializers.EmailField()
password = serializers.CharField()
class Meta:
fie... | 27.4 | 77 | 0.640511 | 116 | 1,096 | 5.974138 | 0.422414 | 0.030303 | 0.051948 | 0.05772 | 0.1443 | 0.1443 | 0.1443 | 0.1443 | 0.1443 | 0.1443 | 0 | 0 | 0.262774 | 1,096 | 39 | 78 | 28.102564 | 0.857673 | 0.093978 | 0 | 0.444444 | 0 | 0 | 0.091095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.148148 | 0.074074 | 0 | 0.481481 | 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 |
9768feda92d3f6b15dac1462fa32d753c088bfc3 | 803 | py | Python | model_shapes/custom_loss.py | SIGUSRz/TorchN2N | 53f5c3f9668f433052040aefb88e7ef559b0e27e | [
"MIT"
] | null | null | null | model_shapes/custom_loss.py | SIGUSRz/TorchN2N | 53f5c3f9668f433052040aefb88e7ef559b0e27e | [
"MIT"
] | null | null | null | model_shapes/custom_loss.py | SIGUSRz/TorchN2N | 53f5c3f9668f433052040aefb88e7ef559b0e27e | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
class custom_loss(nn.Module):
def __init__(self,lambda_entropy):
super(custom_loss, self).__init__()
self.lambda_entropy = lambda_entropy
def forward(self, neg_entropy, answer_loss, policy_gradient_losses=None,layout_loss =None):
answer = torch.mean(a... | 38.238095 | 95 | 0.665006 | 99 | 803 | 5.070707 | 0.292929 | 0.167331 | 0.101594 | 0.083665 | 0.115538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237858 | 803 | 20 | 96 | 40.15 | 0.820261 | 0.231631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
976c0780265bd0eaefc0cd4f9e7b15f49e99f0b1 | 12,774 | py | Python | src/pybsd/exceptions.py | matiaspizarro/pybsd-ezjail | f27cce4f5ef5fe5fc63874ced407e3abb94a8667 | [
"BSD-2-Clause"
] | 5 | 2015-08-15T17:04:31.000Z | 2018-02-06T11:56:02.000Z | src/pybsd/exceptions.py | matiaspizarro/pybsd-ezjail | f27cce4f5ef5fe5fc63874ced407e3abb94a8667 | [
"BSD-2-Clause"
] | null | null | null | src/pybsd/exceptions.py | matiaspizarro/pybsd-ezjail | f27cce4f5ef5fe5fc63874ced407e3abb94a8667 | [
"BSD-2-Clause"
] | 1 | 2015-12-29T18:01:27.000Z | 2015-12-29T18:01:27.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import logging
__logger__ = logging.getLogger('pybsd')
class PyBSDError(Exception):
"""Base PyBSD Exception. It is only used to except any PyBSD error and never raised
Attributes
----------
msg : :py:cl... | 34.524324 | 118 | 0.659073 | 1,459 | 12,774 | 5.69294 | 0.11926 | 0.053094 | 0.073682 | 0.086925 | 0.712136 | 0.678786 | 0.634842 | 0.601493 | 0.588731 | 0.588731 | 0 | 0.000198 | 0.209175 | 12,774 | 369 | 119 | 34.617886 | 0.822015 | 0.525755 | 0 | 0.095238 | 0 | 0.071429 | 0.293439 | 0.010583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.02381 | 0.011905 | 0.702381 | 0.011905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
976c7a2f8d7bfaadf8df7b11e656bd616f4c26cc | 1,012 | py | Python | desafio_02.py | hrqlp/EstacionamentoSeuJertuz | 058954a2636feefe13b9829d44e1a57e0938591b | [
"Apache-2.0"
] | null | null | null | desafio_02.py | hrqlp/EstacionamentoSeuJertuz | 058954a2636feefe13b9829d44e1a57e0938591b | [
"Apache-2.0"
] | null | null | null | desafio_02.py | hrqlp/EstacionamentoSeuJertuz | 058954a2636feefe13b9829d44e1a57e0938591b | [
"Apache-2.0"
] | null | null | null | print("#############################################################")
print("## Faturamento Ticket Veículos Estacionamento Seu Jertuz ##")
print("#############################################################")
veiculo = int(input("Digite o numero do Veículo: \n 1 - Moto; \n 2 - Carro de passeio; \n 3 - Pick-Up; \n ... | 40.48 | 128 | 0.549407 | 141 | 1,012 | 3.943262 | 0.375887 | 0.071942 | 0.079137 | 0.115108 | 0.217626 | 0.217626 | 0.217626 | 0.217626 | 0.178058 | 0.178058 | 0 | 0.029162 | 0.186759 | 1,012 | 25 | 129 | 40.48 | 0.646416 | 0 | 0 | 0.26087 | 0 | 0.043478 | 0.556762 | 0.120434 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0 | 0 | 0 | 0.347826 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9774352bc760c8642046e1816ab34a284a428ece | 1,060 | py | Python | backend/app/api/models/event_remediation.py | hollyfoxx/ace2-gui | e0f72cafdd524e0cd66549a9315697aa21ae46fa | [
"Apache-2.0"
] | 1 | 2021-07-16T10:34:22.000Z | 2021-07-16T10:34:22.000Z | backend/app/api/models/event_remediation.py | hollyfoxx/ace2-gui | e0f72cafdd524e0cd66549a9315697aa21ae46fa | [
"Apache-2.0"
] | null | null | null | backend/app/api/models/event_remediation.py | hollyfoxx/ace2-gui | e0f72cafdd524e0cd66549a9315697aa21ae46fa | [
"Apache-2.0"
] | null | null | null | from pydantic import BaseModel, Field, UUID4
from typing import Optional
from uuid import uuid4
from api.models import type_str, validators
class EventRemediationBase(BaseModel):
"""Represents a remediation that can be applied to an event to denote which tasks were taken to clean up after
the attack."""
... | 31.176471 | 114 | 0.763208 | 128 | 1,060 | 6.25 | 0.414063 | 0.03125 | 0.0625 | 0.13125 | 0.295 | 0.24 | 0.24 | 0.24 | 0.13 | 0.13 | 0 | 0.005663 | 0.166981 | 1,060 | 33 | 115 | 32.121212 | 0.90034 | 0.112264 | 0 | 0 | 0 | 0 | 0.216971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.833333 | 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 |
977aae1d3d945aafed9bf3f70ddbd5d131f3eae5 | 1,295 | py | Python | api/utils.py | Zadigo/mycommerce | 145031ebb359389e680a820577a4b6b2d382646d | [
"MIT"
] | null | null | null | api/utils.py | Zadigo/mycommerce | 145031ebb359389e680a820577a4b6b2d382646d | [
"MIT"
] | null | null | null | api/utils.py | Zadigo/mycommerce | 145031ebb359389e680a820577a4b6b2d382646d | [
"MIT"
] | null | null | null | from typing import OrderedDict
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.dispatch import Signal
from imagekit import ImageSpec
from imagekit.processors import ResizeToFill
from rest_framework.pagination import LimitOffsetPagination... | 28.777778 | 97 | 0.708108 | 144 | 1,295 | 6.236111 | 0.5 | 0.044543 | 0.037862 | 0.040089 | 0.057906 | 0.057906 | 0 | 0 | 0 | 0 | 0 | 0.020468 | 0.207722 | 1,295 | 44 | 98 | 29.431818 | 0.854776 | 0 | 0 | 0.117647 | 0 | 0 | 0.106564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.264706 | 0.029412 | 0.676471 | 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 |
9781b0b8b07cc9facb4073d0de6917ca28c036c3 | 1,907 | py | Python | source/apps/renderstylecreator/getfile.py | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | source/apps/renderstylecreator/getfile.py | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | source/apps/renderstylecreator/getfile.py | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | 2 | 2019-06-08T15:59:26.000Z | 2021-02-06T08:13:01.000Z | ################################################################################
#!c:\python27\python.exe
# Author: Robert Wueest, robert.wueest@fhnw.ch
#
# (c) 2012 by FHNW University of Applied Sciences and Arts Northwestern Switzerland
################################################################################
... | 43.340909 | 92 | 0.50603 | 172 | 1,907 | 5.511628 | 0.697674 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011285 | 0.163608 | 1,907 | 44 | 92 | 43.340909 | 0.583072 | 0.224961 | 0 | 0 | 0 | 0 | 0.205607 | 0.024299 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.275862 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
978d4cf0593f9f30c064f99ff91e28f775cc3287 | 311 | py | Python | neo/Network/flightinfo.py | volekerb/neo-python | 5bdded2c339219355cf1d31ae58653b0f94c6e51 | [
"MIT"
] | 387 | 2017-07-17T18:25:54.000Z | 2021-11-18T06:19:47.000Z | neo/Network/flightinfo.py | volekerb/neo-python | 5bdded2c339219355cf1d31ae58653b0f94c6e51 | [
"MIT"
] | 967 | 2017-08-19T15:48:03.000Z | 2021-06-01T21:42:39.000Z | neo/Network/flightinfo.py | volekerb/neo-python | 5bdded2c339219355cf1d31ae58653b0f94c6e51 | [
"MIT"
] | 286 | 2017-07-17T03:44:36.000Z | 2021-11-18T06:19:32.000Z | from datetime import datetime
class FlightInfo:
def __init__(self, node_id, height):
self.node_id: int = node_id
self.height: int = height
self.start_time: int = datetime.utcnow().timestamp()
def reset_start_time(self):
self.start_time = datetime.utcnow().timestamp()
| 25.916667 | 60 | 0.672026 | 40 | 311 | 4.95 | 0.425 | 0.090909 | 0.10101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22508 | 311 | 11 | 61 | 28.272727 | 0.821577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
978d7321cbeb748d3b3b10757f7166fb71e5cef8 | 379 | py | Python | rest_introduction_app/diatlov_pass_challenge.py | Mjusick/rest-api-introduction-app | fabf56abb06db3885e6f95c7cbe962f6483ad822 | [
"MIT"
] | null | null | null | rest_introduction_app/diatlov_pass_challenge.py | Mjusick/rest-api-introduction-app | fabf56abb06db3885e6f95c7cbe962f6483ad822 | [
"MIT"
] | 1 | 2022-03-26T12:45:17.000Z | 2022-03-26T12:45:17.000Z | rest_introduction_app/diatlov_pass_challenge.py | Mjusick/rest-api-introduction-app | fabf56abb06db3885e6f95c7cbe962f6483ad822 | [
"MIT"
] | 17 | 2021-04-01T18:38:40.000Z | 2022-02-28T15:39:26.000Z | from fastapi import FastAPI
from rest_introduction_app.api.challenges.challenge_6 import challenge_6
app = FastAPI(
title='Excursion od Diatlov Pass',
description="Prepare your backback, you're gonna need it!",
version="0.1",
docs_url="/",
redoc_url=None
)
app.include_router(router=challenge_6.ro... | 25.266667 | 72 | 0.71504 | 51 | 379 | 5.117647 | 0.686275 | 0.153257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.184697 | 379 | 14 | 73 | 27.071429 | 0.825243 | 0 | 0 | 0 | 0 | 0 | 0.192612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
97986ebb251c6b79a07e855278db0a019a672546 | 1,425 | py | Python | simulator/run_simulator.py | OREOmini/scheduler | 878e21420c0d386f627ef1a2435795e5978cc456 | [
"Apache-2.0"
] | 1 | 2019-07-08T06:30:48.000Z | 2019-07-08T06:30:48.000Z | simulator/run_simulator.py | OREOmini/scheduler | 878e21420c0d386f627ef1a2435795e5978cc456 | [
"Apache-2.0"
] | null | null | null | simulator/run_simulator.py | OREOmini/scheduler | 878e21420c0d386f627ef1a2435795e5978cc456 | [
"Apache-2.0"
] | null | null | null | import simulator
import os
import json
import subprocess
import yaml
def getFilePath(i):
return "result_data/result_"+str(i)+".yaml"
# DIR = 'result_data' #要统计的文件夹
# file_num = len([name for name in os.listdir(DIR) if os.path.isfile(os.path.join(DIR, name))])
# print (file_num )
def extract_output(stdout):
... | 21.268657 | 95 | 0.569825 | 197 | 1,425 | 4.045685 | 0.380711 | 0.040151 | 0.040151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00738 | 0.239298 | 1,425 | 67 | 96 | 21.268657 | 0.72786 | 0.663158 | 0 | 0 | 0 | 0 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0.058824 | 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 |
97a02e78632f5aa72e913d2649bdaa933473dcb9 | 753 | py | Python | s.py | YUChoe/LCD_Module | 67c0cdc735d8aaf2d967a9268627f3af9be3cb40 | [
"Apache-2.0"
] | null | null | null | s.py | YUChoe/LCD_Module | 67c0cdc735d8aaf2d967a9268627f3af9be3cb40 | [
"Apache-2.0"
] | null | null | null | s.py | YUChoe/LCD_Module | 67c0cdc735d8aaf2d967a9268627f3af9be3cb40 | [
"Apache-2.0"
] | null | null | null | import serial
from binascii import hexlify, unhexlify
class LCDControl():
def __init__(self):
self._s = serial.Serial('/dev/ttyACM0', 9600)
def clear(self):
self.reset_cursor()
self._s.write(b'\xFE\x51')
def reset_cursor(self):
self._s.write(b'\xFE\x45\x00')
def write... | 20.916667 | 57 | 0.557769 | 100 | 753 | 3.99 | 0.44 | 0.087719 | 0.090226 | 0.082707 | 0.140351 | 0.105263 | 0.105263 | 0 | 0 | 0 | 0 | 0.031423 | 0.281541 | 753 | 35 | 58 | 21.514286 | 0.7061 | 0 | 0 | 0 | 0 | 0 | 0.090305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.074074 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97ab7286e836f93e51e89ff0328e037ef013a755 | 7,466 | py | Python | src/signalplotter/qt/plotter_uiDesign.py | jowanpittevils/Databasemanager_Signalplotter | 993152ad15793054df2acf386eb1c9a76610b789 | [
"BSD-3-Clause"
] | null | null | null | src/signalplotter/qt/plotter_uiDesign.py | jowanpittevils/Databasemanager_Signalplotter | 993152ad15793054df2acf386eb1c9a76610b789 | [
"BSD-3-Clause"
] | null | null | null | src/signalplotter/qt/plotter_uiDesign.py | jowanpittevils/Databasemanager_Signalplotter | 993152ad15793054df2acf386eb1c9a76610b789 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'plotter_uiDesign.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | 54.101449 | 114 | 0.726092 | 679 | 7,466 | 7.917526 | 0.238586 | 0.09189 | 0.058594 | 0.061384 | 0.15904 | 0.060268 | 0.032738 | 0 | 0 | 0 | 0 | 0.01058 | 0.164479 | 7,466 | 137 | 115 | 54.49635 | 0.851234 | 0.025449 | 0 | 0 | 1 | 0 | 0.118861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.02459 | 0 | 0.04918 | 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 |
97b5ab018d052f04cb7b65a044efbea88d56b970 | 2,293 | py | Python | TManager.py | Unk9809/GhostProjet | ee704da0ba1f94b920e888c309f313d2c1aa83e0 | [
"MIT"
] | null | null | null | TManager.py | Unk9809/GhostProjet | ee704da0ba1f94b920e888c309f313d2c1aa83e0 | [
"MIT"
] | null | null | null | TManager.py | Unk9809/GhostProjet | ee704da0ba1f94b920e888c309f313d2c1aa83e0 | [
"MIT"
] | 1 | 2022-03-26T21:23:22.000Z | 2022-03-26T21:23:22.000Z | import asyncio
import threading
from utils import createID
class StoppableThread(threading.Thread):
def __init__(self, *args, **kwargs):
super(StoppableThread, self).__init__(*args, **kwargs)
self._stop_event = threading.Event()
def stop(self):
self._stop_event.set()
... | 29.025316 | 89 | 0.594418 | 274 | 2,293 | 4.817518 | 0.226277 | 0.054545 | 0.095455 | 0.05 | 0.373485 | 0.328788 | 0.328788 | 0.301515 | 0.301515 | 0.301515 | 0 | 0.00187 | 0.30048 | 2,293 | 78 | 90 | 29.397436 | 0.821072 | 0 | 0 | 0.296875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0.109375 | 0.046875 | 0.015625 | 0.328125 | 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 |
97bd80e089ae7164f0063f5fe0cd47624507359f | 894 | py | Python | chainerrl/misc/init_like_torch.py | ConnectionMaster/chainerrl | 561a4017c7789c60f1d75403acb3f93858a568bb | [
"MIT"
] | 923 | 2017-06-01T08:27:42.000Z | 2022-03-24T02:17:04.000Z | chainerrl/misc/init_like_torch.py | ConnectionMaster/chainerrl | 561a4017c7789c60f1d75403acb3f93858a568bb | [
"MIT"
] | 374 | 2017-06-02T02:07:50.000Z | 2021-06-29T22:05:38.000Z | chainerrl/misc/init_like_torch.py | ConnectionMaster/chainerrl | 561a4017c7789c60f1d75403acb3f93858a568bb | [
"MIT"
] | 253 | 2017-06-04T10:31:50.000Z | 2022-03-19T15:20:51.000Z | from chainer import links as L
import numpy as np
def init_like_torch(link):
# Mimic torch's default parameter initialization
# TODO(muupan): Use chainer's initializers when it is merged
for li in link.links():
if isinstance(li, L.Linear):
out_channels, in_channels = li.W.shape
... | 42.571429 | 79 | 0.59396 | 136 | 894 | 3.845588 | 0.367647 | 0.034417 | 0.061185 | 0.152964 | 0.527725 | 0.527725 | 0.493308 | 0.493308 | 0.493308 | 0.382409 | 0 | 0.004651 | 0.278523 | 894 | 20 | 80 | 44.7 | 0.806202 | 0.11745 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 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 |
97bee5e46b15fdf29696d1b070649fff9646612c | 3,344 | py | Python | sympy/physics/units/definitions/__init__.py | giorgosgiapis/sympy | 6128b47aa008657715ce5c70b7c3fdd6bd3f1648 | [
"BSD-3-Clause"
] | 445 | 2019-01-26T13:50:26.000Z | 2022-03-18T05:17:38.000Z | Library/lib/python3.7/site-packages/sympy/physics/units/definitions/__init__.py | gengyong/Carnets | 8930a14f69360d4db115a85ff9e0f6efa80fa2e7 | [
"BSD-3-Clause"
] | 242 | 2019-01-29T15:48:27.000Z | 2022-03-31T22:09:21.000Z | Library/lib/python3.7/site-packages/sympy/physics/units/definitions/__init__.py | gengyong/Carnets | 8930a14f69360d4db115a85ff9e0f6efa80fa2e7 | [
"BSD-3-Clause"
] | 31 | 2019-03-10T09:51:27.000Z | 2022-02-14T23:11:12.000Z | from .unit_definitions import (
percent, percents,
permille,
rad, radian, radians,
deg, degree, degrees,
sr, steradian, steradians,
mil, angular_mil, angular_mils,
m, meter, meters,
kg, kilogram, kilograms,
s, second, seconds,
A, ampere, amperes,
K, kelvin, kelvins,
mol, ... | 25.723077 | 65 | 0.674342 | 372 | 3,344 | 5.841398 | 0.736559 | 0.009204 | 0.015647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001965 | 0.239234 | 3,344 | 129 | 66 | 25.922481 | 0.852201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.007752 | 0 | 0.007752 | 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 |
97c6ac81f4ada515ab9108ee8edc9104602b50c1 | 838 | py | Python | jp.atcoder/abc245/abc245_e/30447982.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc245/abc245_e/30447982.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc245/abc245_e/30447982.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import heapq
def main() -> None:
n, m = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = list(map(int, input().split()))
d = list(map(int, input().split()))
# heap
# manage y in heap
# 1. primary key: x (ascending)
... | 22.052632 | 56 | 0.447494 | 123 | 838 | 2.98374 | 0.414634 | 0.081744 | 0.149864 | 0.217984 | 0.283379 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019011 | 0.372315 | 838 | 37 | 57 | 22.648649 | 0.678707 | 0.100239 | 0 | 0 | 0 | 0 | 0.018258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.12 | 0.08 | 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 |
97c8d46b2958c0be875d9187510036757b5b6aab | 1,405 | py | Python | XOR/model/model.py | DiarmuidKelly/predictors | 9087302ab3cc54463807b0777f341b575a8fcc90 | [
"MIT"
] | null | null | null | XOR/model/model.py | DiarmuidKelly/predictors | 9087302ab3cc54463807b0777f341b575a8fcc90 | [
"MIT"
] | null | null | null | XOR/model/model.py | DiarmuidKelly/predictors | 9087302ab3cc54463807b0777f341b575a8fcc90 | [
"MIT"
] | null | null | null | import numpy as np
class Network:
def __init__(self):
self.L1 = Layer(layer_width=2, input_width=1, bias=[0, -1])
def forward(self, x):
x = self.L1.forward(x)
return np.sum(x)
def update_weights(self, adj):
self.L1.update_weights(adj)
class Layer:
def __init__(self,... | 25.089286 | 67 | 0.545196 | 203 | 1,405 | 3.630542 | 0.256158 | 0.067843 | 0.044776 | 0.040706 | 0.149254 | 0.046133 | 0.046133 | 0 | 0 | 0 | 0 | 0.017167 | 0.336655 | 1,405 | 55 | 68 | 25.545455 | 0.773605 | 0 | 0 | 0.325581 | 0 | 0 | 0.022776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.023256 | 0.023256 | 0.395349 | 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 |
97d23c26b77c93ec95038569cd73934980a57095 | 1,594 | py | Python | utils/img2npy.py | wylie-r3pi/panotti | e9db81afe2e41f655e8726118fb9b086495d2df6 | [
"MIT"
] | null | null | null | utils/img2npy.py | wylie-r3pi/panotti | e9db81afe2e41f655e8726118fb9b086495d2df6 | [
"MIT"
] | null | null | null | utils/img2npy.py | wylie-r3pi/panotti | e9db81afe2e41f655e8726118fb9b086495d2df6 | [
"MIT"
] | null | null | null | #! /usr/bin/python3
# Converts Image files format files to numpy, reading whatever image format is given
# does not remove old extension, i.e. new file is ____.jpeg.npy (no reason other than laziness)
# Runs in parallel
# TODO: if <file> is actually a directory, then it should greate a new <directory>.npy
# AND *rec... | 31.88 | 135 | 0.692597 | 230 | 1,594 | 4.665217 | 0.504348 | 0.029823 | 0.026095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003894 | 0.194479 | 1,594 | 49 | 136 | 32.530612 | 0.831776 | 0.242785 | 0 | 0.066667 | 0 | 0 | 0.178185 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97d2e2ce6fb2ba17771efa5e370f369e4d21a13d | 4,068 | py | Python | generate_dummy_data.py | erikqu/Car2Go | 9f23d177662b04a0bd952c068f74ee92e659b6f6 | [
"MIT"
] | 1 | 2019-04-18T21:19:57.000Z | 2019-04-18T21:19:57.000Z | generate_dummy_data.py | erikqu/Car2Go | 9f23d177662b04a0bd952c068f74ee92e659b6f6 | [
"MIT"
] | null | null | null | generate_dummy_data.py | erikqu/Car2Go | 9f23d177662b04a0bd952c068f74ee92e659b6f6 | [
"MIT"
] | null | null | null | import psycopg2
dbname = 'project'
host = 'localhost'
user = 'postgres'
password = 'root' #postgres on laptop, root on desktop
conn = psycopg2.connect(host=host, dbname = dbname, user = user, password = password)
cursor = conn.cursor()
command = '''
insert into Options values ('8001', 'blue','V6','manual');
... | 32.285714 | 120 | 0.645772 | 490 | 4,068 | 5.342857 | 0.281633 | 0.190985 | 0.084416 | 0.123759 | 0.336516 | 0.195569 | 0 | 0 | 0 | 0 | 0 | 0.143826 | 0.165929 | 4,068 | 125 | 121 | 32.544 | 0.627763 | 0.008604 | 0 | 0.402062 | 0 | 0.092784 | 0.815724 | 0.075893 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.020619 | 0.010309 | 0 | 0.010309 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ada38552f6cc3f1bd29bf1d2cc99a03b21839be | 409 | py | Python | rover/RoverHelpers.py | Xalion/RoverSim | 4cc3cef58e12304be7981711c9bdab0d06df4ce6 | [
"MIT"
] | null | null | null | rover/RoverHelpers.py | Xalion/RoverSim | 4cc3cef58e12304be7981711c9bdab0d06df4ce6 | [
"MIT"
] | null | null | null | rover/RoverHelpers.py | Xalion/RoverSim | 4cc3cef58e12304be7981711c9bdab0d06df4ce6 | [
"MIT"
] | null | null | null |
def compute_potential_drain(height_change, rover):
mars_grav_constant = 3.177
potential_change = height_change * rover.mass * mars_grav_constant / 10
return (0, potential_change)[potential_change > 0]
def compute_energy_drain(old_loc, new_loc, rover):
min_adjust = rover.battery_base_movement
min... | 31.461538 | 75 | 0.762836 | 59 | 409 | 4.881356 | 0.440678 | 0.15625 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028902 | 0.154034 | 409 | 12 | 76 | 34.083333 | 0.803468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8addd3c28f50215c688182d9d01f3061f258a695 | 771 | py | Python | pluginmanager/plugin_manager.py | gry/utils | 6db6eaef7cae38efab846b034d7b6365ab9b1f85 | [
"MIT"
] | null | null | null | pluginmanager/plugin_manager.py | gry/utils | 6db6eaef7cae38efab846b034d7b6365ab9b1f85 | [
"MIT"
] | null | null | null | pluginmanager/plugin_manager.py | gry/utils | 6db6eaef7cae38efab846b034d7b6365ab9b1f85 | [
"MIT"
] | 1 | 2021-01-29T22:46:26.000Z | 2021-01-29T22:46:26.000Z | #!/usr/bin/env python
import sys
class PluginManager():
def getPlugins(self, categories = None):
"""Returns the plugin_list of all plugins of the given categories,
or all the plugins if categories is not specified
Returns: List[Subclass<Plugin>]
Params:
categor... | 27.535714 | 90 | 0.625162 | 92 | 771 | 5.021739 | 0.478261 | 0.08658 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003643 | 0.287938 | 771 | 27 | 91 | 28.555556 | 0.837887 | 0.02594 | 0 | 0 | 0 | 0 | 0.015355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8adde301e6f1ed0a9b1b220a42472b8bd8147000 | 524 | py | Python | higgins/nlp/speech2text/__init__.py | bfortuner/higgins | c8ab098c1496ee9b45efc3fc667d894d86031f67 | [
"MIT"
] | null | null | null | higgins/nlp/speech2text/__init__.py | bfortuner/higgins | c8ab098c1496ee9b45efc3fc667d894d86031f67 | [
"MIT"
] | null | null | null | higgins/nlp/speech2text/__init__.py | bfortuner/higgins | c8ab098c1496ee9b45efc3fc667d894d86031f67 | [
"MIT"
] | null | null | null | from higgins import const
from .basic_transcriber import BasicTranscriber # noqa: F401
from .google_transcriber import GoogleTranscriber # noqa: F401
def get_transcriber(name):
if name == "basic":
return BasicTranscriber() # Also Google, but via SpeechRecognition
elif name == "google":
ret... | 34.933333 | 79 | 0.727099 | 54 | 524 | 6.944444 | 0.592593 | 0.090667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01432 | 0.200382 | 524 | 14 | 80 | 37.428571 | 0.880668 | 0.173664 | 0 | 0 | 0 | 0 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8ae2feeb7e8953b178e1ba3a784a3bd252523e74 | 4,923 | py | Python | src/plot_feature_score.py | rafallewanczyk/ml_code_completion | def4364cc14a3c34ab4d2623b2f2743acb04fae4 | [
"MIT"
] | 36 | 2015-10-31T08:14:18.000Z | 2021-12-06T08:28:29.000Z | src/plot_feature_score.py | rafallewanczyk/ml_code_completion | def4364cc14a3c34ab4d2623b2f2743acb04fae4 | [
"MIT"
] | 1 | 2017-02-18T21:04:12.000Z | 2019-11-02T11:13:06.000Z | src/plot_feature_score.py | rafallewanczyk/ml_code_completion | def4364cc14a3c34ab4d2623b2f2743acb04fae4 | [
"MIT"
] | 7 | 2017-06-11T13:39:19.000Z | 2021-11-07T02:18:42.000Z | #!/usr/bin/env python
import cPickle as pkl
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import os
import re
import utils
from windowModel import WindowModel
label_size = 10
mpl.rcParams['xtick.labelsize'] = label_size
mpl.rcParams['ytick.labelsize'] = label_size
"""
Plot each tok... | 41.025 | 102 | 0.624416 | 577 | 4,923 | 5.237435 | 0.308492 | 0.02912 | 0.033752 | 0.023825 | 0.262409 | 0.226671 | 0.147584 | 0.10589 | 0.10589 | 0.052945 | 0 | 0.017969 | 0.25391 | 4,923 | 119 | 103 | 41.369748 | 0.804792 | 0.273207 | 0 | 0.028986 | 0 | 0 | 0.117629 | 0.031941 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115942 | 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 |
8ae3a3228d249c849e64747b2e9ced75e78dbc17 | 281 | py | Python | two_x_two_matrix_determinant_using_numpy.py | 6895mahfuzgit/Linear_Algebra_for_Machine_Learning | 3f266391491d9ab99e53a3547900c6b1bd657af1 | [
"Apache-2.0"
] | null | null | null | two_x_two_matrix_determinant_using_numpy.py | 6895mahfuzgit/Linear_Algebra_for_Machine_Learning | 3f266391491d9ab99e53a3547900c6b1bd657af1 | [
"Apache-2.0"
] | null | null | null | two_x_two_matrix_determinant_using_numpy.py | 6895mahfuzgit/Linear_Algebra_for_Machine_Learning | 3f266391491d9ab99e53a3547900c6b1bd657af1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 20 01:03:24 2021
@author: Mahfuz_Shazol
"""
import numpy as np
X=np.array([
[4,2],
[-5,-3]
])
result =np.linalg.det(X)
print(result)
N=np.array([
[-4,1],
[-8,2]
])
result =np.linalg.det(N)
print(result) | 10.807692 | 35 | 0.544484 | 47 | 281 | 3.234043 | 0.659574 | 0.092105 | 0.105263 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097222 | 0.231317 | 281 | 26 | 36 | 10.807692 | 0.606481 | 0.291815 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.153846 | 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 |
8ae90203e0d9b0a093ac0ec54514710dcf65d6ac | 586 | py | Python | plugins/polio/migrations/0045_auto_20220308_1410.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | null | null | null | plugins/polio/migrations/0045_auto_20220308_1410.py | BLSQ/iaso-copy | 85fb17f408c15e8c2d730416d1312f58f8db39b7 | [
"MIT"
] | null | null | null | plugins/polio/migrations/0045_auto_20220308_1410.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-03-08 14:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("polio", "0044_merge_20220224_1136"),
]
operations = [
migrations.AlterField(
model_name="campaign",
name="virus",
... | 24.416667 | 113 | 0.5 | 57 | 586 | 5.052632 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111688 | 0.343003 | 586 | 23 | 114 | 25.478261 | 0.636364 | 0.078498 | 0 | 0.117647 | 1 | 0 | 0.148699 | 0.04461 | 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 |
8ae98ff0bfb30d8bac0372818e3164f9b8f29499 | 1,177 | py | Python | Python/Django/tutorial/polls/models.py | FanLucifer/knowledge_base | 0bba6e86bfd867bfab1e95b93468e1c7599a96ad | [
"Apache-2.0"
] | 8 | 2019-06-14T09:20:04.000Z | 2019-06-27T01:35:16.000Z | Python/Django/tutorial/polls/models.py | FanLucifer/knowledge_base | 0bba6e86bfd867bfab1e95b93468e1c7599a96ad | [
"Apache-2.0"
] | 15 | 2019-06-17T14:04:58.000Z | 2022-03-30T23:21:23.000Z | Python/Django/tutorial/polls/models.py | FanLucifer/knowledge_base | 0bba6e86bfd867bfab1e95b93468e1c7599a96ad | [
"Apache-2.0"
] | 3 | 2019-06-21T07:21:24.000Z | 2019-06-26T09:46:09.000Z | from django.db import models
from django.utils import timezone
import datetime
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('发布日期')
def __str__(self):
question = {
'id': self.id,
'text': self.que... | 28.707317 | 72 | 0.617672 | 133 | 1,177 | 5.240602 | 0.390977 | 0.121951 | 0.114778 | 0.063128 | 0.088953 | 0.088953 | 0 | 0 | 0 | 0 | 0 | 0.009379 | 0.275276 | 1,177 | 40 | 73 | 29.425 | 0.807737 | 0 | 0 | 0.129032 | 0 | 0 | 0.059807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.096774 | 0 | 0.516129 | 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 |
8aeda809e22780921d2fee5eb3776bb7b462bb6c | 2,069 | py | Python | model.py | yutong-xie/Depth-Estimation-based-on-CNN | c7b72f5001e8c18bde492ce488d4a0397a3d39bf | [
"MIT"
] | null | null | null | model.py | yutong-xie/Depth-Estimation-based-on-CNN | c7b72f5001e8c18bde492ce488d4a0397a3d39bf | [
"MIT"
] | null | null | null | model.py | yutong-xie/Depth-Estimation-based-on-CNN | c7b72f5001e8c18bde492ce488d4a0397a3d39bf | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.nn.functional as F
from torch import optim
import numpy as np
class CoarseNetwork(nn.Module):
def __init__(self):
super(CoarseNetwork, self).__init__()
self.coarse1 = nn.Sequential(
nn.Conv2d(3, 96, 11, ... | 26.87013 | 50 | 0.489125 | 261 | 2,069 | 3.808429 | 0.256705 | 0.024145 | 0.140845 | 0.160966 | 0.293763 | 0.160966 | 0.141851 | 0.04829 | 0 | 0 | 0 | 0.089216 | 0.376994 | 2,069 | 76 | 51 | 27.223684 | 0.681924 | 0 | 0 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0 | 0.084507 | 0 | 0.197183 | 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 |
8aee57cd9c292d03ed6ffc023de86f603e05b0f1 | 1,897 | py | Python | patch_tracking/database/models.py | openeuler-mirror/patch-tracking | 6217cbabdcc85d71eaeecce3bf85380258ed2053 | [
"MulanPSL-1.0"
] | null | null | null | patch_tracking/database/models.py | openeuler-mirror/patch-tracking | 6217cbabdcc85d71eaeecce3bf85380258ed2053 | [
"MulanPSL-1.0"
] | null | null | null | patch_tracking/database/models.py | openeuler-mirror/patch-tracking | 6217cbabdcc85d71eaeecce3bf85380258ed2053 | [
"MulanPSL-1.0"
] | null | null | null | """
module of database model
"""
from patch_tracking.database import db
class Tracking(db.Model):
"""
database model of tracking
"""
id = db.Column(db.Integer, autoincrement=True)
version_control = db.Column(db.String(80))
scm_repo = db.Column(db.String(80))
scm_branch = db.Column(db.Strin... | 27.897059 | 102 | 0.595677 | 243 | 1,897 | 4.460905 | 0.152263 | 0.081181 | 0.101476 | 0.132841 | 0.506458 | 0.403137 | 0.180812 | 0.180812 | 0.092251 | 0.092251 | 0 | 0.013062 | 0.27359 | 1,897 | 67 | 103 | 28.313433 | 0.773585 | 0.056405 | 0 | 0.190476 | 0 | 0 | 0.06272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.02381 | 0.047619 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.