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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f3b9c44dd33bf672104de0f263398dcd9776b12 | 105 | py | Python | alphabetsoup/__init__.py | japinol7/alphabetsoup | 85a1a6716c854d40e8eba1e2a5cb1d4755b44773 | [
"MIT"
] | 3 | 2019-01-19T14:43:54.000Z | 2019-04-15T06:39:58.000Z | alphabetsoup/__init__.py | japinol7/alphabetsoup | 85a1a6716c854d40e8eba1e2a5cb1d4755b44773 | [
"MIT"
] | null | null | null | alphabetsoup/__init__.py | japinol7/alphabetsoup | 85a1a6716c854d40e8eba1e2a5cb1d4755b44773 | [
"MIT"
] | null | null | null | """Package alphabetsoup."""
__author__ = 'Joan A. Pinol (japinol)'
__all__ = ["alphabet_soup", "utils"]
| 26.25 | 39 | 0.67619 | 11 | 105 | 5.636364 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12381 | 105 | 3 | 40 | 35 | 0.673913 | 0.2 | 0 | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f46a39ae434d903a111c5c0903dc93e04f76bf6 | 2,447 | py | Python | recipe_parser/recipes/allrecipes.py | tyler-a-cox/recipe-parsing | fa883f66a39063cf72912527628b082cda455e76 | [
"MIT"
] | null | null | null | recipe_parser/recipes/allrecipes.py | tyler-a-cox/recipe-parsing | fa883f66a39063cf72912527628b082cda455e76 | [
"MIT"
] | null | null | null | recipe_parser/recipes/allrecipes.py | tyler-a-cox/recipe-parsing | fa883f66a39063cf72912527628b082cda455e76 | [
"MIT"
] | null | null | null | import inspect
from bs4 import BeautifulSoup
from typing import Optional, Union
from ._settings import HEADERS
from ._schema import DefaultSchema
from ._utils import clean_vulgar_fraction, clean_unicode
class AllRecipes(DefaultSchema):
"""
"""
@classmethod
def host(cls):
return "allrecipes.c... | 24.47 | 85 | 0.509195 | 245 | 2,447 | 4.987755 | 0.355102 | 0.05892 | 0.07856 | 0.07365 | 0.134206 | 0.116203 | 0.094926 | 0.05892 | 0 | 0 | 0 | 0.002424 | 0.325705 | 2,447 | 99 | 86 | 24.717172 | 0.738182 | 0.020842 | 0 | 0.075472 | 0 | 0 | 0.148148 | 0.031093 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226415 | false | 0.037736 | 0.113208 | 0.018868 | 0.528302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4f4fb1e44fceedef4f07a631eff1653499a44aef | 3,659 | py | Python | chatbot/models.py | lameinthebox/cid-backend | 1258000ab7801ebe2f6aef2a4006d3b35c9c88d8 | [
"MIT"
] | null | null | null | chatbot/models.py | lameinthebox/cid-backend | 1258000ab7801ebe2f6aef2a4006d3b35c9c88d8 | [
"MIT"
] | 14 | 2018-10-08T19:49:25.000Z | 2022-03-11T23:36:30.000Z | chatbot/models.py | lameinthebox/cid-backend | 1258000ab7801ebe2f6aef2a4006d3b35c9c88d8 | [
"MIT"
] | 2 | 2018-09-19T20:49:17.000Z | 2018-10-08T08:12:50.000Z | import os
from django.core.validators import int_list_validator
from django.db import models
from django.contrib.auth import models as auth_models
class Muser(auth_models.User):
objects = auth_models.UserManager()
gender = models.PositiveSmallIntegerField(blank=True, default=0) # 1: male, 2: female
birt... | 35.524272 | 132 | 0.720689 | 459 | 3,659 | 5.570806 | 0.244009 | 0.070395 | 0.076261 | 0.099726 | 0.529527 | 0.482988 | 0.348455 | 0.246774 | 0.246774 | 0.168166 | 0 | 0.010363 | 0.156054 | 3,659 | 102 | 133 | 35.872549 | 0.817681 | 0.012025 | 0 | 0.28169 | 0 | 0 | 0.094684 | 0.030454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126761 | false | 0 | 0.056338 | 0.112676 | 0.957746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
4f590a00628223c23158a4308a358c42801b89e8 | 1,145 | py | Python | code/wind-analysis/directional/wind-mapper.py | cssherry/ox-clo | 4c771048f8b02639c7ac9e3609b92f08a2a345c1 | [
"CC0-1.0"
] | null | null | null | code/wind-analysis/directional/wind-mapper.py | cssherry/ox-clo | 4c771048f8b02639c7ac9e3609b92f08a2a345c1 | [
"CC0-1.0"
] | null | null | null | code/wind-analysis/directional/wind-mapper.py | cssherry/ox-clo | 4c771048f8b02639c7ac9e3609b92f08a2a345c1 | [
"CC0-1.0"
] | 1 | 2020-02-18T22:11:55.000Z | 2020-02-18T22:11:55.000Z | #! /usr/bin/env python
import sys
for line in sys.stdin:
line = line.strip()
unpacked = line.split(",")
try:
Station_ID,Station_Name,Location_Label,Interval_Minutes,Interval_End_Time,vel,Wind_Direction_Variance_Deg,wdd_string,Ambient_Temperature_Deg_C,Global_Horizontal_Irradiance = line.split(",")
... | 27.926829 | 196 | 0.622707 | 160 | 1,145 | 4.34375 | 0.6 | 0.115108 | 0.046043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038551 | 0.252402 | 1,145 | 40 | 197 | 28.625 | 0.773364 | 0.188646 | 0 | 0.235294 | 0 | 0 | 0.03027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.058824 | 0.029412 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4f658a430868522810bd0e7307d586c253ec13d4 | 529 | py | Python | server/handler/IndexHandler.py | xiaojieluo/dove-admin | 09e1c7c0e8b40cf0c677a867615b066805fb3f5d | [
"Apache-2.0"
] | 1 | 2021-11-07T20:21:57.000Z | 2021-11-07T20:21:57.000Z | server/handler/IndexHandler.py | xiaojieluo/dove-admin | 09e1c7c0e8b40cf0c677a867615b066805fb3f5d | [
"Apache-2.0"
] | null | null | null | server/handler/IndexHandler.py | xiaojieluo/dove-admin | 09e1c7c0e8b40cf0c677a867615b066805fb3f5d | [
"Apache-2.0"
] | null | null | null | from server.handler import BaseHandler
from sanic.response import json, text, html
import os
from dove import utils, Dove
from server.utils import dump
class index(BaseHandler):
async def get(self, request):
article_num = self.articles_model.get_articles_num()
print(article_num)
# print(se... | 31.117647 | 96 | 0.705104 | 73 | 529 | 5.013699 | 0.547945 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.202268 | 529 | 16 | 97 | 33.0625 | 0.85782 | 0.190926 | 0 | 0 | 0 | 0 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.636364 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4f66d55831f642c07a3eae1f2335c3617b5defbc | 579 | py | Python | flask_market/fixtures/__init__.py | nikolnikon/otus_web_flask_market | eeaa0920f49002c2dc40a68104d6e88212e493e9 | [
"MIT"
] | null | null | null | flask_market/fixtures/__init__.py | nikolnikon/otus_web_flask_market | eeaa0920f49002c2dc40a68104d6e88212e493e9 | [
"MIT"
] | null | null | null | flask_market/fixtures/__init__.py | nikolnikon/otus_web_flask_market | eeaa0920f49002c2dc40a68104d6e88212e493e9 | [
"MIT"
] | null | null | null | import glob
import os
from flask import current_app
from flask.cli import AppGroup
from flask_fixtures.loaders import YAMLLoader
from flask_fixtures import load_fixtures
from flask_market.products.models import db
user_cli = AppGroup('fixtures')
@user_cli.command('load')
def load_fixtures_():
for fixture_dir in... | 30.473684 | 114 | 0.751295 | 81 | 579 | 5.148148 | 0.407407 | 0.107914 | 0.081535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150259 | 579 | 18 | 115 | 32.166667 | 0.847561 | 0 | 0 | 0 | 0 | 0 | 0.067358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.5 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4f6af0da910ce961f03dda7834d4954cc93ed205 | 1,846 | py | Python | tiny_api/middleware.py | Kaushal-Dhungel/tiny-api | 9dc846129bd59a18caf4150dc1e68ab0a4cff91e | [
"MIT"
] | null | null | null | tiny_api/middleware.py | Kaushal-Dhungel/tiny-api | 9dc846129bd59a18caf4150dc1e68ab0a4cff91e | [
"MIT"
] | null | null | null | tiny_api/middleware.py | Kaushal-Dhungel/tiny-api | 9dc846129bd59a18caf4150dc1e68ab0a4cff91e | [
"MIT"
] | null | null | null | from webob import Response
from .Requests import Request
from typing import Any, Callable
class Middleware:
def __init__(self,app:Any) -> None:
self.app = app
def __call__(self,environ:dict,start_response:Callable, *args:Any, **kwargs:Any) -> Response:
"""
The WSGI server talks to the ... | 30.262295 | 97 | 0.621885 | 217 | 1,846 | 5.179724 | 0.331797 | 0.124555 | 0.078292 | 0.066726 | 0.163701 | 0.163701 | 0.163701 | 0.163701 | 0.076512 | 0.076512 | 0 | 0.00077 | 0.296858 | 1,846 | 61 | 98 | 30.262295 | 0.865177 | 0.242145 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0.066667 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4f73cd83f28dba0bced211bb7c3a07c1cd60948d | 145 | py | Python | yc107/218.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc107/218.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc107/218.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | a, b, c = map(int, open(0).read().split())
x = (a + b - 1) // b
y = (a + c - 1) // c
if 3 * y <= 2 * x:
print('YES')
else:
print('NO')
| 14.5 | 42 | 0.4 | 29 | 145 | 2 | 0.655172 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.310345 | 145 | 9 | 43 | 16.111111 | 0.53 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f75e3a29fe811c047a14c28a350f6efe2234549 | 1,419 | py | Python | env/lib/python3.7/site-packages/masonite/logging/drivers/LogSyslogDriver.py | Kolawole39/masonite-guides-tutorial | 9a21cc635291a42f0722f69925be1809bb20e01c | [
"MIT"
] | null | null | null | env/lib/python3.7/site-packages/masonite/logging/drivers/LogSyslogDriver.py | Kolawole39/masonite-guides-tutorial | 9a21cc635291a42f0722f69925be1809bb20e01c | [
"MIT"
] | null | null | null | env/lib/python3.7/site-packages/masonite/logging/drivers/LogSyslogDriver.py | Kolawole39/masonite-guides-tutorial | 9a21cc635291a42f0722f69925be1809bb20e01c | [
"MIT"
] | null | null | null | from .BaseDriver import BaseDriver
import logging
import logging.handlers
class LogSyslogDriver(BaseDriver):
def __init__(self, *args, **kwargs):
self.log = logging.getLogger('root')
path = kwargs.get('path')
handler = logging.handlers.SysLogHandler(address = path)
format... | 29.5625 | 118 | 0.660324 | 165 | 1,419 | 5.636364 | 0.248485 | 0.135484 | 0.129032 | 0.154839 | 0.467742 | 0.467742 | 0.232258 | 0.232258 | 0.232258 | 0.232258 | 0 | 0 | 0.221283 | 1,419 | 48 | 119 | 29.5625 | 0.841629 | 0 | 0 | 0.228571 | 0 | 0 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0.085714 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4f7c23d884909a24746652485d49f1ef4512f820 | 1,066 | py | Python | tests/test_basic_launcher.py | dylanturpin/hydra | 6478511aee837491aab34a1e62c43c1c6ef730b9 | [
"MIT"
] | null | null | null | tests/test_basic_launcher.py | dylanturpin/hydra | 6478511aee837491aab34a1e62c43c1c6ef730b9 | [
"MIT"
] | null | null | null | tests/test_basic_launcher.py | dylanturpin/hydra | 6478511aee837491aab34a1e62c43c1c6ef730b9 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import pytest
from hydra.test_utils.launcher_common_tests import (
BatchedSweeperTestSuite,
IntegrationTestSuite,
LauncherTestSuite,
)
@pytest.mark.parametrize("launcher_name, overrides", [("basic", [])])
class TestBasicLauncher(Launc... | 23.688889 | 82 | 0.611632 | 88 | 1,066 | 7.261364 | 0.613636 | 0.046948 | 0.098592 | 0.090767 | 0.147105 | 0.147105 | 0.147105 | 0 | 0 | 0 | 0 | 0.001271 | 0.261726 | 1,066 | 44 | 83 | 24.227273 | 0.810673 | 0.115385 | 0 | 0.125 | 0 | 0 | 0.245955 | 0.039914 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.0625 | 0.0625 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4f95a19b93d730cb23a3dc6db7e71f84f144717d | 12,936 | py | Python | CodeIgniter/app/Data/func/get_partial_web_content.py | Tuanyk/Wordpress2CodeIgniter | bf4bf47abe6f05cef05e41a4709159a00c9dfb07 | [
"MIT"
] | null | null | null | CodeIgniter/app/Data/func/get_partial_web_content.py | Tuanyk/Wordpress2CodeIgniter | bf4bf47abe6f05cef05e41a4709159a00c9dfb07 | [
"MIT"
] | null | null | null | CodeIgniter/app/Data/func/get_partial_web_content.py | Tuanyk/Wordpress2CodeIgniter | bf4bf47abe6f05cef05e41a4709159a00c9dfb07 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from func.import_lib import *
from func.sanitize_content import *
password = getENV("PASS")
def getAllTagbyRegex(pattern, soup, open_tag, end_tag):
meta_tags_regex = re.findall(pattern, str(soup))
meta_tags = []
for meta in meta_tags_regex:
meta_tags.append(op... | 37.604651 | 148 | 0.656231 | 1,684 | 12,936 | 4.75772 | 0.086698 | 0.065901 | 0.063155 | 0.055167 | 0.728407 | 0.707564 | 0.672741 | 0.659261 | 0.63979 | 0.63979 | 0 | 0.000954 | 0.18978 | 12,936 | 344 | 149 | 37.604651 | 0.763477 | 0.001623 | 0 | 0.64 | 0 | 0 | 0.187256 | 0.020285 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044 | false | 0.024 | 0.008 | 0 | 0.1 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f98a009b91767192f1089ed3f09e92f0651a5fe | 756 | py | Python | students/K33421/Kustova_Ekaterina/Lr3-4/newspapers/newspapers/newspapers_distribution/migrations/0006_user.py | IJustWantToSleep/ITMO_ICT_WebDevelopment_2020-2021 | 90921730362d14ac5e03268baab1a479c39d578d | [
"MIT"
] | null | null | null | students/K33421/Kustova_Ekaterina/Lr3-4/newspapers/newspapers/newspapers_distribution/migrations/0006_user.py | IJustWantToSleep/ITMO_ICT_WebDevelopment_2020-2021 | 90921730362d14ac5e03268baab1a479c39d578d | [
"MIT"
] | null | null | null | students/K33421/Kustova_Ekaterina/Lr3-4/newspapers/newspapers/newspapers_distribution/migrations/0006_user.py | IJustWantToSleep/ITMO_ICT_WebDevelopment_2020-2021 | 90921730362d14ac5e03268baab1a479c39d578d | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2021-01-14 12:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newspapers_distribution', '0005_print_print_id'),
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | 31.5 | 114 | 0.589947 | 80 | 756 | 5.4125 | 0.675 | 0.103926 | 0.124711 | 0.166282 | 0.187067 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065455 | 0.272487 | 756 | 23 | 115 | 32.869565 | 0.721818 | 0.059524 | 0 | 0 | 1 | 0 | 0.148096 | 0.03244 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4fa1da1d1cd97bc59ebb66ba72faeb223d386f94 | 1,020 | py | Python | core/Logs.py | SpudGunMan/spraykatz | 1fb3aa7eb2ee621524587d6b2ad9d9df5f3da9c9 | [
"MIT"
] | 726 | 2019-11-20T11:07:42.000Z | 2022-03-24T13:19:41.000Z | core/Logs.py | SpudGunMan/spraykatz | 1fb3aa7eb2ee621524587d6b2ad9d9df5f3da9c9 | [
"MIT"
] | 10 | 2019-11-22T15:22:10.000Z | 2021-12-06T02:52:02.000Z | core/Logs.py | SpudGunMan/spraykatz | 1fb3aa7eb2ee621524587d6b2ad9d9df5f3da9c9 | [
"MIT"
] | 125 | 2019-11-21T03:37:33.000Z | 2022-03-27T14:16:12.000Z | # coding: utf-8
# Author: @aas_s3curity
# Imports
import sys, os, logging
from contextlib import contextmanager
def setLogging(verbosity):
formatter = logging.Formatter('%(message)s')
ch = logging.StreamHandler()
ch.setFormatter(formatter)
if verbosity == "warning":
logging.getLogger().se... | 27.567568 | 56 | 0.645098 | 106 | 1,020 | 6.132075 | 0.45283 | 0.172308 | 0.184615 | 0.190769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002601 | 0.246078 | 1,020 | 36 | 57 | 28.333333 | 0.842653 | 0.042157 | 0 | 0 | 0 | 0 | 0.023638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
96efc34d927f03d440eafbe3fa34447ef50179e7 | 113 | py | Python | Problems/The sum of digits/task.py | amadou-olabi/Zookeeper | a1ee4fefdd508a0c3e92b4a01f695f651f6498f0 | [
"MIT"
] | null | null | null | Problems/The sum of digits/task.py | amadou-olabi/Zookeeper | a1ee4fefdd508a0c3e92b4a01f695f651f6498f0 | [
"MIT"
] | null | null | null | Problems/The sum of digits/task.py | amadou-olabi/Zookeeper | a1ee4fefdd508a0c3e92b4a01f695f651f6498f0 | [
"MIT"
] | null | null | null | # put your python code here
digits = input()
total = 0
for digit in digits:
total += int(digit)
print(total)
| 16.142857 | 27 | 0.681416 | 18 | 113 | 4.277778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.212389 | 113 | 6 | 28 | 18.833333 | 0.853933 | 0.221239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
96fec8ca35bedac32f828366ae08c63d32574b9e | 1,713 | py | Python | de_regex.py | craiglmccarthy/de-automation | 2cd4c27358ed8e35b6f871244831085c2a83f396 | [
"MIT"
] | null | null | null | de_regex.py | craiglmccarthy/de-automation | 2cd4c27358ed8e35b6f871244831085c2a83f396 | [
"MIT"
] | null | null | null | de_regex.py | craiglmccarthy/de-automation | 2cd4c27358ed8e35b6f871244831085c2a83f396 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
# Dictionary containing the regular expressions.
re_dict = {
'first_name': r'First\s+name:\s(([a-zA-Z-.]+)?(\s+)?([a-zA-Z-.]+)?(\s+)?([a-zA-Z-.]+)?)\n',
'middle_name': r'Middle\s+name\(s\):\s(([a-zA-Z-.]+)?(\s+)?([a-zA-Z-.]+)?(\s+)?([a-zA-Z-.]+)?)\n',
... | 45.078947 | 210 | 0.524227 | 286 | 1,713 | 3.034965 | 0.251748 | 0.0553 | 0.110599 | 0.109447 | 0.461982 | 0.461982 | 0.408986 | 0.408986 | 0.408986 | 0.408986 | 0 | 0.012777 | 0.131932 | 1,713 | 37 | 211 | 46.297297 | 0.570948 | 0.14711 | 0 | 0.26087 | 0 | 0.304348 | 0.596932 | 0.466527 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c05a9ad6b092c58e1a3598b110ce166433d136b | 192 | py | Python | lib-python/utils/proxy.py | geoffxy/tandem | 81e76f675634f1b42c8c3070c73443f3f68f8624 | [
"Apache-2.0"
] | 732 | 2018-03-11T03:35:17.000Z | 2022-01-06T12:22:03.000Z | lib-python/utils/proxy.py | geoffxy/tandem | 81e76f675634f1b42c8c3070c73443f3f68f8624 | [
"Apache-2.0"
] | 21 | 2018-03-11T02:28:22.000Z | 2020-08-30T15:36:40.000Z | plugin/tandem_lib/agent/tandem/shared/utils/proxy.py | typeintandem/vim | e076a9954d73ccb60cd6828e53adf8da76462fc6 | [
"Apache-2.0"
] | 24 | 2018-03-14T05:37:17.000Z | 2022-01-18T14:44:42.000Z | class ProxyUtils(object):
@staticmethod
def run(proxies, method, data):
for proxy in proxies:
data = getattr(proxy, method, lambda x: x)(data)
return data
| 24 | 60 | 0.609375 | 23 | 192 | 5.086957 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296875 | 192 | 7 | 61 | 27.428571 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c06b457b80827af9a0dd0764cc3bb61e505d4a8 | 29,325 | py | Python | hypatia/query/__init__.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | hypatia/query/__init__.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | hypatia/query/__init__.py | pfw/hypatia | 407cd62e4817c85188aa6abdf204c5aaff5ab570 | [
"ZPL-2.1"
] | null | null | null | import ast
import operator
import sys
import BTrees
from ..util import RichComparisonMixin
_marker = object()
class Query(object):
"""
Base class for all elements that make up queries.
"""
__parent__ = None
__name__ = None
family = BTrees.family64
def __and__(self, right):
sel... | 28.834808 | 88 | 0.576334 | 3,550 | 29,325 | 4.612394 | 0.113521 | 0.025284 | 0.02736 | 0.01765 | 0.460059 | 0.419568 | 0.4043 | 0.363137 | 0.326249 | 0.300171 | 0 | 0.00775 | 0.326786 | 29,325 | 1,016 | 89 | 28.863189 | 0.821649 | 0.18919 | 0 | 0.4016 | 0 | 0 | 0.035469 | 0 | 0 | 0 | 0 | 0 | 0.0048 | 1 | 0.2016 | false | 0.0064 | 0.008 | 0.104 | 0.4848 | 0.0048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8c0cf5704c1f4772735dc1b14c527b108e41b749 | 1,562 | py | Python | tests/test_document.py | davidbrochart/python-prompt-toolkit | 8498692b31671fee7c5a426300a9df2ee290eae2 | [
"BSD-3-Clause"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | tests/test_document.py | davidbrochart/python-prompt-toolkit | 8498692b31671fee7c5a426300a9df2ee290eae2 | [
"BSD-3-Clause"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | tests/test_document.py | davidbrochart/python-prompt-toolkit | 8498692b31671fee7c5a426300a9df2ee290eae2 | [
"BSD-3-Clause"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | from __future__ import unicode_literals
import pytest
from prompt_toolkit.document import Document
@pytest.fixture
def document():
return Document(
'line 1\n' +
'line 2\n' +
'line 3\n' +
'line 4\n',
len('line 1\n' + 'lin')
)
def test_current_char(document):
asse... | 20.826667 | 55 | 0.667093 | 215 | 1,562 | 4.567442 | 0.2 | 0.071283 | 0.201629 | 0.118126 | 0.345214 | 0.179226 | 0.028513 | 0.028513 | 0 | 0 | 0 | 0.024732 | 0.223432 | 1,562 | 74 | 56 | 21.108108 | 0.784831 | 0 | 0 | 0 | 0 | 0 | 0.083867 | 0 | 0 | 0 | 0 | 0 | 0.319149 | 1 | 0.234043 | false | 0 | 0.06383 | 0.021277 | 0.319149 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c168a5b3b4a59a9e126ad057d097f87a5826194 | 216 | py | Python | solutions/41/41-fivestar1103.py | zeze1004/LeetCode-Solutions | c2d7759e60d4fa49275befba6dea6b3ab55b17f8 | [
"MIT"
] | null | null | null | solutions/41/41-fivestar1103.py | zeze1004/LeetCode-Solutions | c2d7759e60d4fa49275befba6dea6b3ab55b17f8 | [
"MIT"
] | null | null | null | solutions/41/41-fivestar1103.py | zeze1004/LeetCode-Solutions | c2d7759e60d4fa49275befba6dea6b3ab55b17f8 | [
"MIT"
] | null | null | null | class Solution:
def firstMissingPositive(self, nums: List[int]) -> int:
myMap, i = {i: None for i in nums}, 1
while True:
if i not in myMap:
return i
i += 1 | 30.857143 | 59 | 0.49537 | 29 | 216 | 3.689655 | 0.655172 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.412037 | 216 | 7 | 60 | 30.857143 | 0.826772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c18ff15bf2d808557840091f5e4b8e74b27eb37 | 94 | py | Python | def function.py | Arjitg450/Python-Programs | 0630422c9002632a91b5ccf75f6cd02308c6e929 | [
"MIT"
] | null | null | null | def function.py | Arjitg450/Python-Programs | 0630422c9002632a91b5ccf75f6cd02308c6e929 | [
"MIT"
] | null | null | null | def function.py | Arjitg450/Python-Programs | 0630422c9002632a91b5ccf75f6cd02308c6e929 | [
"MIT"
] | null | null | null | def sum(x,y):
total=x+y
print(total)
a=3
b=6
operation = sum
print(operation(a,b))
| 10.444444 | 21 | 0.606383 | 19 | 94 | 3 | 0.578947 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.223404 | 94 | 8 | 22 | 11.75 | 0.753425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.285714 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c1b6b400132340350a25237c20ccc44afe388db | 848 | py | Python | pdf417/util.py | mosquito/pdf417-py | 12b730b40fb1387bebf785a7dce6ba78bfeaf26d | [
"MIT"
] | 12 | 2019-04-02T08:54:09.000Z | 2022-01-02T22:01:42.000Z | pdf417/util.py | mosquito/pdf417-py | 12b730b40fb1387bebf785a7dce6ba78bfeaf26d | [
"MIT"
] | 1 | 2020-10-03T19:04:17.000Z | 2020-10-03T19:05:18.000Z | pdf417/util.py | mosquito/pdf417-py | 12b730b40fb1387bebf785a7dce6ba78bfeaf26d | [
"MIT"
] | 3 | 2020-10-02T23:48:21.000Z | 2022-01-02T22:01:56.000Z | from __future__ import division
from builtins import bytes, str
def from_base(digits, base):
return sum(
v * (base ** (len(digits) - k - 1)) for k, v in enumerate(digits)
)
def to_base(value, base):
digits = []
while value > 0:
digits.insert(0, value % base)
value //= base
... | 21.74359 | 73 | 0.646226 | 119 | 848 | 4.487395 | 0.420168 | 0.074906 | 0.052434 | 0.074906 | 0.11236 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0.009317 | 0.240566 | 848 | 38 | 74 | 22.315789 | 0.819876 | 0.056604 | 0 | 0 | 0 | 0 | 0.055416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.086957 | 0.086957 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8c231bbec60b75c29b6f7513e79aa162065783a9 | 1,214 | py | Python | typesafety/pyright/count.py | RobertCraigie/prisma-client-py | 0539d9b1ed3581acbaf151124d5cd35cfd38e828 | [
"Apache-2.0"
] | 518 | 2021-08-28T01:57:06.000Z | 2022-03-30T15:44:45.000Z | typesafety/pyright/count.py | iiian/prisma-client-py | b7360822e6855193fbdb5a6deb8309c081808051 | [
"Apache-2.0"
] | 288 | 2021-08-28T04:15:27.000Z | 2022-03-29T16:54:51.000Z | typesafety/pyright/count.py | iiian/prisma-client-py | b7360822e6855193fbdb5a6deb8309c081808051 | [
"Apache-2.0"
] | 19 | 2021-11-16T15:16:19.000Z | 2022-03-14T09:59:34.000Z | from prisma import Client
# TODO: more tests
async def main(client: Client) -> None:
# case: no arguments
total = await client.post.count()
reveal_type(total) # T: int
async def select(client: Client) -> None:
# case: None
total = await client.post.count(select=None)
reveal_type(total) #... | 26.391304 | 152 | 0.600494 | 141 | 1,214 | 5.120567 | 0.382979 | 0.091413 | 0.124654 | 0.166205 | 0.684211 | 0.554017 | 0.34626 | 0.34626 | 0.34626 | 0.34626 | 0 | 0.001156 | 0.287479 | 1,214 | 45 | 153 | 26.977778 | 0.833526 | 0.371499 | 0 | 0.321429 | 0 | 0 | 0.046729 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c273ef9da9a79c3cc9756f1d1442287e268058e | 545 | py | Python | chapter9/homepage/tests.py | getong/growth-code | ee3a95a0b71710ccb1a0566d3487a925d268e726 | [
"MIT"
] | 60 | 2016-11-29T09:44:08.000Z | 2021-11-16T12:15:09.000Z | chapter9/homepage/tests.py | getong/growth-code | ee3a95a0b71710ccb1a0566d3487a925d268e726 | [
"MIT"
] | null | null | null | chapter9/homepage/tests.py | getong/growth-code | ee3a95a0b71710ccb1a0566d3487a925d268e726 | [
"MIT"
] | 35 | 2016-12-01T11:45:46.000Z | 2021-06-11T19:36:29.000Z | from django.core.urlresolvers import resolve
from django.http import HttpRequest
from django.test import TestCase
from homepage.views import index
class HomePageTest(TestCase):
def test_root_url_resolves_to_home_page_view(self):
found = resolve('/')
self.assertEqual(found.func, index)
def te... | 30.277778 | 77 | 0.706422 | 66 | 545 | 5.651515 | 0.621212 | 0.080429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211009 | 545 | 17 | 78 | 32.058824 | 0.867442 | 0 | 0 | 0 | 0 | 0 | 0.095413 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8c2e044de6c1447ec35806055963e0785941386d | 15,968 | py | Python | code/nbs/reco-tut-asr-99-06-similarity-metrics-for-cf.py | sparsh-ai/reco-tut-asr | d64b6ed02826933e8add8f83a5773c5a0a21896b | [
"MIT"
] | null | null | null | code/nbs/reco-tut-asr-99-06-similarity-metrics-for-cf.py | sparsh-ai/reco-tut-asr | d64b6ed02826933e8add8f83a5773c5a0a21896b | [
"MIT"
] | null | null | null | code/nbs/reco-tut-asr-99-06-similarity-metrics-for-cf.py | sparsh-ai/reco-tut-asr | d64b6ed02826933e8add8f83a5773c5a0a21896b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Notes on Similarity Metrics
#
# The last notebook on this month in the domain of collaborative filtering (CF) is to take a look at the metrics that were used in the 2 previous notebooks about [User User CF](https://github.com/caiomiyashiro/RecommenderSystemsNotebooks/blob/mas... | 87.256831 | 1,302 | 0.742548 | 2,640 | 15,968 | 4.464394 | 0.268182 | 0.007212 | 0.004242 | 0.005091 | 0.12727 | 0.074156 | 0.057696 | 0.050059 | 0.049041 | 0.049041 | 0 | 0.018708 | 0.156438 | 15,968 | 182 | 1,303 | 87.736264 | 0.856273 | 0.862913 | 0 | 0.08 | 0 | 0.04 | 0.333333 | 0.107685 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.16 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c4c86bfe24eae8ce336764431e264f719ba8c77 | 3,561 | py | Python | geoNet/gen_stats_kml.py | ucgmsim/Pre-processing | c4b9ae20a9e5e4f96f930bde29aa15176d9c8b64 | [
"MIT"
] | 1 | 2020-10-01T10:36:09.000Z | 2020-10-01T10:36:09.000Z | geoNet/gen_stats_kml.py | ucgmsim/Pre-processing | c4b9ae20a9e5e4f96f930bde29aa15176d9c8b64 | [
"MIT"
] | 38 | 2018-08-01T04:25:24.000Z | 2022-03-08T23:37:53.000Z | geoNet/gen_stats_kml.py | ucgmsim/Pre-processing | c4b9ae20a9e5e4f96f930bde29aa15176d9c8b64 | [
"MIT"
] | 1 | 2019-10-17T21:44:14.000Z | 2019-10-17T21:44:14.000Z | import numpy as np
import os
google_earth_start_kml="""<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>station_locations.kml</name>
... | 32.081081 | 173 | 0.549846 | 454 | 3,561 | 4.169604 | 0.26652 | 0.07607 | 0.025357 | 0.035922 | 0.574749 | 0.553619 | 0.51981 | 0.51981 | 0.491284 | 0.491284 | 0 | 0.036246 | 0.263971 | 3,561 | 110 | 174 | 32.372727 | 0.685998 | 0.323505 | 1 | 0.470588 | 0 | 0.044118 | 0.673774 | 0.138166 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.029412 | 0 | 0.088235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c519cabfa6c10305ebf6da55357fec66184233d | 317 | py | Python | casiot/routing.py | AndreiAlexandru95/casiot | 82562a245178933ba41c1c4189717337dc8bb900 | [
"MIT"
] | null | null | null | casiot/routing.py | AndreiAlexandru95/casiot | 82562a245178933ba41c1c4189717337dc8bb900 | [
"MIT"
] | null | null | null | casiot/routing.py | AndreiAlexandru95/casiot | 82562a245178933ba41c1c4189717337dc8bb900 | [
"MIT"
] | null | null | null | from django.urls import path
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
from interface.consumers import DeviceConsumer
application = ProtocolTypeRouter({
"websocket": AuthMiddlewareStack(
URLRouter([
path("devices/", DeviceConsumer),
]),
),
}) | 22.642857 | 58 | 0.788644 | 29 | 317 | 8.62069 | 0.586207 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123028 | 317 | 14 | 59 | 22.642857 | 0.899281 | 0 | 0 | 0 | 0 | 0 | 0.053459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8c5444b63f635d4ca0c70daa023fd8004bf42314 | 2,783 | py | Python | crypto/junos_9.py | mmmonk/crap | 96ba81723f043503e7ed2f96ea727b524d22b83f | [
"MIT"
] | 14 | 2015-01-14T15:53:22.000Z | 2019-06-21T06:15:47.000Z | crypto/junos_9.py | mmmonk/crap | 96ba81723f043503e7ed2f96ea727b524d22b83f | [
"MIT"
] | 1 | 2018-04-01T08:40:17.000Z | 2020-06-24T10:05:33.000Z | crypto/junos_9.py | mmmonk/crap | 96ba81723f043503e7ed2f96ea727b524d22b83f | [
"MIT"
] | 12 | 2015-05-13T10:52:04.000Z | 2020-10-07T14:49:37.000Z | #!/usr/bin/env python
# $Id: 20130305$
# $Date: 2013-03-05 09:31:42$
# $Author: Marek Lukaszuk$
# based on:
# http://cpansearch.perl.org/src/KBRINT/Crypt-Juniper-0.02/lib/Crypt/Juniper.pm
import sys
import re
import random
class junos_passwd_9:
# only global values needed
encoding = ((1,4,32),(1,16,32),(1,8,32... | 23 | 102 | 0.575278 | 437 | 2,783 | 3.572082 | 0.313501 | 0.056374 | 0.053812 | 0.028828 | 0.174247 | 0.108905 | 0 | 0 | 0 | 0 | 0 | 0.062322 | 0.2447 | 2,783 | 120 | 103 | 23.191667 | 0.680304 | 0.095221 | 0 | 0.141026 | 0 | 0 | 0.091022 | 0.025652 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.064103 | 0.038462 | null | null | 0.064103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8c57cff68e212c7bce3bd3fb183ac3770454cb0d | 663 | py | Python | src/test/test_server.py | tudorsmt/QChat | f940d556898eea3b97490f0df7b8878d712cd837 | [
"MIT"
] | null | null | null | src/test/test_server.py | tudorsmt/QChat | f940d556898eea3b97490f0df7b8878d712cd837 | [
"MIT"
] | null | null | null | src/test/test_server.py | tudorsmt/QChat | f940d556898eea3b97490f0df7b8878d712cd837 | [
"MIT"
] | null | null | null | from QChat.server import QChatServer
class TestQChatServerUnit:
def setup_class(cls):
cls.test_user = "User"
cls.test_config = {"host": "localhost", "port": 8000}
def teardown_class(cls):
pass
def test_object(self):
server = QChatServer(name=self.test_user, config=self.te... | 26.52 | 81 | 0.665158 | 82 | 663 | 5.182927 | 0.317073 | 0.098824 | 0.077647 | 0.075294 | 0.305882 | 0.305882 | 0.305882 | 0.305882 | 0.305882 | 0.305882 | 0 | 0.015564 | 0.224736 | 663 | 24 | 82 | 27.625 | 0.811284 | 0 | 0 | 0.470588 | 0 | 0 | 0.063348 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.294118 | false | 0.117647 | 0.058824 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4fc6eb8b950c65abb6cc51317e270374e96809bd | 1,312 | py | Python | handler/base.py | manhgd/matsumi | ed38dd2afdcc6c617a806fd02479999252524aa1 | [
"MIT"
] | 1 | 2015-06-15T14:24:12.000Z | 2015-06-15T14:24:12.000Z | handler/base.py | manhgd/matsumi | ed38dd2afdcc6c617a806fd02479999252524aa1 | [
"MIT"
] | null | null | null | handler/base.py | manhgd/matsumi | ed38dd2afdcc6c617a806fd02479999252524aa1 | [
"MIT"
] | null | null | null | import tornado.web
import tornado.util
import my.db
import my.session
class Handler(tornado.web.RequestHandler, my.db.Mixin, my.session.Mixin):
def initialize(self):
self.db = my.db.Postgres(self.application.config.database)
self.session = None
self.session_prepare()
def set_d... | 31.238095 | 79 | 0.617378 | 157 | 1,312 | 4.980892 | 0.420382 | 0.015345 | 0.043478 | 0.048593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002099 | 0.273628 | 1,312 | 42 | 80 | 31.238095 | 0.818468 | 0.009146 | 0 | 0.058824 | 0 | 0 | 0.04234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.147059 | 0.029412 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4fc747c0881781317cb81f7a3c71658b40424a5d | 1,305 | py | Python | furniture/env/models/robots/jaco_robot.py | KejiaChen/assembly | dbaa3eeb40709c4a2033b6a603a68c17e60a0477 | [
"MIT"
] | 364 | 2019-11-20T16:28:39.000Z | 2022-03-28T23:00:19.000Z | furniture/env/models/robots/jaco_robot.py | KejiaChen/assembly | dbaa3eeb40709c4a2033b6a603a68c17e60a0477 | [
"MIT"
] | 22 | 2019-11-24T08:27:22.000Z | 2022-03-31T23:30:25.000Z | furniture/env/models/robots/jaco_robot.py | KejiaChen/assembly | dbaa3eeb40709c4a2033b6a603a68c17e60a0477 | [
"MIT"
] | 52 | 2019-11-21T01:01:01.000Z | 2022-03-02T11:52:53.000Z | import numpy as np
from ...mjcf_utils import array_to_string, xml_path_completion
from .robot import Robot
class Jaco(Robot):
"""Jaco is a single-arm robot designed by Kinova."""
def __init__(
self,
use_torque=False,
xml_path="robots/jaco/robot.xml",
):
if use_torque:
... | 25.588235 | 68 | 0.596935 | 184 | 1,305 | 4.005435 | 0.391304 | 0.04749 | 0.052917 | 0.046133 | 0.303935 | 0.179104 | 0.130258 | 0.130258 | 0.130258 | 0.130258 | 0 | 0.01873 | 0.263602 | 1,305 | 50 | 69 | 26.1 | 0.748179 | 0.089655 | 0 | 0.193548 | 0 | 0 | 0.128634 | 0.096035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.096774 | 0.129032 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
4fceebe5e109cbd389c1b906787de3efc11a4bb0 | 366 | py | Python | face_detection.py | sid1689/parking_lot_gate_final | d097c811aee706f23f1f1c83d130aa8e6654c7a8 | [
"MIT"
] | null | null | null | face_detection.py | sid1689/parking_lot_gate_final | d097c811aee706f23f1f1c83d130aa8e6654c7a8 | [
"MIT"
] | null | null | null | face_detection.py | sid1689/parking_lot_gate_final | d097c811aee706f23f1f1c83d130aa8e6654c7a8 | [
"MIT"
] | null | null | null | import face_recognition
from rectangle import Rectangle
from utils import BLUE, gbr_to_rgb
from vector import Vector
def detect_faces(image):
face_locations = face_recognition.face_locations(gbr_to_rgb(image))
return [Rectangle(Vector(left, top), Vector(right - left, bottom - top), BLUE)
for ... | 30.5 | 82 | 0.745902 | 51 | 366 | 5.156863 | 0.45098 | 0.148289 | 0.060837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174863 | 366 | 11 | 83 | 33.272727 | 0.870861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4fcf662dd90946ac48b9167cd9eb0e48bca97e2f | 2,377 | py | Python | indra/lib/python/indra/util/fastest_elementtree.py | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/lib/python/indra/util/fastest_elementtree.py | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/lib/python/indra/util/fastest_elementtree.py | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | """\
@file fastest_elementtree.py
@brief Concealing some gnarly import logic in here. This should export the interface of elementtree.
$LicenseInfo:firstyear=2008&license=mit$
Copyright (c) 2008-2009, Linden Research, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software... | 36.569231 | 101 | 0.739588 | 328 | 2,377 | 5.347561 | 0.5 | 0.050171 | 0.030787 | 0.012543 | 0.171608 | 0.171608 | 0.100912 | 0.085519 | 0.085519 | 0 | 0 | 0.012786 | 0.210349 | 2,377 | 64 | 102 | 37.140625 | 0.921684 | 0.725284 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4fe43adb8f57a854887b4a3840d822e0cd5d8599 | 81,387 | py | Python | pysnmp-with-texts/PRIVATE-FEL2Mod-SW24-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/PRIVATE-FEL2Mod-SW24-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/PRIVATE-FEL2Mod-SW24-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module PRIVATE-FEL2Mod-SW24-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/PRIVATE-FEL2Mod-SW24-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:42:05 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.... | 135.871452 | 10,809 | 0.792043 | 9,231 | 81,387 | 6.982342 | 0.07074 | 0.068514 | 0.119899 | 0.013343 | 0.495175 | 0.360955 | 0.335293 | 0.299888 | 0.267043 | 0.237099 | 0 | 0.105089 | 0.088491 | 81,387 | 598 | 10,810 | 136.098662 | 0.763739 | 0.004202 | 0 | 0 | 0 | 0.067682 | 0.206908 | 0.017091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.023689 | 0.023689 | 0 | 0.023689 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8b0a93f435cc68bd98b24c00117cdd3b1720cf77 | 1,020 | py | Python | 30 Days of Code/Day 24 More Linked Lists.py | ersincebi/hackerrank | 9475c8e88e9071544c10a939fe7307c8e62fe3a0 | [
"MIT"
] | null | null | null | 30 Days of Code/Day 24 More Linked Lists.py | ersincebi/hackerrank | 9475c8e88e9071544c10a939fe7307c8e62fe3a0 | [
"MIT"
] | null | null | null | 30 Days of Code/Day 24 More Linked Lists.py | ersincebi/hackerrank | 9475c8e88e9071544c10a939fe7307c8e62fe3a0 | [
"MIT"
] | null | null | null | class Node:
def __init__(self,data):
self.data = data
self.next = None
class Solution:
def insert(self,head,data):
p = Node(data)
if head==None:
head=p
elif head.next==None:
head.next=p
else:
start=head
while(start.next!=None):
start=start.next
start.next=p
return head
... | 20.4 | 39 | 0.678431 | 154 | 1,020 | 4.467532 | 0.25974 | 0.130814 | 0.139535 | 0.174419 | 0.151163 | 0.151163 | 0.151163 | 0.151163 | 0.151163 | 0 | 0 | 0.007194 | 0.182353 | 1,020 | 50 | 40 | 20.4 | 0.817746 | 0.07451 | 0 | 0.219512 | 0 | 0 | 0.001063 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.097561 | false | 0 | 0 | 0 | 0.219512 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8b106aa57f6ec9b13d474b787f27503d360131b9 | 2,793 | py | Python | chainer/_backend.py | tkerola/chainer | 572f6eef2c3f1470911ac08332c2b5c3440edf44 | [
"MIT"
] | null | null | null | chainer/_backend.py | tkerola/chainer | 572f6eef2c3f1470911ac08332c2b5c3440edf44 | [
"MIT"
] | null | null | null | chainer/_backend.py | tkerola/chainer | 572f6eef2c3f1470911ac08332c2b5c3440edf44 | [
"MIT"
] | null | null | null | def _convert_arrays(array, func):
# Converts array or arrays
if isinstance(array, (list, tuple)):
# The same object encountered multiple times in the container is
# converted into the same object.
d = {}
ret = []
for arr in array:
if arr is None:
... | 27.653465 | 73 | 0.588256 | 309 | 2,793 | 5.152104 | 0.411003 | 0.03392 | 0.056533 | 0.082915 | 0.123116 | 0.123116 | 0.123116 | 0.085427 | 0 | 0 | 0 | 0.00267 | 0.329395 | 2,793 | 100 | 74 | 27.93 | 0.847304 | 0.34121 | 0 | 0.3125 | 0 | 0 | 0.149672 | 0 | 0 | 0 | 0 | 0.01 | 0 | 1 | 0.25 | false | 0.083333 | 0 | 0.020833 | 0.395833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8b154703a07739b551ffdc3fd3c2e62f8a136fe2 | 7,850 | py | Python | vega/search_space/fine_grained_space/networks/resnet.py | qixiuai/vega | 3e6588ea4aedb03e3594a549a97ffdb86adb88d1 | [
"MIT"
] | 12 | 2020-12-13T08:34:24.000Z | 2022-03-20T15:17:17.000Z | vega/search_space/fine_grained_space/networks/resnet.py | qixiuai/vega | 3e6588ea4aedb03e3594a549a97ffdb86adb88d1 | [
"MIT"
] | 3 | 2021-03-31T20:15:40.000Z | 2022-02-09T23:50:46.000Z | built-in/TensorFlow/Research/cv/image_classification/Darts_for_TensorFlow/automl/vega/search_space/fine_grained_space/networks/resnet.py | Huawei-Ascend/modelzoo | df51ed9c1d6dbde1deef63f2a037a369f8554406 | [
"Apache-2.0"
] | 2 | 2021-07-10T12:40:46.000Z | 2021-12-17T07:55:15.000Z | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | 44.602273 | 116 | 0.651465 | 965 | 7,850 | 5.098446 | 0.170984 | 0.04878 | 0.052033 | 0.028455 | 0.755691 | 0.710366 | 0.65 | 0.607724 | 0.607724 | 0.607724 | 0 | 0.02875 | 0.246752 | 7,850 | 175 | 117 | 44.857143 | 0.803315 | 0.272611 | 0 | 0.5 | 0 | 0 | 0.055251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8b187f019c12f1fea33079665714c27b33bf8189 | 7,527 | py | Python | download_catss.py | codykingham/parse_CATSS | dd89b38981bd3f199f7ac3f8b2b026ccb19b0a35 | [
"MIT"
] | null | null | null | download_catss.py | codykingham/parse_CATSS | dd89b38981bd3f199f7ac3f8b2b026ccb19b0a35 | [
"MIT"
] | 6 | 2020-10-03T09:42:36.000Z | 2020-10-03T13:25:30.000Z | download_catss.py | codykingham/parse_CATSS | dd89b38981bd3f199f7ac3f8b2b026ccb19b0a35 | [
"MIT"
] | null | null | null | """
Use the download_catss function to download all of the
text files for the CATSS database to disk.
"""
import requests
import time
from pathlib import Path
# Before writing the download function, we compile a series of
# urls and filenames which will be used to download and output
# the data. The culmination of... | 38.6 | 82 | 0.657765 | 1,419 | 7,527 | 3.465821 | 0.283298 | 0.065474 | 0.06832 | 0.102481 | 0.408703 | 0.288125 | 0.077877 | 0.05856 | 0.048394 | 0.048394 | 0 | 0.2751 | 0.206058 | 7,527 | 194 | 83 | 38.798969 | 0.547858 | 0.196094 | 0 | 0.042254 | 0 | 0 | 0.817238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007042 | false | 0 | 0.021127 | 0 | 0.035211 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8b22e6e6662a4cbbefac14dd4465513bf575e984 | 1,220 | py | Python | investing_algorithm_framework/core/performance/snapshot_queue.py | investing-algorithms/investing-algorithm-framework | d579e142a3857e2e2dfb59b7d6e54202f7df5466 | [
"Apache-2.0"
] | 1 | 2019-12-23T21:23:45.000Z | 2019-12-23T21:23:45.000Z | investing_algorithm_framework/core/performance/snapshot_queue.py | investing-algorithms/investing-algorithm-framework | d579e142a3857e2e2dfb59b7d6e54202f7df5466 | [
"Apache-2.0"
] | null | null | null | investing_algorithm_framework/core/performance/snapshot_queue.py | investing-algorithms/investing-algorithm-framework | d579e142a3857e2e2dfb59b7d6e54202f7df5466 | [
"Apache-2.0"
] | 1 | 2019-12-23T21:23:50.000Z | 2019-12-23T21:23:50.000Z | # class SnapShotQueue:
# """
# Snapshot queue for logical order of snapshots. This data structure is
# useful to calculate the active time frame of a specific snapshot.
#
# e.g. snapshot is active from start time (snapshot.created_at) until
# end time (snapshot_peek.created_at)
# """
#
# def... | 25.957447 | 75 | 0.538525 | 148 | 1,220 | 4.364865 | 0.405405 | 0.111455 | 0.055728 | 0.060372 | 0.077399 | 0.077399 | 0.077399 | 0 | 0 | 0 | 0 | 0.008783 | 0.346721 | 1,220 | 46 | 76 | 26.521739 | 0.801757 | 0.922951 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c676f992fcddaffcde0edb61d86cc76c7448345 | 7,662 | py | Python | modules/utils/lists.py | kammerjager/Yume-Bot | c3099b929e30602deec23967c7a49f389b5a6d2c | [
"MIT"
] | 10 | 2018-09-26T23:35:20.000Z | 2020-12-25T20:33:08.000Z | modules/utils/lists.py | TheApertureProject/Yume-Bot | 9b1219958f1c43489c0fbc33825ae7656eeea02e | [
"MIT"
] | 33 | 2018-09-26T23:34:24.000Z | 2019-12-26T18:29:09.000Z | modules/utils/lists.py | TheApertureProject/Yume-Bot | 9b1219958f1c43489c0fbc33825ae7656eeea02e | [
"MIT"
] | 11 | 2018-10-24T20:50:01.000Z | 2020-07-10T03:22:05.000Z | ballresponse = [
'Yes', 'No', 'Take a wild guess...', 'Very doubtful',
'Sure', 'Without a doubt', 'Most likely', 'Might be possible',
"You'll be the judge", 'no... (╯°□°)╯︵ ┻━┻', 'no... baka',
'senpai, pls no ;-;', 'It is highly possible', "I don't know! The crystal ball is broken",
"As I see it, ye... | 70.944444 | 197 | 0.713521 | 1,253 | 7,662 | 4.372706 | 0.39984 | 0.00292 | 0.005475 | 0.007666 | 0.085052 | 0.069721 | 0.069721 | 0.048914 | 0.048914 | 0.048914 | 0 | 0.002465 | 0.205821 | 7,662 | 108 | 198 | 70.944444 | 0.895974 | 0 | 0 | 0 | 0 | 0.377778 | 0.891948 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c80cf81b7db9b64e4b2913c87e67d506101cc51 | 1,808 | py | Python | reinforcement_learning/rl_network_compression_ray_custom/src/tensorflow_resnet/compressor/layers/ops.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 2,610 | 2020-10-01T14:14:53.000Z | 2022-03-31T18:02:31.000Z | reinforcement_learning/rl_network_compression_ray_custom/src/tensorflow_resnet/compressor/layers/ops.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 1,959 | 2020-09-30T20:22:42.000Z | 2022-03-31T23:58:37.000Z | reinforcement_learning/rl_network_compression_ray_custom/src/tensorflow_resnet/compressor/layers/ops.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 2,052 | 2020-09-30T22:11:46.000Z | 2022-03-31T23:02:51.000Z | import pickle
from collections import OrderedDict
import tensorflow as tf
def get_tf_vars_dict(scope=None):
"""Returns all trainable variables in the session in a dictionary form"""
all_trainable_vars = get_tf_vars_list(scope)
vars_dict = OrderedDict()
for var in all_trainable_vars:
vars_dict... | 31.719298 | 94 | 0.712389 | 272 | 1,808 | 4.507353 | 0.268382 | 0.065253 | 0.065253 | 0.06199 | 0.483687 | 0.450245 | 0.363785 | 0.314845 | 0.314845 | 0.189233 | 0 | 0 | 0.19635 | 1,808 | 56 | 95 | 32.285714 | 0.843772 | 0.255531 | 0 | 0.181818 | 0 | 0 | 0.014504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.181818 | 0 | 0.606061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8c86df1c95823b015395a18b2aa90e54aa9de477 | 1,082 | py | Python | src/dismantle/extension/__init__.py | Stidsty/dismantle | 26fb8fe7ba97349a67498715bb47a19329b1a4c7 | [
"Apache-2.0"
] | null | null | null | src/dismantle/extension/__init__.py | Stidsty/dismantle | 26fb8fe7ba97349a67498715bb47a19329b1a4c7 | [
"Apache-2.0"
] | null | null | null | src/dismantle/extension/__init__.py | Stidsty/dismantle | 26fb8fe7ba97349a67498715bb47a19329b1a4c7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Gary Stidston-Broadbent
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 38.642857 | 79 | 0.681146 | 138 | 1,082 | 5.311594 | 0.681159 | 0.081855 | 0.035471 | 0.043656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.156192 | 1,082 | 27 | 80 | 40.074074 | 0.7908 | 0.847505 | 0 | 0 | 0 | 0 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8c962df91087de4c48dc09c9881f8a11e4ddae0e | 575 | py | Python | kombu/asynchronous/aws/ext.py | 7Geese/kombu | b51d1d678e198a80d7e5fd95f32674c7d8e04a75 | [
"BSD-3-Clause"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/kombu-4.3.0/kombu/asynchronous/aws/ext.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/kombu-4.3.0/kombu/asynchronous/aws/ext.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | # -*- coding: utf-8 -*-
"""Amazon boto3 interface."""
from __future__ import absolute_import, unicode_literals
try:
import boto3
from botocore import exceptions
from botocore.awsrequest import AWSRequest
from botocore.response import get_response
except ImportError:
boto3 = None
class _void(ob... | 21.296296 | 56 | 0.692174 | 58 | 575 | 6.568966 | 0.482759 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.22087 | 575 | 26 | 57 | 22.115385 | 0.841518 | 0.08 | 0 | 0.105263 | 0 | 0 | 0.061185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105263 | 0.315789 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
8ca1375e3fcf4da3701fd7855372367df9914ca9 | 29,851 | py | Python | final_submission_fabeec_emotion_classification.py | parasteh/fabeec | 33017ab95a343544fb777ff95dabd4cd2972982f | [
"Apache-2.0"
] | null | null | null | final_submission_fabeec_emotion_classification.py | parasteh/fabeec | 33017ab95a343544fb777ff95dabd4cd2972982f | [
"Apache-2.0"
] | null | null | null | final_submission_fabeec_emotion_classification.py | parasteh/fabeec | 33017ab95a343544fb777ff95dabd4cd2972982f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Final Submission_FABEEC Emotion Classification.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1_X7vF4B_Br90rwp0pXoiET8ZT7vIkljQ
The aim of this code is to classify emotion categories. It consists of some steps. We will... | 34.311494 | 291 | 0.724632 | 4,402 | 29,851 | 4.742844 | 0.159473 | 0.012645 | 0.01207 | 0.010058 | 0.468675 | 0.412923 | 0.37973 | 0.347495 | 0.32939 | 0.298496 | 0 | 0.026334 | 0.140062 | 29,851 | 870 | 292 | 34.311494 | 0.78695 | 0.264078 | 0 | 0.261438 | 1 | 0 | 0.102954 | 0.022628 | 0 | 0 | 0 | 0.001149 | 0 | 0 | null | null | 0 | 0.14597 | null | null | 0.034858 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8caf5fe4c8024d2c3f32c0c7db867fa9d7d729d7 | 322 | py | Python | 14-files/write_csv_file.py | johnehunt/PythonIntroDS | 7e9d5c5494191cd68bc71e140df5fb30290a8da6 | [
"Apache-2.0"
] | 1 | 2021-09-20T11:22:47.000Z | 2021-09-20T11:22:47.000Z | 14-files/write_csv_file.py | johnehunt/PythonIntroDS | 7e9d5c5494191cd68bc71e140df5fb30290a8da6 | [
"Apache-2.0"
] | null | null | null | 14-files/write_csv_file.py | johnehunt/PythonIntroDS | 7e9d5c5494191cd68bc71e140df5fb30290a8da6 | [
"Apache-2.0"
] | null | null | null | import csv
print('Creating CSV file')
with open('sample.csv', 'w') as csvfile:
writer = csv.writer(csvfile)
writer.writerow(['She Loves You', 'Sept 1963'])
writer.writerow(['I Want to Hold Your Hand', 'Dec 1963'])
writer.writerow(['Cant Buy Me Love', 'Apr 1964'])
writer.writerow(['A Hard Days Night', 'July 1964']... | 32.2 | 58 | 0.686335 | 50 | 322 | 4.42 | 0.72 | 0.253394 | 0.162896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057554 | 0.136646 | 322 | 9 | 59 | 35.777778 | 0.73741 | 0 | 0 | 0 | 0 | 0 | 0.409938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cb681d7be7cc14fd7162f45a0f7fc5bc74632ac | 516 | py | Python | boa3/model/builtin/interop/contract/getcallflagsmethod.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3/model/builtin/interop/contract/getcallflagsmethod.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3/model/builtin/interop/contract/getcallflagsmethod.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from typing import Dict
from boa3.model.builtin.interop.contract.callflagstype import CallFlagsType
from boa3.model.builtin.interop.interopmethod import InteropMethod
from boa3.model.variable import Variable
class GetCallFlagsMethod(InteropMethod):
def __init__(self, call_flags_type: CallFlagsType):
ide... | 34.4 | 80 | 0.767442 | 59 | 516 | 6.457627 | 0.491525 | 0.062992 | 0.102362 | 0.104987 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006834 | 0.149225 | 516 | 14 | 81 | 36.857143 | 0.861048 | 0 | 0 | 0 | 0 | 0 | 0.081395 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8cb8732bf097c316dfa1c4b5529d9221f9542778 | 386 | py | Python | rasa/nlu/tokenizers/__init__.py | n01deas/rasa | 79f0feeb02919142eb06b8c52da5632f1c25c251 | [
"Apache-2.0"
] | 18 | 2019-05-07T10:28:32.000Z | 2022-01-22T02:30:30.000Z | rasa/nlu/tokenizers/__init__.py | RakibulAsheeque/rasa | 7d3804cd081c73d78ab5e973f95a55845eed1e89 | [
"Apache-2.0"
] | 21 | 2019-12-16T17:37:54.000Z | 2020-07-06T06:19:04.000Z | rasa/nlu/tokenizers/__init__.py | RakibulAsheeque/rasa | 7d3804cd081c73d78ab5e973f95a55845eed1e89 | [
"Apache-2.0"
] | 15 | 2019-03-18T02:21:13.000Z | 2022-01-22T02:32:19.000Z | class Tokenizer(object):
pass
class Token(object):
def __init__(self, text, offset, data=None):
self.offset = offset
self.text = text
self.end = offset + len(text)
self.data = data if data else {}
def set(self, prop, info):
self.data[prop] = info
def get(self,... | 22.705882 | 48 | 0.595855 | 52 | 386 | 4.346154 | 0.423077 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284974 | 386 | 16 | 49 | 24.125 | 0.818841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0 | 0.083333 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8cbd8cd88ce6731d4397826d842908b9a1d2b0c6 | 782 | py | Python | ch14/generic_type_aliases.py | jashburn8020/mypy | 689e713bd0eabc813433a1879c3402311ea787cf | [
"Apache-2.0"
] | null | null | null | ch14/generic_type_aliases.py | jashburn8020/mypy | 689e713bd0eabc813433a1879c3402311ea787cf | [
"Apache-2.0"
] | null | null | null | ch14/generic_type_aliases.py | jashburn8020/mypy | 689e713bd0eabc813433a1879c3402311ea787cf | [
"Apache-2.0"
] | null | null | null | """Generic type aliases."""
from typing import Callable, Iterable, Tuple, TypeVar, Union
S = TypeVar("S")
TInt = Tuple[int, S]
UInt = Union[S, int]
CBack = Callable[..., S]
def response(query: str) -> UInt[str]: # Same as Union[str, int]
...
def activate(cb: CBack[S]) -> S: # Same as Callable[..., S]
.... | 20.578947 | 72 | 0.595908 | 127 | 782 | 3.661417 | 0.393701 | 0.064516 | 0.021505 | 0.030108 | 0.034409 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004886 | 0.214834 | 782 | 37 | 73 | 21.135135 | 0.752443 | 0.268542 | 0 | 0.105263 | 0 | 0 | 0.003565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.105263 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8cc856c4d8b0132bdf6661736ed3998b14109cb9 | 63 | py | Python | nicos_mlz/mephisto/setups/startup.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_mlz/mephisto/setups/startup.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_mlz/mephisto/setups/startup.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = 'minimal NICOS startup setup'
group = 'lowlevel'
| 21 | 43 | 0.761905 | 7 | 63 | 6.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 63 | 2 | 44 | 31.5 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cc8d08c0499a20f791af62236da7440e7931d17 | 3,886 | py | Python | data_science_tidepool_api_python/makedata/make_user.py | tidepool-org/data-science-tidepool-api-python | 48f4cfa1f6c4d4bc1f8dab27d0aecbe82ffc3ddc | [
"BSD-2-Clause"
] | 3 | 2021-05-13T22:31:18.000Z | 2022-03-30T20:18:11.000Z | data_science_tidepool_api_python/makedata/make_user.py | tidepool-org/data-science-tidepool-api-python | 48f4cfa1f6c4d4bc1f8dab27d0aecbe82ffc3ddc | [
"BSD-2-Clause"
] | null | null | null | data_science_tidepool_api_python/makedata/make_user.py | tidepool-org/data-science-tidepool-api-python | 48f4cfa1f6c4d4bc1f8dab27d0aecbe82ffc3ddc | [
"BSD-2-Clause"
] | 1 | 2022-03-30T20:16:53.000Z | 2022-03-30T20:16:53.000Z | __author__ = "Cameron Summers"
import os
import json
import datetime as dt
from data_science_tidepool_api_python.makedata.tidepool_api import TidepoolAPI, read_auth_csv
from data_science_tidepool_api_python.models.tidepool_user_model import TidepoolUser
from data_science_tidepool_api_python.util import DATESTAMP_FORM... | 33.5 | 117 | 0.722337 | 579 | 3,886 | 4.509499 | 0.219344 | 0.041363 | 0.02681 | 0.032172 | 0.343164 | 0.216775 | 0.151283 | 0.132133 | 0.08311 | 0.08311 | 0 | 0.004415 | 0.183994 | 3,886 | 115 | 118 | 33.791304 | 0.818985 | 0.250901 | 0 | 0 | 0 | 0 | 0.084977 | 0.017569 | 0 | 0 | 0 | 0.017391 | 0 | 1 | 0.06 | false | 0.08 | 0.12 | 0 | 0.22 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8cccea1c24df04975be8b1755a87d428f8d5beb7 | 1,320 | py | Python | test_ex1.py | riderd/think-python-16 | 8a0cba72a5eabd933e91ae0026fec9dff8b81413 | [
"Apache-2.0"
] | null | null | null | test_ex1.py | riderd/think-python-16 | 8a0cba72a5eabd933e91ae0026fec9dff8b81413 | [
"Apache-2.0"
] | null | null | null | test_ex1.py | riderd/think-python-16 | 8a0cba72a5eabd933e91ae0026fec9dff8b81413 | [
"Apache-2.0"
] | null | null | null | import unittest
from ex1 import mul_time, average_time_per_mile
from mytime import Time, compose_time
class TestEx1(unittest.TestCase):
def test_mul_time(self):
t = Time()
self.assertEqual("00:00:00", compose_time(mul_time(t, 1)))
self.assertEqual("00:00:00", compose_time(mul_time(t, 2))) ... | 33 | 82 | 0.594697 | 189 | 1,320 | 3.89418 | 0.26455 | 0.149457 | 0.20788 | 0.195652 | 0.506793 | 0.476902 | 0.476902 | 0.476902 | 0.304348 | 0.304348 | 0 | 0.088514 | 0.281061 | 1,320 | 40 | 83 | 33 | 0.687039 | 0.031818 | 0 | 0.142857 | 0 | 0 | 0.062647 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cd8236e31b659ff3b2dd4f8f8516b3515bb25e8 | 1,311 | py | Python | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/EXT/texture_array.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/EXT/texture_array.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/EXT/texture_array.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | '''OpenGL extension EXT.texture_array
The official definition of this extension is available here:
http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_array.txt
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL impor... | 50.423077 | 104 | 0.84058 | 194 | 1,311 | 5.231959 | 0.340206 | 0.094581 | 0.149754 | 0.165517 | 0.474877 | 0.451232 | 0.315271 | 0 | 0 | 0 | 0 | 0.032527 | 0.085431 | 1,311 | 25 | 105 | 52.44 | 0.814012 | 0.234172 | 0 | 0 | 1 | 0 | 0.252252 | 0.232232 | 0 | 0 | 0.048048 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cdfd04fe8b0e322f81bb17b881220a093949f85 | 12,802 | py | Python | google/cloud/automl_v1/proto/annotation_payload_pb2.py | busunkim96/python-automl | 7df905910b86721a6ee3a3b6c916a4f8e27d0aa7 | [
"Apache-2.0"
] | null | null | null | google/cloud/automl_v1/proto/annotation_payload_pb2.py | busunkim96/python-automl | 7df905910b86721a6ee3a3b6c916a4f8e27d0aa7 | [
"Apache-2.0"
] | null | null | null | google/cloud/automl_v1/proto/annotation_payload_pb2.py | busunkim96/python-automl | 7df905910b86721a6ee3a3b6c916a4f8e27d0aa7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/automl_v1/proto/annotation_payload.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.prot... | 40.384858 | 1,361 | 0.702546 | 1,469 | 12,802 | 5.735875 | 0.16678 | 0.05032 | 0.058628 | 0.058628 | 0.619274 | 0.576905 | 0.53691 | 0.443271 | 0.405531 | 0.384168 | 0 | 0.033591 | 0.211686 | 12,802 | 316 | 1,362 | 40.512658 | 0.801328 | 0.022809 | 0 | 0.540541 | 1 | 0.006757 | 0.315044 | 0.185715 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037162 | 0 | 0.037162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8ce0cd3daf6a95e10aefc3ad1ea5bd998bd39100 | 1,556 | py | Python | golly-4.0-win-64bit/Rules/TreeGenerators/RuleTreeGen.py | larayeung/gollywithlocusts | e7adbaaa691fe46f22e88fb4d13e42b3d702a871 | [
"Apache-2.0"
] | null | null | null | golly-4.0-win-64bit/Rules/TreeGenerators/RuleTreeGen.py | larayeung/gollywithlocusts | e7adbaaa691fe46f22e88fb4d13e42b3d702a871 | [
"Apache-2.0"
] | null | null | null | golly-4.0-win-64bit/Rules/TreeGenerators/RuleTreeGen.py | larayeung/gollywithlocusts | e7adbaaa691fe46f22e88fb4d13e42b3d702a871 | [
"Apache-2.0"
] | null | null | null | class GenerateRuleTree:
def __init__(self,numStates,numNeighbors,f):
self.numParams = numNeighbors + 1 ;
self.world = {}
self.r = []
self.params = [0]*self.numParams
self.nodeSeq = 0
self.numStates = numStates
self.numNeighbors = numNeighbors
sel... | 27.298246 | 61 | 0.556555 | 208 | 1,556 | 4.076923 | 0.307692 | 0.061321 | 0.040094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024928 | 0.329692 | 1,556 | 56 | 62 | 27.785714 | 0.788111 | 0.067481 | 0 | 0.044444 | 1 | 0 | 0.024879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8ce506d242b95427afbc94077c4d1f14ffdab4fd | 451 | py | Python | vilya/libs/redis2beansdb.py | mubashshirjamal/code | d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382 | [
"BSD-3-Clause"
] | 1,582 | 2015-01-05T02:41:44.000Z | 2022-03-30T20:03:22.000Z | vilya/libs/redis2beansdb.py | mubashshirjamal/code | d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382 | [
"BSD-3-Clause"
] | 66 | 2015-01-23T07:58:04.000Z | 2021-11-12T02:23:27.000Z | vilya/libs/redis2beansdb.py | mubashshirjamal/code | d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382 | [
"BSD-3-Clause"
] | 347 | 2015-01-05T07:47:07.000Z | 2021-09-20T21:22:32.000Z | # -*- coding: utf-8 -*-
import redis
from vilya.config import REDIS_URI
class Beansdb(object):
def __init__(self):
self.redis = redis.from_url(REDIS_URI)
def get(self, key, default=None):
data = self.redis.get(key)
if not data:
return default
return data
def ... | 20.5 | 46 | 0.607539 | 62 | 451 | 4.306452 | 0.435484 | 0.134831 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003077 | 0.279379 | 451 | 21 | 47 | 21.47619 | 0.818462 | 0.046563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
8ced6d30120eb5e618428154a062aa426e4f553b | 1,127 | py | Python | lib/dramatis/actor/behavior.py | dramatis/dramatis | 1a43a6be1d7e7e9fd2cde052430d6e84700dc822 | [
"MIT"
] | 5 | 2015-11-05T01:51:29.000Z | 2019-04-16T09:09:19.000Z | lib/dramatis/actor/behavior.py | halorgium/dramatis | 50b35c4e79c33e438cb9f5eeab51ab73119bd75d | [
"MIT"
] | null | null | null | lib/dramatis/actor/behavior.py | halorgium/dramatis | 50b35c4e79c33e438cb9f5eeab51ab73119bd75d | [
"MIT"
] | 1 | 2022-03-03T19:51:04.000Z | 2022-03-03T19:51:04.000Z | from __future__ import absolute_import
from logging import warning
import dramatis
from dramatis.actor.name import Name as _Name
from dramatis import Runtime
import dramatis.runtime as runtime
from dramatis.actor.interface import Interface as _Interface
class Metaclass(type):
def __init__(cls,name,bases,dic... | 31.305556 | 70 | 0.677019 | 137 | 1,127 | 5.270073 | 0.416058 | 0.049862 | 0.047091 | 0.044321 | 0.055402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251109 | 1,127 | 35 | 71 | 32.2 | 0.85545 | 0.220941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.318182 | 0.045455 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8cee334eee17dbdc8ae0006db559f0de660b2140 | 1,423 | py | Python | highton/models/type_category.py | seibert-media/Highton | 1519e4fb105f62882c2e7bc81065d994649558d8 | [
"Apache-2.0"
] | 18 | 2015-06-24T02:33:12.000Z | 2022-02-11T10:33:58.000Z | highton/models/type_category.py | seibert-media/Highton | 1519e4fb105f62882c2e7bc81065d994649558d8 | [
"Apache-2.0"
] | 13 | 2016-01-14T19:11:24.000Z | 2020-04-21T08:53:27.000Z | highton/models/type_category.py | seibert-media/Highton | 1519e4fb105f62882c2e7bc81065d994649558d8 | [
"Apache-2.0"
] | 15 | 2015-04-15T15:08:31.000Z | 2022-02-11T15:34:19.000Z | from highton import (
fields,
call_mixins,
)
from highton.highton_constants import HightonConstants
from highton.models import HightonModel
class TypeCategory(
HightonModel,
call_mixins.ListCallMixin,
call_mixins.DetailCallMixin,
call_mixins.CreateCallMixin,
call_mixins.UpdateCallMixin,
... | 40.657143 | 87 | 0.765987 | 151 | 1,423 | 7.013245 | 0.245033 | 0.245515 | 0.103872 | 0.179415 | 0.653447 | 0.615675 | 0.441926 | 0.441926 | 0 | 0 | 0 | 0 | 0.141251 | 1,423 | 34 | 88 | 41.852941 | 0.866612 | 0.332396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cf7dbed5e8aa57da0022f3303c29994a457e37c | 5,928 | py | Python | script/self_driving/forecasting/forecaster_standalone.py | pmenon/noisepage | 73d50cdfa2e15b5d45e61b51e34672d10a851e14 | [
"MIT"
] | null | null | null | script/self_driving/forecasting/forecaster_standalone.py | pmenon/noisepage | 73d50cdfa2e15b5d45e61b51e34672d10a851e14 | [
"MIT"
] | null | null | null | script/self_driving/forecasting/forecaster_standalone.py | pmenon/noisepage | 73d50cdfa2e15b5d45e61b51e34672d10a851e14 | [
"MIT"
] | 1 | 2021-06-02T02:57:45.000Z | 2021-06-02T02:57:45.000Z | #!/usr/bin/env python3
"""
Script for standalone workload forecasting without relying on model server
Example usage:
- Generate data (runs OLTP benchmark on the built database) and perform training, and save the trained model
./forecaster_standalone --generate_data
- Perform training and save the trained model
... | 34.666667 | 108 | 0.675607 | 780 | 5,928 | 4.928205 | 0.253846 | 0.030957 | 0.066337 | 0.028096 | 0.260666 | 0.216441 | 0.17794 | 0.140999 | 0.100937 | 0.07128 | 0 | 0.005954 | 0.234987 | 5,928 | 170 | 109 | 34.870588 | 0.841676 | 0.218623 | 0 | 0.27193 | 1 | 0 | 0.243378 | 0.010638 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cfe2effeb89a91d97fc345be6d37527d0f8896a | 2,116 | py | Python | Python/src/data_structures/lists/lib/list.py | manoel-lopes/data-structures-and-algorithms | 301057484e82d3d44955b0f0766eee4b29520f54 | [
"MIT"
] | null | null | null | Python/src/data_structures/lists/lib/list.py | manoel-lopes/data-structures-and-algorithms | 301057484e82d3d44955b0f0766eee4b29520f54 | [
"MIT"
] | null | null | null | Python/src/data_structures/lists/lib/list.py | manoel-lopes/data-structures-and-algorithms | 301057484e82d3d44955b0f0766eee4b29520f54 | [
"MIT"
] | null | null | null | from typing import Optional, TypeVar, Generic, Union
from abc import ABC, abstractmethod
from src.data_structures.models.node import Node
T = TypeVar('T')
class List(ABC, Generic[T]):
def __init__(self) -> None:
self._head: Node[T] = None
self._tail: Node[T] = None
self._length: int = 0... | 22.510638 | 60 | 0.546786 | 257 | 2,116 | 4.322957 | 0.233463 | 0.043204 | 0.061206 | 0.028803 | 0.286229 | 0.223222 | 0.126013 | 0.070207 | 0.070207 | 0 | 0 | 0.005065 | 0.346881 | 2,116 | 93 | 61 | 22.752688 | 0.798842 | 0 | 0 | 0.393939 | 0 | 0 | 0.048204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0.060606 | 0.045455 | 0.030303 | 0.378788 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
506812a6cedc32bbd4289cd009155142c52b99d5 | 181 | py | Python | Chapter06/mapfilterreduce/filter1.py | MichaelRW/Python-for-Geeks | a111f61f1a0b077fc0524431e1ccefd9214d5c53 | [
"MIT"
] | 31 | 2020-08-10T22:37:41.000Z | 2022-03-09T21:35:56.000Z | Chapter06/mapfilterreduce/filter1.py | MichaelRW/Python-for-Geeks | a111f61f1a0b077fc0524431e1ccefd9214d5c53 | [
"MIT"
] | null | null | null | Chapter06/mapfilterreduce/filter1.py | MichaelRW/Python-for-Geeks | a111f61f1a0b077fc0524431e1ccefd9214d5c53 | [
"MIT"
] | 21 | 2020-08-10T22:37:44.000Z | 2022-03-07T07:26:28.000Z | # filter1.py to get even numbers from a list
def is_even(num):
return (num % 2 == 0)
mylist = [1, 2, 3, 4, 5,6,7,8,9]
new_list = list(filter(is_even, mylist))
print(new_list)
| 20.111111 | 44 | 0.646409 | 37 | 181 | 3.054054 | 0.72973 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 0.19337 | 181 | 8 | 45 | 22.625 | 0.691781 | 0.232044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
50a75f1702c20d984d99dc8e78db9ebd1ff8bddb | 570 | py | Python | maxContiguousSum.py | ZhouLihua/leetcode | 7a711e450756fb7b5648e938879d690e583f5957 | [
"MIT"
] | 2 | 2019-05-16T03:11:44.000Z | 2019-10-25T03:20:05.000Z | maxContiguousSum.py | ZhouLihua/leetcode | 7a711e450756fb7b5648e938879d690e583f5957 | [
"MIT"
] | null | null | null | maxContiguousSum.py | ZhouLihua/leetcode | 7a711e450756fb7b5648e938879d690e583f5957 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Largest Sum Contiguous Subarray
description: https://en.wikipedia.org/wiki/Maximum_subarray_problem
"""
def maxContiguousSum(arr):
current_max_sum = arr[0]
global_max_sum = arr[0]
for item in arr[1:]:
current_max_sum = _max(current_max_sum + item, item)
if curren... | 21.923077 | 67 | 0.657895 | 87 | 570 | 3.965517 | 0.45977 | 0.156522 | 0.188406 | 0.057971 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024831 | 0.222807 | 570 | 25 | 68 | 22.8 | 0.75395 | 0.035088 | 0 | 0 | 0 | 0 | 0.0181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50c0b2af84d6746377c2d465e20796d07a2305cd | 553 | py | Python | algorithms/number_theory/least_common_multiple_tests.py | agdenadel/python-algorithms | 28c298e2bc311c609f39a9f1c75a5abc9cc66b8a | [
"MIT"
] | null | null | null | algorithms/number_theory/least_common_multiple_tests.py | agdenadel/python-algorithms | 28c298e2bc311c609f39a9f1c75a5abc9cc66b8a | [
"MIT"
] | null | null | null | algorithms/number_theory/least_common_multiple_tests.py | agdenadel/python-algorithms | 28c298e2bc311c609f39a9f1c75a5abc9cc66b8a | [
"MIT"
] | null | null | null | import unittest
from least_common_multiple import least_common_multiple
class LeastCommonMultipleTests(unittest.TestCase):
def test_multiple(self):
x = 5
y = 25
self.assertEqual(least_common_multiple(x, y), 25)
self.assertEqual(least_common_multiple(y, x), 25)
def t... | 26.333333 | 62 | 0.654611 | 70 | 553 | 4.942857 | 0.314286 | 0.190751 | 0.32948 | 0.300578 | 0.419075 | 0.320809 | 0.320809 | 0 | 0 | 0 | 0 | 0.038929 | 0.256781 | 553 | 20 | 63 | 27.65 | 0.80292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50c6abfffba50b616ff13b722fcc684c102c7671 | 713 | py | Python | src/apps/blog/views/create_blog.py | dieisabel/proggy | 9e1428e5d1d5ba0217e34f86800a7d783a3673cd | [
"MIT"
] | 1 | 2021-03-13T20:59:25.000Z | 2021-03-13T20:59:25.000Z | src/apps/blog/views/create_blog.py | dieisabel/proggy | 9e1428e5d1d5ba0217e34f86800a7d783a3673cd | [
"MIT"
] | 69 | 2021-03-09T11:17:26.000Z | 2021-07-22T15:05:34.000Z | src/apps/blog/views/create_blog.py | dieisabel/proggy | 9e1428e5d1d5ba0217e34f86800a7d783a3673cd | [
"MIT"
] | null | null | null | """Module for Create blog view"""
from django.views.generic import CreateView
from django.contrib.auth.mixins import UserPassesTestMixin
from blog.models import Post
from utils import has_group
class CreateBlogView(UserPassesTestMixin, CreateView):
"""View for creating blogs"""
model = Post
fields = [
... | 25.464286 | 58 | 0.664797 | 85 | 713 | 5.470588 | 0.623529 | 0.043011 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237027 | 713 | 27 | 59 | 26.407407 | 0.854779 | 0.071529 | 0 | 0 | 0 | 0 | 0.116743 | 0.0553 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.2 | 0 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
50cdbaea65855167943f2e0f162ba4ae516d1c63 | 275 | py | Python | src/gmapscrawler/browserhandler.py | MindaugasVaitkus2/GMapsCrawler-DataCrawlerForGoogleMapsSearches | e39e125f2e746e2fd5e98ec186e63b89172ae3a4 | [
"MIT"
] | 1 | 2020-12-26T20:47:25.000Z | 2020-12-26T20:47:25.000Z | src/gmapscrawler/browserhandler.py | MindaugasVaitkus2/GMapsCrawler-DataCrawlerForGoogleMapsSearches | e39e125f2e746e2fd5e98ec186e63b89172ae3a4 | [
"MIT"
] | null | null | null | src/gmapscrawler/browserhandler.py | MindaugasVaitkus2/GMapsCrawler-DataCrawlerForGoogleMapsSearches | e39e125f2e746e2fd5e98ec186e63b89172ae3a4 | [
"MIT"
] | null | null | null |
from abc import ABC
class BrowserHandler(ABC):
@staticmethod
def get_url(DRIVER):
return DRIVER.current_url
@staticmethod
def set_url(DRIVER, url_str):
DRIVER.get(url_str)
@staticmethod
def quit(DRIVER):
DRIVER.quit()
| 16.176471 | 33 | 0.636364 | 33 | 275 | 5.151515 | 0.454545 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28 | 275 | 16 | 34 | 17.1875 | 0.858586 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50eeea0a51b2d0de776780585dd12ae0c7237d25 | 289 | py | Python | Ex017.py | andrade-lcs/ex_curso_em_video_python | f2d029efe7a20cdf0fcb5b602f9992e27d37c263 | [
"MIT"
] | null | null | null | Ex017.py | andrade-lcs/ex_curso_em_video_python | f2d029efe7a20cdf0fcb5b602f9992e27d37c263 | [
"MIT"
] | null | null | null | Ex017.py | andrade-lcs/ex_curso_em_video_python | f2d029efe7a20cdf0fcb5b602f9992e27d37c263 | [
"MIT"
] | null | null | null | import math
import random
print('O software vai escolher dois números')
a = random.uniform(1,100)
b = random.uniform(1,100)
print('Os números escolhidos foram {:.2f} e {:.2f}.'.format(a,b))
c = math.hypot(a,b)
print('A hipotenusa entre os catetos {:.2f} e {:.2f} é {:.2f}'.format(a,b,c))
| 28.9 | 77 | 0.67474 | 52 | 289 | 3.75 | 0.519231 | 0.030769 | 0.14359 | 0.174359 | 0.112821 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051587 | 0.128028 | 289 | 9 | 78 | 32.111111 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.463668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0f9f4bf5b72ca4bee44165713d1f137bd179a401 | 511 | py | Python | ics/structures/flex_vnet_mode.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 45 | 2017-10-17T08:42:08.000Z | 2022-02-21T16:26:48.000Z | ics/structures/flex_vnet_mode.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 106 | 2017-03-07T21:10:39.000Z | 2022-03-29T15:32:46.000Z | ics/structures/flex_vnet_mode.py | intrepidcs/python_ics | 7bfa8c2f893763608f9255f9536a2019cfae0c23 | [
"Unlicense"
] | 17 | 2017-04-04T12:30:22.000Z | 2022-01-28T05:30:25.000Z | # This file was auto generated; Do not modify, if you value your sanity!
import ctypes
import enum
class flex_vnet_mode(enum.IntEnum):
"""A ctypes-compatible IntEnum superclass."""
@classmethod
def from_param(cls, obj):
return int(obj)
flexVnetModeDisabled = 0
flexVnetModeOneSingle = enu... | 22.217391 | 72 | 0.726027 | 59 | 511 | 6.152542 | 0.661017 | 0.088154 | 0.099174 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002421 | 0.191781 | 511 | 22 | 73 | 23.227273 | 0.876513 | 0.217221 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0fa6e6a902814ef81105fa1c5ddab7e9df9eecf6 | 5,915 | py | Python | app/forms.py | danyfdz92/stack | 68656d56d1f983c718b3fb8e174fc0270b872334 | [
"MIT"
] | 37 | 2015-03-03T15:48:29.000Z | 2021-06-13T21:17:47.000Z | app/forms.py | danyfdz92/stack | 68656d56d1f983c718b3fb8e174fc0270b872334 | [
"MIT"
] | 32 | 2017-01-30T18:29:01.000Z | 2018-02-16T22:16:00.000Z | app/forms.py | casmlab/stack | 86bca591868a5c7dd9fef18e4b34113bd22df2c6 | [
"MIT"
] | 20 | 2015-02-14T05:02:07.000Z | 2021-07-19T17:41:15.000Z | from flask.ext.wtf import Form
from wtforms import StringField, PasswordField, TextAreaField, RadioField, SelectField
from wtforms.fields.html5 import DateField
from wtforms.validators import DataRequired, EqualTo, Optional
from wtforms import ValidationError
class RequiredIfNetwork(object):
"""
Custom valida... | 33.994253 | 120 | 0.650549 | 569 | 5,915 | 6.671353 | 0.251318 | 0.023182 | 0.01686 | 0.022919 | 0.447313 | 0.255532 | 0.216544 | 0.13883 | 0.13883 | 0.13883 | 0 | 0.000643 | 0.211158 | 5,915 | 173 | 121 | 34.190751 | 0.812902 | 0.123753 | 0 | 0.359223 | 0 | 0 | 0.195235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038835 | false | 0.087379 | 0.048544 | 0 | 0.582524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
0fa77182ad7fb1a66a8a06fd558b517d2e3dd04e | 2,460 | py | Python | registration/views.py | Yubisel/baseApp | d1db6089b0c38500c5e6f4714d0abdd9add0ede4 | [
"MIT"
] | null | null | null | registration/views.py | Yubisel/baseApp | d1db6089b0c38500c5e6f4714d0abdd9add0ede4 | [
"MIT"
] | 8 | 2020-06-05T23:26:40.000Z | 2021-09-08T01:27:26.000Z | registration/views.py | Yubisel/baseApp | d1db6089b0c38500c5e6f4714d0abdd9add0ede4 | [
"MIT"
] | null | null | null | from .forms import UserCreationFormWithEmail, ProfileForm, EmailForm
from django.views.generic import CreateView
from django.views.generic.edit import UpdateView
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
from django.urls import reverse_lazy
from djang... | 41.694915 | 137 | 0.695528 | 287 | 2,460 | 5.839721 | 0.292683 | 0.053699 | 0.041766 | 0.062649 | 0.431384 | 0.394391 | 0.365752 | 0.291169 | 0.291169 | 0.24821 | 0 | 0.004429 | 0.173984 | 2,460 | 59 | 138 | 41.694915 | 0.820374 | 0.073171 | 0 | 0.222222 | 0 | 0 | 0.190497 | 0.039595 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.088889 | 0.177778 | 0.044444 | 0.644444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
0fc84411ddeaaab1ad5ac5f30bb254e5212693c1 | 789 | py | Python | dags/bad_dags/dag3.py | wilsonalbert/airflow-docker-metrics | f22141a8ecda53b6f634da104ab35cd3cfd7279c | [
"Apache-2.0"
] | 20 | 2020-09-24T19:33:00.000Z | 2022-03-15T20:27:55.000Z | dags/bad_dags/dag3.py | wilsonalbert/airflow-docker-metrics | f22141a8ecda53b6f634da104ab35cd3cfd7279c | [
"Apache-2.0"
] | null | null | null | dags/bad_dags/dag3.py | wilsonalbert/airflow-docker-metrics | f22141a8ecda53b6f634da104ab35cd3cfd7279c | [
"Apache-2.0"
] | 14 | 2020-09-28T13:08:04.000Z | 2022-03-29T11:11:35.000Z | # import io
# import time
# from datetime import datetime, timedelta
# from time import sleep
# import pandas as pd
# import requests
# from airflow import DAG
# from airflow.operators.bash_operator import BashOperator
# # Default parameters
# default_args = {
# "owner": "airflow",
# "depends_on_past": False,... | 21.916667 | 77 | 0.684411 | 102 | 789 | 5.156863 | 0.539216 | 0.045627 | 0.068441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.181242 | 789 | 35 | 78 | 22.542857 | 0.787926 | 0.91635 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0fca91b968f1a45a02ca5eda030d7db90dcd798b | 213 | py | Python | 007.py | ClintonMorrison/project_euler | afbcbfee3d3468fddfeab214d7a7ad26f2e82595 | [
"MIT"
] | null | null | null | 007.py | ClintonMorrison/project_euler | afbcbfee3d3468fddfeab214d7a7ad26f2e82595 | [
"MIT"
] | null | null | null | 007.py | ClintonMorrison/project_euler | afbcbfee3d3468fddfeab214d7a7ad26f2e82595 | [
"MIT"
] | null | null | null | """
This file contains a solution for the seventh Project Euler problem.
https://projecteuler.net/problem=7
Author: Clinton Morrison
File: 007.py
"""
import util
primes = util.sieve(200000)
print primes[10000] | 19.363636 | 68 | 0.760563 | 31 | 213 | 5.225806 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081522 | 0.13615 | 213 | 11 | 69 | 19.363636 | 0.798913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
0fcb08fcf595de4f9fcc9fd7512f730ced992430 | 472 | py | Python | app/models/user_stock.py | abdulfataiaka/iexapp | d25e637d8ce9a594df2cfbd2edea1efe825291da | [
"MIT"
] | null | null | null | app/models/user_stock.py | abdulfataiaka/iexapp | d25e637d8ce9a594df2cfbd2edea1efe825291da | [
"MIT"
] | 1 | 2021-06-02T00:26:29.000Z | 2021-06-02T00:26:29.000Z | app/models/user_stock.py | abdulfataiaka/iexapp | d25e637d8ce9a594df2cfbd2edea1efe825291da | [
"MIT"
] | null | null | null | from config.db import db
class UserStock(db.Model):
__tablename__ = 'user_stocks'
id = db.Column(db.Integer, primary_key=True)
symbol = db.Column(db.String(5), nullable=False)
volume = db.Column(db.Integer, nullable=False)
user_id = db.Column(db.Integer, nullable=False)
def serialize(self):
... | 24.842105 | 52 | 0.618644 | 62 | 472 | 4.564516 | 0.435484 | 0.113074 | 0.141343 | 0.180212 | 0.286219 | 0.212014 | 0 | 0 | 0 | 0 | 0 | 0.00289 | 0.266949 | 472 | 18 | 53 | 26.222222 | 0.815029 | 0 | 0 | 0 | 0 | 0 | 0.023305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0fdb3fc42c4ba72fc9e75164e7438d11335798a5 | 948 | py | Python | webhoseio/__init__.py | Webhose/webhoseio-python | fe6787bf7fbedf62cf0657cccc266a17a4f70555 | [
"MIT"
] | 37 | 2017-04-09T14:37:33.000Z | 2021-11-25T04:02:03.000Z | webhoseio/__init__.py | Webhose/webhoseio-python | fe6787bf7fbedf62cf0657cccc266a17a4f70555 | [
"MIT"
] | 6 | 2017-03-16T08:22:53.000Z | 2021-05-02T17:46:24.000Z | webhoseio/__init__.py | Webhose/webhoseio-python | fe6787bf7fbedf62cf0657cccc266a17a4f70555 | [
"MIT"
] | 12 | 2017-07-06T18:00:45.000Z | 2020-09-22T10:05:40.000Z | import requests
class Session(object):
def __init__(self, token=None):
self.next_call = None
self.session = requests.Session()
self.token = token
def query(self, end_point_str, param_dict=None):
if param_dict is not None:
param_dict.update({"token": self.token})
... | 21.545455 | 92 | 0.637131 | 121 | 948 | 4.68595 | 0.330579 | 0.111111 | 0.077601 | 0.084656 | 0.137566 | 0.137566 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.248945 | 948 | 43 | 93 | 22.046512 | 0.79073 | 0 | 0 | 0 | 0 | 0 | 0.039112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.04 | 0.12 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
0ff7d1e331931a272a79b5f16d7b57de7c64f8c9 | 1,162 | py | Python | backend/model/migrate/versions/3fbc589c36d_.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 7 | 2018-05-20T08:56:08.000Z | 2022-03-11T15:50:54.000Z | backend/model/migrate/versions/3fbc589c36d_.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 2 | 2021-06-08T21:12:51.000Z | 2022-01-13T01:25:27.000Z | backend/model/migrate/versions/3fbc589c36d_.py | deti/boss | bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869 | [
"Apache-2.0"
] | 5 | 2016-10-09T14:52:09.000Z | 2020-12-25T01:04:35.000Z | """increase subject field size
Revision ID: 3fbc589c36d
Revises: 37b9ec06ce4
Create Date: 2015-06-24 15:03:25.808096
"""
# revision identifiers, used by Alembic.
revision = '3fbc589c36d'
down_revision = '37b9ec06ce4'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalche... | 21.127273 | 63 | 0.665232 | 137 | 1,162 | 5.489051 | 0.467153 | 0.053191 | 0.045213 | 0.037234 | 0.441489 | 0.335106 | 0.335106 | 0.226064 | 0.226064 | 0.226064 | 0 | 0.057206 | 0.217728 | 1,162 | 54 | 64 | 21.518519 | 0.770077 | 0.260757 | 0 | 0.24 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0.08 | 0.12 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ba05d7f9735aa3deb290f3704ee529ea72429a0d | 3,313 | py | Python | BB/bbObjects/bbInventoryListing.py | Morgenkroete/GOF2BountyBot | b4fe3d765b764ab169284ce0869a810825013389 | [
"MIT"
] | 6 | 2020-06-09T16:36:52.000Z | 2021-02-02T17:53:44.000Z | BB/bbObjects/bbInventoryListing.py | Morgenkroete/GOF2BountyBot | b4fe3d765b764ab169284ce0869a810825013389 | [
"MIT"
] | 138 | 2020-08-02T11:20:34.000Z | 2020-12-15T15:55:11.000Z | BB/bbObjects/bbInventoryListing.py | Morgenkroete/GOF2BountyBot | b4fe3d765b764ab169284ce0869a810825013389 | [
"MIT"
] | 6 | 2020-07-05T05:32:16.000Z | 2020-11-01T21:58:31.000Z | from typing import Type
from ..baseClasses import bbSerializable
class bbInventoryListing(bbSerializable.bbSerializable):
"""A listing representing an object and a quantity of that object stored.
To ensure serializability, inventorylistings can only store bbSerializable objects.
bbSerializable deserializ... | 37.647727 | 166 | 0.674313 | 403 | 3,313 | 5.521092 | 0.349876 | 0.028315 | 0.035955 | 0.02427 | 0.057528 | 0.040449 | 0.040449 | 0.040449 | 0.040449 | 0.040449 | 0 | 0.001621 | 0.255056 | 3,313 | 87 | 167 | 38.08046 | 0.899514 | 0.476909 | 0 | 0 | 0 | 0 | 0.220339 | 0.014237 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0.08 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ba09061b996193318c519cb7bd733027e5cca83c | 216 | py | Python | advanced_python/http/http_soup.py | XinyueZ/some-python-codes | 2d7296a4deebb0cd086be34ad7d66f5042cdf6e6 | [
"Unlicense"
] | null | null | null | advanced_python/http/http_soup.py | XinyueZ/some-python-codes | 2d7296a4deebb0cd086be34ad7d66f5042cdf6e6 | [
"Unlicense"
] | null | null | null | advanced_python/http/http_soup.py | XinyueZ/some-python-codes | 2d7296a4deebb0cd086be34ad7d66f5042cdf6e6 | [
"Unlicense"
] | null | null | null | import requests
from bs4 import BeautifulSoup
res = requests.get("http://www.online.sh.cn")
soup = BeautifulSoup(res.text)
print(soup.prettify())
print("*" * 90)
print(soup.title)
print("#" * 90)
print(soup.body)
| 18 | 45 | 0.708333 | 31 | 216 | 4.935484 | 0.612903 | 0.176471 | 0.156863 | 0.20915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026042 | 0.111111 | 216 | 11 | 46 | 19.636364 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0.115741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
ba16a123b2795e29841a1f9679befe98822fd959 | 18,773 | py | Python | full_example.py | HugoJBello/tests-text-recognition-python | 5c6a07e1714e581fe30cf6d7e1b0fe2b8b3158cc | [
"Apache-2.0"
] | null | null | null | full_example.py | HugoJBello/tests-text-recognition-python | 5c6a07e1714e581fe30cf6d7e1b0fe2b8b3158cc | [
"Apache-2.0"
] | null | null | null | full_example.py | HugoJBello/tests-text-recognition-python | 5c6a07e1714e581fe30cf6d7e1b0fe2b8b3158cc | [
"Apache-2.0"
] | null | null | null | # https://machinelearnings.co/text-classification-using-neural-networks-f5cd7b8765c6
# use natural language toolkit
import nltk
from nltk.stem.lancaster import LancasterStemmer
import os
import json
import datetime
import json
nltk.download('punkt')
stemmer = LancasterStemmer()
training_data = []
with open('data/ex... | 70.575188 | 6,967 | 0.742076 | 2,960 | 18,773 | 4.633784 | 0.32973 | 0.010499 | 0.007145 | 0.010207 | 0.130723 | 0.095801 | 0.051181 | 0.040755 | 0.025153 | 0.025153 | 0 | 0.01898 | 0.191712 | 18,773 | 266 | 6,968 | 70.575188 | 0.884671 | 0.080488 | 0 | 0.064516 | 0 | 0.012903 | 0.634981 | 0.00331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045161 | false | 0 | 0.064516 | 0.006452 | 0.141935 | 0.116129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ba181e28a8c3b3ad954de4c744c4da655090b750 | 2,319 | py | Python | em7api/em7api.py | dougip/em7api | 320478d68fe42c1e23ee833dd33d079d970631f1 | [
"MIT"
] | null | null | null | em7api/em7api.py | dougip/em7api | 320478d68fe42c1e23ee833dd33d079d970631f1 | [
"MIT"
] | null | null | null | em7api/em7api.py | dougip/em7api | 320478d68fe42c1e23ee833dd33d079d970631f1 | [
"MIT"
] | null | null | null | import requests
from requests.auth import HTTPBasicAuth
import urllib3
import json
from ConfigParser import SafeConfigParser
import os
class EM7API:
def __init__(self, \
uri=None, \
username=None, \
password=None, \
verify_ssl=True, \
enviro... | 35.676923 | 87 | 0.598103 | 234 | 2,319 | 5.705128 | 0.25641 | 0.053933 | 0.058427 | 0.053933 | 0.317603 | 0.317603 | 0.259176 | 0.194757 | 0.194757 | 0.194757 | 0 | 0.003628 | 0.286762 | 2,319 | 64 | 88 | 36.234375 | 0.803507 | 0.036654 | 0 | 0.163265 | 0 | 0 | 0.051098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0.122449 | 0.122449 | 0.102041 | 0.367347 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 |
e8463494a47e63fa6d8d5fe183bd39f4a83619c4 | 1,004 | py | Python | lib/python/treadmill/tests/rest/__init__.py | vrautela/treadmill | 05e47fa8acdf8bad7af78e737efb26ea6488de82 | [
"Apache-2.0"
] | 133 | 2016-09-15T13:36:12.000Z | 2021-01-18T06:29:13.000Z | tests/rest/__init__.py | bretttegart/treadmill | 812109e31c503a6eddaee2d3f2e1faf2833b6aaf | [
"Apache-2.0"
] | 108 | 2016-12-28T23:41:27.000Z | 2020-03-05T21:20:37.000Z | tests/rest/__init__.py | bretttegart/treadmill | 812109e31c503a6eddaee2d3f2e1faf2833b6aaf | [
"Apache-2.0"
] | 69 | 2016-09-23T20:38:58.000Z | 2020-11-11T02:31:21.000Z | """Tests for treadmill.rest.*"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os.path
import tempfile
import unittest
from unittest import mock
from treadmill import rest
# W0212: Access to a protected me... | 26.421053 | 69 | 0.705179 | 124 | 1,004 | 5.427419 | 0.532258 | 0.059435 | 0.095097 | 0.068351 | 0.092125 | 0.092125 | 0 | 0 | 0 | 0 | 0 | 0.009975 | 0.201195 | 1,004 | 37 | 70 | 27.135135 | 0.829177 | 0.26494 | 0 | 0.1 | 0 | 0 | 0.034771 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0 | 0.45 | 0 | 0.55 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
e853203be2531c123ff95e3ccbe55830ac1331e6 | 1,733 | py | Python | flockos/models/channel_member.py | bilmyers/pyflock | b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39 | [
"Apache-2.0"
] | 14 | 2017-02-14T07:02:59.000Z | 2022-03-30T13:59:59.000Z | flockos/models/channel_member.py | bilmyers/pyflock | b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39 | [
"Apache-2.0"
] | 10 | 2016-10-22T20:52:00.000Z | 2021-05-10T10:40:30.000Z | flockos/models/channel_member.py | bilmyers/pyflock | b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39 | [
"Apache-2.0"
] | 8 | 2017-03-03T13:16:34.000Z | 2020-07-23T17:59:54.000Z | # coding: utf-8
from pprint import pformat
from ..utils import to_dict
class ChannelMember(object):
def __init__(self, user_id=None, affiliation=None, public_profile=None):
self._user_id = user_id
self._affiliation = affiliation
self._public_profile = public_profile
@property
... | 22.506494 | 83 | 0.611079 | 206 | 1,733 | 4.825243 | 0.271845 | 0.072435 | 0.050302 | 0.042254 | 0.348089 | 0.185111 | 0.144869 | 0.072435 | 0 | 0 | 0 | 0.000827 | 0.302366 | 1,733 | 76 | 84 | 22.802632 | 0.82134 | 0.119446 | 0 | 0.230769 | 0 | 0 | 0.069504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.051282 | 0.076923 | 0.589744 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e85b0c99c5afe8857810e0c5769b8976fefcb0a9 | 989 | py | Python | jax/test_util.py | iolloj/jax | 1b80feea6acf758fd9dc3e616e8efcb8db831ce9 | [
"Apache-2.0"
] | 17,375 | 2018-11-18T02:15:55.000Z | 2022-03-31T23:49:46.000Z | jax/test_util.py | iolloj/jax | 1b80feea6acf758fd9dc3e616e8efcb8db831ce9 | [
"Apache-2.0"
] | 5,018 | 2018-11-22T17:04:07.000Z | 2022-03-31T23:36:25.000Z | jax/test_util.py | abattery/jax | 62c7744e68c66fae9faf9d8d00fea8aad4418cf3 | [
"Apache-2.0"
] | 1,805 | 2018-11-21T10:13:53.000Z | 2022-03-31T23:49:19.000Z | # Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 29.969697 | 76 | 0.769464 | 151 | 989 | 4.86755 | 0.662252 | 0.081633 | 0.035374 | 0.043537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014545 | 0.165824 | 989 | 32 | 77 | 30.90625 | 0.876364 | 0.649141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e865a89c239be28f92904257641c5d624cb8b023 | 93 | py | Python | serializers/property/__init__.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | 15 | 2020-07-09T20:51:09.000Z | 2021-11-28T21:59:02.000Z | serializers/property/__init__.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | 148 | 2020-03-28T22:10:30.000Z | 2021-12-19T09:22:59.000Z | serializers/property/__init__.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | 30 | 2020-03-12T02:31:27.000Z | 2021-07-29T02:40:36.000Z | from .property_serializer import PropertySerializer
__all__ = [
"PropertySerializer",
]
| 15.5 | 51 | 0.774194 | 7 | 93 | 9.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150538 | 93 | 5 | 52 | 18.6 | 0.848101 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e86b4c556447b5b2828ce48adb103acbfee6a0d3 | 1,123 | py | Python | tests/test_homoscedasticity_test.py | flor14/lrasm | dd3a05f34319049f51fdfa9407ab4d5906ea82ed | [
"MIT"
] | null | null | null | tests/test_homoscedasticity_test.py | flor14/lrasm | dd3a05f34319049f51fdfa9407ab4d5906ea82ed | [
"MIT"
] | 21 | 2022-01-16T23:56:32.000Z | 2022-02-05T18:51:49.000Z | tests/test_homoscedasticity_test.py | flor14/lrasm | dd3a05f34319049f51fdfa9407ab4d5906ea82ed | [
"MIT"
] | 2 | 2022-01-27T20:30:01.000Z | 2022-02-26T01:32:21.000Z | from lrasm.homoscedasticity_tst import homoscedasticity_test
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn import linear_model
from matplotlib.pyplot import figure
from scipy import stats
def test_homoscedasticity_test():
"""Test homoscedasticity test outputs from dataset"""
... | 35.09375 | 76 | 0.711487 | 195 | 1,123 | 3.94359 | 0.266667 | 0.208062 | 0.143043 | 0.169051 | 0.425228 | 0.390117 | 0.390117 | 0.36671 | 0.36671 | 0.36671 | 0 | 0.046336 | 0.173642 | 1,123 | 32 | 77 | 35.09375 | 0.782328 | 0.041852 | 0 | 0.166667 | 0 | 0 | 0.015873 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.041667 | false | 0 | 0.291667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e8737319e8d2e22b5e71a847148a41a40eda43b1 | 204 | py | Python | src/Twelfth Chapter/Example1.py | matthijskrul/ThinkPython | 34c1d81f4ef535c32b8b0309b23c7ca37f851606 | [
"MIT"
] | null | null | null | src/Twelfth Chapter/Example1.py | matthijskrul/ThinkPython | 34c1d81f4ef535c32b8b0309b23c7ca37f851606 | [
"MIT"
] | null | null | null | src/Twelfth Chapter/Example1.py | matthijskrul/ThinkPython | 34c1d81f4ef535c32b8b0309b23c7ca37f851606 | [
"MIT"
] | null | null | null | import random
# Create a black box object that generates random numbers
rng = random.Random()
dice_throw = rng.randrange(1,7) # Return an int, one of 1,2,3,4,5,6
delay_in_seconds = rng.random() * 5.0
| 25.5 | 69 | 0.720588 | 38 | 204 | 3.789474 | 0.789474 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.166667 | 204 | 7 | 70 | 29.142857 | 0.788235 | 0.436275 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e87dfd7966aaccdcdf4c504b38669522af3e9a6a | 1,103 | py | Python | python-webrtc/python/webrtc/base.py | MarshalX/python-webrtc | 36dfd57af7df8292e53ed8c7becbcd9be31a7588 | [
"Apache-2.0"
] | 81 | 2022-02-03T12:32:15.000Z | 2022-03-24T17:56:44.000Z | python-webrtc/python/webrtc/base.py | MarshalX/python-webrtc | 36dfd57af7df8292e53ed8c7becbcd9be31a7588 | [
"Apache-2.0"
] | 165 | 2022-02-27T13:37:22.000Z | 2022-03-09T16:07:35.000Z | python-webrtc/python/webrtc/base.py | MarshalX/python-webrtc | 36dfd57af7df8292e53ed8c7becbcd9be31a7588 | [
"Apache-2.0"
] | 2 | 2022-02-03T14:39:10.000Z | 2022-02-23T20:21:06.000Z | #
# Copyright 2022 Il`ya (Marshal) <https://github.com/MarshalX>. All rights reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE.md file in the root of the project.
#
from typing import List
from abc import ABCMeta
class WebRTCObject(object, metaclass=ABCMe... | 25.068182 | 85 | 0.650045 | 148 | 1,103 | 4.506757 | 0.5 | 0.08096 | 0.038981 | 0.074963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004802 | 0.244787 | 1,103 | 43 | 86 | 25.651163 | 0.795918 | 0.192203 | 0 | 0.08 | 0 | 0 | 0.093998 | 0.037373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.08 | 0.16 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
e87e936a4fb68439833f41e87fc47de9bcb049d9 | 453 | py | Python | changer/__init__.py | azwri/changer | d61c77c4f39e3969a91f6654fe2779c8a14d36ac | [
"MIT"
] | null | null | null | changer/__init__.py | azwri/changer | d61c77c4f39e3969a91f6654fe2779c8a14d36ac | [
"MIT"
] | null | null | null | changer/__init__.py | azwri/changer | d61c77c4f39e3969a91f6654fe2779c8a14d36ac | [
"MIT"
] | null | null | null | from .allnumbers import Numbers as __num__
__languages = ['english', 'arabic', 'hindi', 'persian', 'bengali',
'chinese_simple', 'chinese_complex', 'malayalam', 'thai', 'urdu']
for __language_1 in __languages:
for __language_2 in __languages:
if __language_1 != __language_2:
loca... | 37.75 | 78 | 0.644592 | 49 | 453 | 5.061224 | 0.571429 | 0.145161 | 0.205645 | 0.217742 | 0.209677 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.205298 | 453 | 11 | 79 | 41.181818 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.229581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e881d70a85943885cc0f42f5cb1f64874096701d | 274 | py | Python | image_sharing/database/models.py | rso-school-project/image-sharing | 1abb2c2a68d507f9deb2aed204fbc0edf3dbc497 | [
"MIT"
] | null | null | null | image_sharing/database/models.py | rso-school-project/image-sharing | 1abb2c2a68d507f9deb2aed204fbc0edf3dbc497 | [
"MIT"
] | null | null | null | image_sharing/database/models.py | rso-school-project/image-sharing | 1abb2c2a68d507f9deb2aed204fbc0edf3dbc497 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, ARRAY
from image_sharing.database import Base
class ImageShare(Base):
__tablename__ = 'image_share'
id = Column(Integer, primary_key=True, index=True)
image_id = Column(Integer)
shared_to = Column(Integer)
| 22.833333 | 54 | 0.744526 | 35 | 274 | 5.571429 | 0.628571 | 0.266667 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171533 | 274 | 11 | 55 | 24.909091 | 0.859031 | 0 | 0 | 0 | 0 | 0 | 0.040146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e88321866aca53d5f6120c5f507ec25d1655d610 | 382 | py | Python | meilisearch/tests/errors/test_communication_error_meilisearch.py | sanders41/meilisearch-python | 628552573181c4d348489362e694d3d2a32372ab | [
"MIT"
] | null | null | null | meilisearch/tests/errors/test_communication_error_meilisearch.py | sanders41/meilisearch-python | 628552573181c4d348489362e694d3d2a32372ab | [
"MIT"
] | null | null | null | meilisearch/tests/errors/test_communication_error_meilisearch.py | sanders41/meilisearch-python | 628552573181c4d348489362e694d3d2a32372ab | [
"MIT"
] | null | null | null | # pylint: disable=invalid-name
import pytest
import meilisearch
from meilisearch.errors import MeiliSearchCommunicationError
from meilisearch.tests import MASTER_KEY
def test_meilisearch_communication_error_host():
client = meilisearch.Client("http://wrongurl:1234", MASTER_KEY)
with pytest.raises(MeiliSearchC... | 31.833333 | 67 | 0.814136 | 42 | 382 | 7.214286 | 0.642857 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.109948 | 382 | 11 | 68 | 34.727273 | 0.879412 | 0.073298 | 0 | 0 | 0 | 0 | 0.085227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e88c507c15c7783d72fc6fdf0316ee05edbbc6b2 | 159 | py | Python | addons/ofxGuido/lib/guidolib-code/server/regression/guido_utilities.py | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 18 | 2015-01-18T22:34:22.000Z | 2020-09-06T20:30:30.000Z | addons/ofxGuido/lib/guidolib-code/server/regression/guido_utilities.py | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 2 | 2015-08-04T00:07:46.000Z | 2017-05-10T15:53:51.000Z | addons/ofxGuido/lib/guidolib-code/server/regression/guido_utilities.py | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 10 | 2015-01-18T23:46:10.000Z | 2019-08-25T12:10:04.000Z | def my_url_translation_function(url) :
naughty = "?/&"
#naughty = "#%&{}\\<>*?/ $!'\":@+`|="
for x in naughty :
url = url.replace(x,"_")
return url | 26.5 | 39 | 0.528302 | 18 | 159 | 4.444444 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194969 | 159 | 6 | 40 | 26.5 | 0.625 | 0.220126 | 0 | 0 | 0 | 0 | 0.03252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e89e84b339dc5e20f09bdccb0ba58ab69e6d18fa | 1,510 | py | Python | longclaw/longclawshipping/migrations/0001_initial.py | Kuntal-KK/longclaw | a3493a62937689a15236b2943d19bcf4ec058cd9 | [
"MIT"
] | 1 | 2021-08-14T13:46:32.000Z | 2021-08-14T13:46:32.000Z | longclaw/longclawshipping/migrations/0001_initial.py | Kuntal-KK/longclaw | a3493a62937689a15236b2943d19bcf4ec058cd9 | [
"MIT"
] | null | null | null | longclaw/longclawshipping/migrations/0001_initial.py | Kuntal-KK/longclaw | a3493a62937689a15236b2943d19bcf4ec058cd9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-18 21:15
from __future__ import unicode_literals
from django.db import migrations, models
import django_countries.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | 36.829268 | 114 | 0.583444 | 155 | 1,510 | 5.509677 | 0.43871 | 0.105386 | 0.168618 | 0.224824 | 0.409836 | 0.250585 | 0.250585 | 0.250585 | 0.250585 | 0.250585 | 0 | 0.042241 | 0.278808 | 1,510 | 40 | 115 | 37.75 | 0.741965 | 0.045033 | 0 | 0.3125 | 1 | 0 | 0.067408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e8a1b2ffc1e7e42d9adbbafe2b163b652ae534ff | 3,254 | py | Python | app/rpcService/rsClient.py | Michael-JC/inverstment_analysis | 724bcda7606d3049e6299f7f3390872954f6628f | [
"Apache-2.0"
] | 1 | 2021-05-25T06:34:13.000Z | 2021-05-25T06:34:13.000Z | app/rpcService/rsClient.py | Michael-JC/inverstment_analysis | 724bcda7606d3049e6299f7f3390872954f6628f | [
"Apache-2.0"
] | null | null | null | app/rpcService/rsClient.py | Michael-JC/inverstment_analysis | 724bcda7606d3049e6299f7f3390872954f6628f | [
"Apache-2.0"
] | null | null | null | # encoding: UTF-8
import copy
from rpc import RpcClient
########################################################################
class ObjectProxy(object):
"""对象代理"""
#----------------------------------------------------------------------
def __init__(self, nameList, client):
"""Constructor"""
... | 30.12963 | 75 | 0.369699 | 194 | 3,254 | 5.994845 | 0.365979 | 0.103181 | 0.047291 | 0.030954 | 0.05331 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000419 | 0.266134 | 3,254 | 107 | 76 | 30.411215 | 0.4866 | 0.29748 | 0 | 0.181818 | 0 | 0 | 0.0091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0 | 0.431818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e8afadeefea5f8e91a6960fe61c6fbebf35c9d37 | 1,654 | py | Python | archai/nas/random_finalizers.py | cclauss/archai | a5fb8f937f7f1319e3204120803b2a045e9f768b | [
"MIT"
] | 344 | 2020-06-12T22:12:56.000Z | 2022-03-29T06:48:20.000Z | archai/nas/random_finalizers.py | cclauss/archai | a5fb8f937f7f1319e3204120803b2a045e9f768b | [
"MIT"
] | 29 | 2020-06-13T19:56:49.000Z | 2022-03-30T20:26:48.000Z | archai/nas/random_finalizers.py | cclauss/archai | a5fb8f937f7f1319e3204120803b2a045e9f768b | [
"MIT"
] | 68 | 2020-06-12T19:32:43.000Z | 2022-03-05T06:58:40.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from typing import List, Tuple, Optional, Iterator, Dict, Set
from overrides import overrides
import random
import torch
from torch import nn
import numpy as np
from archai.common.common import get_conf
from archai.common.common i... | 38.465116 | 88 | 0.691052 | 224 | 1,654 | 4.982143 | 0.455357 | 0.107527 | 0.058244 | 0.039427 | 0.148746 | 0.066308 | 0.066308 | 0.066308 | 0.066308 | 0 | 0 | 0.00319 | 0.241838 | 1,654 | 42 | 89 | 39.380952 | 0.886762 | 0.116082 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.032258 | false | 0 | 0.580645 | 0 | 0.677419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e8b1411b327ffeb116d9e593129512db10142e21 | 501 | py | Python | examples/hello_world_example.py | slai/awssl | 7846dfe652588e6acf045d06e50c60b07ee6547e | [
"MIT"
] | 5 | 2017-10-16T17:33:31.000Z | 2021-01-16T18:53:23.000Z | examples/hello_world_example.py | slai/awssl | 7846dfe652588e6acf045d06e50c60b07ee6547e | [
"MIT"
] | 3 | 2018-09-06T21:26:22.000Z | 2018-09-20T19:29:40.000Z | examples/hello_world_example.py | slai/awssl | 7846dfe652588e6acf045d06e50c60b07ee6547e | [
"MIT"
] | 2 | 2018-08-12T00:58:45.000Z | 2018-09-08T14:32:47.000Z | import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import awssl
def hello_world_example():
# Construct states
hello_world = awssl.Pass(
Name="HelloWorld",
ResultAsJSON={"Hello": "World!"},
EndState=True)
# Construct state machine
return awssl.StateMachi... | 20.875 | 83 | 0.732535 | 69 | 501 | 5.057971 | 0.565217 | 0.17192 | 0.146132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002331 | 0.143713 | 501 | 23 | 84 | 21.782609 | 0.811189 | 0.07984 | 0 | 0 | 0 | 0 | 0.221007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.133333 | 0.2 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e8b452eace5180f9168dfd47012ef5cde48e637d | 77 | py | Python | python3/functions_parameters.py | yebra06/core-examples | a8d3fe342a7787014259f5d95e6d6bbcf2e30ccb | [
"MIT"
] | null | null | null | python3/functions_parameters.py | yebra06/core-examples | a8d3fe342a7787014259f5d95e6d6bbcf2e30ccb | [
"MIT"
] | null | null | null | python3/functions_parameters.py | yebra06/core-examples | a8d3fe342a7787014259f5d95e6d6bbcf2e30ccb | [
"MIT"
] | null | null | null |
def foo(bar):
print(bar)
foo('hello')
foo('sup')
''' output
hello
sup
''' | 7 | 13 | 0.584416 | 12 | 77 | 3.75 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 77 | 11 | 14 | 7 | 0.703125 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e8bcdd154d3fd2d00cfb25d8f05f0e3026ee63e4 | 844 | py | Python | anal_chem/statistics.py | Enzyme125/anal_chem | 9edc676233f2f227cd489d6fa61eeff820ee71f3 | [
"MIT"
] | 1 | 2022-03-28T14:33:20.000Z | 2022-03-28T14:33:20.000Z | anal_chem/statistics.py | inclyc/anal_chem | 9edc676233f2f227cd489d6fa61eeff820ee71f3 | [
"MIT"
] | null | null | null | anal_chem/statistics.py | inclyc/anal_chem | 9edc676233f2f227cd489d6fa61eeff820ee71f3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
def average_difference(data: np.ndarray) -> float:
"""计算平均偏差(不常用)
:param data: 要计算的数据
:return: 返回平均偏差
Example:
>>> average_difference(np.array([0.2,0.3,0.2,0.1]))
0.05000000000000001
"""
x_ = data.mean()
return np.abs(data - x_).mean()
... | 19.181818 | 68 | 0.588863 | 120 | 844 | 4.091667 | 0.391667 | 0.02444 | 0.03666 | 0.02444 | 0.158859 | 0.124236 | 0.124236 | 0 | 0 | 0 | 0 | 0.118644 | 0.231043 | 844 | 43 | 69 | 19.627907 | 0.637904 | 0.488152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e8ca10d726a11cf43e3732f0c8ad324e09e9f22f | 409 | py | Python | pyroll/integral_thermal/profile_impls.py | pyroll-project/pyroll-integral-thermal | 8379a33bdde2c6395eada293912aab9be5d13557 | [
"BSD-3-Clause"
] | null | null | null | pyroll/integral_thermal/profile_impls.py | pyroll-project/pyroll-integral-thermal | 8379a33bdde2c6395eada293912aab9be5d13557 | [
"BSD-3-Clause"
] | null | null | null | pyroll/integral_thermal/profile_impls.py | pyroll-project/pyroll-integral-thermal | 8379a33bdde2c6395eada293912aab9be5d13557 | [
"BSD-3-Clause"
] | null | null | null | import sys
from pyroll.core import Profile
@Profile.hookimpl
def density(profile: Profile):
raise ValueError("You must provide a density to use the pyroll-integral-thermal plugin.")
@Profile.hookimpl
def thermal_capacity(profile: Profile):
raise ValueError("You must provide a thermal capacity to use the py... | 24.058824 | 102 | 0.787286 | 56 | 409 | 5.642857 | 0.464286 | 0.132911 | 0.113924 | 0.183544 | 0.544304 | 0.544304 | 0.544304 | 0.544304 | 0 | 0 | 0 | 0 | 0.129584 | 409 | 16 | 103 | 25.5625 | 0.88764 | 0 | 0 | 0.222222 | 0 | 0 | 0.359413 | 0.112469 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2cd212c2c018036de2b2524b2ef7b1f928759d80 | 286 | py | Python | CodeWars/Python/Shortest Word.py | nirgn975/CodeWars | 657924b16ffb210e620416bcfbdd2f6debc5e41b | [
"BSD-3-Clause"
] | 28 | 2017-01-13T11:00:21.000Z | 2020-08-03T11:51:47.000Z | CodeWars/Python/Shortest Word.py | nirgn975/CodeWars | 657924b16ffb210e620416bcfbdd2f6debc5e41b | [
"BSD-3-Clause"
] | 3 | 2017-08-02T07:06:04.000Z | 2020-04-04T21:12:41.000Z | CodeWars/Python/Shortest Word.py | nirgn975/CodeWars | 657924b16ffb210e620416bcfbdd2f6debc5e41b | [
"BSD-3-Clause"
] | 15 | 2017-08-02T16:47:00.000Z | 2020-07-31T17:26:04.000Z | """
x Simple, given a string of words, return the length of the shortest word(s).
String will never be empty and you do not need to account for different data types.
"""
def find_short(s):
# your code here
words = s.split(' ')
words.sort(key=len)
return len(words[0])
| 23.833333 | 83 | 0.674825 | 49 | 286 | 3.918367 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004484 | 0.22028 | 286 | 11 | 84 | 26 | 0.856502 | 0.622378 | 0 | 0 | 0 | 0 | 0.01 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2cea1929735d8f4ec1a320219e1f06640ba4e8ab | 673 | py | Python | dairy_erp/list_view_api.py | shrikant9867/Dairy_project_Daiyerp | 635d34115f0eb2081b6835a190eda4971dbfb99f | [
"MIT"
] | null | null | null | dairy_erp/list_view_api.py | shrikant9867/Dairy_project_Daiyerp | 635d34115f0eb2081b6835a190eda4971dbfb99f | [
"MIT"
] | null | null | null | dairy_erp/list_view_api.py | shrikant9867/Dairy_project_Daiyerp | 635d34115f0eb2081b6835a190eda4971dbfb99f | [
"MIT"
] | 2 | 2020-01-19T13:27:57.000Z | 2021-12-28T20:32:56.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Stellapps Technologies Private Ltd.
# For license information, please see license.txt
# Author Khushal Trivedi
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.utils import flt, cstr, cint
import time
from frappe ... | 26.92 | 119 | 0.756315 | 94 | 673 | 5.276596 | 0.659574 | 0.060484 | 0.08871 | 0.104839 | 0.157258 | 0.157258 | 0 | 0 | 0 | 0 | 0 | 0.008666 | 0.142645 | 673 | 24 | 120 | 28.041667 | 0.850953 | 0.219911 | 0 | 0 | 0 | 0 | 0.238462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2cea1c34ec97a8d2472017e4e9b8aacd211aeaa1 | 3,681 | py | Python | pyardrone/config.py | Lindokuhle-Shongwe/ARDrone_Control | b882ea3037a024bfa1f951edbbc352c191374dff | [
"MIT"
] | 11 | 2019-07-26T16:15:47.000Z | 2021-03-15T13:51:17.000Z | pyardrone/config.py | Lindokuhle-Shongwe/ARDrone_Control | b882ea3037a024bfa1f951edbbc352c191374dff | [
"MIT"
] | 3 | 2020-05-15T19:40:31.000Z | 2021-07-22T10:20:38.000Z | pyardrone/config.py | Lindokuhle-Shongwe/ARDrone_Control | b882ea3037a024bfa1f951edbbc352c191374dff | [
"MIT"
] | 2 | 2019-07-26T16:15:47.000Z | 2020-12-08T10:27:32.000Z | import collections
import weakref
import socket
from pyardrone import at
from pyardrone.abc import BaseClient
class ConfigClient(BaseClient):
def __init__(self, host, port, at_client, timeout=3):
self.host = host
self.port = port
self.at_client = at_client
self.sock = socket.sock... | 24.704698 | 76 | 0.61994 | 446 | 3,681 | 4.838565 | 0.242152 | 0.02595 | 0.020389 | 0.022243 | 0.139944 | 0.112141 | 0.063021 | 0.033364 | 0.033364 | 0.033364 | 0 | 0.002925 | 0.256995 | 3,681 | 148 | 77 | 24.871622 | 0.786106 | 0.084216 | 0 | 0.086022 | 0 | 0 | 0.023608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.247312 | false | 0 | 0.053763 | 0.064516 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2cfc6f7efafce08fdc3399e8316c29f1adb621fd | 1,640 | py | Python | backend/opnreco/tests/test_param.py | OpenPaymentNetwork/opnreco | 99c8955d7e200fe11fc23c3568879c543940b168 | [
"MIT"
] | null | null | null | backend/opnreco/tests/test_param.py | OpenPaymentNetwork/opnreco | 99c8955d7e200fe11fc23c3568879c543940b168 | [
"MIT"
] | null | null | null | backend/opnreco/tests/test_param.py | OpenPaymentNetwork/opnreco | 99c8955d7e200fe11fc23c3568879c543940b168 | [
"MIT"
] | null | null | null |
from decimal import Decimal
import unittest
class Test_parse_amount(unittest.TestCase):
def _call(self, *args, **kw):
from ..param import parse_amount
return parse_amount(*args, **kw)
def test_basic(self):
obj = self._call('2.12', 'USD')
self.assertEqual(Decimal('2.12'), obj... | 31.538462 | 51 | 0.606098 | 219 | 1,640 | 4.401826 | 0.205479 | 0.311203 | 0.079876 | 0.108921 | 0.661826 | 0.5861 | 0.492739 | 0.492739 | 0.407676 | 0.363071 | 0 | 0.045274 | 0.232317 | 1,640 | 51 | 52 | 32.156863 | 0.720413 | 0 | 0 | 0.175 | 0 | 0 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.2 | false | 0 | 0.075 | 0 | 0.325 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa10e52d20b130a4378b4bb0ea6a86fcd223d63b | 10,576 | py | Python | pysnmp-with-texts/ALVARION-802DOT1X-ACCESS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/ALVARION-802DOT1X-ACCESS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/ALVARION-802DOT1X-ACCESS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ALVARION-802DOT1X-ACCESS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALVARION-802DOT1X-ACCESS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:21:56 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python vers... | 144.876712 | 1,061 | 0.789429 | 1,175 | 10,576 | 7.10383 | 0.202553 | 0.041692 | 0.07296 | 0.010064 | 0.429016 | 0.301785 | 0.282856 | 0.188211 | 0.148676 | 0.148676 | 0 | 0.081999 | 0.084436 | 10,576 | 72 | 1,062 | 146.888889 | 0.780027 | 0.033094 | 0 | 0.046875 | 0 | 0.0625 | 0.316238 | 0.068807 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.109375 | 0 | 0.109375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa14c0d8516d304586bd2b08f33b8191313b55f4 | 279 | py | Python | build/scripts/fail_module_cmd.py | HeyLey/catboost | f472aed90604ebe727537d9d4a37147985e10ec2 | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | build/scripts/fail_module_cmd.py | HeyLey/catboost | f472aed90604ebe727537d9d4a37147985e10ec2 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | build/scripts/fail_module_cmd.py | HeyLey/catboost | f472aed90604ebe727537d9d4a37147985e10ec2 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | import sys
if __name__ == '__main__':
assert len(sys.argv) == 2, 'Unexpected number of arguments...'
sys.stderr.write('Error: module command for target [[bad]]{}[[rst]] was not executed due to build graph configuration errors...\n'.format(sys.argv[1]))
sys.exit(1)
| 34.875 | 155 | 0.677419 | 41 | 279 | 4.414634 | 0.853659 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012766 | 0.157706 | 279 | 7 | 156 | 39.857143 | 0.757447 | 0 | 0 | 0 | 0 | 0.2 | 0.544803 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.