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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44d81f4a562fc325b6fdaf33b5effc0dd60d28d3 | 26,298 | py | Python | hgapp/powers/createPowerFormUtilities.py | shadytradesman/The-Contract-Website | d8b353064f91c53ebab951dec784a0a36caba260 | [
"Apache-2.0"
] | 6 | 2020-10-03T12:15:05.000Z | 2021-10-15T04:43:36.000Z | hgapp/powers/createPowerFormUtilities.py | shadytradesman/The-Contract-Website | d8b353064f91c53ebab951dec784a0a36caba260 | [
"Apache-2.0"
] | 99 | 2020-06-04T17:43:56.000Z | 2022-03-12T01:07:20.000Z | hgapp/powers/createPowerFormUtilities.py | shadytradesman/The-Contract-Website | d8b353064f91c53ebab951dec784a0a36caba260 | [
"Apache-2.0"
] | 9 | 2020-06-06T16:39:09.000Z | 2020-10-02T16:24:17.000Z | from django.forms import formset_factory
from django.utils import timezone
from django.shortcuts import get_object_or_404
import bleach
import json
from .forms import CreatePowerForm, make_enhancement_form, make_drawback_form, make_parameter_form, \
SystemFieldRollForm, SystemFieldTextForm, MIND_, BODY_, PARRY_
fr... | 46.299296 | 154 | 0.664994 | 3,118 | 26,298 | 5.230597 | 0.069275 | 0.025017 | 0.013489 | 0.019621 | 0.626832 | 0.563309 | 0.494267 | 0.399718 | 0.343491 | 0.262064 | 0 | 0.00447 | 0.251426 | 26,298 | 568 | 155 | 46.299296 | 0.823987 | 0.006084 | 0 | 0.351297 | 0 | 0 | 0.053651 | 0.003138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057884 | false | 0 | 0.015968 | 0.003992 | 0.155689 | 0.001996 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44d8afe91e73eaf3251897e6e3f5a49e57dc20e9 | 1,877 | py | Python | cargan/loss/pitch.py | mdc202002/cargan | 5bfb44a1d8c2de8126e8053bed6078ad2e20819c | [
"MIT"
] | 72 | 2021-10-20T01:17:54.000Z | 2022-02-22T07:40:35.000Z | cargan/loss/pitch.py | mdc202002/cargan | 5bfb44a1d8c2de8126e8053bed6078ad2e20819c | [
"MIT"
] | 7 | 2021-10-21T21:44:00.000Z | 2022-03-17T18:24:42.000Z | cargan/loss/pitch.py | mdc202002/cargan | 5bfb44a1d8c2de8126e8053bed6078ad2e20819c | [
"MIT"
] | 16 | 2021-10-20T02:07:46.000Z | 2022-03-16T08:18:37.000Z | import torch
import torchcrepe
###############################################################################
# CREPE perceptual loss
###############################################################################
class CREPEPerceptualLoss(torch.nn.Module):
def __init__(self):
super().__init__()
... | 30.770492 | 88 | 0.550879 | 226 | 1,877 | 4.451327 | 0.30531 | 0.178926 | 0.129225 | 0.089463 | 0.246521 | 0.246521 | 0.246521 | 0.22167 | 0.22167 | 0.22167 | 0 | 0.02369 | 0.257858 | 1,877 | 60 | 89 | 31.283333 | 0.698492 | 0.132659 | 0 | 0.212121 | 0 | 0 | 0.003425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.060606 | 0 | 0.242424 | 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 | 0 | 0 | 1 | 0 |
44d97cec1d9b32b7e2914ecab12420157a4f75cc | 223 | py | Python | rec_to_nwb/processing/nwb/components/analog/old_fl_analog_builder.py | EMK-Lab/rec_to_nwb | d3550b4c1df9629a3687fa5a9208d142c9c7c7fb | [
"Apache-2.0"
] | 8 | 2020-05-29T13:48:35.000Z | 2021-11-19T04:24:48.000Z | rec_to_nwb/processing/nwb/components/analog/old_fl_analog_builder.py | EMK-Lab/rec_to_nwb | d3550b4c1df9629a3687fa5a9208d142c9c7c7fb | [
"Apache-2.0"
] | 8 | 2020-07-13T00:42:35.000Z | 2020-11-16T16:17:12.000Z | rec_to_nwb/processing/nwb/components/analog/old_fl_analog_builder.py | EMK-Lab/rec_to_nwb | d3550b4c1df9629a3687fa5a9208d142c9c7c7fb | [
"Apache-2.0"
] | 1 | 2020-08-28T01:34:35.000Z | 2020-08-28T01:34:35.000Z | from rec_to_nwb.processing.nwb.components.analog.fl_analog import FlAnalog
class OldFlAnalogBuilder:
@staticmethod
def build(data, timestamps, description):
return FlAnalog(data, timestamps, description)
| 24.777778 | 74 | 0.775785 | 25 | 223 | 6.8 | 0.76 | 0.164706 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152466 | 223 | 8 | 75 | 27.875 | 0.899471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 5 |
44da8f08437fa311200de5d8536d8b820064e77f | 438 | py | Python | _todo/programme/td9_simple_server.py | Jerome-maker/ensae_teaching_cs | 43ea044361ee60c00c85aea354a7b25c21c0fd07 | [
"MIT"
] | 73 | 2015-05-12T13:12:11.000Z | 2021-12-21T11:44:29.000Z | _todo/programme/td9_simple_server.py | Jerome-maker/ensae_teaching_cs | 43ea044361ee60c00c85aea354a7b25c21c0fd07 | [
"MIT"
] | 90 | 2015-06-23T11:11:35.000Z | 2021-03-31T22:09:15.000Z | _todo/programme/td9_simple_server.py | Jerome-maker/ensae_teaching_cs | 43ea044361ee60c00c85aea354a7b25c21c0fd07 | [
"MIT"
] | 65 | 2015-01-13T08:23:55.000Z | 2022-02-11T22:42:07.000Z | import sys
sys.path.append(r"D:\Dupre\_data\program\pyhome")
import pyhome3
from pyhome3 import HalLOG
from pyhome3.srcpyhome.internet.simple_server.simple_server_custom import run_server
HalLOG(OutputPrint=True)
HalLOG("running server")
run_server(None)
HalLOG("end running server")
# http://localhost:8080/localfile/... | 29.2 | 112 | 0.821918 | 64 | 438 | 5.4375 | 0.625 | 0.034483 | 0.057471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038929 | 0.061644 | 438 | 14 | 113 | 31.285714 | 0.807786 | 0.333333 | 0 | 0 | 0 | 0 | 0.211806 | 0.100694 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
44dbb055e9de0b9ac2e1f37ae940e8d05cde499b | 6,230 | py | Python | XML_to_Semark/xml_semark.py | prashankkadam/Maer_1 | e201866429a1231df7f439797ef100f9e4e6da37 | [
"MIT"
] | null | null | null | XML_to_Semark/xml_semark.py | prashankkadam/Maer_1 | e201866429a1231df7f439797ef100f9e4e6da37 | [
"MIT"
] | null | null | null | XML_to_Semark/xml_semark.py | prashankkadam/Maer_1 | e201866429a1231df7f439797ef100f9e4e6da37 | [
"MIT"
] | null | null | null | # -*- coding:/ utf-8 -*-
"""
Created on Tue Jul 23 12:07:20 2019
This piece of software is bound by The MIT License (MIT)
Copyright (c) 2019 Prashank Kadam
Code written by : Prashank Kadam
User name - ADM-PKA187
Email ID : prashank.kadam@maersktankers.com
Created on - Tue Jul 30 10:00:14 2019
version : 1.0
""... | 46.148148 | 117 | 0.632103 | 817 | 6,230 | 4.665851 | 0.30355 | 0.009182 | 0.00787 | 0.018888 | 0.206191 | 0.178384 | 0.076863 | 0.043809 | 0.036726 | 0 | 0 | 0.008041 | 0.241413 | 6,230 | 134 | 118 | 46.492537 | 0.798561 | 0.376726 | 0 | 0 | 0 | 0 | 0.384829 | 0.031953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 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 | 0 | 0 | 1 | 0 |
44dc0bec2aec12c7dc578a3fe8630954d0075baf | 3,506 | py | Python | bot.py | justletterh/cutiecafe | 148f4708ab0b852552f6b91a25e084ac0011b2f0 | [
"WTFPL"
] | null | null | null | bot.py | justletterh/cutiecafe | 148f4708ab0b852552f6b91a25e084ac0011b2f0 | [
"WTFPL"
] | null | null | null | bot.py | justletterh/cutiecafe | 148f4708ab0b852552f6b91a25e084ac0011b2f0 | [
"WTFPL"
] | null | null | null | import discord, jishaku
from discord.ext import commands
from time import sleep
hid=666317117154525185
did=676454199742955530
lid=701254727534510129
owners=[hid,did,lid]
status="— ୨୧ 𝐬𝐧𝐮𝐠𝐠𝐥𝐢𝐧’ 𝐭𝐡𝐞 𝐜𝐮𝐭𝐢𝐞 𝐩𝐢𝐞𝐬! ₓ˚. ୭ ˚○◦"
join="""\U00002601 . . . ⇢ ˗ˏˋ <@&689140834200846374> ࿐ྂ
**welcome sweetheart... | 40.767442 | 204 | 0.733885 | 488 | 3,506 | 5.206967 | 0.342213 | 0.04329 | 0.029516 | 0.039355 | 0.355765 | 0.236128 | 0.210153 | 0.158205 | 0.158205 | 0.126722 | 0 | 0.170755 | 0.104678 | 3,506 | 86 | 205 | 40.767442 | 0.635234 | 0 | 0 | 0.205479 | 0 | 0.068493 | 0.392073 | 0.21842 | 0 | 0 | 0.002281 | 0 | 0 | 1 | 0.013699 | false | 0 | 0.041096 | 0 | 0.082192 | 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 | 0 | 0 | 1 | 0 |
44dd2af0e04f2bcde0f9679219132a6850d1e347 | 1,611 | py | Python | src/05_concurrent/concurrent_queue.py | edgardeng/python-advance-interview | 59fd7bee8e871acdc7fdfecf2a110db840c47ebb | [
"Apache-2.0"
] | 1 | 2022-03-06T13:03:56.000Z | 2022-03-06T13:03:56.000Z | src/05_concurrent/concurrent_queue.py | edgardeng/python-advance-interview | 59fd7bee8e871acdc7fdfecf2a110db840c47ebb | [
"Apache-2.0"
] | null | null | null | src/05_concurrent/concurrent_queue.py | edgardeng/python-advance-interview | 59fd7bee8e871acdc7fdfecf2a110db840c47ebb | [
"Apache-2.0"
] | null | null | null | from multiprocessing import Queue, Process, Pool, Manager, Pipe
from time import sleep
def basic_usage():
q = Queue(3) # 指定队列大小,如果不写默认无限
q.put('消息1')
q.put('消息2')
q.put('消息3')
# q.put('消息4') # 一直等待直到进入
if not q.full():
q.put('消息5', block=True, timeout=1) # 等待1s,如果还没有put成功,直接抛异常
print('判断队列是否已满: %s' ... | 19.888889 | 63 | 0.605835 | 245 | 1,611 | 3.902041 | 0.383673 | 0.025105 | 0.047071 | 0.035565 | 0.028243 | 0.028243 | 0 | 0 | 0 | 0 | 0 | 0.010828 | 0.197393 | 1,611 | 80 | 64 | 20.1375 | 0.728538 | 0.121043 | 0 | 0.096154 | 0 | 0 | 0.096724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.038462 | 0 | 0.153846 | 0.192308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44e04665233d45cb831ee9757a5d9394bae0f183 | 1,504 | py | Python | app/blueprints/auth/mail.py | hbradleyiii/spa-base | ac79535d63778dc0793b1e2d7ecac5547927798d | [
"MIT"
] | null | null | null | app/blueprints/auth/mail.py | hbradleyiii/spa-base | ac79535d63778dc0793b1e2d7ecac5547927798d | [
"MIT"
] | null | null | null | app/blueprints/auth/mail.py | hbradleyiii/spa-base | ac79535d63778dc0793b1e2d7ecac5547927798d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
app.blueprints.auth.email
~~~~~~~~~~~~~~~~~~~~~~~~~
The auth routes for spa-base.
"""
from flask import current_app, render_template
from app.mail import send_mail
def send_email_verification_mail(user, email):
token = email.verification_token
send_mail('[SPA-Base] Please Verify... | 40.648649 | 86 | 0.619681 | 176 | 1,504 | 5.039773 | 0.232955 | 0.071026 | 0.121759 | 0.148816 | 0.633596 | 0.588501 | 0.588501 | 0.367531 | 0.117249 | 0.117249 | 0 | 0.000891 | 0.253989 | 1,504 | 36 | 87 | 41.777778 | 0.789661 | 0.069814 | 0 | 0.173913 | 0 | 0 | 0.229331 | 0.134436 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.217391 | 0.086957 | 0 | 0.217391 | 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 |
44e1e41758ba5e233b4268bbcdad68104bb8d0a0 | 2,008 | py | Python | logger/publish_http.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | 1 | 2015-12-23T04:27:16.000Z | 2015-12-23T04:27:16.000Z | logger/publish_http.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | null | null | null | logger/publish_http.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
import redis
import sys
import hmac
import hashlib
import json
import decimal
import urllib2
import time
import argparse
import os
from settings import *
r = redis.StrictRedis(host='localhost', port=6379, db=0)
print "using "+os.environ['EVENT_SECRET_KEY']
parser = argparse.ArgumentParser(descriptio... | 32.918033 | 110 | 0.729084 | 291 | 2,008 | 4.934708 | 0.460481 | 0.058496 | 0.019499 | 0.027855 | 0.064067 | 0.032033 | 0 | 0 | 0 | 0 | 0 | 0.024433 | 0.143924 | 2,008 | 60 | 111 | 33.466667 | 0.810937 | 0.253984 | 0 | 0.088889 | 0 | 0 | 0.235887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.244444 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44e34cab338c76b526dd9c77da1242eee658adad | 458 | py | Python | cfgov/paying_for_college/migrations/0010_program_median_monthly_debt.py | flacoman91/consumerfinance.gov | 64e3d68d1c023ae944baf66a99e54236e5976097 | [
"CC0-1.0"
] | 37 | 2020-08-18T19:52:39.000Z | 2022-03-23T08:08:41.000Z | cfgov/paying_for_college/migrations/0010_program_median_monthly_debt.py | flacoman91/consumerfinance.gov | 64e3d68d1c023ae944baf66a99e54236e5976097 | [
"CC0-1.0"
] | 338 | 2020-08-14T20:46:36.000Z | 2022-03-31T20:49:32.000Z | cfgov/paying_for_college/migrations/0010_program_median_monthly_debt.py | raft-tech/cfgov-refresh | 7c63c31fd6bb95ed4f7d368f1e1252175f0c71ca | [
"CC0-1.0"
] | 14 | 2020-10-21T15:27:03.000Z | 2022-03-17T03:16:36.000Z | # -*- coding: utf-8 -*-
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('paying_for_college', '0009_expandable_group_help_text'),
]
operations = [
migrations.AddField(
model_name='program',
name='median_monthly_deb... | 25.444444 | 116 | 0.631004 | 49 | 458 | 5.693878 | 0.77551 | 0.057348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.251092 | 458 | 17 | 117 | 26.941176 | 0.793003 | 0.045852 | 0 | 0 | 0 | 0 | 0.266667 | 0.071264 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44e4083a3f1aa8e2c31b0a862cea63e31e705b35 | 502 | py | Python | grifo/snippets/api.py | pavelsimo/Grifo | aff3c6e2c2d5ad7598e5c6d022b444d3ed78e0d2 | [
"MIT"
] | null | null | null | grifo/snippets/api.py | pavelsimo/Grifo | aff3c6e2c2d5ad7598e5c6d022b444d3ed78e0d2 | [
"MIT"
] | null | null | null | grifo/snippets/api.py | pavelsimo/Grifo | aff3c6e2c2d5ad7598e5c6d022b444d3ed78e0d2 | [
"MIT"
] | null | null | null | from grifo.snippets.models import Snippet, SnippetCategory
from rest_framework import viewsets
from grifo.snippets.serializers import SnippetSerializer, SnippetCategorySerializer
class SnippetViewSet(viewsets.ModelViewSet):
serializer_class = SnippetSerializer
queryset = Snippet.objects.all()
lookup_fiel... | 29.529412 | 83 | 0.806773 | 47 | 502 | 8.510638 | 0.510638 | 0.045 | 0.085 | 0.175 | 0.115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129482 | 502 | 16 | 84 | 31.375 | 0.915332 | 0 | 0 | 0.181818 | 0 | 0 | 0.007968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
44e680a8fac14428a219624044650be58b2e4334 | 374 | py | Python | Tools/AtlasMaker/Assets/listdir.py | fakhirsh/cyclicshift | d255a3cc82703decdbbd477df3fa14791cd528d5 | [
"MIT"
] | 1 | 2019-11-12T17:47:23.000Z | 2019-11-12T17:47:23.000Z | Tools/AtlasMaker/Assets/listdir.py | fakhirsh/cyclicshift | d255a3cc82703decdbbd477df3fa14791cd528d5 | [
"MIT"
] | 31 | 2019-10-25T11:28:21.000Z | 2019-12-10T16:57:30.000Z | Tools/AtlasMaker/Assets/listdir.py | fakhirsh/cyclicshift | d255a3cc82703decdbbd477df3fa14791cd528d5 | [
"MIT"
] | null | null | null | import os
import sys
if(len(sys.argv) != 2):
print("Error: usage --> python3 lstdir.py [DIRNAME]")
exit(0)
path = sys.argv[1]
files = []
# r=root, d=directories, f = files
for r, d, f in os.walk(path):
for file in f:
if '.png' in file:
files.append(os.path.join(r, file))
... | 17.809524 | 57 | 0.558824 | 61 | 374 | 3.42623 | 0.508197 | 0.066986 | 0.143541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01487 | 0.280749 | 374 | 20 | 58 | 18.7 | 0.762082 | 0.13369 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
44e6bc135f28e05f2002c2b95899b3825d3fcdcd | 1,022 | py | Python | preprocess-scripts/build_movies.py | rohanrb302/End-to-End-Movie-Recommendation--Service | eabbf843e599cbfa4ae17f9e7c7eb0e73fd852d4 | [
"Apache-2.0"
] | null | null | null | preprocess-scripts/build_movies.py | rohanrb302/End-to-End-Movie-Recommendation--Service | eabbf843e599cbfa4ae17f9e7c7eb0e73fd852d4 | [
"Apache-2.0"
] | null | null | null | preprocess-scripts/build_movies.py | rohanrb302/End-to-End-Movie-Recommendation--Service | eabbf843e599cbfa4ae17f9e7c7eb0e73fd852d4 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import requests
ratings = pd.read_csv("processed_ratings.csv")
# fetch movie details of all the unique movieids from the movie API
movie_api_url = "http://128.2.204.215:8080/movie/"
movies = [requests.get(movie_api_url + movie).json() for movie in ratings['movieid'].unique()]
# filter out records... | 48.666667 | 164 | 0.746575 | 158 | 1,022 | 4.683544 | 0.550633 | 0.108108 | 0.02973 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015184 | 0.097847 | 1,022 | 21 | 165 | 48.666667 | 0.787419 | 0.226027 | 0 | 0 | 0 | 0 | 0.259542 | 0.026718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44e7490f9c6966672bb9ea8fc88ef245604797cd | 182 | py | Python | sdk/decorators.py | morais90/sdk.py | 97fcb6f7079ae9ae7606265a13c4d7d9670e176c | [
"MIT"
] | null | null | null | sdk/decorators.py | morais90/sdk.py | 97fcb6f7079ae9ae7606265a13c4d7d9670e176c | [
"MIT"
] | 8 | 2021-11-17T20:30:21.000Z | 2022-03-29T02:23:32.000Z | sdk/decorators.py | morais90/sdk.py | 97fcb6f7079ae9ae7606265a13c4d7d9670e176c | [
"MIT"
] | null | null | null | import functools
def chaining(func):
@functools.wraps(func)
def wrapper(self, *args, **kwargs):
func(self, *args, **kwargs)
return self
return wrapper
| 16.545455 | 39 | 0.620879 | 21 | 182 | 5.380952 | 0.52381 | 0.141593 | 0.247788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258242 | 182 | 10 | 40 | 18.2 | 0.837037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
44e8fc0d72523b5cd8b760e1363b4509f15356c5 | 450 | py | Python | flask_restly/decorator/body.py | gorzechowski/flask-restly | 54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a | [
"MIT"
] | 16 | 2018-10-16T20:07:02.000Z | 2021-01-07T13:01:05.000Z | flask_restly/decorator/body.py | gorzechowski/flask-restly | 54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a | [
"MIT"
] | 16 | 2018-10-16T14:09:55.000Z | 2020-01-16T07:52:22.000Z | flask_restly/decorator/body.py | gorzechowski/flask-restly | 54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a | [
"MIT"
] | 1 | 2019-04-17T03:20:41.000Z | 2019-04-17T03:20:41.000Z | from flask_restly._storage import push_metadata
import wrapt
def body(outgoing=None, incoming=None):
def decorator(func):
@wrapt.decorator
def wrapper(wrapped, _, args, kwargs):
return wrapped(*args, **kwargs)
wrapped_func = wrapper(func)
push_metadata(wrapped_func, {
... | 22.5 | 47 | 0.62 | 46 | 450 | 5.891304 | 0.434783 | 0.121771 | 0.125461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291111 | 450 | 19 | 48 | 23.684211 | 0.84953 | 0 | 0 | 0 | 0 | 0 | 0.035556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
44ea1e24de27283dea1dea7e3321f3745fc9d01f | 400 | py | Python | docs/en/conf.py | sdaityari/e-cidadania | 2fc7f312145e7cd674033f3d765ff9ff8d4fb23c | [
"Apache-2.0"
] | 40 | 2015-03-26T20:46:16.000Z | 2022-02-28T09:15:30.000Z | docs/en/conf.py | zixtor/e-cidadania | 2fc7f312145e7cd674033f3d765ff9ff8d4fb23c | [
"Apache-2.0"
] | 1 | 2017-07-29T09:44:12.000Z | 2017-08-08T16:27:22.000Z | docs/en/conf.py | zixtor/e-cidadania | 2fc7f312145e7cd674033f3d765ff9ff8d4fb23c | [
"Apache-2.0"
] | 19 | 2015-01-13T20:40:49.000Z | 2021-11-02T03:53:39.000Z | import sys
import os
cwd = os.path.dirname(os.path.realpath(__file__))
main_dir = os.path.normpath(cwd + '/../')
sys.path.append(main_dir)
#print sys.path
from config.all import *
language = 'en'
#html_logo = '../images/logos/logo-en.png'
latex_logo = '../images/logos/logo-en.png'
latex_documents = [
('index', 'e... | 22.222222 | 49 | 0.6875 | 60 | 400 | 4.433333 | 0.583333 | 0.067669 | 0.112782 | 0.142857 | 0.218045 | 0.218045 | 0.218045 | 0 | 0 | 0 | 0 | 0 | 0.12 | 400 | 18 | 50 | 22.222222 | 0.755682 | 0.1375 | 0 | 0 | 0 | 0 | 0.281977 | 0.078488 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44f1e748bd22b2cafab30bc7205e2a0aa86a626c | 2,191 | py | Python | tests/data_source/test_ec.py | KarrLab/Kinetic-Datanator | 8aff047fd117033b98eca8ee3b21a8f07c430dec | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0",
"MIT"
] | 10 | 2018-11-20T17:04:09.000Z | 2021-08-24T18:29:06.000Z | tests/data_source/test_ec.py | KarrLab/Kinetic-Datanator | 8aff047fd117033b98eca8ee3b21a8f07c430dec | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0",
"MIT"
] | 59 | 2018-11-23T20:42:11.000Z | 2020-11-08T19:51:36.000Z | tests/data_source/test_ec.py | KarrLab/Kinetic-Datanator | 8aff047fd117033b98eca8ee3b21a8f07c430dec | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0",
"MIT"
] | 3 | 2018-12-15T00:53:54.000Z | 2021-08-24T18:29:08.000Z | import unittest
from datanator.data_source import ec
import datanator.config.core
import shutil
import tempfile
from pathlib import Path
class TestEC(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.cache_dir = tempfile.mkdtemp()
db = 'test'
username = datanator.config.core.g... | 42.960784 | 167 | 0.614331 | 264 | 2,191 | 4.988636 | 0.382576 | 0.009112 | 0.057707 | 0.050114 | 0.250569 | 0.198937 | 0.198937 | 0.098709 | 0 | 0 | 0 | 0.009615 | 0.240529 | 2,191 | 51 | 168 | 42.960784 | 0.781851 | 0 | 0 | 0.093023 | 0 | 0 | 0.267336 | 0.016423 | 0 | 0 | 0 | 0 | 0.069767 | 1 | 0.139535 | false | 0.046512 | 0.139535 | 0 | 0.302326 | 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 | 0 | 0 | 1 | 0 |
44f47fa7be7161ab737b4f9c294931c50761dff9 | 1,710 | py | Python | python/sorting/quick_sort.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | null | null | null | python/sorting/quick_sort.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | 11 | 2020-01-09T06:53:45.000Z | 2022-02-11T01:34:44.000Z | python/sorting/quick_sort.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | 1 | 2017-03-18T17:19:43.000Z | 2017-03-18T17:19:43.000Z | def partition(A, left, right): # O(N)
pivot = A[right] # O(1)
i = left # O(1)
for j in range(left, right): # O(N)
if A[j] <= ... | 42.75 | 78 | 0.261988 | 178 | 1,710 | 2.449438 | 0.230337 | 0.045872 | 0.114679 | 0.075688 | 0.119266 | 0.09633 | 0 | 0 | 0 | 0 | 0 | 0.089802 | 0.615789 | 1,710 | 39 | 79 | 43.846154 | 0.57382 | 0.192982 | 0 | 0 | 0 | 0 | 0.006047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0 | 0.285714 | 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 |
44f538f3949e70e9287024559503410db3c272af | 1,691 | py | Python | setup.py | syncrypt/trio-inspector | 386167e09e056fd27fbed8738891dedc72578ee4 | [
"Apache-2.0",
"MIT"
] | 8 | 2019-04-17T22:29:14.000Z | 2021-05-27T23:34:40.000Z | setup.py | syncrypt/trio-inspector | 386167e09e056fd27fbed8738891dedc72578ee4 | [
"Apache-2.0",
"MIT"
] | 3 | 2019-08-13T13:32:13.000Z | 2021-05-08T07:18:38.000Z | setup.py | syncrypt/trio-inspector | 386167e09e056fd27fbed8738891dedc72578ee4 | [
"Apache-2.0",
"MIT"
] | 2 | 2020-01-03T08:11:11.000Z | 2021-05-07T07:02:12.000Z | from setuptools import setup, find_packages
exec(open("trio_inspector/_version.py", encoding="utf-8").read())
LONG_DESC = open("README.md", encoding="utf-8").read()
setup(
name="trio-inspector",
version=__version__,
description="A browser-based monitor for Trio",
url="https://github.com/syncrypt/trio... | 31.90566 | 70 | 0.581904 | 166 | 1,691 | 5.837349 | 0.608434 | 0.053664 | 0.077399 | 0.033024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.261975 | 1,691 | 52 | 71 | 32.519231 | 0.770032 | 0.043761 | 0 | 0.06383 | 0 | 0 | 0.526022 | 0.02912 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.021277 | 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 |
44f73375d6020d1969aa41be0a796b01b2e269b6 | 143 | py | Python | nipy/algorithms/statistics/formula/__init__.py | bpinsard/nipy | d49e8292adad6619e3dac710752131b567efe90e | [
"BSD-3-Clause"
] | 236 | 2015-01-09T21:28:37.000Z | 2022-03-27T11:51:58.000Z | nipy/algorithms/statistics/formula/__init__.py | bpinsard/nipy | d49e8292adad6619e3dac710752131b567efe90e | [
"BSD-3-Clause"
] | 171 | 2015-03-23T00:31:43.000Z | 2021-11-22T12:43:00.000Z | nipy/algorithms/statistics/formula/__init__.py | bpinsard/nipy | d49e8292adad6619e3dac710752131b567efe90e | [
"BSD-3-Clause"
] | 94 | 2015-02-01T12:39:47.000Z | 2022-01-27T06:38:19.000Z | """ Formula and related objects """
from .formulae import (Formula, Term, terms, Factor, make_recarray,
natural_spline)
| 35.75 | 67 | 0.636364 | 15 | 143 | 5.933333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265734 | 143 | 3 | 68 | 47.666667 | 0.847619 | 0.188811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
44f7b040ae5a720fbeb66ef4b27631b354791099 | 1,119 | py | Python | Python/95.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | 1 | 2020-12-10T05:36:15.000Z | 2020-12-10T05:36:15.000Z | Python/95.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | null | null | null | Python/95.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | 3 | 2020-04-06T05:55:08.000Z | 2021-08-29T14:26:54.000Z | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def generateTrees(self, n: int) -> List[TreeNode]:
if n == 0:
return []
self.seen = {}
return self.df... | 26.642857 | 54 | 0.422699 | 125 | 1,119 | 3.752 | 0.288 | 0.153518 | 0.110874 | 0.136461 | 0.200426 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008418 | 0.469169 | 1,119 | 42 | 55 | 26.642857 | 0.781145 | 0.133155 | 0 | 0.074074 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44f8c313abc197a6cbaf4a7a0e766b03137619a3 | 3,922 | py | Python | faps/make_offspring.py | ellisztamas/faps | fdf5ba990eaf85bfcf05b5eb757285ef40e8f918 | [
"MIT"
] | null | null | null | faps/make_offspring.py | ellisztamas/faps | fdf5ba990eaf85bfcf05b5eb757285ef40e8f918 | [
"MIT"
] | 9 | 2018-02-15T11:19:04.000Z | 2020-05-22T17:54:07.000Z | faps/make_offspring.py | ellisztamas/faps | fdf5ba990eaf85bfcf05b5eb757285ef40e8f918 | [
"MIT"
] | null | null | null | import numpy as np
from faps.genotypeArray import genotypeArray
from faps.calculate_geno_probs import calculate_geno_probs
def make_offspring(parents, noffs=None, dam_list=None, sire_list=None, mu=1e-12, family_name='offs'):
"""
Mate individuals in a base population to create simulated offspring. Lists of
... | 46.141176 | 121 | 0.694544 | 589 | 3,922 | 4.528014 | 0.302207 | 0.028871 | 0.014998 | 0.012373 | 0.149231 | 0.131984 | 0.131984 | 0.131984 | 0.131984 | 0.131984 | 0 | 0.006931 | 0.227435 | 3,922 | 84 | 122 | 46.690476 | 0.873267 | 0.413819 | 0 | 0 | 0 | 0 | 0.087776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.078947 | 0 | 0.131579 | 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 | 0 | 0 | 1 | 0 |
44f8c47600b789d5dd92cdc562549d532583231e | 2,362 | py | Python | tests/functional/api/test_user_api.py | PhilipWafula/faulu-apis-demo | 082735ce8b2bfd010d5b4be9491a5c94a8f745d6 | [
"MIT"
] | 2 | 2020-05-29T03:43:28.000Z | 2020-06-11T16:03:36.000Z | tests/functional/api/test_user_api.py | PhilipWafula/Flask-Server-Side | 082735ce8b2bfd010d5b4be9491a5c94a8f745d6 | [
"MIT"
] | 15 | 2020-04-06T10:27:06.000Z | 2020-08-16T09:25:20.000Z | tests/functional/api/test_user_api.py | PhilipWafula/faulu-apis-demo | 082735ce8b2bfd010d5b4be9491a5c94a8f745d6 | [
"MIT"
] | 1 | 2020-06-07T14:09:05.000Z | 2020-06-07T14:09:05.000Z | from app.server.models.user import User
def test_get_all_users(test_client, activated_admin_user):
"""
GIVEN a flask application
WHEN a GET request sent to '/api/v1/user/' with a valid auth token
THEN check all users are returned.
"""
authentication_token = activated_admin_user.encode_auth_tok... | 35.787879 | 90 | 0.647756 | 294 | 2,362 | 5.003401 | 0.251701 | 0.055065 | 0.097893 | 0.085656 | 0.638341 | 0.617947 | 0.558124 | 0.558124 | 0.558124 | 0.490143 | 0 | 0.012799 | 0.239204 | 2,362 | 65 | 91 | 36.338462 | 0.805787 | 0.212108 | 0 | 0.536585 | 0 | 0 | 0.191513 | 0.071468 | 0 | 0 | 0 | 0.015385 | 0.146341 | 1 | 0.073171 | false | 0 | 0.02439 | 0 | 0.097561 | 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 |
44f956a849a6c4d35aee25d62b6bcf916bf88c50 | 7,576 | py | Python | iprir/tests.py | account-login/iprir | 6b268bfff3f5af68f1cbf812f01104d4db238e68 | [
"MIT"
] | 2 | 2017-03-01T09:27:18.000Z | 2019-10-03T06:36:18.000Z | iprir/tests.py | account-login/iprir | 6b268bfff3f5af68f1cbf812f01104d4db238e68 | [
"MIT"
] | null | null | null | iprir/tests.py | account-login/iprir | 6b268bfff3f5af68f1cbf812f01104d4db238e68 | [
"MIT"
] | null | null | null | from ipaddress import IPv4Address, IPv6Address, IPv6Network
from contextlib import contextmanager
import tempfile
import os
import random
import unittest
import requests
import iprir
from iprir.record import RIRRecord, ip_to_int
from iprir.parser import parse_file, parse_string
from iprir.database import DB
from ipri... | 29.59375 | 93 | 0.606389 | 1,084 | 7,576 | 4.089483 | 0.197417 | 0.014888 | 0.029326 | 0.007219 | 0.372208 | 0.312655 | 0.272727 | 0.194451 | 0.123618 | 0.123618 | 0 | 0.102573 | 0.256204 | 7,576 | 255 | 94 | 29.709804 | 0.684117 | 0.031151 | 0 | 0.21608 | 0 | 0 | 0.150866 | 0.075297 | 0 | 0 | 0 | 0 | 0.221106 | 1 | 0.085427 | false | 0.005025 | 0.065327 | 0.005025 | 0.18593 | 0.01005 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44fa7ab080f682a67685d77fc4c1632e1036494b | 820 | py | Python | Aron/Day10/answer.py | coolafabbe/AdventOfCode2021 | 97a2e4c7d887ef6f1ae477becb25cc1d97114781 | [
"MIT"
] | null | null | null | Aron/Day10/answer.py | coolafabbe/AdventOfCode2021 | 97a2e4c7d887ef6f1ae477becb25cc1d97114781 | [
"MIT"
] | null | null | null | Aron/Day10/answer.py | coolafabbe/AdventOfCode2021 | 97a2e4c7d887ef6f1ae477becb25cc1d97114781 | [
"MIT"
] | null | null | null | import sys
with open(sys.argv[1], "r") as file:
entries = file.read().splitlines()
open_chars = ['(', '[', '{', '<']
close_chars = [')', ']', '}', '>']
char_map = {o:c for o, c in zip(open_chars, close_chars)}
points = {')': 3, ']':57, '}':1197, '>': 25137}
syntax_score = 0
acp_scores = []
for line in entries... | 21.578947 | 57 | 0.536585 | 111 | 820 | 3.810811 | 0.432432 | 0.085106 | 0.066194 | 0.089835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035775 | 0.284146 | 820 | 37 | 58 | 22.162162 | 0.684838 | 0 | 0 | 0.074074 | 0 | 0 | 0.037897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44fc2f7950308d857850a4bf2b09c5e329cf743e | 1,207 | py | Python | bin/compute_stats.py | krayzpipes/ACE-1 | 138bf2aecad949f0b72b66519c32893df033de39 | [
"Apache-2.0"
] | 28 | 2018-08-08T11:57:31.000Z | 2022-01-12T23:06:18.000Z | bin/compute_stats.py | krayzpipes/ACE-1 | 138bf2aecad949f0b72b66519c32893df033de39 | [
"Apache-2.0"
] | 108 | 2018-08-08T12:35:06.000Z | 2019-07-19T22:57:19.000Z | bin/compute_stats.py | krayzpipes/ACE-1 | 138bf2aecad949f0b72b66519c32893df033de39 | [
"Apache-2.0"
] | 16 | 2018-08-03T18:48:00.000Z | 2021-11-09T00:35:35.000Z | #!/usr/bin/env python3
import sys
import argparse
import os
import os.path
import re
regex = re.compile(r'^(\d+):(\d\d):(\d\d)\.(\d+)$')
alt_regex = re.compile(r'^(\d+):(\d\d):(\d\d)$')
count = 0
total = 0.0
_max = 0.0
_min = 100000
minimum_considered = 1.0
excluded = 0
for line in sys.stdin:
if count == 100000... | 24.632653 | 129 | 0.574979 | 169 | 1,207 | 3.988166 | 0.337278 | 0.026706 | 0.031157 | 0.029674 | 0.173591 | 0.172107 | 0.172107 | 0.172107 | 0.172107 | 0 | 0 | 0.048098 | 0.259321 | 1,207 | 48 | 130 | 25.145833 | 0.705817 | 0.017399 | 0 | 0.153846 | 0 | 0 | 0.12827 | 0.04135 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.128205 | 0 | 0.128205 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
44fcb92ee46b65e1d813631b2192b3e9c704fc0b | 2,622 | py | Python | tetris/tetris.py | janmaltel/pytetris | a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa | [
"MIT"
] | 2 | 2019-11-19T12:54:17.000Z | 2020-08-19T13:25:35.000Z | tetris/tetris.py | janmaltel/pytetris | a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa | [
"MIT"
] | null | null | null | tetris/tetris.py | janmaltel/pytetris | a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa | [
"MIT"
] | null | null | null | from tetris.board import generate_empty_board
from tetris import board, tetromino
import numba
from numba import jitclass, bool_, int64
from tetris.utils import print_tetromino, print_board_to_string
# Needed for numba.@jitclass
specTetris = [
('num_columns', int64),
('num_rows', int64),
('feature_type', ... | 35.432432 | 112 | 0.690694 | 326 | 2,622 | 5.239264 | 0.282209 | 0.083724 | 0.065574 | 0.031616 | 0.263466 | 0.194379 | 0.111241 | 0.111241 | 0.07377 | 0.07377 | 0 | 0.010244 | 0.218154 | 2,622 | 73 | 113 | 35.917808 | 0.822927 | 0.129672 | 0 | 0.153846 | 1 | 0 | 0.079626 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.115385 | false | 0 | 0.096154 | 0.019231 | 0.269231 | 0.096154 | 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 |
44fcd428acfed83c3b1b8317f6fe3c4d1cb8bb2f | 1,752 | py | Python | endtoend_tests/forseti/notifier/inventory_summary_export_test.py | VGerris/forseti-security | 59dc7607b14709e7da4db2751889b4fc757816b6 | [
"Apache-2.0"
] | 921 | 2017-03-09T01:01:24.000Z | 2019-04-16T11:38:25.000Z | endtoend_tests/forseti/notifier/inventory_summary_export_test.py | VGerris/forseti-security | 59dc7607b14709e7da4db2751889b4fc757816b6 | [
"Apache-2.0"
] | 1,996 | 2017-03-03T22:07:50.000Z | 2019-04-17T00:02:28.000Z | endtoend_tests/forseti/notifier/inventory_summary_export_test.py | VGerris/forseti-security | 59dc7607b14709e7da4db2751889b4fc757816b6 | [
"Apache-2.0"
] | 241 | 2017-03-09T01:00:04.000Z | 2019-04-15T18:53:35.000Z | # Copyright 2020 The Forseti Security Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | 35.04 | 77 | 0.687215 | 214 | 1,752 | 5.523364 | 0.528037 | 0.050761 | 0.064298 | 0.077834 | 0.126904 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.234018 | 1,752 | 49 | 78 | 35.755102 | 0.872578 | 0.515411 | 0 | 0 | 0 | 0 | 0.092308 | 0.076923 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44fcf97e01a85045813ffdd909c930123aef9a7d | 2,084 | py | Python | telemetry/roles/slurm_telemetry/files/monster/process.py | Lakshmi-Patneedi/omnia | 40a5dd9496af16ab6fd18f2d807a4d8dea11bbf3 | [
"Apache-2.0"
] | 1 | 2021-10-13T21:48:15.000Z | 2021-10-13T21:48:15.000Z | telemetry/roles/slurm_telemetry/files/monster/process.py | Lakshmi-Patneedi/omnia | 40a5dd9496af16ab6fd18f2d807a4d8dea11bbf3 | [
"Apache-2.0"
] | null | null | null | telemetry/roles/slurm_telemetry/files/monster/process.py | Lakshmi-Patneedi/omnia | 40a5dd9496af16ab6fd18f2d807a4d8dea11bbf3 | [
"Apache-2.0"
] | null | null | null | """
MIT License
Copyright (c) 2022 Texas Tech University
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pu... | 33.079365 | 79 | 0.702015 | 304 | 2,084 | 4.753289 | 0.5 | 0.0609 | 0.027682 | 0.022145 | 0.035986 | 0.035986 | 0.035986 | 0 | 0 | 0 | 0 | 0.005013 | 0.234165 | 2,084 | 62 | 80 | 33.612903 | 0.900376 | 0.629079 | 0 | 0 | 0 | 0 | 0.048558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44fd0f9e7f12ff8da71ca85c28bc5c71ce7aba00 | 2,289 | py | Python | ParamSklearn/components/__init__.py | automl/paramsklearn | 0466802aad28bfc6df945f874b4b81a3f337009d | [
"BSD-3-Clause"
] | 8 | 2015-10-09T08:23:51.000Z | 2020-07-06T01:49:37.000Z | ParamSklearn/components/__init__.py | automl/paramsklearn | 0466802aad28bfc6df945f874b4b81a3f337009d | [
"BSD-3-Clause"
] | 2 | 2015-10-31T12:57:23.000Z | 2015-11-24T12:54:04.000Z | ParamSklearn/components/__init__.py | automl/paramsklearn | 0466802aad28bfc6df945f874b4b81a3f337009d | [
"BSD-3-Clause"
] | 8 | 2015-12-03T17:28:35.000Z | 2021-06-26T17:32:29.000Z | """ParamSklearn can be easily extended with new classification and
preprocessing methods. At import time, ParamSklearn checks the directory
``ParamSklearn/components/classification`` for classification algorithms and
``ParamSklearn/components/preprocessing`` for preprocessing algorithms. To be
found, the algorithm must... | 49.76087 | 155 | 0.811271 | 273 | 2,289 | 6.717949 | 0.410256 | 0.047983 | 0.098146 | 0.087241 | 0.263359 | 0.18157 | 0.09651 | 0.09651 | 0.073064 | 0.073064 | 0 | 0 | 0.091306 | 2,289 | 45 | 156 | 50.866667 | 0.881731 | 0.887724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
44fdd039c46ad6223ab5a5bf2364e61f4d9c428e | 658 | py | Python | adv/yuya.py | qwewqa/dl | d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0 | [
"Apache-2.0"
] | null | null | null | adv/yuya.py | qwewqa/dl | d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0 | [
"Apache-2.0"
] | null | null | null | adv/yuya.py | qwewqa/dl | d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0 | [
"Apache-2.0"
] | null | null | null | import adv.adv_test
from core.advbase import *
from slot.d import Dreadking_Rathalos
def module():
return Yuya
class Yuya(Adv):
conf = {}
conf['slot.d'] = Dreadking_Rathalos()
conf['acl'] = """
`s3, fsc and not self.s3_buff
`s1, fsc
`fs, seq=2
"""
a3 = ('primed_crit... | 21.225806 | 55 | 0.542553 | 92 | 658 | 3.706522 | 0.554348 | 0.017595 | 0.058651 | 0.070381 | 0.146628 | 0.146628 | 0.146628 | 0.146628 | 0 | 0 | 0 | 0.05042 | 0.276596 | 658 | 30 | 56 | 21.933333 | 0.665966 | 0 | 0 | 0.083333 | 0 | 0 | 0.225266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.083333 | 0.125 | 0.041667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
44fed48b903a45718e278b7bbb853329b5ff3a78 | 669 | py | Python | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | null | null | null | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 7 | 2020-06-06T01:06:19.000Z | 2022-02-10T11:15:14.000Z | lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py | ervinpepic/Kodecta_media_catalog | c1e0692d42ee4935a7e1ae7fec1913ddab3054f2 | [
"Apache-2.0"
] | 1 | 2020-11-04T03:21:24.000Z | 2020-11-04T03:21:24.000Z | """
Analyzers.
"""
from elasticsearch_dsl import analyzer
from elasticsearch_dsl.analysis import token_filter
__title__ = 'django_elasticsearch_dsl_drf.analyzers'
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
__copyright__ = '2017-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
'... | 23.068966 | 60 | 0.762332 | 80 | 669 | 5.775 | 0.475 | 0.155844 | 0.287879 | 0.21645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025952 | 0.136024 | 669 | 28 | 61 | 23.892857 | 0.773356 | 0.014948 | 0 | 0.095238 | 0 | 0 | 0.384025 | 0.25192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
44fef0a3b086e649cd8bbdf5e4629c04e482ccb9 | 2,594 | py | Python | data/main.py | danielxiangzl/hotstuff | e701f5556102aae99dd1e3a654c15b2cda15579f | [
"Apache-2.0"
] | null | null | null | data/main.py | danielxiangzl/hotstuff | e701f5556102aae99dd1e3a654c15b2cda15579f | [
"Apache-2.0"
] | null | null | null | data/main.py | danielxiangzl/hotstuff | e701f5556102aae99dd1e3a654c15b2cda15579f | [
"Apache-2.0"
] | 1 | 2021-08-08T05:08:49.000Z | 2021-08-08T05:08:49.000Z | from glob import glob
from os.path import join
import os
from matplotlib.pyplot import hexbin
from parse import LogAggregator
from plot import Ploter
if __name__ == '__main__':
max_latencies = [2_000, 5_000] # For TPS graphs.
# Parse the results.
for system in ['3-chain', '2-chain', 'ditto-async', 'di... | 33.688312 | 78 | 0.581727 | 353 | 2,594 | 4.169972 | 0.215297 | 0.048913 | 0.05231 | 0.057065 | 0.555707 | 0.483016 | 0.483016 | 0.483016 | 0.463995 | 0.463995 | 0 | 0.056535 | 0.256746 | 2,594 | 76 | 79 | 34.131579 | 0.70695 | 0.083655 | 0 | 0.438596 | 0 | 0 | 0.175253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
78000ffb092a4de142fe1f75fa2e53b2d742b53a | 43,347 | py | Python | sdk/python/pulumi_commercetools/outputs.py | unplatform-io/pulumi-commercetools | b81b998f99995c2ab7eb05a45220d414ae414da3 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-03-05T10:13:36.000Z | 2021-03-05T10:13:36.000Z | sdk/python/pulumi_commercetools/outputs.py | unplatform-io/pulumi-commercetools | b81b998f99995c2ab7eb05a45220d414ae414da3 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-09-17T07:23:39.000Z | 2021-09-20T12:34:51.000Z | sdk/python/pulumi_commercetools/outputs.py | unplatform-io/pulumi-commercetools | b81b998f99995c2ab7eb05a45220d414ae414da3 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 32.93845 | 162 | 0.63054 | 4,633 | 43,347 | 5.595079 | 0.041226 | 0.031865 | 0.049147 | 0.071831 | 0.756307 | 0.725793 | 0.689839 | 0.617313 | 0.595594 | 0.573644 | 0 | 0.001274 | 0.257826 | 43,347 | 1,315 | 163 | 32.963498 | 0.804482 | 0.004083 | 0 | 0.698043 | 1 | 0.018639 | 0.174381 | 0.049602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174278 | false | 0 | 0.005592 | 0.091333 | 0.335508 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7803a8c8d00022860aa2c1e297b0776b9bac5e6f | 4,437 | py | Python | LGTV/__init__.py | Maccraft123/LGWebOSRemote | 52c481c83e78d06457b58cc68a87fefbfb80c7ef | [
"MIT"
] | null | null | null | LGTV/__init__.py | Maccraft123/LGWebOSRemote | 52c481c83e78d06457b58cc68a87fefbfb80c7ef | [
"MIT"
] | null | null | null | LGTV/__init__.py | Maccraft123/LGWebOSRemote | 52c481c83e78d06457b58cc68a87fefbfb80c7ef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
from inspect import getargspec
import json
import os
import sys
from time import sleep
import logging
from .scan import LGTVScan
from .remote import LGTVRemote
from .auth import LGTVAuth
search_config = [
"/etc/lgtv/config.json",
"~/.lgtv/config.j... | 25.5 | 106 | 0.497634 | 545 | 4,437 | 3.988991 | 0.26789 | 0.048298 | 0.022079 | 0.016559 | 0.095676 | 0.064397 | 0.022999 | 0 | 0 | 0 | 0 | 0.011412 | 0.368041 | 4,437 | 173 | 107 | 25.647399 | 0.763909 | 0.022312 | 0 | 0.285714 | 0 | 0 | 0.121827 | 0.01269 | 0.006803 | 0 | 0 | 0 | 0 | 1 | 0.027211 | false | 0.020408 | 0.068027 | 0 | 0.115646 | 0.102041 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7804747b1e4973dfb20f21c2d72f6ee3df3427ee | 508 | py | Python | tests/test_django_cms_templates.py | judy2k/epcon | 0a033f915bd79c1e93e6408069e33655990fbf07 | [
"BSD-2-Clause"
] | null | null | null | tests/test_django_cms_templates.py | judy2k/epcon | 0a033f915bd79c1e93e6408069e33655990fbf07 | [
"BSD-2-Clause"
] | null | null | null | tests/test_django_cms_templates.py | judy2k/epcon | 0a033f915bd79c1e93e6408069e33655990fbf07 | [
"BSD-2-Clause"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals, absolute_import
from pytest import mark
from tests.common_tools import template_used # , template_paths
# needs to be marked because Django CMS will interfere
@mark.django_db
def test_if_menu_html_template_is_used_on_404_page(client):
url = "/asasd/foo/... | 29.882353 | 69 | 0.777559 | 77 | 508 | 4.831169 | 0.623377 | 0.096774 | 0.096774 | 0.139785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036446 | 0.135827 | 508 | 16 | 70 | 31.75 | 0.810934 | 0.163386 | 0 | 0 | 0 | 0 | 0.097387 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7804b1932916d494a0caef5d17c396d3ce3feb1f | 5,809 | py | Python | data/master_cycle_gan_dataset.py | RegentLee/master_research | ee8e45abc890c7103c1c9917954c5958b48782f6 | [
"BSD-3-Clause"
] | null | null | null | data/master_cycle_gan_dataset.py | RegentLee/master_research | ee8e45abc890c7103c1c9917954c5958b48782f6 | [
"BSD-3-Clause"
] | null | null | null | data/master_cycle_gan_dataset.py | RegentLee/master_research | ee8e45abc890c7103c1c9917954c5958b48782f6 | [
"BSD-3-Clause"
] | null | null | null | """Dataset class template
This module provides a template for users to implement custom datasets.
You can specify '--dataset_mode template' to use this dataset.
The class name should be consistent with both the filename and its dataset_mode option.
The filename should be <dataset_mode>_dataset.py
The class name should... | 41.791367 | 158 | 0.632123 | 828 | 5,809 | 4.27657 | 0.229469 | 0.031065 | 0.016944 | 0.017792 | 0.260378 | 0.171985 | 0.138379 | 0.123129 | 0.062129 | 0.035583 | 0 | 0.008789 | 0.275263 | 5,809 | 138 | 159 | 42.094203 | 0.832304 | 0.484076 | 0 | 0.129032 | 0 | 0 | 0.031769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.112903 | 0 | 0.241935 | 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 | 0 | 0 | 1 | 0 |
78053273af9c507537b21f75edef0b6e3855dd00 | 317 | py | Python | colors.py | Gpopcorn/3D-Graphics-Engine | d13f5cf8da8c55796d4eb04a10beb80da3f36c1e | [
"MIT"
] | 11 | 2021-02-25T23:27:14.000Z | 2021-08-18T10:04:18.000Z | colors.py | Gpopcorn/3D-Graphics-Engine | d13f5cf8da8c55796d4eb04a10beb80da3f36c1e | [
"MIT"
] | 1 | 2021-07-17T15:49:43.000Z | 2021-08-03T06:56:04.000Z | colors.py | Gpopcorn/3D-Graphics-Engine | d13f5cf8da8c55796d4eb04a10beb80da3f36c1e | [
"MIT"
] | null | null | null | # GRAYSCALE
WHITE = (255, 255, 255)
L_GRAY = (190, 190, 190)
GRAY = (127, 127, 127)
D_GRAY = (63, 63, 63 )
BLACK = (0, 0, 0 )
# RGB
RED = (255, 0, 0 )
YELLOW = (255, 255, 0 )
GREEN = (0, 255, 0 )
INDIGO = (0, 255, 255)
BLUE = (0, 0, 255)
MAGENTA = (255, 0, 255) | 22.642857 | 26 | 0.444795 | 48 | 317 | 2.895833 | 0.375 | 0.172662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 0.375394 | 317 | 14 | 27 | 22.642857 | 0.338384 | 0.041009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7807f36da3c8917bfeb72b16ca3098a963e923cd | 134 | py | Python | gateway/api_manager/urls.py | BitingCat/superm | f358d325bc8b087df508592d986a2d1e60d03959 | [
"Apache-2.0"
] | null | null | null | gateway/api_manager/urls.py | BitingCat/superm | f358d325bc8b087df508592d986a2d1e60d03959 | [
"Apache-2.0"
] | null | null | null | gateway/api_manager/urls.py | BitingCat/superm | f358d325bc8b087df508592d986a2d1e60d03959 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
import os
from gateway.api_manager import views
urlpatterns = [
url(r'^superm$', views.superm)
]
| 13.4 | 37 | 0.746269 | 20 | 134 | 4.95 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 134 | 9 | 38 | 14.888889 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7809b78f24ddb2cbb5d91e66401e349e1a70f060 | 332 | py | Python | powerline/bindings/awesome/powerline-awesome.py | PH111P/powerline | f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a | [
"MIT"
] | 23 | 2016-12-16T09:03:18.000Z | 2022-02-25T19:19:23.000Z | powerline/bindings/awesome/powerline-awesome.py | PH111P/powerline | f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a | [
"MIT"
] | 30 | 2016-12-20T11:11:42.000Z | 2019-11-19T15:23:59.000Z | powerline/bindings/awesome/powerline-awesome.py | PH111P/powerline | f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a | [
"MIT"
] | 4 | 2016-12-11T18:29:11.000Z | 2018-04-22T07:51:28.000Z | #!/usr/bin/env python
import sys
from powerline.bindings.wm import DEFAULT_UPDATE_INTERVAL
from powerline.bindings.wm.awesome import run
def main():
try:
interval = float(sys.argv[1])
except IndexError:
interval = DEFAULT_UPDATE_INTERVAL
run(interval=interval)
if __name__ == '__main__':... | 18.444444 | 57 | 0.704819 | 42 | 332 | 5.285714 | 0.595238 | 0.117117 | 0.189189 | 0.207207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.198795 | 332 | 17 | 58 | 19.529412 | 0.830827 | 0.060241 | 0 | 0 | 0 | 0 | 0.025723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
780aa1d44fdf013fa8158b9597ec531da2bacc1c | 882 | py | Python | zero_to_one_hundred/processors/refresh_map_processor.py | fossabot/0to100 | 37faa1340b2ec8b87e5d4c268c8caf521ea164cb | [
"Apache-2.0"
] | null | null | null | zero_to_one_hundred/processors/refresh_map_processor.py | fossabot/0to100 | 37faa1340b2ec8b87e5d4c268c8caf521ea164cb | [
"Apache-2.0"
] | null | null | null | zero_to_one_hundred/processors/refresh_map_processor.py | fossabot/0to100 | 37faa1340b2ec8b87e5d4c268c8caf521ea164cb | [
"Apache-2.0"
] | null | null | null | """RefreshMapProcessor:
refresh sections in map
"""
# pylint: disable=C0116,R0903,E0401,W0703,W1201,redefined-outer-name,missing-function-docstring,E0401,C0114,W0511,W1203,C0200,C0103,W1203
from configs.config import ConfigMap
from models.map import Map
class RefreshMapProcessor:
"""RefreshMapProcessor"""
d... | 32.666667 | 137 | 0.689342 | 117 | 882 | 4.965812 | 0.478632 | 0.108434 | 0.134251 | 0.10327 | 0.196213 | 0.089501 | 0 | 0 | 0 | 0 | 0 | 0.06867 | 0.207483 | 882 | 26 | 138 | 33.923077 | 0.762518 | 0.323129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
780b6383b9441cbbb52f13931df26519c2613bf3 | 14,047 | py | Python | sharkdata_core/dataset_utils.py | sharkdata/sharkdata | 67793fd1771c9c2e599e62d57fcef432be5a8340 | [
"MIT"
] | 2 | 2016-07-20T07:09:51.000Z | 2016-08-12T12:20:20.000Z | sharkdata_core/dataset_utils.py | sharkdata/sharkdata | 67793fd1771c9c2e599e62d57fcef432be5a8340 | [
"MIT"
] | 1 | 2016-01-21T12:18:17.000Z | 2016-01-21T12:20:50.000Z | sharkdata_core/dataset_utils.py | sharkdata/sharkdata | 67793fd1771c9c2e599e62d57fcef432be5a8340 | [
"MIT"
] | 2 | 2016-07-20T07:13:35.000Z | 2016-08-12T11:40:15.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Copyright (c) 2013-present SMHI, Swedish Meteorological and Hydrological Institute
# License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit).
import pathlib
from django.conf import settings
import app_datasets.models as datasets_models
import app_c... | 40.134286 | 152 | 0.484587 | 1,214 | 14,047 | 5.339374 | 0.205931 | 0.027152 | 0.027769 | 0.017279 | 0.337396 | 0.326134 | 0.326134 | 0.326134 | 0.267201 | 0.251928 | 0 | 0.01111 | 0.4297 | 14,047 | 349 | 153 | 40.249284 | 0.798028 | 0.130704 | 0 | 0.316406 | 0 | 0 | 0.050577 | 0.001993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039063 | false | 0.007813 | 0.019531 | 0 | 0.101563 | 0.007813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
780c8d67ab8158a6c2a0fc0dac2bd5c621680885 | 1,660 | py | Python | python_scripts/load_script/helper.py | Tutkovics/Scaling_MSc | 66ffda5df7acc6b310c55905a147d812193b4be4 | [
"Apache-2.0"
] | null | null | null | python_scripts/load_script/helper.py | Tutkovics/Scaling_MSc | 66ffda5df7acc6b310c55905a147d812193b4be4 | [
"Apache-2.0"
] | null | null | null | python_scripts/load_script/helper.py | Tutkovics/Scaling_MSc | 66ffda5df7acc6b310c55905a147d812193b4be4 | [
"Apache-2.0"
] | null | null | null | import time
import yaml
def read_config_file(file_name):
"""Setup config parameters
Read and store configuration parameters
from given config file
"""
with open(file_name) as config_file:
config_values = {}
config = yaml.safe_load(config_file)
# get values from yaml
... | 36.086957 | 71 | 0.633133 | 181 | 1,660 | 5.535912 | 0.237569 | 0.263473 | 0.127745 | 0.062874 | 0.11976 | 0.11976 | 0.11976 | 0.095808 | 0.095808 | 0 | 0 | 0 | 0.205422 | 1,660 | 45 | 72 | 36.888889 | 0.759666 | 0.06506 | 0 | 0.111111 | 0 | 0 | 0.286367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 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 |
780cec5f5edff01a3292dabe0c19af13755eed4a | 8,789 | py | Python | tiddlyweb/web/wsgi.py | funkyeah/tiddlyweb | 2346e6c05aa03ae9c8f2687d9ef9e46103267a8e | [
"BSD-3-Clause"
] | null | null | null | tiddlyweb/web/wsgi.py | funkyeah/tiddlyweb | 2346e6c05aa03ae9c8f2687d9ef9e46103267a8e | [
"BSD-3-Clause"
] | null | null | null | tiddlyweb/web/wsgi.py | funkyeah/tiddlyweb | 2346e6c05aa03ae9c8f2687d9ef9e46103267a8e | [
"BSD-3-Clause"
] | null | null | null | """
WSGI Middleware apps that haven't gotten around to being extracted to
their own modules.
"""
import logging
import time
import urllib
from tiddlyweb.model.policy import UserRequiredError, ForbiddenError
from tiddlyweb.store import Store
from tiddlyweb.web.http import HTTP403, HTTP302
from tiddlyweb.web.util impor... | 30.730769 | 78 | 0.596882 | 1,009 | 8,789 | 5.032706 | 0.251734 | 0.059078 | 0.059078 | 0.033084 | 0.225876 | 0.186097 | 0.139622 | 0.111855 | 0.111855 | 0.111855 | 0 | 0.004339 | 0.291956 | 8,789 | 285 | 79 | 30.838596 | 0.811666 | 0.026966 | 0 | 0.270588 | 0 | 0.005882 | 0.170592 | 0.008095 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005882 | 0.047059 | 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 |
780d135009c65b71e679ad98d281b418ce5f55fe | 1,534 | py | Python | tests/test_parent_data_param.py | robhowley/treetl | fef395edb077fc73ca7621f1e5099c04bb781d68 | [
"MIT"
] | 8 | 2016-07-16T19:24:31.000Z | 2019-05-28T06:34:47.000Z | tests/test_parent_data_param.py | robhowley/treetl | fef395edb077fc73ca7621f1e5099c04bb781d68 | [
"MIT"
] | null | null | null | tests/test_parent_data_param.py | robhowley/treetl | fef395edb077fc73ca7621f1e5099c04bb781d68 | [
"MIT"
] | 2 | 2017-09-16T20:25:20.000Z | 2019-10-27T13:44:33.000Z |
import unittest
class TestParentDataParams(unittest.TestCase):
def setUp(self):
from treetl import Job
self.expected_results = { jn: i+1 for i, jn in enumerate([ 'JobA', 'JobB', 'JobC', 'JobD' ]) }
self.actual_results = { }
def update_actual_results(job):
self.actua... | 28.943396 | 102 | 0.591917 | 177 | 1,534 | 4.875706 | 0.305085 | 0.104287 | 0.10197 | 0.12051 | 0.28737 | 0.28737 | 0.28737 | 0.206257 | 0 | 0 | 0 | 0.004655 | 0.29987 | 1,534 | 52 | 103 | 29.5 | 0.798883 | 0 | 0 | 0.055556 | 0 | 0 | 0.041748 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.222222 | false | 0 | 0.083333 | 0 | 0.472222 | 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 |
780fadebf915440001592a011c8b065de65bb374 | 1,243 | py | Python | ml_recommend/cos_demo.py | jarvisqi/machine_learning | cba3f2fed87a3de2c6b707903d37f936e5f0cd5b | [
"MIT"
] | 2 | 2018-09-25T07:54:31.000Z | 2021-01-12T08:57:23.000Z | ml_recommend/cos_demo.py | jarvisqi/nlp_learn | 53c5b4087dbfc30e47451fd3f5261ba44f523f39 | [
"MIT"
] | null | null | null | ml_recommend/cos_demo.py | jarvisqi/nlp_learn | 53c5b4087dbfc30e47451fd3f5261ba44f523f39 | [
"MIT"
] | 1 | 2019-06-25T07:28:27.000Z | 2019-06-25T07:28:27.000Z | # -*- coding: utf-8 -*-
# 计算修正余弦相似度的Python代码
from math import sqrt
users3 = {
"David": {"爱乐之城": 4, "荒野猎人": 5,"银河护卫队2": 4, "长城": 1},
"Matt": {"爱乐之城": 3, "荒野猎人": 4,"银河护卫队2": 4, "长城": 1},
"Ben": {"美国队长3": 4, "爱乐之城": 3,"银河护卫队2": 3, "长城": 1},
"Chris": {"美国队长3": 3, "爱乐之城": 4,"荒野猎人"... | 36.558824 | 81 | 0.5358 | 154 | 1,243 | 4.331169 | 0.357143 | 0.022489 | 0.04048 | 0.049475 | 0.125937 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063922 | 0.257442 | 1,243 | 33 | 82 | 37.666667 | 0.657638 | 0.04103 | 0 | 0 | 0 | 0 | 0.172007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
780fb3b531fe4dbaf617a0a6b5ace4197ef2ce42 | 355 | py | Python | cv2/__init__.py | goodclass/OpenCV_arm64 | baafd7203444c7529872d3d35faaadebf00dd123 | [
"Apache-2.0"
] | 6 | 2019-08-13T21:56:47.000Z | 2021-03-23T19:52:55.000Z | cv2/__init__.py | goodclass/opencv_arm64 | baafd7203444c7529872d3d35faaadebf00dd123 | [
"Apache-2.0"
] | null | null | null | cv2/__init__.py | goodclass/opencv_arm64 | baafd7203444c7529872d3d35faaadebf00dd123 | [
"Apache-2.0"
] | null | null | null | import importlib
from .cv2 import *
from .data import *
# wildcard import above does not import "private" variables like __version__
# this makes them available
globals().update(importlib.import_module('cv2.cv2').__dict__)
def imshow_image(title, image):
import matplotlib.pyplot as plt
plt.imshow(image)
... | 20.882353 | 76 | 0.752113 | 48 | 355 | 5.333333 | 0.625 | 0.128906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010033 | 0.157746 | 355 | 16 | 77 | 22.1875 | 0.846154 | 0.28169 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7810d779e5150a8da080692129dd8ba323975421 | 70,466 | py | Python | RayTracing/gui/gui.py | TEM-Gemini-Centre/RayTracing | fa4b6057c9a7307f75e52f0bd7a4a13751f832ec | [
"MIT"
] | null | null | null | RayTracing/gui/gui.py | TEM-Gemini-Centre/RayTracing | fa4b6057c9a7307f75e52f0bd7a4a13751f832ec | [
"MIT"
] | null | null | null | RayTracing/gui/gui.py | TEM-Gemini-Centre/RayTracing | fa4b6057c9a7307f75e52f0bd7a4a13751f832ec | [
"MIT"
] | null | null | null | from PyQt5 import QtWidgets, QtGui, QtCore, Qt, uic
from PyQt5.QtCore import pyqtSignal, pyqtSlot
from RayTracing.gui.mplwidget import *
from RayTracing.RayTracing import *
from tabulate import tabulate
from pathlib import Path
from matplotlib.lines import lineStyles
from matplotlib.colors import to_hex, to_rgb
import ... | 38.909994 | 335 | 0.652059 | 7,843 | 70,466 | 5.72536 | 0.070764 | 0.020444 | 0.016925 | 0.004988 | 0.547056 | 0.488509 | 0.441609 | 0.364444 | 0.342219 | 0.320907 | 0 | 0.007129 | 0.241563 | 70,466 | 1,810 | 336 | 38.931492 | 0.833078 | 0.146979 | 0 | 0.4061 | 0 | 0.020064 | 0.088407 | 0.012462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113162 | false | 0.005618 | 0.008828 | 0.036116 | 0.219101 | 0.012841 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7810ed6a751d4492d7c42bf9fe88d5e9684d0272 | 532 | py | Python | app.py | lilbillybiscuit/tensorflow_chessbot | 7e8c49ea173c8f7ba05faf036c10b1b2ddf67f45 | [
"MIT"
] | null | null | null | app.py | lilbillybiscuit/tensorflow_chessbot | 7e8c49ea173c8f7ba05faf036c10b1b2ddf67f45 | [
"MIT"
] | null | null | null | app.py | lilbillybiscuit/tensorflow_chessbot | 7e8c49ea173c8f7ba05faf036c10b1b2ddf67f45 | [
"MIT"
] | null | null | null | import json
import base64
import os
def lambda_handler(event, context):
#os.system("./tensorflow_chessbot.py")
#return "Hi"
text=base64.b64decode(event['body'])
image = open("/tmp/image.png", "wb")
image.write(text)
image.close()
os.system("./tensorflow_chessbot.py --filepath /tmp/image.png")
fen=open(... | 22.166667 | 65 | 0.631579 | 69 | 532 | 4.826087 | 0.594203 | 0.048048 | 0.108108 | 0.156156 | 0.168168 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 0.172932 | 532 | 23 | 66 | 23.130435 | 0.729545 | 0.090226 | 0 | 0 | 0 | 0 | 0.292531 | 0.105809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7811235be67bd4477bed0dde9c6d06a0d0935165 | 976 | py | Python | plugins/grafana/icon_grafana/actions/do_proxied_datasource_call/action.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 46 | 2019-06-05T20:47:58.000Z | 2022-03-29T10:18:01.000Z | plugins/grafana/icon_grafana/actions/do_proxied_datasource_call/action.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 386 | 2019-06-07T20:20:39.000Z | 2022-03-30T17:35:01.000Z | plugins/grafana/icon_grafana/actions/do_proxied_datasource_call/action.py | lukaszlaszuk/insightconnect-plugins | 8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892 | [
"MIT"
] | 43 | 2019-07-09T14:13:58.000Z | 2022-03-28T12:04:46.000Z | import komand
from .schema import DoProxiedDatasourceCallInput, DoProxiedDatasourceCallOutput
# Custom imports below
class DoProxiedDatasourceCall(komand.Action):
def __init__(self):
super(self.__class__, self).__init__(
name="do_proxied_datasource_call",
description="Proxies all ... | 34.857143 | 115 | 0.646516 | 93 | 976 | 6.591398 | 0.623656 | 0.044046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223361 | 976 | 27 | 116 | 36.148148 | 0.808707 | 0.020492 | 0 | 0 | 0 | 0 | 0.150943 | 0.027254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0.05 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
78115951a587f10b8a500670a6eababb14671283 | 7,220 | py | Python | model.py | zzz8645/mini-StyleGAN | e8e0df68d415fd5b0e8fda0e5d9674649538015a | [
"MIT"
] | null | null | null | model.py | zzz8645/mini-StyleGAN | e8e0df68d415fd5b0e8fda0e5d9674649538015a | [
"MIT"
] | null | null | null | model.py | zzz8645/mini-StyleGAN | e8e0df68d415fd5b0e8fda0e5d9674649538015a | [
"MIT"
] | null | null | null | import random,math
import numpy as np
import jittor as jt
from jittor.nn import Sequential,LeakyReLU
class LR:
def __init__(self,n):
self.n=n
def get_w(self,m):
w=getattr(m,self.n+'_o')
return w*math.sqrt(2/w[0].numel())
def __call__(self,m,_):
setattr(m,self.n,self.get_w(... | 40.111111 | 317 | 0.608033 | 1,425 | 7,220 | 3 | 0.126316 | 0.012632 | 0.049123 | 0.047719 | 0.370058 | 0.25731 | 0.152281 | 0.083743 | 0.078596 | 0.053333 | 0 | 0.070741 | 0.17964 | 7,220 | 179 | 318 | 40.335196 | 0.651021 | 0 | 0 | 0.090278 | 0 | 0 | 0.004294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243056 | false | 0 | 0.027778 | 0.0625 | 0.520833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7812b8f4ff19f85ceff7a725ced6fd5ca666d547 | 2,748 | py | Python | 3/deck_handler.py | diblaze/TDP002 | 41c9c2155e2ad8cc4047ea912edd463042d95362 | [
"MIT"
] | null | null | null | 3/deck_handler.py | diblaze/TDP002 | 41c9c2155e2ad8cc4047ea912edd463042d95362 | [
"MIT"
] | null | null | null | 3/deck_handler.py | diblaze/TDP002 | 41c9c2155e2ad8cc4047ea912edd463042d95362 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import random
# acc. to assignment we only need two suits (half of deck)
#spades = 1..13
#hearts = 1..13 * 2
suits = {"spades": 1, "hearts": 2}
values = {"one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6, "seven": 7,
"eight": 8, "nine": 9, "ten": 10, "elseven": 11, "twelv... | 28.040816 | 128 | 0.664483 | 443 | 2,748 | 3.893905 | 0.282167 | 0.041739 | 0.064928 | 0.064928 | 0.337391 | 0.30029 | 0.238841 | 0.217971 | 0.133333 | 0.133333 | 0 | 0.02381 | 0.220524 | 2,748 | 97 | 129 | 28.329897 | 0.781513 | 0.310771 | 0 | 0 | 0 | 0 | 0.069269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.020833 | 0 | 0.354167 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7812d67db7a500259addfa44401133c4cd5059de | 403 | py | Python | iapcompython/prog_4_2.py | edmilsonlibanio/Ola-Mundo-Python | 33fb08da5878f2784983c623df04d2bbdfb30f25 | [
"MIT"
] | null | null | null | iapcompython/prog_4_2.py | edmilsonlibanio/Ola-Mundo-Python | 33fb08da5878f2784983c623df04d2bbdfb30f25 | [
"MIT"
] | null | null | null | iapcompython/prog_4_2.py | edmilsonlibanio/Ola-Mundo-Python | 33fb08da5878f2784983c623df04d2bbdfb30f25 | [
"MIT"
] | null | null | null | # Programa: Carro Velho ou Carro Novo (usando apenas if 2 vezes)?
idade = int(input('Digite a idade do seu carro: '))
if idade <= 3:
print('O seu carro é novo!')
if idade > 3:
print('O seu carro é velho!')
#Se observarmos de perto não há um só numero que torne ambas as condições verdadeiras ao mesmo tempo. A... | 44.777778 | 186 | 0.722084 | 70 | 403 | 4.157143 | 0.671429 | 0.082474 | 0.054983 | 0.089347 | 0.158076 | 0.158076 | 0.158076 | 0.158076 | 0 | 0 | 0 | 0.009317 | 0.200993 | 403 | 9 | 186 | 44.777778 | 0.89441 | 0.617866 | 0 | 0 | 0 | 0 | 0.447368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
7813c500e651edf48e529ef83919155389e7b77e | 3,069 | py | Python | nixie_clock/nixie_clock.py | sdenisen/test | 709bcdd16d0f83f03b04e0bc7918bb3785993c59 | [
"Unlicense"
] | null | null | null | nixie_clock/nixie_clock.py | sdenisen/test | 709bcdd16d0f83f03b04e0bc7918bb3785993c59 | [
"Unlicense"
] | 2 | 2017-08-24T18:55:37.000Z | 2017-08-24T18:59:06.000Z | nixie_clock/nixie_clock.py | sdenisen/test | 709bcdd16d0f83f03b04e0bc7918bb3785993c59 | [
"Unlicense"
] | null | null | null | import RPi.GPIO as GPIO
from socket import AF_INET, SOCK_DGRAM
import socket
import struct, time
GPIO.setmode(GPIO.BOARD)
__author__ = 'Sergey'
class NixieClock(object):
CHANNEL_HOUR_0 = 3
CHANNEL_HOUR_1 = 5
CHANNEL_MINUTE_0 = 7
CHANNEL_MINUTE_1 = 11
CHANNEL_SECOND_0 = 13
CHANNEL_SECOND_1 =... | 33 | 116 | 0.614532 | 417 | 3,069 | 4.273381 | 0.318945 | 0.040404 | 0.029181 | 0.044893 | 0.202581 | 0.122896 | 0.090909 | 0.056117 | 0.056117 | 0.056117 | 0 | 0.063377 | 0.280222 | 3,069 | 93 | 117 | 33 | 0.743323 | 0.061258 | 0 | 0.084507 | 0 | 0 | 0.034783 | 0.008 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014085 | 0.056338 | 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 |
78150c3f14d3b4c2aff18129bfca862c94bb1aec | 2,106 | py | Python | django_db_views/tests/tests.py | Skylude/django-db-views | 048a1e3ab7465d3e19481de82b3737f780b175c0 | [
"MIT"
] | null | null | null | django_db_views/tests/tests.py | Skylude/django-db-views | 048a1e3ab7465d3e19481de82b3737f780b175c0 | [
"MIT"
] | null | null | null | django_db_views/tests/tests.py | Skylude/django-db-views | 048a1e3ab7465d3e19481de82b3737f780b175c0 | [
"MIT"
] | null | null | null | import django
import os
from unittest.mock import patch
from django.apps import apps
from django.conf import settings
from django.db.migrations.loader import MigrationLoader
from django.db.migrations.state import ProjectState
from django.db.migrations.recorder import MigrationRecorder
from django.db import connections... | 35.694915 | 116 | 0.716049 | 234 | 2,106 | 6.290598 | 0.324786 | 0.054348 | 0.032609 | 0.044837 | 0.368207 | 0.33288 | 0.33288 | 0.33288 | 0.30163 | 0.30163 | 0 | 0 | 0.187085 | 2,106 | 58 | 117 | 36.310345 | 0.859813 | 0 | 0 | 0.255814 | 0 | 0 | 0.108944 | 0.043768 | 0 | 0 | 0 | 0 | 0.186047 | 1 | 0.139535 | false | 0 | 0.255814 | 0 | 0.44186 | 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 | 0 | 0 | 1 | 0 |
7816f05b04eda6b9f559f45e46216ae5a6fecedf | 609 | py | Python | code/util/create_dir.py | 96jhwei/Genetic-U-Net | 25116f01afcf8ed4386cd0fc258da15e1c982cb5 | [
"MIT"
] | 14 | 2021-09-09T11:22:17.000Z | 2022-03-14T10:06:36.000Z | code/util/create_dir.py | 96jhwei/Genetic-U-Net | 25116f01afcf8ed4386cd0fc258da15e1c982cb5 | [
"MIT"
] | 1 | 2021-11-24T10:30:36.000Z | 2021-11-24T10:30:36.000Z | code/util/create_dir.py | 96jhwei/Genetic-U-Net | 25116f01afcf8ed4386cd0fc258da15e1c982cb5 | [
"MIT"
] | 5 | 2021-11-02T09:29:49.000Z | 2022-03-25T09:44:25.000Z | """
Helper function for create directories
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
import os
def create_dirs(dirs):
"""
Utility function for creating directories
Args:
dirs (list of string): A list of direct... | 22.555556 | 71 | 0.678161 | 71 | 609 | 5.56338 | 0.56338 | 0.075949 | 0.121519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256158 | 609 | 26 | 72 | 23.423077 | 0.871965 | 0.313629 | 0 | 0 | 0 | 0 | 0.122715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.5 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7819128754038c5b686dca37e3fccc203c4ae962 | 7,751 | py | Python | reman/migrations/0001_initial.py | Nels885/csd_dashboard | aa5a3b970c50a2a93af722f962bd87c3728f233c | [
"MIT"
] | null | null | null | reman/migrations/0001_initial.py | Nels885/csd_dashboard | aa5a3b970c50a2a93af722f962bd87c3728f233c | [
"MIT"
] | null | null | null | reman/migrations/0001_initial.py | Nels885/csd_dashboard | aa5a3b970c50a2a93af722f962bd87c3728f233c | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-22 07:34
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | 63.532787 | 183 | 0.633338 | 847 | 7,751 | 5.617473 | 0.198347 | 0.094788 | 0.040984 | 0.06053 | 0.690206 | 0.672551 | 0.62253 | 0.587642 | 0.527743 | 0.428752 | 0 | 0.011808 | 0.224229 | 7,751 | 121 | 184 | 64.057851 | 0.779311 | 0.005806 | 0 | 0.385965 | 1 | 0 | 0.153167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035088 | 0 | 0.070175 | 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 |
781955390893d95f18fcf3689df89dc587380e35 | 4,236 | py | Python | iotsim/controls.py | mmamaev/iotsim | d47587dea106f312ff4ee407a3d693a96fc46799 | [
"BSD-3-Clause"
] | null | null | null | iotsim/controls.py | mmamaev/iotsim | d47587dea106f312ff4ee407a3d693a96fc46799 | [
"BSD-3-Clause"
] | null | null | null | iotsim/controls.py | mmamaev/iotsim | d47587dea106f312ff4ee407a3d693a96fc46799 | [
"BSD-3-Clause"
] | null | null | null | from .core import Control, AssemblyContext, Trigger
from .utils import to_name
import numpy as np
from typing import List, Callable
class ContextRetriever:
def __call__(self, assembly_context: AssemblyContext):
return None
class CopyFromParameter(ContextRetriever):
def __init__(self, src_component, ... | 36.205128 | 84 | 0.598206 | 419 | 4,236 | 5.720764 | 0.174224 | 0.08761 | 0.060075 | 0.057572 | 0.573217 | 0.540676 | 0.463079 | 0.380476 | 0.331247 | 0.311222 | 0 | 0.00141 | 0.3305 | 4,236 | 116 | 85 | 36.517241 | 0.843794 | 0 | 0 | 0.47191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033708 | 1 | 0.146067 | false | 0 | 0.044944 | 0.011236 | 0.314607 | 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 | 0 | 0 | 1 | 0 |
781c36222d396a1f95b5c079f6b6cc5e00a4eb34 | 1,172 | py | Python | pinax/wiki/conf.py | pinax/pinax-wiki | 8d116fbfd40bdcf1ff0f66d6a0cb30f29e8d5e5e | [
"MIT"
] | 29 | 2015-04-07T11:51:22.000Z | 2022-02-16T06:41:34.000Z | pinax/wiki/conf.py | pinax/pinax-wiki | 8d116fbfd40bdcf1ff0f66d6a0cb30f29e8d5e5e | [
"MIT"
] | 20 | 2015-03-26T00:33:49.000Z | 2020-08-30T21:55:05.000Z | pinax/wiki/conf.py | pinax/pinax-wiki | 8d116fbfd40bdcf1ff0f66d6a0cb30f29e8d5e5e | [
"MIT"
] | 6 | 2015-04-15T02:48:45.000Z | 2019-05-06T21:03:13.000Z | import importlib
from django.conf import settings # noqa
from django.core.exceptions import ImproperlyConfigured
from appconf import AppConf
def load_path_attr(path):
i = path.rfind(".")
module, attr = path[:i], path[i + 1:]
try:
mod = importlib.import_module(module)
except ImportError as e... | 25.478261 | 83 | 0.662116 | 139 | 1,172 | 5.438849 | 0.453237 | 0.042328 | 0.063492 | 0.034392 | 0.084656 | 0.084656 | 0.084656 | 0 | 0 | 0 | 0 | 0.001119 | 0.237201 | 1,172 | 45 | 84 | 26.044444 | 0.844519 | 0.003413 | 0 | 0.058824 | 0 | 0 | 0.174957 | 0.084048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.205882 | 0.058824 | 0.617647 | 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 |
781e0a0704d2f7732109db9bb6f242cbca4737e9 | 2,471 | py | Python | kathisattic/apps/product/views.py | ninapavlich/kathisattic | 0585e63f43da6841f7fc0d69f090d7ab556dcec0 | [
"MIT"
] | null | null | null | kathisattic/apps/product/views.py | ninapavlich/kathisattic | 0585e63f43da6841f7fc0d69f090d7ab556dcec0 | [
"MIT"
] | null | null | null | kathisattic/apps/product/views.py | ninapavlich/kathisattic | 0585e63f43da6841f7fc0d69f090d7ab556dcec0 | [
"MIT"
] | null | null | null | from django.db.models import Q
from django.views.generic.edit import CreateView
from django.views.generic.list import ListView
from carbon.compounds.page.views import PageDetail as BasePageDetail
from carbon.compounds.page.views import PageTagView as BasePageTagView
from carbon.compounds.page.views import PageBlockVi... | 27.764045 | 154 | 0.68879 | 281 | 2,471 | 5.900356 | 0.320285 | 0.079614 | 0.033776 | 0.041616 | 0.188179 | 0.126659 | 0.065139 | 0 | 0 | 0 | 0 | 0 | 0.227438 | 2,471 | 88 | 155 | 28.079545 | 0.868518 | 0 | 0 | 0.101695 | 0 | 0 | 0.040065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118644 | false | 0 | 0.186441 | 0.067797 | 0.677966 | 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 |
781e80e46d0d877cb49f27c6269ade3d9039f890 | 174 | py | Python | examples/python/simple/datastruct_print_tuple.py | airgiser/ucb | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | 1 | 2022-01-08T14:59:44.000Z | 2022-01-08T14:59:44.000Z | examples/python/simple/datastruct_print_tuple.py | airgiser/just-for-fun | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | null | null | null | examples/python/simple/datastruct_print_tuple.py | airgiser/just-for-fun | d03e62a17f35a9183ed36662352f603f0f673194 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Filename: datastruct_print_tuple.py
age = 25
name = 'Airgis'
print '%s is %d years old.' %(name, age)
print 'Why is %s playing with the python?' % name
| 19.333333 | 49 | 0.678161 | 29 | 174 | 4 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.172414 | 174 | 8 | 50 | 21.75 | 0.791667 | 0.298851 | 0 | 0 | 0 | 0 | 0.491667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
781f4fc5078b64546c321f926c3e524d78132cf7 | 5,124 | py | Python | snowCore_dailyMeanProfiles_2017-2019.py | michaeltown-phd/snowisoDataMunging | dea0ebcd41a1b2022af38f0a8fd86a99eecbfd39 | [
"MIT"
] | null | null | null | snowCore_dailyMeanProfiles_2017-2019.py | michaeltown-phd/snowisoDataMunging | dea0ebcd41a1b2022af38f0a8fd86a99eecbfd39 | [
"MIT"
] | 11 | 2022-03-25T22:46:57.000Z | 2022-03-30T22:48:59.000Z | snowCore_dailyMeanProfiles_2017-2019.py | michaeltown-phd/snowisoDataMunging | dea0ebcd41a1b2022af38f0a8fd86a99eecbfd39 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 18 09:08:20 2022
A script to plot mean daily cores for intercomparison of features as a function of time through a season.
@author: michaeltown
"""
#libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os
import... | 46.162162 | 127 | 0.680523 | 834 | 5,124 | 3.890887 | 0.197842 | 0.141757 | 0.209553 | 0.120185 | 0.539291 | 0.515871 | 0.506009 | 0.400308 | 0.400308 | 0.364253 | 0 | 0.02362 | 0.165496 | 5,124 | 111 | 128 | 46.162162 | 0.735267 | 0.131928 | 0 | 0.059701 | 0 | 0 | 0.152856 | 0.041319 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.119403 | 0 | 0.119403 | 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 |
7820dee9a037495f3b5046586b45f8279d2ed452 | 3,147 | py | Python | fpn/test.py | jjjump-tutu/depository | 2667e2217c4e0ee1dcdbcf2f94630487d3c14c70 | [
"MIT"
] | null | null | null | fpn/test.py | jjjump-tutu/depository | 2667e2217c4e0ee1dcdbcf2f94630487d3c14c70 | [
"MIT"
] | 1 | 2020-12-01T07:11:08.000Z | 2020-12-01T09:28:55.000Z | fpn/test.py | jjjump-tutu/depository | 2667e2217c4e0ee1dcdbcf2f94630487d3c14c70 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 17 23:2 7:28 2019
@author: Winham
网络测试
"""
import os
import numpy as np
from keras.models import load_model
from keras.utils import to_categorical
from data_preprocess import *
import mit_utils as utils
import time
import matplotlib.pyplot as plt
import... | 27.605263 | 68 | 0.575151 | 480 | 3,147 | 3.59375 | 0.314583 | 0.072464 | 0.062609 | 0.04058 | 0.302029 | 0.238261 | 0.211594 | 0.196522 | 0.132174 | 0.113623 | 0 | 0.079792 | 0.267239 | 3,147 | 113 | 69 | 27.849558 | 0.668257 | 0.327614 | 0 | 0 | 0 | 0 | 0.038304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.166667 | 0 | 0.203704 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
78229ade32d0366ad4b3eef09f67c6320b26c881 | 235 | py | Python | tests/test_demo.py | OmkarKirpan/T-ENTacle | cffbce29f50de255d6f17be5acb16e35a4ccacfe | [
"Apache-2.0"
] | null | null | null | tests/test_demo.py | OmkarKirpan/T-ENTacle | cffbce29f50de255d6f17be5acb16e35a4ccacfe | [
"Apache-2.0"
] | null | null | null | tests/test_demo.py | OmkarKirpan/T-ENTacle | cffbce29f50de255d6f17be5acb16e35a4ccacfe | [
"Apache-2.0"
] | 1 | 2021-01-23T23:49:50.000Z | 2021-01-23T23:49:50.000Z | # content of ./test_smtpsimple.py
import pytest
@pytest.fixture
def smtp():
import smtplib
return smtplib.SMTP("smtp.gmail.com", 587, timeout=5)
def test_ehlo(smtp):
response, msg = smtp.ehlo()
assert response == 250
| 19.583333 | 57 | 0.693617 | 33 | 235 | 4.878788 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036458 | 0.182979 | 235 | 11 | 58 | 21.363636 | 0.802083 | 0.131915 | 0 | 0 | 0 | 0 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7822ce08c98bbae4ad9b61ae8abb7997cf1d7c6e | 902 | py | Python | solutions/codeforces/158B.py | forxhunter/ComputingIntro | 50fa2ac030748626c694ec5c884c5ac32f0b42a8 | [
"Apache-2.0"
] | 1 | 2021-01-02T04:31:34.000Z | 2021-01-02T04:31:34.000Z | solutions/codeforces/158B.py | forxhunter/ComputingIntro | 50fa2ac030748626c694ec5c884c5ac32f0b42a8 | [
"Apache-2.0"
] | null | null | null | solutions/codeforces/158B.py | forxhunter/ComputingIntro | 50fa2ac030748626c694ec5c884c5ac32f0b42a8 | [
"Apache-2.0"
] | null | null | null | '''
check
'''
groups = [0, 0, 0, 0]
n = int(input())
data = input()
carsnum = 0
for i in range(4):
groups[i] = data.count(str(i+1))
# deal with 4 people group
carsnum += groups[3]
groups[3] = 0
# deal with 2 people group
carsnum += groups[1] // 2
groups[1] %= 2
# deal with 1 and 3 people group
if groups[0] <= gro... | 19.608696 | 39 | 0.531042 | 139 | 902 | 3.446043 | 0.208633 | 0.146138 | 0.10856 | 0.087683 | 0.229645 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082927 | 0.318182 | 902 | 46 | 40 | 19.608696 | 0.695935 | 0.201774 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
78242ab3f8e265a2bb01183be9d47df6398aa178 | 4,113 | py | Python | mppsolar/devices/device.py | BarkinSpider/mpp-solar | 071ca0cd9feea458b1e36dc020aa704b2000e431 | [
"MIT"
] | 1 | 2021-03-02T22:44:04.000Z | 2021-03-02T22:44:04.000Z | mppsolar/devices/device.py | BarkinSpider/mpp-solar | 071ca0cd9feea458b1e36dc020aa704b2000e431 | [
"MIT"
] | null | null | null | mppsolar/devices/device.py | BarkinSpider/mpp-solar | 071ca0cd9feea458b1e36dc020aa704b2000e431 | [
"MIT"
] | null | null | null | import abc
import importlib
import logging
log = logging.getLogger("MPP-Solar")
SERIAL_TYPE_TEST = 1
SERIAL_TYPE_USB = 2
SERIAL_TYPE_ESP32 = 4
SERIAL_TYPE_SERIAL = 8
class AbstractDevice(metaclass=abc.ABCMeta):
"""
Abstract device class
"""
def __init__(self, *args, **kwargs):
self._protoco... | 31.883721 | 82 | 0.624605 | 479 | 4,113 | 5.125261 | 0.242171 | 0.063544 | 0.041548 | 0.032587 | 0.322607 | 0.171894 | 0.133605 | 0.09002 | 0.043177 | 0.043177 | 0 | 0.010105 | 0.302213 | 4,113 | 128 | 83 | 32.132813 | 0.845296 | 0.083637 | 0 | 0.284211 | 0 | 0 | 0.10119 | 0 | 0 | 0 | 0 | 0.007813 | 0 | 1 | 0.115789 | false | 0 | 0.084211 | 0.031579 | 0.357895 | 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 | 0 | 0 | 1 | 0 |
7824f64ce3bb3cc3961afdec7e3c6fa3721e5452 | 2,539 | py | Python | autism/views.py | jenith-hue/Lung_Cancer | 69171d26ab1a2eccf4ae7243e8bdd2d9f1ccbfb5 | [
"MIT"
] | null | null | null | autism/views.py | jenith-hue/Lung_Cancer | 69171d26ab1a2eccf4ae7243e8bdd2d9f1ccbfb5 | [
"MIT"
] | null | null | null | autism/views.py | jenith-hue/Lung_Cancer | 69171d26ab1a2eccf4ae7243e8bdd2d9f1ccbfb5 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponseRedirect
from .forms import Predict
from .ML_ALGORITHM import you
import numpy
def index(request):
return render(request, 'autism/home.html')
def predict(request):
return render(request, 'autism/predict.html'... | 29.523256 | 64 | 0.554943 | 301 | 2,539 | 4.621262 | 0.215947 | 0.080518 | 0.074766 | 0.089863 | 0.508986 | 0.462976 | 0.435658 | 0.435658 | 0.435658 | 0.435658 | 0 | 0.038983 | 0.302875 | 2,539 | 86 | 65 | 29.523256 | 0.746893 | 0 | 0 | 0.575 | 0 | 0 | 0.096063 | 0.024803 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.0625 | 0.025 | 0.175 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
78251293e5c3da715709caaa79f7051c05a25145 | 724 | py | Python | tests/util/test_immutabledict.py | SelfHacked/django-model-wrappers | 2aa0bb773d61c6b5c794126b1dc4f06d622ff079 | [
"MIT"
] | null | null | null | tests/util/test_immutabledict.py | SelfHacked/django-model-wrappers | 2aa0bb773d61c6b5c794126b1dc4f06d622ff079 | [
"MIT"
] | null | null | null | tests/util/test_immutabledict.py | SelfHacked/django-model-wrappers | 2aa0bb773d61c6b5c794126b1dc4f06d622ff079 | [
"MIT"
] | 1 | 2021-06-03T12:04:22.000Z | 2021-06-03T12:04:22.000Z | import pytest
from model_wrappers.util.datatypes import ImmutableDict
d = {
'a': 0,
'b': 'x',
}
im = ImmutableDict(d)
def test_str():
assert repr(im) == repr(d)
assert str(im) == str(d)
def test_items():
assert set(im.keys()) == {'a', 'b'}
assert set(im.values()) == {0, 'x'}
assert set... | 17.238095 | 55 | 0.537293 | 109 | 724 | 3.513761 | 0.348624 | 0.091384 | 0.114883 | 0.020888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014898 | 0.258287 | 724 | 41 | 56 | 17.658537 | 0.698324 | 0 | 0 | 0 | 0 | 0 | 0.023481 | 0 | 0 | 0 | 0 | 0 | 0.413793 | 1 | 0.172414 | false | 0 | 0.068966 | 0 | 0.241379 | 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 |
78267247f1ad73db4ca30cdb83a52c4d8988159a | 1,708 | py | Python | Program.py | evanxia1018/CSE539_Project_LLE | 881ea2278c39c16716e5de83dd8abbd267806a35 | [
"MIT"
] | 2 | 2019-11-10T02:04:52.000Z | 2020-04-19T03:51:51.000Z | Program.py | SarahLynnePu/CSE539_Project_LLE | 881ea2278c39c16716e5de83dd8abbd267806a35 | [
"MIT"
] | null | null | null | Program.py | SarahLynnePu/CSE539_Project_LLE | 881ea2278c39c16716e5de83dd8abbd267806a35 | [
"MIT"
] | 3 | 2017-12-28T14:09:24.000Z | 2020-04-19T04:25:03.000Z | import time
import Generation_Stage
import Evaluate_lle
import Evaluate_pca
import Evaluation_Stage
print("**********************************************************************")
print("Hello. This is CSE569 Project Demo, produced by Haisi Yi and Zheng Xia")
print("*****************************************************... | 32.846154 | 137 | 0.566745 | 215 | 1,708 | 4.390698 | 0.367442 | 0.074153 | 0.055085 | 0.060381 | 0.225636 | 0.150424 | 0.150424 | 0.150424 | 0.09322 | 0 | 0 | 0.029103 | 0.275761 | 1,708 | 51 | 138 | 33.490196 | 0.734034 | 0 | 0 | 0.052632 | 0 | 0.052632 | 0.475631 | 0.084557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.131579 | 0 | 0.131579 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7828bc8cfbb067ddc1a2bb084a724e2b6671e88f | 3,868 | py | Python | medical_peek_api/controller/exception_handler_controller.py | WillCallahan/medical_peek | e27e547ea7c8bc1deea8668090ff582020d7d6b2 | [
"MIT"
] | null | null | null | medical_peek_api/controller/exception_handler_controller.py | WillCallahan/medical_peek | e27e547ea7c8bc1deea8668090ff582020d7d6b2 | [
"MIT"
] | 12 | 2021-04-06T18:25:47.000Z | 2022-03-12T00:52:42.000Z | medical_peek_api/controller/exception_handler_controller.py | WillCallahan/medical_peek | e27e547ea7c8bc1deea8668090ff582020d7d6b2 | [
"MIT"
] | null | null | null | import logging
from django.core.handlers.wsgi import WSGIRequest
from django.http import JsonResponse
from django.views.defaults import server_error, page_not_found
from rest_framework import status
from medical_peek_core.model.j_send import JSend, JSendSerializer
from medical_peek_core.utility.exception_utility impo... | 44.45977 | 117 | 0.735264 | 527 | 3,868 | 5.222011 | 0.208729 | 0.043605 | 0.049055 | 0.024709 | 0.579578 | 0.579578 | 0.559956 | 0.53452 | 0.480015 | 0.441497 | 0 | 0.008684 | 0.196225 | 3,868 | 86 | 118 | 44.976744 | 0.876488 | 0.422441 | 0 | 0.368421 | 0 | 0 | 0.089904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.184211 | 0 | 0.394737 | 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 | 0 | 0 | 1 | 0 |
78297729387284e49b1f84299398b83a0dc26f20 | 66,793 | py | Python | interface/Python/smg2s/smg2s.py | SMG2S/SMG2S | 4e61cf36951289c8deeb74e312131430c1ac12f8 | [
"MIT"
] | 2 | 2019-03-22T10:36:01.000Z | 2019-11-17T20:24:53.000Z | interface/Python/smg2s/smg2s.py | SMG2S/SMG2S | 4e61cf36951289c8deeb74e312131430c1ac12f8 | [
"MIT"
] | 1 | 2020-04-07T07:55:29.000Z | 2020-04-10T09:07:36.000Z | interface/Python/smg2s/smg2s.py | SMG2S/SMG2S | 4e61cf36951289c8deeb74e312131430c1ac12f8 | [
"MIT"
] | 2 | 2018-08-22T21:34:21.000Z | 2020-03-24T09:41:57.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_im... | 42.926093 | 153 | 0.771099 | 6,426 | 66,793 | 7.573607 | 0.036415 | 0.084532 | 0.050855 | 0.029588 | 0.812074 | 0.733624 | 0.614367 | 0.486398 | 0.383209 | 0.31006 | 0 | 0.011199 | 0.157771 | 66,793 | 1,555 | 154 | 42.953698 | 0.853933 | 0.004417 | 0 | 0.436077 | 1 | 0 | 0.012002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.341506 | false | 0.001751 | 0.019264 | 0.328371 | 0.768827 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 5 |
782a6e70bb1c62e99b1c75451a5570b2a5aaefd1 | 1,545 | py | Python | tests/regressiontests/admin_util/tests.py | huicheese/Django-test3 | ac11d2dce245b48392e52d1f4acfd5e7433b243e | [
"BSD-3-Clause"
] | null | null | null | tests/regressiontests/admin_util/tests.py | huicheese/Django-test3 | ac11d2dce245b48392e52d1f4acfd5e7433b243e | [
"BSD-3-Clause"
] | null | null | null | tests/regressiontests/admin_util/tests.py | huicheese/Django-test3 | ac11d2dce245b48392e52d1f4acfd5e7433b243e | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
from django.contrib.admin.util import NestedObjects
from models import Count
class NestedObjectsTests(TestCase):
"""
Tests for ``NestedObject`` utility collection.
"""
def setUp(self):
self.n = NestedObjects()
self.objs = [Count.objects.create(num=i)... | 26.186441 | 74 | 0.603236 | 227 | 1,545 | 3.973568 | 0.268722 | 0.203991 | 0.158537 | 0.216186 | 0.421286 | 0.412417 | 0.400222 | 0.339246 | 0.303769 | 0.215078 | 0 | 0.030612 | 0.238835 | 1,545 | 58 | 75 | 26.637931 | 0.736395 | 0.072492 | 0 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.222222 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
782abecf863cb582e8ab49f243f14f653cba734a | 1,188 | py | Python | 00 UNICEF/03 Data New/aedes-main/best_aedes_model.py | Cirrolytix/aedes_unicef_2022 | 23a26d57d5316ba44d573b4c1dcefcad4e10b157 | [
"MIT"
] | null | null | null | 00 UNICEF/03 Data New/aedes-main/best_aedes_model.py | Cirrolytix/aedes_unicef_2022 | 23a26d57d5316ba44d573b4c1dcefcad4e10b157 | [
"MIT"
] | null | null | null | 00 UNICEF/03 Data New/aedes-main/best_aedes_model.py | Cirrolytix/aedes_unicef_2022 | 23a26d57d5316ba44d573b4c1dcefcad4e10b157 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from xgboost import XGBClassifier
from sklearn.impute import SimpleImputer
# NOTE: Make sure that the outcome column is labeled 'target' in the data file
tpot_data = pd.read_csv('PATH/TO/DATA/FILE', sep='COLUMN_SEPARATOR', dtyp... | 45.692308 | 157 | 0.81229 | 165 | 1,188 | 5.630303 | 0.515152 | 0.086114 | 0.03014 | 0.066738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046816 | 0.10101 | 1,188 | 25 | 158 | 47.52 | 0.823034 | 0.147306 | 0 | 0 | 0 | 0 | 0.074331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.277778 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
782c3b76e7c1eaa2f8d3ae8a4ab9167a73ffb9ea | 3,379 | py | Python | espressodb/base/tests/views/urls.py | remram44/espressodb | 5aad7222ab81c0f1694b51171e5d197dbcc8a65f | [
"BSD-3-Clause"
] | 8 | 2019-12-10T04:30:01.000Z | 2020-10-30T09:40:22.000Z | espressodb/base/tests/views/urls.py | remram44/espressodb | 5aad7222ab81c0f1694b51171e5d197dbcc8a65f | [
"BSD-3-Clause"
] | 41 | 2019-10-23T00:26:25.000Z | 2021-10-21T07:55:57.000Z | espressodb/base/tests/views/urls.py | remram44/espressodb | 5aad7222ab81c0f1694b51171e5d197dbcc8a65f | [
"BSD-3-Clause"
] | 3 | 2020-01-09T21:29:09.000Z | 2021-03-14T22:20:52.000Z | """Unittest for all present urls
"""
from django.test import TestCase
from django.contrib.auth.models import User
from espressodb.base.utilities.apps import get_apps_slug_map
import espressodb.base.utilities.blackmagicsorcery as re
URLS = ["/", "/populate/", "/populate-result/"]
LOGGED_IN_URLS = [
"/notificatio... | 31.877358 | 89 | 0.586268 | 393 | 3,379 | 4.926209 | 0.282443 | 0.028926 | 0.046488 | 0.054236 | 0.356921 | 0.340393 | 0.270661 | 0.242769 | 0.19938 | 0.19938 | 0 | 0.010235 | 0.306008 | 3,379 | 105 | 90 | 32.180952 | 0.815352 | 0.145605 | 0 | 0.272727 | 0 | 0 | 0.1 | 0.044326 | 0 | 0 | 0 | 0 | 0.106061 | 1 | 0.090909 | false | 0.045455 | 0.060606 | 0 | 0.19697 | 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 | 0 | 0 | 1 | 0 |
782d89dac1dfccbb2a0576e3f87a042fe314d75a | 167 | py | Python | problem0616.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0616.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0616.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #616 Creative numbers - Project Euler
# https://projecteuler.net/problem=616
#
# Code by Kevin Marciniak
#
###########################
| 18.555556 | 39 | 0.479042 | 14 | 167 | 5.714286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.113772 | 167 | 8 | 40 | 20.875 | 0.5 | 0.580838 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
782dc6f49c603eca2fa962e30fbfc31a6e32254b | 1,723 | py | Python | python/datagraph/graphviz/dmo/digraph_text_cleanser.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/datagraph/graphviz/dmo/digraph_text_cleanser.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/datagraph/graphviz/dmo/digraph_text_cleanser.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# -*- coding: UTF-8 -*-
from base import BaseObject
class DigraphTextCleanser(BaseObject):
"""
Purpose:
Edge Generation for a graphviz.Digraph object
Traceability:
https://github.ibm.com/GTS-CDO/unstructured-analytics/issues/1426#issuecomment-16165027
"""
def __i... | 29.20339 | 103 | 0.572838 | 194 | 1,723 | 4.871134 | 0.458763 | 0.084656 | 0.074074 | 0.060317 | 0.237037 | 0.156614 | 0.156614 | 0.156614 | 0.156614 | 0.156614 | 0 | 0.028497 | 0.327916 | 1,723 | 58 | 104 | 29.706897 | 0.787565 | 0.426582 | 0 | 0.2 | 0 | 0 | 0.056747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.45 | 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 | 0 | 0 | 1 | 0 |
782ed811b859ad654cfa2961ac4c649ce8d9f83b | 7,550 | py | Python | sqlglot/optimizer/qualify_columns.py | RobinL/sqlglot | 7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a | [
"MIT"
] | null | null | null | sqlglot/optimizer/qualify_columns.py | RobinL/sqlglot | 7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a | [
"MIT"
] | null | null | null | sqlglot/optimizer/qualify_columns.py | RobinL/sqlglot | 7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a | [
"MIT"
] | null | null | null | import itertools
import sqlglot.expressions as exp
from sqlglot.errors import OptimizeError
from sqlglot.optimizer.schema import ensure_schema
from sqlglot.optimizer.scope import traverse_scope
def qualify_columns(expression, schema):
"""
Rewrite sqlglot AST to have fully qualified columns.
Example:
... | 33.114035 | 86 | 0.649669 | 859 | 7,550 | 5.519208 | 0.19092 | 0.053786 | 0.024046 | 0.021936 | 0.102299 | 0.068762 | 0.040076 | 0.040076 | 0.040076 | 0.040076 | 0 | 0.001439 | 0.263709 | 7,550 | 227 | 87 | 33.259912 | 0.851412 | 0.188742 | 0 | 0.094891 | 0 | 0 | 0.050268 | 0.007373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072993 | false | 0 | 0.036496 | 0 | 0.160584 | 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 | 0 | 0 | 1 | 0 |
782f027acd854915903862b95967abf5208d8465 | 5,314 | py | Python | model_zoo/cifar10_subclass/cifar10_subclass.py | sorrycc/elasticdl | 01439e0bf7bba6ebfffe265916fd41370a59c29d | [
"MIT"
] | 2 | 2021-07-07T16:31:50.000Z | 2021-11-08T09:23:01.000Z | model_zoo/cifar10_subclass/cifar10_subclass.py | sorrycc/elasticdl | 01439e0bf7bba6ebfffe265916fd41370a59c29d | [
"MIT"
] | null | null | null | model_zoo/cifar10_subclass/cifar10_subclass.py | sorrycc/elasticdl | 01439e0bf7bba6ebfffe265916fd41370a59c29d | [
"MIT"
] | 1 | 2021-08-18T18:14:38.000Z | 2021-08-18T18:14:38.000Z | import tensorflow as tf
from elasticdl.python.common.constants import Mode
class CustomModel(tf.keras.Model):
def __init__(self, channel_last=True):
super(CustomModel, self).__init__(name="cifar10_model")
use_bias = True
self._conv_1 = tf.keras.layers.Conv2D(
32,
... | 30.022599 | 75 | 0.547234 | 690 | 5,314 | 3.975362 | 0.176812 | 0.068903 | 0.123223 | 0.035727 | 0.58148 | 0.536274 | 0.518046 | 0.493256 | 0.493256 | 0.450602 | 0 | 0.049538 | 0.327625 | 5,314 | 176 | 76 | 30.193182 | 0.718164 | 0 | 0 | 0.289474 | 0 | 0 | 0.016184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046053 | false | 0 | 0.013158 | 0.006579 | 0.111842 | 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 | 0 | 0 | 1 | 0 |
78323ad51e27c4fa0767acc4613f077ad4236011 | 2,686 | py | Python | XNATSlicer/XnatSlicerLib/ui/custom-qt-widgets/HoverButton.py | QwaddleMan/XNATSlicer | 5aa06e4f2a578898d34cf0ea703963b9556f2da3 | [
"BSD-3-Clause"
] | 4 | 2016-03-03T08:56:52.000Z | 2021-12-10T21:14:58.000Z | XNATSlicer/XnatSlicerLib/ui/custom-qt-widgets/HoverButton.py | keithcallenberg/XNATSlicer | 4a8462b2e81984cc114d25fb2b1c981457a11878 | [
"BSD-3-Clause"
] | null | null | null | XNATSlicer/XnatSlicerLib/ui/custom-qt-widgets/HoverButton.py | keithcallenberg/XNATSlicer | 4a8462b2e81984cc114d25fb2b1c981457a11878 | [
"BSD-3-Clause"
] | 5 | 2015-04-22T01:53:40.000Z | 2021-03-29T12:14:32.000Z | __author__ = "Sunil Kumar (kumar.sunil.p@gmail.com)"
__copyright__ = "Copyright 2014, Washington University in St. Louis"
__credits__ = ["Sunil Kumar", "Steve Pieper", "Dan Marcus"]
__license__ = "XNAT Software License Agreement " + \
"(see: http://xnat.org/about/license.php)"
__version__ = "2.1.1"
__main... | 22.762712 | 68 | 0.546165 | 242 | 2,686 | 5.863636 | 0.487603 | 0.031712 | 0.033827 | 0.059197 | 0.174771 | 0.105708 | 0.062016 | 0.062016 | 0.062016 | 0 | 0 | 0.003853 | 0.323529 | 2,686 | 117 | 69 | 22.957265 | 0.777105 | 0.269546 | 0 | 0 | 0 | 0 | 0.196489 | 0.026614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.026316 | 0 | 0.210526 | 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 | 0 | 0 | 1 | 0 |
783363529819816ac2b465db1a4d67cdbd93edcd | 481 | py | Python | keephistory/keephistory/signals.py | ivangeorgiev/django-bootcamp | 53d5d06cb3414419bbd99ff6f0e1b751cbe02a06 | [
"CC0-1.0"
] | null | null | null | keephistory/keephistory/signals.py | ivangeorgiev/django-bootcamp | 53d5d06cb3414419bbd99ff6f0e1b751cbe02a06 | [
"CC0-1.0"
] | null | null | null | keephistory/keephistory/signals.py | ivangeorgiev/django-bootcamp | 53d5d06cb3414419bbd99ff6f0e1b751cbe02a06 | [
"CC0-1.0"
] | null | null | null | from django.db.models.signals import pre_delete
from django.dispatch import receiver
from django.utils.timezone import now
from .models import Task, TaskUpdate
@receiver(pre_delete, sender=Task)
def close_task_updates(sender, instance:Task, **kwargs):
now_ts = now()
for update in TaskUpdate.objects.fil... | 34.357143 | 84 | 0.75052 | 68 | 481 | 5.102941 | 0.485294 | 0.086455 | 0.092219 | 0.126801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160083 | 481 | 13 | 85 | 37 | 0.858911 | 0.10395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 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 |
7833a508141379ddb62d6f7c97d3b1f4b1653b14 | 2,904 | py | Python | tests/musictree/test_percussion_notation.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 2 | 2020-06-22T13:33:28.000Z | 2020-12-30T15:09:00.000Z | tests/musictree/test_percussion_notation.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 37 | 2020-02-18T12:15:00.000Z | 2021-12-13T20:01:14.000Z | tests/musictree/test_percussion_notation.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | null | null | null | from unittest import TestCase
import os
from musicscore.musicstream.streamvoice import SimpleFormat
from musicscore.musictree.treebeat import TreeBeat
from musicscore.musictree.treechordflags1 import PizzFlag1, PercussionFlag1
from musicscore.musictree.treemeasure import TreeMeasure
from musicscore.musictree.treepart ... | 42.086957 | 79 | 0.513774 | 292 | 2,904 | 4.931507 | 0.318493 | 0.05 | 0.079861 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025685 | 0.396694 | 2,904 | 68 | 80 | 42.705882 | 0.796233 | 0.522039 | 0 | 0 | 0 | 0 | 0.005926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.434783 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7833d1ecd63dcbafc3405efa977d29556dcffc33 | 363 | py | Python | abrirMochila.py | KozlowskiJ2/avengers | 304e677ac45becbd182db71b0fd148be90fa7050 | [
"MIT"
] | null | null | null | abrirMochila.py | KozlowskiJ2/avengers | 304e677ac45becbd182db71b0fd148be90fa7050 | [
"MIT"
] | null | null | null | abrirMochila.py | KozlowskiJ2/avengers | 304e677ac45becbd182db71b0fd148be90fa7050 | [
"MIT"
] | null | null | null | def abreMochila(mochila) :
if len(mochila) == 0:
print('Bolso Vazio!')
return False
if len(mochila)!= 0:
print("Itens no bolso:\nFale o numero correspondente dele para escolher")
for item in mochila:
print(mochila.index(item)+1,"-",item)
i=escutar()
es... | 33 | 81 | 0.589532 | 46 | 363 | 4.652174 | 0.630435 | 0.046729 | 0.11215 | 0.121495 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015326 | 0.280992 | 363 | 11 | 82 | 33 | 0.804598 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7834c30ab8619ffee86e60107eaa29650d251c74 | 3,239 | py | Python | lib/jsonprocesser(old).py | wmizzi/tn2capstone | e9855ba6b49e2d05293df74846c64fa0c220a25d | [
"BSD-2-Clause"
] | null | null | null | lib/jsonprocesser(old).py | wmizzi/tn2capstone | e9855ba6b49e2d05293df74846c64fa0c220a25d | [
"BSD-2-Clause"
] | null | null | null | lib/jsonprocesser(old).py | wmizzi/tn2capstone | e9855ba6b49e2d05293df74846c64fa0c220a25d | [
"BSD-2-Clause"
] | null | null | null | import json
import uuid
import datetime
import os
import socket
class jsonprocesser:
def __init__(self):
self.client_mac = str(hex(uuid.getnode()))
self.timestamp = datetime.datetime.now().strftime("%H-%M_%d-%m-%y")
#filename = client_mac + timestamp + '.json'
... | 32.39 | 137 | 0.521766 | 363 | 3,239 | 4.553719 | 0.253444 | 0.079855 | 0.087114 | 0.072595 | 0.271627 | 0.271627 | 0.271627 | 0.271627 | 0.245009 | 0.217786 | 0 | 0.024176 | 0.297623 | 3,239 | 100 | 138 | 32.39 | 0.702418 | 0.021303 | 0 | 0.287879 | 0 | 0 | 0.14989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075758 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7835dd4b0a54930acba1f3445b9513092882a896 | 24,101 | py | Python | fst2/processers.py | superjcd/fst2 | da4bd97bc9e028af55e1099940bd0b1e5bb34ded | [
"MIT"
] | 2 | 2020-03-15T07:44:46.000Z | 2021-05-17T04:32:46.000Z | fst2/processers.py | superjcd/fst2 | da4bd97bc9e028af55e1099940bd0b1e5bb34ded | [
"MIT"
] | null | null | null | fst2/processers.py | superjcd/fst2 | da4bd97bc9e028af55e1099940bd0b1e5bb34ded | [
"MIT"
] | 1 | 2020-05-13T08:56:25.000Z | 2020-05-13T08:56:25.000Z | import copy
import os
import csv
import json
import torch
import logging
from transformers.file_utils import is_tf_available, is_torch_available
from functools import wraps
from .utils import CACHE_PARAMS
logger = logging.getLogger(__name__)
class InputExample(object):
"""
A single training/test example for... | 42.506173 | 249 | 0.604788 | 2,960 | 24,101 | 4.692905 | 0.122635 | 0.028796 | 0.010294 | 0.01231 | 0.496653 | 0.453747 | 0.416169 | 0.374271 | 0.35721 | 0.334317 | 0 | 0.006806 | 0.298867 | 24,101 | 566 | 250 | 42.581272 | 0.815244 | 0.212647 | 0 | 0.430412 | 0 | 0 | 0.057988 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 1 | 0.07732 | false | 0 | 0.048969 | 0.007732 | 0.203608 | 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 | 0 | 0 | 1 | 0 |
783c54535432ca817e5091aa60095976f7a9378c | 180 | py | Python | bitcoinscript/debugger/__init__.py | fungibit/bitcoinscript | ced6fb37dfa40eac7341826c758842e0ed7e7475 | [
"MIT"
] | 1 | 2017-10-25T17:11:44.000Z | 2017-10-25T17:11:44.000Z | bitcoinscript/debugger/__init__.py | fungibit/bitcoinscript | ced6fb37dfa40eac7341826c758842e0ed7e7475 | [
"MIT"
] | 3 | 2017-03-10T05:27:29.000Z | 2017-04-07T16:06:28.000Z | bitcoinscript/debugger/__init__.py | fungibit/bitcoinscript | ced6fb37dfa40eac7341826c758842e0ed7e7475 | [
"MIT"
] | null | null | null |
from .dbg import run_in_debugger, start_debugger
from .utils import debug_sample
# suppress pyflakes "imported but unused" warnings:
run_in_debugger, start_debugger
debug_sample
| 22.5 | 51 | 0.838889 | 26 | 180 | 5.5 | 0.615385 | 0.06993 | 0.181818 | 0.251748 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 180 | 7 | 52 | 25.714286 | 0.899371 | 0.272222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
783cc0ae7ce9094203cd5255e4827fee654d5210 | 530 | py | Python | jupyter_cache/cli/utils.py | ExecutableBookProject/sandbox | e72c2121b460c8558f9e6257b3b53353b9e7f35c | [
"MIT"
] | 2 | 2020-03-11T23:14:00.000Z | 2020-04-07T14:58:51.000Z | jupyter_cache/cli/utils.py | ExecutableBookProject/sandbox | e72c2121b460c8558f9e6257b3b53353b9e7f35c | [
"MIT"
] | 41 | 2020-02-19T20:18:56.000Z | 2020-04-20T01:25:55.000Z | jupyter_cache/cli/utils.py | ExecutableBookProject/sandbox | e72c2121b460c8558f9e6257b3b53353b9e7f35c | [
"MIT"
] | 1 | 2020-03-15T05:45:15.000Z | 2020-03-15T05:45:15.000Z | import logging
import click
class ClickLogHandler(logging.Handler):
_use_stderr = True
def emit(self, record):
try:
msg = self.format(record)
click.echo(msg, err=self._use_stderr)
except Exception:
self.handleError(record)
def setup_logger(logger: loggin... | 21.2 | 49 | 0.632075 | 60 | 530 | 5.45 | 0.533333 | 0.067278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275472 | 530 | 24 | 50 | 22.083333 | 0.851563 | 0.05283 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
783e84924972e61c147a0b1b3dc18448354ffac3 | 4,401 | py | Python | Samples/codes/matopt_review/add_optimizer.py | wilsongis/3DP_Experiments | da9bd3b4ba1d82bac7dcfa27d86634add59db087 | [
"MIT",
"Unlicense"
] | null | null | null | Samples/codes/matopt_review/add_optimizer.py | wilsongis/3DP_Experiments | da9bd3b4ba1d82bac7dcfa27d86634add59db087 | [
"MIT",
"Unlicense"
] | null | null | null | Samples/codes/matopt_review/add_optimizer.py | wilsongis/3DP_Experiments | da9bd3b4ba1d82bac7dcfa27d86634add59db087 | [
"MIT",
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright (c) 2021 Showa Denko Materials co., Ltd. All rights reserved.
This software is for non-profit use only.
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTIC... | 46.326316 | 205 | 0.709839 | 543 | 4,401 | 5.54512 | 0.359116 | 0.083693 | 0.031883 | 0.021255 | 0.174693 | 0.093657 | 0.068416 | 0.068416 | 0.042511 | 0 | 0 | 0.004364 | 0.219041 | 4,401 | 94 | 206 | 46.819149 | 0.87169 | 0.374915 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.026316 | 0.078947 | 0 | 0.263158 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
783f73ab72792697849c2074b2a97ea34ea37f7c | 1,354 | py | Python | eos_db/test/test_credits.py | cedadev/eos-db | b97b1b7c469779e370aab8ad68cf7e8d2e6ff8e6 | [
"BSD-3-Clause"
] | null | null | null | eos_db/test/test_credits.py | cedadev/eos-db | b97b1b7c469779e370aab8ad68cf7e8d2e6ff8e6 | [
"BSD-3-Clause"
] | null | null | null | eos_db/test/test_credits.py | cedadev/eos-db | b97b1b7c469779e370aab8ad68cf7e8d2e6ff8e6 | [
"BSD-3-Clause"
] | null | null | null | """Tests for credit addition, subtraction and querying.
See also tests in test_user_api
"""
import unittest
import requests
from eos_db.server import choose_engine, create_user, touch_to_add_credit
from eos_db.server import check_credit, check_actor_id
class TestCreditFunctions(unittest.TestCase):
"""Tests cr... | 28.808511 | 84 | 0.654357 | 164 | 1,354 | 5.170732 | 0.353659 | 0.058962 | 0.064858 | 0.056604 | 0.40566 | 0.308962 | 0.240566 | 0.141509 | 0.141509 | 0.141509 | 0 | 0.019474 | 0.241507 | 1,354 | 46 | 85 | 29.434783 | 0.806232 | 0.240768 | 0 | 0.090909 | 0 | 0 | 0.112069 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
783f8c5198e30e4f05f207b05946f413e6a68383 | 5,727 | py | Python | Euler 13.py | Babnik21/Euler | e73f27ca477c58940a8212b17cd86fce9684e15b | [
"MIT"
] | null | null | null | Euler 13.py | Babnik21/Euler | e73f27ca477c58940a8212b17cd86fce9684e15b | [
"MIT"
] | null | null | null | Euler 13.py | Babnik21/Euler | e73f27ca477c58940a8212b17cd86fce9684e15b | [
"MIT"
] | null | null | null | #ce stevilko zapisemo kot string je problem super enostaven
stevilka = "37107287533902102798797998220837590246510135740250 \n\
46376937677490009712648124896970078050417018260538 \n\
74324986199524741059474233309513058123726617309629 \n\
91942213363574161572522430563301811072406154908250 \n\
230675882075393461711719803... | 49.37069 | 66 | 0.91706 | 233 | 5,727 | 22.540773 | 0.527897 | 0.002666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.913004 | 0.042605 | 5,727 | 115 | 67 | 49.8 | 0.044866 | 0.010127 | 0 | 0 | 0 | 0 | 0.000529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.009524 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
783fc3228d1bb98e46b23e9c61a33784429ce728 | 2,733 | py | Python | visualization/data_plot.py | Jingyu6/forl_2021 | 8679b41ece66551d14cfb31fa42a467eb4c1fb0b | [
"MIT"
] | null | null | null | visualization/data_plot.py | Jingyu6/forl_2021 | 8679b41ece66551d14cfb31fa42a467eb4c1fb0b | [
"MIT"
] | null | null | null | visualization/data_plot.py | Jingyu6/forl_2021 | 8679b41ece66551d14cfb31fa42a467eb4c1fb0b | [
"MIT"
] | null | null | null | import gym # type: ignore
import matplotlib # type: ignore
import matplotlib.pyplot as plt # type: ignore
import numpy as np
from pathlib import Path # type: ignore
from typing import List, Union, Literal, Dict, Any
from visualization.data_parser import Records, D3rlpyCSVDataParser
def plot_records_list(
axes: matp... | 35.038462 | 105 | 0.750823 | 399 | 2,733 | 4.907268 | 0.295739 | 0.067416 | 0.053115 | 0.034729 | 0.204801 | 0.149132 | 0.083759 | 0.083759 | 0.083759 | 0.083759 | 0 | 0.003814 | 0.13648 | 2,733 | 77 | 106 | 35.493506 | 0.825847 | 0.126235 | 0 | 0.181818 | 0 | 0 | 0.077801 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 1 | 0.036364 | false | 0.018182 | 0.127273 | 0 | 0.163636 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7840eb695f4d59312dcc4726ecededb6274d25a1 | 2,947 | py | Python | game_matrix.py | GeorgiaLu/game-2048 | f256974ad65d869943630564d9eac697c4e8dc04 | [
"MIT"
] | 1 | 2019-01-08T04:10:22.000Z | 2019-01-08T04:10:22.000Z | game_matrix.py | GeorgiaLu/game-2048 | f256974ad65d869943630564d9eac697c4e8dc04 | [
"MIT"
] | null | null | null | game_matrix.py | GeorgiaLu/game-2048 | f256974ad65d869943630564d9eac697c4e8dc04 | [
"MIT"
] | null | null | null | import numpy
import random
from enum import Enum
class Direction(Enum):
kUp, kRight, kDown, kLeft = range(4)
class GameMatrix(object):
def __init__(self, dim):
self.dim = dim
self.matrix = numpy.zeros((dim, dim))
self.init_matrix()
self.tube = []
def init_matrix(self):
... | 33.488636 | 89 | 0.490329 | 389 | 2,947 | 3.647815 | 0.133676 | 0.118393 | 0.085271 | 0.108527 | 0.51938 | 0.510218 | 0.48203 | 0.462297 | 0.422128 | 0.379845 | 0 | 0.018519 | 0.376994 | 2,947 | 87 | 90 | 33.873563 | 0.754357 | 0 | 0 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.042857 | 0 | 0.171429 | 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 | 0 | 0 | 1 | 0 |
7842f6c64be0b6e9300407e9d61cb1d099892c8f | 372 | py | Python | ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import re
import json
def parse_json(value):
return json.dumps(json.loads(re.sub('^.*\n#STARTJSON\n', '', value, flags=re.DOTALL)), indent=4, sort_keys=True)
class FilterModule(object):
def filters(self):
retur... | 20.666667 | 116 | 0.674731 | 48 | 372 | 4.9375 | 0.666667 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003344 | 0.196237 | 372 | 17 | 117 | 21.882353 | 0.789298 | 0 | 0 | 0 | 0 | 0 | 0.072581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.181818 | 0.727273 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
7843611d198318d6de99e455666135c54010d9a9 | 2,509 | py | Python | packages/w3af/w3af/core/controllers/profiling/pytracemalloc.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/core/controllers/profiling/pytracemalloc.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/core/controllers/profiling/pytracemalloc.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | """
pytracemalloc.py
Copyright 2015 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope th... | 25.09 | 81 | 0.723794 | 347 | 2,509 | 5.07781 | 0.463977 | 0.051078 | 0.022134 | 0.03235 | 0.046538 | 0.031782 | 0 | 0 | 0 | 0 | 0 | 0.017043 | 0.204863 | 2,509 | 99 | 82 | 25.343434 | 0.866165 | 0.062176 | 0 | 0.102564 | 0 | 0 | 0.060883 | 0.020548 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.205128 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
78442b33bc9640a1fb48adf69170375475735e0f | 5,581 | py | Python | cognite/model_hosting/schedules/schedules.py | cognitedata/cognite-model-hosting | 89f58e25f0e3c3a37006e60f52246da0b00a0066 | [
"Apache-2.0"
] | 4 | 2019-05-27T12:51:45.000Z | 2020-02-26T08:16:30.000Z | cognite/model_hosting/schedules/schedules.py | cognitedata/cognite-model-hosting | 89f58e25f0e3c3a37006e60f52246da0b00a0066 | [
"Apache-2.0"
] | 26 | 2019-03-18T15:10:20.000Z | 2021-06-21T05:47:24.000Z | cognite/model_hosting/schedules/schedules.py | cognitedata/cognite-model-hosting | 89f58e25f0e3c3a37006e60f52246da0b00a0066 | [
"Apache-2.0"
] | null | null | null | import json
from collections import defaultdict
from typing import Dict, List, Union
import numpy as np
import pandas as pd
from marshmallow import EXCLUDE, Schema, ValidationError, fields, validate
from cognite.model_hosting._cognite_model_hosting_common.utils import timestamp_to_ms
from cognite.model_hosting.schedu... | 39.302817 | 118 | 0.656334 | 686 | 5,581 | 5.21137 | 0.239067 | 0.049231 | 0.013427 | 0.025734 | 0.244476 | 0.191329 | 0.149371 | 0.13035 | 0.13035 | 0.13035 | 0 | 0.005437 | 0.242071 | 5,581 | 141 | 119 | 39.58156 | 0.839716 | 0.238129 | 0 | 0.131579 | 0 | 0 | 0.091558 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.144737 | false | 0 | 0.105263 | 0.026316 | 0.434211 | 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 | 0 | 0 | 1 | 0 |
78458e44258fabd7ac71356828e9e387c8902634 | 3,262 | py | Python | utils/watcher.py | OliRafa/SRFR-GAN | b7995421f5a965d35dd83f3107e095d83446868b | [
"Unlicense"
] | null | null | null | utils/watcher.py | OliRafa/SRFR-GAN | b7995421f5a965d35dd83f3107e095d83446868b | [
"Unlicense"
] | 3 | 2021-04-30T21:14:05.000Z | 2022-02-10T01:29:47.000Z | utils/watcher.py | OliRafa/SRFR-GAN | b7995421f5a965d35dd83f3107e095d83446868b | [
"Unlicense"
] | 1 | 2020-07-11T18:43:48.000Z | 2020-07-11T18:43:48.000Z | import os
import psutil
import multiprocessing as mp
from mtcnn import MTCNN
class Watcher():
def __init__(self):
self._manager = mp.Manager()
self._generate_queues()
self._face_detector = MtcnnDetectFaces(
self._images_queue,
self._detected_faces_queue,
... | 30.203704 | 81 | 0.64347 | 359 | 3,262 | 5.448468 | 0.245125 | 0.064417 | 0.153374 | 0.121677 | 0.191718 | 0.157464 | 0.093047 | 0 | 0 | 0 | 0 | 0.004193 | 0.268853 | 3,262 | 107 | 82 | 30.485981 | 0.815933 | 0.01962 | 0 | 0.126437 | 1 | 0 | 0.03035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183908 | false | 0 | 0.057471 | 0.034483 | 0.333333 | 0.034483 | 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 |
78480e99cab78715400c1a2ba08f71032a31b6fe | 578 | py | Python | src/matplot.py | AutuanLiu/PyCon | ba0e2005d1e0301d77bb8111ff67b663dc234784 | [
"MIT"
] | 1 | 2018-03-18T11:07:15.000Z | 2018-03-18T11:07:15.000Z | src/matplot.py | AutuanLiu/PyCon | ba0e2005d1e0301d77bb8111ff67b663dc234784 | [
"MIT"
] | null | null | null | src/matplot.py | AutuanLiu/PyCon | ba0e2005d1e0301d77bb8111ff67b663dc234784 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 4 14:56:00 2017
@author: AutuanLiu
"""
import numpy as np
import matplotlib.pyplot as plt
# test so so
plt.plot([3, 1, 4, -5, 6])
plt.ylabel("grade")
plt.savefig("test", dpi = 600)
plt.show()
def f(x):
return np.exp(-x) * np.cos(2 * np.pi * x)
a = np.arange(0, 5,... | 17 | 62 | 0.586505 | 119 | 578 | 2.84874 | 0.462185 | 0.044248 | 0.070796 | 0.047198 | 0.058997 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069474 | 0.178201 | 578 | 33 | 63 | 17.515152 | 0.644211 | 0.183391 | 0 | 0.166667 | 0 | 0 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0.055556 | 0.222222 | 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 | 0 | 0 | 1 | 0 |
7848a09465a19c587425eb6807accc3751bd0e0a | 1,439 | py | Python | lib.py | Zenahr/ALUB | cc9161d6e30a7f5278761954333fcdcee9598259 | [
"MIT"
] | null | null | null | lib.py | Zenahr/ALUB | cc9161d6e30a7f5278761954333fcdcee9598259 | [
"MIT"
] | null | null | null | lib.py | Zenahr/ALUB | cc9161d6e30a7f5278761954333fcdcee9598259 | [
"MIT"
] | null | null | null | import random
import autopy
import pyautogui
import time
import json
from threading import Timer
import cv2
import pytesseract
def click_readyup_button():
print('CHECKING...')
if should_click():
try:
autopy.mouse.move(*(230, 928))
time.sleep(.2)
autopy.mouse.click()
... | 27.150943 | 81 | 0.62057 | 168 | 1,439 | 5.172619 | 0.553571 | 0.050633 | 0.06214 | 0.041427 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033397 | 0.271716 | 1,439 | 53 | 82 | 27.150943 | 0.795802 | 0.029882 | 0 | 0.12766 | 0 | 0 | 0.157819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.170213 | 0 | 0.297872 | 0.170213 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
784be104b596367c04897f8c45fd427758c904d4 | 10,993 | py | Python | games/bocce/frame.py | OddballSports-tv/obies-eyes | 2dd4fc9686f852b9adf89edd3246ad642063ac8b | [
"Apache-2.0"
] | null | null | null | games/bocce/frame.py | OddballSports-tv/obies-eyes | 2dd4fc9686f852b9adf89edd3246ad642063ac8b | [
"Apache-2.0"
] | 1 | 2022-02-19T20:40:44.000Z | 2022-02-19T20:40:44.000Z | games/bocce/frame.py | OddballSports-tv/obies-eyes | 2dd4fc9686f852b9adf89edd3246ad642063ac8b | [
"Apache-2.0"
] | null | null | null | # imports
from .ball import Pallino
from .throw import Throw
from .cv.ballfinder import BallFinder
from scipy.spatial import distance as dist
# for now, these are "pixels" (not "inches" or "cm")
TOO_CLOSE_MARGIN = 5
class Frame:
def __init__(self, frameNumber, throwingEnd, pallinoThrowingTeam,
teamHome, ... | 35.009554 | 105 | 0.615665 | 1,220 | 10,993 | 5.42377 | 0.189344 | 0.020402 | 0.014508 | 0.019344 | 0.211878 | 0.163216 | 0.134804 | 0.10065 | 0.078585 | 0.065891 | 0 | 0.00411 | 0.313927 | 10,993 | 314 | 106 | 35.009554 | 0.873243 | 0.140453 | 0 | 0.210784 | 0 | 0 | 0.040116 | 0 | 0 | 0 | 0 | 0.003185 | 0 | 1 | 0.083333 | false | 0 | 0.019608 | 0 | 0.191176 | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
784d108b6268f8877b4e86d9af933400fa7c6a6e | 341 | py | Python | dataent/patches/v4_2/print_with_letterhead.py | dataent/dataent | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | [
"MIT"
] | null | null | null | dataent/patches/v4_2/print_with_letterhead.py | dataent/dataent | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | [
"MIT"
] | 6 | 2020-03-24T17:15:56.000Z | 2022-02-10T18:41:31.000Z | dataent/patches/v4_2/print_with_letterhead.py | dataent/dataent | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | [
"MIT"
] | null | null | null | # Copyright (c) 2015, Dataent Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import dataent
def execute():
dataent.reload_doc("core", "doctype", "print_settings")
print_settings = dataent.get_doc("Print Settings")
print_settings.with_letterhead = 1
p... | 28.416667 | 69 | 0.782991 | 45 | 341 | 5.666667 | 0.688889 | 0.254902 | 0.141176 | 0.203922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016611 | 0.117302 | 341 | 11 | 70 | 31 | 0.830565 | 0.281525 | 0 | 0 | 0 | 0 | 0.161157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0.571429 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
784d88dfa8270065fc4ec2b2539f03dba716b534 | 2,738 | py | Python | timer.py | mrozowski/TaskTimer | 66b069c14a7117502bb657738869f3ae33870c04 | [
"MIT"
] | 1 | 2021-07-10T17:51:01.000Z | 2021-07-10T17:51:01.000Z | timer.py | mrozowski/TaskTimer | 66b069c14a7117502bb657738869f3ae33870c04 | [
"MIT"
] | null | null | null | timer.py | mrozowski/TaskTimer | 66b069c14a7117502bb657738869f3ae33870c04 | [
"MIT"
] | null | null | null | import threading, time, signal
from datetime import timedelta
from PyQt5 import QtWidgets
from playsound import playsound
import win10toast
from view import Dial
isActive = False # global variable that says if timer is set
class MyTimer(threading.Thread):
"""This class count down timer and mov... | 31.471264 | 139 | 0.565741 | 318 | 2,738 | 4.764151 | 0.333333 | 0.047525 | 0.052805 | 0.037624 | 0.048845 | 0.033003 | 0 | 0 | 0 | 0 | 0 | 0.016584 | 0.339299 | 2,738 | 86 | 140 | 31.837209 | 0.820896 | 0.065376 | 0 | 0.151515 | 0 | 0 | 0.023909 | 0.009228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.19697 | 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 | 0 | 0 | 1 | 0 |