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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fdbd68dd1e0a0ba0978c1bd0880d05f492ec5829 | 3,063 | py | Python | fluentcms_bootstrap_grid/content_plugins.py | edoburu/fluentcms-bootstrap-grid | 67a8255e34e22284eeb05c04517671311305d370 | [
"Apache-2.0"
] | null | null | null | fluentcms_bootstrap_grid/content_plugins.py | edoburu/fluentcms-bootstrap-grid | 67a8255e34e22284eeb05c04517671311305d370 | [
"Apache-2.0"
] | null | null | null | fluentcms_bootstrap_grid/content_plugins.py | edoburu/fluentcms-bootstrap-grid | 67a8255e34e22284eeb05c04517671311305d370 | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.utils.encoding import force_text
from django.utils.translation import pgettext, ugettext_lazy as _
from fluent_contents.extensions import ContainerPlugin, plugin_pool, ContentItemForm
from . import appsettings
from .models import BootstrapRow, BootstrapColumn
GRID_COLUMNS = appset... | 32.935484 | 90 | 0.642507 | 347 | 3,063 | 5.340058 | 0.268012 | 0.053427 | 0.071236 | 0.041015 | 0.229358 | 0.065839 | 0.025904 | 0.025904 | 0 | 0 | 0 | 0.003777 | 0.222005 | 3,063 | 92 | 91 | 33.293478 | 0.773815 | 0.019915 | 0 | 0.029851 | 0 | 0 | 0.184371 | 0.038566 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.089552 | 0 | 0.328358 | 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 |
fdbd9c9ab6b561ed49a22efac24abb031c9653d8 | 8,083 | py | Python | study.py | Yougeeg/zhihuiguo | 21cfa4210b011e0fbc200774b88e570d21e30ab2 | [
"MIT"
] | null | null | null | study.py | Yougeeg/zhihuiguo | 21cfa4210b011e0fbc200774b88e570d21e30ab2 | [
"MIT"
] | null | null | null | study.py | Yougeeg/zhihuiguo | 21cfa4210b011e0fbc200774b88e570d21e30ab2 | [
"MIT"
] | 2 | 2017-11-04T08:46:04.000Z | 2018-09-12T08:16:44.000Z | import logging
import json
from datetime import datetime, timedelta
from getpass import getpass
import uuid
import requests
from Cryptodome.PublicKey import RSA
import utils
NONE, SIGN, TICKET = 0, 1, 2
SERVER = 'https://appstudentapi.zhihuishu.com'
SSL_VERIFY = True
TAKE_EXAMS = True
SKIP_FINAL_EXAM = False
EXAM_AU... | 39.237864 | 117 | 0.588767 | 974 | 8,083 | 4.756674 | 0.26694 | 0.032376 | 0.025901 | 0.020505 | 0.154328 | 0.137492 | 0.116339 | 0.092597 | 0.06281 | 0.045111 | 0 | 0.008547 | 0.247309 | 8,083 | 205 | 118 | 39.429268 | 0.752959 | 0.005444 | 0 | 0.091429 | 0 | 0.005714 | 0.243405 | 0.051269 | 0 | 0 | 0 | 0 | 0.005714 | 1 | 0.017143 | false | 0.022857 | 0.057143 | 0 | 0.097143 | 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 |
fdc0b230d2a0f01f084eb9ceb1e8ca8a841fb58f | 1,440 | py | Python | python/controllers/ner_annotation_api.py | barkavi87/anuvaad-corpus | 9ea832f4228f61a7d4998205976629ea4b7c3d70 | [
"MIT"
] | 2 | 2019-12-20T08:58:10.000Z | 2020-05-15T14:17:43.000Z | python/controllers/ner_annotation_api.py | barkavi87/anuvaad-corpus | 9ea832f4228f61a7d4998205976629ea4b7c3d70 | [
"MIT"
] | 73 | 2019-08-12T16:17:33.000Z | 2022-01-13T01:24:38.000Z | python/controllers/ner_annotation_api.py | barkavi87/anuvaad-corpus | 9ea832f4228f61a7d4998205976629ea4b7c3d70 | [
"MIT"
] | 1 | 2020-08-24T09:51:46.000Z | 2020-08-24T09:51:46.000Z | import os
import urllib.request
from flask import Flask, request, redirect, render_template, jsonify
from flask import Blueprint, request, current_app as app
from controllers.sc_judgment_header_ner_eval import SC_ner_annotation
import json
from models.response import CustomResponse
from models.status import Status
ner_... | 43.636364 | 107 | 0.702083 | 190 | 1,440 | 5.036842 | 0.378947 | 0.058516 | 0.045977 | 0.062696 | 0.15256 | 0.15256 | 0 | 0 | 0 | 0 | 0 | 0.002613 | 0.202778 | 1,440 | 32 | 108 | 45 | 0.83101 | 0 | 0 | 0.068966 | 0 | 0 | 0.121612 | 0.057679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.275862 | 0 | 0.413793 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fdc1c97e35e98b3788187bd4a1997c5b2842cc3b | 4,594 | py | Python | HandGenerator/HandGenerator.py | VASST/SlicerLeapMotion | d20215fb657eb5c972d1fe380bdf2d0479796c93 | [
"MIT"
] | null | null | null | HandGenerator/HandGenerator.py | VASST/SlicerLeapMotion | d20215fb657eb5c972d1fe380bdf2d0479796c93 | [
"MIT"
] | 2 | 2019-09-06T16:06:20.000Z | 2020-02-16T17:15:28.000Z | HandGenerator/HandGenerator.py | VASST/SlicerLeapMotion | d20215fb657eb5c972d1fe380bdf2d0479796c93 | [
"MIT"
] | 1 | 2020-01-14T17:49:31.000Z | 2020-01-14T17:49:31.000Z | import sys
import os
import unittest
import vtk, qt, ctk, slicer
from slicer.ScriptedLoadableModule import *
import logging
import numpy as np
#
# HandGenerator
#
class HandGenerator(ScriptedLoadableModule):
def __init__(self, parent):
ScriptedLoadableModule.__init__(self, parent)
self.parent.title = "Hand ... | 38.932203 | 233 | 0.680888 | 503 | 4,594 | 6.178926 | 0.377734 | 0.027027 | 0.050193 | 0.053089 | 0.156692 | 0.04955 | 0.014157 | 0.014157 | 0 | 0 | 0 | 0.00835 | 0.217893 | 4,594 | 118 | 234 | 38.932203 | 0.856666 | 0.055943 | 0 | 0.186813 | 0 | 0.010989 | 0.140712 | 0.012015 | 0 | 0 | 0 | 0.008475 | 0 | 1 | 0.054945 | false | 0 | 0.076923 | 0 | 0.153846 | 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 |
fdc3fc24cea107cba4ab6159b29d6bd76397bdc9 | 434 | py | Python | Pratical/Class02/metodo_da_bissecao.py | JoaoCostaIFG/MNUM | 6e042d8a6f64feb9eae9c79afec2fbab51f46fbd | [
"MIT"
] | 1 | 2019-12-07T10:34:30.000Z | 2019-12-07T10:34:30.000Z | Pratical/Class02/metodo_da_bissecao.py | JoaoCostaIFG/MNUM | 6e042d8a6f64feb9eae9c79afec2fbab51f46fbd | [
"MIT"
] | null | null | null | Pratical/Class02/metodo_da_bissecao.py | JoaoCostaIFG/MNUM | 6e042d8a6f64feb9eae9c79afec2fbab51f46fbd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Pesquisa binaria
# Read
num = int(input("Number to find the sqrt of? "))
index = 0
step = num / 2
prox = True
while abs(index * index - num) > 1e-10:
if (prox):
index += step
else:
index -= step
step = step / 2
if (index * index) < num:
prox = True
... | 17.36 | 82 | 0.534562 | 59 | 434 | 3.932203 | 0.559322 | 0.068966 | 0.112069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0.313364 | 434 | 24 | 83 | 18.083333 | 0.751678 | 0.099078 | 0 | 0.266667 | 0 | 0 | 0.160207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fdc4efcf38d739230cb577df9971b45dd3d12756 | 2,625 | py | Python | final/NerualNetworks/utils/MakeData.py | XuYi-fei/HUST-EIC-MathematicalModeling | 73797bdba17d4f759be3a39603b42be081a98e5c | [
"MIT"
] | 1 | 2021-05-04T12:29:21.000Z | 2021-05-04T12:29:21.000Z | final/NerualNetworks/utils/MakeData.py | XuYi-fei/HUST-EIC-MathematicalModeling | 73797bdba17d4f759be3a39603b42be081a98e5c | [
"MIT"
] | null | null | null | final/NerualNetworks/utils/MakeData.py | XuYi-fei/HUST-EIC-MathematicalModeling | 73797bdba17d4f759be3a39603b42be081a98e5c | [
"MIT"
] | null | null | null | import pandas as pd
import os
import random
class MakeDataset():
def __init__(self, known=30, predict=7, ratio=0.4, path=None):
# ratio means the valid/(train + valid)
assert path is not None, "The path is invalid"
self.df = pd.read_excel(path)
self.columns = self.df.columns
... | 34.090909 | 196 | 0.55619 | 313 | 2,625 | 4.549521 | 0.290735 | 0.119382 | 0.067416 | 0.089888 | 0.260534 | 0.219803 | 0.135534 | 0.081461 | 0.081461 | 0.081461 | 0 | 0.015917 | 0.305905 | 2,625 | 76 | 197 | 34.539474 | 0.765642 | 0.063238 | 0 | 0.109091 | 0 | 0.018182 | 0.077143 | 0.048163 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0.054545 | false | 0 | 0.054545 | 0 | 0.163636 | 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 |
fdc5979ebdcfef679c432bdc3659a7c209d59706 | 326 | py | Python | chapter06/example612.py | yozw/lio-files | e036bc868207ec045a804495fc40cf3a48e37d6d | [
"MIT"
] | null | null | null | chapter06/example612.py | yozw/lio-files | e036bc868207ec045a804495fc40cf3a48e37d6d | [
"MIT"
] | null | null | null | chapter06/example612.py | yozw/lio-files | e036bc868207ec045a804495fc40cf3a48e37d6d | [
"MIT"
] | null | null | null | from math import sqrt
from numpy import matrix
from intpm import intpm
A = matrix([[1, 0, 1, 0], [0, 1, 0, 1]])
b = matrix([1, 1]).T
c = matrix([-1, -2, 0, 0]).T
mu = 100
x1 = 0.5 * (-2 * mu + 1 + sqrt(1 + 4*mu*mu))
x2 = 0.5 * (-mu + 1 + sqrt(1 + mu * mu))
x0 = matrix([x1, x2, 1 - x1, 1 - x2]).T
intpm(A, b, c, x0, ... | 18.111111 | 44 | 0.509202 | 71 | 326 | 2.338028 | 0.295775 | 0.126506 | 0.036145 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151639 | 0.251534 | 326 | 17 | 45 | 19.176471 | 0.528689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 |
fdcf6f1f635a8225a76ad32f552e3db603ad1c14 | 2,369 | py | Python | jobs/api/models/keyword.py | gitdaniel228/jobSearch | 5dc1c69a3750f92ca0bcd378dfdc500143204a5a | [
"MIT"
] | null | null | null | jobs/api/models/keyword.py | gitdaniel228/jobSearch | 5dc1c69a3750f92ca0bcd378dfdc500143204a5a | [
"MIT"
] | null | null | null | jobs/api/models/keyword.py | gitdaniel228/jobSearch | 5dc1c69a3750f92ca0bcd378dfdc500143204a5a | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib import admin
from .country import Country
from .filter import Filter
from .setting import Setting
from .site import Site
class Keyword(models.Model):
site = models.ForeignKey('Site')
phrase = models.CharField(max_length=50)
feed_url = models.CharField(
... | 31.171053 | 78 | 0.594344 | 287 | 2,369 | 4.787456 | 0.393728 | 0.026201 | 0.050946 | 0.041485 | 0.050218 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006448 | 0.279865 | 2,369 | 75 | 79 | 31.586667 | 0.798945 | 0.027016 | 0 | 0 | 0 | 0 | 0.096564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.103448 | 0.017241 | 0.396552 | 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 |
fdd4d7c9ea8afe2d857b858645122b0c43587a2f | 4,262 | py | Python | test/units/plugins/inventory/test_script.py | Container-Projects/ansible-provider-docs | 100b695b0b0c4d8d08af362069557ffc735d0d7e | [
"PSF-2.0",
"BSD-2-Clause",
"MIT"
] | 37 | 2017-08-15T15:02:43.000Z | 2021-07-23T03:44:31.000Z | test/units/plugins/inventory/test_script.py | Container-Projects/ansible-provider-docs | 100b695b0b0c4d8d08af362069557ffc735d0d7e | [
"PSF-2.0",
"BSD-2-Clause",
"MIT"
] | 12 | 2018-01-10T05:25:25.000Z | 2021-11-28T06:55:48.000Z | test/units/plugins/inventory/test_script.py | Container-Projects/ansible-provider-docs | 100b695b0b0c4d8d08af362069557ffc735d0d7e | [
"PSF-2.0",
"BSD-2-Clause",
"MIT"
] | 49 | 2017-08-15T09:52:13.000Z | 2022-03-21T17:11:54.000Z | # -*- coding: utf-8 -*-
# Copyright 2017 Chris Meyers <cmeyers@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (... | 40.207547 | 135 | 0.680432 | 543 | 4,262 | 5.209945 | 0.355433 | 0.038176 | 0.04772 | 0.03959 | 0.337575 | 0.30046 | 0.270767 | 0.270767 | 0.270767 | 0.270767 | 0 | 0.00455 | 0.22642 | 4,262 | 105 | 136 | 40.590476 | 0.853503 | 0.169873 | 0 | 0.222222 | 0 | 0 | 0.184712 | 0.019892 | 0 | 0 | 0 | 0 | 0.063492 | 1 | 0.111111 | false | 0 | 0.126984 | 0.015873 | 0.31746 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fdda757521b551e07a7f4e98103818cc6dd32745 | 10,501 | py | Python | asr_deepspeech/modules/deepspeech.py | shangdibufashi/ASRDeepSpeech | f11134abb79e98062fbc25fab99ca4cf675e538b | [
"MIT"
] | 44 | 2020-03-03T13:05:57.000Z | 2022-03-24T03:42:31.000Z | asr_deepspeech/modules/deepspeech.py | shangdibufashi/ASRDeepSpeech | f11134abb79e98062fbc25fab99ca4cf675e538b | [
"MIT"
] | 6 | 2020-12-15T10:58:19.000Z | 2021-10-12T01:59:17.000Z | asr_deepspeech/modules/deepspeech.py | shangdibufashi/ASRDeepSpeech | f11134abb79e98062fbc25fab99ca4cf675e538b | [
"MIT"
] | 13 | 2020-05-20T06:42:20.000Z | 2022-03-24T03:42:31.000Z | import math
from collections import OrderedDict
import json
from asr_deepspeech.decoders import GreedyDecoder
import os
from ascii_graph import Pyasciigraph
from asr_deepspeech.data.loaders import AudioDataLoader
from asr_deepspeech.data.samplers import BucketingSampler
from .blocks import *
from asr_deepspeech.data.da... | 42.172691 | 119 | 0.517475 | 1,156 | 10,501 | 4.500865 | 0.224048 | 0.018835 | 0.022487 | 0.022871 | 0.12858 | 0.081299 | 0.065539 | 0.060734 | 0.060734 | 0.060734 | 0 | 0.023349 | 0.380059 | 10,501 | 248 | 120 | 42.342742 | 0.775883 | 0.050186 | 0 | 0.037209 | 0 | 0 | 0.034378 | 0.0124 | 0 | 0 | 0 | 0 | 0.009302 | 1 | 0.027907 | false | 0.004651 | 0.055814 | 0 | 0.106977 | 0.009302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fddb0cd219604b7758190e6bb17c4dc60b79a754 | 1,099 | py | Python | Scripts/simulation/ensemble/ensemble_interactions.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/ensemble/ensemble_interactions.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/ensemble/ensemble_interactions.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\ensemble\ensemble_interactions.py
# Compiled at: 2016-07-13 03:28:12
# Size of source mod 2**32: 107... | 37.896552 | 107 | 0.724295 | 147 | 1,099 | 5.244898 | 0.632653 | 0.007782 | 0.035019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073415 | 0.181984 | 1,099 | 29 | 108 | 37.896552 | 0.784205 | 0.286624 | 0 | 0 | 0 | 0 | 0.012853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.055556 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fddc8823ffb3b416234d50c4b32a14d5668ecba6 | 1,663 | py | Python | icmpv6socket/__init__.py | TheDiveO/icmpv6-socket | fe3ee52e6793e3739975aea87e2b6511be96fa12 | [
"Apache-2.0"
] | null | null | null | icmpv6socket/__init__.py | TheDiveO/icmpv6-socket | fe3ee52e6793e3739975aea87e2b6511be96fa12 | [
"Apache-2.0"
] | null | null | null | icmpv6socket/__init__.py | TheDiveO/icmpv6-socket | fe3ee52e6793e3739975aea87e2b6511be96fa12 | [
"Apache-2.0"
] | null | null | null |
import socket
from typing import Optional, List
__version__ = '0.1.0'
class ICMPv6Socket(socket.socket):
# From https://elixir.bootlin.com/linux/v4.18/source/include/linux/socket.h#L312
SOL_ICMPV6 = 58 # type: int
# From https://elixir.bootlin.com/linux/v4.18/source/include/uapi/linux/icmpv6.h#L139
... | 36.955556 | 89 | 0.615755 | 217 | 1,663 | 4.529954 | 0.465438 | 0.085453 | 0.056968 | 0.044761 | 0.144456 | 0.095626 | 0.095626 | 0.095626 | 0.095626 | 0.095626 | 0 | 0.042017 | 0.284426 | 1,663 | 44 | 90 | 37.795455 | 0.784034 | 0.387252 | 0 | 0 | 0 | 0 | 0.01357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 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 |
fddd39b69360c06e6b24844fb2887dcd6cf29f89 | 603 | py | Python | game/pkchess/res/map.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 5 | 2020-08-26T20:12:00.000Z | 2020-12-11T16:39:22.000Z | game/pkchess/res/map.py | RaenonX/Jelly-Bot | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 234 | 2019-12-14T03:45:19.000Z | 2020-08-26T18:55:19.000Z | game/pkchess/res/map.py | RaenonX/Jelly-Bot-API | c7da1e91783dce3a2b71b955b3a22b68db9056cf | [
"MIT"
] | 2 | 2019-10-23T15:21:15.000Z | 2020-05-22T09:35:55.000Z | """Game map resource manager."""
__all__ = ("get_map_template",)
_cache = {}
def get_map_template(name: str):
"""
Get a map template by its ``name``.
Returns ``None`` if not found.
Loaded :class:`MapTemplate` will be cached until the application exits.
:param name: name of the map template.
... | 24.12 | 81 | 0.658375 | 82 | 603 | 4.670732 | 0.54878 | 0.143603 | 0.073107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228856 | 603 | 24 | 82 | 25.125 | 0.823656 | 0.475954 | 0 | 0 | 0 | 0 | 0.154122 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 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 |
fddd8f9fba011d6c4a116c9eb70ffe36d73e109e | 7,127 | py | Python | public_data/views.py | danamlewis/open-humans | 9b08310cf151f49032b66ddd005bbd47d466cc4e | [
"MIT"
] | 57 | 2016-09-01T21:55:52.000Z | 2022-03-27T22:15:32.000Z | public_data/views.py | danamlewis/open-humans | 9b08310cf151f49032b66ddd005bbd47d466cc4e | [
"MIT"
] | 464 | 2015-03-23T18:08:28.000Z | 2016-08-25T04:57:36.000Z | public_data/views.py | danamlewis/open-humans | 9b08310cf151f49032b66ddd005bbd47d466cc4e | [
"MIT"
] | 25 | 2017-01-24T16:23:27.000Z | 2021-11-07T01:51:42.000Z | from django.conf import settings
from django.contrib import messages as django_messages
from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from django.views.decorators.http import require_POST
from django.views.generic.base import RedirectView, TemplateView
from django.views.gener... | 30.852814 | 88 | 0.638698 | 795 | 7,127 | 5.603774 | 0.25912 | 0.029181 | 0.020202 | 0.024691 | 0.205612 | 0.170819 | 0.148148 | 0.127048 | 0.104602 | 0.104602 | 0 | 0.000192 | 0.268697 | 7,127 | 230 | 89 | 30.986957 | 0.854566 | 0.127543 | 0 | 0.173913 | 0 | 0 | 0.097211 | 0.019375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07971 | false | 0 | 0.094203 | 0.014493 | 0.405797 | 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 |
fde68e690db6e169850d5ee88a2ba6ad82e43a9a | 853 | py | Python | beyondtheadmin/invoices/templatetags/fullurl.py | gfavre/invoice-manager | 2a1db22edd51b461c090282c6fc1f290f3265379 | [
"MIT"
] | 1 | 2021-11-27T06:40:34.000Z | 2021-11-27T06:40:34.000Z | beyondtheadmin/invoices/templatetags/fullurl.py | gfavre/invoice-manager | 2a1db22edd51b461c090282c6fc1f290f3265379 | [
"MIT"
] | 2 | 2021-05-13T04:50:50.000Z | 2022-02-28T21:06:24.000Z | beyondtheadmin/invoices/templatetags/fullurl.py | gfavre/invoice-manager | 2a1db22edd51b461c090282c6fc1f290f3265379 | [
"MIT"
] | null | null | null | import math
from django import template
from django.utils.safestring import mark_safe
register = template.Library()
@register.simple_tag(takes_context=True)
def buildfullurl(context, url):
"""Converts relative URL to absolute.
For example:
{% buildfullurl article.get_absolute_url %}
or:
... | 26.65625 | 106 | 0.637749 | 101 | 853 | 5.277228 | 0.564356 | 0.045028 | 0.052533 | 0.06379 | 0.120075 | 0.120075 | 0.120075 | 0.120075 | 0 | 0 | 0 | 0.005952 | 0.212192 | 853 | 31 | 107 | 27.516129 | 0.787202 | 0.16061 | 0 | 0 | 0 | 0 | 0.121916 | 0.087083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fde73e6cb304ab68d07ceb772b316e170a4014cb | 967 | py | Python | big_o_project/Task4.py | CTylerD/Data-Structures-Algorithms-Projects | e72248a6433c0242003edf404a715d9f53e3792d | [
"MIT"
] | null | null | null | big_o_project/Task4.py | CTylerD/Data-Structures-Algorithms-Projects | e72248a6433c0242003edf404a715d9f53e3792d | [
"MIT"
] | null | null | null | big_o_project/Task4.py | CTylerD/Data-Structures-Algorithms-Projects | e72248a6433c0242003edf404a715d9f53e3792d | [
"MIT"
] | null | null | null | import csv
with open('texts.csv', 'r') as f:
reader = csv.reader(f)
texts = list(reader)
with open('calls.csv', 'r') as f:
reader = csv.reader(f)
calls = list(reader)
def create_lists_of_users():
outgoing_callers = set()
not_telemarketers = set()
for idx, call in enumerate(calls):
... | 26.861111 | 69 | 0.709411 | 126 | 967 | 5.238095 | 0.349206 | 0.169697 | 0.086364 | 0.021212 | 0.187879 | 0.069697 | 0.069697 | 0.069697 | 0 | 0 | 0 | 0.005025 | 0.176836 | 967 | 35 | 70 | 27.628571 | 0.824121 | 0 | 0 | 0.08 | 0 | 0 | 0.061013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.04 | 0 | 0.16 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fde75eeec45ccf538859617be8047b6998c73dee | 971 | py | Python | codingstars/platinum3/subarray-sum2.py | yehyunchoi/Algorithm | 35e32159ee13b46b30b543fa79ab6e81d6719f13 | [
"MIT"
] | null | null | null | codingstars/platinum3/subarray-sum2.py | yehyunchoi/Algorithm | 35e32159ee13b46b30b543fa79ab6e81d6719f13 | [
"MIT"
] | null | null | null | codingstars/platinum3/subarray-sum2.py | yehyunchoi/Algorithm | 35e32159ee13b46b30b543fa79ab6e81d6719f13 | [
"MIT"
] | null | null | null | """
[1,2,3,4]의 부분 배열은 다음과 같이 16개가 있습니다.
[]
[1]
[1, 2]
[1, 2, 3]
[1, 2, 3, 4]
[1, 2, 4]
[1, 3]
[1, 3, 4]
[1, 4]
[2]
[2, 3]
[2, 3, 4]
[2, 4]
[3]
[3, 4]
[4]
처음에 있는 blank list([])의 값을 0으로 계산하면
모든 부분 배열의 합(subarray sum)은 80입니다.
숫자로 된 배열을 입력 받아서,
부분 배열의 합을 구하여 보세요.
Input
숫자로 된 배열이 입력됩니다.
숫자는 정수입니다.
Output
부분 배열의 합을 출력합... | 15.412698 | 93 | 0.582904 | 187 | 971 | 3.026738 | 0.540107 | 0.017668 | 0.015901 | 0.014134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078912 | 0.243048 | 971 | 63 | 94 | 15.412698 | 0.691156 | 0.687951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fde7b9b224da23bd030fbd50ece0e5433d5c208e | 1,683 | py | Python | fastalite/__main__.py | nhoffman/fastalite | 2571c126976f26c8ca06401586559f288245ca8d | [
"MIT"
] | 2 | 2017-02-16T14:30:18.000Z | 2019-10-03T19:20:57.000Z | fastalite/__main__.py | nhoffman/fastalite | 2571c126976f26c8ca06401586559f288245ca8d | [
"MIT"
] | 4 | 2017-06-30T14:05:08.000Z | 2022-02-17T00:03:28.000Z | fastalite/__main__.py | nhoffman/fastalite | 2571c126976f26c8ca06401586559f288245ca8d | [
"MIT"
] | null | null | null | """Command line interface to the fastlite package
"""
import sys
import argparse
from .fastalite import fastalite, fastqlite, Opener
from . import __version__
def count(seqs, fname):
i = 1
for i, seq in enumerate(seqs, 1):
pass
print(('{}\t{}'.format(fname, i)))
def names(seqs, fname):
fo... | 28.525424 | 67 | 0.572193 | 195 | 1,683 | 4.810256 | 0.45641 | 0.028785 | 0.03838 | 0.036247 | 0.092751 | 0.057569 | 0.057569 | 0.057569 | 0 | 0 | 0 | 0.004163 | 0.286393 | 1,683 | 58 | 68 | 29.017241 | 0.776853 | 0.027332 | 0 | 0.04878 | 0 | 0 | 0.120933 | 0.019644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0.02439 | 0.097561 | 0 | 0.219512 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fdeb572c08b15704dfb038c3b7db65f44b06027a | 9,482 | py | Python | RpgPiratesAndFishers/Individual.py | LucasRR94/RPG_Pirates_and_Fishers | 75bbb57e916f7a878de34676b1d988e5d2506121 | [
"Apache-2.0"
] | null | null | null | RpgPiratesAndFishers/Individual.py | LucasRR94/RPG_Pirates_and_Fishers | 75bbb57e916f7a878de34676b1d988e5d2506121 | [
"Apache-2.0"
] | null | null | null | RpgPiratesAndFishers/Individual.py | LucasRR94/RPG_Pirates_and_Fishers | 75bbb57e916f7a878de34676b1d988e5d2506121 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from libGamePiratesAndFishers import assertIfIsWeelFormat,makeSureThatIsnumberLimited
class Individual(object):
"""
This class Define object type Individual, it is a base for object used for being the base
of fishers, and is used for enemies in application.
"""
def ... | 25.489247 | 341 | 0.665999 | 1,217 | 9,482 | 5.141331 | 0.143796 | 0.015183 | 0.019338 | 0.023014 | 0.491769 | 0.444622 | 0.413137 | 0.392201 | 0.358479 | 0.345693 | 0 | 0.021058 | 0.228749 | 9,482 | 372 | 342 | 25.489247 | 0.834541 | 0.420165 | 0 | 0.596591 | 0 | 0 | 0.084289 | 0.023318 | 0.005682 | 0 | 0 | 0 | 0.011364 | 1 | 0.085227 | false | 0 | 0.005682 | 0 | 0.244318 | 0.005682 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fdedc1899cf1d0a458c3cd2aa54431d61028feb7 | 1,544 | py | Python | 08_apples_and_bananas/apples.py | FabrizioPe/tiny_python_projects | e130d55d36cac43496a8ad482b6159234b5122f3 | [
"MIT"
] | null | null | null | 08_apples_and_bananas/apples.py | FabrizioPe/tiny_python_projects | e130d55d36cac43496a8ad482b6159234b5122f3 | [
"MIT"
] | null | null | null | 08_apples_and_bananas/apples.py | FabrizioPe/tiny_python_projects | e130d55d36cac43496a8ad482b6159234b5122f3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Author : FabrizioPe
Date : 2021-02-10
Purpose: Find and replace vowels in a given text
"""
import argparse
import os
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description='Apple... | 26.169492 | 72 | 0.483808 | 158 | 1,544 | 4.639241 | 0.525316 | 0.068213 | 0.046385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008249 | 0.293394 | 1,544 | 58 | 73 | 26.62069 | 0.663611 | 0.265544 | 0 | 0.066667 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.166667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fdedd48ecc2cd5713a5620f6663699573feeb1b9 | 1,434 | py | Python | utils.py | gabrs-sousa/brasil-rugby-ranking | 78b8f6b466e688f507cb9d97dbbb80442f3c67de | [
"MIT"
] | 1 | 2020-05-30T03:34:31.000Z | 2020-05-30T03:34:31.000Z | utils.py | gabrs-sousa/brasil-rugby-ranking | 78b8f6b466e688f507cb9d97dbbb80442f3c67de | [
"MIT"
] | null | null | null | utils.py | gabrs-sousa/brasil-rugby-ranking | 78b8f6b466e688f507cb9d97dbbb80442f3c67de | [
"MIT"
] | null | null | null | import pandas as pd
from openpyxl import worksheet
def map_team_names(names_sheet: worksheet, games_sheet: worksheet):
mapped_names = []
missing_names = set()
names_last_row = names_sheet.max_row
for row in range(1, names_last_row):
team_name = names_sheet.cell(row, 1).value
if team_... | 28.117647 | 74 | 0.679916 | 204 | 1,434 | 4.52451 | 0.406863 | 0.087757 | 0.069339 | 0.078007 | 0.130011 | 0.130011 | 0.130011 | 0.078007 | 0 | 0 | 0 | 0.006335 | 0.229428 | 1,434 | 50 | 75 | 28.68 | 0.828959 | 0.058577 | 0 | 0 | 0 | 0 | 0.057895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.060606 | 0 | 0.242424 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fdee1b940008dee7fb0abcb8d4fb0eaf97c8d578 | 8,889 | py | Python | mainapp/views.py | AHTOH2001/OOP_4_term | c9b0f64f3507486e0670cc95d7252862b673d845 | [
"MIT"
] | null | null | null | mainapp/views.py | AHTOH2001/OOP_4_term | c9b0f64f3507486e0670cc95d7252862b673d845 | [
"MIT"
] | null | null | null | mainapp/views.py | AHTOH2001/OOP_4_term | c9b0f64f3507486e0670cc95d7252862b673d845 | [
"MIT"
] | null | null | null | from django.core.mail import send_mail
from django.http import Http404
from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.models import User
from django.utils.datastructures import MultiValueDictKeyError
from django.utils import timezone
from django.contrib.auth i... | 39.15859 | 232 | 0.664867 | 1,013 | 8,889 | 5.698914 | 0.253702 | 0.029274 | 0.032912 | 0.021826 | 0.300537 | 0.241642 | 0.206478 | 0.170449 | 0.135805 | 0.135805 | 0 | 0.00366 | 0.231522 | 8,889 | 226 | 233 | 39.331858 | 0.841458 | 0.081336 | 0 | 0.263804 | 0 | 0.01227 | 0.220845 | 0.02934 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067485 | false | 0.01227 | 0.09816 | 0.018405 | 0.325153 | 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 |
fdef583937c7416dc3c1150c9fa7843d7266de92 | 1,941 | py | Python | extra/old-fix-midroll.py | FrederikBanke/critrolesync.github.io | ca09fff7541014d81472d687e48ecd5587cc15ff | [
"MIT"
] | 5 | 2020-06-29T13:39:07.000Z | 2022-02-07T00:43:55.000Z | extra/old-fix-midroll.py | FrederikBanke/critrolesync.github.io | ca09fff7541014d81472d687e48ecd5587cc15ff | [
"MIT"
] | 11 | 2020-06-28T09:45:38.000Z | 2022-03-30T17:56:35.000Z | extra/old-fix-midroll.py | FrederikBanke/critrolesync.github.io | ca09fff7541014d81472d687e48ecd5587cc15ff | [
"MIT"
] | 5 | 2020-06-29T21:17:13.000Z | 2021-09-08T06:34:32.000Z | def str2sec(string):
if len(string.split(':')) == 3:
hours, mins, secs = map(int, string.split(':'))
elif len(string.split(':')) == 2:
mins, secs = map(int, string.split(':'))
hours = 0
else:
raise ValueError('string must have the form [hh:]mm:ss : ' + str(string))
second... | 37.326923 | 98 | 0.548171 | 215 | 1,941 | 4.911628 | 0.413953 | 0.045455 | 0.036932 | 0.026515 | 0.191288 | 0.191288 | 0.075758 | 0.075758 | 0 | 0 | 0 | 0.034277 | 0.308604 | 1,941 | 51 | 99 | 38.058824 | 0.752608 | 0.106131 | 0 | 0.190476 | 0 | 0 | 0.189095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.119048 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fdf00539d71fcfd43067729f990a71a6b54c1f86 | 415 | py | Python | 102-neopixel.d/main.py | wa1tnr/cpx-basic-studies | 772d38803bc2394980d81cea7873a4bc027dfb9f | [
"MIT"
] | null | null | null | 102-neopixel.d/main.py | wa1tnr/cpx-basic-studies | 772d38803bc2394980d81cea7873a4bc027dfb9f | [
"MIT"
] | null | null | null | 102-neopixel.d/main.py | wa1tnr/cpx-basic-studies | 772d38803bc2394980d81cea7873a4bc027dfb9f | [
"MIT"
] | null | null | null | # Adafruit CircuitPython 2.2.0
# Adafruit CircuitPlayground Express
import board ; import neopixel; import time
pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, brightness=.2)
pixels.fill((0,0,0))
pixels.show()
def blue():
pixels.fill((0,0,22))
def magenta():
pixels.fill((22,0,22))
blue(); pixels.show(); t... | 23.055556 | 61 | 0.684337 | 64 | 415 | 4.4375 | 0.359375 | 0.035211 | 0.116197 | 0.126761 | 0.161972 | 0.161972 | 0.161972 | 0 | 0 | 0 | 0 | 0.068681 | 0.122892 | 415 | 17 | 62 | 24.411765 | 0.711538 | 0.151807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.272727 | 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 |
fdf306a6233eb15d853aa05d6d7553accacc2060 | 3,717 | py | Python | harmoni_detectors/harmoni_stt/test/test_deepspeech.py | interaction-lab/HARMONI | 9c88019601a983a1739744919a95247a997d3bb1 | [
"MIT"
] | 7 | 2020-09-02T06:31:21.000Z | 2022-02-18T21:16:44.000Z | harmoni_detectors/harmoni_stt/test/test_deepspeech.py | micolspitale93/HARMONI | cf6a13fb85e3efb4e421dbfd4555359c0a04acaa | [
"MIT"
] | 61 | 2020-05-15T16:46:32.000Z | 2021-07-28T17:44:49.000Z | harmoni_detectors/harmoni_stt/test/test_deepspeech.py | micolspitale93/HARMONI | cf6a13fb85e3efb4e421dbfd4555359c0a04acaa | [
"MIT"
] | 3 | 2020-10-05T23:01:29.000Z | 2022-03-02T11:53:34.000Z | #!/usr/bin/env python3
# Common Imports
import io
import rospy
import sys
import unittest
# Specific Imports
import time
import wave
from harmoni_common_lib.action_client import HarmoniActionClient
from harmoni_common_lib.constants import ActionType, DetectorNameSpace, SensorNameSpace, State
from audio_common_msgs.m... | 31.235294 | 107 | 0.65456 | 431 | 3,717 | 5.473318 | 0.338747 | 0.061043 | 0.033065 | 0.068673 | 0.117847 | 0.09114 | 0.09114 | 0 | 0 | 0 | 0 | 0.004673 | 0.251547 | 3,717 | 118 | 108 | 31.5 | 0.843278 | 0.059995 | 0 | 0.068966 | 0 | 0 | 0.206768 | 0.041009 | 0 | 0 | 0 | 0.008475 | 0.011494 | 1 | 0.091954 | false | 0 | 0.126437 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fdf47c8f7eacc32cfd98b13ee0730f15d82165c5 | 2,196 | py | Python | smoked/management/commands/smoked.py | martinsvoboda/django-smoked | 42b64fff23a37e3df42f8fc54535ea496dd27d84 | [
"MIT"
] | 6 | 2015-01-14T12:02:58.000Z | 2021-08-17T23:18:56.000Z | smoked/management/commands/smoked.py | martinsvoboda/django-smoked | 42b64fff23a37e3df42f8fc54535ea496dd27d84 | [
"MIT"
] | 7 | 2015-01-24T11:36:07.000Z | 2015-01-26T04:55:31.000Z | smoked/management/commands/smoked.py | martinsvoboda/django-smoked | 42b64fff23a37e3df42f8fc54535ea496dd27d84 | [
"MIT"
] | 1 | 2015-01-25T20:48:06.000Z | 2015-01-25T20:48:06.000Z | # coding: utf-8
from __future__ import absolute_import, unicode_literals
from optparse import make_option
import time
from django import VERSION
from django.core.management.base import NoArgsCommand
from smoked import default_registry
from smoked.runner import run_tests
stats_msg = """
Results
=======
Total: {total}... | 27.45 | 72 | 0.539617 | 243 | 2,196 | 4.786008 | 0.407407 | 0.042132 | 0.036114 | 0.048151 | 0.103181 | 0.061909 | 0 | 0 | 0 | 0 | 0 | 0.009635 | 0.338342 | 2,196 | 79 | 73 | 27.797468 | 0.790778 | 0.035064 | 0 | 0.109375 | 0 | 0 | 0.14279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.109375 | 0 | 0.203125 | 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 |
fdfa15c5c9e42a9b497c846a1dd12bc7ab7f4c76 | 623 | py | Python | code/waldo/conf/guisettings.py | amarallab/waldo | e38d23d9474a0bcb7a94e685545edb0115b12af4 | [
"MIT"
] | null | null | null | code/waldo/conf/guisettings.py | amarallab/waldo | e38d23d9474a0bcb7a94e685545edb0115b12af4 | [
"MIT"
] | null | null | null | code/waldo/conf/guisettings.py | amarallab/waldo | e38d23d9474a0bcb7a94e685545edb0115b12af4 | [
"MIT"
] | null | null | null | COLLIDER_SUITE_OFFSHOOT_RANGE = (0, 100)
COLLIDER_SUITE_SPLIT_ABS_RANGE = (0, 10)
COLLIDER_SUITE_SPLIT_REL_RANGE = (-1, 1, 2)
COLLIDER_SUITE_ASSIMILATE_SIZE_RANGE = (0, 10)
TAPE_FRAME_SEARCH_LIMIT_RANGE = (1, 100000)
TAPE_PIXEL_SEARCH_LIMIT_RANGE = (1, 1000000)
DEFAULT_CALIBRATION_ENCLOSURE_SIZE_RANGE = (0, 1000)
COLL... | 34.611111 | 52 | 0.781701 | 106 | 623 | 4.122642 | 0.40566 | 0.1373 | 0.048055 | 0.05492 | 0.084668 | 0.064073 | 0 | 0 | 0 | 0 | 0 | 0.117857 | 0.101124 | 623 | 18 | 53 | 34.611111 | 0.6625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fdfc80e749f6ee439afc826e7feee5425163a88f | 1,237 | py | Python | android_store_service/utils/config_utils.py | gpiress/android-store-service | da81c7e79a345d790f5e744fc8fdfae0e6941765 | [
"Apache-2.0"
] | 5 | 2020-12-10T14:05:04.000Z | 2020-12-18T09:04:35.000Z | android_store_service/utils/config_utils.py | gpiress/android-store-service | da81c7e79a345d790f5e744fc8fdfae0e6941765 | [
"Apache-2.0"
] | 4 | 2020-12-15T12:34:51.000Z | 2021-06-28T14:04:34.000Z | android_store_service/utils/config_utils.py | gpiress/android-store-service | da81c7e79a345d790f5e744fc8fdfae0e6941765 | [
"Apache-2.0"
] | 5 | 2020-12-15T12:10:22.000Z | 2022-03-18T20:06:38.000Z | # Copyright 2019 Spotify AB
#
# 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 in writing, s... | 29.452381 | 81 | 0.712207 | 188 | 1,237 | 4.585106 | 0.484043 | 0.069606 | 0.030162 | 0.037123 | 0.180974 | 0.180974 | 0.180974 | 0.180974 | 0.180974 | 0.180974 | 0 | 0.008048 | 0.196443 | 1,237 | 41 | 82 | 30.170732 | 0.859155 | 0.442199 | 0 | 0.315789 | 0 | 0 | 0.147929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0 | 0.473684 | 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 |
a90000a60889fa2e13612a2352497c1c01e09cb6 | 71,385 | py | Python | DeSu2SE.py | XxArcaiCxX/Devil-Survivor-2-Record-Breaker-Save-Editor | 872717f66f1d9045d48f8d4c2621a925ee4e2817 | [
"MIT"
] | null | null | null | DeSu2SE.py | XxArcaiCxX/Devil-Survivor-2-Record-Breaker-Save-Editor | 872717f66f1d9045d48f8d4c2621a925ee4e2817 | [
"MIT"
] | null | null | null | DeSu2SE.py | XxArcaiCxX/Devil-Survivor-2-Record-Breaker-Save-Editor | 872717f66f1d9045d48f8d4c2621a925ee4e2817 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import tkinter as tk
from tkinter import filedialog
from tkinter import messagebox
from tkinter import ttk
import os
import sys
print_n = sys.stdout.write
STAT_TXT = ("ST", "MA", "VI", "AG")
# Characters
CHAR_OFFSET = "0x24"
CHAR_ID = ("0x75", 2)
CHAR_LVL = ("0x79", 1)
CHAR_EXP = ("0x7C", 2)
... | 38.255627 | 118 | 0.525867 | 8,896 | 71,385 | 4.101731 | 0.184353 | 0.028502 | 0.026364 | 0.016772 | 0.317986 | 0.261476 | 0.24084 | 0.190879 | 0.183836 | 0.175505 | 0 | 0.110351 | 0.285802 | 71,385 | 1,865 | 119 | 38.276139 | 0.605359 | 0.021139 | 0 | 0.062983 | 0 | 0 | 0.22733 | 0 | 0 | 0 | 0.002307 | 0 | 0 | 1 | 0.013072 | false | 0.004753 | 0.003565 | 0 | 0.022579 | 0.008318 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a900d8dec7fd37ab4adca645a03f1689e7145bd6 | 6,692 | py | Python | tutorials/examples/interp_plot.py | ReynLieu/tf-pwa | f354b5036bc8c37ffba95849de5ec3367934eef8 | [
"MIT"
] | 4 | 2021-05-10T15:17:24.000Z | 2021-08-16T07:40:06.000Z | tutorials/examples/interp_plot.py | ReynLieu/tf-pwa | f354b5036bc8c37ffba95849de5ec3367934eef8 | [
"MIT"
] | 45 | 2020-10-24T08:26:19.000Z | 2022-03-20T06:14:58.000Z | tutorials/examples/interp_plot.py | ReynLieu/tf-pwa | f354b5036bc8c37ffba95849de5ec3367934eef8 | [
"MIT"
] | 8 | 2020-10-24T06:41:06.000Z | 2022-01-03T01:29:49.000Z | import json
import matplotlib.animation as animation
import matplotlib.pyplot as plt
import numpy as np
import scipy.signal as signal
import yaml
from mpl_toolkits.mplot3d.axes3d import Axes3D
from scipy.interpolate import interp1d
from tf_pwa.config_loader import ConfigLoader
from tf_pwa.experimental.extra_amp impor... | 27.539095 | 78 | 0.558876 | 1,127 | 6,692 | 3.157941 | 0.189885 | 0.011801 | 0.009834 | 0.011801 | 0.148356 | 0.111548 | 0.082046 | 0.066873 | 0.033717 | 0.024164 | 0 | 0.042044 | 0.257173 | 6,692 | 242 | 79 | 27.652893 | 0.673909 | 0.074567 | 0 | 0.140541 | 0 | 0 | 0.089829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064865 | false | 0 | 0.059459 | 0.005405 | 0.156757 | 0.005405 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a902196e210ce0c9d3fc255989473f3fdb1ab785 | 3,316 | py | Python | scripts/val_step_images_pull.py | neuroailab/curiosity_deprecated | 65f7cde13b07cdac52eed39535a94e7544c396b8 | [
"Apache-2.0"
] | null | null | null | scripts/val_step_images_pull.py | neuroailab/curiosity_deprecated | 65f7cde13b07cdac52eed39535a94e7544c396b8 | [
"Apache-2.0"
] | 2 | 2017-11-18T00:53:33.000Z | 2017-11-18T00:53:40.000Z | scripts/val_step_images_pull.py | neuroailab/curiosity_deprecated | 65f7cde13b07cdac52eed39535a94e7544c396b8 | [
"Apache-2.0"
] | null | null | null | '''
A script for accessing visualization data (saving images at validation steps during training) and saving them to a local directory.
'''
import pymongo as pm
import pickle
import os
import gridfs
import cPickle
import numpy as np
from PIL import Image
dbname = 'future_pred_test'
collname = 'asymmetric'
port = 27017... | 29.607143 | 131 | 0.701448 | 551 | 3,316 | 4.018149 | 0.317604 | 0.024842 | 0.031617 | 0.02168 | 0.169377 | 0.161698 | 0.110208 | 0.090334 | 0.063234 | 0.063234 | 0 | 0.016834 | 0.158022 | 3,316 | 111 | 132 | 29.873874 | 0.776146 | 0.162545 | 0 | 0.128205 | 0 | 0 | 0.08735 | 0.008699 | 0 | 0 | 0 | 0 | 0.012821 | 1 | 0.038462 | false | 0 | 0.089744 | 0 | 0.166667 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a90540d0d0a5a9bc45b650e47d3f81668b272c4b | 338 | py | Python | test from collections import defaultdict.py | meeve602/nn-network | 2bc422785b8d7e5fa78d73a218f5ed8d499902e7 | [
"Apache-2.0"
] | null | null | null | test from collections import defaultdict.py | meeve602/nn-network | 2bc422785b8d7e5fa78d73a218f5ed8d499902e7 | [
"Apache-2.0"
] | null | null | null | test from collections import defaultdict.py | meeve602/nn-network | 2bc422785b8d7e5fa78d73a218f5ed8d499902e7 | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
computing_graph = defaultdict(list)#defaultdict(list),会构建一个默认value为list的字典,
"""
for (key, value) in data:
result[key].append(value)
print(result)#defaultdict(<class 'list'>, {'p': [1, 2, 3], 'h': [1, 2, 3]})
"""
n = 'p'
m = [1,2,23]
computing_graph[n].append(m)
print(... | 26 | 76 | 0.659763 | 47 | 338 | 4.680851 | 0.531915 | 0.190909 | 0.027273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034722 | 0.147929 | 338 | 12 | 77 | 28.166667 | 0.729167 | 0.115385 | 0 | 0 | 0 | 0 | 0.006803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
a905bc7c157d96b2e4f0eee9148f0267c5d741fe | 597 | py | Python | examples/web-scraper/playground.py | relikd/botlib | d0c5072d27db1aa3fad432457c90c9e3f23f22cc | [
"MIT"
] | null | null | null | examples/web-scraper/playground.py | relikd/botlib | d0c5072d27db1aa3fad432457c90c9e3f23f22cc | [
"MIT"
] | null | null | null | examples/web-scraper/playground.py | relikd/botlib | d0c5072d27db1aa3fad432457c90c9e3f23f22cc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from botlib.curl import Curl
from botlib.html2list import HTML2List, MatchGroup
URL = 'https://www.vice.com/en/topic/motherboard'
SOURCE = Curl.get(URL, cache_only=True)
SELECT = '.vice-card__content'
match = MatchGroup({
'url': r'<a href="([^"]*)"',
'title': r'<h3[^>]*><a [^>]*>([\s\S]... | 28.428571 | 62 | 0.571189 | 88 | 597 | 3.818182 | 0.590909 | 0.02381 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.155779 | 597 | 20 | 63 | 29.85 | 0.654762 | 0.035176 | 0 | 0 | 0 | 0 | 0.326957 | 0.095652 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a906359018ecf72d4a4f117b4a1b82b665b383a6 | 3,912 | py | Python | examples/j1j2_2d_exact_4.py | vigsterkr/FlowKet | 0d8f301b5f51a1bab83021f10f65cfb5f2751079 | [
"MIT"
] | 21 | 2019-11-19T13:59:13.000Z | 2021-12-03T10:26:30.000Z | examples/j1j2_2d_exact_4.py | HUJI-Deep/PyKet | 61238afd3fe1488d35c57d280675f544c559bd01 | [
"MIT"
] | 10 | 2019-11-15T12:07:28.000Z | 2020-11-07T18:12:18.000Z | examples/j1j2_2d_exact_4.py | HUJI-Deep/PyKet | 61238afd3fe1488d35c57d280675f544c559bd01 | [
"MIT"
] | 11 | 2019-12-09T22:51:17.000Z | 2021-11-29T22:05:41.000Z | from collections import OrderedDict
import itertools
import sys
from tensorflow.keras.layers import Input
from tensorflow.keras.models import Model
from tensorflow.keras.optimizers import Adam
from flowket.callbacks import TensorBoard
from flowket.callbacks.exact import default_wave_function_callbacks_factory, ExactO... | 40.329897 | 120 | 0.748466 | 502 | 3,912 | 5.531873 | 0.348606 | 0.031689 | 0.048974 | 0.023767 | 0.162045 | 0.097587 | 0.063378 | 0.03457 | 0 | 0 | 0 | 0.024361 | 0.150051 | 3,912 | 96 | 121 | 40.75 | 0.810827 | 0.017127 | 0 | 0 | 0 | 0 | 0.061931 | 0.035389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.213333 | 0 | 0.24 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a907a743744664923c1dc0146b6eda52d8a91360 | 3,833 | py | Python | build/package_version/archive_info.py | MicrohexHQ/nacl_contracts | 3efab5eecb3cf7ba43f2d61000e65918aa4ba77a | [
"BSD-3-Clause"
] | 6 | 2015-02-06T23:41:01.000Z | 2015-10-21T03:08:51.000Z | build/package_version/archive_info.py | MicrohexHQ/nacl_contracts | 3efab5eecb3cf7ba43f2d61000e65918aa4ba77a | [
"BSD-3-Clause"
] | null | null | null | build/package_version/archive_info.py | MicrohexHQ/nacl_contracts | 3efab5eecb3cf7ba43f2d61000e65918aa4ba77a | [
"BSD-3-Clause"
] | 1 | 2019-10-02T08:41:50.000Z | 2019-10-02T08:41:50.000Z | #!/usr/bin/python
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A archive_info is a json file describing a single package archive."""
import collections
import hashlib
import json
import os
... | 33.920354 | 76 | 0.687712 | 508 | 3,833 | 4.996063 | 0.30315 | 0.086682 | 0.100473 | 0.031521 | 0.08156 | 0.063436 | 0.063436 | 0.042947 | 0.031521 | 0.031521 | 0 | 0.002347 | 0.221758 | 3,833 | 112 | 77 | 34.223214 | 0.848475 | 0.375163 | 0 | 0.037736 | 0 | 0 | 0.048267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169811 | false | 0 | 0.075472 | 0.037736 | 0.396226 | 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 |
8bef32020f0494687a4f159a327cd70c156e52e5 | 3,546 | py | Python | tests/test_lsstdoc.py | lsst-sqre/dochub-adapter | 3c155bc7ffe46f41e8de5108c936aed7587c8cdb | [
"MIT"
] | null | null | null | tests/test_lsstdoc.py | lsst-sqre/dochub-adapter | 3c155bc7ffe46f41e8de5108c936aed7587c8cdb | [
"MIT"
] | null | null | null | tests/test_lsstdoc.py | lsst-sqre/dochub-adapter | 3c155bc7ffe46f41e8de5108c936aed7587c8cdb | [
"MIT"
] | null | null | null | """Ad hoc tests of the LsstLatexDoc class. Other test modules rigorously verify
LsstLatexDoc against sample documents.
"""
from pybtex.database import BibliographyData
import pytest
from lsstprojectmeta.tex.lsstdoc import LsstLatexDoc
def test_no_short_title():
"""title without a short title."""
sample = r"... | 32.833333 | 79 | 0.645798 | 424 | 3,546 | 5.299528 | 0.294811 | 0.042724 | 0.024032 | 0.072096 | 0.433912 | 0.332888 | 0.247441 | 0.139742 | 0.139742 | 0.139742 | 0 | 0.006669 | 0.238861 | 3,546 | 107 | 80 | 33.140187 | 0.825861 | 0.1489 | 0 | 0.180556 | 0 | 0 | 0.342406 | 0.034946 | 0 | 0 | 0 | 0 | 0.152778 | 1 | 0.138889 | false | 0 | 0.041667 | 0 | 0.180556 | 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 |
8bf171a05404452569f820648c7f427a69c301b2 | 8,012 | py | Python | bluesky_kafka/tests/test_kafka.py | gwbischof/bluesky-kafka | fb5ab9c2caa023b91722e1dfc1aac00b6e0d7ec4 | [
"BSD-3-Clause"
] | null | null | null | bluesky_kafka/tests/test_kafka.py | gwbischof/bluesky-kafka | fb5ab9c2caa023b91722e1dfc1aac00b6e0d7ec4 | [
"BSD-3-Clause"
] | null | null | null | bluesky_kafka/tests/test_kafka.py | gwbischof/bluesky-kafka | fb5ab9c2caa023b91722e1dfc1aac00b6e0d7ec4 | [
"BSD-3-Clause"
] | null | null | null | from functools import partial
import logging
import msgpack
import msgpack_numpy as mpn
from confluent_kafka.cimpl import KafkaException
import numpy as np
import pickle
import pytest
from bluesky_kafka import Publisher, BlueskyConsumer
from bluesky_kafka.tests.conftest import get_all_documents_from_queue
from blues... | 33.383333 | 92 | 0.668622 | 978 | 8,012 | 5.285276 | 0.206544 | 0.037918 | 0.031341 | 0.004643 | 0.690075 | 0.649836 | 0.633585 | 0.628942 | 0.603018 | 0.596634 | 0 | 0.019279 | 0.249002 | 8,012 | 239 | 93 | 33.523013 | 0.839787 | 0.25337 | 0 | 0.519231 | 0 | 0 | 0.12957 | 0.033698 | 0 | 0 | 0 | 0 | 0.051282 | 1 | 0.044872 | false | 0 | 0.076923 | 0 | 0.121795 | 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 |
8bf5aa849ab9919f36bd06cb32baf1102cd57b0f | 13,653 | py | Python | sunpy/coordinates/frames.py | s0nskar/sunpy | 60ca4792ded4c3938a78da7055cf2c20e0e8ccfd | [
"MIT"
] | null | null | null | sunpy/coordinates/frames.py | s0nskar/sunpy | 60ca4792ded4c3938a78da7055cf2c20e0e8ccfd | [
"MIT"
] | null | null | null | sunpy/coordinates/frames.py | s0nskar/sunpy | 60ca4792ded4c3938a78da7055cf2c20e0e8ccfd | [
"MIT"
] | null | null | null | """
Common solar physics coordinate systems.
This submodule implements various solar physics coordinate frames for use with
the `astropy.coordinates` module.
"""
from __future__ import absolute_import, division
import numpy as np
from astropy import units as u
from astropy.coordinates.representation import (Cartesia... | 41.49848 | 90 | 0.620669 | 1,517 | 13,653 | 5.523401 | 0.175346 | 0.018141 | 0.017066 | 0.006683 | 0.570951 | 0.546008 | 0.508533 | 0.468672 | 0.456379 | 0.444206 | 0 | 0.047786 | 0.270417 | 13,653 | 328 | 91 | 41.625 | 0.793394 | 0.469567 | 0 | 0.509434 | 0 | 0 | 0.090965 | 0.013713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028302 | false | 0 | 0.084906 | 0 | 0.367925 | 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 |
8bf7588b6e982ef5c34279f0381a39c74ff2495d | 4,640 | py | Python | python/ray/serve/tests/test_pipeline_dag.py | quarkzou/ray | 49de29969df0c55a5969b8ffbfc7d62459e5024b | [
"Apache-2.0"
] | null | null | null | python/ray/serve/tests/test_pipeline_dag.py | quarkzou/ray | 49de29969df0c55a5969b8ffbfc7d62459e5024b | [
"Apache-2.0"
] | null | null | null | python/ray/serve/tests/test_pipeline_dag.py | quarkzou/ray | 49de29969df0c55a5969b8ffbfc7d62459e5024b | [
"Apache-2.0"
] | null | null | null | import pytest
import os
import sys
import numpy as np
import ray
from ray import serve
from ray.serve.api import _get_deployments_from_node
from ray.serve.handle import PipelineHandle
from ray.serve.pipeline.pipeline_input_node import PipelineInputNode
@serve.deployment
class Adder:
def __init__(self, increment... | 25.217391 | 84 | 0.650647 | 626 | 4,640 | 4.570288 | 0.204473 | 0.027263 | 0.062915 | 0.050332 | 0.349179 | 0.256204 | 0.191541 | 0.165676 | 0.165676 | 0.165676 | 0 | 0.022371 | 0.22931 | 4,640 | 183 | 85 | 25.355191 | 0.777685 | 0.039871 | 0 | 0.263566 | 0 | 0 | 0.023815 | 0 | 0 | 0 | 0 | 0.005464 | 0.093023 | 1 | 0.193798 | false | 0.023256 | 0.069767 | 0.046512 | 0.418605 | 0.015504 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8bf7e9d1ed3871fd0972273d253da43b826c3e35 | 598 | py | Python | test/data_producer_kafka.py | netgroup/srv6-pm-dockerized | 770976e9e2da56780ae9bb4048360235d2568627 | [
"Apache-2.0"
] | null | null | null | test/data_producer_kafka.py | netgroup/srv6-pm-dockerized | 770976e9e2da56780ae9bb4048360235d2568627 | [
"Apache-2.0"
] | null | null | null | test/data_producer_kafka.py | netgroup/srv6-pm-dockerized | 770976e9e2da56780ae9bb4048360235d2568627 | [
"Apache-2.0"
] | 2 | 2020-07-28T18:12:09.000Z | 2021-02-22T06:31:19.000Z | from kafka import KafkaProducer
from kafka.errors import KafkaError
import json
# produce json messages
producer = KafkaProducer(bootstrap_servers='kafka:9092', security_protocol='PLAINTEXT',
value_serializer=lambda m: json.dumps(m).encode('ascii'))
result = producer.send('ktig', {'measure_i... | 37.375 | 88 | 0.602007 | 62 | 598 | 5.612903 | 0.677419 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034803 | 0.279264 | 598 | 15 | 89 | 39.866667 | 0.772622 | 0.035117 | 0 | 0 | 0 | 0 | 0.238261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 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 |
8bf80a6b7a2e719d044ca3071a20a59ca3623e14 | 248 | py | Python | uasyncio.core/test_cb_args.py | Carglglz/micropython-lib | 07102c56aa1087b97ee313cedc1d89fd20452e11 | [
"PSF-2.0"
] | 126 | 2019-07-19T14:42:41.000Z | 2022-03-21T22:22:19.000Z | uasyncio.core/test_cb_args.py | Carglglz/micropython-lib | 07102c56aa1087b97ee313cedc1d89fd20452e11 | [
"PSF-2.0"
] | 38 | 2019-08-28T01:46:31.000Z | 2022-03-17T05:46:51.000Z | uasyncio.core/test_cb_args.py | Carglglz/micropython-lib | 07102c56aa1087b97ee313cedc1d89fd20452e11 | [
"PSF-2.0"
] | 55 | 2019-08-02T09:32:33.000Z | 2021-12-22T11:25:51.000Z | try:
import uasyncio.core as asyncio
except:
import asyncio
def cb(a, b):
assert a == "test"
assert b == "test2"
loop.stop()
loop = asyncio.get_event_loop()
loop.call_soon(cb, "test", "test2")
loop.run_forever()
print("OK")
| 14.588235 | 35 | 0.637097 | 37 | 248 | 4.162162 | 0.648649 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.209677 | 248 | 16 | 36 | 15.5 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bfa439c74e0b340dc223e43b06761bdee5d063d | 1,026 | py | Python | cookiecutter_mbam/scan/views.py | tiburona/cookiecutter_mbam | 13788774a4c1426c133b3f689f98d8f0c54de9c6 | [
"BSD-3-Clause"
] | null | null | null | cookiecutter_mbam/scan/views.py | tiburona/cookiecutter_mbam | 13788774a4c1426c133b3f689f98d8f0c54de9c6 | [
"BSD-3-Clause"
] | null | null | null | cookiecutter_mbam/scan/views.py | tiburona/cookiecutter_mbam | 13788774a4c1426c133b3f689f98d8f0c54de9c6 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Scan views."""
from flask import Blueprint, render_template, flash, redirect, url_for, session
from flask_login import current_user
from .forms import ScanForm
from .service import ScanService
from cookiecutter_mbam.utils import flash_errors
blueprint = Blueprint('scan', __name__, url_prefix... | 34.2 | 87 | 0.693957 | 139 | 1,026 | 4.920863 | 0.532374 | 0.039474 | 0.04386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001178 | 0.172515 | 1,026 | 30 | 88 | 34.2 | 0.804476 | 0.044834 | 0 | 0 | 0 | 0 | 0.176289 | 0.02268 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8bfa8f2b88f8aca9aab6973afb6831c3aa0a0478 | 3,460 | py | Python | python-route-endpoint/test_dbstore.py | blues/note-samples | a50c27ea0b8728668f2c44139b088d5fdf0c7d57 | [
"Apache-2.0"
] | 1 | 2021-10-04T14:42:43.000Z | 2021-10-04T14:42:43.000Z | python-route-endpoint/test_dbstore.py | blues/note-samples | a50c27ea0b8728668f2c44139b088d5fdf0c7d57 | [
"Apache-2.0"
] | 3 | 2021-09-07T17:54:58.000Z | 2021-11-16T21:40:52.000Z | python-route-endpoint/test_dbstore.py | blues/note-samples | a50c27ea0b8728668f2c44139b088d5fdf0c7d57 | [
"Apache-2.0"
] | null | null | null | import pytest
import dbstore
inMemFile = ":memory:"
measurementTable = "measurements"
alertTable = "alerts"
def test_db_store_constructor():
s = dbstore.dbstore(file=inMemFile)
assert(s != None)
def test_dbStore_connect():
s = dbstore.dbstore(file=inMemFile)
s.connect()
assert s._connection i... | 23.69863 | 102 | 0.67052 | 380 | 3,460 | 6.013158 | 0.210526 | 0.033698 | 0.045952 | 0.058206 | 0.670022 | 0.603501 | 0.603501 | 0.550109 | 0.516849 | 0.44639 | 0 | 0.012454 | 0.210983 | 3,460 | 146 | 103 | 23.69863 | 0.824542 | 0 | 0 | 0.561224 | 0 | 0 | 0.114707 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 1 | 0.122449 | false | 0 | 0.020408 | 0 | 0.153061 | 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 |
8bfc984d3b1bbcef2b5af5e9508ff3a2a9c35186 | 604 | py | Python | basics/linear.py | zhijiahu/dltk | bf0484e22d3d0116b1ac60ae78f688a36c5a0636 | [
"MIT"
] | null | null | null | basics/linear.py | zhijiahu/dltk | bf0484e22d3d0116b1ac60ae78f688a36c5a0636 | [
"MIT"
] | null | null | null | basics/linear.py | zhijiahu/dltk | bf0484e22d3d0116b1ac60ae78f688a36c5a0636 | [
"MIT"
] | null | null | null |
import numpy as np
import cv2
labels = ['dog', 'cat', 'panda']
np.random.seed(1)
# Simulate model already trained
W = np.random.randn(3, 3072)
b = np.random.randn(3)
orig = cv2.imread('beagle.png')
image = cv2.resize(orig, (32, 32)).flatten()
scores = W.dot(image) + b
for (label, score) in zip(labels, scores):
... | 20.133333 | 58 | 0.574503 | 87 | 604 | 3.965517 | 0.597701 | 0.069565 | 0.075362 | 0.081159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069565 | 0.238411 | 604 | 29 | 59 | 20.827586 | 0.680435 | 0.049669 | 0 | 0 | 0 | 0 | 0.087566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8bfd515b8c9ab45a349fc3b66ded01bb3b315143 | 2,759 | py | Python | sevivi/synchronizer/synchronizer.py | edgarriba/sevivi | 52c8bef206e531c797221a08037306c0c5b0ca59 | [
"MIT"
] | null | null | null | sevivi/synchronizer/synchronizer.py | edgarriba/sevivi | 52c8bef206e531c797221a08037306c0c5b0ca59 | [
"MIT"
] | 9 | 2021-09-09T07:40:21.000Z | 2022-01-13T07:03:59.000Z | sevivi/synchronizer/synchronizer.py | edgarriba/sevivi | 52c8bef206e531c797221a08037306c0c5b0ca59 | [
"MIT"
] | 1 | 2022-01-26T09:51:29.000Z | 2022-01-26T09:51:29.000Z | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from .signal_processing import (
resample_data,
normalize_signal,
calculate_magnitude,
calculate_offset_in_seconds_using_cross_correlation,
calculate_sampling_frequency_from_timestamps,
)
def get_synchronization_offset(
vi... | 33.240964 | 120 | 0.696629 | 335 | 2,759 | 5.444776 | 0.301493 | 0.036184 | 0.036184 | 0.049342 | 0.35636 | 0.286184 | 0.240132 | 0.144737 | 0.144737 | 0.144737 | 0 | 0.001881 | 0.229069 | 2,759 | 82 | 121 | 33.646341 | 0.855665 | 0.200435 | 0 | 0.229508 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.065574 | 0 | 0.098361 | 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 |
8bfd607f605b753ac1980b586075777909511585 | 244 | py | Python | bob.py | williamstern/Intro-to-CS-MIT-Course | 0f6129fa6bd47767cb57507279d49b27501a160f | [
"MIT"
] | null | null | null | bob.py | williamstern/Intro-to-CS-MIT-Course | 0f6129fa6bd47767cb57507279d49b27501a160f | [
"MIT"
] | null | null | null | bob.py | williamstern/Intro-to-CS-MIT-Course | 0f6129fa6bd47767cb57507279d49b27501a160f | [
"MIT"
] | null | null | null | s = 'vpoboooboboobooboboo'
y = 0
counter = 0
times_run = 0
start = 0
end = 3
for letter in s:
sc = s[start:end]
start += 1
end += 1
if sc == str('bob'):
counter += 1
print('Number of times bob occurs is: ', counter)
| 10.166667 | 49 | 0.565574 | 39 | 244 | 3.512821 | 0.589744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.303279 | 244 | 23 | 50 | 10.608696 | 0.758824 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8bfd9f299f8a3e49d68acee30f35331e05c04631 | 5,469 | py | Python | tests/main.py | bastienleonard/pysfml-cython | c71194988ba90678cbc4c9e6fd3e03f53ac4c2e4 | [
"Zlib",
"BSD-2-Clause"
] | 14 | 2015-09-14T18:04:27.000Z | 2021-02-19T16:51:57.000Z | tests/main.py | bastienleonard/pysfml-cython | c71194988ba90678cbc4c9e6fd3e03f53ac4c2e4 | [
"Zlib",
"BSD-2-Clause"
] | 3 | 2015-12-14T17:07:45.000Z | 2021-10-02T05:55:11.000Z | tests/main.py | bastienleonard/pysfml-cython | c71194988ba90678cbc4c9e6fd3e03f53ac4c2e4 | [
"Zlib",
"BSD-2-Clause"
] | 3 | 2015-04-12T16:57:02.000Z | 2021-02-20T17:15:51.000Z | #! /usr/bin/env python2
# -*- coding: utf-8 -*-
import random
import unittest
import sfml as sf
class TestColor(unittest.TestCase):
def random_color(self):
return sf.Color(random.randint(0, 255),
random.randint(0, 255),
random.randint(0, 255),
... | 30.724719 | 78 | 0.513257 | 734 | 5,469 | 3.745232 | 0.114441 | 0.034194 | 0.022917 | 0.011641 | 0.654056 | 0.623499 | 0.552928 | 0.542743 | 0.491815 | 0.454711 | 0 | 0.083565 | 0.343573 | 5,469 | 177 | 79 | 30.898305 | 0.682173 | 0.008045 | 0 | 0.455224 | 0 | 0 | 0.001475 | 0 | 0 | 0 | 0 | 0 | 0.156716 | 1 | 0.186567 | false | 0 | 0.022388 | 0.052239 | 0.298507 | 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 |
8bfef33258b56cdbd64d66536a38eaa752a6a523 | 12,840 | py | Python | textgen/augment/word_level_augment.py | shibing624/textgen | 0a9d55f1f61d5217b8e06f1f23904e49afa84370 | [
"Apache-2.0"
] | 31 | 2021-06-29T14:31:35.000Z | 2022-03-25T00:36:44.000Z | textgen/augment/word_level_augment.py | shibing624/text-generation | 0a9d55f1f61d5217b8e06f1f23904e49afa84370 | [
"Apache-2.0"
] | 1 | 2021-11-09T21:30:16.000Z | 2022-03-02T10:21:04.000Z | textgen/augment/word_level_augment.py | shibing624/text-generation | 0a9d55f1f61d5217b8e06f1f23904e49afa84370 | [
"Apache-2.0"
] | 5 | 2021-06-21T03:13:39.000Z | 2022-02-07T06:53:22.000Z | # -*- coding: utf-8 -*-
"""
@author:XuMing(xuming624@qq.com)
@description: Word level augmentations including Replace words with uniform
random words or TF-IDF based word replacement.
"""
import collections
import copy
import math
import numpy as np
from textgen.utils.log import logger
min_token_num = 3
class Eff... | 35.469613 | 95 | 0.576947 | 1,590 | 12,840 | 4.395597 | 0.108805 | 0.025039 | 0.026041 | 0.020604 | 0.560166 | 0.482616 | 0.465446 | 0.453141 | 0.422664 | 0.399771 | 0 | 0.008406 | 0.323676 | 12,840 | 361 | 96 | 35.567867 | 0.796407 | 0.14891 | 0 | 0.514056 | 0 | 0 | 0.009731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11245 | false | 0 | 0.02008 | 0.012048 | 0.232932 | 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 |
e301076532db001f5790d94584e7f5e4d2165387 | 1,198 | py | Python | ubuntu20/projects/libRadtran-2.0.4/examples/GUI/spectrum_GOME/spectrum_GOME_plot.py | AmberCrafter/docker-compose_libRadtran | 0182f991db6a13e0cacb3bf9f43809e6850593e4 | [
"MIT"
] | null | null | null | ubuntu20/projects/libRadtran-2.0.4/examples/GUI/spectrum_GOME/spectrum_GOME_plot.py | AmberCrafter/docker-compose_libRadtran | 0182f991db6a13e0cacb3bf9f43809e6850593e4 | [
"MIT"
] | null | null | null | ubuntu20/projects/libRadtran-2.0.4/examples/GUI/spectrum_GOME/spectrum_GOME_plot.py | AmberCrafter/docker-compose_libRadtran | 0182f991db6a13e0cacb3bf9f43809e6850593e4 | [
"MIT"
] | null | null | null | from matplotlib import use
use('WXAgg')
import pylab as plt
import numpy as np
plt.figure(figsize=(8,5))
ax = plt.subplot(111)
fil = './spectrum_GOME.out'
data = np.loadtxt(fil)
y = data[:,1]
x = data[:,0]
pl_list = []
pl, = ax.plot(x,y,'r')
pl_list.append(pl)
y = 10*data[:,3]
pl, = ax.plot(x,y,'... | 26.622222 | 83 | 0.656093 | 206 | 1,198 | 3.752427 | 0.402913 | 0.069858 | 0.020699 | 0.023286 | 0.47348 | 0.40621 | 0.40621 | 0.40621 | 0.40621 | 0.40621 | 0 | 0.052156 | 0.16778 | 1,198 | 44 | 84 | 27.227273 | 0.72317 | 0.324708 | 0 | 0.230769 | 0 | 0 | 0.172111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 |
e302119a1e26db2aa7e3d9148ce46b0ec243f446 | 24,156 | py | Python | condensation-forum/application.py | BitFracture/condensation | a68a9bbae7a7d35e1542242a4f1588ce3abf9d3f | [
"BSD-2-Clause"
] | null | null | null | condensation-forum/application.py | BitFracture/condensation | a68a9bbae7a7d35e1542242a4f1588ce3abf9d3f | [
"BSD-2-Clause"
] | 59 | 2018-03-02T03:08:22.000Z | 2018-03-11T01:43:02.000Z | condensation-forum/application.py | BitFracture/condensation | a68a9bbae7a7d35e1542242a4f1588ce3abf9d3f | [
"BSD-2-Clause"
] | null | null | null | """
An AWS Python3+Flask web app.
"""
from flask import Flask, redirect, url_for, request, session, flash, get_flashed_messages, render_template, escape
from flask_oauthlib.client import OAuth
import boto3,botocore
import jinja2
from boto3.dynamodb.conditions import Key, Attr
import urllib.request
import json
import c... | 36.711246 | 123 | 0.638475 | 2,611 | 24,156 | 5.851781 | 0.173497 | 0.009817 | 0.034034 | 0.037306 | 0.512992 | 0.441259 | 0.402775 | 0.352903 | 0.329799 | 0.320113 | 0 | 0.004822 | 0.253105 | 24,156 | 657 | 124 | 36.767123 | 0.842035 | 0.130402 | 0 | 0.465665 | 0 | 0 | 0.158033 | 0.007505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034335 | false | 0.002146 | 0.042918 | 0.002146 | 0.148069 | 0.004292 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3073fdd2f59dca010998232729affa0626a74d8 | 3,133 | py | Python | core/scheduler/at.py | vsilent/smarty-bot | 963cba05433be14494ba339343c9903ccab3c37d | [
"MIT"
] | 1 | 2016-10-08T09:01:05.000Z | 2016-10-08T09:01:05.000Z | core/scheduler/at.py | vsilent/smarty-bot | 963cba05433be14494ba339343c9903ccab3c37d | [
"MIT"
] | 1 | 2019-09-24T09:56:52.000Z | 2019-09-24T09:56:52.000Z | core/scheduler/at.py | vsilent/smarty-bot | 963cba05433be14494ba339343c9903ccab3c37d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" apscheduler. """
import subprocess
from apscheduler.scheduler import Scheduler
from apscheduler.jobstores.shelve_store import ShelveJobStore
from datetime import date, datetime, timedelta
import os
import shelve
import zmq
from core.config.settings import logger
de... | 25.892562 | 73 | 0.531759 | 337 | 3,133 | 4.863501 | 0.379822 | 0.029896 | 0.024405 | 0.036608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001933 | 0.339611 | 3,133 | 120 | 74 | 26.108333 | 0.790237 | 0.064475 | 0 | 0 | 0 | 0 | 0.110056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064103 | false | 0.012821 | 0.102564 | 0 | 0.205128 | 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 |
e30fa4b4018e2cb629164838090fb39449877a74 | 2,551 | py | Python | advertorch/tests/test_utilities.py | sleepstagingrest/rest | cf0de7ae82b6b74fe23e9d057214970cd3c9672d | [
"MIT"
] | 18 | 2020-02-03T07:14:40.000Z | 2021-12-20T18:45:43.000Z | advertorch/tests/test_utilities.py | sleepstagingrest/rest | cf0de7ae82b6b74fe23e9d057214970cd3c9672d | [
"MIT"
] | 11 | 2020-01-28T23:16:25.000Z | 2022-02-10T01:04:56.000Z | advertorch/tests/test_utilities.py | sleepstagingrest/REST | cf0de7ae82b6b74fe23e9d057214970cd3c9672d | [
"MIT"
] | 2 | 2020-08-20T08:15:09.000Z | 2021-02-23T07:30:40.000Z | # Copyright (c) 2018-present, Royal Bank of Canada.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import warnings
import numpy as np
import torch
import torchvision.transforms.functional as F
from advertorch.utils im... | 30.73494 | 74 | 0.717758 | 331 | 2,551 | 5.359517 | 0.329305 | 0.071026 | 0.074972 | 0.098647 | 0.260992 | 0.131905 | 0.095829 | 0.095829 | 0.095829 | 0.047351 | 0 | 0.033686 | 0.185417 | 2,551 | 82 | 75 | 31.109756 | 0.820019 | 0.078401 | 0 | 0.109091 | 0 | 0 | 0.002562 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.381818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e30ff60533abef30a592ebe83ada7b1e9f61003f | 5,595 | py | Python | RV/portfolio/portfolio/hindex.py | rmomizo/portfolio_bot | b7854c4b5c9f32e9631389bb2238b5bb30d54c8e | [
"MIT"
] | null | null | null | RV/portfolio/portfolio/hindex.py | rmomizo/portfolio_bot | b7854c4b5c9f32e9631389bb2238b5bb30d54c8e | [
"MIT"
] | null | null | null | RV/portfolio/portfolio/hindex.py | rmomizo/portfolio_bot | b7854c4b5c9f32e9631389bb2238b5bb30d54c8e | [
"MIT"
] | null | null | null | from __future__ import division
import itertools
import matplotlib.pyplot as plt
from matplotlib.pyplot import savefig
import random
from random import shuffle
from collections import Counter
def flatten_list(somelist):
if any(isinstance(el, list) for el in somelist) == False:
return somelist
... | 32.719298 | 94 | 0.557283 | 704 | 5,595 | 4.284091 | 0.203125 | 0.066313 | 0.054708 | 0.046419 | 0.432361 | 0.38561 | 0.35378 | 0.29244 | 0.276525 | 0.276525 | 0 | 0.019864 | 0.343164 | 5,595 | 170 | 95 | 32.911765 | 0.800816 | 0.174978 | 0 | 0.209091 | 0 | 0 | 0.00727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118182 | false | 0 | 0.063636 | 0 | 0.318182 | 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 |
e3106531f1b9e6f9266ac05f2587a787cfc4e699 | 1,316 | py | Python | operators/device_output.py | a1exwang/fm-synth | fb14aa1dec3798b15a607ac03442decf322bebee | [
"MIT"
] | 3 | 2018-01-18T12:25:38.000Z | 2020-03-19T13:19:31.000Z | operators/device_output.py | a1exwang/fm-synth | fb14aa1dec3798b15a607ac03442decf322bebee | [
"MIT"
] | 4 | 2017-04-24T16:36:59.000Z | 2017-05-11T11:23:44.000Z | operators/device_output.py | a1exwang/fm-synth | fb14aa1dec3798b15a607ac03442decf322bebee | [
"MIT"
] | null | null | null | from PyQt5.QtCore import pyqtSlot
from channels.channel import Channel
from operators.base import OutputOperator
import numpy as np
class DeviceOutput(OutputOperator):
def __init__(self, input_ops, volume=1.0, name=None):
super().__init__(input_ops, name)
self.total_count = 0
self.stream =... | 34.631579 | 105 | 0.575988 | 174 | 1,316 | 4.201149 | 0.344828 | 0.057456 | 0.032832 | 0.032832 | 0.194254 | 0.194254 | 0.194254 | 0.194254 | 0.194254 | 0.194254 | 0 | 0.043663 | 0.286474 | 1,316 | 37 | 106 | 35.567568 | 0.734824 | 0.025076 | 0 | 0 | 0 | 0 | 0.038311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.137931 | 0 | 0.310345 | 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 |
e31093c826bcdc408129c3db911766a20c8f8973 | 524 | py | Python | code/0217-containsDuplicate.py | RRRoger/LeetCodeExercise | 0019a048fcfac9ac9e6f37651b17d01407c92c7d | [
"MIT"
] | null | null | null | code/0217-containsDuplicate.py | RRRoger/LeetCodeExercise | 0019a048fcfac9ac9e6f37651b17d01407c92c7d | [
"MIT"
] | null | null | null | code/0217-containsDuplicate.py | RRRoger/LeetCodeExercise | 0019a048fcfac9ac9e6f37651b17d01407c92c7d | [
"MIT"
] | null | null | null | class Solution(object):
def isPowerOfTwo(self, n):
"""
:type n: int
:rtype: bool
"""
# 左移
if n == 1:
return True
power = 0
flag = True
while flag:
val = 2 << power
if val == n:
return True
... | 15.878788 | 34 | 0.412214 | 52 | 524 | 4 | 0.557692 | 0.096154 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030189 | 0.494275 | 524 | 33 | 35 | 15.878788 | 0.754717 | 0.055344 | 0 | 0.111111 | 0 | 0 | 0.017241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.277778 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e312d0f86ad81db6700f196a91af6d00bac33137 | 3,870 | py | Python | app/discal/cogs/handler.py | Shirataki2/DisCalendar | cfb5ecad6c65911fbb041cbc585d86588de125f5 | [
"MIT"
] | 6 | 2020-11-29T08:04:07.000Z | 2021-05-07T11:05:10.000Z | app/discal/cogs/handler.py | Shirataki2/DisCalendar | cfb5ecad6c65911fbb041cbc585d86588de125f5 | [
"MIT"
] | 139 | 2020-11-24T23:37:03.000Z | 2022-03-30T00:18:09.000Z | app/discal/cogs/handler.py | Shirataki2/DisCalendar | cfb5ecad6c65911fbb041cbc585d86588de125f5 | [
"MIT"
] | 1 | 2021-02-01T15:07:17.000Z | 2021-02-01T15:07:17.000Z | import asyncio
import json
import discord
from discord.ext import commands, tasks
from discal.bot import Bot
from datetime import datetime, timedelta
from discal.logger import get_module_logger
logger = get_module_logger(__name__)
class Handler(commands.Cog):
def __init__(self, bot):
self.bot: Bot = bot... | 36.168224 | 100 | 0.496382 | 420 | 3,870 | 4.466667 | 0.27381 | 0.026119 | 0.031983 | 0.035181 | 0.200959 | 0.170043 | 0.167377 | 0.046908 | 0.033049 | 0.033049 | 0 | 0.013969 | 0.371059 | 3,870 | 106 | 101 | 36.509434 | 0.756779 | 0 | 0 | 0.104167 | 0 | 0.03125 | 0.14677 | 0.058915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.072917 | 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 |
e312d4733d2d6ab5dadd53371794d5b4269ec969 | 2,738 | py | Python | nids/enipcip/enip_cpf.py | Cyphysecurity/ICS-SDN-1 | c04d9e7bb7ad945166e969e071a2f82fb5bd18bf | [
"MIT"
] | 4 | 2019-12-17T08:59:57.000Z | 2022-01-09T19:52:27.000Z | nids/enipcip/enip_cpf.py | Cyphysecurity/ICS-SDN-1 | c04d9e7bb7ad945166e969e071a2f82fb5bd18bf | [
"MIT"
] | 3 | 2020-08-13T16:05:46.000Z | 2021-10-17T07:49:33.000Z | nids/enipcip/enip_cpf.py | Cyphysecurity/ICS-SDN-1 | c04d9e7bb7ad945166e969e071a2f82fb5bd18bf | [
"MIT"
] | 4 | 2017-06-14T23:41:50.000Z | 2021-03-01T18:54:03.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Copyright (c) 2015 David I. Urbina, david.urbina@utdallas.edu
#
# 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... | 36.506667 | 106 | 0.685172 | 361 | 2,738 | 5.102493 | 0.479224 | 0.043431 | 0.022801 | 0.029316 | 0.085776 | 0.062975 | 0.031488 | 0 | 0 | 0 | 0 | 0.022482 | 0.220234 | 2,738 | 74 | 107 | 37 | 0.840281 | 0.429511 | 0 | 0.128205 | 0 | 0 | 0.151693 | 0.015625 | 0 | 0 | 0.027344 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0.051282 | 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 |
e314ca5cb9348b5a95152247da6288de4e244796 | 1,103 | py | Python | programming_hw_4s/tasks_with_eolymp_tags/t_7_6_(eolimp_5089).py | andriidem308/python_practice | 85a0ebd6ecbecf63eaba170c8279f0a88600237a | [
"MIT"
] | 2 | 2020-01-27T11:58:54.000Z | 2020-03-30T10:54:08.000Z | programming_hw_4s/tasks_with_eolymp_tags/t_7_6_(eolimp_5089).py | andriidem308/python_practice | 85a0ebd6ecbecf63eaba170c8279f0a88600237a | [
"MIT"
] | null | null | null | programming_hw_4s/tasks_with_eolymp_tags/t_7_6_(eolimp_5089).py | andriidem308/python_practice | 85a0ebd6ecbecf63eaba170c8279f0a88600237a | [
"MIT"
] | null | null | null | def merge_sort(arr):
if len(arr) > 1:
middle = len(arr) // 2
lefthalf = arr[:middle]
righthalf = arr[middle:]
merge_sort(lefthalf)
merge_sort(righthalf)
i = j = k = 0
while i < len(lefthalf) and j < len(righthalf):
if lefthalf[i] < righthalf[j]:... | 19.350877 | 55 | 0.44243 | 147 | 1,103 | 3.238095 | 0.217687 | 0.021008 | 0.018908 | 0.071429 | 0.138655 | 0.138655 | 0.07563 | 0.07563 | 0 | 0 | 0 | 0.025397 | 0.42883 | 1,103 | 56 | 56 | 19.696429 | 0.730159 | 0.015413 | 0 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0 | 0 | 0.051282 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e316f4ba8d78958af8ea71861f55f56a0c25786e | 765 | py | Python | Algorithms and Data Structures/sort/qks.py | ioyy900205/PyTorch_mess-around | 90d255e17158699fd7902f7746b35fa18975112e | [
"MIT"
] | null | null | null | Algorithms and Data Structures/sort/qks.py | ioyy900205/PyTorch_mess-around | 90d255e17158699fd7902f7746b35fa18975112e | [
"MIT"
] | null | null | null | Algorithms and Data Structures/sort/qks.py | ioyy900205/PyTorch_mess-around | 90d255e17158699fd7902f7746b35fa18975112e | [
"MIT"
] | null | null | null | '''
Date: 2021-08-10 17:17:35
LastEditors: Liuliang
LastEditTime: 2021-08-10 18:27:56
Description:
'''
import random
import sys
sys.path.append("..")
from bacic_module.random_int_list import random_int_list
def partition(nums, left, right):
tmp = nums[left]
while left < right:
while left<right a... | 21.25 | 56 | 0.605229 | 117 | 765 | 3.897436 | 0.350427 | 0.157895 | 0.085526 | 0.096491 | 0.114035 | 0.114035 | 0 | 0 | 0 | 0 | 0 | 0.068662 | 0.257516 | 765 | 35 | 57 | 21.857143 | 0.734155 | 0.122876 | 0 | 0.083333 | 0 | 0 | 0.003021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.125 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e318e94372f3438841131a8e520812b4b488dc1f | 2,144 | py | Python | Core/config/CYCEnv/run_json_CYC_envs.py | geoffroygivry/CyclopsVFX-Unity | 6ab9ab122b6c3e6200e90d49a0c2bf774e53d985 | [
"MIT"
] | 17 | 2017-06-27T04:14:42.000Z | 2022-03-07T03:37:44.000Z | Core/config/CYCEnv/run_json_CYC_envs.py | geoffroygivry/Cyclops-VFX | 6ab9ab122b6c3e6200e90d49a0c2bf774e53d985 | [
"MIT"
] | 2 | 2017-06-14T04:17:51.000Z | 2018-08-23T20:12:44.000Z | Core/config/CYCEnv/run_json_CYC_envs.py | geoffroygivry/CyclopsVFX-Unity | 6ab9ab122b6c3e6200e90d49a0c2bf774e53d985 | [
"MIT"
] | 2 | 2019-03-18T06:18:33.000Z | 2019-08-14T21:07:53.000Z | import os
import json
def create_json_CYC_envs(root_dir):
DI_ROOT = root_dir
CYC_ROOT = "%s/CyclopsVFX" % DI_ROOT
DATA_FILENAME = os.path.join(CYC_ROOT, "CYC_envs.json")
CYC_HYDRA_PATH = "%s/Hydra" % (CYC_ROOT)
CYC_HYDRA_CACHE = "%s/Hydra/cache" % (CYC_ROOT)
CYC_CORE_PATH = "%s/Core/... | 39.703704 | 65 | 0.58722 | 288 | 2,144 | 3.930556 | 0.201389 | 0.111307 | 0.141343 | 0.086572 | 0.174028 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003287 | 0.290578 | 2,144 | 53 | 66 | 40.45283 | 0.74096 | 0 | 0 | 0 | 0 | 0 | 0.253945 | 0.064562 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.042553 | 0 | 0.06383 | 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 |
e31af962393b8a7c27bf698791ef898144c732f5 | 4,143 | py | Python | test/unit/api/test_api_safety.py | technocreep/FEDOT | c11f19d1d231bd9c1d96d6e39d14697a028f6272 | [
"BSD-3-Clause"
] | null | null | null | test/unit/api/test_api_safety.py | technocreep/FEDOT | c11f19d1d231bd9c1d96d6e39d14697a028f6272 | [
"BSD-3-Clause"
] | null | null | null | test/unit/api/test_api_safety.py | technocreep/FEDOT | c11f19d1d231bd9c1d96d6e39d14697a028f6272 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from fedot.api.api_utils.api_data import ApiDataProcessor
from fedot.api.api_utils.api_data_analyser import DataAnalyser
from fedot.api.main import Fedot
from fedot.core.data.data import InputData
from fedot.core.repository.dataset_types import DataTypesEnum
from fedot.core.repository.tasks import T... | 42.71134 | 118 | 0.69901 | 540 | 4,143 | 5.125926 | 0.240741 | 0.034682 | 0.039017 | 0.027095 | 0.457731 | 0.416908 | 0.402818 | 0.30672 | 0.28974 | 0.28974 | 0 | 0.014916 | 0.207096 | 4,143 | 96 | 119 | 43.15625 | 0.827702 | 0.156891 | 0 | 0.30303 | 0 | 0 | 0.038023 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.257576 | 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 |
e31bbe934af2c97028c0e66dc59a02ae268f0c31 | 7,765 | py | Python | parallelpy/parallelpy.py | krober/parallelpy | 356fa0b75d3de2fa695b2fd64f0a53555f6bf55f | [
"MIT"
] | null | null | null | parallelpy/parallelpy.py | krober/parallelpy | 356fa0b75d3de2fa695b2fd64f0a53555f6bf55f | [
"MIT"
] | 1 | 2018-08-26T03:01:18.000Z | 2018-08-26T03:01:18.000Z | parallelpy/parallelpy.py | krober/parallelpy | 356fa0b75d3de2fa695b2fd64f0a53555f6bf55f | [
"MIT"
] | null | null | null | from multiprocessing import cpu_count, Manager, Process
from time import sleep
class Parallelizer:
def __init__(
self,
*,
target: 'function',
args: list,
enable_results: bool,
auto_proc_count: bool,
max_proc_count: int):
... | 34.665179 | 79 | 0.582228 | 903 | 7,765 | 4.710963 | 0.241418 | 0.076164 | 0.025388 | 0.015985 | 0.143394 | 0.106723 | 0.082276 | 0.06441 | 0.030559 | 0.030559 | 0 | 0.002946 | 0.344237 | 7,765 | 223 | 80 | 34.820628 | 0.832482 | 0.330071 | 0 | 0.157895 | 0 | 0 | 0.08708 | 0.024662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.017544 | 0.008772 | 0.192982 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e31d9fd874884c64a5cfd7e556213a44724536fb | 9,507 | py | Python | deanslist/deanslist.py | upeducationnetwork/deanslist-python | 226eda2580055427119397bc28e7976f019d7301 | [
"MIT"
] | null | null | null | deanslist/deanslist.py | upeducationnetwork/deanslist-python | 226eda2580055427119397bc28e7976f019d7301 | [
"MIT"
] | 2 | 2016-05-16T19:54:26.000Z | 2016-05-20T12:02:20.000Z | deanslist/deanslist.py | upeducationnetwork/deanslist-python | 226eda2580055427119397bc28e7976f019d7301 | [
"MIT"
] | null | null | null | __author__ = 'rknight'
import os
import csv
import logging
import datetime
from requests_futures.sessions import FuturesSession
def dl(reports, dlkeys):
# Primary call
# Send requests
allreports = dlrequest(reports=reports, dlkeys=dlkeys)
# Write results
for outreport in allreports.keys():
... | 31.376238 | 141 | 0.577154 | 1,004 | 9,507 | 5.416335 | 0.253984 | 0.01416 | 0.011033 | 0.011033 | 0.230599 | 0.216992 | 0.184627 | 0.148584 | 0.134976 | 0.134976 | 0 | 0.003795 | 0.307037 | 9,507 | 302 | 142 | 31.480132 | 0.821645 | 0.137372 | 0 | 0.244565 | 0 | 0 | 0.127094 | 0.002606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054348 | false | 0.005435 | 0.027174 | 0 | 0.108696 | 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 |
e31da554e9612910aa7b87468de6e4101ac08273 | 7,210 | py | Python | anchore_engine/services/policy_engine/api/models/image.py | roachmd/anchore-engine | 521d6796778139a95f51542670714205c2735a81 | [
"Apache-2.0"
] | null | null | null | anchore_engine/services/policy_engine/api/models/image.py | roachmd/anchore-engine | 521d6796778139a95f51542670714205c2735a81 | [
"Apache-2.0"
] | null | null | null | anchore_engine/services/policy_engine/api/models/image.py | roachmd/anchore-engine | 521d6796778139a95f51542670714205c2735a81 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from anchore_engine.services.policy_engine.api.models.base_model_ import Model
from anchore_engine.services.policy_engine.api import util
class Image(Model):
"""N... | 27.414449 | 156 | 0.59251 | 919 | 7,210 | 4.500544 | 0.130577 | 0.097921 | 0.109043 | 0.031431 | 0.577369 | 0.469778 | 0.423356 | 0.307544 | 0.292553 | 0.215184 | 0 | 0.014754 | 0.323162 | 7,210 | 262 | 157 | 27.519084 | 0.832787 | 0.460749 | 0 | 0.26087 | 0 | 0 | 0.088113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195652 | false | 0 | 0.054348 | 0 | 0.358696 | 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 |
e32283e627f56eef0ab47dab2fb3694cb482ef8d | 231 | py | Python | hdc-utility/model/Formation.py | YSRKEN/HDC_React2 | cba48a0563caef629169644254742f688a0e1ec7 | [
"MIT"
] | null | null | null | hdc-utility/model/Formation.py | YSRKEN/HDC_React2 | cba48a0563caef629169644254742f688a0e1ec7 | [
"MIT"
] | 13 | 2020-09-04T23:25:20.000Z | 2022-02-18T01:52:33.000Z | hdc-utility/model/Formation.py | YSRKEN/HDC_React2 | cba48a0563caef629169644254742f688a0e1ec7 | [
"MIT"
] | null | null | null | from enum import Enum
class Formation(Enum):
LINE_AHEAD = 0 # 単縦陣
DOUBLE_LINE = 1 # 複縦陣
DIAMOND = 2 # 輪形陣
ECHELON = 3 # 梯形陣
LINE_ABREAST = 4 # 単横陣
FORMATION_3 = 5 # 第3陣形(第三警戒航行序列(輪形陣))
| 21 | 43 | 0.562771 | 31 | 231 | 4.064516 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053691 | 0.354978 | 231 | 10 | 44 | 23.1 | 0.791946 | 0.168831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e323be496777a0e952195a0a60b4f2ae474d9dd5 | 849 | py | Python | bisection.py | Raijeku/Optimizacion | b06c302c3edbdb3a2a2b378b0c53baaf9fe69c2b | [
"Apache-2.0"
] | null | null | null | bisection.py | Raijeku/Optimizacion | b06c302c3edbdb3a2a2b378b0c53baaf9fe69c2b | [
"Apache-2.0"
] | null | null | null | bisection.py | Raijeku/Optimizacion | b06c302c3edbdb3a2a2b378b0c53baaf9fe69c2b | [
"Apache-2.0"
] | null | null | null | from sympy import *
import pandas as pd
def bisection(xl, xu, tolerance, function):
x = Symbol('x')
f = parse_expr(function)
iteration = 0
data = pd.DataFrame(columns=['iteration','xl','xu','xr','f(xl)','f(xu)','f(xr)','f(xl)f(xr)','error'])
while abs(xu-xl)>=tolerance:
xr = (xl + xu)/2
... | 30.321429 | 212 | 0.522968 | 134 | 849 | 3.291045 | 0.358209 | 0.036281 | 0.034014 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.246172 | 849 | 28 | 213 | 30.321429 | 0.657813 | 0 | 0 | 0 | 0 | 0 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.190476 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e324c2b47225b873ec4b37a7708b700104f77b26 | 3,684 | py | Python | subt/ros/base/src/motor_controller.py | m3d/osgar_archive_2020 | 556b534e59f8aa9b6c8055e2785c8ae75a1a0a0e | [
"MIT"
] | 12 | 2017-02-16T10:22:59.000Z | 2022-03-20T05:48:06.000Z | subt/ros/base/src/motor_controller.py | m3d/osgar_archive_2020 | 556b534e59f8aa9b6c8055e2785c8ae75a1a0a0e | [
"MIT"
] | 618 | 2016-08-30T04:46:12.000Z | 2022-03-25T16:03:10.000Z | subt/ros/base/src/motor_controller.py | robotika/osgar | 6f4f584d5553ab62c08a1c7bb493fefdc9033173 | [
"MIT"
] | 11 | 2016-08-27T20:02:55.000Z | 2022-03-07T08:53:53.000Z | from pid import PID
import pdb
#for anonymous objects
Object = lambda **kwargs: type("Object", (), kwargs)
class MotorController:
def __init__(self, wheelBase,numberOfMotors):
self.pidControllerFrontLeft = PID()
self.pidControllerFrontRight = PID()
self.pidControllerRearLeft = PID()
... | 47.844156 | 140 | 0.659609 | 316 | 3,684 | 7.648734 | 0.212025 | 0.022342 | 0.029789 | 0.032271 | 0.462971 | 0.331403 | 0.308647 | 0.247414 | 0.247414 | 0.21597 | 0 | 0.00833 | 0.250543 | 3,684 | 76 | 141 | 48.473684 | 0.867077 | 0.051574 | 0 | 0.217391 | 0 | 0 | 0.002177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 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 |
e325abcd58eea788430716963a4dc7047047719c | 4,931 | py | Python | shiftscheduler/gui/barebone.py | c-rainbow/nurse-scheduling | 8537c875e46772700499a89dec3a30a796434fe0 | [
"MIT"
] | 2 | 2020-04-16T17:03:56.000Z | 2021-04-08T17:23:21.000Z | shiftscheduler/gui/barebone.py | c-rainbow/nurse-scheduling | 8537c875e46772700499a89dec3a30a796434fe0 | [
"MIT"
] | null | null | null | shiftscheduler/gui/barebone.py | c-rainbow/nurse-scheduling | 8537c875e46772700499a89dec3a30a796434fe0 | [
"MIT"
] | 1 | 2020-05-04T18:03:59.000Z | 2020-05-04T18:03:59.000Z |
import tkinter as tk
from tkinter import filedialog
from tkinter import messagebox
from tkinter import scrolledtext
from tkinter import ttk
import tkcalendar as tkc
from shiftscheduler.data_types import data_types
from shiftscheduler.excel import output as excel_output
from shiftscheduler.gui import constants
from ... | 35.47482 | 110 | 0.636585 | 628 | 4,931 | 4.820064 | 0.307325 | 0.035679 | 0.025438 | 0.026429 | 0.164519 | 0.14635 | 0.105715 | 0.062768 | 0.062768 | 0.062768 | 0 | 0.015257 | 0.268911 | 4,931 | 138 | 111 | 35.731884 | 0.824411 | 0.075441 | 0 | 0.020408 | 0 | 0 | 0.101057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.112245 | 0 | 0.255102 | 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 |
e328edcf699e6d13889b75058d9c53daede11262 | 428 | py | Python | play.py | Samitha156/100-days-of-coding | b47aff0f6d432945a20a5f95e2252cddb6cc5522 | [
"MIT"
] | null | null | null | play.py | Samitha156/100-days-of-coding | b47aff0f6d432945a20a5f95e2252cddb6cc5522 | [
"MIT"
] | null | null | null | play.py | Samitha156/100-days-of-coding | b47aff0f6d432945a20a5f95e2252cddb6cc5522 | [
"MIT"
] | null | null | null | def add(*args):
c = 0
for n in args:
c += n
return c
sum = add(2,5,6,5)
print(sum)
def calculate(**kwargs):
print(kwargs)
calculate(add=3, mul=5)
class Car:
def __init__(self, **kw):
# self.make = kw["make"]
# self.model = kw["model"]
self.ma... | 17.12 | 36 | 0.514019 | 64 | 428 | 3.34375 | 0.4375 | 0.11215 | 0.140187 | 0.121495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023973 | 0.317757 | 428 | 25 | 37 | 17.12 | 0.708904 | 0.109813 | 0 | 0 | 0 | 0 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0 | 0 | 0.3125 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3294c6b906349f5541063a2b6f7ca5cb0e7e90b | 21,406 | py | Python | lib/simpleauth/handler.py | Bekt/tweetement | 5cdb2e7db30a1600fbf522754c4917f8c9e377a6 | [
"MIT"
] | 2 | 2015-02-18T17:31:58.000Z | 2019-04-01T13:44:45.000Z | lib/simpleauth/handler.py | Bekt/tweetement | 5cdb2e7db30a1600fbf522754c4917f8c9e377a6 | [
"MIT"
] | 1 | 2015-01-26T03:58:19.000Z | 2015-01-26T03:58:19.000Z | lib/simpleauth/handler.py | Bekt/tweetement | 5cdb2e7db30a1600fbf522754c4917f8c9e377a6 | [
"MIT"
] | 1 | 2021-05-04T21:15:53.000Z | 2021-05-04T21:15:53.000Z | # -*- coding: utf-8 -*-
import os
import sys
import logging
import json
from urllib import urlencode
import urlparse
# for CSRF state tokens
import time
import base64
# Get available json parser
try:
# should be the fastest on App Engine py27.
import json
except ImportError:
try:
import simplejson as json
... | 34.525806 | 80 | 0.679996 | 2,805 | 21,406 | 5.021034 | 0.160428 | 0.014769 | 0.00781 | 0.009088 | 0.350398 | 0.283158 | 0.24148 | 0.218759 | 0.203777 | 0.198523 | 0 | 0.011983 | 0.208633 | 21,406 | 619 | 81 | 34.581583 | 0.819421 | 0.274035 | 0 | 0.227405 | 0 | 0.005831 | 0.197837 | 0.018228 | 0 | 0 | 0 | 0.001616 | 0 | 1 | 0.078717 | false | 0.017493 | 0.055394 | 0 | 0.250729 | 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 |
e331235f5a65953d372c517da81e56d9c43aa850 | 2,652 | py | Python | scenegraph/pddlgym_planners/lapkt.py | taskography/3dscenegraph-dev | 2c261241230fbea1f1c687ff793478248f25c02c | [
"MIT"
] | 1 | 2022-01-30T22:06:57.000Z | 2022-01-30T22:06:57.000Z | scenegraph/pddlgym_planners/lapkt.py | taskography/3dscenegraph-dev | 2c261241230fbea1f1c687ff793478248f25c02c | [
"MIT"
] | null | null | null | scenegraph/pddlgym_planners/lapkt.py | taskography/3dscenegraph-dev | 2c261241230fbea1f1c687ff793478248f25c02c | [
"MIT"
] | null | null | null | """LAPKT-BFWS
https://github.com/nirlipo/BFWS-public
"""
import re
import os
import sys
import subprocess
import tempfile
from pddlgym_planners.pddl_planner import PDDLPlanner
from pddlgym_planners.planner import PlanningFailure
import numpy as np
from utils import FilesInCommonTempDirectory
DOCKER_IMAGE = 'khodeir/b... | 42.774194 | 232 | 0.667044 | 344 | 2,652 | 4.93314 | 0.389535 | 0.028874 | 0.038892 | 0.044196 | 0.115498 | 0.04891 | 0 | 0 | 0 | 0 | 0 | 0.005218 | 0.205128 | 2,652 | 61 | 233 | 43.47541 | 0.79981 | 0.018477 | 0 | 0.081633 | 0 | 0.020408 | 0.219569 | 0.016564 | 0 | 0 | 0 | 0 | 0.040816 | 1 | 0.122449 | false | 0.020408 | 0.183673 | 0 | 0.387755 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e33575c4ac98eb7bd72db9483692a67e2a8b1c0f | 1,914 | py | Python | Create Network Zones.py | Tosatsu/okta-python-scripts | bca5ff89b8fc2381ccab08de971f65505ed0cda5 | [
"MIT"
] | 1 | 2021-04-09T09:46:31.000Z | 2021-04-09T09:46:31.000Z | Create Network Zones.py | Tosatsu/okta-python-scripts | bca5ff89b8fc2381ccab08de971f65505ed0cda5 | [
"MIT"
] | null | null | null | Create Network Zones.py | Tosatsu/okta-python-scripts | bca5ff89b8fc2381ccab08de971f65505ed0cda5 | [
"MIT"
] | 1 | 2021-04-12T11:27:13.000Z | 2021-04-12T11:27:13.000Z | import csv
import re
import sys
import requests
import json
import Data # data container, replace with your own
orgName = Data.orgName # replace with your own
apiKey = Data.apiKey # provide your own API token
api_token = "SSWS " + apiKey
headers = {'Accept': 'application/json',
'Content-Type': 'application... | 29.90625 | 71 | 0.405434 | 153 | 1,914 | 5.006536 | 0.464052 | 0.041775 | 0.067885 | 0.046997 | 0.046997 | 0.046997 | 0.046997 | 0 | 0 | 0 | 0 | 0.029087 | 0.479101 | 1,914 | 64 | 72 | 29.90625 | 0.739218 | 0.044932 | 0 | 0.107143 | 0 | 0 | 0.158904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.178571 | 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 |
e33639a848594d63e324d70460cacf9ae086d33c | 959 | py | Python | simulador_de_dado.py | lucianoferreirasa/PythonProjects | c26a16bcbd61bd0563bc4f7d4dc0dd3593bd95e5 | [
"MIT"
] | null | null | null | simulador_de_dado.py | lucianoferreirasa/PythonProjects | c26a16bcbd61bd0563bc4f7d4dc0dd3593bd95e5 | [
"MIT"
] | null | null | null | simulador_de_dado.py | lucianoferreirasa/PythonProjects | c26a16bcbd61bd0563bc4f7d4dc0dd3593bd95e5 | [
"MIT"
] | null | null | null | import random
import PySimpleGUI as sg
class SimuladorDeDado:
def __init__(self):
self.valor_minimo = 1
self.valor_maximo = 6
self.layout = [
[sg.Text("Jogar o dado?")],
[sg.Button("Sim"),sg.Button("Não")]
]
def Iniciar(self):
self.janela = sg.W... | 29.96875 | 71 | 0.577685 | 110 | 959 | 4.963636 | 0.5 | 0.100733 | 0.054945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002972 | 0.298227 | 959 | 31 | 72 | 30.935484 | 0.808321 | 0 | 0 | 0 | 0 | 0 | 0.154327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.230769 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3370f6e006d93026ba5320fad4727621e81fc92 | 1,712 | py | Python | src/geometry/linear_algebra.py | seahrh/coding-interview | 517d19e7e88c02acec4aa6336bc20206ce3f1897 | [
"MIT"
] | null | null | null | src/geometry/linear_algebra.py | seahrh/coding-interview | 517d19e7e88c02acec4aa6336bc20206ce3f1897 | [
"MIT"
] | null | null | null | src/geometry/linear_algebra.py | seahrh/coding-interview | 517d19e7e88c02acec4aa6336bc20206ce3f1897 | [
"MIT"
] | null | null | null | import math
from typing import List, Iterable, Union
Numeric = Union[int, float]
def magnitude(p: Iterable[Numeric]) -> float:
res: float = 0
for component in p:
res += component ** 2
res = math.sqrt(res)
return res
def vdot(p: List[Numeric], q: List[Numeric]) -> float:
"... | 31.703704 | 86 | 0.567757 | 275 | 1,712 | 3.494545 | 0.24 | 0.066597 | 0.067638 | 0.034339 | 0.21436 | 0.16025 | 0.052029 | 0.052029 | 0 | 0 | 0 | 0.01371 | 0.275701 | 1,712 | 53 | 87 | 32.301887 | 0.76129 | 0.0625 | 0 | 0.153846 | 0 | 0 | 0.100911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.051282 | 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 |
e337db10027ece0f941b1295bc94ad1a0ed34904 | 4,179 | py | Python | arrow/forwarder/views.py | AkhilGKrishnan/arrow | bbd35faa5011c642cdcf218b180b48dd7ef39ef6 | [
"MIT"
] | null | null | null | arrow/forwarder/views.py | AkhilGKrishnan/arrow | bbd35faa5011c642cdcf218b180b48dd7ef39ef6 | [
"MIT"
] | null | null | null | arrow/forwarder/views.py | AkhilGKrishnan/arrow | bbd35faa5011c642cdcf218b180b48dd7ef39ef6 | [
"MIT"
] | 3 | 2019-01-07T17:07:16.000Z | 2021-01-09T13:01:40.000Z | from django.views.generic.edit import CreateView, FormMixin
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django import forms
from django.urls import reverse
from reportlab.pdfgen import canvas
from django.http import HttpResponse
from forwarder.models import A... | 36.025862 | 93 | 0.675042 | 489 | 4,179 | 5.674847 | 0.312883 | 0.031712 | 0.04036 | 0.056216 | 0.221622 | 0.167928 | 0.167928 | 0.136937 | 0.136937 | 0.136937 | 0 | 0.016268 | 0.220388 | 4,179 | 115 | 94 | 36.33913 | 0.835482 | 0.160804 | 0 | 0.144737 | 0 | 0 | 0.093043 | 0.015459 | 0 | 0 | 0 | 0.008696 | 0 | 1 | 0.092105 | false | 0.026316 | 0.105263 | 0.013158 | 0.460526 | 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 |
e3390f43d3793bc787b6b52cd5f2cc575976a36e | 4,793 | py | Python | caption_feats_generation_scripts/full_vid_data_loader.py | Alterith/Dense_Video_Captioning_Feature_Extraction_Model_Choice | 65d0f2d26698cc8f7a5ffb564936113e2bbec201 | [
"MIT"
] | 1 | 2021-04-21T12:39:07.000Z | 2021-04-21T12:39:07.000Z | caption_feats_generation_scripts/full_vid_data_loader.py | Alterith/masters_code | 65d0f2d26698cc8f7a5ffb564936113e2bbec201 | [
"MIT"
] | null | null | null | caption_feats_generation_scripts/full_vid_data_loader.py | Alterith/masters_code | 65d0f2d26698cc8f7a5ffb564936113e2bbec201 | [
"MIT"
] | null | null | null | import h5py
# torch imports
import torch
from torch.utils.data import Dataset
# generic imports
import os
import sys
import numpy as np
import random
import pandas as pd
import cv2
from decord import VideoReader
from decord import cpu, gpu
from matplotlib import pyplot as plt
import gc
# create data loader
class ... | 30.335443 | 130 | 0.580638 | 596 | 4,793 | 4.505034 | 0.276846 | 0.041713 | 0.075978 | 0.089385 | 0.222719 | 0.158659 | 0.142272 | 0.107263 | 0.099814 | 0.099814 | 0 | 0.029072 | 0.332568 | 4,793 | 157 | 131 | 30.528662 | 0.810253 | 0.150428 | 0 | 0.133333 | 0 | 0 | 0.005685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.144444 | 0.011111 | 0.277778 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e339d61b7c0a81fbe079a184470ec5bdef08b9e1 | 1,583 | py | Python | sklearn_baseline.py | Shinkai125/KerasForTextClassfication | ed3d04c5c58d1dfb3f79b83ba704dd486616f0e4 | [
"MIT"
] | null | null | null | sklearn_baseline.py | Shinkai125/KerasForTextClassfication | ed3d04c5c58d1dfb3f79b83ba704dd486616f0e4 | [
"MIT"
] | null | null | null | sklearn_baseline.py | Shinkai125/KerasForTextClassfication | ed3d04c5c58d1dfb3f79b83ba704dd486616f0e4 | [
"MIT"
] | null | null | null | """
@file: sklearn_method.py
@time: 2020-12-09 17:38:38
"""
import pandas as pd
import seaborn as sns
from tqdm import tqdm
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import RandomForestClassifier
from sklearn.naive_bayes import... | 31.66 | 78 | 0.753001 | 222 | 1,583 | 5.193694 | 0.531532 | 0.057242 | 0.02255 | 0.027754 | 0.041631 | 0.041631 | 0.041631 | 0 | 0 | 0 | 0 | 0.023022 | 0.12192 | 1,583 | 49 | 79 | 32.306122 | 0.806475 | 0.036008 | 0 | 0 | 0 | 0 | 0.06917 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.297297 | 0 | 0.297297 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e33bc5cbc72c8153bc963c853fb7e883e19b21c8 | 2,087 | py | Python | handypackages/gallery/tests.py | roundium/handypackages | b8a0e4952644144b31168f9a4ac8e743933d87c7 | [
"MIT"
] | 1 | 2019-07-31T11:40:06.000Z | 2019-07-31T11:40:06.000Z | handypackages/gallery/tests.py | roundium/handypackages | b8a0e4952644144b31168f9a4ac8e743933d87c7 | [
"MIT"
] | 10 | 2020-02-12T01:16:25.000Z | 2021-06-10T18:42:24.000Z | handypackages/gallery/tests.py | roundium/handypackages | b8a0e4952644144b31168f9a4ac8e743933d87c7 | [
"MIT"
] | 1 | 2019-07-31T11:40:18.000Z | 2019-07-31T11:40:18.000Z | import tempfile
from django.conf import settings
from django.contrib.auth.models import User
from django.core.files.uploadedfile import SimpleUploadedFile
from django.test import TestCase
from filer.models import Image
from handypackages.tag.models import Tag
from .models import Gallery
class TestGalleryModels(Tes... | 29.394366 | 77 | 0.577384 | 218 | 2,087 | 5.380734 | 0.394495 | 0.055413 | 0.054561 | 0.071611 | 0.068201 | 0.068201 | 0.068201 | 0.068201 | 0 | 0 | 0 | 0 | 0.330139 | 2,087 | 70 | 78 | 29.814286 | 0.839056 | 0.04552 | 0 | 0.089286 | 0 | 0 | 0.175465 | 0.03821 | 0 | 0 | 0 | 0 | 0.053571 | 1 | 0.035714 | false | 0 | 0.142857 | 0 | 0.196429 | 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 |
e33ec5c64b5732e244db6498e5c0817ede88b3d0 | 1,650 | py | Python | make_high_indel.py | wckdouglas/ngs_qc_plot | b279905f9e30d1cf547cda5f51cc77e8a134ce99 | [
"MIT"
] | null | null | null | make_high_indel.py | wckdouglas/ngs_qc_plot | b279905f9e30d1cf547cda5f51cc77e8a134ce99 | [
"MIT"
] | null | null | null | make_high_indel.py | wckdouglas/ngs_qc_plot | b279905f9e30d1cf547cda5f51cc77e8a134ce99 | [
"MIT"
] | null | null | null | #!/usr/env python
import pandas as pd
import os
import sys
import numpy as np
if len(sys.argv) != 3:
sys.exit('[usage] python %s <repeat_index table> <indel cutoff>')
ref_table = sys.argv[1]
indel_cut_off = int(sys.argv[2])
for gdf in pd.read_csv(ref_table, sep='\t', chunksize = 10000):
for contig, contig... | 36.666667 | 115 | 0.512121 | 187 | 1,650 | 4.347594 | 0.374332 | 0.135301 | 0.086101 | 0.04674 | 0.162362 | 0.162362 | 0.162362 | 0.081181 | 0 | 0 | 0 | 0.011617 | 0.373939 | 1,650 | 44 | 116 | 37.5 | 0.775411 | 0.009697 | 0 | 0 | 0 | 0.027778 | 0.15493 | 0.043478 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e340a47d3057e0a84cad2effe274acb95c936bc5 | 662 | py | Python | LeetCodeSolutions/python/474_Ones_and_Zeroes.py | ChuanleiGuo/AlgorithmsPlayground | 90b6287b742c8bfd3797540c408d679be2821a40 | [
"MIT"
] | 1 | 2017-03-27T13:38:37.000Z | 2017-03-27T13:38:37.000Z | LeetCodeSolutions/python/474_Ones_and_Zeroes.py | ChuanleiGuo/AlgorithmsPlayground | 90b6287b742c8bfd3797540c408d679be2821a40 | [
"MIT"
] | null | null | null | LeetCodeSolutions/python/474_Ones_and_Zeroes.py | ChuanleiGuo/AlgorithmsPlayground | 90b6287b742c8bfd3797540c408d679be2821a40 | [
"MIT"
] | null | null | null | class Solution(object):
def findMaxForm(self, strs, m, n):
"""
:type strs: List[str]
:type m: int
:type n: int
:rtype: int
"""
dp = [[0] * (n + 1) for _ in range(m + 1)]
def counts(s):
return sum(1 for c in s if c == '0'), \
... | 30.090909 | 83 | 0.413897 | 105 | 662 | 2.542857 | 0.314286 | 0.074906 | 0.059925 | 0.067416 | 0.104869 | 0.104869 | 0.104869 | 0.104869 | 0 | 0 | 0 | 0.031915 | 0.432024 | 662 | 21 | 84 | 31.52381 | 0.678191 | 0.089124 | 0 | 0 | 0 | 0 | 0.003604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e34633ea0534cf1b5136a4ecb84b248d7c202e57 | 416 | py | Python | #103 - Ficha do Jogador.py | Lucas-HMSC/curso-python3 | b6506d508107c9a43993a7b5795ee39fc3b7c79d | [
"MIT"
] | null | null | null | #103 - Ficha do Jogador.py | Lucas-HMSC/curso-python3 | b6506d508107c9a43993a7b5795ee39fc3b7c79d | [
"MIT"
] | null | null | null | #103 - Ficha do Jogador.py | Lucas-HMSC/curso-python3 | b6506d508107c9a43993a7b5795ee39fc3b7c79d | [
"MIT"
] | null | null | null | def ficha(nome, gols):
if gols.isnumeric():
gols = int(gols)
else:
gols = 0
if nome.strip() != '':
print(f'O jogador {nome} fez {gols} gol(s) no campeonato.')
else:
nome = '<desconhecido>'
print(f'O jogador {nome} fez {gols} gol(s) no campeonato.')
print('='*30)... | 24.470588 | 67 | 0.560096 | 58 | 416 | 4.017241 | 0.448276 | 0.077253 | 0.111588 | 0.120172 | 0.351931 | 0.351931 | 0.351931 | 0.351931 | 0.351931 | 0.351931 | 0 | 0.009772 | 0.262019 | 416 | 16 | 68 | 26 | 0.749186 | 0 | 0 | 0.285714 | 0 | 0 | 0.350962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.071429 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e347e8efaaade3a7b28a992e4961e185b12004e3 | 2,079 | py | Python | app/business_layers/presentation.py | martireg/bmat | b5ccd6dcd1edd1e90fa07cb0ef4006b909018a4c | [
"MIT"
] | null | null | null | app/business_layers/presentation.py | martireg/bmat | b5ccd6dcd1edd1e90fa07cb0ef4006b909018a4c | [
"MIT"
] | null | null | null | app/business_layers/presentation.py | martireg/bmat | b5ccd6dcd1edd1e90fa07cb0ef4006b909018a4c | [
"MIT"
] | null | null | null | from typing import List, Dict
from fastapi import APIRouter, UploadFile, File, Depends, HTTPException
from pydantic import create_model
from starlette.responses import StreamingResponse
from app.business_layers.domain import Work
from app.business_layers.repository import WorkRepository
from app.business_layers.use_c... | 34.65 | 101 | 0.746032 | 299 | 2,079 | 4.959866 | 0.324415 | 0.028321 | 0.032367 | 0.037761 | 0.138908 | 0.079568 | 0.033715 | 0 | 0 | 0 | 0 | 0.003928 | 0.142857 | 2,079 | 59 | 102 | 35.237288 | 0.828283 | 0.047619 | 0 | 0 | 0 | 0 | 0.072801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.209302 | 0 | 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 |
e349722dbbb7eaf1a0dc75722c25f01806dbcca5 | 3,632 | py | Python | language/serene/boolq_tfds.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 1,199 | 2018-10-16T01:30:18.000Z | 2022-03-31T21:05:24.000Z | language/serene/boolq_tfds.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 116 | 2018-10-18T03:31:46.000Z | 2022-03-24T13:40:50.000Z | language/serene/boolq_tfds.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 303 | 2018-10-22T12:35:12.000Z | 2022-03-27T17:38:17.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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 ... | 32.141593 | 75 | 0.593337 | 398 | 3,632 | 5.233668 | 0.444724 | 0.046087 | 0.026884 | 0.025924 | 0.12482 | 0.102736 | 0 | 0 | 0 | 0 | 0 | 0.007232 | 0.314703 | 3,632 | 112 | 76 | 32.428571 | 0.82965 | 0.257159 | 0 | 0.320988 | 0 | 0 | 0.100638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049383 | false | 0.012346 | 0.061728 | 0.012346 | 0.160494 | 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 |
e34cc6ddd23022672aee1685f571b987ab87c815 | 936 | py | Python | services/viewcounts/utils.py | RyanFleck/AuxilliaryWebsiteServices | bcaa6689e567fdf9f20f7f4ea84043aa2b6f1378 | [
"MIT"
] | 1 | 2020-11-11T20:20:42.000Z | 2020-11-11T20:20:42.000Z | services/viewcounts/utils.py | RyanFleck/AuxilliaryWebsiteServices | bcaa6689e567fdf9f20f7f4ea84043aa2b6f1378 | [
"MIT"
] | 17 | 2020-11-09T19:04:04.000Z | 2022-03-01T18:08:42.000Z | services/viewcounts/utils.py | RyanFleck/AuxilliaryWebsiteServices | bcaa6689e567fdf9f20f7f4ea84043aa2b6f1378 | [
"MIT"
] | null | null | null | from slugify import slugify
from services.viewcounts.models import PageViewsModel
def get_page_views(url: str):
"""Returns the number of views for a given page object."""
# Pre-processing checks: Client should not pass full or partial URL.
if not url.startswith("/"):
raise Exception("Partial URL... | 28.363636 | 73 | 0.672009 | 141 | 936 | 4.397163 | 0.503546 | 0.058065 | 0.048387 | 0.06129 | 0.096774 | 0.096774 | 0.096774 | 0 | 0 | 0 | 0 | 0.005548 | 0.229701 | 936 | 32 | 74 | 29.25 | 0.854369 | 0.269231 | 0 | 0 | 0 | 0 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e34da2a39a4311b17cd41e029318a815155da9e9 | 9,875 | py | Python | bin/gaussian_process_samples.py | ltiao/videos | ba371078d107da5a4c726a957b31a29bb157664d | [
"MIT"
] | null | null | null | bin/gaussian_process_samples.py | ltiao/videos | ba371078d107da5a4c726a957b31a29bb157664d | [
"MIT"
] | null | null | null | bin/gaussian_process_samples.py | ltiao/videos | ba371078d107da5a4c726a957b31a29bb157664d | [
"MIT"
] | null | null | null | import tensorflow as tf
import tensorflow_probability as tfp
from scipy.stats import expon
from videos.linalg import safe_cholesky
from manim import *
# shortcuts
tfd = tfp.distributions
kernels = tfp.math.psd_kernels
def default_float():
return "float64"
class State:
def __init__(self, kernel, x_grid, x... | 35.142349 | 127 | 0.582278 | 1,388 | 9,875 | 3.898415 | 0.177954 | 0.033266 | 0.030493 | 0.022177 | 0.377195 | 0.326187 | 0.2798 | 0.262244 | 0.249861 | 0.231011 | 0 | 0.020948 | 0.299038 | 9,875 | 280 | 128 | 35.267857 | 0.760763 | 0.098228 | 0 | 0.194872 | 0 | 0 | 0.005411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112821 | false | 0 | 0.025641 | 0.020513 | 0.246154 | 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 |
e34e43e9e1aa6f169f4e3ce01d35a03a886c9108 | 932 | py | Python | app/api/v2/models/base_models.py | erick-maina/Questioner_API | 0ffad203fd525e22b52e861ce574803a844cc3b3 | [
"MIT"
] | null | null | null | app/api/v2/models/base_models.py | erick-maina/Questioner_API | 0ffad203fd525e22b52e861ce574803a844cc3b3 | [
"MIT"
] | 7 | 2019-01-15T12:23:59.000Z | 2019-01-20T17:32:45.000Z | app/api/v2/models/base_models.py | erick-maina/Questioner_API | 0ffad203fd525e22b52e861ce574803a844cc3b3 | [
"MIT"
] | null | null | null | """
This module defines the base model and associated functions
"""
from flask import Flask, jsonify
from psycopg2.extras import RealDictCursor
from ....database import db_con
class BaseModels(object):
"""
This class encapsulates the functions of the base model
that will be shared across all other models... | 30.064516 | 69 | 0.648069 | 115 | 932 | 5.182609 | 0.573913 | 0.035235 | 0.040268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002874 | 0.253219 | 932 | 30 | 70 | 31.066667 | 0.853448 | 0.332618 | 0 | 0 | 0 | 0 | 0.054482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e350ce9086d7c563b5e1154ba5f38a8024e85d87 | 779 | py | Python | inconnu/traits/traitcommon.py | tiltowait/inconnu | 6cca5fed520899d159537701b695c94222d8dc45 | [
"MIT"
] | 4 | 2021-09-06T20:18:13.000Z | 2022-02-05T17:08:44.000Z | inconnu/traits/traitcommon.py | tiltowait/inconnu | 6cca5fed520899d159537701b695c94222d8dc45 | [
"MIT"
] | 7 | 2021-09-13T00:46:57.000Z | 2022-01-11T06:38:50.000Z | inconnu/traits/traitcommon.py | tiltowait/inconnu | 6cca5fed520899d159537701b695c94222d8dc45 | [
"MIT"
] | 2 | 2021-11-27T22:24:53.000Z | 2022-03-16T21:05:00.000Z | """traits/traitcommon.py - Common functionality across trait operations."""
import re
from ..constants import UNIVERSAL_TRAITS
VALID_TRAIT_PATTERN = re.compile(r"^[A-z_]+$")
def validate_trait_names(*traits):
"""
Raises a ValueError if a trait doesn't exist and a SyntaxError
if the syntax is bad.
""... | 33.869565 | 100 | 0.671374 | 107 | 779 | 4.785047 | 0.551402 | 0.041016 | 0.066406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006568 | 0.218229 | 779 | 22 | 101 | 35.409091 | 0.834154 | 0.197689 | 0 | 0 | 0 | 0 | 0.321667 | 0.036667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 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 |
e355aa3c3d4c58a325cb59719ca07b7c1a10df4b | 2,293 | py | Python | docker_ml_templates/simple_batch_model/container/src/tests/test_model.py | MadMedian/ubik | d8dabf0a26db1e35c653b23facb5045f2ae7bf0d | [
"Apache-2.0"
] | null | null | null | docker_ml_templates/simple_batch_model/container/src/tests/test_model.py | MadMedian/ubik | d8dabf0a26db1e35c653b23facb5045f2ae7bf0d | [
"Apache-2.0"
] | null | null | null | docker_ml_templates/simple_batch_model/container/src/tests/test_model.py | MadMedian/ubik | d8dabf0a26db1e35c653b23facb5045f2ae7bf0d | [
"Apache-2.0"
] | null | null | null | import unittest
from ..model import RandomForestWithFeatureSelection
from sklearn.model_selection import train_test_split
import os
import numpy as np
def create_dataset(n_rows=1000, n_feats=10, pos_loc=2.0, neg_loc=0.0,
pos_scale=3.0, neg_scale=3.0, random_state=1):
np.random.seed(random_state... | 39.534483 | 113 | 0.69167 | 339 | 2,293 | 4.383481 | 0.238938 | 0.081427 | 0.050471 | 0.056528 | 0.462988 | 0.440108 | 0.440108 | 0.356662 | 0.263795 | 0.263795 | 0 | 0.019978 | 0.192324 | 2,293 | 57 | 114 | 40.22807 | 0.782397 | 0 | 0 | 0.177778 | 0 | 0 | 0.034889 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.288889 | 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 |
e357ec80e01c5cb1d929b33f8d9bbb4379d90eae | 43,051 | py | Python | DataAnalysis.py | ben-dent/Contract-Cheating-Analysis | 28999b5ac73dbb6f4a65ef3d8f8dd4db677c42df | [
"MIT"
] | null | null | null | DataAnalysis.py | ben-dent/Contract-Cheating-Analysis | 28999b5ac73dbb6f4a65ef3d8f8dd4db677c42df | [
"MIT"
] | null | null | null | DataAnalysis.py | ben-dent/Contract-Cheating-Analysis | 28999b5ac73dbb6f4a65ef3d8f8dd4db677c42df | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt;
plt.rcdefaults()
import csv
import sqlite3 as lite
from calendar import monthrange
from datetime import datetime, date, timedelta
from datetimerange import DateTimeRange
import numpy as np
import pycountry_convert as pc
from dateutil.relativedelta import relativedelta
from forex_pytho... | 31.016571 | 184 | 0.551207 | 4,617 | 43,051 | 5.119558 | 0.10548 | 0.02073 | 0.016246 | 0.008377 | 0.646063 | 0.610653 | 0.573254 | 0.55887 | 0.547066 | 0.526632 | 0 | 0.01628 | 0.312281 | 43,051 | 1,388 | 185 | 31.016571 | 0.782079 | 0.044575 | 0 | 0.568769 | 0 | 0.004137 | 0.13025 | 0.001023 | 0.001034 | 0 | 0 | 0 | 0 | 1 | 0.033092 | false | 0 | 0.01241 | 0 | 0.061013 | 0.015512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e359de552a30d24e6371b5e1ad922405353576ab | 1,733 | py | Python | deploy_flask_plotly/app.py | mohamedsaadmoustafa/Arabic_Dialect_Classification | a13e92ddaa8fda5afcc40d1ce97946174f9a4674 | [
"BSD-3-Clause"
] | null | null | null | deploy_flask_plotly/app.py | mohamedsaadmoustafa/Arabic_Dialect_Classification | a13e92ddaa8fda5afcc40d1ce97946174f9a4674 | [
"BSD-3-Clause"
] | null | null | null | deploy_flask_plotly/app.py | mohamedsaadmoustafa/Arabic_Dialect_Classification | a13e92ddaa8fda5afcc40d1ce97946174f9a4674 | [
"BSD-3-Clause"
] | 1 | 2022-03-14T19:41:57.000Z | 2022-03-14T19:41:57.000Z | from flask import Flask, render_template, request, jsonify
import numpy as np
import pickle
import sys
import json
import re
app = Flask(__name__)
app.config['JSON_AS_ASCII'] = False
target_names = [
'AE', 'BH', 'DZ',
'EG', 'IQ', 'JO',
'KW', 'LB', 'LY',
'MA', 'OM','PL',
'QA', ... | 27.507937 | 112 | 0.562031 | 226 | 1,733 | 4.154867 | 0.50885 | 0.047923 | 0.038339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007675 | 0.248125 | 1,733 | 63 | 113 | 27.507937 | 0.71297 | 0.028275 | 0 | 0 | 0 | 0 | 0.219271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.12766 | 0 | 0.255319 | 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 |
e359e595d02499d12ce9088ccf34ac138ffada36 | 384 | py | Python | 2018/2/hash.py | octonion/adventofcode | 132e8bf0c9bc0ad64a0e12e22170177df4947e37 | [
"MIT"
] | 1 | 2019-01-10T09:43:34.000Z | 2019-01-10T09:43:34.000Z | 2018/2/hash.py | octonion/adventofcode | 132e8bf0c9bc0ad64a0e12e22170177df4947e37 | [
"MIT"
] | null | null | null | 2018/2/hash.py | octonion/adventofcode | 132e8bf0c9bc0ad64a0e12e22170177df4947e37 | [
"MIT"
] | null | null | null | data = [i.strip() for i in open("input.txt").readlines()]
two = 0
three = 0
for code in data:
counts = {}
for i in range(0,len(code)):
if code[i] in counts.keys():
counts[code[i]] += 1
else:
counts[code[i]] = 1
if (2 in counts.values()):
two += 1
if (3 in... | 21.333333 | 57 | 0.492188 | 58 | 384 | 3.258621 | 0.413793 | 0.047619 | 0.063492 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.34375 | 384 | 17 | 58 | 22.588235 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e35b469d7625c1fa8f422ae121b4eaab1ed606da | 10,171 | py | Python | origin/app_bb_modifier.py | nukeguys/myutil | 65d0aff36ec45bffbd2e52fea0fabfbabd5609b1 | [
"Apache-2.0"
] | null | null | null | origin/app_bb_modifier.py | nukeguys/myutil | 65d0aff36ec45bffbd2e52fea0fabfbabd5609b1 | [
"Apache-2.0"
] | null | null | null | origin/app_bb_modifier.py | nukeguys/myutil | 65d0aff36ec45bffbd2e52fea0fabfbabd5609b1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import sys
import os
import io
from orderedset import OrderedSet
from shell import Shell
import logpath as LogPath
VERSION = '1.1'
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
current_path... | 39.730469 | 125 | 0.534756 | 1,155 | 10,171 | 4.627706 | 0.193074 | 0.022638 | 0.016464 | 0.022451 | 0.240225 | 0.200187 | 0.200187 | 0.16913 | 0.16913 | 0.156408 | 0 | 0.016525 | 0.3158 | 10,171 | 255 | 126 | 39.886275 | 0.751545 | 0.026153 | 0 | 0.101322 | 0 | 0.044053 | 0.169497 | 0.037801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105727 | false | 0 | 0.026432 | 0 | 0.22467 | 0.088106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e35b94ca7170c796ccad0fbd61ea4ee542cd52e0 | 3,514 | py | Python | gamebike/controlmapbits.py | johnlpage/gamebike | 429736d0238dca2961763f2a33d8e4e72ed97364 | [
"Apache-2.0"
] | null | null | null | gamebike/controlmapbits.py | johnlpage/gamebike | 429736d0238dca2961763f2a33d8e4e72ed97364 | [
"Apache-2.0"
] | null | null | null | gamebike/controlmapbits.py | johnlpage/gamebike | 429736d0238dca2961763f2a33d8e4e72ed97364 | [
"Apache-2.0"
] | null | null | null | # These were used when I was trying to map between controllers
# To map to a wheel - but was defeated in that by using a driver
# 2021 comment (What did I mean there?)
GAMEPAD_TRIANGLE = (0, 0x08)
GAMEPAD_CIRCLE = (0, 0x04)
GAMEPAD_CROSS = (0, 0x02)
GAMEPAD_SQUARE = (0, 0x01)
GAMEPAD_DPAD_MASK = 0x0F
GAMEPAD_DPAD_NON... | 24.746479 | 79 | 0.726807 | 538 | 3,514 | 4.399628 | 0.280669 | 0.057034 | 0.021546 | 0.00507 | 0.213773 | 0.205323 | 0.205323 | 0.205323 | 0.205323 | 0.205323 | 0 | 0.090971 | 0.164769 | 3,514 | 142 | 80 | 24.746479 | 0.715503 | 0.132328 | 0 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082345 | 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 |
e360941b07ce2d49e4d682a79c218a27dc642b96 | 1,696 | py | Python | tests/test_init.py | nuvolos-cloud/resolos | 0918066cab7b11ef04ae005f3e052b14a65ded68 | [
"MIT"
] | 1 | 2021-11-30T06:47:24.000Z | 2021-11-30T06:47:24.000Z | tests/test_init.py | nuvolos-cloud/resolos | 0918066cab7b11ef04ae005f3e052b14a65ded68 | [
"MIT"
] | 1 | 2021-04-08T12:56:39.000Z | 2021-04-08T12:56:39.000Z | tests/test_init.py | nuvolos-cloud/resolos | 0918066cab7b11ef04ae005f3e052b14a65ded68 | [
"MIT"
] | null | null | null | from pathlib import Path
from click.testing import CliRunner
from resolos.interface import res, res_run
from resolos.shell import run_shell_cmd
from tests.common import verify_result
import logging
logger = logging.getLogger(__name__)
def test_init_empty():
runner = CliRunner()
with runner.isolated_filesyste... | 34.612245 | 108 | 0.595519 | 193 | 1,696 | 4.984456 | 0.393782 | 0.121622 | 0.138254 | 0.129938 | 0.556133 | 0.507277 | 0.507277 | 0.507277 | 0.251559 | 0.251559 | 0 | 0.004174 | 0.293632 | 1,696 | 48 | 109 | 35.333333 | 0.798831 | 0 | 0 | 0.27907 | 0 | 0.023256 | 0.212854 | 0.042453 | 0 | 0 | 0 | 0 | 0.209302 | 1 | 0.046512 | false | 0 | 0.139535 | 0 | 0.186047 | 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 |
e36654005301b9cf41913be091e578a74c259424 | 1,669 | py | Python | pythonapm/collector/test_reqhandler.py | nextapm/pythonapm | ddd8ad374e4f268516fc81f0bf710206565b737e | [
"FTL"
] | null | null | null | pythonapm/collector/test_reqhandler.py | nextapm/pythonapm | ddd8ad374e4f268516fc81f0bf710206565b737e | [
"FTL"
] | null | null | null | pythonapm/collector/test_reqhandler.py | nextapm/pythonapm | ddd8ad374e4f268516fc81f0bf710206565b737e | [
"FTL"
] | null | null | null | import unittest
import json
import requests
from unittest import mock
from .reqhandler import send_req
from pythonapm.agent import Agent
from pythonapm import constants
class Resp:
def __init__(self):
self.data = json.dumps({'txn':'success'})
def json(self):
return json.loads(self.data)
cl... | 37.931818 | 233 | 0.711803 | 216 | 1,669 | 5.319444 | 0.319444 | 0.039164 | 0.039164 | 0.070496 | 0.197563 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000714 | 0.161174 | 1,669 | 43 | 234 | 38.813953 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0.270546 | 0.15177 | 0 | 0 | 0 | 0 | 0.121212 | 1 | 0.121212 | false | 0 | 0.212121 | 0.030303 | 0.424242 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e369c6172f4572b618818bae53263220f4153bc2 | 934 | py | Python | util/label.py | bluehackmaster/bl-api-objdetect | dc8b514e62346904c3b9ab7e88987461721dd6b0 | [
"Apache-2.0"
] | null | null | null | util/label.py | bluehackmaster/bl-api-objdetect | dc8b514e62346904c3b9ab7e88987461721dd6b0 | [
"Apache-2.0"
] | 16 | 2020-01-28T21:56:54.000Z | 2022-03-11T23:15:09.000Z | util/label.py | bluehackmaster/bl-api-objdetect | dc8b514e62346904c3b9ab7e88987461721dd6b0 | [
"Apache-2.0"
] | 1 | 2017-10-17T04:52:08.000Z | 2017-10-17T04:52:08.000Z |
def convert_class_to_code(label_map,
max_num_classes,
use_display_name=True):
categories = []
list_of_ids_already_added = []
if not label_map:
label_id_offset = 1
for class_id in range(max_num_classes):
categories.append({
'id': class_id +... | 33.357143 | 72 | 0.635974 | 128 | 934 | 4.328125 | 0.367188 | 0.054152 | 0.070397 | 0.086643 | 0.185921 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002941 | 0.271949 | 934 | 27 | 73 | 34.592593 | 0.811765 | 0 | 0 | 0.076923 | 0 | 0 | 0.105038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.115385 | 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 |
e36ae367550f66dd2b4a1cdb03a10bf47b3c6b9c | 5,694 | py | Python | hdp_api/routes/__init__.py | CedricCazinHC/HyperAPI | 789419b95679faf550a57773b9cc57107b2b8504 | [
"BSD-3-Clause"
] | null | null | null | hdp_api/routes/__init__.py | CedricCazinHC/HyperAPI | 789419b95679faf550a57773b9cc57107b2b8504 | [
"BSD-3-Clause"
] | null | null | null | hdp_api/routes/__init__.py | CedricCazinHC/HyperAPI | 789419b95679faf550a57773b9cc57107b2b8504 | [
"BSD-3-Clause"
] | null | null | null | from abc import ABCMeta, abstractproperty, abstractmethod
import inspect
import random
import re
import time
from requests.exceptions import HTTPError
class RoutePathInvalidException(Exception):
def __init__(self, name, value, path, validator):
self.path = path
self.name = name
self.value =... | 31.114754 | 131 | 0.592378 | 634 | 5,694 | 5.020505 | 0.225552 | 0.03016 | 0.020421 | 0.028275 | 0.404964 | 0.340245 | 0.340245 | 0.278668 | 0.24568 | 0.24568 | 0 | 0.013248 | 0.284159 | 5,694 | 182 | 132 | 31.285714 | 0.767664 | 0.053565 | 0 | 0.457746 | 0 | 0 | 0.050813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.161972 | false | 0 | 0.042254 | 0.06338 | 0.457746 | 0.007042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e36c689a2b24e54549cda9f00830211a35aefafa | 5,141 | py | Python | source.py | Sakshisingh05/ClockChian | 21ce1005c83b003a9fc62203d03c50b3e8f70793 | [
"MIT"
] | null | null | null | source.py | Sakshisingh05/ClockChian | 21ce1005c83b003a9fc62203d03c50b3e8f70793 | [
"MIT"
] | null | null | null | source.py | Sakshisingh05/ClockChian | 21ce1005c83b003a9fc62203d03c50b3e8f70793 | [
"MIT"
] | null | null | null | from flask import Flask
from flask import render_template, redirect, url_for
from flask import request
import blockChain
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
# print(request.method )
if request.method == 'POST':
text = request.form['text']
if len(text) < ... | 29.545977 | 108 | 0.606497 | 682 | 5,141 | 4.334311 | 0.16129 | 0.051421 | 0.051759 | 0.042287 | 0.479364 | 0.406631 | 0.305819 | 0.23207 | 0.207713 | 0.207713 | 0 | 0.010419 | 0.253258 | 5,141 | 173 | 109 | 29.716763 | 0.759573 | 0.016923 | 0 | 0.371429 | 0 | 0 | 0.082591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.057143 | 0 | 0.214286 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e36e0bc7f72121825603a719d4feff88206f860b | 5,668 | py | Python | download_pinterest_images.py | BrunoKrinski/pinterest_download_tools | c804f83bc97c418ea44f1d179ad9864e90631fe5 | [
"MIT"
] | 1 | 2022-03-07T04:38:26.000Z | 2022-03-07T04:38:26.000Z | download_pinterest_images.py | BrunoKrinski/pinterest_download_tools | c804f83bc97c418ea44f1d179ad9864e90631fe5 | [
"MIT"
] | null | null | null | download_pinterest_images.py | BrunoKrinski/pinterest_download_tools | c804f83bc97c418ea44f1d179ad9864e90631fe5 | [
"MIT"
] | null | null | null | import os
import wget
import time
import argparse
import subprocess
import geckodriver_autoinstaller
import chromedriver_autoinstaller
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver import FirefoxOptions
from selenium.webdriver import DesiredCapabilities
fr... | 35.873418 | 114 | 0.569689 | 636 | 5,668 | 4.946541 | 0.308176 | 0.049587 | 0.060076 | 0.034329 | 0.211697 | 0.158932 | 0.143039 | 0.109981 | 0.054037 | 0.054037 | 0 | 0.007965 | 0.313338 | 5,668 | 157 | 115 | 36.101911 | 0.80036 | 0.07657 | 0 | 0.141667 | 0 | 0.016667 | 0.197155 | 0.023508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.166667 | 0 | 0.191667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e3727e0484521064be92f2b66e6c5b9dd289ef54 | 897 | py | Python | kinsumer/helpers.py | ungikim/kinsumer | 01bd9626d985bc3c239b979f0d98094f78cc102f | [
"MIT"
] | 5 | 2018-03-09T05:16:38.000Z | 2021-11-12T11:56:18.000Z | kinsumer/helpers.py | ungikim/kinsumer | 01bd9626d985bc3c239b979f0d98094f78cc102f | [
"MIT"
] | 2 | 2017-10-16T06:38:28.000Z | 2017-10-18T08:05:37.000Z | kinsumer/helpers.py | balancehero/kinsumer | 01bd9626d985bc3c239b979f0d98094f78cc102f | [
"MIT"
] | 1 | 2017-10-18T08:15:28.000Z | 2017-10-18T08:15:28.000Z | """:mod:`kinsumer.helpers` --- Implements various helpers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
from threading import RLock
_missing = object()
class locked_cached_property(object):
def __init__(self, func, name=None, doc=None):
self.__name__ = name or func.__name__
self.... | 27.181818 | 61 | 0.570792 | 103 | 897 | 4.407767 | 0.38835 | 0.052863 | 0.052863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276477 | 897 | 32 | 62 | 28.03125 | 0.699538 | 0.124861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.045455 | 0 | 0.318182 | 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 |