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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
411e33f655c1f2e95800e8a85e892db5e8823d0b | 2,254 | py | Python | semi/unlabel_data.py | DevD1092/face_emotion_recog | 98c517fbb8e536ed889dfd7ed177f74748671e59 | [
"Apache-2.0"
] | 5 | 2018-05-29T07:45:08.000Z | 2021-11-17T10:39:12.000Z | semi/unlabel_data.py | DevD1092/face_emotion_recog | 98c517fbb8e536ed889dfd7ed177f74748671e59 | [
"Apache-2.0"
] | null | null | null | semi/unlabel_data.py | DevD1092/face_emotion_recog | 98c517fbb8e536ed889dfd7ed177f74748671e59 | [
"Apache-2.0"
] | null | null | null | import pandas
import numpy as np
#load dataset
data = pandas.read_csv("fer2013.csv", delimiter=",")
data = data.values
#Number of training data per class in the original dataset
# 0 - 3995
# 1 - 436
# 2 - 4097
# 3 - 7215
# 4 - 4830
# 5 - 3171
# 6 - 4965
X_label = []
Y_label = []
X_unlabel = []
Y_unlabel = []
#Segre... | 22.767677 | 68 | 0.657054 | 431 | 2,254 | 3.185615 | 0.187935 | 0.224326 | 0.163146 | 0.142753 | 0.519301 | 0.519301 | 0.480699 | 0.480699 | 0.480699 | 0.480699 | 0 | 0.071817 | 0.184561 | 2,254 | 98 | 69 | 23 | 0.67519 | 0.158829 | 0 | 0.486111 | 0 | 0 | 0.042599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 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 |
4120be566bcf5a85ade9fc2c4625f93ef23419b9 | 11,577 | py | Python | pyleecan/Classes/LossModelSteinmetz.py | Eomys/Pyleecan | 4d7f0cbabf0311006963e7a2f435db2ecd901118 | [
"Apache-2.0"
] | 4 | 2017-11-27T10:14:34.000Z | 2018-09-20T11:30:32.000Z | pyleecan/Classes/LossModelSteinmetz.py | Eomys/Pyleecan | 4d7f0cbabf0311006963e7a2f435db2ecd901118 | [
"Apache-2.0"
] | null | null | null | pyleecan/Classes/LossModelSteinmetz.py | Eomys/Pyleecan | 4d7f0cbabf0311006963e7a2f435db2ecd901118 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# File generated according to Generator/ClassesRef/Simulation/LossModelSteinmetz.csv
# WARNING! All changes made in this file will be lost!
"""Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Simulation/LossModelSteinmetz
"""
from os import linesep
from sy... | 32.796034 | 120 | 0.575019 | 1,466 | 11,577 | 4.260573 | 0.154161 | 0.018252 | 0.016811 | 0.01537 | 0.26561 | 0.194364 | 0.087096 | 0.053154 | 0.020493 | 0.020493 | 0 | 0.001693 | 0.336702 | 11,577 | 352 | 121 | 32.889205 | 0.811694 | 0.217759 | 0 | 0.192 | 1 | 0 | 0.073276 | 0 | 0 | 0 | 0 | 0 | 0.004 | 1 | 0.064 | false | 0.016 | 0.064 | 0 | 0.228 | 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 |
412c8729359c99604b86cc32059f33057084be55 | 497 | py | Python | qt_actor/messages.py | heartsucker/qt-actor | 3bba9d8d2db475cc16ec92ad84830cb7a8ed9f74 | [
"MIT"
] | null | null | null | qt_actor/messages.py | heartsucker/qt-actor | 3bba9d8d2db475cc16ec92ad84830cb7a8ed9f74 | [
"MIT"
] | null | null | null | qt_actor/messages.py | heartsucker/qt-actor | 3bba9d8d2db475cc16ec92ad84830cb7a8ed9f74 | [
"MIT"
] | null | null | null | class StopType:
"""
Message type that will cause an actor to exit when sent an instance of this class, even with a
non-empty inbox.
"""
__INSTANCE = None
def __new__(cls):
if StopType.__INSTANCE is None:
StopType.__INSTANCE = super().__new__(cls)
return StopType.__... | 23.666667 | 98 | 0.647887 | 67 | 497 | 4.447761 | 0.537313 | 0.161074 | 0.100671 | 0.127517 | 0.308725 | 0.147651 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269618 | 497 | 20 | 99 | 24.85 | 0.820937 | 0.22334 | 0 | 0 | 0 | 0 | 0.218579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.1 | 0.6 | 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 |
412cd009351aecc4ddfb2d03a8c7f7b5bd444fe1 | 938 | py | Python | ABC085/ABC085c.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | ABC085/ABC085c.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | ABC085/ABC085c.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | import sys
sys.setrecursionlimit(20000)
n, y = map(int, input().split())
memo = {}
def unchi(maisu, kane, a, b, c):
if(maisu == 0):
if(kane == 0):
return [a, b, c]
else:
return False
elif(kane < 1000):
return False
if((maisu, kane) in memo):
retur... | 20.844444 | 57 | 0.526652 | 130 | 938 | 3.8 | 0.253846 | 0.12753 | 0.131579 | 0.161943 | 0.394737 | 0.350202 | 0.350202 | 0 | 0 | 0 | 0 | 0.062403 | 0.316631 | 938 | 44 | 58 | 21.318182 | 0.708268 | 0 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.277778 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
412cdde1ccfbf4eaa8ff732f07208f92a1e2b552 | 2,065 | py | Python | main.py | hobincar/video-classification-3d-cnn-pytorch | ff72c0bab233966231ccb5f2edfa57bdafb727ff | [
"MIT"
] | 1 | 2021-07-14T13:39:54.000Z | 2021-07-14T13:39:54.000Z | main.py | hobincar/video-classification-3d-cnn-pytorch | ff72c0bab233966231ccb5f2edfa57bdafb727ff | [
"MIT"
] | null | null | null | main.py | hobincar/video-classification-3d-cnn-pytorch | ff72c0bab233966231ccb5f2edfa57bdafb727ff | [
"MIT"
] | 2 | 2019-11-07T08:56:04.000Z | 2021-02-10T03:34:06.000Z | import os
import sys
import json
import subprocess
import h5py
import numpy as np
import torch
from torch import nn
from opts import parse_opts
from model import generate_model
from mean import get_mean
from classify import classify_video
if __name__=="__main__":
opt = parse_opts()
opt.mean = get_mean()
o... | 28.287671 | 88 | 0.609685 | 280 | 2,065 | 4.328571 | 0.342857 | 0.057756 | 0.039604 | 0.034653 | 0.122112 | 0.122112 | 0.10231 | 0.077558 | 0.077558 | 0.077558 | 0 | 0.009901 | 0.266344 | 2,065 | 72 | 89 | 28.680556 | 0.790099 | 0 | 0 | 0.15 | 1 | 0 | 0.093508 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5c75ff8aded214cc6d9b25ab6a4edf1d4b3f1b7 | 905 | py | Python | models/mrcnn_model_config.py | nazariinyzhnyk/fashion-img-segmentation | 99bc08fcda1fbc6453442b0d96a84bf40e7d0c4a | [
"MIT"
] | 1 | 2020-05-30T02:33:45.000Z | 2020-05-30T02:33:45.000Z | models/mrcnn_model_config.py | nazariinyzhnyk/fashion-img-segmentation | 99bc08fcda1fbc6453442b0d96a84bf40e7d0c4a | [
"MIT"
] | null | null | null | models/mrcnn_model_config.py | nazariinyzhnyk/fashion-img-segmentation | 99bc08fcda1fbc6453442b0d96a84bf40e7d0c4a | [
"MIT"
] | null | null | null | import os
from mrcnn.config import Config
from data_processing import get_label_names, read_json_conf_file
conf_file = read_json_conf_file(os.path.join('..', 'mrcnn_config.json'))
conf_file = conf_file['model_params']
class MrcnnConfig(Config):
NUM_CLASSES = len(get_label_names(os.path.join('..', 'data', 'label... | 28.28125 | 97 | 0.744751 | 132 | 905 | 4.659091 | 0.340909 | 0.195122 | 0.058537 | 0.052033 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.141436 | 905 | 31 | 98 | 29.193548 | 0.787645 | 0 | 0 | 0 | 0 | 0 | 0.205525 | 0.025414 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.9 | 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 |
f5cdf50aa8030c9eab0e267a89781214df778e5e | 1,233 | py | Python | 2algo/multi_mqtt_test.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 2algo/multi_mqtt_test.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | null | null | null | 2algo/multi_mqtt_test.py | allengrr/deadlock_project | 933878077c45a7df04daa087407bb2620c064617 | [
"MIT"
] | 1 | 2021-03-21T17:54:26.000Z | 2021-03-21T17:54:26.000Z | import paho.mqtt.client as mqtt
import os
import socket
def ip_address():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
return s.getsockname()[0]
os.system('clear')
print('-----------------------------------')
print('Welcome to MQTT Subscriber client')
print('----------... | 26.234043 | 61 | 0.671533 | 159 | 1,233 | 5.062893 | 0.440252 | 0.064596 | 0.007453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018639 | 0.129765 | 1,233 | 47 | 62 | 26.234043 | 0.731594 | 0.151663 | 0 | 0.096774 | 0 | 0 | 0.220729 | 0.100768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.064516 | 0.096774 | 0 | 0.225806 | 0.225806 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f5d0e37c0d83804c397649dbebec7d6b04548ad5 | 380 | py | Python | first.py | mhbkamaei/DevNet | 135f007116ac54bd659192a63cdf46f63ded2af1 | [
"MIT"
] | null | null | null | first.py | mhbkamaei/DevNet | 135f007116ac54bd659192a63cdf46f63ded2af1 | [
"MIT"
] | null | null | null | first.py | mhbkamaei/DevNet | 135f007116ac54bd659192a63cdf46f63ded2af1 | [
"MIT"
] | null | null | null | from netmiko import ConnectHandler
from netmiko import SSHDetect
device = {
"device_type": "cisco_ios",
"host": "10.10.10.10",
"username": "cisco",
"password": "cisco"
}
ssh = ConnectHandler(**device)
print(ssh.find_prompt())
#print(con.send_command('show version'))
ssh.enable()
ssh.send_config_set('h... | 21.111111 | 40 | 0.705263 | 49 | 380 | 5.326531 | 0.571429 | 0.045977 | 0.130268 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02719 | 0.128947 | 380 | 17 | 41 | 22.352941 | 0.761329 | 0.102632 | 0 | 0.142857 | 0 | 0 | 0.226471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f5ed89c9dd20524aa1e6cadb679899784511dd1c | 882 | py | Python | setup.py | mivade/logserver | eadb1223007a309e598300a95e7901e19a1018d5 | [
"MIT"
] | null | null | null | setup.py | mivade/logserver | eadb1223007a309e598300a95e7901e19a1018d5 | [
"MIT"
] | 2 | 2017-05-12T21:13:59.000Z | 2018-06-28T17:46:46.000Z | setup.py | mivade/logserver | eadb1223007a309e598300a95e7901e19a1018d5 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from logserver import __version__
with open("README.rst", 'r') as f:
readme = f.read()
setup(
name="logserver",
version=__version__,
author="Michael V. DePalatis",
author_email="mike@depalatis.net",
description="Reusable, dependency-free log server"... | 30.413793 | 55 | 0.633787 | 90 | 882 | 6.077778 | 0.611111 | 0.173675 | 0.228519 | 0.142596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013393 | 0.238095 | 882 | 28 | 56 | 31.5 | 0.800595 | 0 | 0 | 0 | 0 | 0 | 0.510204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 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 |
f5eee1eaad8e42a97d7a72fa9b1ba6c10cab616b | 267 | py | Python | tests/tangelo-version.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 40 | 2015-01-09T02:56:33.000Z | 2019-03-01T05:34:13.000Z | tests/tangelo-version.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 98 | 2015-01-05T12:51:29.000Z | 2019-01-23T20:16:48.000Z | tests/tangelo-version.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 21 | 2015-01-05T19:11:49.000Z | 2020-08-19T04:16:16.000Z | import nose
import requests
import fixture
@nose.with_setup(fixture.start_tangelo, fixture.stop_tangelo)
def test_version():
response = requests.get(fixture.plugin_url("tangelo", "version"))
expected = "0.10.0-dev"
assert response.content == expected
| 20.538462 | 69 | 0.745318 | 35 | 267 | 5.542857 | 0.628571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.138577 | 267 | 12 | 70 | 22.25 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 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 |
f5f34ed57079b75f5ac079abca121efb3818f415 | 1,275 | py | Python | src/classifier.py | MLPRA/embedded_resnet | 149c6e6ad2674a3bf7f528170a38474d97063ac8 | [
"MIT"
] | null | null | null | src/classifier.py | MLPRA/embedded_resnet | 149c6e6ad2674a3bf7f528170a38474d97063ac8 | [
"MIT"
] | null | null | null | src/classifier.py | MLPRA/embedded_resnet | 149c6e6ad2674a3bf7f528170a38474d97063ac8 | [
"MIT"
] | null | null | null | import chainer
from chainer import reporter
class Classifier(chainer.links.Classifier):
compute_accuracy = False
def __call__(self, *args, **kwargs):
if isinstance(self.label_key, int):
if not (-len(args) <= self.label_key < len(args)):
msg = 'Label key %d is out of bounds... | 36.428571 | 72 | 0.557647 | 160 | 1,275 | 4.33125 | 0.30625 | 0.161616 | 0.207792 | 0.092352 | 0.155844 | 0.155844 | 0.089466 | 0 | 0 | 0 | 0 | 0.006928 | 0.320784 | 1,275 | 34 | 73 | 37.5 | 0.793303 | 0 | 0 | 0.066667 | 0 | 0 | 0.060392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
f5f5f4339d1eaa62187e24bdb807d2a7f7353722 | 262 | py | Python | Misc/enumarate.py | Jigyanshu17/Python-Ka-Saara-Gyaan | d3f5dbb3fef45a7a6953bf6041b0b3bf6c54ad2b | [
"Apache-2.0"
] | null | null | null | Misc/enumarate.py | Jigyanshu17/Python-Ka-Saara-Gyaan | d3f5dbb3fef45a7a6953bf6041b0b3bf6c54ad2b | [
"Apache-2.0"
] | null | null | null | Misc/enumarate.py | Jigyanshu17/Python-Ka-Saara-Gyaan | d3f5dbb3fef45a7a6953bf6041b0b3bf6c54ad2b | [
"Apache-2.0"
] | null | null | null | l1 = ["Bhindi","Aloo","Chopsticks","Chowmein"]
i = 1
# for item in l1:
# if i%2 != 0:
# print(f"Please buy {item}")
# i+=1
for index,item in enumerate(l1):
if index%2==0: # even 0 se start
print(f"Please buy {item}")
| 18.714286 | 47 | 0.51145 | 41 | 262 | 3.268293 | 0.536585 | 0.029851 | 0.074627 | 0.223881 | 0.283582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055249 | 0.30916 | 262 | 13 | 48 | 20.153846 | 0.685083 | 0.354962 | 0 | 0 | 0 | 0 | 0.304054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
f5fa5dac43efdbf17cc7114d433af3c8e7f6cb86 | 3,138 | py | Python | Stack_and_Queue/S_and_Q_Review.py | misscindy/Interview | eab43da97e61fcc3d0278408f8f4ea709eed14e6 | [
"CC0-1.0"
] | null | null | null | Stack_and_Queue/S_and_Q_Review.py | misscindy/Interview | eab43da97e61fcc3d0278408f8f4ea709eed14e6 | [
"CC0-1.0"
] | 1 | 2015-04-23T20:05:24.000Z | 2015-04-23T20:07:45.000Z | Stack_and_Queue/S_and_Q_Review.py | misscindy/Interview | eab43da97e61fcc3d0278408f8f4ea709eed14e6 | [
"CC0-1.0"
] | null | null | null | # Stack & Queue Review
# 9.3 valid paren
# 9.4 Longest Valid Paren
# "(()))(()())"
def longest_valid(s):
left_p, max_len, end = [], 0, -1
for ndx, p in enumerate(s):
if p == "(":
left_p.append(ndx)
# see a ")"
else:
if not left_p:
end = ndx
... | 19.134146 | 59 | 0.539197 | 425 | 3,138 | 3.842353 | 0.247059 | 0.018371 | 0.020821 | 0.012247 | 0.073484 | 0.073484 | 0 | 0 | 0 | 0 | 0 | 0.020982 | 0.33174 | 3,138 | 163 | 60 | 19.251534 | 0.757749 | 0.085723 | 0 | 0.071429 | 0 | 0 | 0.045614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010204 | null | null | 0.091837 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb04033a55b0328643fa7723f3d6c043b01b74d6 | 656 | py | Python | web/impact/impact/tests/test_timestamps.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 5 | 2017-10-19T15:11:52.000Z | 2020-03-08T07:16:21.000Z | web/impact/impact/tests/test_timestamps.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 182 | 2017-06-21T19:32:13.000Z | 2021-03-22T13:38:16.000Z | web/impact/impact/tests/test_timestamps.py | masschallenge/impact-api | 81075ced8fcc95de9390dd83c15e523e67fc48c0 | [
"MIT"
] | 1 | 2018-06-23T11:53:18.000Z | 2018-06-23T11:53:18.000Z | # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
from test_plus.test import TestCase
from impact.tests.factories import (
FunctionalExpertiseFactory,
IndustryFactory,
StartupProgramInterestFactory,
StartupFactory,
)
class TestTimestamps(TestCase):
def test_startup(self):
startup = S... | 27.333333 | 55 | 0.672256 | 59 | 656 | 7.322034 | 0.59322 | 0.189815 | 0.324074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.262195 | 656 | 23 | 56 | 28.521739 | 0.884298 | 0.07622 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb0445d8edbe9629ea168d209460f6ac13596288 | 1,135 | py | Python | pysondb/core/utils.py | vishalbelsare/pysonDB | f622513077064a7c7f381bcc32f834616c9f3dde | [
"MIT"
] | null | null | null | pysondb/core/utils.py | vishalbelsare/pysonDB | f622513077064a7c7f381bcc32f834616c9f3dde | [
"MIT"
] | null | null | null | pysondb/core/utils.py | vishalbelsare/pysonDB | f622513077064a7c7f381bcc32f834616c9f3dde | [
"MIT"
] | 1 | 2021-10-25T00:03:14.000Z | 2021-10-25T00:03:14.000Z | import json
import os
from typing import Any
from typing import Dict
from uuid import uuid4
from .errors import DataError
def verify_data(data: Dict[str, Any], db: Dict[str, Dict[str, Any]]) -> bool:
if db:
if sorted(list(db.values())[0]) == sorted(list(data)):
return True
else:
... | 25.222222 | 97 | 0.598238 | 161 | 1,135 | 4.136646 | 0.391304 | 0.052553 | 0.045045 | 0.039039 | 0.057057 | 0.057057 | 0 | 0 | 0 | 0 | 0 | 0.006219 | 0.29163 | 1,135 | 44 | 98 | 25.795455 | 0.822139 | 0.082819 | 0 | 0.2 | 0 | 0 | 0.082126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.2 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eb05a49cbe3006fe7d92f695a1bac6b7ca2c58a2 | 460 | py | Python | project/server/__init__.py | rochacbruno/flask-redis-queue | 1615d9fe1ad6658343d58df22e6aca63a3ffbbf3 | [
"MIT"
] | 1 | 2021-08-12T18:27:28.000Z | 2021-08-12T18:27:28.000Z | project/server/__init__.py | rochacbruno/flask-redis-queue | 1615d9fe1ad6658343d58df22e6aca63a3ffbbf3 | [
"MIT"
] | null | null | null | project/server/__init__.py | rochacbruno/flask-redis-queue | 1615d9fe1ad6658343d58df22e6aca63a3ffbbf3 | [
"MIT"
] | null | null | null | # project/server/__init__.py
import os
from flask import Flask
from flask_bootstrap import Bootstrap
app = Flask(
__name__,
template_folder='../client/templates',
static_folder='../client/static'
)
app_settings = os.getenv('APP_SETTINGS', 'project.server.config.DevelopmentConfig')
app.config.from_obj... | 18.4 | 83 | 0.778261 | 58 | 460 | 5.862069 | 0.431034 | 0.114706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117391 | 460 | 24 | 84 | 19.166667 | 0.837438 | 0.056522 | 0 | 0 | 0 | 0 | 0.199074 | 0.090278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
eb06d25824ff965784c57f29468b855c8c92907b | 978 | py | Python | programa.py | MarcosSerra1/PROGRAMA-DE-CALCULO-DE-IMC-E-IDADE | c5a4db4cf236c3450bd64e3c34d4ff031cefd66c | [
"MIT"
] | null | null | null | programa.py | MarcosSerra1/PROGRAMA-DE-CALCULO-DE-IMC-E-IDADE | c5a4db4cf236c3450bd64e3c34d4ff031cefd66c | [
"MIT"
] | null | null | null | programa.py | MarcosSerra1/PROGRAMA-DE-CALCULO-DE-IMC-E-IDADE | c5a4db4cf236c3450bd64e3c34d4ff031cefd66c | [
"MIT"
] | null | null | null | """
Programa para calculo de IMC e idade.
"""
print('=' * 40)
print()
print('Caro ussuario colocar "." no lugar ","')
print('-' * 40)
nome = str(input('Qual é o seu nome? '))
ano_nasc = int(input('Em que ano você nasceu? '))
altura = float(input('Qual é a sua altura? '))
peso = float(input('Qual é o seu peso?(kg)'))
a... | 27.166667 | 70 | 0.624744 | 165 | 978 | 3.678788 | 0.369697 | 0.057661 | 0.107084 | 0.131796 | 0.266886 | 0.112026 | 0.112026 | 0.112026 | 0.112026 | 0 | 0 | 0.03934 | 0.194274 | 978 | 35 | 71 | 27.942857 | 0.730964 | 0.037832 | 0 | 0.225806 | 0 | 0.032258 | 0.44373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.548387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
eb190247e0bf4bd58d5616f69e726c08df2153ea | 2,772 | py | Python | autoscalingsim/desired_state/placement.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | 6 | 2021-03-10T16:23:10.000Z | 2022-01-14T04:57:46.000Z | autoscalingsim/desired_state/placement.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | null | null | null | autoscalingsim/desired_state/placement.py | Remit/autoscaling-simulator | 091943c0e9eedf9543e9305682a067ab60f56def | [
"MIT"
] | 1 | 2022-01-14T04:57:55.000Z | 2022-01-14T04:57:55.000Z | from .service_group.group_of_services import GroupOfServices
from autoscalingsim.infrastructure_platform.node_information.system_resource_usage import SystemResourceUsage
class InNodePlacement:
def __init__(self, node_info : 'NodeInfo',
system_resource_usage : SystemResourceUsage,
... | 32.232558 | 125 | 0.675325 | 293 | 2,772 | 5.83959 | 0.238908 | 0.046756 | 0.066628 | 0.067212 | 0.24547 | 0.171245 | 0.139684 | 0.094097 | 0.075979 | 0.075979 | 0 | 0.000967 | 0.253608 | 2,772 | 85 | 126 | 32.611765 | 0.826003 | 0.00974 | 0 | 0.134615 | 0 | 0 | 0.033248 | 0.026306 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.038462 | 0.096154 | 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 |
eb20e1e40ffd82369eeaa44380b5914df1ab2ef3 | 227 | py | Python | 14910.py | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | 14910.py | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | 14910.py | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | inp = [eval(i) for i in input().split()]
lst = list(inp)
lst.sort()
sort = True
for i in range(len(lst)):
if lst[i] == inp[i]:
pass
else:
sort = False
if sort:
print("Good")
else:
print("Bad") | 14.1875 | 40 | 0.528634 | 37 | 227 | 3.243243 | 0.540541 | 0.066667 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290749 | 227 | 16 | 41 | 14.1875 | 0.745342 | 0 | 0 | 0.153846 | 0 | 0 | 0.030702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
eb22a1ab3c5d4f048a5907ce2e2ee5c18114fe18 | 14,009 | py | Python | graph.py | killa1218/sense2guass | cf81901f1b59e6070b4fcabced7668aa99f7a929 | [
"MIT"
] | null | null | null | graph.py | killa1218/sense2guass | cf81901f1b59e6070b4fcabced7668aa99f7a929 | [
"MIT"
] | null | null | null | graph.py | killa1218/sense2guass | cf81901f1b59e6070b4fcabced7668aa99f7a929 | [
"MIT"
] | null | null | null | # coding=utf8
import tensorflow as tf
from options import Options as opt
from tqdm import tqdm
import time
if opt.energy == 'KL':
print("Using KL Energy")
from utils.distance import diagKL as dist
elif opt.energy == 'CE':
print("Using CE Energy")
from utils.distance import diagCE as dist
elif opt.ener... | 61.986726 | 332 | 0.611107 | 1,519 | 14,009 | 5.539829 | 0.093483 | 0.026619 | 0.081878 | 0.119667 | 0.773856 | 0.72347 | 0.648841 | 0.629828 | 0.548307 | 0.496257 | 0 | 0.005264 | 0.254194 | 14,009 | 225 | 333 | 62.262222 | 0.800153 | 0.583839 | 0 | 0.1 | 0 | 0 | 0.049701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.1125 | 0 | 0.1625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb25a134fc7852313e65252764983dfd9f83b075 | 3,870 | py | Python | frameworks/pycellchem-2.0/src/artchem/KeyMultiset.py | danielrcardenas/ac-course-2017 | 515512f27b5fd2ff8693eba1b3d8050b1580ec93 | [
"Apache-2.0"
] | null | null | null | frameworks/pycellchem-2.0/src/artchem/KeyMultiset.py | danielrcardenas/ac-course-2017 | 515512f27b5fd2ff8693eba1b3d8050b1580ec93 | [
"Apache-2.0"
] | null | null | null | frameworks/pycellchem-2.0/src/artchem/KeyMultiset.py | danielrcardenas/ac-course-2017 | 515512f27b5fd2ff8693eba1b3d8050b1580ec93 | [
"Apache-2.0"
] | null | null | null | #---------------------------------------------------------------------------
#
# KeyMultiset: a multiset indexed by a given key.
#
# the key is usually a substring of the molecule, akin to a binding site,
# but it can also be a shorter tag that is computed from the information
# within the molecule
#
# by Lidia Yamamot... | 34.553571 | 77 | 0.595349 | 516 | 3,870 | 4.457364 | 0.30814 | 0.086087 | 0.054783 | 0.024783 | 0.204783 | 0.147826 | 0.045652 | 0.024348 | 0.024348 | 0.024348 | 0 | 0.007077 | 0.269767 | 3,870 | 111 | 78 | 34.864865 | 0.806794 | 0.329457 | 0 | 0.14 | 0 | 0 | 0.004477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02 | null | null | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb29517f70911a7fab21ae136212a1eadf5b4a18 | 1,901 | py | Python | projectmanager/migrations/0020_materialrequest.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | 1 | 2020-09-19T21:56:40.000Z | 2020-09-19T21:56:40.000Z | projectmanager/migrations/0020_materialrequest.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | null | null | null | projectmanager/migrations/0020_materialrequest.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | 5 | 2020-09-18T18:53:03.000Z | 2020-10-21T14:42:00.000Z | # Generated by Django 3.1 on 2020-09-25 09:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('projectmanager', '0019_auto_20200925_0304'),
]
operations = [
migrations.CreateModel(
name='Mater... | 57.606061 | 290 | 0.650184 | 203 | 1,901 | 5.955665 | 0.399015 | 0.081886 | 0.069479 | 0.109181 | 0.313482 | 0.277089 | 0.277089 | 0.237386 | 0.186104 | 0.142266 | 0 | 0.022339 | 0.199369 | 1,901 | 32 | 291 | 59.40625 | 0.772011 | 0.02262 | 0 | 0 | 1 | 0 | 0.278556 | 0.090517 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb29f5c7f997ae5158fe20ff1bf0f22334d88c1e | 725 | py | Python | users/views.py | vkaidalov/optimus-type.api-server | eeb96e4acbc7e3eb67a00a21f95bc9a6c480ee37 | [
"MIT"
] | null | null | null | users/views.py | vkaidalov/optimus-type.api-server | eeb96e4acbc7e3eb67a00a21f95bc9a6c480ee37 | [
"MIT"
] | 4 | 2021-03-30T14:39:33.000Z | 2021-09-22T19:23:18.000Z | users/views.py | vkaidalov/optimus-type.api-server | eeb96e4acbc7e3eb67a00a21f95bc9a6c480ee37 | [
"MIT"
] | null | null | null | from django.utils.decorators import method_decorator
from rest_framework import viewsets, permissions, filters
from drf_yasg.utils import swagger_auto_schema
from .models import User
from .serializers import UserSerializer
@method_decorator(
name='list', decorator=swagger_auto_schema(tags=['users'])
)
@method_de... | 32.954545 | 68 | 0.783448 | 80 | 725 | 6.8875 | 0.575 | 0.08167 | 0.092559 | 0.094374 | 0.127042 | 0.127042 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118621 | 725 | 21 | 69 | 34.52381 | 0.862285 | 0 | 0 | 0.111111 | 0 | 0 | 0.052414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.277778 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eb2e1fddcdce5f7818d3227dc02a1e6ec6dffcda | 299 | py | Python | solutions/linked_list_binary_to_decimal/__main__.py | ansonmiu0214/dsa-worked-solutions | 88801d268b78506edd77e771c29b4c9f4ae0f59a | [
"MIT"
] | null | null | null | solutions/linked_list_binary_to_decimal/__main__.py | ansonmiu0214/dsa-worked-solutions | 88801d268b78506edd77e771c29b4c9f4ae0f59a | [
"MIT"
] | null | null | null | solutions/linked_list_binary_to_decimal/__main__.py | ansonmiu0214/dsa-worked-solutions | 88801d268b78506edd77e771c29b4c9f4ae0f59a | [
"MIT"
] | null | null | null | from .solution import getDecimalValue
from ..utils import io, ListNode
print(f'Enter space-separated digits of binary number:', end=' ')
binaryNumber = io.get_list(int)
linkedList = ListNode.fromList(binaryNumber)
decimalValue = getDecimalValue(linkedList)
print(f'{binaryNumber} = {decimalValue}') | 37.375 | 65 | 0.789298 | 35 | 299 | 6.714286 | 0.685714 | 0.051064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09699 | 299 | 8 | 66 | 37.375 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb35c580c67910fc18867b2273ac68599fcf99ef | 650 | py | Python | findk.py | quake0day/oj | c09333d1738f8735de0d5d825db6f4b707585670 | [
"MIT"
] | null | null | null | findk.py | quake0day/oj | c09333d1738f8735de0d5d825db6f4b707585670 | [
"MIT"
] | null | null | null | findk.py | quake0day/oj | c09333d1738f8735de0d5d825db6f4b707585670 | [
"MIT"
] | null | null | null | a = "leetcode"
b = "codyabs"
k = 3
def findK(a,b, k):
m = len(a)
n = len(b)
h = {}
for i in xrange(m-k):
h[a[i:i+k]] = True
#dp = [[False] * n for _ in range(m)]
#dp[0][0] = True
for j in xrange(n-k):
if b[j:j+k] in h:
return True
def findKDP(a,b,k):
m = len... | 20.3125 | 44 | 0.424615 | 125 | 650 | 2.192 | 0.216 | 0.029197 | 0.043796 | 0.058394 | 0.094891 | 0.094891 | 0.094891 | 0.094891 | 0.094891 | 0 | 0 | 0.0325 | 0.384615 | 650 | 32 | 45 | 20.3125 | 0.6525 | 0.092308 | 0 | 0.24 | 0 | 0 | 0.02551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb3b05d19194b16091a2684f3caeee500d77b859 | 3,069 | py | Python | github_comments/git_util.py | alikins/github-comments | 6ccca44d6f6fa87cdeaffe65ef695cb2b099d707 | [
"MIT"
] | 1 | 2015-11-05T14:32:35.000Z | 2015-11-05T14:32:35.000Z | github_comments/git_util.py | alikins/github-comments | 6ccca44d6f6fa87cdeaffe65ef695cb2b099d707 | [
"MIT"
] | 1 | 2016-03-13T22:56:54.000Z | 2016-03-14T01:35:58.000Z | github_comments/git_util.py | alikins/github-comments | 6ccca44d6f6fa87cdeaffe65ef695cb2b099d707 | [
"MIT"
] | null | null | null | # miscelanous git utility methods
#
# mostly wrappers around cli invocations
import logging
import subprocess
import sys
log = logging.getLogger(__name__)
# I love regular expressions as much as the next guy, but
# sometimes I just dont want to use them
def find_github_repos():
"""Find remotes that are github, ... | 33.725275 | 86 | 0.628218 | 416 | 3,069 | 4.415865 | 0.329327 | 0.041916 | 0.039194 | 0.048993 | 0.148612 | 0.148612 | 0.107784 | 0.042461 | 0.042461 | 0 | 0 | 0.006176 | 0.261323 | 3,069 | 90 | 87 | 34.1 | 0.804146 | 0.192571 | 0 | 0.125 | 0 | 0 | 0.115494 | 0.00976 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.053571 | false | 0 | 0.053571 | 0 | 0.178571 | 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 |
eb461f3482e33096389ee4899d73c06e2f20327d | 814 | py | Python | research/packages_setup.py | datadonK23/Engine | 8f69747fcf18325d1e72dc1ee970e1367db66f68 | [
"Apache-2.0"
] | 2 | 2018-12-26T09:20:13.000Z | 2021-11-14T11:39:21.000Z | research/packages_setup.py | datadonK23/Engine | 8f69747fcf18325d1e72dc1ee970e1367db66f68 | [
"Apache-2.0"
] | 9 | 2018-10-07T14:54:45.000Z | 2018-10-17T16:29:06.000Z | research/packages_setup.py | datadonK23/Engine | 8f69747fcf18325d1e72dc1ee970e1367db66f68 | [
"Apache-2.0"
] | 1 | 2018-10-07T15:11:58.000Z | 2018-10-07T15:11:58.000Z | import numpy as np
import pandas as pd
# Install packages and libraries
# This only needs to be done once per notebook.
# installing nltk and its packages
import nltk
nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')
nltk.download('brown')
# Installing textract
!apt-get install python-dev libxml2-... | 24.666667 | 69 | 0.791155 | 114 | 814 | 5.631579 | 0.614035 | 0.056075 | 0.034268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007184 | 0.144963 | 814 | 32 | 70 | 25.4375 | 0.91523 | 0.468059 | 0 | 0 | 0 | 0 | 0.085511 | 0.061758 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
de18fc5b98958185c76f818c89d8cf65cab8d279 | 1,132 | py | Python | app/__init__.py | VirginiaNdungu1/ugatuzi | 931e2a6cc6110482d1a8f1121e0b322d905f9e57 | [
"MIT"
] | 1 | 2018-06-13T15:52:25.000Z | 2018-06-13T15:52:25.000Z | app/__init__.py | VirginiaNdungu1/ugatuzi | 931e2a6cc6110482d1a8f1121e0b322d905f9e57 | [
"MIT"
] | null | null | null | app/__init__.py | VirginiaNdungu1/ugatuzi | 931e2a6cc6110482d1a8f1121e0b322d905f9e57 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from config import config_options
from flask_login import LoginManager
bootstrap = Bootstrap()
db = SQLAlchemy()
login_manager = LoginManager()
login_manager.session_protection = 'strong'
login_manager.login_message... | 26.952381 | 74 | 0.766784 | 146 | 1,132 | 5.691781 | 0.315068 | 0.072202 | 0.048135 | 0.104693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166961 | 1,132 | 41 | 75 | 27.609756 | 0.88123 | 0.222615 | 0 | 0 | 0 | 0 | 0.081609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.409091 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
de1cbb4fe7dbe8315c1251976840a9c38cd2184b | 4,479 | py | Python | rhea/cores/fifo/fifo_async.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | 1 | 2022-03-16T23:56:09.000Z | 2022-03-16T23:56:09.000Z | rhea/cores/fifo/fifo_async.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | null | null | null | rhea/cores/fifo/fifo_async.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | null | null | null |
from __future__ import absolute_import
#
# Copyright (c) 2006-2014 Christopher L. Felton
#
from math import log, ceil
from myhdl import *
from rhea.system import FIFOBus
from .fifo_mem import fifo_mem_generic
from .fifo_syncers import *
from .fifo_intf import check_fifo_intf
def fifo_async(reset, wclk, rclk, fbu... | 32.693431 | 76 | 0.604153 | 628 | 4,479 | 4.230892 | 0.320064 | 0.013549 | 0.027098 | 0.033873 | 0.168611 | 0.080542 | 0.060218 | 0.040647 | 0.040647 | 0 | 0 | 0.015525 | 0.266577 | 4,479 | 137 | 77 | 32.693431 | 0.793303 | 0.383568 | 0 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0 | 0 | null | null | 0 | 0.118644 | 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 |
de1e28e7f3de4b8dfcdf18b857625977a61c0c17 | 1,772 | py | Python | libs/detector/ssd/postprocess/utils/box.py | explain116/labelImg | bce8963dd87f70ddad2f6fc83f967b52e69a86d6 | [
"MIT"
] | null | null | null | libs/detector/ssd/postprocess/utils/box.py | explain116/labelImg | bce8963dd87f70ddad2f6fc83f967b52e69a86d6 | [
"MIT"
] | null | null | null | libs/detector/ssd/postprocess/utils/box.py | explain116/labelImg | bce8963dd87f70ddad2f6fc83f967b52e69a86d6 | [
"MIT"
] | null | null | null | #!/usr/bin/python3 python
# encoding: utf-8
'''
@author: 孙昊
@contact: smartadpole@163.com
@file: box.py
@time: 2021/2/23 上午10:26
@desc:
'''
import numpy as np
def Locations2Boxes(locations, priors, center_variance, size_variance):
"""Convert regressional location results of SSD into boxes in the form of (center_x... | 38.521739 | 113 | 0.61456 | 237 | 1,772 | 4.493671 | 0.421941 | 0.056338 | 0.028169 | 0.026291 | 0.17277 | 0.048826 | 0 | 0 | 0 | 0 | 0 | 0.031341 | 0.225734 | 1,772 | 45 | 114 | 39.377778 | 0.744898 | 0.517494 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0.125 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
de238570826074d85a9b0416ddbae8ff266f21bb | 1,290 | py | Python | save_plugin/models.py | BotDevGroup/save_plugin | 8ddc1a07f85d0286ecf632d218f82e38e516de69 | [
"MIT"
] | null | null | null | save_plugin/models.py | BotDevGroup/save_plugin | 8ddc1a07f85d0286ecf632d218f82e38e516de69 | [
"MIT"
] | null | null | null | save_plugin/models.py | BotDevGroup/save_plugin | 8ddc1a07f85d0286ecf632d218f82e38e516de69 | [
"MIT"
] | null | null | null | import mongoengine
from marvinbot.utils import localized_date
class ChatLink(mongoengine.Document):
source_chat_id = mongoengine.LongField(required=True, null=False)
target_chat_id = mongoengine.LongField(null=True)
first_name = mongoengine.StringField()
user_id = mongoengine.LongField(required=True,... | 27.446809 | 114 | 0.634884 | 159 | 1,290 | 4.855346 | 0.257862 | 0.124352 | 0.139896 | 0.051813 | 0.544041 | 0.497409 | 0.393782 | 0.194301 | 0.15285 | 0.098446 | 0 | 0 | 0.272093 | 1,290 | 46 | 115 | 28.043478 | 0.822151 | 0 | 0 | 0.432432 | 0 | 0 | 0.063566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.054054 | 0.027027 | 0.594595 | 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 |
de2a93454ade2c28d97555a8911e5283ee4cf52a | 1,022 | py | Python | paprika/threads/SecondTimer.py | thunder-/paprika | af262407ec9c195dbb5a7c205510e6ad2fb65f36 | [
"MIT"
] | null | null | null | paprika/threads/SecondTimer.py | thunder-/paprika | af262407ec9c195dbb5a7c205510e6ad2fb65f36 | [
"MIT"
] | null | null | null | paprika/threads/SecondTimer.py | thunder-/paprika | af262407ec9c195dbb5a7c205510e6ad2fb65f36 | [
"MIT"
] | null | null | null | import threading
class SecondTimer(object):
def __init__(self, seconds):
object.__init__(self)
self.__executors = []
self.__seconds = seconds
self.__elapsed = 0
def get_elapsed(self):
return self.__elapsed
def set_elapsed(self, elapsed):
self.__elapsed = e... | 24.926829 | 61 | 0.599804 | 109 | 1,022 | 5.302752 | 0.284404 | 0.095156 | 0.072664 | 0.086505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004267 | 0.312133 | 1,022 | 40 | 62 | 25.55 | 0.817923 | 0 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.032258 | 0.096774 | 0.419355 | 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 |
de39063030d5d019502d1c4b3cce4a66c7aa663d | 26,488 | py | Python | statelegiscraper/states/wa.py | ka-chang/leg-text-scrapper | abf6d328e1ed89077aed1c782bb54b0a9b36ac3c | [
"Apache-2.0"
] | 1 | 2021-12-16T02:13:45.000Z | 2021-12-16T02:13:45.000Z | statelegiscraper/states/wa.py | ka-chang/leg-text-scrapper | abf6d328e1ed89077aed1c782bb54b0a9b36ac3c | [
"Apache-2.0"
] | 1 | 2021-11-04T16:05:35.000Z | 2021-11-05T01:22:24.000Z | statelegiscraper/states/wa.py | ka-chang/leg-text-scraper | abf6d328e1ed89077aed1c782bb54b0a9b36ac3c | [
"Apache-2.0"
] | 4 | 2021-12-10T20:45:52.000Z | 2021-12-17T10:46:59.000Z | """
WA module for scraping and processing text from https://leg.wa.gov
# Status, as of January 1, 2022
Current Coverage (In Active Development):
[X] Committee Hearings (Audio Links) (2015 - 2020)
Planned Coverage:
[ ] Committee Hearings (Video Links) (2000 - 2014)
[ ] Floor Speeches (Video Links)
# WA ... | 40.813559 | 176 | 0.595553 | 3,091 | 26,488 | 4.881915 | 0.164348 | 0.027833 | 0.028164 | 0.031478 | 0.497813 | 0.449039 | 0.403711 | 0.375746 | 0.341882 | 0.335918 | 0 | 0.022822 | 0.300249 | 26,488 | 648 | 177 | 40.876543 | 0.791314 | 0 | 0 | 0.448276 | 0 | 0.00627 | 0.185771 | 0.112397 | 0 | 0 | 0 | 0 | 0.065831 | 0 | null | null | 0.040752 | 0.050157 | null | null | 0.009404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
de4e11a8e72c4a23b088fdefa3b92cb50fbaf98c | 9,869 | py | Python | test_files/test_kinematic_chain.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | test_files/test_kinematic_chain.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | test_files/test_kinematic_chain.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | from enthought.tvtk.api import tvtk
from math import *
from numpy import *
from geometry import *
zDirection = array((0, 0, 1))
class Pipe:
def __init__(self):
self.points = []
self.pipeRibs = {}
self.spokeEndPointIndexDict = None
self.allSpokeEndPoints = None
def add... | 36.962547 | 123 | 0.6336 | 988 | 9,869 | 6.290486 | 0.172065 | 0.025744 | 0.037007 | 0.032663 | 0.325664 | 0.288656 | 0.253258 | 0.231698 | 0.2214 | 0.2214 | 0 | 0.028259 | 0.257777 | 9,869 | 266 | 124 | 37.101504 | 0.820205 | 0.172966 | 0 | 0.239264 | 0 | 0 | 0.015265 | 0.002831 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02454 | null | null | 0.01227 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
de52355f8c37a53202ea2baa0bbdb72bf9bf69f5 | 1,700 | py | Python | weiss/tests/test_state.py | austinlostinboston/mitsWebApp | bf30e891f4b0985e636935a82b87e3b100e1fd64 | [
"Apache-2.0"
] | 4 | 2015-07-12T16:17:49.000Z | 2017-07-20T08:44:56.000Z | weiss/tests/test_state.py | austinlostinboston/mitsWebApp | bf30e891f4b0985e636935a82b87e3b100e1fd64 | [
"Apache-2.0"
] | 20 | 2015-07-03T20:36:09.000Z | 2015-08-01T04:10:14.000Z | weiss/tests/test_state.py | austinlostinboston/mitsWebApp | bf30e891f4b0985e636935a82b87e3b100e1fd64 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2015 Austin Ankney, Ming Fang, Wenjun Wang and Yao Zhou
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | 43.589744 | 142 | 0.736471 | 241 | 1,700 | 5.182573 | 0.485477 | 0.048038 | 0.084067 | 0.076861 | 0.21217 | 0.148919 | 0.148919 | 0.073659 | 0.073659 | 0.073659 | 0 | 0.022822 | 0.149412 | 1,700 | 38 | 143 | 44.736842 | 0.840941 | 0.374706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.117647 | false | 0.058824 | 0.176471 | 0 | 0.352941 | 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 |
de5e956204d6963df3f9dcdb6be0218a3c17e694 | 9,258 | py | Python | tests/utils/functions/test_singleobj.py | ahcantao/pyswarms | 1422eb7ad3b8641de83b39dc36ce7b09858e2440 | [
"MIT"
] | null | null | null | tests/utils/functions/test_singleobj.py | ahcantao/pyswarms | 1422eb7ad3b8641de83b39dc36ce7b09858e2440 | [
"MIT"
] | null | null | null | tests/utils/functions/test_singleobj.py | ahcantao/pyswarms | 1422eb7ad3b8641de83b39dc36ce7b09858e2440 | [
"MIT"
] | 1 | 2018-12-26T12:15:09.000Z | 2018-12-26T12:15:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `pyswarms` package."""
# Import from __future__
from __future__ import with_statement
from __future__ import absolute_import
from __future__ import print_function
# Import modules
import unittest
import numpy as np
# Import from package
from pyswarms.utils.... | 35.201521 | 87 | 0.642039 | 1,226 | 9,258 | 4.673736 | 0.100326 | 0.045201 | 0.09075 | 0.059686 | 0.646422 | 0.568412 | 0.491972 | 0.384642 | 0.275044 | 0.208028 | 0 | 0.03468 | 0.224455 | 9,258 | 263 | 88 | 35.201521 | 0.76337 | 0.171527 | 0 | 0.230263 | 0 | 0 | 0.001075 | 0 | 0 | 0 | 0 | 0 | 0.309211 | 1 | 0.25 | false | 0 | 0.039474 | 0 | 0.322368 | 0.006579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
de643ea7b7730ba89cfd2fc3210718f6a8cb1b7e | 173,432 | py | Python | py-tnt/pytnt/labelresponse.py | QwadwoNyamekye/purplship-carriers | ce34e3054de246e3d85ddf6928b607193d061ae2 | [
"MIT"
] | null | null | null | py-tnt/pytnt/labelresponse.py | QwadwoNyamekye/purplship-carriers | ce34e3054de246e3d85ddf6928b607193d061ae2 | [
"MIT"
] | null | null | null | py-tnt/pytnt/labelresponse.py | QwadwoNyamekye/purplship-carriers | ce34e3054de246e3d85ddf6928b607193d061ae2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Thu Jun 14 23:10:38 2018 by generateDS.py version 2.29.14.
# Python 3.6.5 (default, May 19 2018, 11:27:13) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]
#
# Command line options:
# ('--no-namespace-defs', '')
# ('-o', '../pytnt/labelresponse... | 46.508984 | 464 | 0.636572 | 17,833 | 173,432 | 5.939214 | 0.033702 | 0.033754 | 0.025237 | 0.024322 | 0.70105 | 0.651953 | 0.623581 | 0.591083 | 0.57693 | 0.551561 | 0 | 0.004467 | 0.262979 | 173,432 | 3,728 | 465 | 46.521459 | 0.824132 | 0.023421 | 0 | 0.611542 | 1 | 0.000287 | 0.06202 | 0.021705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163078 | false | 0.01493 | 0.027275 | 0.039908 | 0.295148 | 0.077232 | 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 |
de70b5df52b5ea4314a4f3c942b10df5969713d8 | 1,708 | py | Python | certificado/migrations/0001_initial.py | tiagocordeiro/cultiva-certificados | 740da1c70cb1573875a0cb800dfe2eaff15d9030 | [
"MIT"
] | null | null | null | certificado/migrations/0001_initial.py | tiagocordeiro/cultiva-certificados | 740da1c70cb1573875a0cb800dfe2eaff15d9030 | [
"MIT"
] | 131 | 2020-05-27T17:57:48.000Z | 2022-03-20T12:24:11.000Z | certificado/migrations/0001_initial.py | tiagocordeiro/cultiva-certificados | 740da1c70cb1573875a0cb800dfe2eaff15d9030 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-28 15:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Certificado',
fields=[
('id', models.AutoFi... | 44.947368 | 143 | 0.581967 | 170 | 1,708 | 5.7 | 0.482353 | 0.158927 | 0.04644 | 0.074303 | 0.128999 | 0.128999 | 0.094943 | 0.094943 | 0.094943 | 0 | 0 | 0.021463 | 0.263466 | 1,708 | 37 | 144 | 46.162162 | 0.748808 | 0.026347 | 0 | 0 | 1 | 0 | 0.167369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de7323d01193b81ac8401a598a2164cb77715451 | 9,674 | py | Python | src/Components/missions/TEMPO/run_geo_vlidort_batch.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-12-02T14:23:30.000Z | 2021-12-31T15:39:30.000Z | src/Components/missions/TEMPO/run_geo_vlidort_batch.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | 9 | 2020-04-15T16:22:14.000Z | 2022-03-24T13:59:25.000Z | src/Components/missions/TEMPO/run_geo_vlidort_batch.py | GEOS-ESM/AeroApps | 874dad6f34420c014d98eccbe81a061bdc0110cf | [
"NASA-1.3",
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #!/bin/python
# -*- coding: utf-8 -*-
""" Runscript for geo_vlidort episodes"""
from datetime import datetime, timedelta
from dateutil.parser import parse
import os
import subprocess
from distutils.dir_util import mkpath
import numpy as np
import math
from netCDF4 import Dataset
def make_workspace(date,ch,code,outdir... | 33.707317 | 118 | 0.553649 | 1,229 | 9,674 | 4.288039 | 0.211554 | 0.079317 | 0.045541 | 0.032258 | 0.543833 | 0.466793 | 0.439658 | 0.407021 | 0.368311 | 0.349905 | 0 | 0.034609 | 0.265247 | 9,674 | 286 | 119 | 33.825175 | 0.706809 | 0.077011 | 0 | 0.338308 | 0 | 0 | 0.173044 | 0.029863 | 0.004975 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039801 | null | null | 0.004975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
de7795e0c799db985ed16486da35ba3d76df2cc5 | 7,697 | py | Python | naive.py | AIandSocialGoodLab/securitygamewithinformants | 8f9ab63796541faf1e51e944d34d8c64c4df6344 | [
"Apache-2.0"
] | null | null | null | naive.py | AIandSocialGoodLab/securitygamewithinformants | 8f9ab63796541faf1e51e944d34d8c64c4df6344 | [
"Apache-2.0"
] | null | null | null | naive.py | AIandSocialGoodLab/securitygamewithinformants | 8f9ab63796541faf1e51e944d34d8c64c4df6344 | [
"Apache-2.0"
] | 1 | 2021-11-24T00:17:14.000Z | 2021-11-24T00:17:14.000Z | # This is the code used to generate the data for Figure 5 in the paper.
import gurobipy as gp
from gurobipy import GRB
import numpy as np
import pandas
# from scipy.special import softmaxscipy
import matplotlib.pyplot as plt
import seaborn as sns
import datetime
def lp_calc(pw, pa, ra, pd, rd, uc, uu, p, r, t):
... | 32.070833 | 114 | 0.47499 | 1,258 | 7,697 | 2.719396 | 0.112878 | 0.063432 | 0.073078 | 0.061093 | 0.629348 | 0.536101 | 0.496638 | 0.443145 | 0.42736 | 0.409529 | 0 | 0.024285 | 0.368715 | 7,697 | 239 | 115 | 32.205021 | 0.67977 | 0.029102 | 0 | 0.404762 | 1 | 0 | 0.028801 | 0.021567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.047619 | 0.005952 | 0.083333 | 0.029762 | 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 |
de79347ad2ba0659fca13fb3aa1c4ebac33d5d1d | 511 | py | Python | Day03/day03.py | FunkyCracky/AdventOfCode2020 | 8095b86898a79d2967ec29b7d027e01531ea507c | [
"MIT"
] | 2 | 2020-12-03T09:30:50.000Z | 2020-12-13T20:30:54.000Z | Day03/day03.py | FunkyCracky/AdventOfCode2020 | 8095b86898a79d2967ec29b7d027e01531ea507c | [
"MIT"
] | null | null | null | Day03/day03.py | FunkyCracky/AdventOfCode2020 | 8095b86898a79d2967ec29b7d027e01531ea507c | [
"MIT"
] | null | null | null | def part01(input, slope_right, slope_down):
total = 0
pos = 0
for i in range(0, len(input), slope_down):
if input[i][pos] == "#":
total += 1
pos = (pos + slope_right) % len(input[i])
return total
def part02(input):
return part01(input, 1, 1) * part01(input, 3, 1) * part0... | 30.058824 | 118 | 0.589041 | 80 | 511 | 3.7125 | 0.4 | 0.259259 | 0.161616 | 0.087542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119289 | 0.228963 | 511 | 17 | 119 | 30.058824 | 0.634518 | 0.02544 | 0 | 0 | 0 | 0 | 0.022133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0.066667 | 0.266667 | 0.133333 | 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 |
de8dd9f51c0f4260b154573e6f6ef238c4eecc85 | 6,363 | py | Python | yacc2hmp.py | akiezun/hampi | de62cc822f927399ea0260be75185f723acf9839 | [
"MIT"
] | 1 | 2022-03-17T07:16:42.000Z | 2022-03-17T07:16:42.000Z | yacc2hmp.py | akiezun/hampi | de62cc822f927399ea0260be75185f723acf9839 | [
"MIT"
] | null | null | null | yacc2hmp.py | akiezun/hampi | de62cc822f927399ea0260be75185f723acf9839 | [
"MIT"
] | null | null | null | # Converts a Yacc grammar to Hampi format (outputs to stdout)
# Usage: python yacc2hmp.py bc.y
#
# Requires the Python PLY package to be installed:
# http://www.dabeaz.com/ply/
#
# Written by Philip Guo (pg@cs.stanford.edu)
# based on yparse.py, which is included in the PLY distribution:
#
# parser for Unix yacc-... | 20.592233 | 95 | 0.506208 | 863 | 6,363 | 3.634994 | 0.214368 | 0.033153 | 0.012432 | 0.015301 | 0.209117 | 0.155563 | 0.104877 | 0.08862 | 0.082244 | 0.070131 | 0 | 0.02054 | 0.296087 | 6,363 | 308 | 96 | 20.659091 | 0.679839 | 0.101682 | 0 | 0.213018 | 0 | 0 | 0.098499 | 0.016151 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017751 | 0.023669 | null | null | 0.035503 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
de994a2918c250ce93b840ae87cea95d43220ab8 | 197 | py | Python | MMLL/common/math_utils.py | Musketeer-H2020/MMLL-Robust | ccc0a7674a04ae0d00bedc38893b33184c5f68c6 | [
"Apache-2.0"
] | null | null | null | MMLL/common/math_utils.py | Musketeer-H2020/MMLL-Robust | ccc0a7674a04ae0d00bedc38893b33184c5f68c6 | [
"Apache-2.0"
] | null | null | null | MMLL/common/math_utils.py | Musketeer-H2020/MMLL-Robust | ccc0a7674a04ae0d00bedc38893b33184c5f68c6 | [
"Apache-2.0"
] | null | null | null | import numpy as np
def cosine_similarity(a, b):
a = np.squeeze(a)
b = np.squeeze(b)
assert a.shape[0] == b.shape[0]
return np.sum(a * b) / (np.linalg.norm(a) * np.linalg.norm(b))
| 21.888889 | 66 | 0.598985 | 37 | 197 | 3.162162 | 0.459459 | 0.051282 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.218274 | 197 | 8 | 67 | 24.625 | 0.746753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de9e1777215ea802f884e44c8c333fb41a33543f | 514 | py | Python | profile/serializers.py | bdribault/exercise | 24e11ec3c65b4de3429cf4333c01ea42ffa5d0a9 | [
"MIT"
] | null | null | null | profile/serializers.py | bdribault/exercise | 24e11ec3c65b4de3429cf4333c01ea42ffa5d0a9 | [
"MIT"
] | null | null | null | profile/serializers.py | bdribault/exercise | 24e11ec3c65b4de3429cf4333c01ea42ffa5d0a9 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- encoding: UTF-8 -*-
from django.contrib.auth.models import User
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
birthday = serializers.DateField(source='profile.birthday', format="%d/%m/%Y")
class Meta:
model = User
fields... | 27.052632 | 82 | 0.68677 | 56 | 514 | 6.25 | 0.660714 | 0.051429 | 0.08 | 0.102857 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002381 | 0.182879 | 514 | 18 | 83 | 28.555556 | 0.830952 | 0.087549 | 0 | 0.363636 | 0 | 0 | 0.132762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
de9e60af1ee58c558a11470f18348e2e7a7d370d | 797 | py | Python | FourFrontScripts/DataAccess/TempFileData.py | FourFront-Senior-Design/pythonenv | 980b4f5c2dc3958aaca00ec98a703e5b9fb5dbec | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | FourFrontScripts/DataAccess/TempFileData.py | FourFront-Senior-Design/pythonenv | 980b4f5c2dc3958aaca00ec98a703e5b9fb5dbec | [
"bzip2-1.0.6",
"MIT"
] | 1 | 2020-04-23T02:34:53.000Z | 2020-04-23T02:34:53.000Z | FourFrontScripts/DataAccess/TempFileData.py | FourFront-Senior-Design/pythonenv | 980b4f5c2dc3958aaca00ec98a703e5b9fb5dbec | [
"bzip2-1.0.6",
"MIT"
] | 1 | 2020-04-27T15:07:54.000Z | 2020-04-27T15:07:54.000Z | # Reads the temp files with the extracted texts in the section
import os
class TempFileData:
'''
Reads all the temp files in the given location
Each temp file data is a dictionary
'''
def __init__(self, tempFilesPath):
self.__path = tempFilesPath
self.__records = []
for fil... | 29.518519 | 62 | 0.544542 | 92 | 797 | 4.521739 | 0.543478 | 0.105769 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.355082 | 797 | 26 | 63 | 30.653846 | 0.809339 | 0.180678 | 0 | 0 | 0 | 0 | 0.011058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.117647 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
dea9d42e9f6324ccc208fca157478d7f9e358024 | 603 | py | Python | pytpp/attributes/ciscocsm.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | 4 | 2022-02-04T23:58:55.000Z | 2022-02-15T18:53:08.000Z | pytpp/attributes/ciscocsm.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | pytpp/attributes/ciscocsm.py | Venafi/pytpp | 42af655b2403b8c9447c86962abd4aaa0201f646 | [
"MIT"
] | null | null | null | from pytpp.attributes._helper import IterableMeta, Attribute
from pytpp.attributes.application_base import ApplicationBaseAttributes
class CiscoCSMAttributes(ApplicationBaseAttributes, metaclass=IterableMeta):
__config_class__ = "CiscoCSM"
create_chain_trustpoints = Attribute('Create Chain Trustpoints')
create_new... | 43.071429 | 76 | 0.825871 | 65 | 603 | 7.384615 | 0.415385 | 0.0375 | 0.079167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094527 | 603 | 13 | 77 | 46.384615 | 0.879121 | 0 | 0 | 0 | 0 | 0 | 0.207297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
deb896ee573c4bf31a0492291e7c2eafbab6fea5 | 430 | py | Python | photo_store/photo_store/migrations/0002_size_shipping_cost.py | MarijaKalebota/photo-store | db5668bb3abd692697ef19ac892c562165ca0390 | [
"MIT"
] | null | null | null | photo_store/photo_store/migrations/0002_size_shipping_cost.py | MarijaKalebota/photo-store | db5668bb3abd692697ef19ac892c562165ca0390 | [
"MIT"
] | null | null | null | photo_store/photo_store/migrations/0002_size_shipping_cost.py | MarijaKalebota/photo-store | db5668bb3abd692697ef19ac892c562165ca0390 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-09-28 21:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('photo_store', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='size',
name='shipping_cost',
... | 21.5 | 59 | 0.586047 | 47 | 430 | 5.234043 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073333 | 0.302326 | 430 | 19 | 60 | 22.631579 | 0.746667 | 0.104651 | 0 | 0 | 1 | 0 | 0.104439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
debd83bd138a438ef80352460908f208d52f0ecb | 598 | py | Python | apps/devdb/migrations/0003_seed_data.py | eddieantonio/devdb | 1109f419663c882c726fb31f008a911df583c911 | [
"MIT"
] | null | null | null | apps/devdb/migrations/0003_seed_data.py | eddieantonio/devdb | 1109f419663c882c726fb31f008a911df583c911 | [
"MIT"
] | null | null | null | apps/devdb/migrations/0003_seed_data.py | eddieantonio/devdb | 1109f419663c882c726fb31f008a911df583c911 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-02-21 05:26
import json
from pathlib import Path
from django.db import migrations
HERE = Path(__file__).parent
def insert_data(apps, schema_editor):
data = json.load((HERE / "seed_data.json").open("rb"))
Developer = apps.get_model("devdb", "Developer")
Developer.obje... | 23 | 81 | 0.683946 | 79 | 598 | 5.012658 | 0.670886 | 0.050505 | 0.09596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038776 | 0.180602 | 598 | 25 | 82 | 23.92 | 0.769388 | 0.075251 | 0 | 0 | 1 | 0 | 0.15971 | 0.049002 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.466667 | 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 |
dec086b312c1f64cdbf5fb7dd0a9455d428817a5 | 1,201 | py | Python | flask/app.py | Vaibhav1197/wisconsin-breast-cancer | 116cafe2f16ec4228d9d866b5b741f7d252f5c36 | [
"Apache-2.0"
] | 43 | 2017-11-22T07:26:11.000Z | 2022-03-04T13:26:35.000Z | flask/app.py | Vaibhav1197/wisconsin-breast-cancer | 116cafe2f16ec4228d9d866b5b741f7d252f5c36 | [
"Apache-2.0"
] | 5 | 2018-04-03T17:12:49.000Z | 2022-02-09T23:30:54.000Z | flask/app.py | Vaibhav1197/wisconsin-breast-cancer | 116cafe2f16ec4228d9d866b5b741f7d252f5c36 | [
"Apache-2.0"
] | 22 | 2017-11-22T07:26:39.000Z | 2021-11-15T18:34:18.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__version__ = "0.1.0"
__author__ = "Abien Fred Agarap"
from flask import flash
from flask import Flask
from flask import render_template
from flask import request
from keras.models import load_model
import os
... | 25.020833 | 80 | 0.696087 | 168 | 1,201 | 4.720238 | 0.458333 | 0.022699 | 0.022699 | 0.015132 | 0.201765 | 0.201765 | 0.201765 | 0.201765 | 0.078184 | 0 | 0 | 0.026733 | 0.159034 | 1,201 | 47 | 81 | 25.553191 | 0.758416 | 0 | 0 | 0.0625 | 0 | 0 | 0.189009 | 0 | 0.03125 | 0 | 0 | 0 | 0.03125 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
deca177b0ba2cf24c627d00ae066889b22561a9c | 2,024 | py | Python | nephelae/types/SensorSample.py | pnarvor/nephelae_base | d5f1abeae0b0473b895b4735f182ddae0516a1bd | [
"BSD-3-Clause"
] | null | null | null | nephelae/types/SensorSample.py | pnarvor/nephelae_base | d5f1abeae0b0473b895b4735f182ddae0516a1bd | [
"BSD-3-Clause"
] | null | null | null | nephelae/types/SensorSample.py | pnarvor/nephelae_base | d5f1abeae0b0473b895b4735f182ddae0516a1bd | [
"BSD-3-Clause"
] | null | null | null | from .Position import Position
class SensorSample:
"""
SensorSample
Holds a data sample with its metadata.
Mostly to be used in SpatializedDatabase.
Attributes
----------
variableName : str
Identifier for the sample (ex: 'temperature', 'windVector'...).
producer : str
... | 29.333333 | 81 | 0.52915 | 202 | 2,024 | 5.247525 | 0.371287 | 0.072642 | 0.070755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00078 | 0.366601 | 2,024 | 68 | 82 | 29.764706 | 0.826053 | 0.349308 | 0 | 0 | 0 | 0 | 0.125102 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.115385 | false | 0 | 0.038462 | 0.038462 | 0.269231 | 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 |
ded18c995ec4bb0498284cab9aea1ff211f6ae22 | 9,972 | py | Python | sardanaConfig/src/wizards/ms_editor_UI.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 43 | 2016-11-25T15:21:23.000Z | 2021-08-20T06:09:40.000Z | sardanaConfig/src/wizards/ms_editor_UI.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 1,263 | 2016-11-25T15:58:37.000Z | 2021-11-02T22:23:47.000Z | sardanaConfig/src/wizards/ms_editor_UI.py | marc2332/sardana | 48dc9191baaa63f6c714d8c025e8f3f96548ad26 | [
"CC-BY-3.0"
] | 58 | 2016-11-21T11:33:55.000Z | 2021-09-01T06:21:21.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MSEditor.ui'
#
# Created: Fri Nov 19 12:49:34 2010
# by: PyQt4 UI code generator 4.4.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_MSEditor(object):
def setupUi(self, MSEdito... | 56.022472 | 87 | 0.712395 | 956 | 9,972 | 7.388075 | 0.154812 | 0.079428 | 0.046722 | 0.064562 | 0.32734 | 0.128416 | 0.074756 | 0.060881 | 0.060881 | 0.060881 | 0 | 0.019795 | 0.179302 | 9,972 | 177 | 88 | 56.338983 | 0.843231 | 0.02126 | 0 | 0.031056 | 1 | 0 | 0.086649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012422 | false | 0 | 0.012422 | 0 | 0.031056 | 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 |
ded7a27eb4c05e3bdc7d1a8d9674e99864494864 | 5,454 | py | Python | larlib/build/lib/larlib/sysml.py | cvdlab/lar-cc | 7092965acf7c0c78a5fab4348cf2c2aa01c4b130 | [
"MIT",
"Unlicense"
] | 1 | 2016-09-20T04:48:12.000Z | 2016-09-20T04:48:12.000Z | larlib/larlib/sysml.py | Ahdhn/lar-cc | 7092965acf7c0c78a5fab4348cf2c2aa01c4b130 | [
"MIT",
"Unlicense"
] | 1 | 2018-02-20T21:57:07.000Z | 2018-02-21T07:18:11.000Z | larlib/larlib/sysml.py | Ahdhn/lar-cc | 7092965acf7c0c78a5fab4348cf2c2aa01c4b130 | [
"MIT",
"Unlicense"
] | 7 | 2016-11-04T10:47:42.000Z | 2018-04-10T17:32:50.000Z | """ sysml library """
from larlib import *
DRAW = COMP([VIEW,STRUCT,MKPOLS])
def boundaryOfChain(cells,facets):
csrBoundaryMat = larBoundary(cells,facets)
csrChain = zeros((len(cells),1))
def boundaryOfChain0(chain):
for cell in chain: csrChain[cell,0]=1.0
csrBoundaryChain = matrixProduct(csrBou... | 32.464286 | 80 | 0.611111 | 791 | 5,454 | 4.209861 | 0.21871 | 0.012012 | 0.010811 | 0.010511 | 0.150751 | 0.071772 | 0.047748 | 0.023423 | 0.023423 | 0.023423 | 0 | 0.046087 | 0.236157 | 5,454 | 167 | 81 | 32.658683 | 0.753241 | 0.069307 | 0 | 0.033058 | 0 | 0 | 0.011752 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0 | null | null | 0 | 0.016529 | 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 |
dee76b53f3a484c446ab44f5199f39bc9369c78c | 6,743 | py | Python | src/losses.py | benihime91/leaf-disease-classification-kaggle | e1c8b1c6b88fe199a09e9d956db7b9baa3fb9dcc | [
"MIT"
] | null | null | null | src/losses.py | benihime91/leaf-disease-classification-kaggle | e1c8b1c6b88fe199a09e9d956db7b9baa3fb9dcc | [
"MIT"
] | null | null | null | src/losses.py | benihime91/leaf-disease-classification-kaggle | e1c8b1c6b88fe199a09e9d956db7b9baa3fb9dcc | [
"MIT"
] | 3 | 2020-12-14T04:22:31.000Z | 2021-04-22T19:40:34.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02_losses.ipynb (unless otherwise specified).
__all__ = [
"LabelSmoothingCrossEntropy",
"log_t",
"exp_t",
"compute_normalization_fixed_point",
"compute_normalization",
"tempered_softmax",
"bi_tempered_logistic_loss",
"BiTemperedLogisticLos... | 33.381188 | 130 | 0.632953 | 886 | 6,743 | 4.656885 | 0.194131 | 0.008725 | 0.00509 | 0.02666 | 0.383907 | 0.320407 | 0.263694 | 0.224915 | 0.193408 | 0.173534 | 0 | 0.024221 | 0.228533 | 6,743 | 201 | 131 | 33.547264 | 0.768935 | 0.207474 | 0 | 0.186992 | 1 | 0 | 0.052128 | 0.033971 | 0 | 0 | 0 | 0 | 0.01626 | 1 | 0.113821 | false | 0 | 0.03252 | 0 | 0.300813 | 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 |
dee85f0f6f0ece6a47f7440c9768dede6c6e3808 | 392 | py | Python | tests/test_speed_calculator2.py | xqiu/pytchat | 4930ea69ffdab788191a7beeed155f9918162e06 | [
"MIT"
] | 246 | 2019-11-14T13:33:48.000Z | 2022-03-18T16:36:21.000Z | tests/test_speed_calculator2.py | KaitoCross/pytchat | ed9b06833bf4ea53e3d14cc0042895c2adc9cb5b | [
"MIT"
] | 47 | 2020-01-30T15:00:13.000Z | 2021-12-14T04:06:02.000Z | tests/test_speed_calculator2.py | KaitoCross/pytchat | ed9b06833bf4ea53e3d14cc0042895c2adc9cb5b | [
"MIT"
] | 49 | 2019-12-24T03:33:41.000Z | 2022-03-23T15:14:47.000Z | import json
import pytchat
from pytchat.parser.live import Parser
from pytchat.processors.speed.calculator import SpeedCalculator
parser = Parser(is_replay=False)
def test_speed_1():
stream = pytchat.create("Hj-wnLIYKjw", seektime = 6000,processor=SpeedCalculator())
while stream.is_alive():
speed = s... | 24.5 | 87 | 0.721939 | 49 | 392 | 5.653061 | 0.591837 | 0.079422 | 0.072202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028213 | 0.186224 | 392 | 16 | 88 | 24.5 | 0.840125 | 0 | 0 | 0 | 0 | 0 | 0.02799 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 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 |
72017ebff7a8c6245a0d94db2b29356df172dbcf | 351 | py | Python | numpy_concatenate.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | 1 | 2018-07-02T03:37:03.000Z | 2018-07-02T03:37:03.000Z | numpy_concatenate.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | numpy_concatenate.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | import numpy as numpy
a = numpy.array([[1,2],[3,4]])
print ('First array:')
print(a)
print('\n')
b = numpy.array([[5,6],[7,8]])
print('Second array:')
print(b)
print('\n')
print('Joining the two arrays along axis-0')
print(numpy.concatenate((a,b)))
print('\n')
print('Joining the two arrays along axis-1')
print(num... | 18.473684 | 44 | 0.649573 | 62 | 351 | 3.677419 | 0.419355 | 0.078947 | 0.061404 | 0.105263 | 0.548246 | 0.350877 | 0.350877 | 0.350877 | 0.350877 | 0.350877 | 0 | 0.03537 | 0.11396 | 351 | 19 | 45 | 18.473684 | 0.697749 | 0 | 0 | 0.214286 | 0 | 0 | 0.286932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.785714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
720524e4883503ebbafe8e9d810cb05222c97adf | 7,089 | py | Python | lab2/AI.py | TommyGong08/Gobang_AI | c6f4b2096471157ee4c42e8be0fa7cad99e41611 | [
"MIT"
] | 3 | 2021-05-27T05:52:52.000Z | 2021-12-09T05:21:41.000Z | lab2/AI.py | TommyGong08/Gobang_AI | c6f4b2096471157ee4c42e8be0fa7cad99e41611 | [
"MIT"
] | null | null | null | lab2/AI.py | TommyGong08/Gobang_AI | c6f4b2096471157ee4c42e8be0fa7cad99e41611 | [
"MIT"
] | 2 | 2021-05-27T05:52:56.000Z | 2022-02-15T16:57:06.000Z | import random
from collections import namedtuple
offset = [(1, 0), (0, 1), (1, 1), (1, -1)]
Chessman = namedtuple('Chessman', 'Name Value Color')
Point = namedtuple('Point', 'X Y')
BLACK_CHESSMAN = Chessman('黑子', 1, (45, 45, 45))
WHITE_CHESSMAN = Chessman('白子', 2, (255, 255, 255))
# 博弈搜索算法封装在AI类中
class AI:
def _... | 34.921182 | 89 | 0.396812 | 690 | 7,089 | 3.868116 | 0.137681 | 0.0281 | 0.052454 | 0.067441 | 0.573623 | 0.543649 | 0.475834 | 0.435369 | 0.409891 | 0.409891 | 0 | 0.040047 | 0.524475 | 7,089 | 202 | 90 | 35.094059 | 0.751706 | 0.03047 | 0 | 0.623596 | 0 | 0 | 0.005252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033708 | false | 0 | 0.011236 | 0 | 0.095506 | 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 |
720cc842fdc932a4bb94ceb103d0373dd7c256ab | 2,523 | py | Python | tests/test_basic.py | DBraun/AbletonParsing | 348fb282d3986695b3bfb76526cfbd41be683f0c | [
"MIT"
] | 16 | 2021-05-21T20:41:10.000Z | 2022-03-06T10:09:45.000Z | tests/test_basic.py | DBraun/AbletonParsing | 348fb282d3986695b3bfb76526cfbd41be683f0c | [
"MIT"
] | 1 | 2021-09-20T18:26:53.000Z | 2021-09-28T17:40:56.000Z | tests/test_basic.py | DBraun/AbletonParsing | 348fb282d3986695b3bfb76526cfbd41be683f0c | [
"MIT"
] | 1 | 2022-01-21T16:20:06.000Z | 2022-01-21T16:20:06.000Z | import abletonparsing
import librosa
import soundfile as sf
import pyrubberband as pyrb
def _test_basic_params(audio_path, clip_path, loop_on, output_path, bpm,
start_marker=0, end_marker=5, hidden_loop_start=4, hidden_loop_end=6,
loop_start=4, loop_end=6, sr=44100, warp_on=True):
audio_data, sr = librosa.load(au... | 35.535211 | 90 | 0.759017 | 417 | 2,523 | 4.270983 | 0.208633 | 0.089837 | 0.067378 | 0.047726 | 0.57215 | 0.562605 | 0.55306 | 0.501965 | 0.501965 | 0.501965 | 0 | 0.042081 | 0.124059 | 2,523 | 70 | 91 | 36.042857 | 0.763801 | 0.177963 | 0 | 0.319149 | 0 | 0 | 0.119417 | 0.021359 | 0 | 0 | 0 | 0.014286 | 0.276596 | 1 | 0.06383 | false | 0 | 0.085106 | 0 | 0.148936 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
721494a8dfc02fe2749fa93bb480f905cafcb1cb | 1,915 | py | Python | Talleres/Taller03/tercer_grado.py | monotera/Analisis-numerico_-1057-_2130 | f0acf6856028be8a20e33efd11f70d0817fdeeb0 | [
"MIT"
] | null | null | null | Talleres/Taller03/tercer_grado.py | monotera/Analisis-numerico_-1057-_2130 | f0acf6856028be8a20e33efd11f70d0817fdeeb0 | [
"MIT"
] | null | null | null | Talleres/Taller03/tercer_grado.py | monotera/Analisis-numerico_-1057-_2130 | f0acf6856028be8a20e33efd11f70d0817fdeeb0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 18 01:20:47 2021
@author: user
"""
import numpy as np
import matplotlib.pyplot as pt
S = np.array([[4410000*4410000*4410000,4410000*4410000, 4410000, 1],
[4830000*4830000*4830000,4830000*4830000,4830000,1],
[5250000*5250000*5250000,5250000*525000... | 20.37234 | 68 | 0.607311 | 312 | 1,915 | 3.682692 | 0.320513 | 0.02611 | 0.034813 | 0.073107 | 0.288947 | 0.100957 | 0.078329 | 0.05396 | 0.05396 | 0.05396 | 0 | 0.20751 | 0.207311 | 1,915 | 94 | 69 | 20.37234 | 0.549407 | 0.03812 | 0 | 0.131148 | 0 | 0 | 0.0703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032787 | 0 | 0.032787 | 0.196721 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7217e50c176cccd49465ef934357a5829a141113 | 569 | py | Python | 02/main_2.py | ArtificialIntelligence2020/aoc_2020 | 66fd76e927ea6be895e2acb66f0439027a535e36 | [
"Apache-2.0"
] | null | null | null | 02/main_2.py | ArtificialIntelligence2020/aoc_2020 | 66fd76e927ea6be895e2acb66f0439027a535e36 | [
"Apache-2.0"
] | null | null | null | 02/main_2.py | ArtificialIntelligence2020/aoc_2020 | 66fd76e927ea6be895e2acb66f0439027a535e36 | [
"Apache-2.0"
] | null | null | null |
def is_valid(input_line: str) -> bool:
min_max, pass_char, password = input_line.split(' ')
min_count, max_count = [int(i) for i in min_max.split('-')]
pass_char = pass_char.rstrip(':')
min_valid = (password[min_count-1] == pass_char)
max_valid = (password[max_count-1] == pass_char)
ret_val =... | 27.095238 | 73 | 0.620387 | 86 | 569 | 3.755814 | 0.406977 | 0.123839 | 0.037152 | 0.086687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009153 | 0.231986 | 569 | 20 | 74 | 28.45 | 0.729977 | 0 | 0 | 0 | 0 | 0 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.266667 | 0 | 0 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
721b319d19108bf7e6f2797ee6ec68ade1abb568 | 591 | py | Python | primeiros-exercicios/lpc058.py | miguelsndc/PythonFirstLooks | 1b4a1b4feaf3638fb4304ca0c42d332a64cab478 | [
"MIT"
] | 1 | 2020-10-30T12:57:38.000Z | 2020-10-30T12:57:38.000Z | primeiros-exercicios/lpc058.py | miguelsndc/python | 1b4a1b4feaf3638fb4304ca0c42d332a64cab478 | [
"MIT"
] | null | null | null | primeiros-exercicios/lpc058.py | miguelsndc/python | 1b4a1b4feaf3638fb4304ca0c42d332a64cab478 | [
"MIT"
] | null | null | null | #PAIS A 80000 3% DE TAXA DE CRESCIMENTO
#PAIS B 200000HABITANTES TAXA DE CRESCIMENTO 1,5%
a = int(input('Digite a população da cidade A: '))
b = int(input('Digite a população da cidade B: '))
cont = 0
if b > a:
while b > a:
a += a * 0.03
b += b * 0.015
cont += 1
print(f'A ultrapassa B em... | 26.863636 | 50 | 0.529611 | 108 | 591 | 2.898148 | 0.277778 | 0.038339 | 0.140575 | 0.095847 | 0.670927 | 0.670927 | 0.670927 | 0.466454 | 0.466454 | 0.466454 | 0 | 0.085995 | 0.311337 | 591 | 21 | 51 | 28.142857 | 0.683047 | 0.145516 | 0 | 0.526316 | 0 | 0 | 0.421471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105263 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
721f6d4763fad6cfe35124207d573a08225ccc57 | 5,430 | py | Python | cclr_py_scripts/commands.py | blaze-the-star/cclear-compiler | 618daaa56566baf8b7bda35fe8c0fde4100d12c2 | [
"MIT"
] | null | null | null | cclr_py_scripts/commands.py | blaze-the-star/cclear-compiler | 618daaa56566baf8b7bda35fe8c0fde4100d12c2 | [
"MIT"
] | null | null | null | cclr_py_scripts/commands.py | blaze-the-star/cclear-compiler | 618daaa56566baf8b7bda35fe8c0fde4100d12c2 | [
"MIT"
] | null | null | null |
from enum import IntEnum, auto
try:
from cclr_py_scripts.lexer import Token
except:
from lexer import Token
class CmdTypes(IntEnum):
ERROR:int = auto()
EMPTY:int = auto()
SCRIPT:int = auto()
IDENTIFIER:int = auto()
BINARY_EXPRESSION:int = auto()
NUMERIC_LITERAL:int = auto()
OBJ_TYPE:int = aut... | 22.625 | 153 | 0.659853 | 763 | 5,430 | 4.460026 | 0.123198 | 0.045254 | 0.032324 | 0.042022 | 0.317955 | 0.232442 | 0.186012 | 0.160447 | 0.111666 | 0.089921 | 0 | 0.002249 | 0.181215 | 5,430 | 240 | 154 | 22.625 | 0.763158 | 0 | 0 | 0.28022 | 0 | 0 | 0.018969 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 1 | 0.197802 | false | 0.005495 | 0.016484 | 0.098901 | 0.648352 | 0.005495 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
722490cbf7ef7285e73daf636877a49c7852a885 | 3,086 | py | Python | service/xfd_server_db.py | tkyashiro/pi-xfd | bbd19db0daeb5aaa359a839d33dac25611f10140 | [
"MIT"
] | null | null | null | service/xfd_server_db.py | tkyashiro/pi-xfd | bbd19db0daeb5aaa359a839d33dac25611f10140 | [
"MIT"
] | null | null | null | service/xfd_server_db.py | tkyashiro/pi-xfd | bbd19db0daeb5aaa359a839d33dac25611f10140 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sqlite3 as sql
import sys
from contextlib import closing
class XfdServerDb:
def __init__(self, path_to_database = ""):
if not path_to_database:
self._path_to_database = "database.db"
else:
self._path_to_database = path_to_database
def _create... | 33.182796 | 90 | 0.507129 | 344 | 3,086 | 4.343023 | 0.299419 | 0.036814 | 0.074967 | 0.072289 | 0.289157 | 0.246319 | 0.225569 | 0.186747 | 0.186747 | 0.186747 | 0 | 0.015533 | 0.39501 | 3,086 | 92 | 91 | 33.543478 | 0.784681 | 0.043098 | 0 | 0.338028 | 0 | 0 | 0.410987 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.070423 | false | 0 | 0.042254 | 0.014085 | 0.169014 | 0.042254 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
722fe247342c34196e251d4a0cc9b3d9a1159864 | 511 | py | Python | src/lti/tool_consumer.py | ggueret/lti | 166b447b93e185679ef83bcd7e5da24a29540c80 | [
"MIT"
] | 79 | 2016-05-12T05:29:34.000Z | 2022-01-27T01:28:28.000Z | src/lti/tool_consumer.py | ggueret/lti | 166b447b93e185679ef83bcd7e5da24a29540c80 | [
"MIT"
] | 68 | 2016-05-11T04:23:34.000Z | 2021-08-19T00:03:23.000Z | src/lti/tool_consumer.py | ggueret/lti | 166b447b93e185679ef83bcd7e5da24a29540c80 | [
"MIT"
] | 41 | 2016-05-26T15:30:35.000Z | 2022-01-27T07:30:55.000Z |
from .launch_params import LAUNCH_PARAMS_REQUIRED
from .tool_outbound import ToolOutbound
class ToolConsumer(ToolOutbound):
def has_required_params(self):
return all([
self.launch_params.get(x) for x in LAUNCH_PARAMS_REQUIRED
])
def set_config(self, config):
'''
... | 25.55 | 69 | 0.661448 | 63 | 511 | 5.126984 | 0.47619 | 0.185759 | 0.123839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266145 | 511 | 19 | 70 | 26.894737 | 0.861333 | 0.066536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 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 |
72316a82e144409418ae7ddae415206d7ed5bcd1 | 395 | py | Python | number_to_text/converter/forms.py | Karoru19/NumberToText | 7a75516f305a10b356255d645b8e548f08860c3c | [
"MIT"
] | null | null | null | number_to_text/converter/forms.py | Karoru19/NumberToText | 7a75516f305a10b356255d645b8e548f08860c3c | [
"MIT"
] | 7 | 2020-02-12T03:01:47.000Z | 2021-09-22T18:04:26.000Z | number_to_text/converter/forms.py | Karoru19/NumberToText | 7a75516f305a10b356255d645b8e548f08860c3c | [
"MIT"
] | null | null | null | from django import forms
from django.utils.translation import pgettext_lazy
from number_to_text.converter.utils import number_to_words
class ConverterForm(forms.Form):
number = forms.IntegerField(
max_value=1000000, min_value=0, label=pgettext_lazy("Form", "Number")
)
def convert(self):
n... | 28.214286 | 77 | 0.739241 | 52 | 395 | 5.403846 | 0.557692 | 0.085409 | 0.092527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024465 | 0.172152 | 395 | 13 | 78 | 30.384615 | 0.834862 | 0 | 0 | 0 | 0 | 0 | 0.040506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.7 | 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 |
723b30d744b94a3b488bd082f690e1b626c5d939 | 467 | py | Python | code/example.py | FlexiGIS/FlexiGIS | fc0bef64fa229141bb195f3ea2d208f4c80e2aff | [
"BSD-3-Clause"
] | 9 | 2020-02-10T09:08:06.000Z | 2021-12-11T03:36:06.000Z | code/example.py | FlexiGIS/FlexiGIS | fc0bef64fa229141bb195f3ea2d208f4c80e2aff | [
"BSD-3-Clause"
] | null | null | null | code/example.py | FlexiGIS/FlexiGIS | fc0bef64fa229141bb195f3ea2d208f4c80e2aff | [
"BSD-3-Clause"
] | 3 | 2021-03-13T19:08:30.000Z | 2021-12-11T03:36:15.000Z | """**Example using filtered OSM building and highway data stored as csv file**."""
import pandas as pd
import flexigis_buildings
import flexigis_road
# get logging
flexigis_road.logging
# read in filtered OSM csv files.
csv_file = "../data/01_raw_input_data/example_OSM_data/"
df_road = pd.read_csv(csv_file+"OSM_road.... | 29.1875 | 82 | 0.805139 | 73 | 467 | 4.863014 | 0.39726 | 0.078873 | 0.050704 | 0.067606 | 0.107042 | 0.107042 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.09636 | 467 | 15 | 83 | 31.133333 | 0.836493 | 0.259101 | 0 | 0 | 0 | 0 | 0.20944 | 0.126844 | 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 |
a0cd0c7e1067191c9686ca2e80a86a0f8179617c | 700 | py | Python | camd3/infrastructure/repository/__init__.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | camd3/infrastructure/repository/__init__.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | camd3/infrastructure/repository/__init__.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# Name: repository package
# Purpose: Base classes for repositories
#
# Author: Michael Amrhein (michael@adrhinum.de)
#
# Copyright: (c) 2014 Michael Amrhein
# License: This program is pa... | 26.923077 | 79 | 0.482857 | 57 | 700 | 5.859649 | 0.736842 | 0.065868 | 0.083832 | 0.155689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009208 | 0.224286 | 700 | 25 | 80 | 28 | 0.605893 | 0.811429 | 0 | 0 | 0 | 0 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0d5d51011fba735a53f58c2a48bcf0be2967bdd | 2,574 | py | Python | gateway.py | StickBrush/RecommenderBot | a9e9ad5900e016cfeb1cba144cac5faa84607522 | [
"WTFPL"
] | null | null | null | gateway.py | StickBrush/RecommenderBot | a9e9ad5900e016cfeb1cba144cac5faa84607522 | [
"WTFPL"
] | null | null | null | gateway.py | StickBrush/RecommenderBot | a9e9ad5900e016cfeb1cba144cac5faa84607522 | [
"WTFPL"
] | null | null | null | import requests
from enum import Enum
from random import randrange
import logging
from model import Anime
API_BASE_PATH = "https://api.jikan.moe/v3"
class Subtype(Enum):
"""Anime subtype as defined by Jikan"""
AIRING = "airing"
UPCOMING = "upcoming"
TV = "tv"
MOVIE = "movie"
OVA = "ova"
S... | 24.056075 | 75 | 0.609557 | 332 | 2,574 | 4.596386 | 0.457831 | 0.072084 | 0.039318 | 0.02097 | 0.309305 | 0.27654 | 0.27654 | 0.27654 | 0.27654 | 0.27654 | 0 | 0.043431 | 0.284382 | 2,574 | 106 | 76 | 24.283019 | 0.785016 | 0.106061 | 0 | 0.164706 | 0 | 0 | 0.061025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035294 | false | 0 | 0.058824 | 0 | 0.717647 | 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 |
a0d62a46c92c7c71c4abf24d9de33d5a5f6f0795 | 881 | py | Python | tests/config/chroma_conf_test.py | south-coast-science/scs_philips_hue | 80f4e7f0e7b3b7a11af2326b4c7e18871c5a7040 | [
"MIT"
] | null | null | null | tests/config/chroma_conf_test.py | south-coast-science/scs_philips_hue | 80f4e7f0e7b3b7a11af2326b4c7e18871c5a7040 | [
"MIT"
] | null | null | null | tests/config/chroma_conf_test.py | south-coast-science/scs_philips_hue | 80f4e7f0e7b3b7a11af2326b4c7e18871c5a7040 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Created on 16 Mar 2018
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
document example:
{"min": {"domain-min": 0, "range-min": [0.08, 0.84]},
"intervals": [{"domain-max": 50, "range-max": [0.48, 0.41]}, {"domain-max": 100, "range-max": [0.74, 0.26]}],
"brightness": 128, "transi... | 19.577778 | 118 | 0.567537 | 113 | 881 | 4.380531 | 0.530973 | 0.072727 | 0.084848 | 0.076768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05303 | 0.101022 | 881 | 44 | 119 | 20.022727 | 0.57197 | 0.505108 | 0 | 0.421053 | 0 | 0 | 0.103045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0.684211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a0d7cd17e0975df38099337a8525d9c9998c9226 | 853 | py | Python | themes/__init__.py | luciusgone/vim-themes | d63ebfdffb60abc67561ffaf378a4f0cf4b3533b | [
"MIT"
] | null | null | null | themes/__init__.py | luciusgone/vim-themes | d63ebfdffb60abc67561ffaf378a4f0cf4b3533b | [
"MIT"
] | null | null | null | themes/__init__.py | luciusgone/vim-themes | d63ebfdffb60abc67561ffaf378a4f0cf4b3533b | [
"MIT"
] | null | null | null | from .collection import all_collection
from .rules import all_rules
for t in all_collection:
t.add_rules(all_rules)
def generate(theme):
if theme == 'all':
for t in all_collection:
write_theme_to_file(t)
else:
for t in all_collection:
if theme == t.scheme_name:
... | 22.447368 | 58 | 0.617819 | 127 | 853 | 3.897638 | 0.259843 | 0.157576 | 0.060606 | 0.090909 | 0.446465 | 0.307071 | 0.307071 | 0.307071 | 0.307071 | 0.169697 | 0 | 0 | 0.276671 | 853 | 37 | 59 | 23.054054 | 0.802269 | 0 | 0 | 0.555556 | 1 | 0 | 0.100821 | 0.032825 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.074074 | 0 | 0.222222 | 0.259259 | 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 |
a0d7e44394247a3b3bdb46cb7f8ae7d0a667340a | 11,757 | py | Python | pytac/data_source.py | dls-controls/pytac | ea3847d010f5cc5c007676b2ab58495b7ce7b179 | [
"Apache-2.0"
] | 4 | 2017-06-01T16:09:29.000Z | 2018-07-05T08:13:22.000Z | pytac/data_source.py | T-Nicholls/pytac | ea3847d010f5cc5c007676b2ab58495b7ce7b179 | [
"Apache-2.0"
] | 66 | 2017-05-24T13:17:50.000Z | 2018-08-02T12:55:38.000Z | pytac/data_source.py | T-Nicholls/pytac | ea3847d010f5cc5c007676b2ab58495b7ce7b179 | [
"Apache-2.0"
] | 2 | 2018-10-15T13:09:12.000Z | 2022-03-26T10:43:12.000Z | """Module containing pytac data source classes."""
import pytac
from pytac.exceptions import DataSourceException, FieldException
class DataSource(object):
"""Abstract base class for element or lattice data sources.
Typically an instance would represent hardware via a control system,
or a simulation.
... | 33.305949 | 81 | 0.594795 | 1,429 | 11,757 | 4.79986 | 0.123863 | 0.096224 | 0.032658 | 0.014871 | 0.593235 | 0.506488 | 0.443651 | 0.389853 | 0.369296 | 0.348302 | 0 | 0 | 0.33546 | 11,757 | 352 | 82 | 33.400568 | 0.877896 | 0.568938 | 0 | 0.382979 | 0 | 0 | 0.040702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202128 | false | 0 | 0.021277 | 0 | 0.340426 | 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 |
a0ecac1d46a7d1d5e23bd1ee3e7a3b54581755c4 | 30,594 | py | Python | NC_optical_properties_v_alt_variable_coating.py | annahs/atmos_research | b5853c9b12e327492f8f8ba5069bca3fd2e981c8 | [
"MIT"
] | 2 | 2018-08-17T15:25:26.000Z | 2019-04-17T16:50:00.000Z | NC_optical_properties_v_alt_variable_coating.py | annahs/atmos_research | b5853c9b12e327492f8f8ba5069bca3fd2e981c8 | [
"MIT"
] | null | null | null | NC_optical_properties_v_alt_variable_coating.py | annahs/atmos_research | b5853c9b12e327492f8f8ba5069bca3fd2e981c8 | [
"MIT"
] | null | null | null | from pymiecoated import Mie
import sys
import os
import numpy as np
from pprint import pprint
from datetime import datetime
import mysql.connector
import math
import matplotlib.pyplot as plt
import matplotlib.colors
import calendar
from scipy.optimize import curve_fit
cloud_droplet_conc = 0.5
wavelength = 550 #nm
rBC... | 41.343243 | 353 | 0.726188 | 5,432 | 30,594 | 3.740795 | 0.09757 | 0.030709 | 0.017323 | 0.020669 | 0.535532 | 0.458563 | 0.367569 | 0.296063 | 0.254577 | 0.199951 | 0 | 0.048179 | 0.138393 | 30,594 | 739 | 354 | 41.399188 | 0.722686 | 0.116657 | 0 | 0.168761 | 0 | 0.012567 | 0.14402 | 0.033441 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001795 | 0.021544 | null | null | 0.019749 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a0f107f476aae81a5152cae2583f4d896f1b2cc7 | 957 | py | Python | monky_patching/copy_objects_example.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | monky_patching/copy_objects_example.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | monky_patching/copy_objects_example.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | class Address():
def __init__(self, street, city):
self.street = street
self.city = city
def location(self):
print self.street
print self.city
class Person():
def __init__(self, name, adress):
self.name = name
self.address = address
def get_name(self):
... | 19.14 | 47 | 0.654127 | 118 | 957 | 5.110169 | 0.254237 | 0.092869 | 0.054726 | 0.056385 | 0.069652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23302 | 957 | 50 | 48 | 19.14 | 0.821526 | 0 | 0 | 0.184211 | 0 | 0 | 0.056367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.263158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a0f7dc89657e75f7964cafde24fa2db5a81a9af9 | 8,568 | py | Python | tool/VRE_Tool.py | euCanSHare/dataquierVRE | 0e19e2b7e99cc430aefbbc36f13121b824cd3e7d | [
"Apache-2.0"
] | null | null | null | tool/VRE_Tool.py | euCanSHare/dataquierVRE | 0e19e2b7e99cc430aefbbc36f13121b824cd3e7d | [
"Apache-2.0"
] | null | null | null | tool/VRE_Tool.py | euCanSHare/dataquierVRE | 0e19e2b7e99cc430aefbbc36f13121b824cd3e7d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2020-2021 Barcelona Supercomputing Center (BSC), Spain
#
# 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... | 40.995215 | 121 | 0.60936 | 1,046 | 8,568 | 4.815488 | 0.232314 | 0.02978 | 0.023228 | 0.015287 | 0.331944 | 0.274965 | 0.23784 | 0.231686 | 0.231686 | 0.191781 | 0 | 0.004351 | 0.302638 | 8,568 | 208 | 122 | 41.192308 | 0.838494 | 0.344655 | 0 | 0.105769 | 0 | 0 | 0.100393 | 0.022663 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.028846 | false | 0 | 0.067308 | 0 | 0.134615 | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a0fa3cffb9188f2fb0a891520e16605377cf18e1 | 5,080 | py | Python | rmrk_tools/rmrk2_0_0/__init__.py | khssnv/py-rmrk-tools | 8756dceddf896d9af8dc7e202b70bf1872a8995d | [
"MIT"
] | 3 | 2021-12-15T10:38:40.000Z | 2022-03-25T13:04:34.000Z | rmrk_tools/rmrk2_0_0/__init__.py | khssnv/py-rmrk-tools | 8756dceddf896d9af8dc7e202b70bf1872a8995d | [
"MIT"
] | null | null | null | rmrk_tools/rmrk2_0_0/__init__.py | khssnv/py-rmrk-tools | 8756dceddf896d9af8dc7e202b70bf1872a8995d | [
"MIT"
] | null | null | null | from __future__ import annotations
import json
import urllib.parse
from dataclasses import dataclass
from enum import Enum
from typing import Any, Final, Optional, Union
PREFIX: Final = "RMRK"
VERSION: Final = "2.0.0"
class OP_TYPES(Enum):
BUY = "BUY"
LIST = "LIST"
CREATE = "CREATE"
MINT = "MINT"
... | 24.541063 | 80 | 0.59252 | 574 | 5,080 | 5.174216 | 0.229965 | 0.042424 | 0.085859 | 0.020202 | 0.196633 | 0.138384 | 0.10202 | 0.03367 | 0.03367 | 0.03367 | 0 | 0.001921 | 0.282874 | 5,080 | 206 | 81 | 24.660194 | 0.813341 | 0 | 0 | 0.242604 | 0 | 0 | 0.104724 | 0.052165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065089 | false | 0 | 0.035503 | 0.011834 | 0.639053 | 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 |
9d00cceaaaef7b2176bedd0ce82af552be25093f | 743 | py | Python | Day-073/check_set_bdays.py | arvimal/100DaysofCode | ad4899bc88b948c3efd90337d64e932f1627fd94 | [
"MIT"
] | 1 | 2018-06-28T17:39:38.000Z | 2018-06-28T17:39:38.000Z | Day-073/check_set_bdays.py | arvimal/100DaysofCode-Python | 01e59f45b4dc06a3be9e9900456a6bd439752911 | [
"MIT"
] | null | null | null | Day-073/check_set_bdays.py | arvimal/100DaysofCode-Python | 01e59f45b4dc06a3be9e9900456a6bd439752911 | [
"MIT"
] | 7 | 2020-01-24T23:03:58.000Z | 2021-05-31T01:00:27.000Z | #!/usr/bin/env python3
bday_dict = {}
while True:
name = input("\nEnter name: ")
if len(name) != 0 and type(name) == str:
# Check the existence of the name in bday_dict
if bday_dict.get(name):
print("\n{} found in db".format(name))
print("Name: {}".format(name))
... | 33.772727 | 70 | 0.537012 | 97 | 743 | 3.989691 | 0.453608 | 0.144703 | 0.05168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003868 | 0.304172 | 743 | 21 | 71 | 35.380952 | 0.744681 | 0.088829 | 0 | 0.117647 | 0 | 0 | 0.248889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.411765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9d03e9ccf8da9c3f55f98fc35465e35258086b33 | 2,310 | py | Python | examples/example1.py | nvms/booker | acc5b8c98f90b0f687285d2d2d9b9cf58d680a99 | [
"MIT"
] | 2 | 2019-07-21T05:04:47.000Z | 2021-05-10T15:59:50.000Z | examples/example1.py | nvms/booker | acc5b8c98f90b0f687285d2d2d9b9cf58d680a99 | [
"MIT"
] | null | null | null | examples/example1.py | nvms/booker | acc5b8c98f90b0f687285d2d2d9b9cf58d680a99 | [
"MIT"
] | null | null | null | from __future__ import print_function
import booker
import time
import sys
import datetime
import threading
def hour(): return datetime.datetime.now().hour
def minute(): return datetime.datetime.now().minute
def second(): return datetime.datetime.now().second
def ms(): return datetime.datetime.now().microsecond
booke... | 23.814433 | 94 | 0.659307 | 331 | 2,310 | 4.501511 | 0.323263 | 0.037584 | 0.05906 | 0.067114 | 0.105369 | 0.038926 | 0 | 0 | 0 | 0 | 0 | 0.018653 | 0.164502 | 2,310 | 96 | 95 | 24.0625 | 0.753368 | 0.118182 | 0 | 0 | 0 | 0 | 0.227905 | 0.014399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245614 | false | 0 | 0.105263 | 0.070175 | 0.350877 | 0.280702 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9d06e74c40352af6e1843b64fa8160da570177fc | 4,090 | py | Python | ooobuild/dyn/animations/transition_type.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/dyn/animations/transition_type.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/dyn/animations/transition_type.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 43.052632 | 116 | 0.733252 | 385 | 4,090 | 7.672727 | 0.425974 | 0.020311 | 0.013541 | 0.027082 | 0.037915 | 0.024374 | 0 | 0 | 0 | 0 | 0 | 0.003383 | 0.20489 | 4,090 | 94 | 117 | 43.510638 | 0.904982 | 0.179951 | 0 | 0 | 0 | 0 | 0.05136 | 0.018429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.074627 | 0 | 0.746269 | 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 |
9d0fe013150a84fb155bf8c1d12d9b5244f04fdf | 10,403 | py | Python | Python/NET2FPGA/SERVER.py | gkpau/NET2FPGA | 4cce0342266440d197f755deb8dbb57cde72bd92 | [
"MIT"
] | null | null | null | Python/NET2FPGA/SERVER.py | gkpau/NET2FPGA | 4cce0342266440d197f755deb8dbb57cde72bd92 | [
"MIT"
] | null | null | null | Python/NET2FPGA/SERVER.py | gkpau/NET2FPGA | 4cce0342266440d197f755deb8dbb57cde72bd92 | [
"MIT"
] | null | null | null | ###############################################################################
# NET2FPGA SERVER lib
#
# MIT License
# Copyright (c) 2019 Pau Gomez Kabelka <paugomezkabelka@gmail.com>
###############################################################################
import socket
import re
import os
import time
from shu... | 37.692029 | 132 | 0.569163 | 1,016 | 10,403 | 5.757874 | 0.170276 | 0.034701 | 0.041368 | 0.060171 | 0.543419 | 0.488889 | 0.458803 | 0.442393 | 0.442393 | 0.411282 | 0 | 0.009901 | 0.271845 | 10,403 | 275 | 133 | 37.829091 | 0.762376 | 0.019321 | 0 | 0.459091 | 0 | 0.013636 | 0.160797 | 0.038049 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022727 | null | null | 0.172727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9d11d100036b450473d07bb2072ded981c783e64 | 3,777 | py | Python | app.py | ax-rwnd/E-dot | b1b64fcce43c5d6f54dc38959498cdba95e757b1 | [
"BSD-3-Clause"
] | null | null | null | app.py | ax-rwnd/E-dot | b1b64fcce43c5d6f54dc38959498cdba95e757b1 | [
"BSD-3-Clause"
] | 1 | 2015-12-05T02:04:35.000Z | 2015-12-11T02:47:28.000Z | app.py | ax-rwnd/E-dot | b1b64fcce43c5d6f54dc38959498cdba95e757b1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#flask app glue
from flask import Flask, render_template, request, g
from flask.ext.login import LoginManager, UserMixin, current_user
from config import config
from flask.ext.navigation import Navigation
#makes limiting optional
try:
from flask_limiter import Limiter
using_limit = True
excep... | 27.369565 | 106 | 0.759598 | 561 | 3,777 | 4.937611 | 0.317291 | 0.025271 | 0.043321 | 0.043321 | 0.079422 | 0.051986 | 0.034657 | 0.034657 | 0.034657 | 0 | 0 | 0.006318 | 0.119936 | 3,777 | 137 | 107 | 27.569343 | 0.827016 | 0.113317 | 0 | 0.076923 | 0 | 0.010989 | 0.187782 | 0.044839 | 0 | 0 | 0 | 0 | 0.010989 | 0 | null | null | 0.010989 | 0.175824 | null | null | 0.098901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9d191730c4438776b1763fcaa872963535315570 | 4,403 | py | Python | menpo/io/test/io_test.py | ikassi/menpo | ca702fc814a1ad50b27c44c6544ba364d3aa7e31 | [
"BSD-3-Clause"
] | null | null | null | menpo/io/test/io_test.py | ikassi/menpo | ca702fc814a1ad50b27c44c6544ba364d3aa7e31 | [
"BSD-3-Clause"
] | null | null | null | menpo/io/test/io_test.py | ikassi/menpo | ca702fc814a1ad50b27c44c6544ba364d3aa7e31 | [
"BSD-3-Clause"
] | 1 | 2021-04-14T12:09:00.000Z | 2021-04-14T12:09:00.000Z | import os
import menpo.io as pio
from menpo.shape import TriMesh
from numpy.testing import assert_allclose
import numpy as np
# ground truth bunny landmarks
bunny_l_eye = np.array([[-0.09009447, 0.13760692, 0.02303147]])
bunny_r_eye = np.array([[-0.06041192, 0.13871727, 0.03462752]])
bunny_nose = np.array([[-0.079... | 38.622807 | 78 | 0.67613 | 662 | 4,403 | 4.273414 | 0.18429 | 0.07918 | 0.090138 | 0.055143 | 0.617533 | 0.584305 | 0.54719 | 0.502651 | 0.438317 | 0.372216 | 0 | 0.068404 | 0.163298 | 4,403 | 113 | 79 | 38.964602 | 0.699511 | 0.016352 | 0 | 0.382022 | 0 | 0 | 0.088494 | 0 | 0 | 0 | 0 | 0 | 0.449438 | 1 | 0.134831 | false | 0 | 0.224719 | 0.022472 | 0.382022 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d237a29907945604145cbe286ebebca8316db8d | 1,588 | py | Python | firehose.py | mkorkmaz/DontHateMeBot | 828437c2b33d66a5159c0f268736d6900764f764 | [
"MIT"
] | null | null | null | firehose.py | mkorkmaz/DontHateMeBot | 828437c2b33d66a5159c0f268736d6900764f764 | [
"MIT"
] | null | null | null | firehose.py | mkorkmaz/DontHateMeBot | 828437c2b33d66a5159c0f268736d6900764f764 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.4
# -*- coding: utf-8 -*-
# author: mehmet@mkorkmaz.com
# last_updated: 2016-04-07
import os
from twython import TwythonStreamer
from twython import Twython
import myutils
import re
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
config = myutils.read_yaml(BASE_DIR + '/config.ini')
clien... | 31.76 | 105 | 0.624685 | 193 | 1,588 | 4.865285 | 0.471503 | 0.085197 | 0.046858 | 0.080937 | 0.233227 | 0.159744 | 0.159744 | 0.159744 | 0.159744 | 0.159744 | 0 | 0.012275 | 0.230479 | 1,588 | 49 | 106 | 32.408163 | 0.756137 | 0.078086 | 0 | 0.058824 | 0 | 0 | 0.186429 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.088235 | false | 0 | 0.147059 | 0 | 0.264706 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d246154ece23edb1868a90ab2ea384080c1c8f5 | 409 | py | Python | Practice/Problem Solving/BirthdayChocolate.py | avantikasharma/HackerRank-Solutions | a980859ac352688853fcbcf3c7ec6d95685f99ea | [
"MIT"
] | 1 | 2018-07-08T15:44:15.000Z | 2018-07-08T15:44:15.000Z | Practice/Problem Solving/BirthdayChocolate.py | avantikasharma/HackerRank-Solutions | a980859ac352688853fcbcf3c7ec6d95685f99ea | [
"MIT"
] | null | null | null | Practice/Problem Solving/BirthdayChocolate.py | avantikasharma/HackerRank-Solutions | a980859ac352688853fcbcf3c7ec6d95685f99ea | [
"MIT"
] | 2 | 2018-08-10T06:49:34.000Z | 2020-10-01T04:50:59.000Z | #!/bin/python
import sys
def solve(n, s, d, m):
total=0
for i in range(n-m+1):
sum=0
for j in range(m):
sum=sum+s[i+j]
if sum==d:
total=total+1
return total
n = int(raw_input().strip())
s = map(int, raw_input().strip().split(' '))
d, m = raw_inp... | 18.590909 | 44 | 0.498778 | 71 | 409 | 2.830986 | 0.408451 | 0.039801 | 0.19403 | 0.079602 | 0.288557 | 0.199005 | 0 | 0 | 0 | 0 | 0 | 0.014035 | 0.303178 | 409 | 21 | 45 | 19.47619 | 0.691228 | 0.02934 | 0 | 0 | 0 | 0 | 0.005051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0.0625 | 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 |
9d2787d0b6f92da0a2550aa291ea78c0d1958e99 | 631 | py | Python | azdashboard/config/routes.py | alinlacea/azdashboard | 3ca41bfdac21c324789937c60491dcbb1d70b05c | [
"MIT"
] | null | null | null | azdashboard/config/routes.py | alinlacea/azdashboard | 3ca41bfdac21c324789937c60491dcbb1d70b05c | [
"MIT"
] | null | null | null | azdashboard/config/routes.py | alinlacea/azdashboard | 3ca41bfdac21c324789937c60491dcbb1d70b05c | [
"MIT"
] | null | null | null | from azdashboard.app.controllers.assets_controller import AssetsController
from azdashboard.app.controllers.queue_controller import QueueController
def setup_routing(app):
# static files
app.route('/img/<filename>', 'GET', AssetsController.img)
app.route('/js/<filename>', 'GET', AssetsController.js)
a... | 39.4375 | 74 | 0.714739 | 71 | 631 | 6.28169 | 0.380282 | 0.125561 | 0.181614 | 0.130045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118859 | 631 | 15 | 75 | 42.066667 | 0.802158 | 0.026941 | 0 | 0 | 0 | 0 | 0.168576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 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 |
9d27e3d1b872d4e2005ddc02dd3aacddfdaae912 | 201 | py | Python | .history/Converter_20211219075757.py | tjxj/pdf2docx | 3338a95f1a971de8caf0369fa3ce794d2d6d57cd | [
"Apache-2.0"
] | null | null | null | .history/Converter_20211219075757.py | tjxj/pdf2docx | 3338a95f1a971de8caf0369fa3ce794d2d6d57cd | [
"Apache-2.0"
] | null | null | null | .history/Converter_20211219075757.py | tjxj/pdf2docx | 3338a95f1a971de8caf0369fa3ce794d2d6d57cd | [
"Apache-2.0"
] | null | null | null | from pdf2docx import Converter
import streamlit as st
uploaded_file = st.file_uploader("")
docx_file = '输出word文件的路径'
cv = Converter(uploaded_file)
cv.convert(docx_file, start=0, end=None)
cv.close() | 22.333333 | 40 | 0.776119 | 30 | 201 | 5.033333 | 0.633333 | 0.15894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.114428 | 201 | 9 | 41 | 22.333333 | 0.837079 | 0 | 0 | 0 | 0 | 0 | 0.054455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d3f07b88ebc3572979ad91c6e02b706cdca6ba1 | 308 | py | Python | dump.py | QuantGongbin/BetterHR | 42d16ed48fb5cd3119cb0f00573ae70a82c1d14b | [
"Apache-2.0"
] | null | null | null | dump.py | QuantGongbin/BetterHR | 42d16ed48fb5cd3119cb0f00573ae70a82c1d14b | [
"Apache-2.0"
] | null | null | null | dump.py | QuantGongbin/BetterHR | 42d16ed48fb5cd3119cb0f00573ae70a82c1d14b | [
"Apache-2.0"
] | null | null | null | import json
from jieba import analyse
import jieba
import requests
import pickle
r = requests.get(url='http://49.65.1.250:8082/sysKnowledge/getSysKnowledges')
r.encoding = 'utf-8'
ans = json.loads(r.text)
file_name = 'knowledge.json'
output = open(file_name, 'wb')
pickle.dump(ans, output)
output.close()
| 19.25 | 77 | 0.75 | 48 | 308 | 4.770833 | 0.666667 | 0.09607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047445 | 0.11039 | 308 | 15 | 78 | 20.533333 | 0.788321 | 0 | 0 | 0 | 0 | 0 | 0.241042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9d3f72f1e489a788ec701793b8d13a959a769ee9 | 440 | py | Python | sandbox/ipns_point_structure.py | dobrosketchkun/MOI | 9e9907a443319f022acad61a92a4792574a77a5f | [
"Unlicense"
] | 3 | 2018-12-18T20:08:48.000Z | 2018-12-25T00:52:57.000Z | sandbox/ipns_point_structure.py | dobrosketchkun/MOI | 9e9907a443319f022acad61a92a4792574a77a5f | [
"Unlicense"
] | null | null | null | sandbox/ipns_point_structure.py | dobrosketchkun/MOI | 9e9907a443319f022acad61a92a4792574a77a5f | [
"Unlicense"
] | null | null | null | structure = {
'Public_encryption': 'public Alice key for encoding',
'Public_signing': 'public Alice key for signing',
'Message':
{'message_id_hash': #message_id_5383710b780583f1f462b6e719071523147cde25a5a47c380126c3395f84b9b3
{'Address': address, #e6jB08WPeBjoPS4Lb4CFRVW/TAWSrGq7MD5OG8NVA794z4GwhlXz7vov1i2w6GLWY... | 44 | 125 | 0.75 | 35 | 440 | 9.257143 | 0.628571 | 0.067901 | 0.08642 | 0.104938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184343 | 0.1 | 440 | 9 | 126 | 48.888889 | 0.633838 | 0.447727 | 0 | 0 | 0 | 0 | 0.595833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d436aeb441ad3e0897b63e3e860a78aaeac54f0 | 645 | py | Python | .ci/drop-in.py | NSLS-II-TES/profile-sirepo | 95cc226aaab2fa27a3d80b1207357bb6779bfff1 | [
"BSD-3-Clause"
] | null | null | null | .ci/drop-in.py | NSLS-II-TES/profile-sirepo | 95cc226aaab2fa27a3d80b1207357bb6779bfff1 | [
"BSD-3-Clause"
] | 3 | 2020-08-06T15:19:05.000Z | 2021-05-20T19:23:48.000Z | .ci/drop-in.py | NSLS-II-TES/profile-sirepo | 95cc226aaab2fa27a3d80b1207357bb6779bfff1 | [
"BSD-3-Clause"
] | 1 | 2021-05-17T20:58:56.000Z | 2021-05-17T20:58:56.000Z | # We are dealing with the "Young's Double Slit Experiment" simulation here:
# https://github.com/NSLS-II/sirepo-bluesky/blob/master/sirepo_bluesky/tests/SIREPO_SRDB_ROOT/user/SdP3aU5G/srw/00000000/sirepo-data.json
RE(
optimization_plan(
fly_plan=run_fly_sim,
bounds=param_bounds,
db=db,
... | 29.318182 | 137 | 0.648062 | 87 | 645 | 4.528736 | 0.758621 | 0.06599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054878 | 0.237209 | 645 | 21 | 138 | 30.714286 | 0.745935 | 0.324031 | 0 | 0 | 0 | 0 | 0.124711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d4c90948fdba09cc02fc25f8905d0e3d248a8a9 | 3,239 | py | Python | linora/sample/Dataset/_file_yes.py | Hourout/linora | 4269516c9227a18bd1a65e1c6a59e73c74e874d0 | [
"Apache-2.0"
] | 10 | 2018-11-22T03:30:39.000Z | 2020-08-20T04:39:35.000Z | linora/sample/Dataset/_file_yes.py | Hourout/linora | 4269516c9227a18bd1a65e1c6a59e73c74e874d0 | [
"Apache-2.0"
] | null | null | null | linora/sample/Dataset/_file_yes.py | Hourout/linora | 4269516c9227a18bd1a65e1c6a59e73c74e874d0 | [
"Apache-2.0"
] | 3 | 2019-04-09T12:17:34.000Z | 2020-08-20T04:33:31.000Z | import math
import random
import itertools
import pandas as pd
from linora.sample.Dataset._dataset import DataSet
__all__ = ['from_Csv']
class file_yes(DataSet):
def __init__(self):
super(file_yes, self).__init__()
self.params.rank_list = None
self.params.batch_index = 0
self.para... | 46.271429 | 151 | 0.644026 | 442 | 3,239 | 4.538462 | 0.18552 | 0.358923 | 0.149551 | 0.053838 | 0.508475 | 0.425224 | 0.399302 | 0.365404 | 0.345962 | 0.304586 | 0 | 0.011746 | 0.237728 | 3,239 | 69 | 152 | 46.942029 | 0.800729 | 0.018833 | 0 | 0.220339 | 0 | 0 | 0.007881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.084746 | 0 | 0.237288 | 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 |
9d4e02f74975405a1ce475bc7488fba35c4b1b99 | 1,751 | py | Python | Tools/jythonc/jast/Output.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | Tools/jythonc/jast/Output.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | Tools/jythonc/jast/Output.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | # Copyright (c) Corporation for National Research Initiatives
import os
from Modifier import ModifierString
class SourceFile:
def __init__(self, classname):
self.text = []
self.indentation = 0
self.indent = ' '
self.startLine = 1
self.classname = classname
self.filename = classname+'.java'
def dump... | 21.617284 | 61 | 0.641348 | 227 | 1,751 | 4.876652 | 0.334802 | 0.050587 | 0.051491 | 0.03252 | 0.056007 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006419 | 0.199315 | 1,751 | 80 | 62 | 21.8875 | 0.783167 | 0.033695 | 0 | 0.096774 | 0 | 0 | 0.066864 | 0.013018 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9d548e267ee8adefc5fa0c3f01c7fd5ed8fbd09b | 1,220 | py | Python | pymcuprog/toolconnection.py | KrystianD-contribution/pymcuprog | a9411a8e4a5db8b54517c51da0bae96bf8385a65 | [
"MIT"
] | 28 | 2021-05-08T19:28:33.000Z | 2022-03-23T06:23:13.000Z | pymcuprog/toolconnection.py | KrystianD-contribution/pymcuprog | a9411a8e4a5db8b54517c51da0bae96bf8385a65 | [
"MIT"
] | 20 | 2021-05-24T19:20:39.000Z | 2022-03-12T20:10:30.000Z | pymcuprog/toolconnection.py | KrystianD-contribution/pymcuprog | a9411a8e4a5db8b54517c51da0bae96bf8385a65 | [
"MIT"
] | 11 | 2021-06-24T20:59:16.000Z | 2022-03-23T23:59:38.000Z | """
This module includes wrapper classes for Tool connection parameters
"""
#pylint: disable=too-few-public-methods
class ToolConnection(object):
"""
Base class for ToolConnection classes used to wrap configuration parameters for tool connections
"""
#pylint: disable=too-few-public-methods
class ToolUsbHi... | 32.972973 | 103 | 0.709016 | 148 | 1,220 | 5.756757 | 0.425676 | 0.056338 | 0.056338 | 0.066901 | 0.411972 | 0.346244 | 0.346244 | 0.171362 | 0.171362 | 0.171362 | 0 | 0.001045 | 0.215574 | 1,220 | 36 | 104 | 33.888889 | 0.889237 | 0.568033 | 0 | 0 | 0 | 0 | 0.009238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9d56335df62d3d9193d0e70f60f0adc2ebcdd7c1 | 1,841 | py | Python | schema/algorithm/instance.py | astrid-project/context-broker-apis | 870589493a7eec91bc47ef4d8616104cb13bb06c | [
"MIT"
] | 1 | 2020-05-14T00:36:03.000Z | 2020-05-14T00:36:03.000Z | schema/algorithm/instance.py | astrid-project/cb-manager | 870589493a7eec91bc47ef4d8616104cb13bb06c | [
"MIT"
] | 5 | 2020-06-26T04:06:16.000Z | 2021-04-06T09:58:12.000Z | schema/algorithm/instance.py | astrid-project/cb-manager | 870589493a7eec91bc47ef4d8616104cb13bb06c | [
"MIT"
] | null | null | null | from marshmallow import Schema
from marshmallow.fields import Nested, Raw, Str
from document.algorithm.catalog import Algorithm_Catalog_Document
from document.algorithm.instance import Algorithm_Instance_Document
from schema.base import Base_Schema
from schema.validate import In, Unique_List
class Algorithm_Instance... | 49.756757 | 119 | 0.730038 | 208 | 1,841 | 6.293269 | 0.283654 | 0.181818 | 0.042781 | 0.038961 | 0.172651 | 0.094729 | 0.094729 | 0.094729 | 0.094729 | 0.094729 | 0 | 0.001997 | 0.184139 | 1,841 | 36 | 120 | 51.138889 | 0.869507 | 0.073873 | 0 | 0 | 0 | 0 | 0.206631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.26087 | 0 | 0.73913 | 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 |
9d587235083bd6f53f28714bcd1bdc54fe14cf71 | 608 | py | Python | zhangqi/20180403/1.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | zhangqi/20180403/1.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | zhangqi/20180403/1.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | #1.根据以下描述,尝试用程序呈现
# 属性:长和宽
# 方法:1)设置长和宽 2)获取长和宽 3)获取面积
class Cfx(object):
def __init__(self,length1,width1):
self.__length1 = length1
self.__width1 = width1
def pri_cfx(self):
print("长方形的长和宽分别为{},{}".format(self.__length1,self.__width1))
def setlength1(self,newlength1):
self.__length1 = newlength1
def... | 15.2 | 63 | 0.677632 | 88 | 608 | 4.284091 | 0.397727 | 0.145889 | 0.135279 | 0.111406 | 0.05305 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056974 | 0.162829 | 608 | 39 | 64 | 15.589744 | 0.683694 | 0.087171 | 0 | 0.190476 | 0 | 0 | 0.05948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0 | 0 | 0.285714 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9d60cfef6849933705d97ca358c15947caca51a3 | 3,101 | py | Python | unit_test/test_vx_base_target.py | owl129/vxhunter | 0b872fd6e934064fbab8df9f71594e5c3619f421 | [
"BSD-2-Clause"
] | 189 | 2019-08-26T09:31:51.000Z | 2022-03-22T20:01:50.000Z | unit_test/test_vx_base_target.py | owl129/vxhunter | 0b872fd6e934064fbab8df9f71594e5c3619f421 | [
"BSD-2-Clause"
] | 17 | 2019-09-15T13:11:05.000Z | 2021-11-10T02:30:05.000Z | unit_test/test_vx_base_target.py | owl129/vxhunter | 0b872fd6e934064fbab8df9f71594e5c3619f421 | [
"BSD-2-Clause"
] | 45 | 2019-08-26T09:31:53.000Z | 2022-03-10T08:39:31.000Z | from common import BaseTestCase, mock
from serial_debuger.vx_base_target import VxSerialBaseTarget
class VxSerialCmdDebugerTests(BaseTestCase):
def setUp(self):
super(VxSerialCmdDebugerTests, self).setUp()
self.target = VxSerialBaseTarget()
self.target.serial = mock.Mock()
def check_s... | 58.509434 | 119 | 0.634634 | 404 | 3,101 | 4.700495 | 0.183168 | 0.075829 | 0.063191 | 0.067404 | 0.672459 | 0.614534 | 0.614534 | 0.571353 | 0.505003 | 0.447077 | 0 | 0.264906 | 0.242825 | 3,101 | 53 | 119 | 58.509434 | 0.543867 | 0.005805 | 0 | 0.363636 | 0 | 0.159091 | 0.317326 | 0.07268 | 0 | 0 | 0.027579 | 0 | 0.181818 | 1 | 0.159091 | false | 0 | 0.045455 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d60dfd8a147ff5792085bbbadad4652e9a7e49e | 661 | py | Python | Course 202009/Python/Visualize2/weather/weather/spiders/tianqi.py | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | Course 202009/Python/Visualize2/weather/weather/spiders/tianqi.py | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | Course 202009/Python/Visualize2/weather/weather/spiders/tianqi.py | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | import scrapy
from weather.items import WeatherItem
class TianqiSpider(scrapy.Spider):
name = 'tianqi'
allowed_domains = ['tianqi.com']
start_urls = ['https://www.tianqi.com/shenzhen/15']
def parse(self, response):
item = WeatherItem()
data = response.xpath('//ul[@class="weaul"]/li')
... | 34.789474 | 74 | 0.568835 | 86 | 661 | 4.348837 | 0.581395 | 0.072193 | 0.080214 | 0.104278 | 0.096257 | 0.096257 | 0 | 0 | 0 | 0 | 0 | 0.021912 | 0.240545 | 661 | 18 | 75 | 36.722222 | 0.723108 | 0 | 0 | 0 | 0 | 0 | 0.237519 | 0.139183 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
19b4352531d76c19c16956a14aa24b1d00e29fba | 975 | py | Python | config/__init__.py | Blue-IT-Marketing/justicendou | b843de22ee72798cb41a26508d7eaf6404a57234 | [
"MIT"
] | null | null | null | config/__init__.py | Blue-IT-Marketing/justicendou | b843de22ee72798cb41a26508d7eaf6404a57234 | [
"MIT"
] | null | null | null | config/__init__.py | Blue-IT-Marketing/justicendou | b843de22ee72798cb41a26508d7eaf6404a57234 | [
"MIT"
] | null | null | null | """
**Flask App Configuration Settings**
*Python Version 3.8 and above*
Used to setup environment variables for python flask app
"""
__developer__ = "mobius-crypt"
__email__ = "mobiusndou@gmail.com"
__twitter__ = "@blueitserver"
__github_repo__ = "https://github.com/freelancing-solutions/memberships-and-aff... | 27.857143 | 90 | 0.678974 | 109 | 975 | 5.788991 | 0.642202 | 0.099842 | 0.07607 | 0.079239 | 0.107765 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002618 | 0.21641 | 975 | 35 | 91 | 27.857143 | 0.823298 | 0.305641 | 0 | 0 | 0 | 0 | 0.26868 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19cb003bea478f3575511d2ebe5a39426a80bc61 | 992 | py | Python | createHashTableCode.py | tkucic/plc_PremadeHashTable | 095380bb54e6c6d5026b0b8d39f0f861010cab1d | [
"MIT"
] | null | null | null | createHashTableCode.py | tkucic/plc_PremadeHashTable | 095380bb54e6c6d5026b0b8d39f0f861010cab1d | [
"MIT"
] | null | null | null | createHashTableCode.py | tkucic/plc_PremadeHashTable | 095380bb54e6c6d5026b0b8d39f0f861010cab1d | [
"MIT"
] | null | null | null | #Read external data
import csv
data = []
with open('exampleData.csv', newline='') as csvfile:
reader = csv.DictReader(csvfile, delimiter=';', quotechar='|')
for row in reader:
data.append(row)
#Create preconfigured data array and initialize it
with open('declaration.st', 'w') as f:
f.write('VAR\n')... | 29.176471 | 79 | 0.601815 | 155 | 992 | 3.83871 | 0.412903 | 0.10084 | 0.058824 | 0.055462 | 0.247059 | 0.191597 | 0.191597 | 0.104202 | 0.104202 | 0 | 0 | 0.0025 | 0.193548 | 992 | 33 | 80 | 30.060606 | 0.74125 | 0.160282 | 0 | 0.090909 | 0 | 0.045455 | 0.353083 | 0.097944 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 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 |
19cbdde53e685009f22b78d3e977739e6f9f40ac | 1,568 | py | Python | tests/cli/test_cli_store.py | Aahbree/reference-data-repository | f318c0532aaf941ec4f00c8375c9dea45c56f186 | [
"MIT"
] | null | null | null | tests/cli/test_cli_store.py | Aahbree/reference-data-repository | f318c0532aaf941ec4f00c8375c9dea45c56f186 | [
"MIT"
] | 5 | 2021-01-27T22:17:19.000Z | 2021-12-14T17:13:58.000Z | tests/cli/test_cli_store.py | Aahbree/reference-data-repository | f318c0532aaf941ec4f00c8375c9dea45c56f186 | [
"MIT"
] | 5 | 2021-12-08T02:33:44.000Z | 2021-12-13T03:21:51.000Z | # This file is part of the Reference Data Repository (refdata).
#
# Copyright (C) 2021 New York University.
#
# refdata is free software; you can redistribute it and/or modify it under the
# terms of the MIT License; see LICENSE file for more details.
"""Unit test for the command line interface of the local data store... | 37.333333 | 78 | 0.669005 | 224 | 1,568 | 4.580357 | 0.339286 | 0.077973 | 0.05848 | 0.128655 | 0.549708 | 0.469786 | 0.469786 | 0.469786 | 0.435673 | 0.435673 | 0 | 0.008026 | 0.205357 | 1,568 | 41 | 79 | 38.243902 | 0.815409 | 0.326531 | 0 | 0.73913 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0.391304 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19cc633d84454e53e10a2fca0f9db901bd282754 | 4,652 | py | Python | d5_users/51_todo/todolist.py | Nuuttu/Koulu_PythonWeppiAppi | 0b364dc5e485524058c340987f955272ce6bd991 | [
"MIT"
] | null | null | null | d5_users/51_todo/todolist.py | Nuuttu/Koulu_PythonWeppiAppi | 0b364dc5e485524058c340987f955272ce6bd991 | [
"MIT"
] | null | null | null | d5_users/51_todo/todolist.py | Nuuttu/Koulu_PythonWeppiAppi | 0b364dc5e485524058c340987f955272ce6bd991 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, redirect, flash, session, abort
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms.ext.sqlalchemy.orm import model_form
from werkzeug.security import generate_password_hash, check_password_hash
from wtforms import StringField, PasswordField, v... | 27.690476 | 81 | 0.642949 | 572 | 4,652 | 5.132867 | 0.248252 | 0.036785 | 0.040872 | 0.016349 | 0.313352 | 0.22752 | 0.174046 | 0.112398 | 0.112398 | 0.112398 | 0 | 0.010708 | 0.217111 | 4,652 | 168 | 82 | 27.690476 | 0.795442 | 0.008169 | 0 | 0.289063 | 0 | 0 | 0.11697 | 0.011068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101563 | false | 0.101563 | 0.046875 | 0.015625 | 0.367188 | 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 |
19ceba4f2a2a9618be108c41641d7649ea938fb8 | 3,159 | py | Python | aps/environment.py | Manewing/APS | 834c16555f52461c65fc39132653bb9d68f97cca | [
"MIT"
] | null | null | null | aps/environment.py | Manewing/APS | 834c16555f52461c65fc39132653bb9d68f97cca | [
"MIT"
] | null | null | null | aps/environment.py | Manewing/APS | 834c16555f52461c65fc39132653bb9d68f97cca | [
"MIT"
] | null | null | null | # Environment
import sys
import random
import numpy as np
import pygame
from aps_dvh_node import Node
from aps_dvh_landmark import Landmark
from gbls import *
sys.path.append("../common/")
import EnvBase
class Environment(EnvBase.EnvBase):
def __init__(self, nc, lc, size, max_hop, method, npos, lpos):
E... | 28.459459 | 87 | 0.539411 | 412 | 3,159 | 4 | 0.308252 | 0.029126 | 0.029126 | 0.027306 | 0.114684 | 0.091019 | 0.091019 | 0.032767 | 0 | 0 | 0 | 0.015152 | 0.352327 | 3,159 | 110 | 88 | 28.718182 | 0.790323 | 0.033555 | 0 | 0.098765 | 0 | 0 | 0.02266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098765 | null | null | 0.024691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
19d569911aa26b53059da463b349ea86c1c02d74 | 972 | py | Python | stix_shifter/stix_transmission/src/modules/security_advisor/security_advisor_connector.py | imurphy-ibm/stix-shifter | 6e7d184fb1e54490721a890faedfb89ccfac2dd7 | [
"Apache-2.0"
] | 1 | 2020-01-26T04:07:55.000Z | 2020-01-26T04:07:55.000Z | stix_shifter/stix_transmission/src/modules/security_advisor/security_advisor_connector.py | HippoTX/stix-shifter | 6a8d539da2675ebe23fe3b1f7c6518433a76269d | [
"Apache-2.0"
] | null | null | null | stix_shifter/stix_transmission/src/modules/security_advisor/security_advisor_connector.py | HippoTX/stix-shifter | 6a8d539da2675ebe23fe3b1f7c6518433a76269d | [
"Apache-2.0"
] | 1 | 2020-03-03T16:15:28.000Z | 2020-03-03T16:15:28.000Z | from ..base.base_connector import BaseConnector
from .security_advisor_ping import SecurityAdvisorPing
from .security_advisor_query_connector import SecurityAdvisorQueryConnector
from .security_advisor_status_connector import SecurityAdvisorStatusConnector
from .security_advisor_results_connector import SecurityAdvisor... | 48.6 | 79 | 0.809671 | 90 | 972 | 8.466667 | 0.322222 | 0.098425 | 0.124672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133745 | 972 | 19 | 80 | 51.157895 | 0.904988 | 0 | 0 | 0 | 0 | 0 | 0.00823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.