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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c729c652b160b08d3d75755fc13ef55a940b72bf | 601 | py | Python | var/spack/repos/builtin/packages/py-dbf/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2,360 | 2017-11-06T08:47:01.000Z | 2022-03-31T14:45:33.000Z | var/spack/repos/builtin/packages/py-dbf/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 13,838 | 2017-11-04T07:49:45.000Z | 2022-03-31T23:38:39.000Z | var/spack/repos/builtin/packages/py-dbf/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1,793 | 2017-11-04T07:45:50.000Z | 2022-03-30T14:31:53.000Z | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyDbf(PythonPackage):
"""Pure python package for reading/writing dBase, FoxPro, and Visual... | 35.352941 | 98 | 0.767055 | 70 | 601 | 6.585714 | 0.8 | 0.013015 | 0.02603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229885 | 0.131448 | 601 | 16 | 99 | 37.5625 | 0.653257 | 0.484193 | 0 | 0 | 0 | 0 | 0.56229 | 0.508418 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c747b383058333907e7cebd10d6551e21275a745 | 448 | py | Python | models/vae/base.py | kyanome/stats_models | 81e01d052eed1b734cef484ec1094e56ea425bc8 | [
"Apache-2.0"
] | null | null | null | models/vae/base.py | kyanome/stats_models | 81e01d052eed1b734cef484ec1094e56ea425bc8 | [
"Apache-2.0"
] | null | null | null | models/vae/base.py | kyanome/stats_models | 81e01d052eed1b734cef484ec1094e56ea425bc8 | [
"Apache-2.0"
] | null | null | null | from utils.types_ import *
from torch import nn
class BaseVAE(nn.Module):
def __init__(self) -> None:
super(BaseVAE, self).__init__()
def encode(self, input: Tensor) -> List[Tensor]:
raise NotImplementedError
def decode(self, input: Tensor) -> Any:
raise NotImplementedError
... | 20.363636 | 52 | 0.631696 | 52 | 448 | 5.25 | 0.5 | 0.131868 | 0.164835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263393 | 448 | 21 | 53 | 21.333333 | 0.827273 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.153846 | 0.153846 | 0 | 0.615385 | 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 | 1 | 0 | 0 | 3 |
c74ee6df930634726cafd56981bdd88f1c2e43d8 | 504 | py | Python | app/view.py | icrdr/1-mu | 8212b79a9949e334c185b99b1be41add5e577937 | [
"MIT"
] | null | null | null | app/view.py | icrdr/1-mu | 8212b79a9949e334c185b99b1be41add5e577937 | [
"MIT"
] | 5 | 2021-03-19T01:43:30.000Z | 2022-01-13T01:22:38.000Z | app/view.py | icrdr/1-mu-server | 8212b79a9949e334c185b99b1be41add5e577937 | [
"MIT"
] | null | null | null | from flask import send_from_directory, make_response
from . import db, app
@app.errorhandler(404)
def page_not_found(e):
return "404", 404
@app.route('/'+app.config['UPLOAD_FOLDER']+'<path:filename>')
def uploaded_file(filename):
return send_from_directory('../'+ app.config['UPLOAD_FOLDER'], filename)
@app.r... | 36 | 98 | 0.738095 | 68 | 504 | 5.235294 | 0.441176 | 0.101124 | 0.143258 | 0.095506 | 0.247191 | 0.247191 | 0.247191 | 0.247191 | 0 | 0 | 0 | 0.019608 | 0.089286 | 504 | 14 | 98 | 36 | 0.755991 | 0 | 0 | 0 | 0 | 0 | 0.192079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.272727 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c76d3b2717bfd4af80a6c42db64d7dac5b522e5e | 3,484 | py | Python | libs/conf.py | eaplab/RaSeedGAN | 9962b6400b8e50055ddf2e47df2bd4afe38244ae | [
"CC-BY-4.0"
] | 1 | 2022-03-16T14:43:02.000Z | 2022-03-16T14:43:02.000Z | libs/conf.py | eaplab/RaSeedGAN | 9962b6400b8e50055ddf2e47df2bd4afe38244ae | [
"CC-BY-4.0"
] | null | null | null | libs/conf.py | eaplab/RaSeedGAN | 9962b6400b8e50055ddf2e47df2bd4afe38244ae | [
"CC-BY-4.0"
] | 3 | 2022-03-16T14:23:33.000Z | 2022-03-16T14:43:06.000Z | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 11 20:41:41 2021
@author: guemesturb
"""
def get_conf(case):
"""
Function to retrieve the case characteristics.
:param case: String indicating the selected case.
:return nx: Integer indicating the grid points of the selected case in the streamwise di... | 49.771429 | 107 | 0.633754 | 462 | 3,484 | 4.670996 | 0.199134 | 0.081557 | 0.055607 | 0.069509 | 0.779889 | 0.760426 | 0.760426 | 0.679333 | 0.661724 | 0.641798 | 0 | 0.044012 | 0.321757 | 3,484 | 70 | 108 | 49.771429 | 0.869234 | 0.575775 | 0 | 0.404762 | 0 | 0 | 0.022238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
c771f9f928ef038367bf363697ada651716f253c | 53 | py | Python | tipos de datos/float3.py | gabys12/portafolio-fundamento-de-programacion | c9b47f32e885ed6ae80b14133a609798ea034e19 | [
"CNRI-Python"
] | null | null | null | tipos de datos/float3.py | gabys12/portafolio-fundamento-de-programacion | c9b47f32e885ed6ae80b14133a609798ea034e19 | [
"CNRI-Python"
] | null | null | null | tipos de datos/float3.py | gabys12/portafolio-fundamento-de-programacion | c9b47f32e885ed6ae80b14133a609798ea034e19 | [
"CNRI-Python"
] | null | null | null | z = 8.2
c = 9.9
h = 6.98
multi = z*c*h
print(multi)
| 7.571429 | 13 | 0.528302 | 15 | 53 | 1.866667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0.264151 | 53 | 6 | 14 | 8.833333 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 1 | 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 | 3 |
c773ef5735d2488f284be9de2eab3e2b94e0d1b3 | 1,141 | py | Python | dataprep/connector/errors.py | kla55/dataprep | 75542cda64570f1fe3c4ac61e670cc0ce2febaa3 | [
"MIT"
] | 1 | 2020-07-10T16:19:15.000Z | 2020-07-10T16:19:15.000Z | dataprep/data_connector/errors.py | cilmidheere/dataprep | 6f5a735e554a685d0c1f4e664b069281569a3b15 | [
"MIT"
] | null | null | null | dataprep/data_connector/errors.py | cilmidheere/dataprep | 6f5a735e554a685d0c1f4e664b069281569a3b15 | [
"MIT"
] | null | null | null | """
Module defines errors used in this library.
"""
from ..errors import DataprepError
class RequestError(DataprepError):
"""
A error indicating the status code of the API response
is not 200.
"""
status_code: int
message: str
def __init__(self, status_code: int, message: str) -> None:
... | 21.942308 | 81 | 0.60298 | 127 | 1,141 | 5.181102 | 0.370079 | 0.121581 | 0.059271 | 0.06079 | 0.130699 | 0.06079 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.295355 | 1,141 | 51 | 82 | 22.372549 | 0.814677 | 0.255039 | 0 | 0.210526 | 0 | 0 | 0.162822 | 0.065129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.105263 | 0.684211 | 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 | 1 | 0 | 0 | 3 |
c793a8c1c1c50f0821c877e302649b4d8b784176 | 296 | py | Python | calculations.py | Danielsilverio81/calculations_in_python | 9d77d631779f65703984fd4999d87c0f79472ab9 | [
"MIT"
] | null | null | null | calculations.py | Danielsilverio81/calculations_in_python | 9d77d631779f65703984fd4999d87c0f79472ab9 | [
"MIT"
] | null | null | null | calculations.py | Danielsilverio81/calculations_in_python | 9d77d631779f65703984fd4999d87c0f79472ab9 | [
"MIT"
] | null | null | null | operacao_1 = 2 + 3 * 5
operacao_2 = (2 + 3) * 5
operacao_3 = 4 / 2 ** 2
operacao_4 = 13 % 3 + 4
print(f"Resultado em operacao 1 = {operacao_1}")
print(f"Resultado em operacao 2 = {operacao_2}")
print(f"Resultado em operacao 3 = {operacao_3}")
print(f"Resultado em operacao 4 = {operacao_4}")
| 22.769231 | 48 | 0.665541 | 52 | 296 | 3.634615 | 0.211538 | 0.126984 | 0.31746 | 0.359788 | 0.529101 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 0.189189 | 296 | 12 | 49 | 24.666667 | 0.683333 | 0 | 0 | 0 | 0 | 0 | 0.513514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
c7be7a2ab2889f14929666a09757dffc5859a113 | 295 | py | Python | jd/api/rest/KplOpenRegularPlanShipmentorderRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 5 | 2019-10-30T01:16:30.000Z | 2020-06-14T03:32:19.000Z | jd/api/rest/KplOpenRegularPlanShipmentorderRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 2 | 2020-10-12T07:12:48.000Z | 2021-06-02T03:15:47.000Z | jd/api/rest/KplOpenRegularPlanShipmentorderRequest.py | fengjinqi/linjuanbang | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | [
"MIT"
] | 3 | 2019-12-06T17:33:49.000Z | 2021-03-01T13:24:22.000Z | from jd.api.base import RestApi
class KplOpenRegularPlanShipmentorderRequest(RestApi):
def __init__(self,domain='gw.api.360buy.com',port=80):
RestApi.__init__(self,domain, port)
self.shipmentParam = None
def getapiname(self):
return 'jd.kpl.open.regular.plan.shipmentorder'
| 18.4375 | 56 | 0.755932 | 37 | 295 | 5.810811 | 0.702703 | 0.074419 | 0.130233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019455 | 0.128814 | 295 | 15 | 57 | 19.666667 | 0.817121 | 0 | 0 | 0 | 0 | 0 | 0.190311 | 0.131488 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 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 | 1 | 0 | 0 | 3 |
c7e63f5638a6f158c9ef6be50ce3e92bc0d4f3a1 | 725 | py | Python | tests/test_normalize_path.py | adamchainz/yarl | fa2e925ec37748f51309ef7d87c9a1828b69467d | [
"Apache-2.0"
] | 783 | 2016-08-28T18:52:27.000Z | 2022-03-30T18:50:54.000Z | tests/test_normalize_path.py | adamchainz/yarl | fa2e925ec37748f51309ef7d87c9a1828b69467d | [
"Apache-2.0"
] | 664 | 2016-08-28T18:42:16.000Z | 2022-03-30T19:43:28.000Z | tests/test_normalize_path.py | adamchainz/yarl | fa2e925ec37748f51309ef7d87c9a1828b69467d | [
"Apache-2.0"
] | 144 | 2016-08-28T21:05:24.000Z | 2022-03-21T10:34:00.000Z | import pytest
from yarl import URL
PATHS = [
# No dots
("", ""),
("/", "/"),
("//", "//"),
("///", "///"),
# Single-dot
("path/to", "path/to"),
("././path/to", "path/to"),
("path/./to", "path/to"),
("path/././to", "path/to"),
("path/to/.", "path/to/"),
("path/to/./.", ... | 22.65625 | 53 | 0.482759 | 82 | 725 | 4.207317 | 0.365854 | 0.278261 | 0.324638 | 0.452174 | 0.26087 | 0.26087 | 0.208696 | 0.208696 | 0.208696 | 0.208696 | 0 | 0 | 0.198621 | 725 | 31 | 54 | 23.387097 | 0.593804 | 0.070345 | 0 | 0 | 0 | 0 | 0.376682 | 0.080717 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
1bec994c3f2b7ffc9774bbb5ab8a4d59cc266fbf | 762 | py | Python | python/datadict/core/svc/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/datadict/core/svc/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/datadict/core/svc/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | from .find_badges import FindBadges
from .find_certifications import FindCertifications
from .find_country_code import FindCountryCode
from .find_defines import FindDefines
from .find_dimensions import FindDimensions
from .find_entity import FindEntity
from .find_entity_ngrams import FindEntityNgrams
from .find_flow_hi... | 40.105263 | 54 | 0.88189 | 96 | 762 | 6.75 | 0.4375 | 0.197531 | 0.04321 | 0.067901 | 0.117284 | 0.117284 | 0.117284 | 0 | 0 | 0 | 0 | 0 | 0.094488 | 762 | 18 | 55 | 42.333333 | 0.93913 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1bf9ef4bcff9e9ed03dd55e3801caa995acca833 | 819 | py | Python | examples/widgets/actionbar.py | sirpercival/kivy | 29ef854a200e6764aae60ea29324379c69d271a3 | [
"MIT"
] | 2 | 2015-10-26T12:35:37.000Z | 2020-11-26T12:06:09.000Z | examples/widgets/actionbar.py | sirpercival/kivy | 29ef854a200e6764aae60ea29324379c69d271a3 | [
"MIT"
] | 1 | 2016-11-11T13:45:42.000Z | 2016-11-11T13:45:42.000Z | examples/widgets/actionbar.py | sirpercival/kivy | 29ef854a200e6764aae60ea29324379c69d271a3 | [
"MIT"
] | 3 | 2015-07-18T11:03:59.000Z | 2018-03-17T01:32:42.000Z | from kivy.base import runTouchApp
from kivy.lang import Builder
runTouchApp(Builder.load_string('''
ActionBar:
pos_hint: {'top':1}
ActionView:
use_separator: True
ActionPrevious:
title: 'Action Bar'
with_previous: False
ActionOverflow:
ActionButton:
... | 24.088235 | 70 | 0.510379 | 66 | 819 | 6.272727 | 0.69697 | 0.309179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020284 | 0.398046 | 819 | 33 | 71 | 24.818182 | 0.819473 | 0 | 0 | 0.258065 | 0 | 0 | 0.870416 | 0.06357 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.064516 | 0 | 0.064516 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4002cb69a80e39b380f1ec7237bffe0b939a6d7b | 187 | py | Python | trips/serializers/trips.py | chorna/taxi24 | 09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c | [
"MIT"
] | null | null | null | trips/serializers/trips.py | chorna/taxi24 | 09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c | [
"MIT"
] | null | null | null | trips/serializers/trips.py | chorna/taxi24 | 09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c | [
"MIT"
] | null | null | null | from rest_framework import serializers
from trips.models import Trip
class TripSerializer(serializers.ModelSerializer):
class Meta:
model = Trip
fields = '__all__'
| 18.7 | 50 | 0.727273 | 20 | 187 | 6.55 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219251 | 187 | 9 | 51 | 20.777778 | 0.89726 | 0 | 0 | 0 | 0 | 0 | 0.037433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4005eacd10462cf83b97e17c889b3465b456795a | 205,906 | py | Python | cinder/tests/unit/volume/drivers/dell_emc/vmax/test_vmax.py | mail2nsrajesh/cinder | a688b872bec6d1abd4dcd852bdb8e8a921369d2e | [
"Apache-2.0"
] | null | null | null | cinder/tests/unit/volume/drivers/dell_emc/vmax/test_vmax.py | mail2nsrajesh/cinder | a688b872bec6d1abd4dcd852bdb8e8a921369d2e | [
"Apache-2.0"
] | null | null | null | cinder/tests/unit/volume/drivers/dell_emc/vmax/test_vmax.py | mail2nsrajesh/cinder | a688b872bec6d1abd4dcd852bdb8e8a921369d2e | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Dell Inc. or its subsidiaries.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | 45.899688 | 79 | 0.627379 | 23,773 | 205,906 | 5.078661 | 0.03239 | 0.073086 | 0.037644 | 0.031317 | 0.822587 | 0.767665 | 0.705537 | 0.65334 | 0.612391 | 0.57502 | 0 | 0.009592 | 0.279016 | 205,906 | 4,485 | 80 | 45.909922 | 0.803685 | 0.007688 | 0 | 0.549672 | 0 | 0 | 0.091946 | 0.029307 | 0 | 0 | 0.000029 | 0 | 0.108674 | 1 | 0.092284 | false | 0.001765 | 0.005547 | 0.000504 | 0.123298 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
400ac2f93daca23dc991a3b0cf056b7a9a5c161a | 1,294 | py | Python | zadania-python/zadanie#5.08.py | Qeentissue/wizualizacja-danych | 36914230ff1c28d8a5cd05a2d4dfd5d3f4ddc1b0 | [
"MIT"
] | null | null | null | zadania-python/zadanie#5.08.py | Qeentissue/wizualizacja-danych | 36914230ff1c28d8a5cd05a2d4dfd5d3f4ddc1b0 | [
"MIT"
] | null | null | null | zadania-python/zadanie#5.08.py | Qeentissue/wizualizacja-danych | 36914230ff1c28d8a5cd05a2d4dfd5d3f4ddc1b0 | [
"MIT"
] | null | null | null | class samogloski:
def __init__(self, data):
self.i = 0
self.data = data
self.end = len(str(data))
self.vowels = "aeiou"
def __iter__(self):
return self
def wyswietl_dane(self):
return self.data
def __next__(self):
i = self.i
if self.... | 26.408163 | 93 | 0.5966 | 173 | 1,294 | 4.381503 | 0.225434 | 0.189974 | 0.28496 | 0.403694 | 0.534301 | 0.534301 | 0.534301 | 0.470976 | 0.407652 | 0.407652 | 0 | 0.002964 | 0.217929 | 1,294 | 48 | 94 | 26.958333 | 0.746047 | 0 | 0 | 0.47619 | 0 | 0 | 0.085913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0 | 0.047619 | 0.214286 | 0.5 | 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 | 1 | 0 | 3 |
401fecac396cae74febe656af5db71990982fbb2 | 235 | py | Python | rllib/connectors/util.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | rllib/connectors/util.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | 12 | 2022-03-05T05:37:28.000Z | 2022-03-19T07:14:43.000Z | rllib/connectors/util.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | from ray.rllib.connectors.connector import (
Connector,
get_connector,
)
from typing import Dict
def get_connectors_from_cfg(config: dict) -> Dict[str, Connector]:
return {k: get_connector(*v) for k, v in config.items()}
| 23.5 | 66 | 0.723404 | 34 | 235 | 4.852941 | 0.558824 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165957 | 235 | 9 | 67 | 26.111111 | 0.841837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
401ff781d725ca4b6d0f3e56db20b9a531517144 | 188 | py | Python | example/dev_0.py | calmquant/simple-proto-db | 95d36f76165f4217602407b3447879a7a84fc478 | [
"MIT"
] | null | null | null | example/dev_0.py | calmquant/simple-proto-db | 95d36f76165f4217602407b3447879a7a84fc478 | [
"MIT"
] | null | null | null | example/dev_0.py | calmquant/simple-proto-db | 95d36f76165f4217602407b3447879a7a84fc478 | [
"MIT"
] | null | null | null | # define item class
# items should have dot access to attributes from proto.
# also highilight in pycharm.
# define db class
#
#
# create db in memory
# save it somewhere
# load it back
| 15.666667 | 56 | 0.728723 | 29 | 188 | 4.724138 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212766 | 188 | 11 | 57 | 17.090909 | 0.925676 | 0.888298 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
403387b5bd36d8a1f8269826836af0631d46e64d | 165 | py | Python | run.py | AttiR/Gymkhana-gladiators-cc | f79b51f8f40130dff781bb3f6123c8be844fe0da | [
"MIT"
] | null | null | null | run.py | AttiR/Gymkhana-gladiators-cc | f79b51f8f40130dff781bb3f6123c8be844fe0da | [
"MIT"
] | null | null | null | run.py | AttiR/Gymkhana-gladiators-cc | f79b51f8f40130dff781bb3f6123c8be844fe0da | [
"MIT"
] | null | null | null | from app import create_app
import os
app = create_app('production' if os.environ.get('DYNO') else 'development')
if __name__ == '__main__':
app.run(debug=True) | 23.571429 | 75 | 0.727273 | 25 | 165 | 4.4 | 0.68 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139394 | 165 | 7 | 76 | 23.571429 | 0.774648 | 0 | 0 | 0 | 0 | 0 | 0.198795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
4042bb7052988c34ff2c6cde6fb59380407478ad | 1,063 | py | Python | Aula21/exercicio3.py | marcelabbc07/TrabalhosPython | 91734d13110e4dee12a532dfd7091e36394a6449 | [
"MIT"
] | null | null | null | Aula21/exercicio3.py | marcelabbc07/TrabalhosPython | 91734d13110e4dee12a532dfd7091e36394a6449 | [
"MIT"
] | null | null | null | Aula21/exercicio3.py | marcelabbc07/TrabalhosPython | 91734d13110e4dee12a532dfd7091e36394a6449 | [
"MIT"
] | null | null | null | # Aula 21 - 06-12-2019
# Como Tratar e Trabalhar Erros!!!
# 1 - Crie um metodo que leia 5 valores inteiros e retorne uma lista.
# Esta função deve ter tratamento de excessão evitando erro ValueError.
# 2 - Com a lista retornada, faça a multiplicação por 5 e salve o resultado
# em outra lista.
# Imprima a lista resultan... | 32.212121 | 75 | 0.677328 | 169 | 1,063 | 4.207101 | 0.39645 | 0.108298 | 0.196906 | 0.21097 | 0.38256 | 0.38256 | 0.38256 | 0.38256 | 0.323488 | 0.323488 | 0 | 0.046458 | 0.190028 | 1,063 | 33 | 76 | 32.212121 | 0.779326 | 0.289746 | 0 | 0.416667 | 0 | 0 | 0.251337 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.083333 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4057a6889d845e43febc7ba0da1ec9a410802ea1 | 228 | py | Python | usbSerialExamples/src/main/python/main.py | markwu2001/android_dev_board | 4c763dd5e826f44a239d4feb98eb7591148768e7 | [
"MIT"
] | null | null | null | usbSerialExamples/src/main/python/main.py | markwu2001/android_dev_board | 4c763dd5e826f44a239d4feb98eb7591148768e7 | [
"MIT"
] | null | null | null | usbSerialExamples/src/main/python/main.py | markwu2001/android_dev_board | 4c763dd5e826f44a239d4feb98eb7591148768e7 | [
"MIT"
] | null | null | null | import java
persistent_terminal = None
def addTwo(a,b):
return a+b
def get_ready(t):
persistent_terminal = t
def loop():
persistent_terminal.send('1')
if persistent_terminal.read() == '0':
return 'gotem' | 16.285714 | 41 | 0.671053 | 32 | 228 | 4.625 | 0.625 | 0.486486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.20614 | 228 | 14 | 42 | 16.285714 | 0.80663 | 0 | 0 | 0 | 0 | 0 | 0.030568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.1 | 0.6 | 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 | 1 | 0 | 0 | 3 |
405ece7e27c8aa6e640aaa657c19d6c1ff92b084 | 1,648 | py | Python | data_structures/linked_list/has_loop.py | jenia90/Python | 696fb4a681ad9e4d84e0d2b894daf449a3e30b24 | [
"MIT"
] | 21 | 2020-11-29T11:34:44.000Z | 2021-06-04T05:50:33.000Z | data_structures/linked_list/has_loop.py | Agha-Muqarib/Python | 04f156a8973d6156a4357e0717d9eb0aa264d086 | [
"MIT"
] | 279 | 2020-02-12T20:51:09.000Z | 2021-07-20T11:25:19.000Z | data_structures/linked_list/has_loop.py | Agha-Muqarib/Python | 04f156a8973d6156a4357e0717d9eb0aa264d086 | [
"MIT"
] | 12 | 2020-10-03T05:44:19.000Z | 2022-01-16T05:37:54.000Z | from typing import Any
class ContainsLoopError(Exception):
pass
class Node:
def __init__(self, data: Any) -> None:
self.data = data
self.next_node = None
def __iter__(self):
node = self
visited = []
while node:
if node in visited:
rais... | 27.016393 | 83 | 0.60801 | 227 | 1,648 | 4.088106 | 0.237885 | 0.241379 | 0.349138 | 0.224138 | 0.579741 | 0.52694 | 0.5 | 0.44181 | 0.400862 | 0.362069 | 0 | 0.011207 | 0.296117 | 1,648 | 60 | 84 | 27.466667 | 0.788793 | 0.229369 | 0 | 0.157895 | 0 | 0 | 0.006832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.026316 | 0.026316 | 0 | 0.210526 | 0.105263 | 0 | 0 | 0 | null | 1 | 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 | 3 |
406111c0a49ddc21886250db0e65250fa0b788e7 | 110 | py | Python | challenges/4.6.Exponents/main.py | pradeepsaiu/python-coding-challenges | b435ab650d85de267eeaa31a55ff77ef5dbff86b | [
"BSD-3-Clause"
] | 141 | 2017-05-07T00:38:22.000Z | 2022-03-25T10:14:25.000Z | challenges/4.6.Exponents/main.py | pradeepsaiu/python-coding-challenges | b435ab650d85de267eeaa31a55ff77ef5dbff86b | [
"BSD-3-Clause"
] | 23 | 2017-05-06T23:57:37.000Z | 2018-03-23T19:07:32.000Z | challenges/4.6.Exponents/main.py | pradeepsaiu/python-coding-challenges | b435ab650d85de267eeaa31a55ff77ef5dbff86b | [
"BSD-3-Clause"
] | 143 | 2017-05-07T09:33:35.000Z | 2022-03-12T21:04:13.000Z | a = 3
b = 4
### Write your code below this line ###
### Write your code above this line ###
print(power)
| 10 | 39 | 0.6 | 18 | 110 | 3.666667 | 0.722222 | 0.272727 | 0.393939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.254545 | 110 | 10 | 40 | 11 | 0.780488 | 0.581818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
40892dd6a13610f0713e2102238d5b7dffbef11e | 305 | py | Python | kubernetes_typed/client/models/v1_endpoint_port.py | sobolevn/kubernetes-typed | 5f0a770631c73a9831fbeaeebac188e8f4a52c54 | [
"Apache-2.0"
] | 22 | 2020-12-10T13:06:02.000Z | 2022-02-13T21:58:15.000Z | kubernetes_typed/client/models/v1_endpoint_port.py | sobolevn/kubernetes-typed | 5f0a770631c73a9831fbeaeebac188e8f4a52c54 | [
"Apache-2.0"
] | 4 | 2021-03-08T07:06:12.000Z | 2022-03-29T23:41:45.000Z | kubernetes_typed/client/models/v1_endpoint_port.py | sobolevn/kubernetes-typed | 5f0a770631c73a9831fbeaeebac188e8f4a52c54 | [
"Apache-2.0"
] | 2 | 2021-09-05T19:18:28.000Z | 2022-03-14T02:56:17.000Z | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V1EndpointPortDict generated type."""
from typing import TypedDict
V1EndpointPortDict = TypedDict(
"V1EndpointPortDict",
{
"appProtocol": str,
"name": str,
"port": int,
"protocol": str,
},
total=False,
)
| 20.333333 | 48 | 0.609836 | 27 | 305 | 6.888889 | 0.777778 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.262295 | 305 | 14 | 49 | 21.785714 | 0.813333 | 0.268852 | 0 | 0 | 1 | 0 | 0.207373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
408a8874af78cb397c5ac25635cc0349ca269827 | 26,981 | py | Python | src/gbkfit/model/gmodels/traits.py | bek0s/gbkf | 2ef56e8554fdf7ee8136141bc16d59bd34efa6c8 | [
"BSD-3-Clause"
] | 6 | 2016-06-26T16:52:25.000Z | 2022-03-22T06:37:13.000Z | src/gbkfit/model/gmodels/traits.py | bek0s/gbkf | 2ef56e8554fdf7ee8136141bc16d59bd34efa6c8 | [
"BSD-3-Clause"
] | 4 | 2016-07-30T08:11:20.000Z | 2021-02-12T08:33:42.000Z | src/gbkfit/model/gmodels/traits.py | bek0s/gbkf | 2ef56e8554fdf7ee8136141bc16d59bd34efa6c8 | [
"BSD-3-Clause"
] | 2 | 2015-05-18T03:21:56.000Z | 2015-09-21T06:16:18.000Z |
import abc
import numpy as np
import gbkfit.math
from gbkfit.params.descs import ParamScalarDesc, ParamVectorDesc
from gbkfit.utils import parseutils
# Density traits (polar)
RP_TRAIT_UID_UNIFORM = 1
RP_TRAIT_UID_EXPONENTIAL = 2
RP_TRAIT_UID_GAUSS = 3
RP_TRAIT_UID_GGAUSS = 4
RP_TRAIT_UID_LORENTZ = 5
RP_TRAIT_UID_M... | 21.128426 | 83 | 0.648234 | 3,050 | 26,981 | 5.453115 | 0.082951 | 0.051948 | 0.061688 | 0.081169 | 0.647126 | 0.59596 | 0.540524 | 0.503127 | 0.462602 | 0.36081 | 0 | 0.007388 | 0.252548 | 26,981 | 1,276 | 84 | 21.144984 | 0.817325 | 0.028427 | 0 | 0.614595 | 0 | 0 | 0.033915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242873 | false | 0.012543 | 0.005701 | 0.194983 | 0.540479 | 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 | 1 | 0 | 0 | 3 |
40b6b4399994d9e50dfb19c4c8218eab7444b4eb | 702 | py | Python | src/utils/QuandlDataLoader.py | marvin-hansen/StockUtils | 6ca246a5bf8fc8fa5b6b472a42318f722782d7ff | [
"MIT"
] | 13 | 2019-05-13T22:39:59.000Z | 2020-11-26T19:44:44.000Z | src/utils/QuandlDataLoader.py | marvin-hansen/StockUtils | 6ca246a5bf8fc8fa5b6b472a42318f722782d7ff | [
"MIT"
] | null | null | null | src/utils/QuandlDataLoader.py | marvin-hansen/StockUtils | 6ca246a5bf8fc8fa5b6b472a42318f722782d7ff | [
"MIT"
] | 4 | 2019-05-13T22:40:02.000Z | 2020-07-02T01:31:19.000Z | from src.enum import INTERVAL
from src.enum import Ticker
from src.enum import TimeFrame
from src.utils.DataLoaderInf import DataLoaderInf
class QuandlDataLoader(DataLoaderInf):
def __init__(self, api_key, dbg):
super().__init__(api_key, dbg)
self.API_KEY = api_key
self.DBG = dbg
def ... | 30.521739 | 103 | 0.650997 | 90 | 702 | 4.866667 | 0.366667 | 0.063927 | 0.075342 | 0.116438 | 0.246575 | 0.13242 | 0.13242 | 0 | 0 | 0 | 0 | 0 | 0.263533 | 702 | 22 | 104 | 31.909091 | 0.847195 | 0 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.176471 | 0.235294 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
40bd3bb57b1f5123c955a4f765e5aa741dac52be | 224 | py | Python | part3/ex05/birthday.py | abasu1007/intro-to-python | f6978816c3020860b74219a1bfe191aea8e4e75f | [
"CC-BY-4.0"
] | 13 | 2015-05-11T06:20:24.000Z | 2017-04-13T19:47:54.000Z | part3/ex05/birthday.py | PythonWorkshop/intro-to-python | 9f8ad86e42e40d059877fd234fb160602e8907ac | [
"CC-BY-4.0"
] | null | null | null | part3/ex05/birthday.py | PythonWorkshop/intro-to-python | 9f8ad86e42e40d059877fd234fb160602e8907ac | [
"CC-BY-4.0"
] | 10 | 2016-04-16T19:28:22.000Z | 2018-06-15T14:56:57.000Z | # Script that prints greeting 4 times via refactored function
def happy_birthday(name):
print("Happy Birthday, dear " + name + "!")
names = ["Carol", "Rise", "Trey", "Alain"]
for name in names:
happy_birthday(name) | 28 | 61 | 0.683036 | 30 | 224 | 5.033333 | 0.733333 | 0.258278 | 0.225166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.178571 | 224 | 8 | 62 | 28 | 0.815217 | 0.263393 | 0 | 0 | 0 | 0 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
40ec3c5992adad084017a2de88b73924d58e03fa | 354 | py | Python | internships/CtCI/ch8/triple_step.py | AmrMKayid/KayAlgo | df6e2b5b0f74174d5c0950520f0c47b04212dfaa | [
"MIT"
] | 1 | 2019-02-11T13:29:32.000Z | 2019-02-11T13:29:32.000Z | internships/CtCI/ch8/triple_step.py | AmrMKayid/KayAlgo | df6e2b5b0f74174d5c0950520f0c47b04212dfaa | [
"MIT"
] | 1 | 2019-02-11T15:26:36.000Z | 2019-02-11T15:26:36.000Z | internships/CtCI/ch8/triple_step.py | AmrMKayid/KayAlgo | df6e2b5b0f74174d5c0950520f0c47b04212dfaa | [
"MIT"
] | null | null | null | def triple_step(n):
return triple_step_dp(n, [-1] * (n + 1))
def triple_step_dp(n, memo):
if n < 0:
return 0
elif n == 0:
return 1
if memo[n] == -1:
memo[n] = triple_step_dp(n - 1, memo) \
+ triple_step_dp(n - 2, memo) \
+ triple_step_dp(n - 3, memo)
return memo[n]
... | 19.666667 | 45 | 0.548023 | 60 | 354 | 3.033333 | 0.266667 | 0.384615 | 0.32967 | 0.357143 | 0.340659 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039841 | 0.29096 | 354 | 17 | 46 | 20.823529 | 0.685259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.076923 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 1 | 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 | 3 |
dc0a60d3c5dea5e9d0286de2a75681ebd8503598 | 121 | py | Python | flask_philo_core/admin/templates/project/hello.py | pedrotcaraujo/Flask-Philo-Core | 8b24d5ed102c3ffad92a58f102fe1641966d4acf | [
"MIT"
] | null | null | null | flask_philo_core/admin/templates/project/hello.py | pedrotcaraujo/Flask-Philo-Core | 8b24d5ed102c3ffad92a58f102fe1641966d4acf | [
"MIT"
] | 10 | 2018-10-11T09:00:59.000Z | 2019-03-08T15:49:10.000Z | flask_philo_core/admin/templates/project/hello.py | pedrotcaraujo/Flask-Philo-Core | 8b24d5ed102c3ffad92a58f102fe1641966d4acf | [
"MIT"
] | 3 | 2018-10-11T09:04:33.000Z | 2019-03-08T15:38:31.000Z | from flask import current_app
def run():
app = current_app._get_current_object()
print('hello')
print(app)
| 15.125 | 43 | 0.68595 | 17 | 121 | 4.588235 | 0.647059 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206612 | 121 | 7 | 44 | 17.285714 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.041322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.4 | 1 | 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 | 3 |
905e60d7fe9b3f12d493617b1be6294b51d7b752 | 13,134 | py | Python | CDS_pretraining/loaders/data_list.py | VisionLearningGroup/CDS | 5b3644c286f19f76acdc03c6f6021a6f6e4ec4fc | [
"MIT"
] | 7 | 2021-10-18T11:53:51.000Z | 2022-02-10T22:04:09.000Z | CDS_pretraining/loaders/data_list.py | VisionLearningGroup/CDS | 5b3644c286f19f76acdc03c6f6021a6f6e4ec4fc | [
"MIT"
] | 2 | 2021-11-23T15:48:05.000Z | 2022-02-17T02:40:21.000Z | CDS_pretraining/loaders/data_list.py | VisionLearningGroup/CDS | 5b3644c286f19f76acdc03c6f6021a6f6e4ec4fc | [
"MIT"
] | null | null | null | import torch
import numpy as np
import random
import torch.utils.data as data
import os
import os.path
import PIL
from PIL import Image
import pdb
import random
# import cPickle
from torch.utils.data.sampler import WeightedRandomSampler
from torchvision import transforms
import torch.utils.data as util_data
def pil_l... | 35.885246 | 122 | 0.623039 | 1,692 | 13,134 | 4.635343 | 0.134161 | 0.026393 | 0.02142 | 0.028688 | 0.742701 | 0.726125 | 0.713502 | 0.680862 | 0.666709 | 0.661992 | 0 | 0.010747 | 0.270291 | 13,134 | 365 | 123 | 35.983562 | 0.807596 | 0.245698 | 0 | 0.589862 | 0 | 0 | 0.044996 | 0.02807 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.059908 | 0.018433 | 0.253456 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
90650bd21c7c3ef7aaa9155ecda493248e24a3ba | 760 | py | Python | djackal/tests.py | jrog612/djackal | f46733f69f7a2e796ac611700ac5ffe20b7f0927 | [
"MIT"
] | null | null | null | djackal/tests.py | jrog612/djackal | f46733f69f7a2e796ac611700ac5ffe20b7f0927 | [
"MIT"
] | null | null | null | djackal/tests.py | jrog612/djackal | f46733f69f7a2e796ac611700ac5ffe20b7f0927 | [
"MIT"
] | null | null | null | from django.db.models import QuerySet
from django.test import TransactionTestCase, TestCase
from rest_framework.test import APITestCase
class _TestMixin:
def assertLen(self, length, seq):
if isinstance(seq, QuerySet):
assert length == seq.count()
assert length == len(seq)
def asse... | 23.75 | 66 | 0.713158 | 81 | 760 | 6.604938 | 0.45679 | 0.072897 | 0.06729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011589 | 0.205263 | 760 | 31 | 67 | 24.516129 | 0.874172 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.45 | 1 | 0.2 | false | 0.15 | 0.15 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
907dd22cbb318a166d2d7065b49daeb89f87adb4 | 12,781 | py | Python | examples/examples-pcvs/src/main/resources/examples/scripts/pcvs/vpnsla/LinkMonitor.py | onap/policy-apex-pdp | 7562be554fefcbb1a5c8d517c5fb4f3083777c68 | [
"Apache-2.0"
] | 5 | 2019-04-04T13:47:55.000Z | 2020-07-08T15:18:08.000Z | examples/examples-pcvs/src/main/resources/examples/scripts/pcvs/vpnsla/LinkMonitor.py | onap/policy-apex-pdp | 7562be554fefcbb1a5c8d517c5fb4f3083777c68 | [
"Apache-2.0"
] | null | null | null | examples/examples-pcvs/src/main/resources/examples/scripts/pcvs/vpnsla/LinkMonitor.py | onap/policy-apex-pdp | 7562be554fefcbb1a5c8d517c5fb4f3083777c68 | [
"Apache-2.0"
] | 1 | 2020-04-24T07:28:27.000Z | 2020-04-24T07:28:27.000Z | # ============LICENSE_START=======================================================
# Copyright (C) 2016-2018 Ericsson. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file ex... | 59.446512 | 322 | 0.638213 | 1,595 | 12,781 | 5.093417 | 0.163636 | 0.041359 | 0.055145 | 0.075825 | 0.7484 | 0.731413 | 0.70938 | 0.699532 | 0.679591 | 0.662728 | 0 | 0.026048 | 0.131915 | 12,781 | 214 | 323 | 59.724299 | 0.706174 | 0.096863 | 0 | 0.321429 | 0 | 0.166667 | 0.591576 | 0.336518 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059524 | false | 0 | 0.02381 | 0 | 0.142857 | 0.053571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
908414e35159ab629ee4acdc99b8e88efb86c0ee | 4,030 | py | Python | T-RNN/Dataset/Datasets.py | ericzy89/DEEPEYE | 902c6f1158920b9c4e693a4047e85bc9dc7b028f | [
"MIT"
] | null | null | null | T-RNN/Dataset/Datasets.py | ericzy89/DEEPEYE | 902c6f1158920b9c4e693a4047e85bc9dc7b028f | [
"MIT"
] | null | null | null | T-RNN/Dataset/Datasets.py | ericzy89/DEEPEYE | 902c6f1158920b9c4e693a4047e85bc9dc7b028f | [
"MIT"
] | null | null | null |
import numpy as np
import urllib
import gzip
def get_dexter_data(filename, mode='online'):
"""
A function that reads in the original dexter data in sparse form of feature:value
and transform them into matrix form.
# Arguments:
filename: the url to either the dexter_train.data or dexter_valid.data... | 34.152542 | 103 | 0.609677 | 572 | 4,030 | 4.106643 | 0.187063 | 0.07152 | 0.042146 | 0.051086 | 0.785015 | 0.771392 | 0.765432 | 0.724138 | 0.691358 | 0.588335 | 0 | 0.013473 | 0.263275 | 4,030 | 117 | 104 | 34.444444 | 0.777703 | 0.179156 | 0 | 0.45 | 0 | 0 | 0.095105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0375 | 0 | 0.1625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
90ae6c8a98f87f71a7d49814f01e9f69bd0d1a4b | 306 | py | Python | comp0037_explorer/src/comp0037_explorer/frontier.py | adamnpeace/robotic-systems-cw | d5791e248f25a0c48e6d21644f35b94b3329bc03 | [
"BSD-3-Clause"
] | null | null | null | comp0037_explorer/src/comp0037_explorer/frontier.py | adamnpeace/robotic-systems-cw | d5791e248f25a0c48e6d21644f35b94b3329bc03 | [
"BSD-3-Clause"
] | null | null | null | comp0037_explorer/src/comp0037_explorer/frontier.py | adamnpeace/robotic-systems-cw | d5791e248f25a0c48e6d21644f35b94b3329bc03 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# This class stores information about each frontier
class Frontier(object):
def __init__(self):
self.nodes = []
self.visited = 0
def width(self):
return len(self.nodes)
def center(self):
return self.nodes[len(self.nodes)/2] | 18 | 51 | 0.584967 | 38 | 306 | 4.605263 | 0.578947 | 0.205714 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013825 | 0.29085 | 306 | 17 | 52 | 18 | 0.792627 | 0.232026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 0.75 | 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 | 1 | 0 | 0 | 0 | 3 |
90b72c75a643bcd5c43172b6b8d5f26fb2b3d2b2 | 824 | py | Python | archived_lectures/Fall_2019/common_python/common_python/util/persister.py | ModelEngineering/topics-course | cd0d73e4056663d170465669ecd699e8e74e35a0 | [
"MIT"
] | 2 | 2018-10-24T21:31:30.000Z | 2019-10-23T20:29:22.000Z | archived_lectures/Fall_2019/common_python/common_python/util/persister.py | ModelEngineering/topics-course | cd0d73e4056663d170465669ecd699e8e74e35a0 | [
"MIT"
] | 1 | 2019-11-20T21:46:26.000Z | 2019-11-20T22:09:00.000Z | archived_lectures/Fall_2019/common_python/common_python/util/persister.py | ModelEngineering/topics-course | cd0d73e4056663d170465669ecd699e8e74e35a0 | [
"MIT"
] | 9 | 2018-10-31T20:48:42.000Z | 2019-11-20T21:47:43.000Z | '''Persists an object as a Pickle file.'''
import pickle
import os
class Persister(object):
"""
A light wrapper around pickle to persist an object.
"""
def __init__(self, path):
"""
:param str path: path for the pickle file persistence.
"""
self._path = path
def __repr__(self):
return... | 19.619048 | 61 | 0.622573 | 113 | 824 | 4.389381 | 0.424779 | 0.129032 | 0.044355 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252427 | 824 | 41 | 62 | 20.097561 | 0.805195 | 0.299757 | 0 | 0 | 0 | 0 | 0.039139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
90caf19769415adf02d0cc480a26883ebcf9d240 | 957 | py | Python | netbox_bgp/migrations/0015_netbox_bgp.py | liquid-metal/netbox-bgp | cdca172527370bc05603962384618feebfd09b8e | [
"Apache-2.0"
] | 79 | 2021-04-07T14:14:54.000Z | 2022-03-22T10:42:15.000Z | netbox_bgp/migrations/0015_netbox_bgp.py | liquid-metal/netbox-bgp | cdca172527370bc05603962384618feebfd09b8e | [
"Apache-2.0"
] | 65 | 2021-04-14T09:29:00.000Z | 2022-03-05T23:18:58.000Z | netbox_bgp/migrations/0015_netbox_bgp.py | liquid-metal/netbox-bgp | cdca172527370bc05603962384618feebfd09b8e | [
"Apache-2.0"
] | 17 | 2021-04-14T09:29:23.000Z | 2022-03-16T18:58:28.000Z | # Generated by Django 3.2 on 2021-05-05 06:56
import django.core.serializers.json
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('netbox_bgp', '0014_netbox_bgp'),
]
operations = [
migrations.AddField(
model_name='asn',
... | 31.9 | 117 | 0.645768 | 99 | 957 | 6.121212 | 0.414141 | 0.066007 | 0.138614 | 0.165017 | 0.623762 | 0.623762 | 0.623762 | 0.623762 | 0.623762 | 0.623762 | 0 | 0.024862 | 0.243469 | 957 | 29 | 118 | 33 | 0.812155 | 0.044932 | 0 | 0.521739 | 1 | 0 | 0.111842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
90cee06b4ed9710f36287b95bd442da6fe8e32c6 | 336 | py | Python | tuple.py | whyfzhou/intropython | bbdc104906a5f289b4f121a676b0475e832c67f5 | [
"MIT"
] | null | null | null | tuple.py | whyfzhou/intropython | bbdc104906a5f289b4f121a676b0475e832c67f5 | [
"MIT"
] | null | null | null | tuple.py | whyfzhou/intropython | bbdc104906a5f289b4f121a676b0475e832c67f5 | [
"MIT"
] | null | null | null | # ---------------------------------------------------------------------
# 元组
tu = ('a', 1, 'b', 'Hello')
# ---------------------------------------------------------------------
# 拆包
c1, x, c2, s = tu
print(tu)
print(c1, x, c2, s)
# ---------------------------------------------------------------------
# 不可变的数据结构
tu[0]... | 25.846154 | 71 | 0.178571 | 24 | 336 | 2.5 | 0.666667 | 0.1 | 0.166667 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023333 | 0.107143 | 336 | 13 | 72 | 25.846154 | 0.176667 | 0.693452 | 0 | 0 | 0 | 0 | 0.072917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2904fb5fbc9f1917b3fff2d144d651c76199c0a6 | 2,558 | py | Python | python3.4Smartforest/lib/python3.4/site-packages/django/utils/synch.py | letouriste001/SmartForest_2.0 | 109b78bf1e8c8404800f377ab969395ccbb617be | [
"MIT"
] | null | null | null | python3.4Smartforest/lib/python3.4/site-packages/django/utils/synch.py | letouriste001/SmartForest_2.0 | 109b78bf1e8c8404800f377ab969395ccbb617be | [
"MIT"
] | null | null | null | python3.4Smartforest/lib/python3.4/site-packages/django/utils/synch.py | letouriste001/SmartForest_2.0 | 109b78bf1e8c8404800f377ab969395ccbb617be | [
"MIT"
] | null | null | null | """
Synchronization primitives:
- reader-writer lock (preference to writers)
(Contributed to Django by eugene@lazutkin.com)
"""
import contextlib
import threading
class RWLock(object):
"""
Classic implementation of reader-writer lock with preference to writers.
Readers can access a resource simult... | 2,558 | 2,558 | 0.561376 | 278 | 2,558 | 4.982014 | 0.223022 | 0.093863 | 0.103971 | 0.068592 | 0.444043 | 0.347292 | 0.332852 | 0.212274 | 0.202166 | 0.202166 | 0 | 0.01698 | 0.355356 | 2,558 | 1 | 2,558 | 2,558 | 0.822923 | 0.150117 | 0 | 0.419355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0 | 0.032258 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2913a3147447c09257ef1c3874a3a5e2cb3afe80 | 140 | py | Python | tuya_iot/project_type.py | GITOLEO/tuya-iot-python-sdk | 3ac0ca9ad8c195f0052690f3498981e3f32a3eba | [
"MIT"
] | null | null | null | tuya_iot/project_type.py | GITOLEO/tuya-iot-python-sdk | 3ac0ca9ad8c195f0052690f3498981e3f32a3eba | [
"MIT"
] | null | null | null | tuya_iot/project_type.py | GITOLEO/tuya-iot-python-sdk | 3ac0ca9ad8c195f0052690f3498981e3f32a3eba | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from enum import Enum
class ProjectType(Enum):
SMART_HOME = 0
INDUSTY_SOLUTIONS = 1
| 15.555556 | 25 | 0.657143 | 20 | 140 | 4.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.207143 | 140 | 8 | 26 | 17.5 | 0.783784 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
2921472185f267f8ab603e7769ad170498f4a5f8 | 1,523 | py | Python | ope-backend/src/core/use_cases/__init__.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | null | null | null | ope-backend/src/core/use_cases/__init__.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | null | null | null | ope-backend/src/core/use_cases/__init__.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | null | null | null | # UserUseCases
from .user_use_cases.create_user_use_case import CreateUser
from .user_use_cases.list_users_use_case import ListUsers
from .user_use_cases.get_user_by_id_use_case import GetUserById
from .user_use_cases.update_user_use_case import UpdateUser
from .user_use_cases.delete_user_use_case import DeleteUser
fro... | 52.517241 | 90 | 0.908076 | 235 | 1,523 | 5.348936 | 0.187234 | 0.133652 | 0.217184 | 0.076372 | 0.211615 | 0.081146 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06172 | 1,523 | 29 | 91 | 52.517241 | 0.879636 | 0.035456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
29268e7730827b031cf410cad15ed4d213d2d426 | 1,363 | py | Python | main.py | toza-mimoza/Python-Youtube-Downloader | 2359d06c82545e4225029b8ace1ca73b13347b97 | [
"MIT"
] | null | null | null | main.py | toza-mimoza/Python-Youtube-Downloader | 2359d06c82545e4225029b8ace1ca73b13347b97 | [
"MIT"
] | null | null | null | main.py | toza-mimoza/Python-Youtube-Downloader | 2359d06c82545e4225029b8ace1ca73b13347b97 | [
"MIT"
] | null | null | null | import downloader
while True:
prompt_type=input("Video or playlist? (video/playlist) ")
if prompt_type=='video':
prompt_video_path=input("Enter path to store the video/audio: ")
prompt_video_url=input("Enter URL or tag: ")
while True:
... | 34.948718 | 101 | 0.566398 | 146 | 1,363 | 4.993151 | 0.184932 | 0.098765 | 0.123457 | 0.049383 | 0.727023 | 0.727023 | 0.727023 | 0.727023 | 0.636488 | 0.436214 | 0 | 0 | 0.354365 | 1,363 | 39 | 102 | 34.948718 | 0.828409 | 0 | 0 | 0.555556 | 0 | 0 | 0.169683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
2928914d240dc86fdbfdedb2c6eb63eed7188c05 | 165 | py | Python | visualization/panda/rpc/proto_gen.py | takuya-ki/wrs | f6e1009b94332504042fbde9b39323410394ecde | [
"MIT"
] | 23 | 2021-04-02T09:02:04.000Z | 2022-03-22T05:31:03.000Z | visualization/panda/rpc/proto_gen.py | takuya-ki/wrs | f6e1009b94332504042fbde9b39323410394ecde | [
"MIT"
] | 35 | 2021-04-12T09:41:05.000Z | 2022-03-26T13:32:46.000Z | visualization/panda/rpc/proto_gen.py | takuya-ki/wrs | f6e1009b94332504042fbde9b39323410394ecde | [
"MIT"
] | 16 | 2021-03-30T11:55:45.000Z | 2022-03-30T07:10:59.000Z | from grpc_tools import protoc
protoc.main(
(
'',
'-I.',
'--python_out=.',
'--grpc_python_out=.',
'./rviz.proto',
)
) | 15 | 30 | 0.430303 | 15 | 165 | 4.466667 | 0.733333 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.369697 | 165 | 11 | 31 | 15 | 0.644231 | 0 | 0 | 0 | 0 | 0 | 0.289157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
293f308f84ab4f95f05dcdba2af92e075632d5e5 | 1,207 | py | Python | advancing_hero/settings.py | EnzoVargasM/advancing-hero | ebf79ebe22b839c0f495e772a0058c51e2a28dc9 | [
"MIT"
] | null | null | null | advancing_hero/settings.py | EnzoVargasM/advancing-hero | ebf79ebe22b839c0f495e772a0058c51e2a28dc9 | [
"MIT"
] | null | null | null | advancing_hero/settings.py | EnzoVargasM/advancing-hero | ebf79ebe22b839c0f495e772a0058c51e2a28dc9 | [
"MIT"
] | null | null | null | TITLE = 'Advancing Hero'
SCREEN_ROWS = 9
SCREEN_COLUMNS = 16
SIZE = screen_width, screen_height = 64 * 16, 64 * 9
FPS = 60
tile_size = 64
current_file = 0
current_level = 0
## Speeds
WORLD_SPEED = 1
DEFAULT_PLAYER_SPEED = 5
## Block names
ASPHALT = 'black_rock'
BRICK = 'gray_rock'
GRASS = 'grass'
DIRT = 'sand'
WATE... | 21.945455 | 52 | 0.548467 | 148 | 1,207 | 4.310811 | 0.378378 | 0.224138 | 0.282132 | 0.172414 | 0.225705 | 0.225705 | 0.175549 | 0.175549 | 0.175549 | 0.175549 | 0 | 0.075995 | 0.313173 | 1,207 | 54 | 53 | 22.351852 | 0.693607 | 0.069594 | 0 | 0.261905 | 0 | 0 | 0.338753 | 0.260163 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
2941fdf7dc6ae010b1b14e7ca082059d37b142e2 | 441 | py | Python | app/models.py | amani-joseph/amani_moringa_flask_starter_pack | 05f61a8b7d0b5d6314d09a96ced2334ac06c79aa | [
"MIT"
] | null | null | null | app/models.py | amani-joseph/amani_moringa_flask_starter_pack | 05f61a8b7d0b5d6314d09a96ced2334ac06c79aa | [
"MIT"
] | null | null | null | app/models.py | amani-joseph/amani_moringa_flask_starter_pack | 05f61a8b7d0b5d6314d09a96ced2334ac06c79aa | [
"MIT"
] | 1 | 2022-03-11T16:58:57.000Z | 2022-03-11T16:58:57.000Z | '''Basic User model without a one to many relationship'''
# from . import db
# class User(db.Model):
# __tablename__ = 'users'
# id = db.Column(db.Integer, primary_key = True)
# username = db.Column(db.String(255),unique = True,nullable = False)
# email = db.Column(db.String(255),unique = True,nullab... | 36.75 | 73 | 0.655329 | 61 | 441 | 4.639344 | 0.508197 | 0.141343 | 0.176678 | 0.226148 | 0.431095 | 0.29682 | 0.29682 | 0.29682 | 0.29682 | 0 | 0 | 0.033708 | 0.192744 | 441 | 12 | 74 | 36.75 | 0.761236 | 0.936508 | 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 | 1 | 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 | 3 |
29566aa34dc5d5f6fc84643992ced96aefff9d53 | 5,068 | py | Python | testing_suite/gen_tests.py | ConradSelig/CHT | 4d22c2080fa96255bd5ab21ff3d88c133804beb4 | [
"Apache-2.0"
] | null | null | null | testing_suite/gen_tests.py | ConradSelig/CHT | 4d22c2080fa96255bd5ab21ff3d88c133804beb4 | [
"Apache-2.0"
] | null | null | null | testing_suite/gen_tests.py | ConradSelig/CHT | 4d22c2080fa96255bd5ab21ff3d88c133804beb4 | [
"Apache-2.0"
] | null | null | null | from CHT_mrk1 import output, hashing, classes
from CHT_mrk1.CHT import CHT
import CHT
def initialize_test():
print("=" * 100)
print("\nInitialize Test")
test_CHT = CHT.CHT()
if type(test_CHT) is CHT.CHT:
print("Passed Test")
else:
print("FAILED TEST")
return
def add_row_tes... | 39.286822 | 1,251 | 0.303867 | 385 | 5,068 | 3.838961 | 0.174026 | 0.161028 | 0.087957 | 0.080514 | 0.667118 | 0.582544 | 0.562246 | 0.5318 | 0.473613 | 0.390392 | 0 | 0.021961 | 0.245264 | 5,068 | 128 | 1,252 | 39.59375 | 0.364444 | 0.011642 | 0 | 0.6 | 0 | 0 | 0.119656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082353 | false | 0.082353 | 0.035294 | 0 | 0.2 | 0.341176 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
295d92639482899797e92f26a46e1124eeaeac0b | 702 | py | Python | bandits_to_rank/opponents/oracle.py | gaudel/ranking_bandits | 1fe4a38b17a3bb7ccab3ae0f4d0afb70fe54dbc9 | [
"MIT"
] | 3 | 2021-07-22T14:46:01.000Z | 2021-07-23T08:55:01.000Z | bandits_to_rank/opponents/oracle.py | gaudel/ranking_bandits | 1fe4a38b17a3bb7ccab3ae0f4d0afb70fe54dbc9 | [
"MIT"
] | null | null | null | bandits_to_rank/opponents/oracle.py | gaudel/ranking_bandits | 1fe4a38b17a3bb7ccab3ae0f4d0afb70fe54dbc9 | [
"MIT"
] | null | null | null |
#### Bandits
## Packages
import numpy as np
import random as rd
from random import sample
from random import random
from numpy.random import beta
from random import uniform
from copy import deepcopy
from mpl_toolkits.mplot3d import Axes3D
import scipy.stats as stats
from functools import partial
## Algo
... | 14.93617 | 46 | 0.660969 | 96 | 702 | 4.697917 | 0.46875 | 0.077605 | 0.10643 | 0.066519 | 0.093126 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005894 | 0.274929 | 702 | 47 | 47 | 14.93617 | 0.880157 | 0.076923 | 0 | 0.090909 | 0 | 0 | 0.0096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0.090909 | 0.454545 | 0.090909 | 0.818182 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
29746dd1d851eced7f81eec8c1c7e9400aaa5fbc | 10,792 | py | Python | swagger_client/models/get_characters_character_id_bookmarks_200_ok.py | rseichter/bootini-star | a80258f01a05e4df38748b8cb47dfadabd42c20d | [
"MIT"
] | null | null | null | swagger_client/models/get_characters_character_id_bookmarks_200_ok.py | rseichter/bootini-star | a80258f01a05e4df38748b8cb47dfadabd42c20d | [
"MIT"
] | null | null | null | swagger_client/models/get_characters_character_id_bookmarks_200_ok.py | rseichter/bootini-star | a80258f01a05e4df38748b8cb47dfadabd42c20d | [
"MIT"
] | null | null | null | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online # noqa: E501
OpenAPI spec version: 0.8.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.models.get_characters_character_id_bookmarks... | 31.372093 | 173 | 0.631116 | 1,118 | 10,792 | 5.940072 | 0.118068 | 0.060232 | 0.238518 | 0.195151 | 0.539527 | 0.42855 | 0.37675 | 0.240024 | 0.121217 | 0.054811 | 0 | 0.037537 | 0.286601 | 10,792 | 343 | 174 | 31.463557 | 0.825042 | 0.408543 | 0 | 0.07483 | 1 | 0 | 0.11815 | 0.015047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.034014 | 0 | 0.319728 | 0.013605 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
2974deb3c467c9aa8cd81d1d75e4dca5f6e2a22e | 1,453 | py | Python | cvxpy/reductions/__init__.py | jasondark/cvxpy | 56aaa01b0e9d98ae5a91a923708129a7b37a6f18 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2015-06-03T01:33:46.000Z | 2021-11-15T01:48:49.000Z | cvxpy/reductions/__init__.py | h-vetinari/cvxpy | 86307f271819bb78fcdf64a9c3a424773e8269fa | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-03-09T13:13:44.000Z | 2022-03-09T13:13:44.000Z | cvxpy/reductions/__init__.py | h-vetinari/cvxpy | 86307f271819bb78fcdf64a9c3a424773e8269fa | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-10-22T01:35:58.000Z | 2022-01-19T10:48:51.000Z | """
Copyright 2017 Robin Verschueren
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... | 44.030303 | 77 | 0.847901 | 200 | 1,453 | 6.1 | 0.495 | 0.110656 | 0.233607 | 0.02623 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020769 | 0.105299 | 1,453 | 32 | 78 | 45.40625 | 0.917692 | 0.383345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4622d1b9ae89443734b67faae101f13b9f96494e | 187 | py | Python | setup.py | jktjkt/nox | e0a287b9e298c4f4bb25757129a84ad2426f6ff9 | [
"MIT"
] | 244 | 2015-01-04T07:33:30.000Z | 2022-02-14T06:56:52.000Z | setup.py | jktjkt/nox | e0a287b9e298c4f4bb25757129a84ad2426f6ff9 | [
"MIT"
] | 80 | 2015-01-09T18:28:48.000Z | 2022-02-21T12:12:33.000Z | setup.py | jktjkt/nox | e0a287b9e298c4f4bb25757129a84ad2426f6ff9 | [
"MIT"
] | 37 | 2015-03-05T21:49:10.000Z | 2022-03-13T17:33:14.000Z | from setuptools import setup
setup(
setup_requires=['pbr'],
pbr=True,
package_data={'': ['enumerate_tests.nix']},
include_package_data=True,
test_suite="nox.tests"
)
| 18.7 | 47 | 0.673797 | 23 | 187 | 5.217391 | 0.695652 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 187 | 9 | 48 | 20.777778 | 0.779221 | 0 | 0 | 0 | 0 | 0 | 0.165775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4657804453321e1477a21fb539dbb148d4ea962e | 6,456 | py | Python | contourlet/operations.py | duytq99/contourlet-transform | 58f5702ec8db2fcee886140c2f7d05b3058c983c | [
"MIT"
] | 3 | 2021-08-16T12:20:13.000Z | 2021-12-30T06:17:06.000Z | contourlet/operations.py | duytq99/contourlet-transform | 58f5702ec8db2fcee886140c2f7d05b3058c983c | [
"MIT"
] | 1 | 2021-08-24T08:48:26.000Z | 2021-08-24T09:03:41.000Z | contourlet/operations.py | duytq99/contourlet-transform | 58f5702ec8db2fcee886140c2f7d05b3058c983c | [
"MIT"
] | 1 | 2021-12-30T09:22:38.000Z | 2021-12-30T09:22:38.000Z | import numpy as np
import torch
from contourlet import sampling
from torch.nn.functional import conv2d, pad, conv1d
def lp_dec(img, h, g):
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
height, w = img.shape[2], img.shape[3]
padding_per = torch.nn.ReflectionPad2d((4,4,4,4))
lo... | 41.922078 | 125 | 0.625774 | 1,070 | 6,456 | 3.64486 | 0.091589 | 0.069231 | 0.086154 | 0.092308 | 0.821026 | 0.74359 | 0.703077 | 0.664872 | 0.587436 | 0.511795 | 0 | 0.130625 | 0.18417 | 6,456 | 154 | 126 | 41.922078 | 0.609835 | 0.032218 | 0 | 0.575 | 0 | 0 | 0.015217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.008333 | 0.033333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
465dbc39e3da8799bb3d127d64fa24c0075b32d9 | 692 | py | Python | game/message/unused/S_ACTION_STAGE.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | 1 | 2016-09-30T14:54:55.000Z | 2016-09-30T14:54:55.000Z | game/message/unused/S_ACTION_STAGE.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | null | null | null | game/message/unused/S_ACTION_STAGE.py | jeff-alves/Tera | 2d45c1c38defaef71fbfc3e2081d9b5468938e40 | [
"MIT"
] | null | null | null | from util.tipo import tipo
class S_ACTION_STAGE(object):
def __init__(self, tracker, time, direction, opcode, data):
print(str(type(self)).split('.')[3]+'('+str(len(data))+'): '+ str(data.get_array_hex(1))[1:-1])
effects_count = data.read(tipo.count)
effects_offset = data.read(tipo.offset)
... | 40.705882 | 103 | 0.615607 | 96 | 692 | 4.333333 | 0.46875 | 0.211538 | 0.317308 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048417 | 0.223988 | 692 | 16 | 104 | 43.25 | 0.726257 | 0.015896 | 0 | 0 | 0 | 0 | 0.007364 | 0 | 0 | 0 | 0.010309 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 1 | 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 | 3 |
4664e18d7f7469765d79fcf5b4c3ce442c19c5eb | 22,395 | py | Python | muranodashboard/tests/unit/environments/test_api.py | NeCTAR-RC/murano-dashboard | ad87d04e30d11ec04ad5e9caef900b280ab25945 | [
"Apache-2.0"
] | null | null | null | muranodashboard/tests/unit/environments/test_api.py | NeCTAR-RC/murano-dashboard | ad87d04e30d11ec04ad5e9caef900b280ab25945 | [
"Apache-2.0"
] | null | null | null | muranodashboard/tests/unit/environments/test_api.py | NeCTAR-RC/murano-dashboard | ad87d04e30d11ec04ad5e9caef900b280ab25945 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2016 AT&T Corp
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 45.334008 | 79 | 0.66372 | 2,922 | 22,395 | 4.740246 | 0.079398 | 0.041585 | 0.069309 | 0.064977 | 0.790051 | 0.750415 | 0.721681 | 0.669121 | 0.64378 | 0.616345 | 0 | 0.006398 | 0.225363 | 22,395 | 493 | 80 | 45.425963 | 0.792022 | 0.02438 | 0 | 0.554455 | 0 | 0 | 0.114632 | 0.006503 | 0 | 0 | 0 | 0 | 0.212871 | 1 | 0.079208 | false | 0 | 0.017327 | 0 | 0.101485 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
46667675ee4b00ff2f4214e13d54f3e163b88747 | 157 | wsgi | Python | dim/etc/dim.wsgi | D3luxee/dim | 14226db6006a14bddb6f6027f33f26a241bcb348 | [
"MIT"
] | 37 | 2020-02-19T14:25:40.000Z | 2022-02-19T18:35:00.000Z | dim/etc/dim.wsgi | D3luxee/dim | 14226db6006a14bddb6f6027f33f26a241bcb348 | [
"MIT"
] | 127 | 2020-03-09T12:29:24.000Z | 2022-03-30T10:56:19.000Z | dim/etc/dim.wsgi | D3luxee/dim | 14226db6006a14bddb6f6027f33f26a241bcb348 | [
"MIT"
] | 26 | 2020-02-19T14:25:46.000Z | 2022-01-26T18:49:45.000Z | activate_this = '/opt/dim/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
from dim import create_app
application = create_app()
| 26.166667 | 53 | 0.808917 | 23 | 157 | 5.086957 | 0.608696 | 0.410256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082803 | 157 | 5 | 54 | 31.4 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.184713 | 0.184713 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 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 | 3 |
4681c1cfef59608276b8e608ed32ebcf151c6803 | 3,605 | py | Python | python/ojai/types/ODate.py | ojai/ojai-core | 058b147e735fe95c83b339776daf79d437adae80 | [
"Apache-2.0"
] | 51 | 2015-09-30T18:54:57.000Z | 2020-08-13T09:35:15.000Z | python/ojai/types/ODate.py | ojai/ojai-core | 058b147e735fe95c83b339776daf79d437adae80 | [
"Apache-2.0"
] | 21 | 2015-10-01T14:22:19.000Z | 2022-02-04T02:17:26.000Z | python/ojai/types/ODate.py | ojai/ojai-core | 058b147e735fe95c83b339776daf79d437adae80 | [
"Apache-2.0"
] | 25 | 2015-09-30T14:13:16.000Z | 2021-12-10T21:29:32.000Z | from builtins import object
import datetime
import dateutil.parser
from ojai.error.UnsupportedConstructorException import UnsupportedConstructorException
class ODate(object):
__EPOCH_DATE = datetime.datetime(1970, 1, 1)
__START_OF_DAY = datetime.time(hour=0, minute=0, second=0)
def __init__(self, year=... | 33.691589 | 111 | 0.658807 | 476 | 3,605 | 4.581933 | 0.161765 | 0.094911 | 0.147639 | 0.099037 | 0.444292 | 0.347547 | 0.19945 | 0.183861 | 0.149931 | 0.093535 | 0 | 0.003744 | 0.259085 | 3,605 | 106 | 112 | 34.009434 | 0.812804 | 0.0638 | 0 | 0.265823 | 0 | 0 | 0.022262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227848 | false | 0 | 0.050633 | 0.177215 | 0.582278 | 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 | 1 | 0 | 0 | 3 |
468ff0932017c155f807628b7ff7f70bf057aa1a | 619 | py | Python | build/whycon/cmake/whycon-genmsg-context.py | ankit131199/Rebellious-Cowards | 56ec395147f2fc59a26669a74a04fe02227bc7b7 | [
"BSD-2-Clause"
] | null | null | null | build/whycon/cmake/whycon-genmsg-context.py | ankit131199/Rebellious-Cowards | 56ec395147f2fc59a26669a74a04fe02227bc7b7 | [
"BSD-2-Clause"
] | null | null | null | build/whycon/cmake/whycon-genmsg-context.py | ankit131199/Rebellious-Cowards | 56ec395147f2fc59a26669a74a04fe02227bc7b7 | [
"BSD-2-Clause"
] | 3 | 2020-10-01T15:22:00.000Z | 2020-10-01T17:06:55.000Z | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/sasuke/catkin_ws/src/whycon/msg/Projection.msg"
services_str = ""
pkg_name = "whycon"
dependencies_str = "geometry_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "whycon;/home/sasuke/catkin_ws/src/whycon/msg;geomet... | 51.583333 | 188 | 0.780291 | 92 | 619 | 5 | 0.543478 | 0.078261 | 0.084783 | 0.117391 | 0.226087 | 0.130435 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0.054927 | 619 | 11 | 189 | 56.272727 | 0.786325 | 0.07916 | 0 | 0 | 1 | 0.111111 | 0.642606 | 0.575704 | 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 | 1 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
469505613c5c7a1d3a722c2a966e8c37da1e76dd | 1,638 | py | Python | bac/simulate/gromacs/constraint_controller.py | UCL-CCS/BAC2 | 57f50062f60a806d23be7fe6a44b4a1f4f28c109 | [
"Apache-2.0"
] | 3 | 2018-09-27T16:08:25.000Z | 2021-03-19T04:27:04.000Z | bac/simulate/gromacs/constraint_controller.py | UCL-CCS/BAC2 | 57f50062f60a806d23be7fe6a44b4a1f4f28c109 | [
"Apache-2.0"
] | 15 | 2018-11-27T09:19:31.000Z | 2021-02-13T09:19:37.000Z | bac/simulate/gromacs/constraint_controller.py | UCL-CCS/BAC2 | 57f50062f60a806d23be7fe6a44b4a1f4f28c109 | [
"Apache-2.0"
] | 1 | 2018-10-31T14:56:31.000Z | 2018-10-31T14:56:31.000Z | from enum import Enum
from supproperty import supproperty, decimal, boolean, positive_integer
from bac.simulate.coding import Encodable
class ConstraintType(Enum):
none = 'none'
h_bonds = 'h-bonds'
all_bonds = 'all-bonds'
h_angles = 'h-angles'
all_angles = 'all-angles'
@classmethod
def _... | 25.2 | 85 | 0.68254 | 192 | 1,638 | 5.651042 | 0.291667 | 0.066359 | 0.03871 | 0.052535 | 0.149309 | 0.0553 | 0 | 0 | 0 | 0 | 0 | 0.00695 | 0.209402 | 1,638 | 64 | 86 | 25.59375 | 0.830888 | 0 | 0 | 0.045455 | 0 | 0 | 0.086691 | 0.013431 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0.181818 | 0.068182 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
469ddef97c8b7ee3224cbf5268166ccfdb7f58b1 | 1,812 | py | Python | lib/python2.7/site-packages/setools/policyrep/bounds.py | TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5 | 5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2 | [
"PSF-2.0"
] | null | null | null | lib/python2.7/site-packages/setools/policyrep/bounds.py | TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5 | 5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2 | [
"PSF-2.0"
] | null | null | null | lib/python2.7/site-packages/setools/policyrep/bounds.py | TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5 | 5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2 | [
"PSF-2.0"
] | 1 | 2020-05-14T05:25:00.000Z | 2020-05-14T05:25:00.000Z | # Copyright 2016, Tresys Technology, LLC
#
# This file is part of SETools.
#
# SETools is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 2.1 of
# the License, or (at your option) any later ... | 29.704918 | 93 | 0.710817 | 255 | 1,812 | 4.968627 | 0.458824 | 0.031571 | 0.028414 | 0.044988 | 0.149961 | 0.149961 | 0.124704 | 0.071034 | 0.071034 | 0 | 0 | 0.008197 | 0.192053 | 1,812 | 60 | 94 | 30.2 | 0.85724 | 0.434327 | 0 | 0.08 | 0 | 0 | 0.153226 | 0.023185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.16 | 0.16 | 0.72 | 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 | 1 | 0 | 0 | 3 |
469e3e44320ecc012976b670cf94a4989473d3b3 | 236 | py | Python | my_code.py | Athenian-CT-Fall2020/day-1-python-practice-CoolCoaster | 6fb4be394ba5202944272af98083c7c83d612d17 | [
"Apache-2.0"
] | null | null | null | my_code.py | Athenian-CT-Fall2020/day-1-python-practice-CoolCoaster | 6fb4be394ba5202944272af98083c7c83d612d17 | [
"Apache-2.0"
] | null | null | null | my_code.py | Athenian-CT-Fall2020/day-1-python-practice-CoolCoaster | 6fb4be394ba5202944272af98083c7c83d612d17 | [
"Apache-2.0"
] | null | null | null | # This is an example of a comment that Python ignores. Use these to make notes as you write your code. You will also fill out the top comment with any help or resources you use.
# Collaborators: none
name = "zach"
print(f'hello {name}') | 59 | 177 | 0.754237 | 43 | 236 | 4.139535 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182203 | 236 | 4 | 178 | 59 | 0.92228 | 0.826271 | 0 | 0 | 0 | 0 | 0.410256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
469efd7d46457c701bd3f41ff1186f1403538bfa | 1,744 | py | Python | torchvision/prototype/datasets/utils/_resource.py | Oxygen-Chen/vision | b37c8a3ca4c9c626cdac763c6be697231665b0f8 | [
"BSD-3-Clause"
] | 1 | 2021-10-23T01:14:27.000Z | 2021-10-23T01:14:27.000Z | torchvision/prototype/datasets/utils/_resource.py | Oxygen-Chen/vision | b37c8a3ca4c9c626cdac763c6be697231665b0f8 | [
"BSD-3-Clause"
] | null | null | null | torchvision/prototype/datasets/utils/_resource.py | Oxygen-Chen/vision | b37c8a3ca4c9c626cdac763c6be697231665b0f8 | [
"BSD-3-Clause"
] | null | null | null | import os.path
import pathlib
from typing import Optional, Union
from urllib.parse import urlparse
from torch.utils.data import IterDataPipe
from torch.utils.data.datapipes.iter import FileLoader, IterableWrapper
# FIXME
def compute_sha256(path: pathlib.Path) -> str:
return ""
class LocalResource:
def __in... | 34.196078 | 96 | 0.680046 | 229 | 1,744 | 5 | 0.30131 | 0.097817 | 0.038428 | 0.055895 | 0.183406 | 0.183406 | 0.183406 | 0.153712 | 0.153712 | 0.083843 | 0 | 0.03 | 0.197248 | 1,744 | 50 | 97 | 34.88 | 0.787857 | 0.080275 | 0 | 0.0625 | 0 | 0 | 0.025657 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.21875 | false | 0 | 0.1875 | 0.0625 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d3dd0e7277bd23e7eab59858855fce32630b63d8 | 216 | py | Python | scripts/readme_example_human_microbiome.py | lyle-nel/pysparkling | c3aa6690c314517b82d954193e485c7d3aed3711 | [
"Apache-2.0"
] | null | null | null | scripts/readme_example_human_microbiome.py | lyle-nel/pysparkling | c3aa6690c314517b82d954193e485c7d3aed3711 | [
"Apache-2.0"
] | null | null | null | scripts/readme_example_human_microbiome.py | lyle-nel/pysparkling | c3aa6690c314517b82d954193e485c7d3aed3711 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from pysparkling import Context
by_subject_rdd = Context().textFile(
's3n://human-microbiome-project/DEMO/HM16STR/46333/by_subject/*'
)
print(by_subject_rdd.takeSample(1))
| 24 | 68 | 0.796296 | 29 | 216 | 5.586207 | 0.689655 | 0.166667 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045918 | 0.092593 | 216 | 8 | 69 | 27 | 0.780612 | 0 | 0 | 0 | 0 | 0 | 0.287037 | 0.287037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d3f220ef595ac34c748cc28f4fe01010e542c71b | 162 | py | Python | math/1227_airplane_seat_assignment_probality/1227_airplane_seat_assignment_probality.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 6 | 2019-09-16T01:50:44.000Z | 2020-09-17T08:52:25.000Z | math/1227_airplane_seat_assignment_probality/1227_airplane_seat_assignment_probality.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | null | null | null | math/1227_airplane_seat_assignment_probality/1227_airplane_seat_assignment_probality.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 4 | 2020-02-07T12:43:16.000Z | 2021-04-11T06:38:55.000Z | class Solution:
def nthPersonGetsNthSeat(self, n: int) -> float:
return 1 if n==1 else .5
n = 1
res = Solution().nthPersonGetsNthSeat(n)
print(res) | 18 | 52 | 0.660494 | 23 | 162 | 4.652174 | 0.652174 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031496 | 0.216049 | 162 | 9 | 53 | 18 | 0.811024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.5 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 3 |
31006267184c31940a46d462e3f688720e0bf758 | 1,568 | py | Python | tests/acceptance/steps/navigation.py | Valdis880/acceptanceTesting | 1a8de0adb45ebb46e4791aba7458c3fc412cfdb1 | [
"MIT"
] | null | null | null | tests/acceptance/steps/navigation.py | Valdis880/acceptanceTesting | 1a8de0adb45ebb46e4791aba7458c3fc412cfdb1 | [
"MIT"
] | null | null | null | tests/acceptance/steps/navigation.py | Valdis880/acceptanceTesting | 1a8de0adb45ebb46e4791aba7458c3fc412cfdb1 | [
"MIT"
] | null | null | null | from behave import *
from selenium import webdriver
from acceptanceTesting.tests.acceptance.page_model.blog_page import BlogPage
from acceptanceTesting.tests.acceptance.page_model.home_page import HomePage
from acceptanceTesting.tests.acceptance.page_model.new_post_page import NewPostPage
use_step_matcher('re')
@gi... | 34.844444 | 111 | 0.72449 | 191 | 1,568 | 5.827225 | 0.225131 | 0.151842 | 0.172507 | 0.035939 | 0.837376 | 0.832884 | 0.684636 | 0.652291 | 0.652291 | 0.607367 | 0 | 0 | 0.17602 | 1,568 | 44 | 112 | 35.636364 | 0.861455 | 0 | 0 | 0.5 | 0 | 0 | 0.260842 | 0.191327 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.15625 | false | 0 | 0.15625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 3 |
3100e4d9d0f12dd6a59f02d016b4e2deda04e4c9 | 111 | py | Python | Python/tarifa/tarifa.py | rvrheenen/OpenKattis | 7fd59fcb54e86cdf10f56c580c218c62e584f391 | [
"MIT"
] | 12 | 2016-10-03T20:43:43.000Z | 2021-06-12T17:18:42.000Z | Python/tarifa/tarifa.py | rvrheenen/OpenKattis | 7fd59fcb54e86cdf10f56c580c218c62e584f391 | [
"MIT"
] | null | null | null | Python/tarifa/tarifa.py | rvrheenen/OpenKattis | 7fd59fcb54e86cdf10f56c580c218c62e584f391 | [
"MIT"
] | 10 | 2017-11-14T19:56:37.000Z | 2021-02-02T07:39:57.000Z | mb = int(input())
months = int(input())
print((mb * months) - sum([int(input()) for _ in range(months)]) + mb)
| 27.75 | 70 | 0.603604 | 17 | 111 | 3.882353 | 0.529412 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153153 | 111 | 3 | 71 | 37 | 0.702128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 3 |
31077a0e24c2702d1a6ae3716c0c39e437225f1b | 3,532 | py | Python | src/python/pants/reporting/reporter.py | timgates42/pants | 1b10d78b9e3dbbb3f66a5e08c9ba5d369913fdbd | [
"Apache-2.0"
] | null | null | null | src/python/pants/reporting/reporter.py | timgates42/pants | 1b10d78b9e3dbbb3f66a5e08c9ba5d369913fdbd | [
"Apache-2.0"
] | null | null | null | src/python/pants/reporting/reporter.py | timgates42/pants | 1b10d78b9e3dbbb3f66a5e08c9ba5d369913fdbd | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from dataclasses import dataclass
from pants.base.workunit import WorkUnit
from pants.reporting.report import Report
from pants.util.logging import LogLevel
class ReporterDestination:
... | 34.627451 | 100 | 0.66308 | 465 | 3,532 | 4.916129 | 0.36129 | 0.027997 | 0.059493 | 0.049869 | 0.141732 | 0.141732 | 0.120735 | 0.059493 | 0.059493 | 0.059493 | 0 | 0.003072 | 0.262741 | 3,532 | 101 | 101 | 34.970297 | 0.874808 | 0.404304 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23913 | false | 0.130435 | 0.086957 | 0 | 0.608696 | 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 | 1 | 0 | 0 | 3 |
310c4e550a212bb3468904c922358177d99d32b6 | 784 | py | Python | tests/artifacts/mock_trade.py | Mirdalan/base_astro_bot | 656ebd55c0f57fc18bf95227af9e20a4c1392489 | [
"MIT"
] | 2 | 2018-11-16T11:31:53.000Z | 2019-05-19T03:07:15.000Z | tests/artifacts/mock_trade.py | Mirdalan/base_astro_bot | 656ebd55c0f57fc18bf95227af9e20a4c1392489 | [
"MIT"
] | null | null | null | tests/artifacts/mock_trade.py | Mirdalan/base_astro_bot | 656ebd55c0f57fc18bf95227af9e20a4c1392489 | [
"MIT"
] | null | null | null | import os
import json
class BaseClient:
@staticmethod
def read_json(file_name):
file_path = os.path.join(os.path.dirname(__file__), "trade_data", file_name + ".json")
with open(file_path, 'r') as f:
return json.loads(f.read())
def get_containers(self):
return self.rea... | 21.777778 | 94 | 0.668367 | 100 | 784 | 5 | 0.33 | 0.112 | 0.168 | 0.216 | 0.312 | 0.136 | 0.136 | 0.136 | 0 | 0 | 0 | 0 | 0.219388 | 784 | 35 | 95 | 22.4 | 0.816993 | 0 | 0 | 0.090909 | 0 | 0 | 0.109694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.090909 | 0.272727 | 0.863636 | 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 | 1 | 0 | 0 | 0 | 3 |
3123a8bb1ddc45e857337ee5b21e957a9f5fb6bf | 880 | py | Python | apps/slack/slack_mac_actions.py | RichardHladik/knausj_talon | dc67801a59efc577f9010a2056501f5570bea14d | [
"MIT"
] | 1 | 2020-12-30T00:18:18.000Z | 2020-12-30T00:18:18.000Z | apps/slack/slack_mac_actions.py | RichardHladik/knausj_talon | dc67801a59efc577f9010a2056501f5570bea14d | [
"MIT"
] | null | null | null | apps/slack/slack_mac_actions.py | RichardHladik/knausj_talon | dc67801a59efc577f9010a2056501f5570bea14d | [
"MIT"
] | null | null | null | from talon import Context, actions
ctx = Context()
ctx.matches = r"""
os: mac
app: slack
"""
@ctx.action_class('user')
class UserActions:
def messaging_workspace_previous(): actions.key('cmd-shift-[')
def messaging_workspace_next(): actions.key('cmd-shift-]')
def messaging_open_channel_picker(): acti... | 40 | 70 | 0.685227 | 115 | 880 | 5.017391 | 0.373913 | 0.22877 | 0.112652 | 0.062392 | 0.103986 | 0.103986 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171591 | 880 | 21 | 71 | 41.904762 | 0.791495 | 0.020455 | 0 | 0 | 0 | 0 | 0.131395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.578947 | false | 0 | 0.052632 | 0 | 0.684211 | 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 | 1 | 0 | 0 | 3 |
3125496858dec1c65438ebf89797bab090fcc5e3 | 23 | py | Python | src/py2neo/__init__.py | woot4moo/py2neo | 7abff5be6e40d0a1aea5084e422f38785270a34d | [
"Apache-2.0"
] | 2 | 2016-12-20T09:59:47.000Z | 2021-02-26T15:41:00.000Z | src/py2neo/__init__.py | woot4moo/py2neo | 7abff5be6e40d0a1aea5084e422f38785270a34d | [
"Apache-2.0"
] | null | null | null | src/py2neo/__init__.py | woot4moo/py2neo | 7abff5be6e40d0a1aea5084e422f38785270a34d | [
"Apache-2.0"
] | 1 | 2016-12-20T09:59:59.000Z | 2016-12-20T09:59:59.000Z | __package__ = "py2neo"
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.130435 | 23 | 1 | 23 | 23 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
3148939994d326287001716fcdae01959dc48ada | 26 | py | Python | mi/dataset/driver/zplsc_b/__init__.py | emilyhahn/mi-dataset | 6bfa7158a74cc5db02a0bdeabcc7c3e3749b8eac | [
"BSD-2-Clause"
] | 1 | 2015-05-10T01:08:44.000Z | 2015-05-10T01:08:44.000Z | mi/dataset/driver/zplsc_b/__init__.py | emilyhahn/mi-dataset | 6bfa7158a74cc5db02a0bdeabcc7c3e3749b8eac | [
"BSD-2-Clause"
] | 33 | 2017-04-25T19:53:45.000Z | 2022-03-18T17:42:18.000Z | mi/dataset/driver/zplsc_b/__init__.py | emilyhahn/mi-dataset | 6bfa7158a74cc5db02a0bdeabcc7c3e3749b8eac | [
"BSD-2-Clause"
] | 31 | 2015-03-04T01:01:09.000Z | 2020-10-28T14:42:12.000Z | __author__ = 'rronquillo'
| 13 | 25 | 0.769231 | 2 | 26 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
314e10015eb7d9a2e4460ba3433b7f0988e3d00b | 294 | py | Python | tutorials/tutorial01/stdout_data_sender.py | prokopst/acetone | a8b9673cc3c444a177b6b8f1cb6b0ce11fd10dba | [
"MIT"
] | null | null | null | tutorials/tutorial01/stdout_data_sender.py | prokopst/acetone | a8b9673cc3c444a177b6b8f1cb6b0ce11fd10dba | [
"MIT"
] | 4 | 2016-09-28T17:56:06.000Z | 2016-11-12T17:20:07.000Z | tutorials/tutorial01/stdout_data_sender.py | prokopst/acetone | a8b9673cc3c444a177b6b8f1cb6b0ce11fd10dba | [
"MIT"
] | null | null | null | import sys
# This class has the same interface as DataSender class. There is no inheritance to
# demonstrate that it's not required (you know, it's Python after all).
class StdoutDataSender(object):
def send_data(self, data):
sys.stdout.write(data)
sys.stdout.write('\n')
| 29.4 | 83 | 0.710884 | 45 | 294 | 4.622222 | 0.777778 | 0.028846 | 0.125 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197279 | 294 | 9 | 84 | 32.666667 | 0.881356 | 0.513605 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 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 | 1 | 0 | 0 | 3 |
317105a40acecaeb471c691d203cbaa37c5adc83 | 343 | py | Python | dot_vim/plugged/ultisnips/test/util.py | gabefgonc/san-francisco-rice-dotfiles | 60ff3539f34ecfff6d7bce895497e2a3805910d4 | [
"MIT"
] | 10 | 2020-07-21T21:59:54.000Z | 2021-07-19T11:01:47.000Z | dot_vim/plugged/ultisnips/test/util.py | gabefgonc/san-francisco-rice-dotfiles | 60ff3539f34ecfff6d7bce895497e2a3805910d4 | [
"MIT"
] | null | null | null | dot_vim/plugged/ultisnips/test/util.py | gabefgonc/san-francisco-rice-dotfiles | 60ff3539f34ecfff6d7bce895497e2a3805910d4 | [
"MIT"
] | 1 | 2021-01-30T18:17:01.000Z | 2021-01-30T18:17:01.000Z | import platform
try:
import unidecode
UNIDECODE_IMPORTED = True
except ImportError:
UNIDECODE_IMPORTED = False
def running_on_windows():
if platform.system() == "Windows":
return "Does not work on Windows."
def no_unidecode_available():
if not UNIDECODE_IMPORTED:
return "unidec... | 18.052632 | 44 | 0.702624 | 40 | 343 | 5.85 | 0.55 | 0.217949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 343 | 18 | 45 | 19.055556 | 0.879699 | 0 | 0 | 0 | 0 | 0 | 0.172012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
3182882fcc8d37ae8693d900aecfa4a7ddd20c0b | 940 | py | Python | rec_to_nwb/processing/nwb/components/device/probe/shanks_electrodes/shanks_electrode_creator.py | jihyunbak/rec_to_nwb | 6e65f8bf0a4faa4d986483ec2442ba19d70c92a9 | [
"Apache-2.0"
] | 8 | 2020-05-29T13:48:35.000Z | 2021-11-19T04:24:48.000Z | rec_to_nwb/processing/nwb/components/device/probe/shanks_electrodes/shanks_electrode_creator.py | jihyunbak/rec_to_nwb | 6e65f8bf0a4faa4d986483ec2442ba19d70c92a9 | [
"Apache-2.0"
] | 12 | 2020-11-13T01:36:32.000Z | 2022-01-23T20:35:55.000Z | rec_to_nwb/processing/nwb/components/device/probe/shanks_electrodes/shanks_electrode_creator.py | jihyunbak/rec_to_nwb | 6e65f8bf0a4faa4d986483ec2442ba19d70c92a9 | [
"Apache-2.0"
] | 3 | 2020-10-20T06:52:45.000Z | 2021-07-06T23:00:53.000Z | from ndx_franklab_novela.probe import ShanksElectrode
from rec_to_nwb.processing.nwb.components.device.probe.shanks_electrodes.fl_shanks_electrode import FlShanksElectrode
from rec_to_nwb.processing.tools.beartype.beartype import beartype
from rec_to_nwb.processing.tools.validate_parameters import validate_parameters_... | 44.761905 | 117 | 0.765957 | 118 | 940 | 5.652542 | 0.330508 | 0.269865 | 0.254873 | 0.17991 | 0.427286 | 0.182909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173404 | 940 | 21 | 118 | 44.761905 | 0.85843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
31a801c02760caa45cb8d4d51b6b82c2ea1fa3df | 1,323 | py | Python | utils.py | my-romance/fake-news | d6209d7de98f98b0b00fdb4257d1156cdec83f18 | [
"Apache-2.0"
] | null | null | null | utils.py | my-romance/fake-news | d6209d7de98f98b0b00fdb4257d1156cdec83f18 | [
"Apache-2.0"
] | null | null | null | utils.py | my-romance/fake-news | d6209d7de98f98b0b00fdb4257d1156cdec83f18 | [
"Apache-2.0"
] | null | null | null | import os, csv
import random
import logging
import torch
import numpy as np
from transformers import BertConfig, BertForSequenceClassification
from tokenization_hanbert import HanBertTokenizer
MODEL_CLASSES = {
'hanbert': (BertConfig, BertForSequenceClassification, HanBertTokenizer),
}
def get_label(args):
... | 21.688525 | 88 | 0.672714 | 174 | 1,323 | 4.982759 | 0.505747 | 0.076125 | 0.041522 | 0.041522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003784 | 0.201058 | 1,323 | 60 | 89 | 22.05 | 0.816462 | 0 | 0 | 0 | 0 | 0 | 0.066516 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.205128 | false | 0 | 0.179487 | 0.102564 | 0.512821 | 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 | 1 | 0 | 0 | 3 |
31c1fdc67b295e1b18d99ea404508de47af20510 | 134 | py | Python | 100 Curso aulapharos/008 BibliotecasModulos/005 Spyder scikit-learn/scikit-learn002.py | malcabaut/AprendiendoPython | b1e8731f1614b08b5ace1b7d1ecbeb041b21f28b | [
"MIT"
] | null | null | null | 100 Curso aulapharos/008 BibliotecasModulos/005 Spyder scikit-learn/scikit-learn002.py | malcabaut/AprendiendoPython | b1e8731f1614b08b5ace1b7d1ecbeb041b21f28b | [
"MIT"
] | null | null | null | 100 Curso aulapharos/008 BibliotecasModulos/005 Spyder scikit-learn/scikit-learn002.py | malcabaut/AprendiendoPython | b1e8731f1614b08b5ace1b7d1ecbeb041b21f28b | [
"MIT"
] | null | null | null | import seaborn as sns
import pandas as pd
import numpy as np
USAhousing = pd.read_csv('USA_Housing.csv')
sns.pairplot(USAhousing) | 26.8 | 44 | 0.776119 | 22 | 134 | 4.636364 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 134 | 5 | 45 | 26.8 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
31c9066bca01879eef4f5ac2c2ec2f9f5bedb1f9 | 639 | py | Python | src/service/flask_enter.py | Wvsnow/fractal | 14990477d4626dd1f5acec2551328cdc36b00987 | [
"Apache-2.0"
] | null | null | null | src/service/flask_enter.py | Wvsnow/fractal | 14990477d4626dd1f5acec2551328cdc36b00987 | [
"Apache-2.0"
] | null | null | null | src/service/flask_enter.py | Wvsnow/fractal | 14990477d4626dd1f5acec2551328cdc36b00987 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import Flask
flask_app = Flask(__name__)
@flask_app.route('/')
def hello_world():
return 'Hello Flask!'
@flask_app.route('/hello')
def hello():
return 'Hello, World'
@flask_app.route('/user/<username>')
def show_user_profile(username):
# show the user profile for t... | 19.363636 | 59 | 0.666667 | 95 | 639 | 4.221053 | 0.442105 | 0.119701 | 0.129676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009542 | 0.179969 | 639 | 32 | 60 | 19.96875 | 0.755725 | 0.173709 | 0 | 0 | 0 | 0 | 0.195565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.25 | 0.5625 | 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 | 1 | 0 | 0 | 3 |
9ec62c7c706026341f8ced527fd437123c639c2f | 229 | py | Python | mongod.py | voegtlel/auth-manager-backend | 20d40de0abc9deeb3fcddd892ffe2e635301917a | [
"MIT"
] | null | null | null | mongod.py | voegtlel/auth-manager-backend | 20d40de0abc9deeb3fcddd892ffe2e635301917a | [
"MIT"
] | null | null | null | mongod.py | voegtlel/auth-manager-backend | 20d40de0abc9deeb3fcddd892ffe2e635301917a | [
"MIT"
] | null | null | null | import os
import subprocess
if __name__ == '__main__':
os.chdir(os.path.join(os.path.dirname(__file__), 'mongo'))
os.makedirs('data', exist_ok=True)
subprocess.Popen(['mongod.exe', '--dbpath', 'data']).communicate()
| 28.625 | 70 | 0.681223 | 30 | 229 | 4.766667 | 0.733333 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122271 | 229 | 7 | 71 | 32.714286 | 0.711443 | 0 | 0 | 0 | 0 | 0 | 0.170306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
9ee49fecf9b49c1f9f4c2497935938c74d633142 | 527 | py | Python | richdaddy_sdk/syncrichdaddy/__init__.py | old-pinky/RichDaddy_SDK | 41d10a922782b41976f7c4d99abe6266ea784dd0 | [
"MIT"
] | null | null | null | richdaddy_sdk/syncrichdaddy/__init__.py | old-pinky/RichDaddy_SDK | 41d10a922782b41976f7c4d99abe6266ea784dd0 | [
"MIT"
] | null | null | null | richdaddy_sdk/syncrichdaddy/__init__.py | old-pinky/RichDaddy_SDK | 41d10a922782b41976f7c4d99abe6266ea784dd0 | [
"MIT"
] | null | null | null | from . import client, methods
import typing
class RichDaddy:
def __init__(
self,
access_token: typing.Optional[str] = None,
**kwargs: typing.Any):
"""
:param str access_token: Токен вашего сервиса
"""
self.access_token = access_token
s... | 21.08 | 58 | 0.605313 | 56 | 527 | 5.535714 | 0.482143 | 0.177419 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3074 | 527 | 24 | 59 | 21.958333 | 0.849315 | 0.085389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9ee4e41d0085a4e09578955d9484892e3e71a132 | 1,577 | py | Python | src/abaqus/Sketcher/ConstrainedSketchDimension/HorizontalDimension.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Sketcher/ConstrainedSketchDimension/HorizontalDimension.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Sketcher/ConstrainedSketchDimension/HorizontalDimension.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .ConstrainedSketchDimension import ConstrainedSketchDimension
from ..ConstrainedSketchVertex.ConstrainedSketchVertex import ConstrainedSketchVertex
class HorizontalDimension(ConstrainedSketchDimension):
def __init__(self, vertex1: ConstrainedSketchVertex, vertex2: ConstrainedSk... | 37.547619 | 97 | 0.651237 | 142 | 1,577 | 7.204225 | 0.5 | 0.043011 | 0.064516 | 0.078201 | 0.140762 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003617 | 0.298668 | 1,577 | 41 | 98 | 38.463415 | 0.921338 | 0.568802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.428571 | 0 | 0.714286 | 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 | 1 | 0 | 0 | 3 |
9ee6f631f27c7a9d6f7ada4882879bdb1172be7d | 4,235 | py | Python | totalvoice/cliente/__init__.py | totalvoice/totalvoice-python | 3dc80ef830f0ea78dbeffad7dc9153d45de4f0da | [
"MIT"
] | 25 | 2017-11-03T00:15:26.000Z | 2021-01-22T01:30:08.000Z | totalvoice/cliente/__init__.py | totalvoice/totalvoice-python | 3dc80ef830f0ea78dbeffad7dc9153d45de4f0da | [
"MIT"
] | 1 | 2018-08-08T12:49:48.000Z | 2018-08-17T17:57:41.000Z | totalvoice/cliente/__init__.py | totalvoice/totalvoice-python | 3dc80ef830f0ea78dbeffad7dc9153d45de4f0da | [
"MIT"
] | 10 | 2017-10-20T23:22:17.000Z | 2022-03-08T20:40:19.000Z | # coding=utf-8
from __future__ import absolute_import
from totalvoice.cliente.api.helper import utils
class Cliente(object):
def __init__(self, access_token, host = None):
self.access_token = access_token
self.host = utils.build_host()
self._api = None
@property
def api(self):
... | 15.743494 | 56 | 0.525856 | 386 | 4,235 | 5.720207 | 0.134715 | 0.057065 | 0.153986 | 0.217391 | 0.247283 | 0.057065 | 0 | 0 | 0 | 0 | 0 | 0.000386 | 0.38843 | 4,235 | 268 | 57 | 15.802239 | 0.852124 | 0.417237 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290909 | false | 0 | 0.054545 | 0 | 0.636364 | 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 | 1 | 0 | 0 | 3 |
9efe0eb3e2f5f4742fbaea771961ee4c5ddbe97c | 325 | py | Python | src/python_scripts/src/service_client.py | nvtienanh/UXA_OP | a06a3f1113721627e7d384f89718369036e8028e | [
"BSD-3-Clause"
] | 2 | 2018-11-22T08:15:43.000Z | 2020-07-22T07:18:50.000Z | src/python_scripts/src/service_client.py | nvtienanh/UXA_OP | a06a3f1113721627e7d384f89718369036e8028e | [
"BSD-3-Clause"
] | 1 | 2018-11-22T08:34:34.000Z | 2018-11-22T08:34:34.000Z | src/python_scripts/src/service_client.py | nvtienanh/UXA_OP | a06a3f1113721627e7d384f89718369036e8028e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import rospy
from demo_my_ros.srv import WordCount
import sys
rospy.init_node('service_client')
rospy.wait_for_service('word_count')
word_counter = rospy.ServiceProxy('word_count', WordCount)
words = ' '.join(sys.argv[1:])
word_count = word_counter(words)
print words, '->', word_count.co... | 14.772727 | 58 | 0.750769 | 48 | 325 | 4.833333 | 0.583333 | 0.155172 | 0.112069 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003484 | 0.116923 | 325 | 21 | 59 | 15.47619 | 0.804878 | 0.061538 | 0 | 0 | 0 | 0 | 0.122112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.111111 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7314d33367bb849aa1013d316d8e6345484c6d28 | 307 | py | Python | moneybot/pushers/__init__.py | dethoter/moneybot | b3d1ff6d4d799834d625cdcaf483e85fe04a3da1 | [
"MIT"
] | 3 | 2018-07-04T14:44:09.000Z | 2020-01-07T21:16:50.000Z | karmabot/backup/__init__.py | hacklabkyiv/karmabot | 9609c2767d24363c87b26bc695d50c15a34c645e | [
"MIT"
] | 1 | 2020-04-08T16:53:09.000Z | 2020-04-08T16:53:09.000Z | karmabot/backup/__init__.py | dethoter/karmabot | 9609c2767d24363c87b26bc695d50c15a34c645e | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class BaseBackup(ABC):
__slots__ = ['_filenames']
def __init__(self, filenames):
self._filenames = filenames
@abstractmethod
def backup(self, filename):
pass
@abstractmethod
def restore(self, filename, rev=None):
pass
| 18.058824 | 42 | 0.651466 | 31 | 307 | 6.129032 | 0.548387 | 0.136842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260586 | 307 | 16 | 43 | 19.1875 | 0.837004 | 0 | 0 | 0.363636 | 0 | 0 | 0.032573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.181818 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
731dac0439ca76f084a654690df098846b03aaf5 | 22 | py | Python | jptools/mocks/speech/types.py | riku22/nvdajp | 66a828ea89d317e4aa0ad2aed4b3b1e08920afb6 | [
"bzip2-1.0.6"
] | 19 | 2016-05-11T05:15:31.000Z | 2022-03-17T12:40:10.000Z | jptools/mocks/speech/types.py | riku22/nvdajp | 66a828ea89d317e4aa0ad2aed4b3b1e08920afb6 | [
"bzip2-1.0.6"
] | 307 | 2015-08-27T11:22:33.000Z | 2022-03-29T10:43:34.000Z | jptools/mocks/speech/types.py | riku22/nvdajp | 66a828ea89d317e4aa0ad2aed4b3b1e08920afb6 | [
"bzip2-1.0.6"
] | 14 | 2016-03-28T07:31:49.000Z | 2022-03-30T04:56:35.000Z | SequenceItemT = None
| 11 | 21 | 0.772727 | 2 | 22 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 22 | 1 | 22 | 22 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
73336cc03dbfb5cc3d449fe76cbcb0e54270b422 | 261 | py | Python | Chapter 03/ch3_1_16.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 03/ch3_1_16.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 03/ch3_1_16.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | def comparison(word):
if word == 'Apple' :
print('Your word is Apple')
elif word < 'Apple' :
print('Your word', word, ', comes before Apple')
else:
print('Your word', word, ', comes after Apple')
comparison('Banana')
| 29 | 57 | 0.559387 | 31 | 261 | 4.709677 | 0.451613 | 0.184932 | 0.267123 | 0.246575 | 0.513699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291188 | 261 | 8 | 58 | 32.625 | 0.789189 | 0 | 0 | 0 | 0 | 0 | 0.359684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.375 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
733b16a743007d49a7b6f5620b760fbcfe8e5d6a | 1,403 | py | Python | Desktop/djangoCode/blog/online/models.py | bloodycoder/sjtushare | 508d0baece13b732ed42fef1546b04fa7035dd82 | [
"MIT"
] | 3 | 2016-07-30T13:32:13.000Z | 2016-07-30T16:52:36.000Z | Desktop/djangoCode/blog/online/models.py | bloodycoder/sjtushare | 508d0baece13b732ed42fef1546b04fa7035dd82 | [
"MIT"
] | null | null | null | Desktop/djangoCode/blog/online/models.py | bloodycoder/sjtushare | 508d0baece13b732ed42fef1546b04fa7035dd82 | [
"MIT"
] | null | null | null | #coding:utf-8
from django.db import models
# Create your models here.
class User(models.Model):
username = models.CharField(max_length=50)
password = models.CharField(max_length=50)
def __unicode__(self):
return self.username
class Comment(models.Model):
name = models.CharField(ma... | 31.886364 | 83 | 0.655738 | 161 | 1,403 | 5.503106 | 0.409938 | 0.13544 | 0.162528 | 0.216704 | 0.433409 | 0.162528 | 0.097065 | 0.097065 | 0 | 0 | 0 | 0.020696 | 0.242338 | 1,403 | 44 | 84 | 31.886364 | 0.812794 | 0.026372 | 0 | 0.289474 | 0 | 0 | 0.054463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.026316 | 0.105263 | 0.842105 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
73518fbacabaebfa1def33a38cb115620de453cf | 255 | py | Python | python-language/power.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | python-language/power.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | python-language/power.py | sagasu/python-algorithms | d630777a3f17823165e4d72ab780ede7b10df752 | [
"MIT"
] | null | null | null | def power_15_naive(x):
return x * x * x*x*x*x*x*x*x*x*x*x*x*x*x
def power_15_binary(x):
x2 = x*x
x4 = x2 * x2
x8 = x4*x4
x12 = x8 * x4
x14 = x12*x2
x15 = x14*x
return x15
print(power_15_naive(2))
print(power_15_binary(2)) | 18.214286 | 44 | 0.572549 | 56 | 255 | 2.464286 | 0.267857 | 0.217391 | 0.282609 | 0.347826 | 0.108696 | 0.108696 | 0.108696 | 0.108696 | 0.108696 | 0.108696 | 0 | 0.172043 | 0.270588 | 255 | 14 | 45 | 18.214286 | 0.569892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 1 | 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 | 3 |
735c3cfa529cc203c2a7bc9fa7e6a89c810e4e9e | 404 | py | Python | src/core/api.py | jdmonaco/grid-remapping-model | 5794b0666d51be4359fd8d74da93dca8e98402bf | [
"MIT"
] | 2 | 2019-03-31T13:56:44.000Z | 2022-02-18T18:04:29.000Z | src/core/api.py | ModelDBRepository/138951 | f71d4febd29e6e09bb7370022ab85f4a8f1c81b3 | [
"MIT"
] | null | null | null | src/core/api.py | ModelDBRepository/138951 | f71d4febd29e6e09bb7370022ab85f4a8f1c81b3 | [
"MIT"
] | null | null | null | """
Model Package API: Publicly accessible class and functionality
"""
# Handling time and tracking time-series data
from .timeseries import TimeSeries, TSPostMortem
# Base classes for models and interfaces
from .model import AbstractModel, ModelPostMortem
from .view_model import ViewModel, ViewModelHandler
# ... | 18.363636 | 62 | 0.806931 | 46 | 404 | 7.065217 | 0.717391 | 0.067692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148515 | 404 | 21 | 63 | 19.238095 | 0.944767 | 0.467822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
735e79f7744a90a4b80cd7821ed5535a641ad7f7 | 883 | py | Python | mapq/ChimeraExtension.py | gregdp/mapq | f97709f2ce6a307cae482d879f5f5bbce66c80be | [
"MIT"
] | 6 | 2020-04-23T02:50:46.000Z | 2021-11-12T20:48:12.000Z | mapq/ChimeraExtension.py | gregdp/mapq | f97709f2ce6a307cae482d879f5f5bbce66c80be | [
"MIT"
] | 5 | 2020-03-26T22:13:31.000Z | 2021-10-21T12:45:48.000Z | mapq/ChimeraExtension.py | gregdp/mapq | f97709f2ce6a307cae482d879f5f5bbce66c80be | [
"MIT"
] | 2 | 2020-07-24T20:00:33.000Z | 2021-02-15T02:02:40.000Z | from chimera.extension import EMO, manager
# -----------------------------------------------------------------------------
#
class MapQ_Dialog_EMO ( EMO ):
def name(self):
return 'MapQ'
def description(self):
return self.categoryDescriptions()['Volume Data']
def categories(self):
return self.catego... | 30.448276 | 79 | 0.570781 | 86 | 883 | 5.732558 | 0.546512 | 0.081136 | 0.085193 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157418 | 883 | 28 | 80 | 31.535714 | 0.662634 | 0.349943 | 0 | 0 | 0 | 0 | 0.102474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.055556 | 0.277778 | 0.777778 | 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 | 1 | 0 | 0 | 3 |
b405144b5cbd46464c8b2cffc05e9392df9e49f8 | 10,491 | py | Python | ballz.py | kristian-georgiev/FoosRank | bd067885ac22432d75405db2a8402b7beedafaf5 | [
"MIT"
] | 2 | 2019-02-07T02:20:49.000Z | 2021-05-24T04:16:54.000Z | ballz.py | kristian-georgiev/FoosRank | bd067885ac22432d75405db2a8402b7beedafaf5 | [
"MIT"
] | 5 | 2019-02-16T03:34:15.000Z | 2019-04-15T04:53:21.000Z | ballz.py | kristian-georgiev/FoosRank | bd067885ac22432d75405db2a8402b7beedafaf5 | [
"MIT"
] | null | null | null |
import cv2
import math
import numpy as np
# from matplotlib import pyplot as plt
# import scipy.stats as st
def drawSquare(frame, pointTopLeft, squareSize, color=(255, 0, 0)):
"""
@param frame - np.ndarray(np.uint8)
@returns modified frame - np.ndarray(np.uint8)
"""
modified_frame = frame.copy()... | 46.626667 | 151 | 0.625012 | 1,364 | 10,491 | 4.79912 | 0.14956 | 0.021998 | 0.024442 | 0.01604 | 0.681179 | 0.671402 | 0.63535 | 0.632447 | 0.619921 | 0.619921 | 0 | 0.457538 | 0.235631 | 10,491 | 224 | 152 | 46.834821 | 0.358773 | 0.105424 | 0 | 0.514793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053254 | false | 0 | 0.017751 | 0 | 0.118343 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b41b4846cb5a7dad1b6c73e2f62044502011c86d | 1,359 | py | Python | tests/agents_tests/test_double_dqn.py | kiyukuta/chainerrl | 65f53cd728cbcd233864e9bea9ee2e57d1b68b00 | [
"MIT"
] | null | null | null | tests/agents_tests/test_double_dqn.py | kiyukuta/chainerrl | 65f53cd728cbcd233864e9bea9ee2e57d1b68b00 | [
"MIT"
] | null | null | null | tests/agents_tests/test_double_dqn.py | kiyukuta/chainerrl | 65f53cd728cbcd233864e9bea9ee2e57d1b68b00 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases()
from chainerrl.agents.double_dqn import DoubleDQN
from test_dqn_like... | 35.763158 | 69 | 0.760854 | 168 | 1,359 | 5.797619 | 0.315476 | 0.030801 | 0.049281 | 0.046201 | 0.5154 | 0.450719 | 0.450719 | 0.450719 | 0.450719 | 0.450719 | 0 | 0.021352 | 0.172921 | 1,359 | 37 | 70 | 36.72973 | 0.845196 | 0.002943 | 0 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.37037 | 0.111111 | 0.703704 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
b41bee5b9fda51c7def143d5d11c2bc395338bdf | 147 | py | Python | saleor/page/urls.py | vubon/saleor-demo | b435aefd6353c6494b585e52684ed70b69a7e8e7 | [
"BSD-3-Clause"
] | 3 | 2018-06-14T22:52:38.000Z | 2019-01-24T03:48:46.000Z | saleor/page/urls.py | vubon/saleor-demo | b435aefd6353c6494b585e52684ed70b69a7e8e7 | [
"BSD-3-Clause"
] | null | null | null | saleor/page/urls.py | vubon/saleor-demo | b435aefd6353c6494b585e52684ed70b69a7e8e7 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^(?P<slug>[a-z0-9-_]+?)/$', views.page_details, name='details')
]
| 18.375 | 73 | 0.646259 | 22 | 147 | 4.227273 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.142857 | 147 | 7 | 74 | 21 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.217687 | 0.170068 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
b42893df1b2db3f8310ea36aa8a27a527f8bb1b4 | 661 | py | Python | scanpy/api/tl.py | aertslab/scanpy | da0ffd787681a5df98d523f93374853481fac8b8 | [
"BSD-3-Clause"
] | 1 | 2021-02-04T15:43:26.000Z | 2021-02-04T15:43:26.000Z | scanpy/api/tl.py | gokceneraslan/scanpy | 74f03cb84b21235345126b886c5884f8b6a7fdb5 | [
"BSD-3-Clause"
] | null | null | null | scanpy/api/tl.py | gokceneraslan/scanpy | 74f03cb84b21235345126b886c5884f8b6a7fdb5 | [
"BSD-3-Clause"
] | 1 | 2022-03-21T15:28:17.000Z | 2022-03-21T15:28:17.000Z | from ..tools._pca import pca
from ..tools._tsne import tsne
from ..tools._umap import umap
from ..tools._diffmap import diffmap
from ..tools._draw_graph import draw_graph
from ..tools._paga import (
paga,
paga_degrees,
paga_expression_entropies,
paga_compare_paths,
)
from ..tools._rank_genes_groups imp... | 28.73913 | 68 | 0.794251 | 97 | 661 | 5.072165 | 0.371134 | 0.237805 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12708 | 661 | 22 | 69 | 30.045455 | 0.852686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.736842 | 0 | 0.736842 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b45074eb68c6a69750a32b2895e05b345e0d872d | 111 | py | Python | data/_db_config.py | pangeon/Taskello | 48f4b43b79cdafb1a2fbda4841ff0f9831e72bd1 | [
"CC0-1.0"
] | null | null | null | data/_db_config.py | pangeon/Taskello | 48f4b43b79cdafb1a2fbda4841ff0f9831e72bd1 | [
"CC0-1.0"
] | 14 | 2021-06-22T14:13:47.000Z | 2021-06-22T21:18:37.000Z | data/_db_config.py | pangeon/Taskello | 48f4b43b79cdafb1a2fbda4841ff0f9831e72bd1 | [
"CC0-1.0"
] | null | null | null | db_name = "dian_db"
db_user = "dian_user"
db_pass = "dian_pass_2021MAY"
db_host = "localhost"
db_port = "3306"
| 18.5 | 29 | 0.72973 | 19 | 111 | 3.789474 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.135135 | 111 | 5 | 30 | 22.2 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.414414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b4655d92b1a3288819b4d448d958e558d0efdd24 | 1,010 | py | Python | python/ppml/src/bigdl/ppml/fl/utils.py | bronzeMe/BigDL | 22a5956e30619c1f1f3fdfec23e0efb0d0f21dbf | [
"Apache-2.0"
] | null | null | null | python/ppml/src/bigdl/ppml/fl/utils.py | bronzeMe/BigDL | 22a5956e30619c1f1f3fdfec23e0efb0d0f21dbf | [
"Apache-2.0"
] | null | null | null | python/ppml/src/bigdl/ppml/fl/utils.py | bronzeMe/BigDL | 22a5956e30619c1f1f3fdfec23e0efb0d0f21dbf | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 33.666667 | 99 | 0.750495 | 143 | 1,010 | 5.167832 | 0.622378 | 0.081191 | 0.035183 | 0.043302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.160396 | 1,010 | 29 | 100 | 34.827586 | 0.862028 | 0.549505 | 0 | 0 | 0 | 0 | 0.114155 | 0.061644 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b468605382bdc261e09c9c1308530fe1887fc7cb | 6,303 | py | Python | mcerp3/umath.py | paul-freeman/mcerp | 77cedc028df1aa2308c0a1c458997d339faa2ef9 | [
"BSD-3-Clause"
] | 2 | 2018-03-26T20:38:19.000Z | 2018-05-04T11:26:38.000Z | mcerp3/umath.py | paul-freeman/mcerp | 77cedc028df1aa2308c0a1c458997d339faa2ef9 | [
"BSD-3-Clause"
] | 2 | 2018-03-26T19:48:21.000Z | 2018-05-08T01:38:47.000Z | mcerp3/umath.py | paul-freeman/mcerp | 77cedc028df1aa2308c0a1c458997d339faa2ef9 | [
"BSD-3-Clause"
] | 2 | 2018-03-26T10:05:59.000Z | 2020-06-08T09:40:57.000Z | """
================================================================================
mcerp3: Real-time latin-hypercube-sampling-based Monte Carlo Error Propagation
================================================================================
Generalizes mathematical operators that work on numeric objects (from the ... | 21.885417 | 80 | 0.584166 | 695 | 6,303 | 5.244604 | 0.185612 | 0.307819 | 0.207407 | 0.213992 | 0.632647 | 0.632647 | 0.571742 | 0.402195 | 0 | 0 | 0 | 0.00596 | 0.281295 | 6,303 | 287 | 81 | 21.961672 | 0.798676 | 0.181501 | 0 | 0.472393 | 0 | 0 | 0.002318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165644 | false | 0 | 0.01227 | 0 | 0.503067 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
b47dded78067ab113216c74028e2db9b534be031 | 222 | py | Python | dash_wrapper/dash_canvas/_wrapper.py | gioxc88/dash-api | b9baed4ac404ee04a612334a9b88c15175d970bd | [
"MIT"
] | 1 | 2020-10-14T08:22:23.000Z | 2020-10-14T08:22:23.000Z | dash_wrapper/dash_canvas/_wrapper.py | gioxc88/dash-wrapper | b9baed4ac404ee04a612334a9b88c15175d970bd | [
"MIT"
] | null | null | null | dash_wrapper/dash_canvas/_wrapper.py | gioxc88/dash-wrapper | b9baed4ac404ee04a612334a9b88c15175d970bd | [
"MIT"
] | null | null | null | import sys
import dash_canvas as module
from .._wrapper import base_wrapper
this_module = sys.modules[__name__]
def __getattr__(name):
# print(name)
return base_wrapper(name, module)
__all__ = module.__all__
| 14.8 | 37 | 0.756757 | 30 | 222 | 4.9 | 0.566667 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 222 | 14 | 38 | 15.857143 | 0.794595 | 0.04955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 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 | 1 | 1 | 0 | 0 | 3 |
b47f3262fe78c0fb58daead3a33675d568ea3d95 | 265 | py | Python | apps/setting.py | Cjwpython/WordlessBook | 3426ccf3ab2f8848caef98bbc7635407774d32b2 | [
"MIT"
] | 2 | 2021-05-19T10:53:25.000Z | 2022-01-20T01:20:08.000Z | apps/setting.py | Cjwpython/WordlessBook | 3426ccf3ab2f8848caef98bbc7635407774d32b2 | [
"MIT"
] | null | null | null | apps/setting.py | Cjwpython/WordlessBook | 3426ccf3ab2f8848caef98bbc7635407774d32b2 | [
"MIT"
] | 1 | 2022-01-20T01:19:56.000Z | 2022-01-20T01:19:56.000Z | # coding: utf-8
from apps import app
from apps.urls import register_url
register_url(app) # 注册路由,这里是总路由
from middleware.errorhandler import * # 调用异常捕获类
from middleware.request_handler import * # 调用请求钩子
app.app_context().push() # 推送上下文之后,下方中间层才能使用current_app | 24.090909 | 56 | 0.781132 | 36 | 265 | 5.611111 | 0.611111 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004367 | 0.135849 | 265 | 11 | 56 | 24.090909 | 0.877729 | 0.260377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
81f577c4caa9470c548c2df1ec44ae2c40b7d8c7 | 3,244 | py | Python | Decorators.py | Ichinga-Samuel/Python-Buffet | 7d8d6e748d3637b7f9be94d13e052ab0fb75e62b | [
"CC0-1.0"
] | null | null | null | Decorators.py | Ichinga-Samuel/Python-Buffet | 7d8d6e748d3637b7f9be94d13e052ab0fb75e62b | [
"CC0-1.0"
] | null | null | null | Decorators.py | Ichinga-Samuel/Python-Buffet | 7d8d6e748d3637b7f9be94d13e052ab0fb75e62b | [
"CC0-1.0"
] | null | null | null | import functools
# a decorator is a callable that takes another callable as input and returns a callable
# A simple decorator
def null_deco(func): # null_deco is a callable and the input func is also a callable
return func # the same func is also returned
def greet():
return 'hello'
# using it to wra... | 23.678832 | 100 | 0.672935 | 450 | 3,244 | 4.733333 | 0.253333 | 0.037559 | 0.025352 | 0.050704 | 0.346948 | 0.338498 | 0.311268 | 0.311268 | 0.311268 | 0.266197 | 0 | 0.006221 | 0.207152 | 3,244 | 136 | 101 | 23.852941 | 0.821928 | 0.470715 | 0 | 0.652778 | 0 | 0 | 0.144658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263889 | false | 0 | 0.013889 | 0.111111 | 0.541667 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
81fc2e38199db7eabafb311039595b8e7ff7a4cc | 91 | py | Python | python/pathlib/origin/rename.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/pathlib/origin/rename.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/pathlib/origin/rename.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | from pathlib import Path
path = Path('names.txt')
path.touch()
path.rename('mynames.txt') | 15.166667 | 26 | 0.725275 | 14 | 91 | 4.714286 | 0.642857 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10989 | 91 | 6 | 26 | 15.166667 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 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 | 3 |
c302d77e6926f5d53aada3827169c33d257b52ec | 858 | py | Python | livia/input/DeviceFrameInput.py | sing-group/livia-core | 5f0db6ea0e1791703719c49f0cbd0f3e559d42a6 | [
"MIT"
] | null | null | null | livia/input/DeviceFrameInput.py | sing-group/livia-core | 5f0db6ea0e1791703719c49f0cbd0f3e559d42a6 | [
"MIT"
] | null | null | null | livia/input/DeviceFrameInput.py | sing-group/livia-core | 5f0db6ea0e1791703719c49f0cbd0f3e559d42a6 | [
"MIT"
] | null | null | null | from typing import Union
from cv2 import VideoCapture
from livia.input.OpenCVFrameInput import OpenCVFrameInput
class Device:
def __init__(self, device_name: str, device_index: Union[str, int], api_preference: int):
self._device_name: str = device_name
self._device_index: Union[str, int] = devic... | 25.235294 | 93 | 0.68648 | 101 | 858 | 5.534653 | 0.277228 | 0.107335 | 0.075134 | 0.060823 | 0.150268 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001504 | 0.224942 | 858 | 33 | 94 | 26 | 0.839098 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0.130435 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c303cabe2c9dc6b4a11da65faa8128de67a2c3bd | 963 | py | Python | cy_data_access/user_cli.py | cragod/CYDataAccess | fb7cf98500e2d2747c225b3c544867fe04ed0b2d | [
"MIT"
] | null | null | null | cy_data_access/user_cli.py | cragod/CYDataAccess | fb7cf98500e2d2747c225b3c544867fe04ed0b2d | [
"MIT"
] | null | null | null | cy_data_access/user_cli.py | cragod/CYDataAccess | fb7cf98500e2d2747c225b3c544867fe04ed0b2d | [
"MIT"
] | null | null | null | import click as c
from cy_data_access.connection.connect import *
from cy_data_access.models.user import *
@c.group()
@c.pass_context
def cyusr(ctx):
connect_db_env(DB_USER)
connect_db_env(DB_CONFIG)
@cyusr.command()
@c.option('--account', prompt=True, required=True)
@c.password_option()
@c.option('--secret... | 26.027027 | 67 | 0.713396 | 137 | 963 | 4.883212 | 0.321168 | 0.073244 | 0.188341 | 0.230194 | 0.421525 | 0.384155 | 0.351271 | 0.351271 | 0.237668 | 0.237668 | 0 | 0 | 0.120457 | 963 | 36 | 68 | 26.75 | 0.789847 | 0 | 0 | 0.285714 | 0 | 0 | 0.062305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.25 | 0.107143 | 0 | 0.25 | 0.107143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c32745478929da60db73d6653d5be7f58dfefbbc | 222 | py | Python | runway/commands/gitclean.py | kteague/runway | dc02ceec3e4d5608d7cb284c7e770fa10ec771f5 | [
"Apache-2.0"
] | null | null | null | runway/commands/gitclean.py | kteague/runway | dc02ceec3e4d5608d7cb284c7e770fa10ec771f5 | [
"Apache-2.0"
] | null | null | null | runway/commands/gitclean.py | kteague/runway | dc02ceec3e4d5608d7cb284c7e770fa10ec771f5 | [
"Apache-2.0"
] | 1 | 2020-02-29T04:49:11.000Z | 2020-02-29T04:49:11.000Z | """The gitclean command."""
from .env import Env
class GitClean(Env):
"""Extend Env with execute to run the gitclean method."""
def execute(self):
"""Clean directory of files."""
self.gitclean()
| 20.181818 | 61 | 0.626126 | 28 | 222 | 4.964286 | 0.678571 | 0.158273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234234 | 222 | 10 | 62 | 22.2 | 0.817647 | 0.445946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c351073a613ee8918950d7b902151e1f490d7d45 | 63 | py | Python | flask_server_files/queuesholder.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | flask_server_files/queuesholder.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | flask_server_files/queuesholder.py | HelloMorrisMoss/mahlo_popup | e4b657f93aa8b46f354f0d9d95b81c22c797e6d3 | [
"MIT"
] | null | null | null | class QueuesHolder(object):
pass
queues = QueuesHolder()
| 10.5 | 27 | 0.714286 | 6 | 63 | 7.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 63 | 5 | 28 | 12.6 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c3743d13768ee1d7a9abe803aaefdc375bd355f0 | 317 | py | Python | jeopardy/sockets.py | cazier/jeopardy | 2843985e98b9d871e0872c23f4ae2f8f0fa5f42a | [
"MIT"
] | null | null | null | jeopardy/sockets.py | cazier/jeopardy | 2843985e98b9d871e0872c23f4ae2f8f0fa5f42a | [
"MIT"
] | 20 | 2021-01-15T20:47:59.000Z | 2022-01-23T17:53:58.000Z | jeopardy/sockets.py | cazier/jeopardy | 2843985e98b9d871e0872c23f4ae2f8f0fa5f42a | [
"MIT"
] | null | null | null | from flask import request
from flask_socketio import SocketIO, rooms, join_room
try:
import config
except ImportError:
from jeopardy import config
socketio = SocketIO(cors_allowed_origins=config.url)
def get_room(sid: str) -> str:
return sorted(rooms(sid=sid), key=lambda k: len(k), reverse=True)[1]
| 21.133333 | 72 | 0.750789 | 47 | 317 | 4.957447 | 0.638298 | 0.077253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003745 | 0.157729 | 317 | 14 | 73 | 22.642857 | 0.868914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0.111111 | 0.777778 | 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 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.