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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7442858aa79374bc0e7c8a884d99101738677bd6 | 4,339 | py | Python | tools/CH_constants.py | hussamnasir/geni-ch | b6626a14e95768ba33bbc1faca9e4e74b0040920 | [
"MIT"
] | 3 | 2015-05-01T12:48:35.000Z | 2017-02-25T07:13:07.000Z | tools/CH_constants.py | GENI-NSF/geni-ch | 184909ef656976071fd891091caeaf892c99deb1 | [
"MIT"
] | 466 | 2015-05-20T03:49:54.000Z | 2020-03-18T23:09:52.000Z | tools/CH_constants.py | hussamnasir/geni-ch | b6626a14e95768ba33bbc1faca9e4e74b0040920 | [
"MIT"
] | 6 | 2015-05-06T13:44:13.000Z | 2017-07-12T17:57:17.000Z | #----------------------------------------------------------------------
# Copyright (c) 2011-2016 Raytheon BBN Technologies
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without restriction, including ... | 40.551402 | 89 | 0.705001 | 543 | 4,339 | 5.41989 | 0.360958 | 0.019028 | 0.031261 | 0.024465 | 0.099218 | 0.085627 | 0.068637 | 0.033979 | 0.033979 | 0.033979 | 0 | 0.006663 | 0.169855 | 4,339 | 106 | 90 | 40.933962 | 0.810383 | 0.454713 | 0 | 0.032787 | 0 | 0 | 0.40515 | 0.072103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74437028daada4e5ca6b65cd6259ece7a9695dc3 | 1,657 | py | Python | Simulation-Chernobyl/simulation_chernobyl/graphics/logger.py | AllSafeCyberSecur1ty/Nuclear-Engineering | 302d6dcc7c0a85a9191098366b076cf9cb5a9f6e | [
"MIT"
] | 1 | 2022-03-26T20:01:13.000Z | 2022-03-26T20:01:13.000Z | Simulation-Chernobyl/simulation_chernobyl/graphics/logger.py | AllSafeCyberSecur1ty/Nuclear-Engineering | 302d6dcc7c0a85a9191098366b076cf9cb5a9f6e | [
"MIT"
] | null | null | null | Simulation-Chernobyl/simulation_chernobyl/graphics/logger.py | AllSafeCyberSecur1ty/Nuclear-Engineering | 302d6dcc7c0a85a9191098366b076cf9cb5a9f6e | [
"MIT"
] | 1 | 2022-03-26T19:59:13.000Z | 2022-03-26T19:59:13.000Z | import pygame
class Logger():
def __init__(self):
self.mem_text = "" # to store previous text
self.text1, self.text2, self.text3 = "", "", "" # text buffer
self.text_color1, self.text_color2, self.text_color3 = (0,0,0), (0,0,0), (0,0,0) # text color buffer
self.max_width = 100... | 55.233333 | 133 | 0.63971 | 250 | 1,657 | 4.092 | 0.264 | 0.125122 | 0.02346 | 0.02346 | 0.419355 | 0.319648 | 0.231672 | 0.231672 | 0.109482 | 0.109482 | 0 | 0.053514 | 0.244418 | 1,657 | 29 | 134 | 57.137931 | 0.763578 | 0.211225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.047619 | 0 | 0.285714 | 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 |
7443df89c1d0dd9c460536ddbdae972c55cb92f9 | 9,765 | py | Python | ob/models.py | peterkuma/tjrapid | 8813cb0a3633785754d20263f180428688bcb026 | [
"MIT"
] | null | null | null | ob/models.py | peterkuma/tjrapid | 8813cb0a3633785754d20263f180428688bcb026 | [
"MIT"
] | 1 | 2021-05-16T16:40:00.000Z | 2021-05-16T16:40:00.000Z | ob/models.py | peterkuma/tjrapid | 8813cb0a3633785754d20263f180428688bcb026 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2007-2012 Peter Kuma
import os
from datetime import date, datetime
import urllib.request, urllib.error, urllib.parse
import json
from django.utils import timezone
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import setti... | 24.659091 | 171 | 0.725038 | 1,190 | 9,765 | 5.756303 | 0.377311 | 0.027591 | 0.01927 | 0.009927 | 0.099562 | 0.07708 | 0.067445 | 0.05635 | 0.040584 | 0.015766 | 0 | 0.003797 | 0.110087 | 9,765 | 395 | 172 | 24.721519 | 0.784465 | 0.005735 | 0 | 0.059621 | 0 | 0.00271 | 0.478207 | 0.130963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01897 | false | 0 | 0.056911 | 0.00813 | 0.176152 | 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 |
74455e5242de473902ce5c1ce7ac6048af1210c7 | 18,394 | py | Python | tests/test_hal_nav2.py | rdhyee/restnavigator | 507a854ab9ea5fe42dc10d8698f67e43b8657902 | [
"MIT"
] | 21 | 2015-04-26T08:41:33.000Z | 2020-07-22T04:05:37.000Z | tests/test_hal_nav2.py | rdhyee/restnavigator | 507a854ab9ea5fe42dc10d8698f67e43b8657902 | [
"MIT"
] | 17 | 2015-01-09T18:49:50.000Z | 2015-03-09T07:57:17.000Z | tests/test_hal_nav2.py | rdhyee/restnavigator | 507a854ab9ea5fe42dc10d8698f67e43b8657902 | [
"MIT"
] | 11 | 2015-04-21T04:12:56.000Z | 2022-03-27T00:24:25.000Z | '''Refactored tests from test_hal_nav.py'''
import json
import httpretty
import pytest
import conftest
import uritemplate
import restnavigator as RN
from restnavigator import exc
import restnavigator.halnav as HN
def uri_of(doc):
'''Pull out the url from a hal document'''
return doc['_links']['self']['hr... | 31.604811 | 84 | 0.584321 | 2,296 | 18,394 | 4.516551 | 0.135017 | 0.024301 | 0.043202 | 0.007715 | 0.271649 | 0.208004 | 0.167888 | 0.119286 | 0.094118 | 0.079556 | 0 | 0.013312 | 0.289388 | 18,394 | 581 | 85 | 31.659208 | 0.780047 | 0.09128 | 0 | 0.204036 | 0 | 0 | 0.080155 | 0.001874 | 0 | 0 | 0 | 0 | 0.098655 | 1 | 0.170404 | false | 0.004484 | 0.017937 | 0.020179 | 0.282511 | 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 |
74473c34a9a7c4a517aae11602ad9b0523cc56e0 | 931 | py | Python | pony_express/solution.py | ijkilchenko/google_code_jam | 4584d0125f79e0420881356e8a722c5afc0c1ca9 | [
"MIT"
] | null | null | null | pony_express/solution.py | ijkilchenko/google_code_jam | 4584d0125f79e0420881356e8a722c5afc0c1ca9 | [
"MIT"
] | null | null | null | pony_express/solution.py | ijkilchenko/google_code_jam | 4584d0125f79e0420881356e8a722c5afc0c1ca9 | [
"MIT"
] | null | null | null | import sys
def read(f):
with open(f) as file:
lines = file.readlines()
T = int(lines[0])
line = 1
for t in range(1, T+1):
N, Q, H, A, UV, line = _get_case(line, lines)
y = solve(N, Q, H, A, UV)
print('Case #%i: %0.6f' % (t, y))
def _get_case(line, lines):
N, Q = ... | 20.688889 | 55 | 0.481203 | 166 | 931 | 2.674699 | 0.259036 | 0.078829 | 0.081081 | 0.036036 | 0.515766 | 0.515766 | 0.292793 | 0.25 | 0.25 | 0.25 | 0 | 0.02589 | 0.336198 | 931 | 44 | 56 | 21.159091 | 0.692557 | 0.01826 | 0 | 0.235294 | 0 | 0 | 0.026287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.029412 | 0 | 0.147059 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74488c7384e202632e7b938723fff09c66866753 | 3,724 | py | Python | corpus_process.py | Protostars/CSeg | 1acd301e804de8135310c5d39ed136b4cfd8865f | [
"MIT"
] | 1 | 2019-12-15T06:03:42.000Z | 2019-12-15T06:03:42.000Z | corpus_process.py | Protostars/CSeg | 1acd301e804de8135310c5d39ed136b4cfd8865f | [
"MIT"
] | null | null | null | corpus_process.py | Protostars/CSeg | 1acd301e804de8135310c5d39ed136b4cfd8865f | [
"MIT"
] | 1 | 2019-12-15T06:03:19.000Z | 2019-12-15T06:03:19.000Z | import re
import os
import pickle
import sys
from math import log
DICT_NAME = "dict.txt"
BI_GRAM_FILE = "bi_gram.txt"
HMM_PROB = "hmm_prob"
SMALL_PROB = 1e-200
# 识别汉字、数字和字母、全角字符,及+,#,&,.,%
re_ch = re.compile("([\u4E00-\u9FD5a-zA-Z0-9\uFF10-\uFF5A+#&\._%%]+)", re.U)
re_stop = re.compile("([。,]+)", re.U)
# 处理分词语料,生成词典... | 32.955752 | 108 | 0.475295 | 535 | 3,724 | 3.145794 | 0.231776 | 0.041592 | 0.030897 | 0.035651 | 0.341652 | 0.341652 | 0.317885 | 0.267974 | 0.229947 | 0.196673 | 0 | 0.021583 | 0.365467 | 3,724 | 112 | 109 | 33.25 | 0.690647 | 0.028733 | 0 | 0.20202 | 0 | 0 | 0.067684 | 0.013315 | 0 | 0 | 0 | 0 | 0.010101 | 1 | 0.020202 | false | 0 | 0.050505 | 0 | 0.070707 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
744953a33d13dce6a8e313b4de8e7bbc4605a9b1 | 1,954 | py | Python | main.py | tvirus-01/scraping-seekingalpha | 0dedd14195a9f4f354475a3cbe1728325cb45b33 | [
"MIT"
] | 1 | 2021-05-18T16:27:06.000Z | 2021-05-18T16:27:06.000Z | main.py | tvirus-01/scraping-seekingalpha | 0dedd14195a9f4f354475a3cbe1728325cb45b33 | [
"MIT"
] | null | null | null | main.py | tvirus-01/scraping-seekingalpha | 0dedd14195a9f4f354475a3cbe1728325cb45b33 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from bs4 import BeautifulSoup
import requests
import time
import os
import csv
root_url = "https://seekingalpha.com"
query = "stock repurchase program"
url = "https://seekingalpha.com/search?q="+query.replcae(" ", "+")
chrome_driver_p... | 30.53125 | 153 | 0.680655 | 274 | 1,954 | 4.693431 | 0.390511 | 0.046656 | 0.037325 | 0.037325 | 0.139969 | 0.093313 | 0 | 0 | 0 | 0 | 0 | 0.01816 | 0.154555 | 1,954 | 64 | 154 | 30.53125 | 0.760291 | 0.012283 | 0 | 0.043478 | 0 | 0.021739 | 0.236269 | 0.031088 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.152174 | 0 | 0.152174 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
744e61002cde51c152c53abdd50110f3f6f68a3b | 6,071 | py | Python | falx/utils/generate_random_traces.py | Mestway/falx | fcae5e536f44c19780ae9f00b94e397723924757 | [
"BSD-2-Clause"
] | 10 | 2021-01-29T19:08:55.000Z | 2022-03-03T05:08:53.000Z | falx/utils/generate_random_traces.py | Mestway/falx | fcae5e536f44c19780ae9f00b94e397723924757 | [
"BSD-2-Clause"
] | null | null | null | falx/utils/generate_random_traces.py | Mestway/falx | fcae5e536f44c19780ae9f00b94e397723924757 | [
"BSD-2-Clause"
] | 2 | 2020-06-28T21:52:12.000Z | 2020-09-04T07:18:08.000Z | import eval_utils
import json
from falx.eval_interface import FalxEvalInterface
from falx.utils import table_utils
from timeit import default_timer as timer
import numpy as np
from pprint import pprint
from falx.visualization.chart import VisDesign, LayeredChart
from falx.visualization.matplotlib_chart import Matpl... | 54.205357 | 469 | 0.541591 | 889 | 6,071 | 3.502812 | 0.224972 | 0.045922 | 0.038536 | 0.043674 | 0.271676 | 0.229929 | 0.181118 | 0.134233 | 0.111432 | 0.111432 | 0 | 0.159871 | 0.232416 | 6,071 | 111 | 470 | 54.693694 | 0.508369 | 0.006095 | 0 | 0 | 0 | 0 | 0.24685 | 0.004476 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0 | 0.117647 | 0 | 0.164706 | 0.023529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
745481823c68affcc1265816e955ae79a8aa4353 | 1,180 | py | Python | Python Advanced/3. Multidimensional Lists/Exercise/08. Bombs.py | a-shiro/SoftUni-Courses | 7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77 | [
"MIT"
] | null | null | null | Python Advanced/3. Multidimensional Lists/Exercise/08. Bombs.py | a-shiro/SoftUni-Courses | 7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77 | [
"MIT"
] | null | null | null | Python Advanced/3. Multidimensional Lists/Exercise/08. Bombs.py | a-shiro/SoftUni-Courses | 7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77 | [
"MIT"
] | null | null | null | from collections import deque
def read_matrix(dimensions):
mtrx = []
for _ in range(dimensions):
col = [int(n) for n in input().split(' ')]
mtrx.append(col)
return mtrx
def get_cells(matrix):
cells_alive = 0
cells_sum = 0
for r in matrix:
for c in r:
... | 22.264151 | 99 | 0.555085 | 177 | 1,180 | 3.570621 | 0.248588 | 0.066456 | 0.079114 | 0.066456 | 0.151899 | 0.088608 | 0.088608 | 0.088608 | 0.088608 | 0 | 0 | 0.01968 | 0.311017 | 1,180 | 52 | 100 | 22.692308 | 0.757688 | 0 | 0 | 0 | 0 | 0 | 0.028814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.030303 | 0 | 0.151515 | 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 | 0 | 0 | 0 | 1 | 0 |
745b09ab868c2f65731e7156a385d464a997846f | 5,676 | py | Python | ndd/counts.py | simomarsili/ndd | 3a8f8f80116ddaf8666dd13b246a04c9806447a7 | [
"BSD-3-Clause"
] | 34 | 2017-01-25T21:42:07.000Z | 2022-03-05T02:12:11.000Z | ndd/counts.py | simomarsili/ndd | 3a8f8f80116ddaf8666dd13b246a04c9806447a7 | [
"BSD-3-Clause"
] | 4 | 2018-06-22T19:15:33.000Z | 2020-05-06T12:37:24.000Z | ndd/counts.py | simomarsili/ndd | 3a8f8f80116ddaf8666dd13b246a04c9806447a7 | [
"BSD-3-Clause"
] | 2 | 2019-07-31T07:53:02.000Z | 2019-07-31T07:53:22.000Z | # -*- coding: utf-8 -*-
"""CountsDistribution class."""
import json
import logging
from collections.abc import Mapping, MappingView
from types import GeneratorType
import numpy
import ndd.fnsb
from ndd.exceptions import NddError
logger = logging.getLogger(__name__)
def unique(nk, sort=True):
"""Return nk, zk""... | 28.522613 | 75 | 0.555673 | 779 | 5,676 | 3.970475 | 0.215661 | 0.036857 | 0.023278 | 0.027158 | 0.137084 | 0.102166 | 0.079534 | 0.079534 | 0.071452 | 0.071452 | 0 | 0.013552 | 0.323996 | 5,676 | 198 | 76 | 28.666667 | 0.792546 | 0.21494 | 0 | 0.145161 | 0 | 0 | 0.061129 | 0.005833 | 0 | 0 | 0 | 0.005051 | 0 | 1 | 0.137097 | false | 0.008065 | 0.056452 | 0.032258 | 0.362903 | 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 |
745b6a06e7b05b2a82df687d97773686b7b6c978 | 1,999 | py | Python | events-svc/app/actions/event_actions.py | zerodevgroup/fastapi-referece-architecture | 185e4b3036799fec2044dd415022ba0760b5bb45 | [
"MIT"
] | null | null | null | events-svc/app/actions/event_actions.py | zerodevgroup/fastapi-referece-architecture | 185e4b3036799fec2044dd415022ba0760b5bb45 | [
"MIT"
] | null | null | null | events-svc/app/actions/event_actions.py | zerodevgroup/fastapi-referece-architecture | 185e4b3036799fec2044dd415022ba0760b5bb45 | [
"MIT"
] | null | null | null | import aiohttp
import asyncio
import base64
import os
from events import EventIn, EventOut, EventUpdate
from fastapi.logger import logger
from db import events, database
STRIPE_CHARGES_URL = os.getenv("STRIPE_CHARGES_URL")
STRIPE_API_KEY = os.getenv("STRIPE_API_KEY")
async def add_event(payload: EventIn):
logger.... | 32.241935 | 98 | 0.69935 | 257 | 1,999 | 5.346304 | 0.315175 | 0.034935 | 0.052402 | 0.082969 | 0.291849 | 0.19869 | 0.150655 | 0.120815 | 0.088792 | 0.088792 | 0 | 0.005505 | 0.182091 | 1,999 | 61 | 99 | 32.770492 | 0.834862 | 0.021511 | 0 | 0.0625 | 0 | 0 | 0.15609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.145833 | 0 | 0.270833 | 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 |
745d592616ed0c1497992e114b4112aa3cdca55c | 1,006 | py | Python | backend/server_flask.py | sigmarising/Multimedia-Homework-website | 38fdf0c2c539b2d02d4062c55982f1e9df5f5ef4 | [
"MIT"
] | null | null | null | backend/server_flask.py | sigmarising/Multimedia-Homework-website | 38fdf0c2c539b2d02d4062c55982f1e9df5f5ef4 | [
"MIT"
] | null | null | null | backend/server_flask.py | sigmarising/Multimedia-Homework-website | 38fdf0c2c539b2d02d4062c55982f1e9df5f5ef4 | [
"MIT"
] | null | null | null | import os
from flask import Flask, send_from_directory, request, jsonify
# Path settings
SERVER_PATH = os.path.abspath(os.path.dirname(__file__))
FTP_PATH = os.path.abspath(os.path.join(SERVER_PATH, 'ftp/'))
# Flask app settings
app = Flask(__name__)
app.config['JSON_AS_ASCII'] = False
@app.route('/api/getFilesList... | 27.189189 | 72 | 0.709742 | 146 | 1,006 | 4.59589 | 0.342466 | 0.062593 | 0.044709 | 0.076006 | 0.204173 | 0.114754 | 0.080477 | 0 | 0 | 0 | 0 | 0 | 0.131213 | 1,006 | 36 | 73 | 27.944444 | 0.767735 | 0.031809 | 0 | 0 | 0 | 0 | 0.122554 | 0.033986 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0.041667 | 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 |
745fc74246c6c357dfc1fd1dc49a06020766a990 | 1,240 | py | Python | Python/468.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | 1 | 2020-12-10T05:36:15.000Z | 2020-12-10T05:36:15.000Z | Python/468.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | null | null | null | Python/468.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | 3 | 2020-04-06T05:55:08.000Z | 2021-08-29T14:26:54.000Z | class Solution:
def validIPAddress(self, IP: str) -> str:
# if not IP:
# return "Neither"
if len(IP.split('.')) == 4:
ips = IP.split('.')
return self.validIPv4(ips)
elif len(IP.split(':')) == 8:
ips = IP.split(':')
return self.valid... | 28.837209 | 67 | 0.429032 | 132 | 1,240 | 4.030303 | 0.431818 | 0.146617 | 0.037594 | 0.06015 | 0.075188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030882 | 0.451613 | 1,240 | 43 | 68 | 28.837209 | 0.751471 | 0.064516 | 0 | 0.178571 | 0 | 0 | 0.058874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0 | 0 | 0.464286 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7461e3bcb8e9c632b051701ae54e04f11972850a | 1,158 | py | Python | buzzmobile/process/bearing/calculate_directions.py | gtagency/buzzmobile | 8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a | [
"MIT"
] | 25 | 2015-02-18T04:15:09.000Z | 2019-12-11T14:29:02.000Z | buzzmobile/process/bearing/calculate_directions.py | gtagency/buzzmobile | 8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a | [
"MIT"
] | 173 | 2016-09-16T05:34:27.000Z | 2017-11-15T07:31:53.000Z | buzzmobile/process/bearing/calculate_directions.py | gtagency/buzzmobile | 8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a | [
"MIT"
] | 4 | 2015-01-18T15:46:35.000Z | 2017-04-08T00:39:05.000Z | """Utilities for calculating directions and distances given coords."""
import math
EARTH_RADIUS = 6.3710088e6
def get_distance(fix1, fix2):
"""Calculates great-circle distance between two positions in meters."""
lat1 = math.radians(fix1.latitude)
lon1 = math.radians(fix1.longitude)
lat2 = math.radia... | 35.090909 | 75 | 0.648532 | 160 | 1,158 | 4.65 | 0.30625 | 0.11828 | 0.080645 | 0.056452 | 0.346774 | 0.295699 | 0.295699 | 0.295699 | 0.295699 | 0.295699 | 0 | 0.058824 | 0.207254 | 1,158 | 32 | 76 | 36.1875 | 0.751634 | 0.16494 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.227273 | 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 |
746ab1f26e2827ead488e3722b6ba0e4f14c48ca | 523 | py | Python | src/proto/player_state_proto.py | edwadli/splendor-ai | 0881924bf59539ba307592a2f546d56732359120 | [
"Apache-2.0"
] | 2 | 2020-02-02T06:01:23.000Z | 2021-09-21T02:49:29.000Z | src/proto/player_state_proto.py | edwadli/splendor-ai | 0881924bf59539ba307592a2f546d56732359120 | [
"Apache-2.0"
] | 3 | 2019-06-04T07:45:33.000Z | 2019-06-07T02:14:27.000Z | src/proto/player_state_proto.py | edwadli/splendor-ai | 0881924bf59539ba307592a2f546d56732359120 | [
"Apache-2.0"
] | 2 | 2019-05-31T06:52:58.000Z | 2019-06-05T19:45:16.000Z | """Data schema for a player's state."""
import collections
PlayerState = collections.namedtuple(
"PlayerState", [
# Dictionary of Gems held by player.
"gems",
# List of purchased DevelopmentCards.
"purchased_cards",
# List of reserved (non-hidden) DevelopmentCards.
"unhidden_reserved_cards... | 22.73913 | 78 | 0.695985 | 56 | 523 | 6.392857 | 0.607143 | 0.050279 | 0.061453 | 0.106145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210325 | 523 | 22 | 79 | 23.772727 | 0.866828 | 0.535373 | 0 | 0 | 0 | 0 | 0.366379 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
746ad17c2512eef00d948851110356b09d69b731 | 4,871 | py | Python | sheepdoge/config.py | mattjmcnaughton/sheepdoge | 9c028d6f51cb59afcaf25a5680f961ec7e25676b | [
"Apache-2.0"
] | 7 | 2018-03-18T07:25:10.000Z | 2022-01-28T17:35:08.000Z | sheepdoge/config.py | mattjmcnaughton/sheepdoge | 9c028d6f51cb59afcaf25a5680f961ec7e25676b | [
"Apache-2.0"
] | 15 | 2017-08-19T14:03:10.000Z | 2017-12-29T23:22:05.000Z | sheepdoge/config.py | mattjmcnaughton/sheepdoge | 9c028d6f51cb59afcaf25a5680f961ec7e25676b | [
"Apache-2.0"
] | null | null | null | from configparser import ConfigParser, NoOptionError
from typing import Dict # pylint: disable=unused-import
import os
from sheepdoge.exception import (
SheepdogeConfigurationAlreadyInitializedException,
SheepdogeConfigurationNotInitializedException,
)
DEFAULTS = {
"kennel_playbook_path": "kennel.yml",
... | 34.062937 | 76 | 0.667419 | 567 | 4,871 | 5.488536 | 0.268078 | 0.067481 | 0.02892 | 0.031491 | 0.092224 | 0.040488 | 0.032776 | 0.023779 | 0.023779 | 0 | 0 | 0 | 0.25929 | 4,871 | 142 | 77 | 34.302817 | 0.862528 | 0.353726 | 0 | 0.098592 | 0 | 0 | 0.059107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126761 | false | 0.028169 | 0.056338 | 0 | 0.239437 | 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 |
746b61a512fe54bf6d58d51dee7f9f6d9529baf8 | 1,202 | py | Python | _argparse.py | zzyyyl/USTC-Helper | 6f16361bdead655b799da40e3ecd7758745c2568 | [
"MIT"
] | 3 | 2022-03-18T18:24:53.000Z | 2022-03-24T01:50:41.000Z | _argparse.py | zzyyyl/USTC-Helper | 6f16361bdead655b799da40e3ecd7758745c2568 | [
"MIT"
] | null | null | null | _argparse.py | zzyyyl/USTC-Helper | 6f16361bdead655b799da40e3ecd7758745c2568 | [
"MIT"
] | null | null | null | from argparse import ArgumentParser
from USTCHelper import config
import json, base64
import os
class ArgumentError(Exception):
def __init__(self, text):
self.text = text
def __str__(self):
return f"ArgumentError: {self.text}"
def ArgParser():
parser = ArgumentParser()
parser.add_argu... | 36.424242 | 105 | 0.6797 | 148 | 1,202 | 5.405405 | 0.412162 | 0.0675 | 0.1275 | 0.07875 | 0.12 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0.005964 | 0.163062 | 1,202 | 32 | 106 | 37.5625 | 0.789264 | 0 | 0 | 0 | 0 | 0 | 0.270383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0.038462 | 0.153846 | 0.038462 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
746fe9ce70247f8f0f948de126caec9e75bc4ccb | 1,378 | py | Python | app/api/client.py | cloudblue/processor-acronis-customer-centric | fbb022de150818e29cf6cb6205650893acb3613e | [
"Apache-2.0"
] | 3 | 2019-12-21T13:45:28.000Z | 2019-12-24T20:04:34.000Z | app/api/client.py | cloudblue/processor-acronis-customer-centric | fbb022de150818e29cf6cb6205650893acb3613e | [
"Apache-2.0"
] | null | null | null | app/api/client.py | cloudblue/processor-acronis-customer-centric | fbb022de150818e29cf6cb6205650893acb3613e | [
"Apache-2.0"
] | null | null | null | """
This file is property of the Ingram Micro Cloud Blue.
Copyright (c) 2019 Ingram Micro. All Rights Reserved.
"""
import json
from requests import api
from connect.logger import logger
from urllib.parse import urlencode, quote_plus
class Client:
@staticmethod
def send_request(verb, uri, config, body=None):... | 33.609756 | 146 | 0.563135 | 146 | 1,378 | 5.280822 | 0.486301 | 0.057069 | 0.046693 | 0.057069 | 0.090791 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010341 | 0.298258 | 1,378 | 40 | 147 | 34.45 | 0.78697 | 0.077649 | 0 | 0 | 0 | 0 | 0.167854 | 0.047506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.142857 | 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 |
7470950ef82ea911ccd94deb0cfaffcdcd9405a5 | 4,048 | py | Python | venmo-sim/leiden/simulate_txs_on_leiden_clustered_venmo_graph.py | akatsarakis/tx_benchmarking | f8233e58bba3f4fb54d82273d7ca8631bae36ebc | [
"MIT"
] | 3 | 2020-07-07T17:08:41.000Z | 2022-01-10T19:25:46.000Z | venmo-sim/leiden/simulate_txs_on_leiden_clustered_venmo_graph.py | akatsarakis/tx_benchmarking | f8233e58bba3f4fb54d82273d7ca8631bae36ebc | [
"MIT"
] | null | null | null | venmo-sim/leiden/simulate_txs_on_leiden_clustered_venmo_graph.py | akatsarakis/tx_benchmarking | f8233e58bba3f4fb54d82273d7ca8631bae36ebc | [
"MIT"
] | null | null | null | import argparse
import csv
import re
# read arg (the num of shards, also the num of distributed nodes) from command line
def parse_args():
global ARGS
parser = argparse.ArgumentParser()
parser.add_argument('node_tot', type=int,
help='total number of distributed-nodes/shards in the system')
ARG... | 34.896552 | 112 | 0.704792 | 639 | 4,048 | 4.242567 | 0.266041 | 0.033567 | 0.030985 | 0.020657 | 0.095906 | 0.04574 | 0.04574 | 0.022132 | 0.022132 | 0.022132 | 0 | 0.017099 | 0.190959 | 4,048 | 115 | 113 | 35.2 | 0.810687 | 0.272233 | 0 | 0.075 | 0 | 0 | 0.129287 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.0375 | 0.0125 | 0.075 | 0.0875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7471a6cafdc6fccdf2cbf3b0bcfba1e4f01d5df3 | 4,363 | py | Python | custom_components/ampio/__init__.py | pszypowicz/ampio-hacc | 34a929cccc2b0e35f1f5d8aeafbf965bfc7dab6c | [
"MIT"
] | 2 | 2021-08-18T07:18:05.000Z | 2022-01-01T19:07:09.000Z | custom_components/ampio/__init__.py | pszypowicz/ampio-hacc | 34a929cccc2b0e35f1f5d8aeafbf965bfc7dab6c | [
"MIT"
] | null | null | null | custom_components/ampio/__init__.py | pszypowicz/ampio-hacc | 34a929cccc2b0e35f1f5d8aeafbf965bfc7dab6c | [
"MIT"
] | 1 | 2021-11-29T18:16:45.000Z | 2021-11-29T18:16:45.000Z | """Ampio Systems Platform."""
import asyncio
import json
import logging
from typing import Any, Dict, Optional
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
CONF_CLIENT_ID,
CONF_DEVICE,
CONF_DEVICE_CLASS,
CONF_FRIENDLY_NAME,
CONF_IC... | 27.789809 | 88 | 0.698602 | 517 | 4,363 | 5.599613 | 0.270793 | 0.040415 | 0.036269 | 0.037306 | 0.121934 | 0.067012 | 0.021416 | 0 | 0 | 0 | 0 | 0.006741 | 0.217969 | 4,363 | 156 | 89 | 27.967949 | 0.841735 | 0.005272 | 0 | 0.078947 | 0 | 0 | 0.027337 | 0.021479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.017544 | 0.140351 | 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 |
747472dbf6c760efb2300b9c6ffbf248dba2c191 | 6,477 | py | Python | pyformlang/rsa/recursive_automaton.py | IlyaEp/pyformlang | eef239844beff5e9da3be4a4a240440ece81c10b | [
"MIT"
] | 15 | 2020-06-25T14:38:27.000Z | 2022-03-09T17:55:07.000Z | pyformlang/rsa/recursive_automaton.py | IlyaEp/pyformlang | eef239844beff5e9da3be4a4a240440ece81c10b | [
"MIT"
] | 11 | 2020-09-23T09:48:35.000Z | 2021-08-24T08:37:47.000Z | pyformlang/rsa/recursive_automaton.py | IlyaEp/pyformlang | eef239844beff5e9da3be4a4a240440ece81c10b | [
"MIT"
] | 5 | 2020-03-08T19:00:17.000Z | 2021-08-15T12:38:05.000Z | """
Representation of a recursive automaton
"""
from typing import AbstractSet
from pyformlang.finite_automaton.finite_automaton import to_symbol
from pyformlang.finite_automaton.symbol import Symbol
from pyformlang.regular_expression import Regex
from pyformlang.cfg import CFG, Epsilon
from pyformlang.rsa.box impor... | 28.915179 | 98 | 0.603366 | 742 | 6,477 | 5.080863 | 0.15903 | 0.098674 | 0.027851 | 0.041114 | 0.24244 | 0.163395 | 0.096021 | 0.068966 | 0.04191 | 0.04191 | 0 | 0.001102 | 0.299213 | 6,477 | 223 | 99 | 29.044843 | 0.829478 | 0.28578 | 0 | 0.14433 | 0 | 0 | 0.036984 | 0.006724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134021 | false | 0 | 0.061856 | 0.010309 | 0.350515 | 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 |
7475e81fcba007e37fae56c5bb3b0e881ffb33a4 | 17,080 | py | Python | py/ColladaMesh.py | dineshkummarc/Odin | f23719ff05a9d03cebd0d5c4c0179a98eff2d935 | [
"BSD-3-Clause"
] | 1 | 2019-04-22T16:33:55.000Z | 2019-04-22T16:33:55.000Z | py/ColladaMesh.py | dineshkummarc/Odin | f23719ff05a9d03cebd0d5c4c0179a98eff2d935 | [
"BSD-3-Clause"
] | null | null | null | py/ColladaMesh.py | dineshkummarc/Odin | f23719ff05a9d03cebd0d5c4c0179a98eff2d935 | [
"BSD-3-Clause"
] | null | null | null | from bisect import bisect
import ColladaMaterial
# Named array of points.
class PointArray():
def __init__(self, n, ofs):
self.name = n
self.points = []
self.stride = 1
self.offset = int(ofs)
def GetFirstChildElement(node):
for elem in node.childNodes:
if elem.nodeType == elem.ELEMENT_NODE:
... | 37.955556 | 156 | 0.606382 | 1,809 | 17,080 | 5.709232 | 0.165837 | 0.040666 | 0.012393 | 0.012393 | 0.176414 | 0.136135 | 0.111348 | 0.097405 | 0.079009 | 0.060418 | 0 | 0.006349 | 0.271546 | 17,080 | 449 | 157 | 38.040089 | 0.823742 | 0.058782 | 0 | 0.215584 | 0 | 0 | 0.092551 | 0 | 0 | 0 | 0 | 0.002227 | 0 | 1 | 0.036364 | false | 0 | 0.005195 | 0 | 0.083117 | 0.031169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
747a9c5326878d11b9906f17374aa59d5eda3f27 | 5,958 | py | Python | nel-wikipedia/kb_creator.py | nadjet/explosion_projects | 74f09fc97befb429a6db9e3235619c3d7b27ea7a | [
"MIT"
] | 1 | 2020-07-18T19:19:54.000Z | 2020-07-18T19:19:54.000Z | nel-wikipedia/kb_creator.py | JaredDelora/projects | ad0fc26dbc05182a439ffe76a362d40c24e25066 | [
"MIT"
] | null | null | null | nel-wikipedia/kb_creator.py | JaredDelora/projects | ad0fc26dbc05182a439ffe76a362d40c24e25066 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals
import logging
from spacy.kb import KnowledgeBase
from train_descriptions import EntityEncoder
import wiki_io as io
logger = logging.getLogger(__name__)
def create_kb(
nlp,
max_entities_per_alias,
min_entity_freq,
min_occ,
entity_def_pat... | 36.777778 | 158 | 0.648372 | 749 | 5,958 | 4.798398 | 0.230975 | 0.037006 | 0.047579 | 0.042571 | 0.293823 | 0.235392 | 0.195047 | 0.195047 | 0.185031 | 0.185031 | 0 | 0.002789 | 0.277946 | 5,958 | 161 | 159 | 37.006211 | 0.832636 | 0.06764 | 0 | 0.080645 | 0 | 0 | 0.066005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.040323 | 0 | 0.120968 | 0.008065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
747becfe33166824b286845631f9101c61bac5a1 | 1,045 | py | Python | modulesExecution.py | rando3/leetcode-python | b13bb35fb3cdc9813c62944547d260be2f9cab02 | [
"MIT"
] | null | null | null | modulesExecution.py | rando3/leetcode-python | b13bb35fb3cdc9813c62944547d260be2f9cab02 | [
"MIT"
] | null | null | null | modulesExecution.py | rando3/leetcode-python | b13bb35fb3cdc9813c62944547d260be2f9cab02 | [
"MIT"
] | null | null | null | from collections import deque, defaultdict
GRAY, BLACK = 0, 1
class Graph:
def __init__(self, vertices):
self.graph = defaultdict(list) # dictionary containing adjacency List
self.V = vertices # No. of vertices
def addEdge(self, u, v):
''' Function to add an edge to graph '''
... | 24.302326 | 78 | 0.504306 | 120 | 1,045 | 4.291667 | 0.525 | 0.069903 | 0.050485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01092 | 0.386603 | 1,045 | 42 | 79 | 24.880952 | 0.792512 | 0.083254 | 0 | 0 | 0 | 0 | 0.034737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.032258 | 0 | 0.258065 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
747ef7880794c3ef33f57ad1412aece6844cc7a6 | 4,661 | py | Python | facebook/messenger/hello-world/webhook.py | imsardine/learning | 925841ddd93d60c740a62e12d9f57ef15b6e0a20 | [
"MIT"
] | null | null | null | facebook/messenger/hello-world/webhook.py | imsardine/learning | 925841ddd93d60c740a62e12d9f57ef15b6e0a20 | [
"MIT"
] | null | null | null | facebook/messenger/hello-world/webhook.py | imsardine/learning | 925841ddd93d60c740a62e12d9f57ef15b6e0a20 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from flask import Flask, request, abort, jsonify
import requests
SEND_API = 'https://graph.facebook.com/v2.6/me/messages'
WEBHOOK_VERIFY_TOKEN = os.environ['WEBHOOK_VERIFY_TOKEN']
PAGE_ACCESS_TOKEN = os.environ['PAGE_ACCESS_TOKEN']
APP_SECRET = os.environ['APP_SECRET']
app = Flask(__... | 34.272059 | 87 | 0.488307 | 451 | 4,661 | 4.840355 | 0.286031 | 0.051306 | 0.045809 | 0.050389 | 0.288136 | 0.223546 | 0.165827 | 0.130096 | 0.096198 | 0.096198 | 0 | 0.005287 | 0.391332 | 4,661 | 135 | 88 | 34.525926 | 0.764188 | 0.027676 | 0 | 0.173913 | 0 | 0 | 0.221092 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 1 | 0.069565 | false | 0.008696 | 0.026087 | 0.008696 | 0.130435 | 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 |
747f3e4104e555a4cdac60485eb1931d3dd4f55a | 18,847 | py | Python | custom_components/midea_dehumidifier_lan/config_flow.py | drthanwho/homeassistant-midea-dehumidifier-lan | b22c609bf07fd540ffa3a3ff28aaa2a184578b69 | [
"MIT"
] | null | null | null | custom_components/midea_dehumidifier_lan/config_flow.py | drthanwho/homeassistant-midea-dehumidifier-lan | b22c609bf07fd540ffa3a3ff28aaa2a184578b69 | [
"MIT"
] | null | null | null | custom_components/midea_dehumidifier_lan/config_flow.py | drthanwho/homeassistant-midea-dehumidifier-lan | b22c609bf07fd540ffa3a3ff28aaa2a184578b69 | [
"MIT"
] | null | null | null | """Config flow for Midea Dehumidifier (Local) integration."""
from __future__ import annotations
import ipaddress
import logging
from typing import Any, Final
from homeassistant import data_entry_flow
from homeassistant.config_entries import ConfigFlow
from homeassistant.const import (
CONF_API_VERSION,
CONF_... | 36.314066 | 88 | 0.607205 | 2,029 | 18,847 | 5.375062 | 0.120749 | 0.033009 | 0.022006 | 0.029342 | 0.404915 | 0.30121 | 0.219879 | 0.161287 | 0.128461 | 0.108839 | 0 | 0.000694 | 0.312092 | 18,847 | 518 | 89 | 36.38417 | 0.840494 | 0.044729 | 0 | 0.284738 | 0 | 0 | 0.030973 | 0.003667 | 0 | 0 | 0 | 0 | 0.009112 | 1 | 0.022779 | false | 0.045558 | 0.034169 | 0.009112 | 0.143508 | 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 |
74858fe3b513ef3751cf3b9d1d2671162ca352a5 | 1,136 | py | Python | setup.py | abuvanth/framework-identifier | 0619b1831bf29eaabdb8b7a0ef1abfd2328b39f9 | [
"MIT"
] | null | null | null | setup.py | abuvanth/framework-identifier | 0619b1831bf29eaabdb8b7a0ef1abfd2328b39f9 | [
"MIT"
] | null | null | null | setup.py | abuvanth/framework-identifier | 0619b1831bf29eaabdb8b7a0ef1abfd2328b39f9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import setuptools,os
with open("README.md", "r") as fh:
long_description = fh.read()
thelibFolder = os.path.dirname(os.path.realpath(__file__))
requirementPath = thelibFolder + '/requirements.txt'
install_requires = [] # Examples: ["gunicorn", "docutils>=0.3", "lxml==0... | 34.424242 | 78 | 0.680458 | 127 | 1,136 | 5.944882 | 0.661417 | 0.07947 | 0.050331 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010493 | 0.161092 | 1,136 | 32 | 79 | 35.5 | 0.781742 | 0.085387 | 0 | 0 | 0 | 0 | 0.295367 | 0.02027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 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 |
74859fe61f59a2e68fef51e02980d620f6fd3fff | 4,089 | py | Python | convert.py | FlorianPoot/Faroad-PnP | aa31ce80f8a3888a903eac92827e7aef6c58dfe3 | [
"MIT"
] | null | null | null | convert.py | FlorianPoot/Faroad-PnP | aa31ce80f8a3888a903eac92827e7aef6c58dfe3 | [
"MIT"
] | null | null | null | convert.py | FlorianPoot/Faroad-PnP | aa31ce80f8a3888a903eac92827e7aef6c58dfe3 | [
"MIT"
] | null | null | null | import math
import sqlite3
import re
DATABASE_PATH = "line1.db"
class Convert:
model_altium = {"desc": 0, "designator": (1, 10), "position": (2, 3), "rotation": 9}
model_kicad = {"desc": 0, "designator": (1, 2), "position": (3, 4), "rotation": 5}
model_mnt = {"desc": 0, "designator": (4, 5), "position":... | 32.452381 | 118 | 0.512106 | 531 | 4,089 | 3.868173 | 0.278719 | 0.048199 | 0.035054 | 0.054528 | 0.133398 | 0.08666 | 0.070107 | 0.056475 | 0.056475 | 0.056475 | 0 | 0.018162 | 0.32673 | 4,089 | 125 | 119 | 32.712 | 0.727933 | 0.079237 | 0 | 0.0625 | 0 | 0.0125 | 0.127375 | 0.031041 | 0 | 0 | 0 | 0.008 | 0 | 1 | 0.0625 | false | 0 | 0.0375 | 0 | 0.2125 | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7488b095e308da429d77f9667247659a77a3caeb | 10,490 | py | Python | src/device/Device.py | Electronya/PirBlaster | 804b86b2699183c40f2157cba0e151bec9d4725a | [
"MIT"
] | 1 | 2020-11-02T09:37:43.000Z | 2020-11-02T09:37:43.000Z | src/device/Device.py | Electronya/PirBlasterBackend | 804b86b2699183c40f2157cba0e151bec9d4725a | [
"MIT"
] | 1 | 2021-06-26T14:56:31.000Z | 2021-06-26T14:56:31.000Z | src/device/Device.py | Electronya/PirBlasterBackend | 804b86b2699183c40f2157cba0e151bec9d4725a | [
"MIT"
] | 1 | 2020-11-02T09:34:33.000Z | 2020-11-02T09:34:33.000Z | from logging import Logger
import paho.mqtt.client as mqtt
from ircodec.command import CommandSet
import os
from exceptions import CommandNotFound, \
CommandFileAccess
class Device():
# Constants
STATUS_TOPIC = 'status'
CMD_TOPIC = 'command'
RESULT_TOPIC = 'result'
ONLINE_MSG = 'ONLINE'
... | 33.301587 | 120 | 0.538418 | 1,012 | 10,490 | 5.504941 | 0.211462 | 0.052055 | 0.03231 | 0.025848 | 0.210734 | 0.202118 | 0.148627 | 0.122061 | 0.112368 | 0.095136 | 0 | 0.001053 | 0.366444 | 10,490 | 314 | 121 | 33.407643 | 0.837195 | 0.250906 | 0 | 0.097222 | 0 | 0 | 0.149661 | 0.029874 | 0 | 0 | 0 | 0.003185 | 0 | 1 | 0.131944 | false | 0.034722 | 0.034722 | 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 |
748b0cd71a8c5de3ca15b5e64c2515f58ee12902 | 5,459 | py | Python | hrssCalcbulk from folder of .fit files.py | Emberflurry/Bulk-HRSS-TSS-calc-from-Garmin-.fitfiles | d82f064ee0a97b2d826f434b5a21e8869c090e17 | [
"MIT"
] | 2 | 2021-08-21T14:05:45.000Z | 2022-03-26T02:22:02.000Z | hrssCalcbulk from folder of .fit files.py | Emberflurry/Bulk-HRSS-TSS-calc-from-Garmin-.fitfiles | d82f064ee0a97b2d826f434b5a21e8869c090e17 | [
"MIT"
] | 1 | 2021-07-19T17:45:13.000Z | 2021-07-19T19:18:07.000Z | hrssCalcbulk from folder of .fit files.py | Emberflurry/Bulk-HRSS-TSS-calc-from-Garmin-.fitfiles | d82f064ee0a97b2d826f434b5a21e8869c090e17 | [
"MIT"
] | null | null | null | import os
import datetime
from fitparse import *
import pandas as pd
import numpy as np
from tqdm import tqdm
from datetime import datetime
import re
# import matplotlib.pyplot as plt (not needed I guess)
directory = 'fitfiles' # may want to make this more flexible--ie: not just in the directory of the code...works ... | 35.914474 | 179 | 0.63235 | 732 | 5,459 | 4.621585 | 0.382514 | 0.018623 | 0.008868 | 0.013006 | 0.073603 | 0.023056 | 0.013006 | 0 | 0 | 0 | 0 | 0.01697 | 0.265983 | 5,459 | 151 | 180 | 36.152318 | 0.827302 | 0.328082 | 0 | 0.0625 | 0 | 0 | 0.046465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052083 | false | 0 | 0.083333 | 0 | 0.177083 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
748c84a6a78daf32f1db550d0822cdb68bd66142 | 1,908 | py | Python | textquote.py | patmanteau/panflutist | 74e56fe6b6873015cfba766bb61277d6d81bbece | [
"BSD-3-Clause"
] | null | null | null | textquote.py | patmanteau/panflutist | 74e56fe6b6873015cfba766bb61277d6d81bbece | [
"BSD-3-Clause"
] | null | null | null | textquote.py | patmanteau/panflutist | 74e56fe6b6873015cfba766bb61277d6d81bbece | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
r"""
Panflute filter supporting \textquote and \foreigntextquote in LaTeX
Issues:
- Nested parens with pandoc-citeproc
Usage:
- Use Pandoc markdown bracketed Spans:
- [Ganz Gallien ist von den Römern besetzt]{.textquote cite="[vgl. @Goscinny_Asterix_1967, 1\psqq]"}
- [Toute la Gau... | 28.058824 | 135 | 0.559224 | 213 | 1,908 | 4.896714 | 0.441315 | 0.042186 | 0.040268 | 0.042186 | 0.113135 | 0.059444 | 0.059444 | 0 | 0 | 0 | 0 | 0.008154 | 0.292977 | 1,908 | 67 | 136 | 28.477612 | 0.765011 | 0.271488 | 0 | 0.2 | 0 | 0 | 0.196816 | 0.015919 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.05 | 0.05 | 0.025 | 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 |
748cbeedaa4ac6fe4d023634af107928994f029c | 335 | py | Python | sandbox/gff/fixit.py | molecules/bio | 2a86a931162be47beca4d7bf73b2b3978f3ba402 | [
"MIT"
] | 28 | 2020-11-28T01:18:16.000Z | 2022-03-25T16:42:53.000Z | sandbox/gff/fixit.py | molecules/bio | 2a86a931162be47beca4d7bf73b2b3978f3ba402 | [
"MIT"
] | 3 | 2021-09-28T11:52:07.000Z | 2022-03-22T07:47:46.000Z | sandbox/gff/fixit.py | molecules/bio | 2a86a931162be47beca4d7bf73b2b3978f3ba402 | [
"MIT"
] | 8 | 2020-12-01T17:02:26.000Z | 2022-02-14T16:57:46.000Z | """
Adds version number sequence id of a GFF file.
"""
import sys
ACC=sys.argv[1]
VER=sys.argv[2]
for line in sys.stdin:
line = line.strip()
elems = line.split()
if elems and elems[0] == ACC:
elems[0] = f'{elems[0]}.{VER}'
if line.startswith("#"):
print (line)
else:
print("\... | 20.9375 | 46 | 0.570149 | 52 | 335 | 3.673077 | 0.615385 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01992 | 0.250746 | 335 | 16 | 47 | 20.9375 | 0.741036 | 0.137313 | 0 | 0 | 0 | 0 | 0.067376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7492f98aa56400f8ae0d4988b98264efada3bc27 | 2,010 | py | Python | rstobj/directives/toc.py | MacHu-GWU/rstobj-project | 40601f08e9e7ee2df5c514af04b040f61f76ed78 | [
"MIT"
] | null | null | null | rstobj/directives/toc.py | MacHu-GWU/rstobj-project | 40601f08e9e7ee2df5c514af04b040f61f76ed78 | [
"MIT"
] | null | null | null | rstobj/directives/toc.py | MacHu-GWU/rstobj-project | 40601f08e9e7ee2df5c514af04b040f61f76ed78 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
table of content directive.
"""
import attr
from .base import Directive
@attr.s
class TableOfContent(Directive):
"""
``.. contents::`` directive.
parameter definition see here: http://docutils.sourceforge.net/docs/ref/rst/directives.html#table-of-contents
:param title: ... | 25.769231 | 113 | 0.595025 | 208 | 2,010 | 5.706731 | 0.399038 | 0.070767 | 0.043808 | 0.042965 | 0.203033 | 0.16765 | 0.16765 | 0.16765 | 0.121314 | 0.121314 | 0 | 0.002046 | 0.270647 | 2,010 | 77 | 114 | 26.103896 | 0.80764 | 0.389055 | 0 | 0.057143 | 0 | 0 | 0.088022 | 0.021779 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.057143 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7493ca43323db77c43ed2fc83412e3ad722c32a7 | 3,256 | py | Python | StaffPage.py | yurunyang1998/XUPT_- | 415c20550b54914b1206cfa3b83ddbe8260e7a6f | [
"MIT"
] | null | null | null | StaffPage.py | yurunyang1998/XUPT_- | 415c20550b54914b1206cfa3b83ddbe8260e7a6f | [
"MIT"
] | null | null | null | StaffPage.py | yurunyang1998/XUPT_- | 415c20550b54914b1206cfa3b83ddbe8260e7a6f | [
"MIT"
] | null | null | null |
from flask import *
import databaseModel
from functools import wraps
import time
bp = Blueprint("StaffPage", __name__, url_prefix='/StaffPage')
def login_required(func):
@wraps(func)
def wrapper(*args, **kwargs):
UserName = session.get('UserName')
if(UserName is not None):
g.Use... | 32.56 | 138 | 0.635749 | 312 | 3,256 | 6.519231 | 0.314103 | 0.06293 | 0.044739 | 0.051622 | 0.377581 | 0.333333 | 0.333333 | 0.333333 | 0.333333 | 0.247788 | 0 | 0.00409 | 0.249079 | 3,256 | 99 | 139 | 32.888889 | 0.827812 | 0.04914 | 0 | 0.276316 | 0 | 0 | 0.06252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.052632 | 0 | 0.223684 | 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 |
7493cdea568afe3db8cc36c7efb7d3a24d08c8e1 | 1,849 | py | Python | daily_problems/problem_101_to_200/problem_131.py | rrwt/daily-coding-challenge | b16fc365fd142ebab429e605cb146c8bb0bc97a2 | [
"MIT"
] | 1 | 2019-04-18T03:29:02.000Z | 2019-04-18T03:29:02.000Z | daily_problems/problem_101_to_200/problem_131.py | rrwt/daily-coding-challenge | b16fc365fd142ebab429e605cb146c8bb0bc97a2 | [
"MIT"
] | null | null | null | daily_problems/problem_101_to_200/problem_131.py | rrwt/daily-coding-challenge | b16fc365fd142ebab429e605cb146c8bb0bc97a2 | [
"MIT"
] | null | null | null | """
Given the head to a singly linked list, where each node also has a “random” pointer
that points to anywhere in the linked list, deep clone the list.
"""
from typing import Tuple
class Node:
def __init__(self, data: int) -> None:
self.data = data
self.next = None
self.random = None
de... | 26.042254 | 83 | 0.622499 | 259 | 1,849 | 4.332046 | 0.254826 | 0.171123 | 0.096257 | 0.071301 | 0.171123 | 0.153298 | 0.039216 | 0.039216 | 0 | 0 | 0 | 0.004464 | 0.273121 | 1,849 | 70 | 84 | 26.414286 | 0.830357 | 0.161168 | 0 | 0.155556 | 0 | 0 | 0.031537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.022222 | 0 | 0.111111 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
749446711702bf00c7f0f56b3ec4b6af7960f483 | 1,095 | py | Python | view/basev64/__init__.py | desktophzj/wolverine-tkinter | 8e499c877ba7f5da11e63e30ecb25d54f6f3b6e9 | [
"Apache-2.0"
] | null | null | null | view/basev64/__init__.py | desktophzj/wolverine-tkinter | 8e499c877ba7f5da11e63e30ecb25d54f6f3b6e9 | [
"Apache-2.0"
] | null | null | null | view/basev64/__init__.py | desktophzj/wolverine-tkinter | 8e499c877ba7f5da11e63e30ecb25d54f6f3b6e9 | [
"Apache-2.0"
] | null | null | null | import tkinter as tk
from tkinter import ttk
raw_data_label_y_location = 20
raw_data_entry_location = raw_data_label_y_location + 20
encode_button_location = raw_data_entry_location + 20
decode_button_location = encode_button_location + 20
base64_data_label_y_location = decode_button_location + 20
base64_data_entry_y_... | 33.181818 | 64 | 0.699543 | 172 | 1,095 | 4.116279 | 0.215116 | 0.09887 | 0.076271 | 0.084746 | 0.536723 | 0.237288 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0.207306 | 1,095 | 32 | 65 | 34.21875 | 0.735023 | 0.013699 | 0 | 0 | 0 | 0 | 0.028784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.208333 | 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 |
749477a57d991a4da5d6d7c1a4757df77ab77a72 | 3,307 | py | Python | research/cv/csd/src/edsr_slim.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/cv/csd/src/edsr_slim.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/cv/csd/src/edsr_slim.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 38.011494 | 112 | 0.629574 | 451 | 3,307 | 4.439024 | 0.292683 | 0.06993 | 0.083916 | 0.034965 | 0.286214 | 0.214785 | 0.147852 | 0.147852 | 0.102897 | 0.102897 | 0 | 0.010723 | 0.238585 | 3,307 | 86 | 113 | 38.453488 | 0.784353 | 0.213789 | 0 | 0.074074 | 0 | 0 | 0.002346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 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 |
7494c2f962bcdfe2ec84fe9915ae2232069d6c59 | 6,317 | py | Python | 1_prepare_data/docker/code/make_tfRecords.py | gianpd/amazon-sagemaker-tensorflow-object-detection-api | 80c654a9767bb26389db468c7e6df3300f2debb4 | [
"MIT-0"
] | null | null | null | 1_prepare_data/docker/code/make_tfRecords.py | gianpd/amazon-sagemaker-tensorflow-object-detection-api | 80c654a9767bb26389db468c7e6df3300f2debb4 | [
"MIT-0"
] | null | null | null | 1_prepare_data/docker/code/make_tfRecords.py | gianpd/amazon-sagemaker-tensorflow-object-detection-api | 80c654a9767bb26389db468c7e6df3300f2debb4 | [
"MIT-0"
] | null | null | null | import os
import sys
import json
from pathlib import Path
import pandas as pd
import random
import tensorflow as tf
import io
import argparse
from PIL import Image
from collections import namedtuple
from object_detection.utils import dataset_util, label_map_util
import logging
logging.basicConfig(strea... | 39.48125 | 104 | 0.614849 | 837 | 6,317 | 4.444444 | 0.253286 | 0.038441 | 0.023656 | 0.030108 | 0.214516 | 0.094086 | 0.03871 | 0.022043 | 0 | 0 | 0 | 0.004636 | 0.248852 | 6,317 | 160 | 105 | 39.48125 | 0.779347 | 0.040051 | 0 | 0.014925 | 0 | 0 | 0.228805 | 0.027068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.097015 | 0.007463 | 0.179104 | 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 |
74984e77e478676a74e3414a580cf3837bbf6e4c | 16,641 | py | Python | reinforcement_learning/q_learn.py | noderod/DARLMID | 5737dbe222ce5a5a847c1d0a8d1af64dda87e5b2 | [
"MIT"
] | null | null | null | reinforcement_learning/q_learn.py | noderod/DARLMID | 5737dbe222ce5a5a847c1d0a8d1af64dda87e5b2 | [
"MIT"
] | null | null | null | reinforcement_learning/q_learn.py | noderod/DARLMID | 5737dbe222ce5a5a847c1d0a8d1af64dda87e5b2 | [
"MIT"
] | null | null | null | """
SUMMARY
Reinforcement learning via q-learning on the provided data, using previous data if requested
"""
import argparse
import json
import random
import sys
import matplotlib.pyplot as plt
import numpy as np
import auxiliary as aux
from vehicle import Vehicle
# Sets seed for reproducibility
random.seed(0)
... | 36.654185 | 180 | 0.607656 | 2,287 | 16,641 | 4.136423 | 0.143857 | 0.004651 | 0.004757 | 0.006342 | 0.50518 | 0.463953 | 0.427907 | 0.383932 | 0.346934 | 0.32093 | 0 | 0.010339 | 0.261823 | 16,641 | 453 | 181 | 36.735099 | 0.759769 | 0.241151 | 0 | 0.262443 | 0 | 0 | 0.089313 | 0.005507 | 0 | 0 | 0 | 0 | 0.022624 | 1 | 0.00905 | false | 0 | 0.036199 | 0 | 0.049774 | 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 |
7499a0d47d4f28aa8fbfe508262da370434f71b2 | 12,260 | py | Python | src/sark110.py | EA4FRB/sark110-python | ff5ace7c0d71f9de48772cdb1cedb98f5c22df8a | [
"MIT"
] | 2 | 2019-09-03T18:43:53.000Z | 2019-11-06T18:26:23.000Z | src/sark110.py | EA4FRB/sark110-python | ff5ace7c0d71f9de48772cdb1cedb98f5c22df8a | [
"MIT"
] | 1 | 2020-04-03T22:59:18.000Z | 2020-04-29T16:17:02.000Z | src/sark110.py | EA4FRB/sark110-python | ff5ace7c0d71f9de48772cdb1cedb98f5c22df8a | [
"MIT"
] | 1 | 2019-09-05T16:40:55.000Z | 2019-09-05T16:40:55.000Z | # ---------------------------------------------------------
"""
This file is a part of the "SARK110 Antenna Vector Impedance Analyzer" software
MIT License
@author Copyright (c) 2020 Melchor Varela - EA4FRB
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and as... | 29.757282 | 112 | 0.49633 | 1,508 | 12,260 | 3.899204 | 0.215517 | 0.029932 | 0.019048 | 0.011224 | 0.331463 | 0.292347 | 0.264456 | 0.233163 | 0.188605 | 0.185884 | 0 | 0.072789 | 0.370228 | 12,260 | 411 | 113 | 29.829684 | 0.688771 | 0.258075 | 0 | 0.431159 | 0 | 0 | 0.017615 | 0 | 0 | 0 | 0.022865 | 0 | 0 | 1 | 0.076087 | false | 0 | 0.025362 | 0.021739 | 0.278986 | 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 |
749bf7c085175f0c77d7d99fa53fad97cc10c478 | 2,295 | py | Python | Utkarsh1.py | utkarsh7236/SCILLA | e11e4d753823ad522a1b3168283b6e6ffe3ea393 | [
"Apache-2.0"
] | null | null | null | Utkarsh1.py | utkarsh7236/SCILLA | e11e4d753823ad522a1b3168283b6e6ffe3ea393 | [
"Apache-2.0"
] | null | null | null | Utkarsh1.py | utkarsh7236/SCILLA | e11e4d753823ad522a1b3168283b6e6ffe3ea393 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import sqlite3
path = '/Users/Utkarsh/PycharmProjects/SCILLA/Experiments/circuits.db'
def select_all_tasks(conn):
"""
Query all rows in the tasks table
:param conn: the Connection object
:return:
"""
cur = conn.cursor()
cur.execute("SELECT * FROM tasks")
rows = cur.... | 21.650943 | 80 | 0.608715 | 277 | 2,295 | 4.891697 | 0.227437 | 0.035424 | 0.041328 | 0.039852 | 0.729889 | 0.673801 | 0.673801 | 0.558672 | 0.558672 | 0.526199 | 0 | 0.00537 | 0.269717 | 2,295 | 106 | 81 | 21.650943 | 0.803103 | 0.680174 | 0 | 0 | 0 | 0 | 0.186495 | 0.098071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.210526 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
749c75778c0228cfbbf366e87be5465e687bc993 | 1,839 | py | Python | inference.py | ShaneTian/Induction-Networks | 5785e13425e3c9020c8699402d546d018ec735bf | [
"Apache-2.0"
] | 5 | 2020-06-13T07:43:33.000Z | 2021-06-14T03:27:11.000Z | inference.py | ShaneTian/Induction-Networks | 5785e13425e3c9020c8699402d546d018ec735bf | [
"Apache-2.0"
] | 2 | 2020-06-15T04:53:18.000Z | 2020-10-24T12:37:27.000Z | inference.py | ShaneTian/Induction-Networks | 5785e13425e3c9020c8699402d546d018ec735bf | [
"Apache-2.0"
] | 1 | 2021-01-08T11:27:07.000Z | 2021-01-08T11:27:07.000Z | import argparse
import numpy as np
from paddle import fluid
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--model_path", type=str,
help="Path of __model__ and __params__")
parser.add_argument("--use_cuda", action="store_true")
args = parser.parse_args()
... | 35.365385 | 90 | 0.641109 | 248 | 1,839 | 4.455645 | 0.346774 | 0.090498 | 0.135747 | 0.070588 | 0.241629 | 0.241629 | 0.241629 | 0.124887 | 0.124887 | 0.070588 | 0 | 0.020759 | 0.240348 | 1,839 | 52 | 91 | 35.365385 | 0.770222 | 0.035889 | 0 | 0 | 0 | 0 | 0.079141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.076923 | 0 | 0.153846 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
749d83fb75da72d4575c40c6649383b7eedc9468 | 3,125 | py | Python | dynaban/pypot/callback.py | laukik-hase/imitation_of_human_arm_on_robotic_manipulator | 995beb1ab41597ca6cbecd0baecdef1ef13450f9 | [
"MIT"
] | 3 | 2021-11-13T16:54:31.000Z | 2021-11-13T20:50:18.000Z | dynaban/pypot/callback.py | laukik-hase/human_arm_imitation | 995beb1ab41597ca6cbecd0baecdef1ef13450f9 | [
"MIT"
] | null | null | null | dynaban/pypot/callback.py | laukik-hase/human_arm_imitation | 995beb1ab41597ca6cbecd0baecdef1ef13450f9 | [
"MIT"
] | null | null | null | import paho.mqtt.client as paho
import time
import Queue as queue
import json
import real_time_manipulator_math_utils
import pprint
pp = pprint.PrettyPrinter(indent=4)
# import rbdl
# import manip motion
def on_connect(client, userdata, flags, rc):
client.subscribe(topic, qos)
def on_message(client, userdata... | 26.939655 | 91 | 0.5984 | 365 | 3,125 | 4.983562 | 0.312329 | 0.034634 | 0.019791 | 0.036284 | 0.173722 | 0.090159 | 0.090159 | 0.090159 | 0.090159 | 0.090159 | 0 | 0.009005 | 0.28928 | 3,125 | 116 | 92 | 26.939655 | 0.809996 | 0.10144 | 0 | 0.220779 | 0 | 0 | 0.069027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025974 | false | 0 | 0.077922 | 0 | 0.103896 | 0.12987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
749f2f672fb718a35a7272b4f9459c0ee34795d3 | 4,679 | py | Python | emwiki/article/views.py | etmula/emwiki | e162a9976688d543f2e3bd71634913c14cdb9d54 | [
"MIT"
] | 2 | 2019-08-02T01:08:13.000Z | 2020-11-17T12:47:02.000Z | emwiki/article/views.py | g063ff/emwiki | a379b2b2863e9059eac014183cb94c39670e11a0 | [
"MIT"
] | 101 | 2019-07-29T07:44:56.000Z | 2022-03-31T04:11:04.000Z | emwiki/article/views.py | g063ff/emwiki | a379b2b2863e9059eac014183cb94c39670e11a0 | [
"MIT"
] | 11 | 2019-07-24T02:37:35.000Z | 2021-12-09T05:24:31.000Z | import os
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core import serializers
from django.http import HttpResponse, JsonResponse, Http404
from django.shortcuts import render, get_object_or_404
from django.urls import reverse, reverse_lazy
from django.utils.dec... | 37.432 | 99 | 0.63069 | 546 | 4,679 | 5.223443 | 0.234432 | 0.065568 | 0.024544 | 0.041725 | 0.342216 | 0.301893 | 0.222651 | 0.084151 | 0.037868 | 0.037868 | 0 | 0.004587 | 0.254542 | 4,679 | 124 | 100 | 37.733871 | 0.813073 | 0.010259 | 0 | 0.173077 | 0 | 0 | 0.118168 | 0.004537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.105769 | 0.028846 | 0.346154 | 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 |
749f6d74baed280144d534ef8d72acec4e74fc71 | 3,131 | py | Python | kivy3/objects/lines.py | sb-blueprint/kivy3 | e5d6c5758b610503109eb2c788bcff4f3410bd06 | [
"MIT"
] | null | null | null | kivy3/objects/lines.py | sb-blueprint/kivy3 | e5d6c5758b610503109eb2c788bcff4f3410bd06 | [
"MIT"
] | null | null | null | kivy3/objects/lines.py | sb-blueprint/kivy3 | e5d6c5758b610503109eb2c788bcff4f3410bd06 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2013 Niko Skrypnik
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... | 36.406977 | 77 | 0.63526 | 404 | 3,131 | 4.831683 | 0.423267 | 0.045082 | 0.01332 | 0.008197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015604 | 0.283615 | 3,131 | 85 | 78 | 36.835294 | 0.854659 | 0.372724 | 0 | 0.074074 | 0 | 0 | 0.06359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.12963 | 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 |
749fd6335e4af9798ed3bf9db18e89282313e71e | 1,262 | py | Python | core/tools/pencil.py | INTJT/conway | 7d3165382b3a691163cae30e33db97c544c043a6 | [
"MIT"
] | null | null | null | core/tools/pencil.py | INTJT/conway | 7d3165382b3a691163cae30e33db97c544c043a6 | [
"MIT"
] | null | null | null | core/tools/pencil.py | INTJT/conway | 7d3165382b3a691163cae30e33db97c544c043a6 | [
"MIT"
] | null | null | null | from core.tools.tool import Tool
from core.editor import Editor
class Pencil(Tool):
def __init__(self, button, board):
super(Pencil, self).__init__(button, board)
self._changed = set()
Editor()["pre-pencil"] = board.copy()
self._fill = button
def _need_change(self, value):
... | 25.24 | 102 | 0.532488 | 165 | 1,262 | 3.915152 | 0.278788 | 0.018576 | 0.069659 | 0.04644 | 0.123839 | 0.123839 | 0 | 0 | 0 | 0 | 0 | 0.006046 | 0.344691 | 1,262 | 49 | 103 | 25.755102 | 0.775091 | 0 | 0 | 0.0625 | 0 | 0 | 0.035658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0.0625 | 0.34375 | 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 |
74a12178988d7dbec19f36ed51efbc1d85879c24 | 3,248 | py | Python | pinsey/thread/LikesBotThread.py | RailKill/Pinsey | 72a283e6c5683b27918b511d80e45c3af4e67539 | [
"MIT"
] | 3 | 2021-02-01T06:47:06.000Z | 2022-01-09T05:54:35.000Z | pinsey/thread/LikesBotThread.py | RailKill/Pinsey | 72a283e6c5683b27918b511d80e45c3af4e67539 | [
"MIT"
] | 4 | 2019-10-23T09:52:36.000Z | 2022-03-11T23:17:23.000Z | pinsey/thread/LikesBotThread.py | RailKill/Pinsey | 72a283e6c5683b27918b511d80e45c3af4e67539 | [
"MIT"
] | null | null | null | import logging
from pynder import errors
from random import randint
from PyQt5 import QtCore
class LikesBotThread(QtCore.QThread):
"""
This is a QThread which runs in the background as a PyQt Signal. It emits the matches object.
To access the matches object, you need to retrieve from the signal, w... | 47.764706 | 112 | 0.591441 | 375 | 3,248 | 4.994667 | 0.4 | 0.046983 | 0.029899 | 0.041644 | 0.107848 | 0.025627 | 0 | 0 | 0 | 0 | 0 | 0.007889 | 0.336515 | 3,248 | 67 | 113 | 48.477612 | 0.861253 | 0.248768 | 0 | 0.106383 | 0 | 0 | 0.106672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.085106 | 0 | 0.191489 | 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 |
74a2534ab9e9ba29bdec5c71f0832442026ad789 | 13,081 | py | Python | train.py | SkyLLine/Inception-v4-in-mindspore | 9a23261252baad27cbd7bc8028087e4bba48b318 | [
"MIT"
] | 1 | 2020-12-23T12:31:08.000Z | 2020-12-23T12:31:08.000Z | train.py | SkyLLine/Inception-v4-in-mindspore | 9a23261252baad27cbd7bc8028087e4bba48b318 | [
"MIT"
] | null | null | null | train.py | SkyLLine/Inception-v4-in-mindspore | 9a23261252baad27cbd7bc8028087e4bba48b318 | [
"MIT"
] | null | null | null | import mindspore as ms
import mindspore.nn as nn
import mindspore.ops.operations as operator
import os
from lr_generator import get_lr
from CrossEntropy import CrossEntropy
import argparse
from inception_A import inception_A
from inception_B import inception_B
import numpy as np
from inception_C import inception_C
from... | 39.759878 | 125 | 0.690467 | 1,776 | 13,081 | 4.866554 | 0.193131 | 0.007868 | 0.022215 | 0.024297 | 0.413514 | 0.385746 | 0.346292 | 0.292607 | 0.264144 | 0.25188 | 0 | 0.018462 | 0.200826 | 13,081 | 329 | 126 | 39.759878 | 0.808303 | 0.240272 | 0 | 0.306604 | 0 | 0.018868 | 0.066019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.216981 | 0 | 0.311321 | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74a4b609cbd07e7dfd15a960bb342cacfe14d3fb | 2,034 | py | Python | setup.py | Jumpscale/ays9 | 63bd414ff06372ba885c55eec528f427e63bcbe1 | [
"Apache-2.0"
] | 4 | 2017-06-07T08:10:06.000Z | 2017-11-10T02:20:38.000Z | setup.py | Jumpscale/ays9 | 63bd414ff06372ba885c55eec528f427e63bcbe1 | [
"Apache-2.0"
] | 242 | 2017-05-18T10:51:48.000Z | 2019-09-18T15:09:47.000Z | setup.py | Jumpscale/ays9 | 63bd414ff06372ba885c55eec528f427e63bcbe1 | [
"Apache-2.0"
] | 5 | 2017-06-16T15:43:25.000Z | 2017-09-29T12:48:06.000Z | from setuptools import setup, find_packages
from setuptools.command.install import install as _install
from setuptools.command.develop import develop as _develop
import os
def _post_install(libname, libpath):
from js9 import j
# add this plugin to the config
c = j.core.state.configGet('plugins', defval={... | 25.746835 | 67 | 0.629302 | 243 | 2,034 | 5.123457 | 0.45679 | 0.028916 | 0.043373 | 0.060241 | 0.24257 | 0.24257 | 0.24257 | 0.24257 | 0.24257 | 0.24257 | 0 | 0.016731 | 0.235988 | 2,034 | 78 | 68 | 26.076923 | 0.784427 | 0.037365 | 0 | 0.237288 | 0 | 0 | 0.187308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.118644 | 0 | 0.20339 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74a63aca3e7e9199c9e3c65398a87cb9cc5d927d | 12,246 | py | Python | nettruyen_downloader_script.py | quantrancse/nettruyen-downloader-script | 1ff5d67fc3a99009385fd3ab5976c582246a2783 | [
"MIT"
] | 4 | 2020-09-15T16:29:53.000Z | 2022-02-18T17:36:46.000Z | nettruyen_downloader_script.py | quantrancse/nettruyen-downloader-script | 1ff5d67fc3a99009385fd3ab5976c582246a2783 | [
"MIT"
] | null | null | null | nettruyen_downloader_script.py | quantrancse/nettruyen-downloader-script | 1ff5d67fc3a99009385fd3ab5976c582246a2783 | [
"MIT"
] | 4 | 2021-07-06T04:26:15.000Z | 2022-01-07T05:55:46.000Z | import argparse
import signal
import sys
import time
from concurrent.futures import ThreadPoolExecutor
from os import mkdir
from os.path import isdir
from urllib.parse import urlparse
import requests
from bs4 import BeautifulSoup
HEADERS = {
'Connection': 'keep-alive',
'User-Agent': 'Mozilla/5.0... | 38.87619 | 153 | 0.565981 | 1,400 | 12,246 | 4.683571 | 0.180714 | 0.043923 | 0.046363 | 0.024554 | 0.295715 | 0.230441 | 0.140003 | 0.077322 | 0.049108 | 0.049108 | 0 | 0.011773 | 0.33415 | 12,246 | 314 | 154 | 39 | 0.792372 | 0.020578 | 0 | 0.173387 | 0 | 0.008065 | 0.137532 | 0.013967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068548 | false | 0 | 0.040323 | 0.004032 | 0.165323 | 0.052419 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74a8fdbcc478237889a10e97a2c4357eca96a428 | 3,017 | py | Python | tenff/__main__.py | rr-/10ff | 9be5cf03eda09f1fe0920d67d9e09d4886c34ef3 | [
"WTFPL"
] | 53 | 2017-09-30T16:05:39.000Z | 2022-02-04T08:19:26.000Z | tenff/__main__.py | rr-/10ff | 9be5cf03eda09f1fe0920d67d9e09d4886c34ef3 | [
"WTFPL"
] | 2 | 2017-12-08T10:07:42.000Z | 2020-05-20T21:46:27.000Z | tenff/__main__.py | rr-/10ff | 9be5cf03eda09f1fe0920d67d9e09d4886c34ef3 | [
"WTFPL"
] | 2 | 2019-12-18T04:23:10.000Z | 2020-09-25T10:31:04.000Z | """Main executable."""
import argparse
import asyncio
from tenff.game import GameSettings, run_game
from tenff.terminal import TerminalInputHandler
from tenff.util import CORPORA_PATH, get_corpus_path, parse_corpus
DEFAULT_TIME = 60
PROLOG = (
"A certain typing contest site spin-off in CLI, without all the "
... | 26.699115 | 78 | 0.608552 | 341 | 3,017 | 5.202346 | 0.410557 | 0.040586 | 0.047914 | 0.019166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004204 | 0.290355 | 3,017 | 112 | 79 | 26.9375 | 0.824381 | 0.121975 | 0 | 0.088608 | 0 | 0 | 0.152496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037975 | false | 0 | 0.063291 | 0 | 0.164557 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
74a90fbaab5a1695a359f7f2248d252b5d5d1dbb | 2,248 | py | Python | python-algorithm/leetcode/problem_76.py | isudox/nerd-algorithm | c1fbe153953cf3fc24395f75d102016fdf9ea0fa | [
"MIT"
] | 5 | 2017-06-11T09:19:34.000Z | 2019-01-16T16:58:31.000Z | python-algorithm/leetcode/problem_76.py | isudox/leetcode-solution | 60085e64deaf396a171367affc94b18114565c43 | [
"MIT"
] | 5 | 2020-03-22T13:53:54.000Z | 2020-03-23T08:49:35.000Z | python-algorithm/leetcode/problem_76.py | isudox/nerd-algorithm | c1fbe153953cf3fc24395f75d102016fdf9ea0fa | [
"MIT"
] | 1 | 2019-03-02T15:50:43.000Z | 2019-03-02T15:50:43.000Z | """76. Minimum Window Substring
https://leetcode.com/problems/minimum-window-substring/
Given a string S and a string T, find the minimum window in S which will
contain all the characters in T in complexity O(n).
Example:
Input: S = "ADOBECODEBANC", T = "ABC"
Output: "BANC"
Note:
If there is no such window in S that... | 33.552239 | 77 | 0.479982 | 289 | 2,248 | 3.584775 | 0.276817 | 0.054054 | 0.03861 | 0.054054 | 0.299228 | 0.260618 | 0.233591 | 0.233591 | 0.233591 | 0.233591 | 0 | 0.012058 | 0.446619 | 2,248 | 66 | 78 | 34.060606 | 0.82074 | 0.25089 | 0 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0 | 0 | 0.133333 | 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 |
74ab68465c97b9a682ec0c65d4118ab45c6835b2 | 4,138 | py | Python | inventory/urls.py | common1/newassetcms | 65eee3c2ed9dac4cc56bfff863a6cbaff9830d26 | [
"MIT"
] | null | null | null | inventory/urls.py | common1/newassetcms | 65eee3c2ed9dac4cc56bfff863a6cbaff9830d26 | [
"MIT"
] | 7 | 2020-06-05T20:43:46.000Z | 2022-01-13T01:14:21.000Z | inventory/urls.py | common1/newassetcms | 65eee3c2ed9dac4cc56bfff863a6cbaff9830d26 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'inventory'
urlpatterns = [
path('assettypes/',
views.AssetTypesIndexView.as_view(), name='index_assettypes'),
path('assettypes/create/',
views.AssetTypeCreateView.as_view(), name='create_assettype'),
path('assettypes/update/<in... | 45.977778 | 80 | 0.694538 | 421 | 4,138 | 6.631829 | 0.175772 | 0.073066 | 0.121777 | 0.037607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149106 | 4,138 | 89 | 81 | 46.494382 | 0.792957 | 0 | 0 | 0 | 0 | 0 | 0.361044 | 0.182939 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025316 | 0 | 0.025316 | 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 |
77639b8b9fd4e3c9cd0c8b422d0c68a3e323eb36 | 239 | py | Python | Python/Transpose and Flatten/Solution.py | chessmastersan/HackerRank | 850319e6f79e7473afbb847d28edde7b2cdfc37d | [
"MIT"
] | 2 | 2019-08-07T19:58:20.000Z | 2019-08-27T00:06:09.000Z | Python/Transpose and Flatten/Solution.py | chessmastersan/HackerRank | 850319e6f79e7473afbb847d28edde7b2cdfc37d | [
"MIT"
] | 1 | 2020-06-11T19:09:48.000Z | 2020-06-11T19:09:48.000Z | Python/Transpose and Flatten/Solution.py | chessmastersan/HackerRank | 850319e6f79e7473afbb847d28edde7b2cdfc37d | [
"MIT"
] | 7 | 2019-08-27T00:06:11.000Z | 2021-12-11T10:01:45.000Z | #author SANKALP SAXENA
import numpy
size = input().split(" ")
n = int(size[0])
l = []
for i in range(0, n):
a = input().split(" ")
l.append(a)
arr = numpy.array(l, int)
trans = arr.transpose()
print(trans)
print(arr.flatten())
| 15.933333 | 26 | 0.606695 | 38 | 239 | 3.815789 | 0.631579 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.192469 | 239 | 14 | 27 | 17.071429 | 0.740933 | 0.087866 | 0 | 0 | 0 | 0 | 0.009302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7763bc166d4d7ffcd7c15717edaf06b9a61c5b0b | 1,564 | py | Python | src/service.py | wisrovi/AWS_DIA_17NOV | bfe734197dd9658504ecea6a9f89162877d80fdf | [
"MIT"
] | null | null | null | src/service.py | wisrovi/AWS_DIA_17NOV | bfe734197dd9658504ecea6a9f89162877d80fdf | [
"MIT"
] | null | null | null | src/service.py | wisrovi/AWS_DIA_17NOV | bfe734197dd9658504ecea6a9f89162877d80fdf | [
"MIT"
] | null | null | null | from flask import Flask, app, jsonify, request, redirect, make_response
from leer_modelo import predecir
ALLOWED = ['png','jpg', 'jpeg', 'gif']
def evaluar_extension_archivo(filename):
tiene_punto = "." in filename
if tiene_punto:
extension_archivo = filename.split(".", 1)[1].lower()
if extensi... | 27.928571 | 71 | 0.642583 | 189 | 1,564 | 5.100529 | 0.470899 | 0.082988 | 0.082988 | 0.058091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010788 | 0.22954 | 1,564 | 55 | 72 | 28.436364 | 0.789212 | 0.048593 | 0 | 0.052632 | 0 | 0 | 0.232323 | 0.034343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 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 |
77640065b3e76d426adcd9f96234a785912b54fb | 1,220 | py | Python | system/detection.py | syazanihussin/FLUX | 22a1885c9ff7ef82cd306e4c3544998a71027b5d | [
"MIT"
] | null | null | null | system/detection.py | syazanihussin/FLUX | 22a1885c9ff7ef82cd306e4c3544998a71027b5d | [
"MIT"
] | 1 | 2019-05-26T04:58:17.000Z | 2019-05-30T15:30:51.000Z | system/detection.py | syazanihussin/FLUX | 22a1885c9ff7ef82cd306e4c3544998a71027b5d | [
"MIT"
] | null | null | null | from interface import implements, Interface
from keras.models import load_model
class IDetection(Interface):
def detect_fake_news(self, type, news):
pass
class Detection(implements(IDetection)):
def detect_fake_news(self, type, news):
# load detection model
detection_model = self... | 25.957447 | 79 | 0.64918 | 142 | 1,220 | 5.323944 | 0.274648 | 0.092593 | 0.074074 | 0.084656 | 0.195767 | 0.195767 | 0.161376 | 0 | 0 | 0 | 0 | 0.004484 | 0.268852 | 1,220 | 46 | 80 | 26.521739 | 0.843049 | 0.07377 | 0 | 0.16 | 0 | 0 | 0.060391 | 0.041741 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.04 | 0.08 | 0 | 0.48 | 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 |
77650de3eab4c78cafaa8bab4bb47104bd26bb30 | 2,926 | py | Python | Spark-Example-FlightsData/flights_example.py | kiat/met-cs777 | 405aca20c8db4350a7a0d04607ff05f3c4e97c2f | [
"BSD-3-Clause"
] | 32 | 2020-07-02T00:51:13.000Z | 2022-03-31T22:31:30.000Z | Flight-Example/flights_example.py | pvkothapalli/MET-CS777 | 6825bec99581b04f9bcc328cdaa698faa2af7313 | [
"BSD-3-Clause"
] | 2 | 2021-02-17T00:42:23.000Z | 2021-02-18T17:28:38.000Z | Flight-Example/flights_example.py | pvkothapalli/MET-CS777 | 6825bec99581b04f9bcc328cdaa698faa2af7313 | [
"BSD-3-Clause"
] | 47 | 2020-07-04T15:29:15.000Z | 2022-03-25T05:08:17.000Z |
# https://s3.amazonaws.com/metcs777/flights.csv.bz2
# s3n://metcs777/flights.csv.bz2
# lines = sc.textFile("file:///home/kia/Data/Collected-Datasets/flight-delays/flight-delays/flights.csv")
lines = sc.textFile("s3://metcs777/flights.csv.bz2")
# Removing the Header Line from CSV file
linesHeader = lines.first()
he... | 31.12766 | 400 | 0.775803 | 449 | 2,926 | 4.973274 | 0.36971 | 0.025078 | 0.037618 | 0.025526 | 0.262875 | 0.21854 | 0.188088 | 0.188088 | 0.112853 | 0.112853 | 0 | 0.031127 | 0.132604 | 2,926 | 93 | 401 | 31.462366 | 0.8487 | 0.757348 | 0 | 0 | 0 | 0 | 0.049327 | 0.043348 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77678f260d8155b4fbe2ca23186e87d0ca0dde81 | 1,510 | py | Python | setup.py | farirat/rima | eb2165d972256c32d4859c3bf54c5e4b589d780f | [
"Apache-2.0"
] | 2 | 2016-05-07T10:09:29.000Z | 2016-06-10T05:36:20.000Z | setup.py | farirat/rima | eb2165d972256c32d4859c3bf54c5e4b589d780f | [
"Apache-2.0"
] | null | null | null | setup.py | farirat/rima | eb2165d972256c32d4859c3bf54c5e4b589d780f | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
import sys, os
version = '0.0'
setup(name='rima',
version=version,
description="Minimalist Python REST API Framework",
long_description="""\
Minimalist Python REST API Framework
""",
classifiers=[
"Development Status :: 1 - Planning",... | 34.318182 | 82 | 0.575497 | 140 | 1,510 | 6.128571 | 0.628571 | 0.060606 | 0.055944 | 0.06993 | 0.156177 | 0.100233 | 0 | 0 | 0 | 0 | 0 | 0.006458 | 0.282119 | 1,510 | 43 | 83 | 35.116279 | 0.785055 | 0.065563 | 0 | 0.1 | 0 | 0 | 0.514915 | 0.018466 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 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 |
7767ac0e64dfc02b7c55003a7ff7dca82f05c66d | 10,438 | py | Python | src/backend/aspen/workflows/nextstrain_run/export.py | chanzuckerberg/covidr | afe05d703d30ec18ac83944bfb551c313cb216c4 | [
"MIT"
] | 2 | 2021-01-13T18:37:20.000Z | 2021-01-16T02:17:38.000Z | src/backend/aspen/workflows/nextstrain_run/export.py | chanzuckerberg/covidr | afe05d703d30ec18ac83944bfb551c313cb216c4 | [
"MIT"
] | 16 | 2021-01-14T20:21:13.000Z | 2021-01-29T22:23:13.000Z | src/backend/aspen/workflows/nextstrain_run/export.py | chanzuckerberg/covidr | afe05d703d30ec18ac83944bfb551c313cb216c4 | [
"MIT"
] | null | null | null | import csv
import io
import json
from pathlib import Path
from typing import Any, Iterable, List, Mapping, MutableMapping, Set, Tuple
import click
from sqlalchemy import and_
from sqlalchemy.orm import aliased, joinedload, with_polymorphic
from aspen.config.config import Config
from aspen.database.connection import (... | 35.144781 | 91 | 0.627132 | 1,122 | 10,438 | 5.567736 | 0.213904 | 0.056027 | 0.024652 | 0.013446 | 0.245718 | 0.227789 | 0.191452 | 0.185369 | 0.171923 | 0.128382 | 0 | 0.001064 | 0.279651 | 10,438 | 296 | 92 | 35.263514 | 0.829765 | 0.079805 | 0 | 0.070313 | 0 | 0 | 0.087705 | 0.005214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011719 | false | 0 | 0.046875 | 0 | 0.0625 | 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 |
77685ce53cb05d06d03bc4a12c6065a439cae421 | 485 | py | Python | dictlearn_gpu/utils.py | mukheshpugal/dictlearn_gpu | 79265ddc439e2a406adbe7e505b1b6d61fa50d25 | [
"MIT"
] | null | null | null | dictlearn_gpu/utils.py | mukheshpugal/dictlearn_gpu | 79265ddc439e2a406adbe7e505b1b6d61fa50d25 | [
"MIT"
] | null | null | null | dictlearn_gpu/utils.py | mukheshpugal/dictlearn_gpu | 79265ddc439e2a406adbe7e505b1b6d61fa50d25 | [
"MIT"
] | null | null | null | import cupy as cp
import numpy as np
def to_gpu(mat):
if not isinstance(mat, cp.ndarray):
return cp.asarray(mat, dtype=cp.float32)
return mat
def dct_dict_1d(n_atoms, size):
dct = np.zeros((size, n_atoms))
for k in range(n_atoms):
basis = np.cos(np.arange(size) * k * n... | 22.045455 | 62 | 0.560825 | 75 | 485 | 3.533333 | 0.493333 | 0.090566 | 0.090566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012158 | 0.321649 | 485 | 21 | 63 | 23.095238 | 0.793313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7768c92d141b2480a0d707c158a88bcde5139d2f | 4,263 | py | Python | yaglm/opt/prox.py | ngierty/yaglm | 57e212b576af7c5c0f0d62f9d6ad2484b9e25f10 | [
"MIT"
] | 15 | 2021-10-19T15:00:12.000Z | 2022-03-24T22:24:54.000Z | yaglm/opt/prox.py | ngierty/yaglm | 57e212b576af7c5c0f0d62f9d6ad2484b9e25f10 | [
"MIT"
] | 13 | 2021-07-22T21:52:55.000Z | 2021-10-07T11:50:10.000Z | yaglm/opt/prox.py | ngierty/yaglm | 57e212b576af7c5c0f0d62f9d6ad2484b9e25f10 | [
"MIT"
] | 2 | 2021-11-12T18:45:12.000Z | 2021-12-14T14:57:42.000Z | import numpy as np
from yaglm.linalg_utils import euclid_norm
def soft_thresh(vec, thresh_vals):
"""
The soft thresholding operator.
Parameters
----------
vec: array-like
The values to threshold
thresh_vals: float, array-like
The thresholding values
Output
-------
... | 25.076471 | 172 | 0.604269 | 597 | 4,263 | 4.157454 | 0.268007 | 0.033844 | 0.058018 | 0.033844 | 0.311039 | 0.267123 | 0.257051 | 0.257051 | 0.239323 | 0.172442 | 0 | 0.017286 | 0.280788 | 4,263 | 169 | 173 | 25.224852 | 0.792237 | 0.726484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.041667 | 1 | 0.125 | false | 0 | 0.083333 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
77692efc43ca99a211134cc384641108b1111a00 | 902 | py | Python | HW-1.py | SESCNCFUARTYOM/repforkeys | a20b14f16f3dd0df4f95b9927855b77bde7ef8e3 | [
"MIT"
] | null | null | null | HW-1.py | SESCNCFUARTYOM/repforkeys | a20b14f16f3dd0df4f95b9927855b77bde7ef8e3 | [
"MIT"
] | null | null | null | HW-1.py | SESCNCFUARTYOM/repforkeys | a20b14f16f3dd0df4f95b9927855b77bde7ef8e3 | [
"MIT"
] | null | null | null | n, i, m, g, gg = 0, 0, 0, 0, 0
n = int(input())
if n > 1983:
while n > 1983:
n -= 60
m = n - 1923
else:
while n < 1983:
n += 60
m = n - 1983
g = (m // 12) + 1
gg = m % 12
result = ''
if g == 1:
result = 'зеленой'
elif g == 2:
result = 'красной'
elif g == 3:
resul... | 15.824561 | 30 | 0.473392 | 133 | 902 | 3.210526 | 0.345865 | 0.154567 | 0.021077 | 0.018735 | 0.070258 | 0.070258 | 0.070258 | 0 | 0 | 0 | 0 | 0.091681 | 0.347007 | 902 | 57 | 31 | 15.824561 | 0.633277 | 0 | 0 | 0.04 | 0 | 0 | 0.127353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
77694ac8b2dc5a16098243dd7f10b1803ad2cd33 | 1,961 | py | Python | App/workflow.py | dataminion/ScienceManager | 924e1de41aca56985d9e30750264eb995604f352 | [
"MIT"
] | null | null | null | App/workflow.py | dataminion/ScienceManager | 924e1de41aca56985d9e30750264eb995604f352 | [
"MIT"
] | null | null | null | App/workflow.py | dataminion/ScienceManager | 924e1de41aca56985d9e30750264eb995604f352 | [
"MIT"
] | null | null | null | #workflow
import sys
##python libraries
import argparse
import logging
import logging.config
##
## Internal libraries
from service.configuration import Configuration
from service.job import Job
from model.object import Object
from model.connection import ConnectionSettings
from model.workflow import *
class Program(o... | 30.169231 | 92 | 0.63743 | 249 | 1,961 | 4.86747 | 0.37751 | 0.037129 | 0.075083 | 0.021452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004046 | 0.243753 | 1,961 | 65 | 93 | 30.169231 | 0.813216 | 0.046405 | 0 | 0 | 0 | 0 | 0.095469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0.021277 | 0.191489 | 0.021277 | 0.446809 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
776b5a586a307c515edd0602fb6ce773dfcc4ddd | 5,969 | py | Python | cloudify_aws/kms/tests/test_key.py | jrzeszutek/cloudify-aws-plugin | 59832b4ac5ddad496110085ed2e21dd36db5e9df | [
"Apache-2.0"
] | 13 | 2015-05-28T23:21:05.000Z | 2022-03-20T05:38:20.000Z | cloudify_aws/kms/tests/test_key.py | jrzeszutek/cloudify-aws-plugin | 59832b4ac5ddad496110085ed2e21dd36db5e9df | [
"Apache-2.0"
] | 49 | 2015-01-04T16:05:34.000Z | 2022-03-27T11:35:13.000Z | cloudify_aws/kms/tests/test_key.py | jrzeszutek/cloudify-aws-plugin | 59832b4ac5ddad496110085ed2e21dd36db5e9df | [
"Apache-2.0"
] | 41 | 2015-01-21T17:16:05.000Z | 2022-03-31T06:47:48.000Z | # Copyright (c) 2018 Cloudify Platform Ltd. 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... | 28.42381 | 75 | 0.626906 | 669 | 5,969 | 5.273543 | 0.22571 | 0.045351 | 0.063492 | 0.063492 | 0.637188 | 0.573696 | 0.556406 | 0.540533 | 0.540533 | 0.496315 | 0 | 0.001847 | 0.27425 | 5,969 | 209 | 76 | 28.559809 | 0.812558 | 0.108393 | 0 | 0.367647 | 0 | 0 | 0.094268 | 0.011501 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.080882 | false | 0 | 0.036765 | 0 | 0.125 | 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 |
776c1f07ea108fe03cb9a7205323ee4e16411b3f | 10,184 | py | Python | terraref/laser3d/laser3d.py | terraref/ply2las | 90c791c64e2d94effa7d155228bf306e2f3fa29c | [
"BSD-3-Clause"
] | 1 | 2018-09-27T05:45:56.000Z | 2018-09-27T05:45:56.000Z | terraref/laser3d/laser3d.py | terraref/laser3d | 90c791c64e2d94effa7d155228bf306e2f3fa29c | [
"BSD-3-Clause"
] | 3 | 2018-05-16T19:40:26.000Z | 2018-12-14T20:02:53.000Z | terraref/laser3d/laser3d.py | terraref/ply2las | 90c791c64e2d94effa7d155228bf306e2f3fa29c | [
"BSD-3-Clause"
] | 1 | 2018-07-31T13:34:13.000Z | 2018-07-31T13:34:13.000Z | import subprocess
import numpy
import os
import laspy
from osgeo import gdal
from plyfile import PlyData, PlyElement
import matplotlib.pyplot as plt
#from rpy2.robjects import r, pandas2ri, numpy2ri
from terrautils.formats import create_geotiff
from terrautils.spatial import scanalyzer_to_mac
def ply_to_array(inp, m... | 34.174497 | 129 | 0.600255 | 1,463 | 10,184 | 3.993165 | 0.197539 | 0.008216 | 0.01027 | 0.018487 | 0.365457 | 0.304519 | 0.238959 | 0.219445 | 0.219445 | 0.212256 | 0 | 0.02728 | 0.276512 | 10,184 | 297 | 130 | 34.289562 | 0.765608 | 0.192655 | 0 | 0.164179 | 0 | 0.004975 | 0.147333 | 0.038667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054726 | false | 0 | 0.044776 | 0 | 0.149254 | 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 |
77724149191f0e80307f99dd8a0656415ea312e7 | 559 | py | Python | conflictgateway/social/jobsupdate.py | sebastianlees/Conflict-Gateway | e875abb48ad4d51db90983a35a6c7bd47a54d5e9 | [
"MIT"
] | null | null | null | conflictgateway/social/jobsupdate.py | sebastianlees/Conflict-Gateway | e875abb48ad4d51db90983a35a6c7bd47a54d5e9 | [
"MIT"
] | null | null | null | conflictgateway/social/jobsupdate.py | sebastianlees/Conflict-Gateway | e875abb48ad4d51db90983a35a6c7bd47a54d5e9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from twython import Twython
import random
APP_KEY = 'APP KEY' # Customer Key here
APP_SECRET = 'APP SECRET' # Customer secret here
OAUTH_TOKEN = 'OAUTH TOKEN' # Access Token here
OAUTH_TOKEN_SECRET = 'OAUTH TOKEN SECRET' # Access Token Secret here
jobsnumber = random.randint(50, 100)
twitt... | 39.928571 | 172 | 0.763864 | 77 | 559 | 5.402597 | 0.454545 | 0.144231 | 0.115385 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010352 | 0.135957 | 559 | 14 | 172 | 39.928571 | 0.850932 | 0.182469 | 0 | 0 | 0 | 0 | 0.359823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 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 |
777390888167fc8811e643a135d220bdf95baecc | 3,457 | py | Python | experiment_utils/initialization_utils.py | HanGuo97/experiment-utils | ff1288d4ab89af90e5c8c486de4dd7673a99079b | [
"MIT"
] | null | null | null | experiment_utils/initialization_utils.py | HanGuo97/experiment-utils | ff1288d4ab89af90e5c8c486de4dd7673a99079b | [
"MIT"
] | null | null | null | experiment_utils/initialization_utils.py | HanGuo97/experiment-utils | ff1288d4ab89af90e5c8c486de4dd7673a99079b | [
"MIT"
] | null | null | null | import os
import click
from git import Repo
from absl import logging
from datetime import datetime
from collections import namedtuple
from typing import Tuple, Optional
from . import wandb_utils
logging.set_verbosity(logging.INFO)
ExperimentConfig = namedtuple(
"ExperimentConfig", (
"project_name",
... | 29.29661 | 78 | 0.676598 | 413 | 3,457 | 5.445521 | 0.2954 | 0.058693 | 0.081814 | 0.032014 | 0.249 | 0.066696 | 0 | 0 | 0 | 0 | 0 | 0.000751 | 0.22939 | 3,457 | 117 | 79 | 29.547009 | 0.843468 | 0.087938 | 0 | 0.075 | 0 | 0 | 0.154508 | 0.045237 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0.0125 | 0.2 | 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 |
7775682dcc6dc253e667940b371c684ba9d3f2b3 | 1,295 | py | Python | Kiraro/Kiraro_Voice/Say.py | NotJakeR/Kiraro-Discord-Bot | de4f765eedd92cedcb7c61b0444e8f69e905f9e6 | [
"Apache-2.0"
] | null | null | null | Kiraro/Kiraro_Voice/Say.py | NotJakeR/Kiraro-Discord-Bot | de4f765eedd92cedcb7c61b0444e8f69e905f9e6 | [
"Apache-2.0"
] | null | null | null | Kiraro/Kiraro_Voice/Say.py | NotJakeR/Kiraro-Discord-Bot | de4f765eedd92cedcb7c61b0444e8f69e905f9e6 | [
"Apache-2.0"
] | 1 | 2021-01-25T19:06:17.000Z | 2021-01-25T19:06:17.000Z | from Kiraro import bot
from discord.ext import commands
from discord.errors import *
from discord.utils import get
from Kiraro.Kiraro_Voice import idk, queue
import discord
import gtts
queue_list = {}
@bot.command()
async def say(ctx, *, word):
boolean, voice = await idk(ctx)
if boolean:
tts = gtts.gT... | 33.205128 | 119 | 0.658687 | 167 | 1,295 | 5.035928 | 0.45509 | 0.042806 | 0.026159 | 0.03805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23166 | 1,295 | 39 | 120 | 33.205128 | 0.845226 | 0.037066 | 0 | 0 | 0 | 0 | 0.123496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7777e8520a12559d29d6241cbcb36e71e0940302 | 7,056 | py | Python | simple_estimator.py | carlos9310/models | d5038337a42544b95d6bf97e40099ef140399b89 | [
"Apache-2.0"
] | 2 | 2020-09-14T02:15:17.000Z | 2021-09-28T07:08:32.000Z | simple_estimator.py | carlos9310/models | d5038337a42544b95d6bf97e40099ef140399b89 | [
"Apache-2.0"
] | null | null | null | simple_estimator.py | carlos9310/models | d5038337a42544b95d6bf97e40099ef140399b89 | [
"Apache-2.0"
] | 1 | 2022-01-04T06:55:54.000Z | 2022-01-04T06:55:54.000Z | # -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
import os
import tensorflow as tf
tf.logging.set_verbosity(tf.logging.INFO)
ROOT_PATH = '/tmp/census_data'
TRAIN_PATH = '/tmp/census_data/adult.data'
EVAL_PATH =... | 40.090909 | 118 | 0.639172 | 794 | 7,056 | 5.367758 | 0.338791 | 0.040122 | 0.06687 | 0.025809 | 0.266072 | 0.186298 | 0.163069 | 0.104176 | 0.017363 | 0 | 0 | 0.018438 | 0.24674 | 7,056 | 176 | 119 | 40.090909 | 0.783443 | 0.10771 | 0 | 0.016807 | 0 | 0 | 0.152771 | 0.025129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033613 | false | 0 | 0.05042 | 0 | 0.109244 | 0.02521 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7778e854b1769ba9428d3a4d3170d1002d65dedd | 2,385 | py | Python | examples/run_multi_functions_parallel.py | rishavpramanik/mealpy | d4a4d5810f15837764e4ee61517350fef3dc92b3 | [
"MIT"
] | null | null | null | examples/run_multi_functions_parallel.py | rishavpramanik/mealpy | d4a4d5810f15837764e4ee61517350fef3dc92b3 | [
"MIT"
] | null | null | null | examples/run_multi_functions_parallel.py | rishavpramanik/mealpy | d4a4d5810f15837764e4ee61517350fef3dc92b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Created by "Thieu" at 10:26, 02/03/2022 ----------%
# Email: nguyenthieu2102@gmail.com %
# Github: https://github.com/thieu1995 % ... | 36.692308 | 137 | 0.6 | 301 | 2,385 | 4.468439 | 0.438538 | 0.052045 | 0.041636 | 0.02974 | 0.157621 | 0.047584 | 0.047584 | 0.047584 | 0.047584 | 0.047584 | 0 | 0.040243 | 0.239413 | 2,385 | 64 | 138 | 37.265625 | 0.701213 | 0.165199 | 0 | 0 | 0 | 0 | 0.178931 | 0.060484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.130435 | 0 | 0.173913 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77798b6704167fd268a08dbc9c3f502cb2811a76 | 9,876 | py | Python | table_sorter.py | manawesome326/table-sorter | 53c6b0cdcf6b70216e1bf0a69bdd6b193cf64604 | [
"Unlicense"
] | null | null | null | table_sorter.py | manawesome326/table-sorter | 53c6b0cdcf6b70216e1bf0a69bdd6b193cf64604 | [
"Unlicense"
] | null | null | null | table_sorter.py | manawesome326/table-sorter | 53c6b0cdcf6b70216e1bf0a69bdd6b193cf64604 | [
"Unlicense"
] | null | null | null | import random
import math
import time
import copy
allstudents = []
class Student:
def __init__(self,name,friends,robot=False):
self.name = name
self.__name__ = name
self.robot = robot
#self.friends = friends
self.friends = friends
self.currenttable = 0
allstudents.append(self)
#########################... | 37.984615 | 163 | 0.714662 | 1,594 | 9,876 | 4.297365 | 0.230238 | 0.044672 | 0.026277 | 0.022482 | 0.228759 | 0.197226 | 0.190511 | 0.159854 | 0.159854 | 0.159854 | 0 | 0.018907 | 0.175273 | 9,876 | 259 | 164 | 38.131274 | 0.822099 | 0.352471 | 0 | 0.319018 | 0 | 0.01227 | 0.11308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018405 | false | 0.006135 | 0.02454 | 0 | 0.055215 | 0.147239 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
777b5e5839004ea6dfd6b25eec2bff8b3f5e00ac | 1,045 | py | Python | unit_test/test_obj_avoidance.py | riven314/capstone_dash_interface | 5eab25f4c15ad09aa889554820231175b0a3ed28 | [
"CC0-1.0"
] | 1 | 2019-12-10T14:59:12.000Z | 2019-12-10T14:59:12.000Z | unit_test/test_obj_avoidance.py | riven314/capstone_dash_interface | 5eab25f4c15ad09aa889554820231175b0a3ed28 | [
"CC0-1.0"
] | null | null | null | unit_test/test_obj_avoidance.py | riven314/capstone_dash_interface | 5eab25f4c15ad09aa889554820231175b0a3ed28 | [
"CC0-1.0"
] | 1 | 2020-01-01T12:24:51.000Z | 2020-01-01T12:24:51.000Z | import os
import sys
import time
PATH = os.path.join(os.getcwd(), '..')
sys.path.append(PATH)
import cv2
import numpy as np
import matplotlib.pyplot as plt
from obj_avoidance import run_avoidance
# for the reference
label_dict = {1: 'wall', 2: 'floor', 3: 'plant', 4: 'ceiling', 5: 'furniture', 6: 'person'... | 30.735294 | 117 | 0.683254 | 168 | 1,045 | 4.017857 | 0.440476 | 0.02963 | 0.044444 | 0.062222 | 0.16 | 0.16 | 0.127407 | 0.127407 | 0.127407 | 0.127407 | 0 | 0.028441 | 0.158852 | 1,045 | 33 | 118 | 31.666667 | 0.739477 | 0.029665 | 0 | 0.08 | 0 | 0 | 0.154555 | 0.056295 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.28 | 0 | 0.28 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
777d83516dc3cad54a0ce07bf96a195097e68974 | 1,519 | py | Python | demoapp/cabinet_structure/settings.py | pythoninner/myfistpython | c1f52d8a3a284a89c0f1e33615067e8845aa1617 | [
"MIT"
] | 17 | 2015-12-10T02:09:07.000Z | 2018-06-25T06:46:59.000Z | demoapp/cabinet_structure/settings.py | pythoninner/myfistpython | c1f52d8a3a284a89c0f1e33615067e8845aa1617 | [
"MIT"
] | 6 | 2015-12-09T08:09:52.000Z | 2016-01-11T06:53:10.000Z | demoapp/cabinet_structure/settings.py | pythoninner/myfistpython | c1f52d8a3a284a89c0f1e33615067e8845aa1617 | [
"MIT"
] | 9 | 2015-12-10T09:04:00.000Z | 2019-07-12T13:33:25.000Z | import logging
from django.conf import settings
logger = logging.getLogger(__name__)
class VerifySettings(object):
__settings_name__ = 'MAX_CABINET_ROWS_NUM'
__error_msg_dict__ = {'no_attribute': ("MAX_CABINET_ROWS_NUM must be specified in "
"your Django settings ... | 33.755556 | 92 | 0.631995 | 175 | 1,519 | 4.942857 | 0.308571 | 0.115607 | 0.090173 | 0.078613 | 0.236994 | 0.150289 | 0.150289 | 0 | 0 | 0 | 0 | 0.000935 | 0.296248 | 1,519 | 44 | 93 | 34.522727 | 0.808232 | 0 | 0 | 0 | 0 | 0 | 0.147465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.060606 | 0.030303 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
777dd8bf196474b662d087b28f11dea01ef85e30 | 756 | py | Python | l_04_list_and_dictionaries/dictionaries/ex_08_filter_base.py | VasAtanasov/SoftUni-Python-Fundamentals | 471d0537dd6e5c8b61ede92b7673c0d67e2964fd | [
"MIT"
] | 1 | 2019-06-05T11:16:08.000Z | 2019-06-05T11:16:08.000Z | l_04_list_and_dictionaries/dictionaries/ex_08_filter_base.py | VasAtanasov/SoftUni-Python-Fundamentals | 471d0537dd6e5c8b61ede92b7673c0d67e2964fd | [
"MIT"
] | null | null | null | l_04_list_and_dictionaries/dictionaries/ex_08_filter_base.py | VasAtanasov/SoftUni-Python-Fundamentals | 471d0537dd6e5c8b61ede92b7673c0d67e2964fd | [
"MIT"
] | null | null | null | def check_type(text):
try:
if float(text) == int(float(text)):
return {'Age': int(float(text))}
elif float(text) != int(float(text)):
return {'Salary': float(text)}
except ValueError:
return {'Position': text}
employees_data = []
while True:
in_line = input... | 23.625 | 82 | 0.589947 | 95 | 756 | 4.6 | 0.442105 | 0.12357 | 0.08238 | 0.077803 | 0.12357 | 0.12357 | 0 | 0 | 0 | 0 | 0 | 0.003515 | 0.247355 | 756 | 31 | 83 | 24.387097 | 0.764499 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 0.041005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.173913 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
777ef7869d9e99660684cbd42f3a06660212884f | 905 | py | Python | install_release.py | NunoEdgarGFlowHub/poptorch | 2e69b81c7c94b522d9f57cc53d31be562f5e3749 | [
"MIT"
] | null | null | null | install_release.py | NunoEdgarGFlowHub/poptorch | 2e69b81c7c94b522d9f57cc53d31be562f5e3749 | [
"MIT"
] | null | null | null | install_release.py | NunoEdgarGFlowHub/poptorch | 2e69b81c7c94b522d9f57cc53d31be562f5e3749 | [
"MIT"
] | null | null | null | # Copyright (c) 2018 Graphcore Ltd. All rights reserved.
# This script is run by the release agent to create a release of PopTorch
def install_release(release_utils, release_id, snapshot_id, version_str):
# Tag must contain the string 'poptorch' to keep it unique.
tag = "{}-poptorch".format(version_str)
... | 34.807692 | 73 | 0.707182 | 115 | 905 | 5.4 | 0.486957 | 0.096618 | 0.061192 | 0.093398 | 0.132045 | 0.132045 | 0 | 0 | 0 | 0 | 0 | 0.00554 | 0.20221 | 905 | 25 | 74 | 36.2 | 0.854571 | 0.337017 | 0 | 0.153846 | 0 | 0 | 0.306914 | 0.246206 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 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 |
778181d3874c190067f24ee03aa82a2d0d031e77 | 1,667 | py | Python | ciscosparkapi/tests/conftest.py | Futuramistic/Bot | e22672e9d627faf3d9393feb04d214cb62dec98d | [
"MIT"
] | null | null | null | ciscosparkapi/tests/conftest.py | Futuramistic/Bot | e22672e9d627faf3d9393feb04d214cb62dec98d | [
"MIT"
] | 1 | 2021-06-01T21:52:12.000Z | 2021-06-01T21:52:12.000Z | ciscosparkapi/tests/conftest.py | Futuramistic/Bot | e22672e9d627faf3d9393feb04d214cb62dec98d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""pytest configuration and top-level fixtures."""
__author__ = "Chris Lunsford"
__author_email__ = "chrlunsf@cisco.com"
__copyright__ = "Copyright (c) 2016-2018 Cisco and/or its affiliates."
__license__ = "MIT"
import os
import string
import tempfile
import pytest
from tes... | 21.101266 | 80 | 0.675465 | 200 | 1,667 | 5.32 | 0.455 | 0.075188 | 0.112782 | 0.043233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011442 | 0.213557 | 1,667 | 78 | 81 | 21.371795 | 0.800153 | 0.059988 | 0 | 0.042553 | 0 | 0 | 0.305199 | 0.133693 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.106383 | 0.021277 | 0.255319 | 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 |
77842d9f499b49e55088705f1121160416001ae6 | 1,550 | py | Python | nalu.py | chauhanjatin10/NeuralArithmeticLogicUnits | c8a71e4bb99b7f5bdb5c1b85a75376b0322d6853 | [
"MIT"
] | null | null | null | nalu.py | chauhanjatin10/NeuralArithmeticLogicUnits | c8a71e4bb99b7f5bdb5c1b85a75376b0322d6853 | [
"MIT"
] | null | null | null | nalu.py | chauhanjatin10/NeuralArithmeticLogicUnits | c8a71e4bb99b7f5bdb5c1b85a75376b0322d6853 | [
"MIT"
] | null | null | null | import math
import torch
import torch.nn as nn
import torch.nn.functional as Func
import torch.nn.init as init
from nac import NeuralAccumulatorCell
from torch.nn.parameter import Parameter
class NeuralArithmeticLogicCell(nn.Module):
def __init__(self, in_dim, out_dim):
super().__init__()
self.in_dim = in_dim
... | 28.703704 | 63 | 0.740645 | 257 | 1,550 | 4.214008 | 0.252918 | 0.050785 | 0.041551 | 0.055402 | 0.237304 | 0.202216 | 0.165282 | 0.165282 | 0.132964 | 0.062789 | 0 | 0.004508 | 0.14129 | 1,550 | 53 | 64 | 29.245283 | 0.809166 | 0 | 0 | 0.186047 | 0 | 0 | 0.002581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.162791 | 0.023256 | 0.348837 | 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 |
778cfa1ba927b0196782d749a97b1b4c8af54073 | 5,170 | py | Python | src/vivarium/examples/disease_model/population.py | ihmeuw/vivarium | 77393d2e84ff2351c926f65b33272b7225cf9628 | [
"BSD-3-Clause"
] | 41 | 2017-07-14T03:39:06.000Z | 2022-03-20T05:36:33.000Z | src/vivarium/examples/disease_model/population.py | ihmeuw/vivarium | 77393d2e84ff2351c926f65b33272b7225cf9628 | [
"BSD-3-Clause"
] | 26 | 2017-08-08T22:13:44.000Z | 2021-08-18T00:14:54.000Z | src/vivarium/examples/disease_model/population.py | ihmeuw/vivarium | 77393d2e84ff2351c926f65b33272b7225cf9628 | [
"BSD-3-Clause"
] | 8 | 2017-08-03T17:15:39.000Z | 2021-09-30T21:57:50.000Z | import pandas as pd
from vivarium.framework.engine import Builder
from vivarium.framework.population import SimulantData
from vivarium.framework.event import Event
class BasePopulation:
"""Generates a base population with a uniform distribution of age and sex.
Attributes
----------
configuration_def... | 39.769231 | 111 | 0.623985 | 580 | 5,170 | 5.408621 | 0.293103 | 0.024546 | 0.022952 | 0.025502 | 0.161938 | 0.068856 | 0.030602 | 0.030602 | 0.030602 | 0.030602 | 0 | 0.002727 | 0.290716 | 5,170 | 129 | 112 | 40.077519 | 0.852741 | 0.339458 | 0 | 0.071429 | 0 | 0 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
778df52cd98d358aeeaa3cd2f864bdb6647f52ff | 5,390 | py | Python | python3/ssm/requester.py | renardbebe/ssm-rotation-sdk-python | cffe573f5462d0b93be9b5fb110970ade98f1642 | [
"Apache-2.0"
] | null | null | null | python3/ssm/requester.py | renardbebe/ssm-rotation-sdk-python | cffe573f5462d0b93be9b5fb110970ade98f1642 | [
"Apache-2.0"
] | null | null | null | python3/ssm/requester.py | renardbebe/ssm-rotation-sdk-python | cffe573f5462d0b93be9b5fb110970ade98f1642 | [
"Apache-2.0"
] | 1 | 2021-07-21T02:46:58.000Z | 2021-07-21T02:46:58.000Z | import logging
from threading import Timer
from tencentcloud.ssm.v20190923 import models, ssm_client
from tencentcloud.common.profile import client_profile
from tencentcloud.common import credential
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
class Error:
"""自定义错... | 29.779006 | 101 | 0.625974 | 663 | 5,390 | 4.897436 | 0.209653 | 0.027718 | 0.022174 | 0.029566 | 0.310748 | 0.276255 | 0.23283 | 0.18725 | 0.18725 | 0.160148 | 0 | 0.003064 | 0.273469 | 5,390 | 180 | 102 | 29.944444 | 0.826098 | 0.227087 | 0 | 0.181818 | 0 | 0 | 0.099741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.045455 | 0.068182 | 0 | 0.284091 | 0.034091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
778e86e22df74cae729a35ebbd9cf3422b98571c | 5,159 | py | Python | bdd100k/eval/lane_test.py | siyliepfl/bdd100k | f38e9b5cd4e21f7a47822734ffa4d397f64bf04a | [
"BSD-3-Clause"
] | null | null | null | bdd100k/eval/lane_test.py | siyliepfl/bdd100k | f38e9b5cd4e21f7a47822734ffa4d397f64bf04a | [
"BSD-3-Clause"
] | null | null | null | bdd100k/eval/lane_test.py | siyliepfl/bdd100k | f38e9b5cd4e21f7a47822734ffa4d397f64bf04a | [
"BSD-3-Clause"
] | null | null | null | """Test cases for lane.py."""
import os
import unittest
from typing import Dict
import numpy as np
from .lane import (
eval_lane_per_threshold,
evaluate_lane_marking,
get_foreground,
get_lane_class,
sub_task_funcs,
)
class TestGetLaneClass(unittest.TestCase):
"""Test cases for the lane speci... | 39.381679 | 78 | 0.611165 | 705 | 5,159 | 4.221277 | 0.212766 | 0.012769 | 0.040659 | 0.073925 | 0.480175 | 0.43918 | 0.319556 | 0.289987 | 0.266465 | 0.218078 | 0 | 0.137976 | 0.262454 | 5,159 | 130 | 79 | 39.684615 | 0.644152 | 0.087226 | 0 | 0.128713 | 0 | 0 | 0.159768 | 0.111945 | 0 | 0 | 0 | 0 | 0.178218 | 1 | 0.049505 | false | 0 | 0.049505 | 0 | 0.128713 | 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 |
778eae6f766166711785d06fe1c129980226b180 | 6,178 | py | Python | draw.py | squeezeday/raspberry-pi-e-ink-display | 97a16f7bd58ba6d6c800864c945a961870e823ed | [
"MIT"
] | 5 | 2019-09-10T09:57:59.000Z | 2021-08-17T18:10:21.000Z | draw.py | squeezeday/raspberry-pi-e-ink-display | 97a16f7bd58ba6d6c800864c945a961870e823ed | [
"MIT"
] | 5 | 2021-03-19T03:32:34.000Z | 2022-03-11T23:58:49.000Z | draw.py | squeezeday/raspberry-pi-e-ink-display | 97a16f7bd58ba6d6c800864c945a961870e823ed | [
"MIT"
] | null | null | null | from PIL import Image, ImageDraw, ImageFont
from urllib.request import Request, urlopen
from urllib.parse import quote, unquote
import json
import pytz
import os
from calendarhelper import getCaldavEvents, calendarEvent
from datetime import datetime, date, timedelta, tzinfo, timezone
from tzlocal import get_localzone
f... | 37.442424 | 148 | 0.683555 | 846 | 6,178 | 4.833333 | 0.288416 | 0.037417 | 0.04133 | 0.023967 | 0.340915 | 0.186843 | 0.154561 | 0.097334 | 0.047444 | 0.030325 | 0 | 0.03505 | 0.164131 | 6,178 | 164 | 149 | 37.670732 | 0.75639 | 0.058271 | 0 | 0.065574 | 0 | 0 | 0.175659 | 0.051198 | 0 | 0 | 0 | 0.006098 | 0 | 1 | 0.016393 | false | 0 | 0.090164 | 0 | 0.131148 | 0.008197 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77918e9deea502e2876228cdb462978e97466087 | 2,570 | py | Python | bingads/v13/bulk/entities/audiences/bulk_remarketing_list.py | pawelulita/BingAds-Python-SDK | e7b5a618e87a43d0a5e2c79d9aa4626e208797bd | [
"MIT"
] | 86 | 2016-02-29T03:24:28.000Z | 2022-03-29T09:30:21.000Z | bingads/v13/bulk/entities/audiences/bulk_remarketing_list.py | pawelulita/BingAds-Python-SDK | e7b5a618e87a43d0a5e2c79d9aa4626e208797bd | [
"MIT"
] | 135 | 2016-04-12T13:31:28.000Z | 2022-03-29T02:18:51.000Z | bingads/v13/bulk/entities/audiences/bulk_remarketing_list.py | pawelulita/BingAds-Python-SDK | e7b5a618e87a43d0a5e2c79d9aa4626e208797bd | [
"MIT"
] | 154 | 2016-04-08T04:11:27.000Z | 2022-03-29T21:21:07.000Z | from bingads.v13.bulk.entities import *
from bingads.service_client import _CAMPAIGN_OBJECT_FACTORY_V13
from bingads.v13.internal.bulk.entities.single_record_bulk_entity import _SingleRecordBulkEntity
from bingads.v13.internal.bulk.mappings import _SimpleBulkMapping
from bingads.v13.internal.bulk.string_table import _S... | 39.538462 | 106 | 0.731518 | 303 | 2,570 | 5.881188 | 0.326733 | 0.159933 | 0.039282 | 0.049383 | 0.220539 | 0.056117 | 0 | 0 | 0 | 0 | 0 | 0.009602 | 0.189494 | 2,570 | 64 | 107 | 40.15625 | 0.845895 | 0.180934 | 0 | 0.105263 | 0 | 0 | 0.017535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | 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 |
77936e8ca10f6e684602ec0fcab350ddfe22ac60 | 24,154 | py | Python | src/daft_exprt/extract_features.py | ishine/ubisoft-laforge-daft-exprt | a576691c8c42988f813183efcea43c1677abe17a | [
"Apache-2.0"
] | 33 | 2021-09-17T18:32:23.000Z | 2022-03-01T21:05:08.000Z | src/daft_exprt/extract_features.py | ishine/ubisoft-laforge-daft-exprt | a576691c8c42988f813183efcea43c1677abe17a | [
"Apache-2.0"
] | 5 | 2021-12-07T04:23:04.000Z | 2022-03-15T07:37:13.000Z | src/daft_exprt/extract_features.py | ishine/ubisoft-laforge-daft-exprt | a576691c8c42988f813183efcea43c1677abe17a | [
"Apache-2.0"
] | 7 | 2021-09-16T02:24:02.000Z | 2022-01-11T07:48:19.000Z | import json
import logging
import logging.handlers
import os
import re
import subprocess
import types
import uuid
import librosa
import numpy as np
import torch
from shutil import rmtree
from librosa.filters import mel as librosa_mel_fn
from scipy.io import wavfile
from daft_exprt.symbols import ascii, eos, punctua... | 43.599278 | 139 | 0.620187 | 3,283 | 24,154 | 4.379836 | 0.140725 | 0.015578 | 0.013214 | 0.008346 | 0.28479 | 0.229432 | 0.210029 | 0.17915 | 0.139161 | 0.103832 | 0 | 0.012451 | 0.265132 | 24,154 | 553 | 140 | 43.678119 | 0.797634 | 0.230811 | 0 | 0.155689 | 0 | 0.002994 | 0.12365 | 0.022482 | 0 | 0 | 0 | 0 | 0.035928 | 1 | 0.038922 | false | 0.002994 | 0.047904 | 0 | 0.125749 | 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 |
7794c9a15b5585aa2606eff1839893cdafad353f | 4,076 | py | Python | python/cuspatial/cuspatial/geometry/geoseries.py | AyodeAwe/cuspatial | 77971ac91a24228bc46cf461c0ac7b6f2ed78e44 | [
"Apache-2.0"
] | 347 | 2019-08-29T12:39:02.000Z | 2022-03-28T14:55:34.000Z | python/cuspatial/cuspatial/geometry/geoseries.py | AyodeAwe/cuspatial | 77971ac91a24228bc46cf461c0ac7b6f2ed78e44 | [
"Apache-2.0"
] | 425 | 2019-08-24T23:27:46.000Z | 2022-03-31T20:07:18.000Z | python/cuspatial/cuspatial/geometry/geoseries.py | AyodeAwe/cuspatial | 77971ac91a24228bc46cf461c0ac7b6f2ed78e44 | [
"Apache-2.0"
] | 109 | 2019-08-14T22:49:56.000Z | 2022-02-24T19:54:42.000Z | # Copyright (c) 2020-2021, NVIDIA CORPORATION
from typing import TypeVar, Union
import geopandas as gpd
import pandas as pd
from geopandas.geoseries import GeoSeries as gpGeoSeries
import cudf
from cuspatial.geometry.geoarrowbuffers import GeoArrowBuffers
from cuspatial.geometry.geocolumn import GeoColumn, GeoMeta
... | 31.114504 | 79 | 0.629539 | 449 | 4,076 | 5.587973 | 0.35412 | 0.0279 | 0.020725 | 0.047828 | 0.092467 | 0.078119 | 0.078119 | 0 | 0 | 0 | 0 | 0.00585 | 0.287046 | 4,076 | 130 | 80 | 31.353846 | 0.857536 | 0.300294 | 0 | 0.101449 | 0 | 0 | 0.038861 | 0 | 0 | 0 | 0 | 0.007692 | 0 | 1 | 0.144928 | false | 0.014493 | 0.115942 | 0.014493 | 0.391304 | 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 |
77a214f5777df7a0c6f55cff48bff29b3f5f4ff6 | 1,961 | py | Python | capture/command_scripts/stream_handler.py | CenturyLink/ExpertDHCP | 4dbcd36da7468b9a95a7869df19172fe890cefd2 | [
"MIT"
] | 1 | 2022-03-08T00:38:33.000Z | 2022-03-08T00:38:33.000Z | capture/command_scripts/stream_handler.py | aaronlumen/ExpertDHCP | 4dbcd36da7468b9a95a7869df19172fe890cefd2 | [
"MIT"
] | null | null | null | capture/command_scripts/stream_handler.py | aaronlumen/ExpertDHCP | 4dbcd36da7468b9a95a7869df19172fe890cefd2 | [
"MIT"
] | 2 | 2022-02-11T17:13:48.000Z | 2022-03-08T00:36:03.000Z | import subprocess
import shlex
import re
import json
class StreamHandler(object):
"""
A singleton class to handle the stream of dump and
return stdout in generator fashion
"""
__instance = None
def __init__(self,
dhcp_dump_command="sudo {} -i {}",
dum... | 36.314815 | 92 | 0.562978 | 225 | 1,961 | 4.657778 | 0.422222 | 0.061069 | 0.071565 | 0.072519 | 0.123092 | 0.123092 | 0 | 0 | 0 | 0 | 0 | 0.007015 | 0.345742 | 1,961 | 53 | 93 | 37 | 0.809821 | 0.074452 | 0 | 0.05 | 0 | 0 | 0.128707 | 0.012311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.125 | 0 | 0.225 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
77a4ff6d26d09b8ed1fd64033110e651fd78bc73 | 16,460 | py | Python | sudoku_solve2.py | alfille/sudoku_count | 871794378c866f024acfc495d20f45478f3a0b99 | [
"MIT"
] | null | null | null | sudoku_solve2.py | alfille/sudoku_count | 871794378c866f024acfc495d20f45478f3a0b99 | [
"MIT"
] | null | null | null | sudoku_solve2.py | alfille/sudoku_count | 871794378c866f024acfc495d20f45478f3a0b99 | [
"MIT"
] | null | null | null | import sys
import tkinter as tk
import tkinter.font as tkfont
import tkinter.filedialog as tkfile
import tkinter.messagebox as tkmessage
import argparse
import ctypes
import platform
import signal
def signal_handler(signal, frame):
print("\nForced end\n")
sys.exit(0)
class Persist(tk.Frame):
SUBSIZE = 3
X =... | 30.881801 | 207 | 0.646355 | 2,634 | 16,460 | 3.998481 | 0.129841 | 0.010444 | 0.025826 | 0.029054 | 0.50883 | 0.43496 | 0.396316 | 0.352165 | 0.321401 | 0.312856 | 0 | 0.011716 | 0.18068 | 16,460 | 532 | 208 | 30.93985 | 0.769242 | 0.036817 | 0 | 0.372685 | 0 | 0 | 0.064223 | 0.002781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.020833 | 0 | 0.143519 | 0.00463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77a51fcecb6daeb1528498330dad731bde24172c | 1,549 | py | Python | Text_to_speech_GAN/waveFiles.py | scotty110/ANN-code | 05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a | [
"MIT"
] | null | null | null | Text_to_speech_GAN/waveFiles.py | scotty110/ANN-code | 05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a | [
"MIT"
] | null | null | null | Text_to_speech_GAN/waveFiles.py | scotty110/ANN-code | 05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a | [
"MIT"
] | null | null | null | import scipy.io.wavfile as siow
import scipy.signal as ssr
import matplotlib.pyplot as plt
import numpy as np
import math
def groupNumpy(to_group_array, interval, debug=True):
'''
Breaks numpy array into an array of arrays. Where each array is <interval> long.
Inputs:
to_group_array - array we wish to brea... | 28.163636 | 120 | 0.712718 | 247 | 1,549 | 4.37247 | 0.489879 | 0.032407 | 0.055556 | 0.037037 | 0.07037 | 0.038889 | 0 | 0 | 0 | 0 | 0 | 0.033742 | 0.158167 | 1,549 | 55 | 121 | 28.163636 | 0.794479 | 0.297611 | 0 | 0 | 0 | 0 | 0.067295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 0 | 0.35 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
77a746913532d4c25ca26f69e46343bc6271ae0e | 790 | py | Python | Tools/Individual Tools/Big Build Calculator.py | TheUncannyScrub/PythonMinecraftTools | 1ff5cf53f195cff41c33dc39a461ee94c6edf510 | [
"MIT"
] | null | null | null | Tools/Individual Tools/Big Build Calculator.py | TheUncannyScrub/PythonMinecraftTools | 1ff5cf53f195cff41c33dc39a461ee94c6edf510 | [
"MIT"
] | null | null | null | Tools/Individual Tools/Big Build Calculator.py | TheUncannyScrub/PythonMinecraftTools | 1ff5cf53f195cff41c33dc39a461ee94c6edf510 | [
"MIT"
] | null | null | null | import os
import sys
import random
import math
from time import *
import decimal
print('Minecraft Resource Calculator')
print('Enter the individual items and the calculator will')
print('tell you how many chest or stacks it is!')
print('*Only works for items that stack up to 64*')
sleep(1)
while True:
... | 25.483871 | 60 | 0.616456 | 105 | 790 | 4.638095 | 0.590476 | 0.061602 | 0.045175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029463 | 0.26962 | 790 | 31 | 61 | 25.483871 | 0.814558 | 0 | 0 | 0 | 0 | 0 | 0.362681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0.346154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77ac836929fce76c6241d61d0546b8b5bdacebd5 | 10,283 | py | Python | data/GoogleTrans/preprocess.py | wasiahmad/GATE | 1e48504a3641f00265a271a19eb6b6449fdc33bd | [
"MIT"
] | 24 | 2020-12-07T10:22:40.000Z | 2022-03-31T09:24:13.000Z | data/GoogleTrans/preprocess.py | wasiahmad/GATE | 1e48504a3641f00265a271a19eb6b6449fdc33bd | [
"MIT"
] | 15 | 2021-03-22T04:52:57.000Z | 2022-01-01T18:32:31.000Z | data/GoogleTrans/preprocess.py | wasiahmad/GATE | 1e48504a3641f00265a271a19eb6b6449fdc33bd | [
"MIT"
] | 8 | 2021-03-04T05:09:42.000Z | 2022-01-25T12:59:19.000Z | import json
import os
from udpipe import Model
from conllu import parse
from collections import OrderedDict
model_map = {
'en': 'udpipe/english-ewt-ud-2.5-191206.udpipe',
'zh': 'udpipe/chinese-gsd-ud-2.5-191206.udpipe',
'ar': 'udpipe/arabic-padt-ud-2.5-191206.udpipe'
}
def find_span(offsets, begin_offset... | 36.207746 | 99 | 0.550812 | 1,254 | 10,283 | 4.263955 | 0.135566 | 0.044885 | 0.026931 | 0.020572 | 0.43127 | 0.372732 | 0.312138 | 0.275856 | 0.266879 | 0.266879 | 0 | 0.010541 | 0.31732 | 10,283 | 283 | 100 | 36.335689 | 0.75114 | 0.030341 | 0 | 0.242553 | 0 | 0 | 0.166014 | 0.065984 | 0 | 0 | 0 | 0 | 0.025532 | 1 | 0.025532 | false | 0 | 0.021277 | 0 | 0.068085 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
77ae2c52823c3ed666b8da7d385a9528b00e5196 | 4,034 | py | Python | bricklayer/util/parallel_fetch.py | loganwang007/bricklayer | 531dd4acaf20574a9d2f7f0adf68789888288157 | [
"Apache-2.0"
] | null | null | null | bricklayer/util/parallel_fetch.py | loganwang007/bricklayer | 531dd4acaf20574a9d2f7f0adf68789888288157 | [
"Apache-2.0"
] | null | null | null | bricklayer/util/parallel_fetch.py | loganwang007/bricklayer | 531dd4acaf20574a9d2f7f0adf68789888288157 | [
"Apache-2.0"
] | null | null | null | """
Module to distribute the S3 download over a spark cluster
Useful when the data is highly partitioned and unable to be loaded by standard methods
Results end up in a table
Usage:
```
from parallel_fetch import DbricksParallelFetch
# define the aws_bucket and output_dir for the s3_fetch to... | 42.020833 | 112 | 0.595439 | 458 | 4,034 | 5.09607 | 0.368996 | 0.034704 | 0.01671 | 0.021851 | 0.021422 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007845 | 0.336391 | 4,034 | 95 | 113 | 42.463158 | 0.864027 | 0.341101 | 0 | 0 | 0 | 0 | 0.050982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.170213 | 0 | 0.361702 | 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 |
77af594f90cdfff28c32483019a29f1ca17a171f | 621 | py | Python | algorithms/mergesort.py | MatheusRV/Analysis-of-Algorithms-Course | 4c1f4ccb8349b894653128be7e38d3045b0f5c13 | [
"MIT"
] | null | null | null | algorithms/mergesort.py | MatheusRV/Analysis-of-Algorithms-Course | 4c1f4ccb8349b894653128be7e38d3045b0f5c13 | [
"MIT"
] | null | null | null | algorithms/mergesort.py | MatheusRV/Analysis-of-Algorithms-Course | 4c1f4ccb8349b894653128be7e38d3045b0f5c13 | [
"MIT"
] | null | null | null | def merge(left, right):
"""Merge sort merging function."""
merged_array=[]
while left or right:
if not left:
merged_array.append(right.pop())
elif (not right) or left[-1] > right[-1]:
merged_array.append(left.pop())
else:
merged_array.append(right.pop())
merged_array.reverse()
return merged_array
d... | 25.875 | 51 | 0.690821 | 91 | 621 | 4.615385 | 0.340659 | 0.128571 | 0.121429 | 0.104762 | 0.22381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007797 | 0.173913 | 621 | 23 | 52 | 27 | 0.810916 | 0.199678 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.263158 | 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 |
77b62d71a2e2a81d7bb14aa77dd472363e132b1c | 593 | py | Python | deploy/env_var.py | john850512/TranslatedPudding | 64e5f2b5fe389c598daa15ff78dbc5ede3e0799e | [
"MIT"
] | 3 | 2019-05-20T06:36:14.000Z | 2020-05-15T03:58:16.000Z | deploy/env_var.py | john850512/TranslatedPudding | 64e5f2b5fe389c598daa15ff78dbc5ede3e0799e | [
"MIT"
] | null | null | null | deploy/env_var.py | john850512/TranslatedPudding | 64e5f2b5fe389c598daa15ff78dbc5ede3e0799e | [
"MIT"
] | null | null | null | CHANNEL_ACCESS_TOKEN = r'YOUR CHANNEL ACCESS TOKEN'
CHANNEL_SECRET = r'YOUR CHANNEL SECRET'
STR_CURRENT_STATUS_RESPOND = ("目前狀態:【{current_status}】\n" +
"1.輸入『吃下翻譯布丁』開啟功能\n" +
"2.輸入『布丁消化完了』關閉功能"
)
STR_CURRENT_STATUS = r'翻譯布丁'
STR_A... | 45.615385 | 59 | 0.686341 | 80 | 593 | 4.8 | 0.425 | 0.104167 | 0.114583 | 0.098958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.217538 | 593 | 13 | 60 | 45.615385 | 0.814655 | 0 | 0 | 0 | 0 | 0 | 0.319865 | 0.117845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
77b773bb110aacc218f4ca773acae2c751ddf7a7 | 691 | py | Python | src/duet/sv_calling.py | yekaizhou/duet | ab49323992d3a5f6c21a10bd7114525a31fb0b8b | [
"BSD-3-Clause"
] | 7 | 2021-08-12T08:26:18.000Z | 2022-02-23T18:13:53.000Z | src/duet/sv_calling.py | yekaizhou/duet | ab49323992d3a5f6c21a10bd7114525a31fb0b8b | [
"BSD-3-Clause"
] | null | null | null | src/duet/sv_calling.py | yekaizhou/duet | ab49323992d3a5f6c21a10bd7114525a31fb0b8b | [
"BSD-3-Clause"
] | null | null | null | # coding=utf-8
import logging
import os
import time
def sv_calling(home, ref_path, aln_path, cls_thres, svlen_thres):
lines = '*************************'
logging.info(lines + ' SV CALLING STARTED ' + lines)
starttime = time.time()
sv_calling_home = home + '/sv_calling/'
os.system('mkdir ' + sv_cal... | 43.1875 | 112 | 0.615051 | 90 | 691 | 4.466667 | 0.466667 | 0.156716 | 0.129353 | 0.089552 | 0.124378 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.212735 | 691 | 16 | 113 | 43.1875 | 0.731618 | 0.017366 | 0 | 0 | 0 | 0 | 0.287611 | 0.069322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
77b834ef3b47095a3ef4e2276e9ea11ba4bc2b31 | 622 | py | Python | python/08/a4988.py | matsujirushi/raspi_parts_kouryaku | 35cd6f34d21c5e3160636671175fa8d5aff2d4dc | [
"Apache-2.0"
] | 6 | 2022-03-05T02:36:57.000Z | 2022-03-12T12:31:27.000Z | python/08/a4988.py | matsujirushi/raspi_parts_kouryaku | 35cd6f34d21c5e3160636671175fa8d5aff2d4dc | [
"Apache-2.0"
] | null | null | null | python/08/a4988.py | matsujirushi/raspi_parts_kouryaku | 35cd6f34d21c5e3160636671175fa8d5aff2d4dc | [
"Apache-2.0"
] | null | null | null | import pigpio
import time
ROTATION = 2
STEP_PER_ROTATE = 200
MICROSTEP = 16
ENABLE = 10
MS1 = 9
MS2 = 11
MS3 = 5
RESET = 6
SLEEP = 13
STEP = 19
DIR = 26
WAIT = 0.005
pi = pigpio.pi()
for pin in [ENABLE, MS1, MS2, MS3, RESET, SLEEP, STEP, DIR]:
pi.set_mode(pin, pigpio.OUTPUT)
pi.write(RESET, 0)
pi.write(SLEEP... | 14.136364 | 60 | 0.651125 | 116 | 622 | 3.448276 | 0.353448 | 0.1925 | 0.08 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098394 | 0.199357 | 622 | 43 | 61 | 14.465116 | 0.704819 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
77b8deb8a471712792ddcd411f464a17a0cb2bf4 | 1,917 | py | Python | tools/c7n_gcp/c7n_gcp/resources/dataflow.py | vkubyshko/cloud-custodian | e5e3a0f8b5c85adcbec212d780b453047fb6f4d1 | [
"Apache-2.0"
] | 2,415 | 2018-12-04T00:37:58.000Z | 2022-03-31T12:28:56.000Z | tools/c7n_gcp/c7n_gcp/resources/dataflow.py | vkubyshko/cloud-custodian | e5e3a0f8b5c85adcbec212d780b453047fb6f4d1 | [
"Apache-2.0"
] | 3,272 | 2018-12-03T23:58:17.000Z | 2022-03-31T21:15:32.000Z | tools/c7n_gcp/c7n_gcp/resources/dataflow.py | staxio/cloud-custodian | 24ed5d8f09bc37ff76184aae97a1ef577a69a41b | [
"Apache-2.0"
] | 773 | 2018-12-06T09:43:23.000Z | 2022-03-30T20:44:43.000Z | # Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
import jmespath
from googleapiclient.errors import HttpError
from c7n_gcp.provider import resources
from c7n_gcp.query import QueryResourceManager, TypeInfo
@resources.register('dataflow-job')
class DataflowJob(QueryResourceManager):
... | 32.491525 | 93 | 0.571205 | 186 | 1,917 | 5.77957 | 0.510753 | 0.04093 | 0.018605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006818 | 0.311424 | 1,917 | 58 | 94 | 33.051724 | 0.807576 | 0.087115 | 0 | 0 | 0 | 0 | 0.15261 | 0.030407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.086957 | 0.021739 | 0.26087 | 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 |
77b987eaf14f75d36f539722f833433781e4d25e | 12,777 | py | Python | evolution/robot.py | gpatsiaouras/Robot-Simulator | 4676bb342ca2a1ebcabfb4834f42da61610bacdf | [
"MIT"
] | null | null | null | evolution/robot.py | gpatsiaouras/Robot-Simulator | 4676bb342ca2a1ebcabfb4834f42da61610bacdf | [
"MIT"
] | 1 | 2022-03-12T00:58:01.000Z | 2022-03-12T00:58:01.000Z | evolution/robot.py | gpatsiaouras/Robot-Simulator | 4676bb342ca2a1ebcabfb4834f42da61610bacdf | [
"MIT"
] | null | null | null | import numpy as np
from math import hypot as hyp
class Robot:
def __init__(self, diameter, initial_theta, initial_position):
# Robot specifications
self.diameter = diameter
self.radius = int(diameter / 2)
self.position = initial_position
# Rotation is in rads
self.... | 46.126354 | 122 | 0.591688 | 1,652 | 12,777 | 4.340194 | 0.110169 | 0.068898 | 0.055649 | 0.052162 | 0.590516 | 0.518271 | 0.461506 | 0.422873 | 0.36848 | 0.295676 | 0 | 0.04381 | 0.301479 | 12,777 | 276 | 123 | 46.293478 | 0.759552 | 0.089614 | 0 | 0.243523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088083 | false | 0 | 0.010363 | 0 | 0.134715 | 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 |
77b9b6901e4cb4106030a4e8cd51ce978af0e6bd | 2,613 | py | Python | backblaze/tests/blocking/test_file.py | WardPearce/aiob2 | 3dcff9c3aa7612ce7b43375fca379c1358121a4a | [
"MIT"
] | null | null | null | backblaze/tests/blocking/test_file.py | WardPearce/aiob2 | 3dcff9c3aa7612ce7b43375fca379c1358121a4a | [
"MIT"
] | null | null | null | backblaze/tests/blocking/test_file.py | WardPearce/aiob2 | 3dcff9c3aa7612ce7b43375fca379c1358121a4a | [
"MIT"
] | 1 | 2019-07-16T03:38:49.000Z | 2019-07-16T03:38:49.000Z | import unittest
from uuid import uuid4
from os import path
from .client import CLIENT
from ...settings import (
BucketSettings,
UploadSettings,
PartSettings,
CopyFileSettings
)
from ...models.file import FileModel, PartModel
from ...bucket.blocking import BlockingFile
class TestBlockingFile(unitt... | 22.921053 | 58 | 0.565251 | 268 | 2,613 | 5.335821 | 0.246269 | 0.05035 | 0.027273 | 0.035664 | 0.377622 | 0.377622 | 0.377622 | 0.233566 | 0.167832 | 0.167832 | 0 | 0.005708 | 0.329506 | 2,613 | 113 | 59 | 23.123894 | 0.810502 | 0 | 0 | 0.37037 | 0 | 0 | 0.057405 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.012346 | false | 0 | 0.08642 | 0 | 0.111111 | 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 |
77bb0202fbcb60692c326fef16e93e7f15657559 | 616 | py | Python | tests/test_dataset.py | kilsenp/triplet-reid-pytorch | 0cd2c2ac638d22745483b3d12ccb5c160f0bf3c3 | [
"MIT"
] | 41 | 2018-06-21T09:36:23.000Z | 2021-05-07T22:06:25.000Z | tests/test_dataset.py | kilsen512/triplet-reid-pytorch | 0cd2c2ac638d22745483b3d12ccb5c160f0bf3c3 | [
"MIT"
] | 3 | 2018-06-20T10:35:32.000Z | 2020-11-17T20:16:03.000Z | tests/test_dataset.py | kilsen512/triplet-reid-pytorch | 0cd2c2ac638d22745483b3d12ccb5c160f0bf3c3 | [
"MIT"
] | 10 | 2018-05-18T07:34:56.000Z | 2021-01-16T00:02:12.000Z | import sys
from os import path
sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) )
import unittest
from csv_dataset import *
class TestMarket(unittest.TestCase):
def test_make_dataset(self):
csv_f... | 30.8 | 97 | 0.600649 | 68 | 616 | 5.132353 | 0.558824 | 0.063037 | 0.08596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025522 | 0.300325 | 616 | 19 | 98 | 32.421053 | 0.784223 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 0.157468 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
77bb5640e0e164a57f7b3d1cb8fe5afab8675900 | 3,695 | py | Python | help/forms.py | pincoin/rakmai | d9daa399aff50712a86b2dec9d94e622237b25b0 | [
"MIT"
] | 11 | 2018-04-02T16:36:19.000Z | 2019-07-10T05:54:58.000Z | help/forms.py | pincoin/rakmai | d9daa399aff50712a86b2dec9d94e622237b25b0 | [
"MIT"
] | 22 | 2019-01-01T20:40:21.000Z | 2022-02-10T08:06:39.000Z | help/forms.py | pincoin/rakmai | d9daa399aff50712a86b2dec9d94e622237b25b0 | [
"MIT"
] | 4 | 2019-03-12T14:24:37.000Z | 2022-01-07T16:20:22.000Z | from crispy_forms.helper import (
FormHelper, Layout
)
from crispy_forms.layout import (
HTML, Fieldset, Submit
)
from django import forms
from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from shop import models
class FaqMessageAdminForm(forms.ModelForm):
class Meta:... | 31.853448 | 118 | 0.568065 | 394 | 3,695 | 5.19797 | 0.238579 | 0.058594 | 0.041016 | 0.048828 | 0.638672 | 0.561035 | 0.527832 | 0.527832 | 0.527832 | 0.495605 | 0 | 0.002654 | 0.286062 | 3,695 | 115 | 119 | 32.130435 | 0.773692 | 0.030041 | 0 | 0.555556 | 0 | 0.044444 | 0.286952 | 0.024588 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.211111 | 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 |
77c4ac6e0829dc7178a6b601892640733f30e784 | 2,736 | py | Python | hmrc_sdes/tests/test_client.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 14 | 2020-03-25T11:11:29.000Z | 2022-03-08T20:41:33.000Z | hmrc_sdes/tests/test_client.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 352 | 2020-03-25T10:42:09.000Z | 2022-03-30T15:32:26.000Z | hmrc_sdes/tests/test_client.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 3 | 2020-08-06T12:22:41.000Z | 2022-01-16T11:51:12.000Z | import json
import os
from hashlib import md5
from unittest.mock import Mock
import pytest
from common.tests import factories
from hmrc_sdes.api_client import HmrcSdesClient
pytestmark = pytest.mark.django_db
def test_sdes_client(responses):
responses.add(
responses.POST,
url="https://test-api... | 30.065934 | 108 | 0.666667 | 328 | 2,736 | 5.42378 | 0.396341 | 0.02923 | 0.025295 | 0.026981 | 0.136594 | 0.091062 | 0.062957 | 0.062957 | 0.062957 | 0.062957 | 0 | 0.009259 | 0.210526 | 2,736 | 90 | 109 | 30.4 | 0.814352 | 0.076023 | 0 | 0.090909 | 0 | 0.015152 | 0.256939 | 0.074148 | 0 | 0 | 0 | 0 | 0.106061 | 1 | 0.030303 | false | 0.015152 | 0.106061 | 0 | 0.136364 | 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 |