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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a8490ef24ae0a7b9d0ea872f5bdb7234625f5d8 | 29 | py | Python | py/lib/json/__init__.py | ivomarvan/ESP8266_RTC_memory_compression | 7c3113533e08759fa40f2a5edfeed79a67367719 | [
"MIT"
] | 1 | 2021-04-15T04:25:16.000Z | 2021-04-15T04:25:16.000Z | py/lib/json/__init__.py | ivomarvan/ESP8266_RTC_memory_compression | 7c3113533e08759fa40f2a5edfeed79a67367719 | [
"MIT"
] | null | null | null | py/lib/json/__init__.py | ivomarvan/ESP8266_RTC_memory_compression | 7c3113533e08759fa40f2a5edfeed79a67367719 | [
"MIT"
] | null | null | null | __author__ = 'ivo@marvan.cz'
| 14.5 | 28 | 0.724138 | 4 | 29 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 29 | 1 | 29 | 29 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 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 |
1ace60bd1ab75e946abaed8375d05732cb0abd41 | 533 | py | Python | attendence/faceRecognition/forms.py | baronrustamov/Face-Recognition | 5b5c527a0be668f1e1132e95f31ab72a5d38437d | [
"Apache-2.0"
] | null | null | null | attendence/faceRecognition/forms.py | baronrustamov/Face-Recognition | 5b5c527a0be668f1e1132e95f31ab72a5d38437d | [
"Apache-2.0"
] | null | null | null | attendence/faceRecognition/forms.py | baronrustamov/Face-Recognition | 5b5c527a0be668f1e1132e95f31ab72a5d38437d | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.db import transaction
class UserRegistrationForm(forms.Form):
username = forms.CharField(
required = True,
label = 'Username',
max_length = 32
)
email = forms.CharField(
required = Tr... | 25.380952 | 54 | 0.613508 | 53 | 533 | 6.113208 | 0.45283 | 0.092593 | 0.203704 | 0.240741 | 0.287037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016086 | 0.300188 | 533 | 21 | 55 | 25.380952 | 0.852547 | 0 | 0 | 0.25 | 0 | 0 | 0.039326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.15 | 0.15 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
46c74108472dbc8bb79bdb944797a7e3669c3a83 | 242 | py | Python | jirabug/config.py | miaolujing/python_script | 57ccf89f53ce0ce551804b5693515d8a8db4ce78 | [
"Apache-2.0"
] | null | null | null | jirabug/config.py | miaolujing/python_script | 57ccf89f53ce0ce551804b5693515d8a8db4ce78 | [
"Apache-2.0"
] | null | null | null | jirabug/config.py | miaolujing/python_script | 57ccf89f53ce0ce551804b5693515d8a8db4ce78 | [
"Apache-2.0"
] | null | null | null | # config.py
# -*- coding: utf-8 -*-
__author__ = 'lilian'
import gettime
loginurl = "http://jira.uyunsoft.cn/login.jsp"
username = "miaolj"
passwd = "miaolj161208"
searchurl = "http://jira.uyunsoft.cn/rest/api/2/search"
maxResults = "10000" | 22 | 55 | 0.698347 | 31 | 242 | 5.322581 | 0.870968 | 0.09697 | 0.193939 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060748 | 0.115702 | 242 | 11 | 56 | 22 | 0.71028 | 0.128099 | 0 | 0 | 0 | 0 | 0.492823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
46e9bf12bf1aaf80fa7427bada639f9c72dd6c07 | 61,990 | py | Python | azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2019-06-17T22:18:23.000Z | 2019-06-17T22:18:23.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 49.711307 | 117 | 0.828021 | 5,496 | 61,990 | 8.973799 | 0.129367 | 0.066423 | 0.024006 | 0.033009 | 0.800162 | 0.648094 | 0.370641 | 0.199635 | 0.080819 | 0.058475 | 0 | 0.00722 | 0.135296 | 61,990 | 1,246 | 118 | 49.751204 | 0.912878 | 0.007292 | 0 | 0 | 0 | 0 | 0.14696 | 0.093195 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.598055 | 0 | 0.598055 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 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 |
46fbb8768fa190dbf7a7cfd3ae11ca17815de654 | 112 | py | Python | PYTHON/pythonDesafios/desafio008.py | Santos1000/Curso-Python | 549223a1633f6f619c87554dd8078cf7841bb1df | [
"MIT"
] | null | null | null | PYTHON/pythonDesafios/desafio008.py | Santos1000/Curso-Python | 549223a1633f6f619c87554dd8078cf7841bb1df | [
"MIT"
] | null | null | null | PYTHON/pythonDesafios/desafio008.py | Santos1000/Curso-Python | 549223a1633f6f619c87554dd8078cf7841bb1df | [
"MIT"
] | null | null | null | n = int(input('Digite a metragem:'))
print('Centimetros: {}cm. \n Milimetros: {}mm.'.format(n * 100, n * 1000))
| 37.333333 | 74 | 0.625 | 17 | 112 | 4.117647 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072165 | 0.133929 | 112 | 2 | 75 | 56 | 0.649485 | 0 | 0 | 0 | 0 | 0 | 0.508929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
200bec0a0cf77cca4a38e51e6e429fa78f409ebc | 767 | py | Python | code/preprocessing/check_logs.py | lukassnoek/MorbidCuriosityFMRI | 2f6e7794b722276a5e660fa27cfe9741565cf28b | [
"BSD-3-Clause"
] | null | null | null | code/preprocessing/check_logs.py | lukassnoek/MorbidCuriosityFMRI | 2f6e7794b722276a5e660fa27cfe9741565cf28b | [
"BSD-3-Clause"
] | null | null | null | code/preprocessing/check_logs.py | lukassnoek/MorbidCuriosityFMRI | 2f6e7794b722276a5e660fa27cfe9741565cf28b | [
"BSD-3-Clause"
] | null | null | null | import os
import os.path as op
from glob import glob
import pandas as pd
import numpy as np
files = sorted(glob('../data/raw/*/*events.tsv'))
for f in files:
df = pd.read_csv(f, sep='\t')
df['onset'] = df['rel-onset-pulse'] / 1000
df['trial_type'] = df['trial-type'][df['trial-type'] != 'resp']
df['tria... | 45.117647 | 111 | 0.589309 | 138 | 767 | 3.152174 | 0.347826 | 0.177011 | 0.278161 | 0.149425 | 0.342529 | 0.342529 | 0.266667 | 0.266667 | 0.266667 | 0.211494 | 0 | 0.014041 | 0.164276 | 767 | 16 | 112 | 47.9375 | 0.664587 | 0.138201 | 0 | 0 | 0 | 0 | 0.233333 | 0.037879 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.357143 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2012d2ba8010a47e3ae51d64631e3f60eaa877d3 | 146 | py | Python | tests/ngrex/test_ngrex.py | bionlplab/radtext | f011749184e585839d599a94d7867b87e02fa23d | [
"BSD-3-Clause"
] | null | null | null | tests/ngrex/test_ngrex.py | bionlplab/radtext | f011749184e585839d599a94d7867b87e02fa23d | [
"BSD-3-Clause"
] | null | null | null | tests/ngrex/test_ngrex.py | bionlplab/radtext | f011749184e585839d599a94d7867b87e02fa23d | [
"BSD-3-Clause"
] | null | null | null | import pytest
from radtext.models.neg import ngrex
def test_compile():
p = '@'
with pytest.raises(TypeError):
ngrex.compile(p)
| 14.6 | 36 | 0.664384 | 19 | 146 | 5.052632 | 0.736842 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226027 | 146 | 9 | 37 | 16.222222 | 0.849558 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2016fca1a3dd9ad25c4ddbfbd9c571f61697e926 | 193 | py | Python | docs/examples/tutorial/2_split/perf_main3.py | ynikitenko/lena | d0fbae47f21007685edbd4e77bc91413421bebd1 | [
"Apache-2.0"
] | 4 | 2020-03-01T14:01:48.000Z | 2021-02-23T19:33:36.000Z | docs/examples/tutorial/2_split/perf_main3.py | ynikitenko/lena | d0fbae47f21007685edbd4e77bc91413421bebd1 | [
"Apache-2.0"
] | 1 | 2021-05-09T15:47:17.000Z | 2021-05-09T16:12:03.000Z | docs/examples/tutorial/2_split/perf_main3.py | ynikitenko/lena | d0fbae47f21007685edbd4e77bc91413421bebd1 | [
"Apache-2.0"
] | null | null | null | import cProfile
from main3 import main
if __name__ == "__main__":
cProfile.run("main()") #, "perf.txt")
# 1.015 s of total 1.115 s
# is spent on latex_to_pdf, 10 events analysed
| 19.3 | 50 | 0.658031 | 31 | 193 | 3.774194 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073333 | 0.222798 | 193 | 9 | 51 | 21.444444 | 0.706667 | 0.430052 | 0 | 0 | 0 | 0 | 0.130841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 |
2017b12ebec2f9b9b5ecb72e9c3da17ef4d79271 | 4,337 | py | Python | skbandit/environments/base.py | dourouc05/scikit-bandit | aa0a0a58304844f593682ff1fe7f0960977bd0d2 | [
"BSD-3-Clause"
] | null | null | null | skbandit/environments/base.py | dourouc05/scikit-bandit | aa0a0a58304844f593682ff1fe7f0960977bd0d2 | [
"BSD-3-Clause"
] | null | null | null | skbandit/environments/base.py | dourouc05/scikit-bandit | aa0a0a58304844f593682ff1fe7f0960977bd0d2 | [
"BSD-3-Clause"
] | null | null | null | from abc import ABC, abstractmethod
from typing import List, Union, Dict
class Environment(ABC):
"""An environment on which the bandit acts.
This class is made for subclassing. Its subclasses are supposed to be used in experiments.
An environment mainly implements a method `reward`, which returns the re... | 48.188889 | 119 | 0.71893 | 591 | 4,337 | 5.258883 | 0.343486 | 0.013514 | 0.019305 | 0.024131 | 0.209781 | 0.196268 | 0.171815 | 0.171815 | 0.140283 | 0.140283 | 0 | 0 | 0.212589 | 4,337 | 89 | 120 | 48.730337 | 0.910102 | 0.67881 | 0 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0.172414 | 0.068966 | 0 | 0.586207 | 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 |
201c3be5411acece2f7b29ad5cd2821e94e4b591 | 84,154 | py | Python | experimental/fitTest/templates_electron.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | experimental/fitTest/templates_electron.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | experimental/fitTest/templates_electron.py | jjacob/DailyPythonScripts | cd6c515c6242d1f3b44e97c8ad05946721b6a36a | [
"Apache-2.0"
] | null | null | null | inputTemplates = {
"M3": {
"QCD": [
[
0.0,
0.0004418671450315185,
0.01605229202018541,
0.05825334528354453,
0.08815209477081883,
0.1030093733105401,
0.10513254530282935,
... | 34.098055 | 40 | 0.430306 | 4,531 | 84,154 | 7.991613 | 0.376297 | 0.036564 | 0.046645 | 0.051257 | 0.149765 | 0.124109 | 0.121955 | 0.111571 | 0.109252 | 0.065037 | 0 | 0.880422 | 0.512869 | 84,154 | 2,468 | 41 | 34.098055 | 0.002878 | 0 | 0 | 0.32577 | 0 | 0 | 0.001224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
202cdf2c1bdfe742a6f47309e126c4b160b4606e | 152 | py | Python | bin/playeah.py | fmcevoy/playeah | 98c77bc6ba5b6f53cffeab9ed3133e682d26a54d | [
"Apache-2.0"
] | null | null | null | bin/playeah.py | fmcevoy/playeah | 98c77bc6ba5b6f53cffeab9ed3133e682d26a54d | [
"Apache-2.0"
] | null | null | null | bin/playeah.py | fmcevoy/playeah | 98c77bc6ba5b6f53cffeab9ed3133e682d26a54d | [
"Apache-2.0"
] | null | null | null | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'SLACK'
if __name__ == '__main__':
app.run('0.0.0.0')
| 15.2 | 26 | 0.638158 | 23 | 152 | 3.652174 | 0.652174 | 0.071429 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0.177632 | 152 | 9 | 27 | 16.888889 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0.138158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
20340dd789efade347d26b33c5f251e4772390c8 | 191 | py | Python | openhab_creator/models/items/string.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | 1 | 2021-11-16T22:48:26.000Z | 2021-11-16T22:48:26.000Z | openhab_creator/models/items/string.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | null | null | null | openhab_creator/models/items/string.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | null | null | null | from __future__ import annotations
from openhab_creator.models.items.baseitem import BaseItem
class String(BaseItem):
@property
def itemtype(self) -> str:
return 'String'
| 17.363636 | 58 | 0.732984 | 22 | 191 | 6.136364 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193717 | 191 | 10 | 59 | 19.1 | 0.876623 | 0 | 0 | 0 | 0 | 0 | 0.031414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
20535fed7c65d21e954d7c1bc7d1efa1b7d9f466 | 198 | py | Python | flog/api/v3/__init__.py | mutalisk999/Flog | 5d836e26967b39faebdf2d5a2c558316bf93221b | [
"MIT"
] | 1 | 2020-08-24T03:39:52.000Z | 2020-08-24T03:39:52.000Z | flog/api/v3/__init__.py | mutalisk999/Flog | 5d836e26967b39faebdf2d5a2c558316bf93221b | [
"MIT"
] | null | null | null | flog/api/v3/__init__.py | mutalisk999/Flog | 5d836e26967b39faebdf2d5a2c558316bf93221b | [
"MIT"
] | null | null | null | """
MIT License
Copyright(c) 2021 Andy Zhou
"""
from apiflask import APIBlueprint
from flask_cors import CORS
api_v3 = APIBlueprint("api_v3", __name__)
CORS(api_v3)
from . import views
| 16.5 | 42 | 0.722222 | 28 | 198 | 4.821429 | 0.607143 | 0.111111 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04375 | 0.191919 | 198 | 11 | 43 | 18 | 0.8 | 0.19697 | 0 | 0 | 0 | 0 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
64b1c71697b09cb95f15828fb33ae48f468492c5 | 880 | py | Python | api/migrations/0005_auto_20210310_1807.py | TariqueNasrullah/LibraryManagementSystem | 4b3da701de3b13b61f40284bc3d832578b438532 | [
"MIT"
] | null | null | null | api/migrations/0005_auto_20210310_1807.py | TariqueNasrullah/LibraryManagementSystem | 4b3da701de3b13b61f40284bc3d832578b438532 | [
"MIT"
] | null | null | null | api/migrations/0005_auto_20210310_1807.py | TariqueNasrullah/LibraryManagementSystem | 4b3da701de3b13b61f40284bc3d832578b438532 | [
"MIT"
] | 1 | 2021-04-20T12:38:39.000Z | 2021-04-20T12:38:39.000Z | # Generated by Django 3.1.7 on 2021-03-10 18:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0004_book_length'),
]
operations = [
migrations.AlterField(
model_name='author',
name='biography',
... | 25.882353 | 63 | 0.557955 | 85 | 880 | 5.670588 | 0.482353 | 0.165975 | 0.207469 | 0.240664 | 0.572614 | 0.572614 | 0.248963 | 0.170124 | 0 | 0 | 0 | 0.045378 | 0.323864 | 880 | 33 | 64 | 26.666667 | 0.764706 | 0.051136 | 0 | 0.518519 | 1 | 0 | 0.093637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b38186c55119cd10ab39c83127a43fee8ef8550b | 705 | py | Python | type_hints/prototype.py | Carsten-Leue/type-hints | 839eff963d87d3ae93d7ae595b83962cf7cd570b | [
"MIT"
] | null | null | null | type_hints/prototype.py | Carsten-Leue/type-hints | 839eff963d87d3ae93d7ae595b83962cf7cd570b | [
"MIT"
] | null | null | null | type_hints/prototype.py | Carsten-Leue/type-hints | 839eff963d87d3ae93d7ae595b83962cf7cd570b | [
"MIT"
] | null | null | null |
from typing import Protocol, Union
class MyFirstClass(object):
def print(self) -> None:
print('first')
def first(self) -> None:
pass
class MySecondClass(object):
def print(self) -> None:
print('second')
def second(self) -> None:
pass
def printer(out: Union[MyFi... | 14.1 | 61 | 0.611348 | 82 | 705 | 5.121951 | 0.353659 | 0.095238 | 0.085714 | 0.114286 | 0.128571 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269504 | 705 | 49 | 62 | 14.387755 | 0.815534 | 0.053901 | 0 | 0.32 | 0 | 0 | 0.028614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0.12 | 0.04 | 0 | 0.44 | 0.52 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
b393d98e9aaf1b5b27315134cdfc31f1331b71f5 | 126 | py | Python | barcap/__main__.py | Barmaley13/CaptureBarcode | e19556dd515a1b86cf32b5bdca4dca398d1f0ef1 | [
"MIT"
] | 1 | 2021-04-17T18:04:19.000Z | 2021-04-17T18:04:19.000Z | barcap/__main__.py | Barmaley13/CaptureBarcode | e19556dd515a1b86cf32b5bdca4dca398d1f0ef1 | [
"MIT"
] | 1 | 2021-07-08T09:48:07.000Z | 2021-07-08T17:36:22.000Z | barcap/__main__.py | Barmaley13/CaptureBarcode | e19556dd515a1b86cf32b5bdca4dca398d1f0ef1 | [
"MIT"
] | 1 | 2019-09-27T12:37:25.000Z | 2019-09-27T12:37:25.000Z | """
Adding ability to run package as an executable
"""
from barcap.main import main
if __name__ == '__main__':
main()
| 11.454545 | 46 | 0.674603 | 17 | 126 | 4.529412 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 126 | 10 | 47 | 12.6 | 0.777778 | 0.365079 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b39f44884911a34b7eda57d193bb15d3ed8ef17a | 223 | py | Python | hr/api/urls.py | dcopm999/thesis | 22c601fd11dd8f64aca6e13d4a1fac5e41e24114 | [
"MIT"
] | null | null | null | hr/api/urls.py | dcopm999/thesis | 22c601fd11dd8f64aca6e13d4a1fac5e41e24114 | [
"MIT"
] | null | null | null | hr/api/urls.py | dcopm999/thesis | 22c601fd11dd8f64aca6e13d4a1fac5e41e24114 | [
"MIT"
] | null | null | null | from rest_framework import routers
from hr.api import views
router = routers.SimpleRouter()
router.register(r"department", views.DepartmentViewSet)
router.register(r"staff", views.StaffViewSet)
urlpatterns = router.urls
| 22.3 | 55 | 0.811659 | 28 | 223 | 6.428571 | 0.642857 | 0.155556 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09417 | 223 | 9 | 56 | 24.777778 | 0.891089 | 0 | 0 | 0 | 0 | 0 | 0.067265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b3b34fcae5e6f37e13773bf1a2332a7e04ee8514 | 258 | py | Python | token.py | ellamosi/libgade-codegen | e9ec027ceb9c2d041725b1745fbcc909cb4d1db0 | [
"MIT"
] | null | null | null | token.py | ellamosi/libgade-codegen | e9ec027ceb9c2d041725b1745fbcc909cb4d1db0 | [
"MIT"
] | null | null | null | token.py | ellamosi/libgade-codegen | e9ec027ceb9c2d041725b1745fbcc909cb4d1db0 | [
"MIT"
] | null | null | null | class Token:
def __init__(self):
self.content = []
def add_content(self, content):
self.content.append(content)
def close(self):
if len(self.content) == 0:
raise Exception("Content for token '" + self.token_name() + "' is missing")
| 23.454545 | 81 | 0.643411 | 34 | 258 | 4.705882 | 0.529412 | 0.275 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.209302 | 258 | 10 | 82 | 25.8 | 0.779412 | 0 | 0 | 0 | 0 | 0 | 0.120155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b3bab7acbcfc9a3e9170b17c0b6e3dfb0fef9dc7 | 14 | py | Python | joml/__init__.py | jjerphan/joml | 142108b08d82e06dcdddf00b659177b166c42db8 | [
"MIT"
] | null | null | null | joml/__init__.py | jjerphan/joml | 142108b08d82e06dcdddf00b659177b166c42db8 | [
"MIT"
] | 9 | 2018-08-28T10:36:03.000Z | 2021-02-06T05:57:19.000Z | joml/__init__.py | jjerphan/joml | 142108b08d82e06dcdddf00b659177b166c42db8 | [
"MIT"
] | 1 | 2018-09-12T01:46:16.000Z | 2018-09-12T01:46:16.000Z | name = "joml"
| 7 | 13 | 0.571429 | 2 | 14 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 14 | 1 | 14 | 14 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 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 |
b3bf068919c953fee15dd3a15d11fc9ad492d41b | 42,009 | py | Python | quantifiedcode/migrations/versions/a2e0f8f4b344_initial_models.py | marcinguy/quantifiedcode | cafc8b99d56a5e51820421af5d77be8b736ab03d | [
"BSD-3-Clause"
] | 118 | 2017-01-03T18:18:29.000Z | 2022-02-06T15:32:02.000Z | quantifiedcode/migrations/versions/a2e0f8f4b344_initial_models.py | marcinguy/quantifiedcode | cafc8b99d56a5e51820421af5d77be8b736ab03d | [
"BSD-3-Clause"
] | 14 | 2016-12-21T11:26:48.000Z | 2022-03-02T10:32:24.000Z | quantifiedcode/migrations/versions/a2e0f8f4b344_initial_models.py | marcinguy/quantifiedcode | cafc8b99d56a5e51820421af5d77be8b736ab03d | [
"BSD-3-Clause"
] | 26 | 2017-08-01T10:00:16.000Z | 2022-02-06T15:31:55.000Z | """Initial models.
Revision ID: a2e0f8f4b344
Revises:
Create Date: 2016-11-20 23:02:51.424015
"""
# revision identifiers, used by Alembic.
revision = 'a2e0f8f4b344'
down_revision = None
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto gene... | 70.015 | 169 | 0.727035 | 5,725 | 42,009 | 5.071441 | 0.027074 | 0.066543 | 0.076049 | 0.095061 | 0.877454 | 0.844286 | 0.77485 | 0.681064 | 0.639905 | 0.480023 | 0 | 0.005994 | 0.094575 | 42,009 | 599 | 170 | 70.131886 | 0.757335 | 0.006689 | 0 | 0.22031 | 0 | 0 | 0.356901 | 0.154071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003442 | false | 0.008606 | 0.003442 | 0 | 0.006885 | 0.006885 | 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 |
b3c5892cc22f77a510d9793bfabef9653585e1df | 654 | py | Python | CriptoBot/menu.py | vitorcardmore/CriptoBot | 42cb287e68d288f0f4fa629b972fb10185908ecb | [
"MIT"
] | null | null | null | CriptoBot/menu.py | vitorcardmore/CriptoBot | 42cb287e68d288f0f4fa629b972fb10185908ecb | [
"MIT"
] | null | null | null | CriptoBot/menu.py | vitorcardmore/CriptoBot | 42cb287e68d288f0f4fa629b972fb10185908ecb | [
"MIT"
] | 2 | 2020-10-26T22:42:03.000Z | 2021-07-29T16:12:46.000Z | class Menu:
def __init__(self):
self.divMenu = '=' * 40
self.infoBot = 'CriptoBot / Versao: 1.1.2'
self.desenvolvedor = 'Guilherme Malaquias'
def inicial_menu(self) -> str:
return f'{self.divMenu}\n0 - Consultar Moeda\n1 - Consultar Moeda Por Intervalo\n\n2 - Para sair\n{self.d... | 38.470588 | 121 | 0.616208 | 92 | 654 | 4.293478 | 0.532609 | 0.167089 | 0.083544 | 0.129114 | 0.192405 | 0.146835 | 0.146835 | 0 | 0 | 0 | 0 | 0.02988 | 0.232416 | 654 | 16 | 122 | 40.875 | 0.756972 | 0 | 0 | 0 | 0 | 0.166667 | 0.513761 | 0.033639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.25 | 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 |
b3cfe19a755ad6a92d71c21e3ac7042ed597ee96 | 1,076 | py | Python | project/server/models/user.py | TobiasPrt/Smartphoniker-shop | 6b74a3cc1c81db7a56d70609dbca29ddeec3053f | [
"MIT"
] | 2 | 2020-05-11T08:46:45.000Z | 2020-05-11T09:09:57.000Z | project/server/models/user.py | TobiasPrt/Smartphoniker-shop | 6b74a3cc1c81db7a56d70609dbca29ddeec3053f | [
"MIT"
] | 4 | 2021-02-19T13:31:53.000Z | 2022-02-20T13:34:10.000Z | project/server/models/user.py | TobiasPrt/Smartphoniker-shop | 6b74a3cc1c81db7a56d70609dbca29ddeec3053f | [
"MIT"
] | 5 | 2020-04-27T16:25:39.000Z | 2020-06-07T16:03:15.000Z | # project/server/user.py
import datetime
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from project.server import db
from project.server.models.base import BaseModel
class User(BaseModel, UserMixin):
__tablename__ = "users"
id = db.... | 32.606061 | 90 | 0.719331 | 135 | 1,076 | 5.562963 | 0.422222 | 0.111851 | 0.066578 | 0.04261 | 0.050599 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.185874 | 1,076 | 32 | 91 | 33.625 | 0.850457 | 0.020446 | 0 | 0 | 1 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.409091 | 0.227273 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
b3d16dfa68d50178714fa515f70e062410eeedc9 | 51 | py | Python | src/debugpy/_vendored/pydevd/tests_python/resources/not_my_code/not_my_coroutine.py | r3m0t/debugpy | 090e3c3ef5758e5b316514c9d6f44f9b9b488cf1 | [
"MIT"
] | 695 | 2020-01-30T14:34:51.000Z | 2022-03-31T09:31:57.000Z | src/debugpy/_vendored/pydevd/tests_python/resources/not_my_code/not_my_coroutine.py | r3m0t/debugpy | 090e3c3ef5758e5b316514c9d6f44f9b9b488cf1 | [
"MIT"
] | 1,095 | 2018-03-01T00:50:11.000Z | 2019-05-06T17:44:15.000Z | src/debugpy/_vendored/pydevd/tests_python/resources/not_my_code/not_my_coroutine.py | r3m0t/debugpy | 090e3c3ef5758e5b316514c9d6f44f9b9b488cf1 | [
"MIT"
] | 66 | 2020-01-30T13:10:38.000Z | 2022-03-29T07:11:17.000Z |
async def call1(callback):
await callback()
| 8.5 | 26 | 0.666667 | 6 | 51 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.235294 | 51 | 5 | 27 | 10.2 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b60e17e89a7d8e1ca57601d6a9fe2ee56c00f391 | 407 | py | Python | util/uatterminal.py | black-sliver/UAT | f840b76a52db49d7c5bf0aaeded52cd732db4927 | [
"MIT"
] | null | null | null | util/uatterminal.py | black-sliver/UAT | f840b76a52db49d7c5bf0aaeded52cd732db4927 | [
"MIT"
] | null | null | null | util/uatterminal.py | black-sliver/UAT | f840b76a52db49d7c5bf0aaeded52cd732db4927 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from websockets.__main__ import main
import sys
if __name__ == '__main__':
if len(sys.argv) < 2:
sys.argv.append("ws://localhost:65399")
elif sys.argv[1][0:5] != "ws://" and sys.argv[1][0:6] != "wss://":
if ":" not in sys.argv[1]:
sys.argv[1] = "ws://" + sys.argv[... | 27.133333 | 70 | 0.513514 | 61 | 407 | 3.229508 | 0.442623 | 0.319797 | 0.284264 | 0.091371 | 0.182741 | 0.182741 | 0.182741 | 0 | 0 | 0 | 0 | 0.072848 | 0.257985 | 407 | 14 | 71 | 29.071429 | 0.57947 | 0.039312 | 0 | 0 | 0 | 0 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3734a58db2915847a839f8b06df4c9cd9d9e560b | 409 | py | Python | password_webapp_project/password_import_export_app/urls.py | wojtek9502/django-password-webapp | 9c2fc40c61dcf19267b4409ef5cca2cb66dd2002 | [
"MIT"
] | 1 | 2021-04-28T19:55:05.000Z | 2021-04-28T19:55:05.000Z | password_webapp_project/password_import_export_app/urls.py | wojtek9502/django-password-webapp | 9c2fc40c61dcf19267b4409ef5cca2cb66dd2002 | [
"MIT"
] | null | null | null | password_webapp_project/password_import_export_app/urls.py | wojtek9502/django-password-webapp | 9c2fc40c61dcf19267b4409ef5cca2cb66dd2002 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'password_import_export_app'
urlpatterns = [
path('export_csv/', views.PasswordExportToCSV.as_view(), name='export_to_csv'),
path('import_csv/upload/', views.PasswordImportFromCsvFile.as_view(), name='import_from_csv_upload'),
path('import_csv/lo... | 37.181818 | 109 | 0.772616 | 52 | 409 | 5.730769 | 0.384615 | 0.060403 | 0.100671 | 0.107383 | 0.154362 | 0.154362 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09291 | 409 | 10 | 110 | 40.9 | 0.803235 | 0 | 0 | 0 | 0 | 0 | 0.308068 | 0.117359 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
3762b29ec3abcb88231683fa6e037696dd3fd751 | 735 | py | Python | axonius_api_client/cli/grp_system/__init__.py | rwils83/axonius_api_client | 1990ed4d1287482a4648dc51edcaa5eb08255f5b | [
"MIT"
] | null | null | null | axonius_api_client/cli/grp_system/__init__.py | rwils83/axonius_api_client | 1990ed4d1287482a4648dc51edcaa5eb08255f5b | [
"MIT"
] | 3 | 2021-05-18T14:28:30.000Z | 2021-09-06T20:01:56.000Z | axonius_api_client/cli/grp_system/__init__.py | rwils83/axonius_api_client | 1990ed4d1287482a4648dc51edcaa5eb08255f5b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Command line interface for Axonius API Client."""
import click
from ..context import AliasedGroup
from . import (
grp_central_core,
grp_discover,
grp_meta,
grp_nodes,
grp_roles,
grp_settings,
grp_users,
)
@click.group(cls=AliasedGroup)
def system():
"""Group... | 23.709677 | 52 | 0.778231 | 102 | 735 | 5.303922 | 0.333333 | 0.149723 | 0.266174 | 0.316081 | 0.279113 | 0.194085 | 0 | 0 | 0 | 0 | 0 | 0.001534 | 0.112925 | 735 | 30 | 53 | 24.5 | 0.828221 | 0.137415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | true | 0 | 0.136364 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3783188c77e81848609fd2ace4adef4cd19f304f | 570 | py | Python | spirit/comment/utils.py | santeyio/phantastesproject | 5ce1e2cb59e8283fe280e01d0e185be62cd4001a | [
"MIT"
] | 1 | 2016-02-29T01:26:42.000Z | 2016-02-29T01:26:42.000Z | spirit/comment/utils.py | santeyio/phantastesproject | 5ce1e2cb59e8283fe280e01d0e185be62cd4001a | [
"MIT"
] | 16 | 2015-08-10T18:28:18.000Z | 2022-03-11T23:12:48.000Z | spirit/comment/utils.py | shriyanka/daemo-forum | 58c555f69208beedbb0c09f7b7d1e32ab741b2c5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from ..topic.notification.models import TopicNotification, UNDEFINED
from ..topic.unread.models import TopicUnread
def comment_posted(comment, mentions):
# Todo test detail views
TopicNotification.create_maybe(user=comment.user, comment=comment... | 38 | 88 | 0.805263 | 65 | 570 | 6.830769 | 0.476923 | 0.220721 | 0.141892 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001965 | 0.107018 | 570 | 15 | 89 | 38 | 0.870334 | 0.077193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
37943f0bb4f7d9371aa14a7627f522d0f8f3279c | 8,676 | py | Python | pattern_matching/core/pattern.py | Xython/pattern-matching | 17ccdb68189353f1c63032013f5ef6f1ca4c0902 | [
"MIT"
] | 20 | 2017-12-31T05:45:47.000Z | 2021-05-15T22:08:21.000Z | pattern_matching/core/pattern.py | Xython/Destruct.py | 17ccdb68189353f1c63032013f5ef6f1ca4c0902 | [
"MIT"
] | null | null | null | pattern_matching/core/pattern.py | Xython/Destruct.py | 17ccdb68189353f1c63032013f5ef6f1ca4c0902 | [
"MIT"
] | 1 | 2018-01-12T04:54:19.000Z | 2018-01-12T04:54:19.000Z | from inspect import getfullargspec
from typing import Union, List, Optional
import operator
from collections import namedtuple
Patch = namedtuple('Patch', ['var'])
match_err = object()
class Pattern:
def match(self, expr):
raise NotImplemented
def __repr__(self):
return self.__str__()
cl... | 28.352941 | 79 | 0.557746 | 1,070 | 8,676 | 4.24486 | 0.113084 | 0.053501 | 0.042272 | 0.03963 | 0.560326 | 0.49934 | 0.46081 | 0.415015 | 0.320343 | 0.261339 | 0 | 0.00138 | 0.33172 | 8,676 | 305 | 80 | 28.445902 | 0.781994 | 0.00438 | 0 | 0.373874 | 0 | 0 | 0.023625 | 0.010654 | 0 | 0 | 0 | 0 | 0.004505 | 1 | 0.238739 | false | 0.004505 | 0.018018 | 0.166667 | 0.554054 | 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 |
37a046bc54b84f444441f054b4745fd2f61ef66e | 152 | py | Python | seahub/dtable/apps.py | odontomachus/seahub | 5b6f2153921da21a473d9ff20ce443d40efc93ab | [
"Apache-2.0"
] | null | null | null | seahub/dtable/apps.py | odontomachus/seahub | 5b6f2153921da21a473d9ff20ce443d40efc93ab | [
"Apache-2.0"
] | null | null | null | seahub/dtable/apps.py | odontomachus/seahub | 5b6f2153921da21a473d9ff20ce443d40efc93ab | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class DtableConfig(AppConfig):
name = 'dtable'
| 16.888889 | 39 | 0.730263 | 18 | 152 | 5.888889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.164474 | 152 | 8 | 40 | 19 | 0.826772 | 0.138158 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
807e867278e2a4d545edd6e60a577a55d74e975f | 240 | py | Python | shell.py | tuseef123/Countries-Api-Django-REST-Framework | 7a0d919d97ba61cecbc096ecbc2ebf80230bcf9a | [
"MIT"
] | null | null | null | shell.py | tuseef123/Countries-Api-Django-REST-Framework | 7a0d919d97ba61cecbc096ecbc2ebf80230bcf9a | [
"MIT"
] | null | null | null | shell.py | tuseef123/Countries-Api-Django-REST-Framework | 7a0d919d97ba61cecbc096ecbc2ebf80230bcf9a | [
"MIT"
] | null | null | null | #import subprocess as s
#s.call('start',shell=True)
import os
try:
os.system('cmd /c "virtualenv venv & pip install django & django-admin startproject worldCountries . & python manage.py startapp new_app"')
except:
print('nothing')
| 30 | 143 | 0.729167 | 34 | 240 | 5.117647 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 240 | 7 | 144 | 34.285714 | 0.852941 | 0.2 | 0 | 0 | 0 | 0.2 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
80a67c38dedb8dd068bc14c22ec98d181ae95723 | 265 | py | Python | src/python/dxl/fs/path.old/web.py | Hong-Xiang/dxfs | df9125061490ed413bbdbd474e8a91bc40dbf74e | [
"MIT"
] | null | null | null | src/python/dxl/fs/path.old/web.py | Hong-Xiang/dxfs | df9125061490ed413bbdbd474e8a91bc40dbf74e | [
"MIT"
] | null | null | null | src/python/dxl/fs/path.old/web.py | Hong-Xiang/dxfs | df9125061490ed413bbdbd474e8a91bc40dbf74e | [
"MIT"
] | null | null | null | from flask_restful import Resource
from .model import Path
class PathResource(Resource):
def get(self, path):
return {'path': Path(path).abs}
def add_api(api, root, name='path'):
api.add_resource(PathResource, root + '/{0}/<path>'.format(name))
| 22.083333 | 69 | 0.683019 | 37 | 265 | 4.810811 | 0.540541 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.166038 | 265 | 11 | 70 | 24.090909 | 0.800905 | 0 | 0 | 0 | 0 | 0 | 0.071698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 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 |
80f858ee93116c3b9c058f38721ad4eb2bf6f6df | 391 | py | Python | tests/test_main/test_dicomphi.py | medcognetics/dicom-utils | 6eec1ac429b18fda58b9e7f1206f8718e08af0e9 | [
"Apache-2.0"
] | null | null | null | tests/test_main/test_dicomphi.py | medcognetics/dicom-utils | 6eec1ac429b18fda58b9e7f1206f8718e08af0e9 | [
"Apache-2.0"
] | 14 | 2021-07-03T18:00:53.000Z | 2022-03-09T20:33:55.000Z | tests/test_main/test_dicomphi.py | medcognetics/dicom-utils | 6eec1ac429b18fda58b9e7f1206f8718e08af0e9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import runpy
import sys
from tests.test_main.test_dicom_types import dicom_folder
# Necessary so that "dicom_folder" is not seen as unused
dicom_folder = dicom_folder
def test_dicomphi(dicom_folder, tmp_path):
sys.argv = [sys.argv[0], str(tmp_path)]
runpy.run_m... | 24.4375 | 85 | 0.749361 | 63 | 391 | 4.349206 | 0.619048 | 0.20073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.130435 | 391 | 15 | 86 | 26.066667 | 0.8 | 0.248082 | 0 | 0 | 0 | 0 | 0.109966 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 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 |
80fcd0a84635546be06f70ca2a316840f0486b05 | 140 | py | Python | config_web/upheno_ontology.py | NikkiBytes/pending.api | 3c83bb8e413c3032a3a4539d19a779b5f0b67650 | [
"Apache-2.0"
] | 3 | 2019-02-17T23:36:35.000Z | 2022-03-01T16:43:06.000Z | config_web/upheno_ontology.py | NikkiBytes/pending.api | 3c83bb8e413c3032a3a4539d19a779b5f0b67650 | [
"Apache-2.0"
] | 56 | 2019-01-26T16:34:12.000Z | 2022-03-23T06:57:03.000Z | config_web/upheno_ontology.py | NikkiBytes/pending.api | 3c83bb8e413c3032a3a4539d19a779b5f0b67650 | [
"Apache-2.0"
] | 6 | 2020-10-22T17:37:54.000Z | 2022-03-01T16:56:55.000Z |
ES_HOST = 'localhost:9200'
ES_INDEX = 'pending-upheno_ontology'
ES_DOC_TYPE = 'phenotype'
API_PREFIX = 'upheno_ontology'
API_VERSION = ''
| 17.5 | 36 | 0.757143 | 19 | 140 | 5.157895 | 0.736842 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.121429 | 140 | 7 | 37 | 20 | 0.764228 | 0 | 0 | 0 | 0 | 0 | 0.438849 | 0.165468 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
03803648b15995be00b380a501710535ba8a2259 | 407 | py | Python | servo_pws_mapping.py | kenttw/BrachioGraph | 535df4048281693f406dc9678c99af16852adfd1 | [
"MIT"
] | 2 | 2021-01-18T02:42:15.000Z | 2021-01-28T09:14:33.000Z | servo_pws_mapping.py | kenttw/BrachioGraph | 535df4048281693f406dc9678c99af16852adfd1 | [
"MIT"
] | null | null | null | servo_pws_mapping.py | kenttw/BrachioGraph | 535df4048281693f406dc9678c99af16852adfd1 | [
"MIT"
] | null | null | null | servo_a_pw = [[-90.0, 2463]
[-86.4, 2423]
[-72.0, 2263]
[-56.6, 2093]
[-43.2, 2013]
[-28.8, 1793]
[-14.4, 1646]
[0.0, 1436]
[14.4, 1276]
[28.8, 1096]
[43.2, 916]
[56.... | 25.4375 | 27 | 0.267813 | 48 | 407 | 2.229167 | 0.625 | 0.084112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.553073 | 0.560197 | 407 | 15 | 28 | 27.133333 | 0.044693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
03b1bdb95fcdfb32ef5d8620d14e914fa5b8814f | 13,470 | py | Python | Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_fpga.py | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 5 | 2019-11-11T07:57:26.000Z | 2022-03-28T08:26:53.000Z | Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_fpga.py | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 3 | 2019-09-05T21:47:07.000Z | 2019-09-17T18:10:45.000Z | Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_fpga.py | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 11 | 2019-07-20T00:16:32.000Z | 2022-01-11T14:17:48.000Z | # Copyright (C) Microsoft Corporation. All rights reserved.
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#!/usr/bin... | 45.201342 | 113 | 0.518486 | 1,369 | 13,470 | 4.871439 | 0.109569 | 0.075574 | 0.062378 | 0.077973 | 0.783476 | 0.719898 | 0.643275 | 0.589894 | 0.490778 | 0.431549 | 0 | 0.011423 | 0.33712 | 13,470 | 297 | 114 | 45.353535 | 0.735469 | 0.04343 | 0 | 0.365079 | 0 | 0 | 0.150385 | 0.017845 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.121693 | 0.010582 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
03dfde424caf0567737c1eb636d5a55fda8cc550 | 1,744 | py | Python | tests/service_account/testSATokenUtils.py | skyflowapi/skyflow-python | 1c7220de6698fd6a807932d3d3846b7fe4c61a5c | [
"MIT"
] | 2 | 2022-03-08T22:08:34.000Z | 2022-03-31T15:36:23.000Z | tests/service_account/testSATokenUtils.py | skyflowapi/skyflow-python | 1c7220de6698fd6a807932d3d3846b7fe4c61a5c | [
"MIT"
] | 1 | 2022-03-23T04:55:58.000Z | 2022-03-23T04:55:58.000Z | tests/service_account/testSATokenUtils.py | skyflowapi/skyflow-python | 1c7220de6698fd6a807932d3d3846b7fe4c61a5c | [
"MIT"
] | 4 | 2022-01-04T10:38:36.000Z | 2022-01-27T06:16:45.000Z | import os
import unittest
from dotenv import dotenv_values
from skyflow.service_account._token import *
from skyflow.service_account import is_expired
class TestGenerateBearerToken(unittest.TestCase):
def setUp(self) -> None:
self.dataPath = os.path.join(
os.getcwd(), 'tests/service_account/... | 49.828571 | 757 | 0.791284 | 123 | 1,744 | 11.081301 | 0.504065 | 0.026412 | 0.04182 | 0.046222 | 0.110051 | 0.089508 | 0 | 0 | 0 | 0 | 0 | 0.069595 | 0.151376 | 1,744 | 34 | 758 | 51.294118 | 0.851351 | 0 | 0 | 0.185185 | 1 | 0 | 0.482798 | 0.435206 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.148148 | false | 0 | 0.185185 | 0 | 0.407407 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
03fc4245b3cc0fcac314f0f38459863e44696c7a | 302 | py | Python | iris_sdk/models/data/sites.py | NumberAI/python-bandwidth-iris | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | [
"MIT"
] | 2 | 2020-04-13T13:47:59.000Z | 2022-02-23T20:32:41.000Z | iris_sdk/models/data/sites.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2020-09-18T20:59:24.000Z | 2021-08-25T16:51:42.000Z | iris_sdk/models/data/sites.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2018-12-12T14:39:50.000Z | 2020-11-17T21:42:29.000Z | #!/usr/bin/env python
from iris_sdk.models.base_resource import BaseData, BaseResourceList
from iris_sdk.models.maps.sites import SitesMap
from iris_sdk.models.site import Site
class SitesData(SitesMap, BaseData):
def __init__(self, parent=None):
self.site = BaseResourceList(Site, self) | 30.2 | 68 | 0.781457 | 42 | 302 | 5.428571 | 0.571429 | 0.105263 | 0.144737 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129139 | 302 | 10 | 69 | 30.2 | 0.86692 | 0.066225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ff113d382c37b0c140ffa3ab5fbeaf24edfbd568 | 904 | py | Python | Website/client/migrations/0002_auto_20210427_0502.py | rutvikpadhiyar000/DBMS-Project | 5bfa258f8161a986b85461f2257a91f5d27e0b8a | [
"MIT"
] | null | null | null | Website/client/migrations/0002_auto_20210427_0502.py | rutvikpadhiyar000/DBMS-Project | 5bfa258f8161a986b85461f2257a91f5d27e0b8a | [
"MIT"
] | null | null | null | Website/client/migrations/0002_auto_20210427_0502.py | rutvikpadhiyar000/DBMS-Project | 5bfa258f8161a986b85461f2257a91f5d27e0b8a | [
"MIT"
] | 1 | 2021-04-26T13:56:01.000Z | 2021-04-26T13:56:01.000Z | # Generated by Django 3.2 on 2021-04-27 05:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('client', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='client',
name='client_DOB',
),
... | 25.111111 | 75 | 0.550885 | 84 | 904 | 5.77381 | 0.5 | 0.206186 | 0.173196 | 0.195876 | 0.387629 | 0.284536 | 0.284536 | 0 | 0 | 0 | 0 | 0.03827 | 0.335177 | 904 | 35 | 76 | 25.828571 | 0.768719 | 0.047566 | 0 | 0.448276 | 1 | 0 | 0.131548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ff13f7a516e851277af1a9b617cfecc2fd026c16 | 1,944 | py | Python | pyNastran/converters/dev/ansys/test_ansys.py | jtran10/pyNastran | 4aed8e05b91576c2b50ee835f0497a9aad1d2cb0 | [
"BSD-3-Clause"
] | null | null | null | pyNastran/converters/dev/ansys/test_ansys.py | jtran10/pyNastran | 4aed8e05b91576c2b50ee835f0497a9aad1d2cb0 | [
"BSD-3-Clause"
] | null | null | null | pyNastran/converters/dev/ansys/test_ansys.py | jtran10/pyNastran | 4aed8e05b91576c2b50ee835f0497a9aad1d2cb0 | [
"BSD-3-Clause"
] | null | null | null | if __name__ == '__main__': # pragma: no cover
data = """
/com,*********** Create Remote Point "Internal Remote Point 39" ***********
! -------- Remote Point Used by "Fixed - Line Body To EndCap 14054021-1 d" --------
*set,_npilot,803315
_npilot474=_npilot
et,332,170
type,332
real,332
mat,332
keyo,332,2,1 ... | 21.842697 | 83 | 0.636831 | 311 | 1,944 | 3.92283 | 0.446945 | 0.054098 | 0.012295 | 0.014754 | 0.345082 | 0.337705 | 0.337705 | 0.27377 | 0.27377 | 0.27377 | 0 | 0.300508 | 0.190329 | 1,944 | 88 | 84 | 22.090909 | 0.474587 | 0.00823 | 0 | 0.2 | 0 | 0 | 0.979751 | 0.045691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ff154e1665df0e3eb691c8f0e6858678bcfb4af8 | 89 | py | Python | src/game/law_scope.py | Tequilac/Hacknarok2021 | ab4fae17afe4b109e35ba888e7a354aba18de426 | [
"MIT"
] | 1 | 2021-03-28T11:32:44.000Z | 2021-03-28T11:32:44.000Z | src/game/law_scope.py | Tequilac/Hacknarok2021 | ab4fae17afe4b109e35ba888e7a354aba18de426 | [
"MIT"
] | null | null | null | src/game/law_scope.py | Tequilac/Hacknarok2021 | ab4fae17afe4b109e35ba888e7a354aba18de426 | [
"MIT"
] | 1 | 2021-03-27T22:26:10.000Z | 2021-03-27T22:26:10.000Z | from enum import Enum, auto
class LawScope(Enum):
state = auto()
city = auto()
| 12.714286 | 27 | 0.629213 | 12 | 89 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258427 | 89 | 6 | 28 | 14.833333 | 0.848485 | 0 | 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 |
2060f1cf2eaeb9a7e196861eeafea2a4fb2752f7 | 261 | py | Python | src/bpp/migrations/0236_merge_20210202_0850.py | iplweb/django-bpp | 85f183a99d8d5027ae4772efac1e4a9f21675849 | [
"BSD-3-Clause"
] | 1 | 2017-04-27T19:50:02.000Z | 2017-04-27T19:50:02.000Z | src/bpp/migrations/0236_merge_20210202_0850.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | 41 | 2019-11-07T00:07:02.000Z | 2022-02-27T22:09:39.000Z | src/bpp/migrations/0236_merge_20210202_0850.py | iplweb/bpp | f027415cc3faf1ca79082bf7bacd4be35b1a6fdf | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.0.11 on 2021-02-02 07:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("bpp", "0235_auto_20210125_0042"),
("bpp", "0235_auto_20210201_1305"),
]
operations = []
| 18.642857 | 48 | 0.651341 | 33 | 261 | 4.969697 | 0.787879 | 0.085366 | 0.134146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236453 | 0.222222 | 261 | 13 | 49 | 20.076923 | 0.571429 | 0.176245 | 0 | 0 | 1 | 0 | 0.244131 | 0.215962 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2076da38f41ca9e6d8b90d59480fe73560687047 | 157 | py | Python | abyssal_modules/metrics.py | kimnnmadsen/eve-abyssal-market | 1e07498b98be9282b969badff51d55258c72e7ed | [
"MIT"
] | 13 | 2018-08-23T14:27:22.000Z | 2020-12-07T12:35:38.000Z | abyssal_modules/metrics.py | kimnnmadsen/eve-abyssal-market | 1e07498b98be9282b969badff51d55258c72e7ed | [
"MIT"
] | 25 | 2018-10-09T14:37:33.000Z | 2020-05-15T20:21:48.000Z | abyssal_modules/metrics.py | kimnnmadsen/eve-abyssal-market | 1e07498b98be9282b969badff51d55258c72e7ed | [
"MIT"
] | 4 | 2021-08-12T05:34:05.000Z | 2022-01-06T05:28:36.000Z | from prometheus_client import Counter
COUNTER_MODULES_CREATED = Counter(
'mutaplasmid_modules_created',
'Number of modules created',
['type']
)
| 19.625 | 37 | 0.745223 | 17 | 157 | 6.588235 | 0.647059 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171975 | 157 | 7 | 38 | 22.428571 | 0.861538 | 0 | 0 | 0 | 0 | 0 | 0.356688 | 0.171975 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
2077f7809cd4ce3f2d4711a1abee0402ce15d0a1 | 312 | py | Python | eceval/syntax.py | nalssee/SICP | b19144bd939a461cf9f242dd9d144ca012b37932 | [
"MIT"
] | 2 | 2015-11-08T18:22:36.000Z | 2016-05-26T15:24:54.000Z | eceval/syntax.py | nalssee/SICP | b19144bd939a461cf9f242dd9d144ca012b37932 | [
"MIT"
] | null | null | null | eceval/syntax.py | nalssee/SICP | b19144bd939a461cf9f242dd9d144ca012b37932 | [
"MIT"
] | null | null | null | def is_self_evaluating(exp):
"""number, string, booleans
"""
return \
isinstance(exp, int) or isinstance(exp, float) \
or (isinstance(exp, str) and len(exp) >= 2 and exp[0] == '"' and exp[-1] == '"') \
or exp == 'true' or exp == 'false'
def text_of_quotation(exp):
pass
| 26 | 90 | 0.557692 | 42 | 312 | 4.047619 | 0.595238 | 0.229412 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0131 | 0.266026 | 312 | 11 | 91 | 28.363636 | 0.729258 | 0.076923 | 0 | 0 | 0 | 0 | 0.039711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
207b5406bbe2223199a5b2634d6c4efeaed6f358 | 79 | py | Python | Silver/Silver_V/1427.py | masterTyper/baekjoon_solved_ac | b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c | [
"MIT"
] | null | null | null | Silver/Silver_V/1427.py | masterTyper/baekjoon_solved_ac | b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c | [
"MIT"
] | null | null | null | Silver/Silver_V/1427.py | masterTyper/baekjoon_solved_ac | b9ce14d9bdaa5b5b06735ad075fb827de9f44b9c | [
"MIT"
] | null | null | null | N = list(map(int, input()))
print(''.join(map(str, sorted(N, reverse=True))))
| 19.75 | 49 | 0.620253 | 13 | 79 | 3.769231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 79 | 3 | 50 | 26.333333 | 0.690141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2083751bf0d1b861a87f6eac68501c40c7950187 | 196 | py | Python | polidoro_gitlab/__init__.py | heitorpolidoro/polidoro_gitlab | b9ef7260eaa667b0d03a7fd805e140eb09a1bce9 | [
"MIT"
] | null | null | null | polidoro_gitlab/__init__.py | heitorpolidoro/polidoro_gitlab | b9ef7260eaa667b0d03a7fd805e140eb09a1bce9 | [
"MIT"
] | 5 | 2021-11-30T18:51:04.000Z | 2021-12-13T13:53:04.000Z | polidoro_gitlab/__init__.py | heitorpolidoro/polidoro-gitlab | b9ef7260eaa667b0d03a7fd805e140eb09a1bce9 | [
"MIT"
] | null | null | null | import subprocess
from polidoro_gitlab.gitlab import GitLab, Project, Pipeline
NAME = 'polidoro_gitlab'
VERSION = subprocess.run(['cat', 'VERSION'], capture_output=True).stdout.strip().decode()
| 28 | 89 | 0.77551 | 24 | 196 | 6.208333 | 0.708333 | 0.187919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091837 | 196 | 6 | 90 | 32.666667 | 0.837079 | 0 | 0 | 0 | 0 | 0 | 0.127551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
209ef2f28a9cfbed808fd92f2dfdf7dbd1aeb570 | 129 | py | Python | quirk/__init__.py | ankane/quirk | 332a912b4cf08c25c32c38b88dcaad59133520c0 | [
"MIT"
] | 23 | 2017-02-24T11:04:40.000Z | 2020-11-06T07:05:07.000Z | predict/__init__.py | melvynkim/predict | dd4a2913fe1c661d711e6969ffbefeba8af9b2d3 | [
"MIT"
] | 1 | 2018-07-11T07:55:05.000Z | 2018-07-11T07:55:05.000Z | predict/__init__.py | melvynkim/predict | dd4a2913fe1c661d711e6969ffbefeba8af9b2d3 | [
"MIT"
] | 2 | 2017-06-06T22:10:33.000Z | 2020-06-24T23:35:01.000Z | from .classifier import Classifier
from .regressor import Regressor
__all__ = ['Classifier', 'Regressor']
__version__ = '0.1.3'
| 21.5 | 37 | 0.75969 | 15 | 129 | 6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0.124031 | 129 | 5 | 38 | 25.8 | 0.769912 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
20bd974ee643d37a32ad5c80f5ddcb0a071e8639 | 2,981 | py | Python | imnetdb/rpools/client.py | imnetdb/imnetdb | f7e1ef41be2f3f2089c666dbf602ea99112bf516 | [
"Apache-2.0"
] | 5 | 2019-03-13T20:34:36.000Z | 2020-04-18T15:35:13.000Z | imnetdb/rpools/client.py | imnetdb/imnetdb | f7e1ef41be2f3f2089c666dbf602ea99112bf516 | [
"Apache-2.0"
] | 2 | 2019-02-24T18:22:10.000Z | 2019-05-07T10:35:32.000Z | imnetdb/rpools/client.py | imnetdb/imnetdb | f7e1ef41be2f3f2089c666dbf602ea99112bf516 | [
"Apache-2.0"
] | 2 | 2019-04-17T23:42:55.000Z | 2019-04-20T15:55:43.000Z | # Copyright 2019 Jeremy Schulman, nwkautomaniac@gmail.com
#
# 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 l... | 35.915663 | 106 | 0.642402 | 385 | 2,981 | 4.888312 | 0.425974 | 0.031881 | 0.036132 | 0.027099 | 0.032944 | 0.032944 | 0.032944 | 0.032944 | 0 | 0 | 0 | 0.008364 | 0.278095 | 2,981 | 82 | 107 | 36.353659 | 0.866171 | 0.670245 | 0 | 0 | 0 | 0 | 0.038285 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
20dacba3e0a301c5e764e081b6a4f7570f35369b | 118,430 | py | Python | pysnmp-with-texts/IBM-OSA-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/IBM-OSA-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/IBM-OSA-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module IBM-OSA-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IBM-OSA-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:51:11 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 195.429043 | 10,333 | 0.792949 | 13,923 | 118,430 | 6.742728 | 0.089349 | 0.048062 | 0.084108 | 0.008394 | 0.51968 | 0.420339 | 0.381843 | 0.366525 | 0.344422 | 0.322916 | 0 | 0.046319 | 0.09289 | 118,430 | 605 | 10,334 | 195.752066 | 0.827551 | 0.002668 | 0 | 0.013423 | 0 | 0.20302 | 0.386512 | 0.051657 | 0 | 0 | 0.000051 | 0 | 0 | 1 | 0 | false | 0.001678 | 0.011745 | 0 | 0.011745 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
20e2f6675f768e26b7817f0a0c86bd8f61cf7220 | 995 | py | Python | farmers/api/market/models.py | BuildForSDG/Farmers-Edge-backend | 4924c7f73f3e84698fde6a3d8a893c1ca282ed88 | [
"MIT"
] | 2 | 2020-05-17T18:20:50.000Z | 2021-04-20T21:42:43.000Z | farmers/api/market/models.py | BuildForSDG/Farmers-Edge-backend | 4924c7f73f3e84698fde6a3d8a893c1ca282ed88 | [
"MIT"
] | 19 | 2020-05-14T14:36:31.000Z | 2022-03-12T00:34:40.000Z | farmers/api/market/models.py | BuildForSDG/Farmers-Edge-backend | 4924c7f73f3e84698fde6a3d8a893c1ca282ed88 | [
"MIT"
] | 1 | 2020-05-20T20:09:35.000Z | 2020-05-20T20:09:35.000Z | from django.db import models
from django.utils import timezone
from django.conf import settings
from django.contrib.auth.models import User
class Product(models.Model):
# user = models.ForeignKey(settings.AUTH_USER_MODEL, default=None, on_delete=models.CASCADE)
retailerEmail = models.EmailField(max_length=254)... | 38.269231 | 96 | 0.756784 | 131 | 995 | 5.580153 | 0.328244 | 0.098495 | 0.172367 | 0.229822 | 0.644323 | 0.585499 | 0.585499 | 0.391245 | 0.391245 | 0.391245 | 0 | 0.028169 | 0.143719 | 995 | 25 | 97 | 39.8 | 0.829812 | 0.18191 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0.105263 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
20e3799a103413d1ebae2de8264413c623950634 | 17,497 | py | Python | tsconto.py | chkastorm/tsconto | fd705fc5484a3c6ee3766b0e341c18ddc70bd089 | [
"BSD-2-Clause"
] | null | null | null | tsconto.py | chkastorm/tsconto | fd705fc5484a3c6ee3766b0e341c18ddc70bd089 | [
"BSD-2-Clause"
] | null | null | null | tsconto.py | chkastorm/tsconto | fd705fc5484a3c6ee3766b0e341c18ddc70bd089 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python3
################################################################################
### ###
### Script : Telnet-Simulated-CONsole shortcut TO consoles of guests in GNS3 ###
### Abbreviation : tsconto ... | 54.170279 | 243 | 0.607818 | 2,112 | 17,497 | 4.692235 | 0.107481 | 0.035318 | 0.090111 | 0.038749 | 0.795964 | 0.748739 | 0.727548 | 0.709284 | 0.666095 | 0.595964 | 0 | 0.009854 | 0.263417 | 17,497 | 322 | 244 | 54.338509 | 0.759078 | 0.028576 | 0 | 0.664122 | 0 | 0.026718 | 0.222595 | 0.022607 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022901 | false | 0.015267 | 0.026718 | 0 | 0.049618 | 0.179389 | 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 |
457733343cca642cbffbb70a0e251eea64564f12 | 112 | py | Python | tcsdk/api/performance/__init__.py | tsbxmw/tcsdk | fb4042cdece83f681a9057ff36ca09954988a31d | [
"MIT"
] | 1 | 2019-12-04T09:30:06.000Z | 2019-12-04T09:30:06.000Z | tcsdk/api/performance/__init__.py | tsbxmw/tcsdk | fb4042cdece83f681a9057ff36ca09954988a31d | [
"MIT"
] | null | null | null | tcsdk/api/performance/__init__.py | tsbxmw/tcsdk | fb4042cdece83f681a9057ff36ca09954988a31d | [
"MIT"
] | null | null | null | from .performance import PerformanceApi, Task, Label
PerformanceApi = PerformanceApi
Task = Task
Label = Label
| 18.666667 | 52 | 0.803571 | 12 | 112 | 7.5 | 0.5 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 112 | 5 | 53 | 22.4 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4594d5e9c6171b900540cc9f0d141171ef10e9d4 | 23,620 | py | Python | tupan/lib/extensions.py | ggf84/tupan | 67d3aa103d77248a04e8f112930ba7bdb55024b2 | [
"MIT"
] | 1 | 2016-06-12T19:43:51.000Z | 2016-06-12T19:43:51.000Z | tupan/lib/extensions.py | ggf84/tupan | 67d3aa103d77248a04e8f112930ba7bdb55024b2 | [
"MIT"
] | 1 | 2021-09-24T13:28:57.000Z | 2021-09-24T13:28:57.000Z | tupan/lib/extensions.py | ggf84/tupan | 67d3aa103d77248a04e8f112930ba7bdb55024b2 | [
"MIT"
] | 3 | 2015-11-03T15:35:31.000Z | 2021-03-02T17:41:27.000Z | # -*- coding: utf-8 -*-
#
"""This module implements highlevel interfaces for C/CL-extensions.
"""
from __future__ import print_function, division
import sys
import logging
from .utils import ctype
from .utils.timing import decallmethods, timings
__all__ = ["Phi", "phi",
"Acc", "acc",
"AccJer... | 35.253731 | 75 | 0.545766 | 3,261 | 23,620 | 3.675253 | 0.07421 | 0.075428 | 0.137505 | 0.145682 | 0.759032 | 0.750605 | 0.742428 | 0.648728 | 0.644556 | 0.644556 | 0 | 0.005355 | 0.335902 | 23,620 | 669 | 76 | 35.306428 | 0.758702 | 0.031837 | 0 | 0.589942 | 0 | 0 | 0.03361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.019342 | 0.007737 | 0.121857 | 0.001934 | 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 |
4596166c7adf25cdd4d41a87929b5820e68f0550 | 191 | py | Python | tests/services/test_cli.py | rscohn2/sensepy | 1c00cd6d0c1920057cc732d6c5b6a791b7e79e36 | [
"MIT"
] | null | null | null | tests/services/test_cli.py | rscohn2/sensepy | 1c00cd6d0c1920057cc732d6c5b6a791b7e79e36 | [
"MIT"
] | 1 | 2021-02-20T17:26:15.000Z | 2021-02-20T17:26:15.000Z | tests/services/test_cli.py | zignalz/zignalz | 1c00cd6d0c1920057cc732d6c5b6a791b7e79e36 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2020 Robert Cohn
#
# SPDX-License-Identifier: MIT
import pytest
from zignalz import cli
@pytest.mark.skip
def test_db_start():
cli.db.up()
cli.db.down()
| 13.642857 | 42 | 0.717277 | 28 | 191 | 4.821429 | 0.75 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0.167539 | 191 | 13 | 43 | 14.692308 | 0.823899 | 0.361257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
45a15006ad087869f30300bca8e4712962c1e859 | 286 | py | Python | ExamPrep/Assignments 2014-15/A2/Py2Q3.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | ExamPrep/Assignments 2014-15/A2/Py2Q3.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | ExamPrep/Assignments 2014-15/A2/Py2Q3.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | print 'Question 3b'
import math as m
#Variables
h1=0.5
h2=0.1
m.tanh(1+h1)
def G(h):
x=1.0
return (((4*m.tanh(x+(h/2)))-(4*m.tanh(x-(h/2))))/(3*h))-((m.tanh(x+h)-m.tanh(x-h))/(6*h))
print "at x=1 and h=0.5"
print "G(0.5) =",G(h1)
print "at x=1 and h=0.1"
print "G(0.1) =",G(h2)
| 14.3 | 91 | 0.541958 | 77 | 286 | 2.012987 | 0.324675 | 0.16129 | 0.154839 | 0.180645 | 0.393548 | 0.296774 | 0.180645 | 0 | 0 | 0 | 0 | 0.117886 | 0.13986 | 286 | 19 | 92 | 15.052632 | 0.512195 | 0.031469 | 0 | 0 | 0 | 0 | 0.214545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.416667 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
45a8da4b58e200c454ed9369441c872d55bcbeff | 187 | py | Python | stackstore/apps.py | salexkidd/django-stackstore-model | fb0bb6431dd772a80b8c9d6d2b625eae69562fa9 | [
"MIT"
] | 5 | 2020-05-28T07:04:25.000Z | 2020-09-26T05:29:46.000Z | stackstore/apps.py | salexkidd/django-stackstore-model | fb0bb6431dd772a80b8c9d6d2b625eae69562fa9 | [
"MIT"
] | 1 | 2020-09-26T05:34:19.000Z | 2020-09-26T05:34:19.000Z | stackstore/apps.py | salexkidd/django-stackstore-model | fb0bb6431dd772a80b8c9d6d2b625eae69562fa9 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class StackstoreConfig(AppConfig):
name = 'stackstore'
verbose_name = _("Stack store")
| 20.777778 | 54 | 0.764706 | 22 | 187 | 6.318182 | 0.772727 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160428 | 187 | 8 | 55 | 23.375 | 0.88535 | 0 | 0 | 0 | 0 | 0 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
45d65891a06d722f73ec82d918dc0869a9d1d47f | 141 | py | Python | src/image_uploader/urls.py | Hazzari/backend-api-uploader | 38702abe72ccc85c2bf83951ff16c71ce510f46d | [
"MIT"
] | null | null | null | src/image_uploader/urls.py | Hazzari/backend-api-uploader | 38702abe72ccc85c2bf83951ff16c71ce510f46d | [
"MIT"
] | null | null | null | src/image_uploader/urls.py | Hazzari/backend-api-uploader | 38702abe72ccc85c2bf83951ff16c71ce510f46d | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'authentication'
urlpatterns = [
path('', views.ImageViewSet.as_view()),
]
| 15.666667 | 43 | 0.70922 | 17 | 141 | 5.764706 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163121 | 141 | 8 | 44 | 17.625 | 0.830508 | 0 | 0 | 0 | 0 | 0 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
45d83074a6a311e52e10397d84bfed014e9507fd | 272 | py | Python | src/io/__init__.py | jonathan-scholbach/jargon | 1bc49efb4002b4f348b1449ca5bad32bc416dab7 | [
"MIT"
] | null | null | null | src/io/__init__.py | jonathan-scholbach/jargon | 1bc49efb4002b4f348b1449ca5bad32bc416dab7 | [
"MIT"
] | null | null | null | src/io/__init__.py | jonathan-scholbach/jargon | 1bc49efb4002b4f348b1449ca5bad32bc416dab7 | [
"MIT"
] | null | null | null | """Module for all i/o functionality."""
from .string_manipulation import title_from_path, pluralize, mask
from .clear import clear
from .colorprint import cprint
from .argument_parser import argument_parser
from .print_table import Table
from .date_diff import date_diff
| 30.222222 | 65 | 0.823529 | 40 | 272 | 5.4 | 0.575 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 272 | 8 | 66 | 34 | 0.9 | 0.121324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.333333 | 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 |
afeaa00c02e4ffc8d5fd4b255c6a2dfaae61fdbf | 5,955 | py | Python | transform/views/test_views.py | ONSdigital/sdx-transform-cora | 4f4536a6a4f9f12e6e1c5667d16e9746bd4d85db | [
"MIT"
] | null | null | null | transform/views/test_views.py | ONSdigital/sdx-transform-cora | 4f4536a6a4f9f12e6e1c5667d16e9746bd4d85db | [
"MIT"
] | 42 | 2017-03-15T11:46:44.000Z | 2018-11-13T11:52:10.000Z | transform/views/test_views.py | ONSdigital/sdx-transform-cora | 4f4536a6a4f9f12e6e1c5667d16e9746bd4d85db | [
"MIT"
] | 1 | 2021-04-11T08:11:49.000Z | 2021-04-11T08:11:49.000Z | from transform.transformers.pdf_transformer import PDFTransformer
from transform.transformers.pdf_transformer_style_cora import CoraPdfTransformerStyle
from transform.transformers.image_transformer import ImageTransformer
from transform import app
from jinja2 import Environment, PackageLoader
from flask import make_re... | 25.126582 | 103 | 0.451889 | 603 | 5,955 | 4.364842 | 0.441128 | 0.042553 | 0.028495 | 0.019377 | 0.222644 | 0.172492 | 0.172492 | 0.172492 | 0.172492 | 0.172492 | 0 | 0.262048 | 0.330982 | 5,955 | 236 | 104 | 25.233051 | 0.398594 | 0 | 0 | 0.041667 | 0 | 0 | 0.708312 | 0.024853 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013889 | false | 0 | 0.041667 | 0 | 0.069444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b300af201b5b6ca40f07dc6e4d46529eeb960016 | 35,585 | py | Python | pyaz/vmss/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/vmss/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/vmss/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | '''
Manage groupings of virtual machines in an Azure Virtual Machine Scale Set (VMSS).
'''
from .. pyaz_utils import _call_az
from . import application, diagnostics, disk, encryption, extension, identity, nic, rolling_upgrade, run_command
def create(name, resource_group, accelerated_networking=None, admin_password=No... | 78.208791 | 2,164 | 0.753295 | 5,279 | 35,585 | 4.96344 | 0.121235 | 0.03473 | 0.025189 | 0.030227 | 0.593581 | 0.559957 | 0.531448 | 0.51851 | 0.50561 | 0.483627 | 0 | 0.003336 | 0.17454 | 35,585 | 454 | 2,165 | 78.381057 | 0.888677 | 0.794492 | 0 | 0 | 0 | 0 | 0.078149 | 0.017776 | 0 | 0 | 0 | 0 | 0 | 1 | 0.479167 | false | 0.020833 | 0.041667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b315a7ab57cde2354dac3f1288b4d8c4b34ce5b5 | 329 | py | Python | app/application.py | safo-bora/MobileTestingWithAppium | 135fc898222dc82b0179f594f93117cdea0b61e7 | [
"MIT"
] | 3 | 2020-05-24T17:48:43.000Z | 2022-02-04T22:03:28.000Z | app/application.py | safo-bora/MobileTestingWithAppium | 135fc898222dc82b0179f594f93117cdea0b61e7 | [
"MIT"
] | null | null | null | app/application.py | safo-bora/MobileTestingWithAppium | 135fc898222dc82b0179f594f93117cdea0b61e7 | [
"MIT"
] | 4 | 2020-05-13T06:32:17.000Z | 2021-11-15T15:33:03.000Z | from features.pages.launch_page import LaunchPage
from features.pages.login_page import LoginPage
from features.pages.main_page import MainPage
class Application:
def __init__(self, driver):
self.launch_page = LaunchPage(driver)
self.login_page = LoginPage(driver)
self.main_page = MainPage... | 29.909091 | 49 | 0.759878 | 42 | 329 | 5.714286 | 0.404762 | 0.15 | 0.2125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 329 | 10 | 50 | 32.9 | 0.879121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b317781a0f7ed0d7d20dba0b2eb5b4bfc7c2fa2b | 181 | py | Python | Codeforces/C_The_Child_and_Toy.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/C_The_Child_and_Toy.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/C_The_Child_and_Toy.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | n,m = list(map(int,input().split()))
cost = list(map(int,input().split()))
ans=0
for i in range(m):
f,s = list(map(int,input().split()))
ans += min(cost[f-1],cost[s-1])
print(ans) | 25.857143 | 37 | 0.607735 | 37 | 181 | 2.972973 | 0.513514 | 0.190909 | 0.272727 | 0.409091 | 0.6 | 0.418182 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.104972 | 181 | 7 | 38 | 25.857143 | 0.660494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
b3757dbfeed37e72ecd596a3d9716e0a9bbc3d3e | 57 | py | Python | pyVenv/Lib/site-packages/bpython/_version.py | thephilosophicaljijutsumaster/InventoryManagement | 7c57fcc435976c39b249106642ee848da2eea201 | [
"MIT"
] | null | null | null | pyVenv/Lib/site-packages/bpython/_version.py | thephilosophicaljijutsumaster/InventoryManagement | 7c57fcc435976c39b249106642ee848da2eea201 | [
"MIT"
] | 12 | 2020-07-05T14:30:46.000Z | 2020-08-06T21:06:00.000Z | pyVenv/Lib/site-packages/bpython/_version.py | thephilosophicaljijutsumaster/InventoryManagement | 7c57fcc435976c39b249106642ee848da2eea201 | [
"MIT"
] | null | null | null | # Auto-generated file, do not edit!
__version__ = '0.19'
| 19 | 35 | 0.701754 | 9 | 57 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.157895 | 57 | 2 | 36 | 28.5 | 0.6875 | 0.578947 | 0 | 0 | 1 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2fa1084a1feeed4394f0865ef6038f23e9ec3185 | 570 | py | Python | src/webdev/server-side/hello/application.py | tangaw/cs50 | 1ed09b3199f6a366c43d3b0ecd89481b1650af17 | [
"MIT"
] | null | null | null | src/webdev/server-side/hello/application.py | tangaw/cs50 | 1ed09b3199f6a366c43d3b0ecd89481b1650af17 | [
"MIT"
] | 6 | 2021-02-07T21:47:03.000Z | 2021-03-04T20:56:34.000Z | src/webdev/server-side/hello/application.py | tangaw/cs50 | 1ed09b3199f6a366c43d3b0ecd89481b1650af17 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request
app = Flask(__name__) # Turns current file into an application
# Specifying URL path/route
@app.route("/") # `@` is a specialy Python declarator
def index():
# Render HTML template
# Use the `request` library to parse URL input "name" and store in variable `n... | 31.666667 | 84 | 0.712281 | 81 | 570 | 4.925926 | 0.617284 | 0.105263 | 0.100251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159649 | 570 | 18 | 85 | 31.666667 | 0.832985 | 0.473684 | 0 | 0 | 0 | 0 | 0.136519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2faab8a47f14e1e80ef9778047cb061953ec9fa6 | 357 | py | Python | Meus_dessafios/Exercicios2021/ex109/testes.py | DiegoSilvaHoffmann/Curso-de-Python | 62824bbd3ed42b256fda77acd49536ec7cf23b29 | [
"MIT"
] | null | null | null | Meus_dessafios/Exercicios2021/ex109/testes.py | DiegoSilvaHoffmann/Curso-de-Python | 62824bbd3ed42b256fda77acd49536ec7cf23b29 | [
"MIT"
] | null | null | null | Meus_dessafios/Exercicios2021/ex109/testes.py | DiegoSilvaHoffmann/Curso-de-Python | 62824bbd3ed42b256fda77acd49536ec7cf23b29 | [
"MIT"
] | null | null | null | from ex109 import moeda
valor = float(input('Informe um valor: R$'))
print(f'A metade de {moeda.moeda(valor)}, é {moeda.metade(valor, True)}.')
print(f'O dobro de {moeda.moeda(valor)}, é {moeda.dobro(valor, True)}.')
print(f'Com aumento de 10%, fica {moeda.aumentar(valor, 10, True)}.')
print(f'Com 15% de desconto, fica... | 51 | 74 | 0.691877 | 61 | 357 | 4.04918 | 0.442623 | 0.097166 | 0.121457 | 0.137652 | 0.186235 | 0.186235 | 0 | 0 | 0 | 0 | 0 | 0.0347 | 0.112045 | 357 | 6 | 75 | 59.5 | 0.74448 | 0 | 0 | 0 | 0 | 0 | 0.739496 | 0.240896 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.666667 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2fb88e1929d9b8ffe0a84fc88c2c6ff310a6ba11 | 228 | py | Python | config.py | gtracy/APODEmail | 328dbb610963c23af4e1ff9285cd7bf3dcce2b6c | [
"MIT"
] | 1 | 2021-09-18T11:28:16.000Z | 2021-09-18T11:28:16.000Z | config.py | gtracy/APODEmail | 328dbb610963c23af4e1ff9285cd7bf3dcce2b6c | [
"MIT"
] | 1 | 2020-01-11T22:27:00.000Z | 2020-01-12T03:38:07.000Z | config.py | gtracy/APODEmail | 328dbb610963c23af4e1ff9285cd7bf3dcce2b6c | [
"MIT"
] | null | null | null |
API_SECRET = 'fluffernutterpie'
# google reCAPTCHA sign-up
# https://www.google.com/recaptcha/admin
RECAPTCHA_KEY = '6LedVBUUAAAAANb2vWVUSByvl66ob3k9r-zSruCu'
RECAPTCHA_PRIVATE_KEY = '6LedVBUUAAAAALWe4MQ2VJQhI9rKi6GJTukS6Hrl'
| 28.5 | 66 | 0.837719 | 21 | 228 | 8.904762 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056872 | 0.074561 | 228 | 7 | 67 | 32.571429 | 0.829384 | 0.276316 | 0 | 0 | 0 | 0 | 0.596273 | 0.496894 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2fcaa216027e124c0296f7d075047c948f06e37e | 100 | py | Python | tests/runbook/roles/slow_output/main.py | acoomans/prvsn | af6b313c2e779ae4e3a9cdba0b1c3a1f4b4c085e | [
"BSD-2-Clause"
] | null | null | null | tests/runbook/roles/slow_output/main.py | acoomans/prvsn | af6b313c2e779ae4e3a9cdba0b1c3a1f4b4c085e | [
"BSD-2-Clause"
] | null | null | null | tests/runbook/roles/slow_output/main.py | acoomans/prvsn | af6b313c2e779ae4e3a9cdba0b1c3a1f4b4c085e | [
"BSD-2-Clause"
] | null | null | null |
bash('''
echo "hello"
''')
bash('''
for i in $(seq 1 10);
do
echo $i
sleep 2
done
''')
| 6.25 | 21 | 0.46 | 16 | 100 | 2.875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0.31 | 100 | 15 | 22 | 6.666667 | 0.608696 | 0 | 0 | 0.4 | 0 | 0 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2febe828324595b72252acdfcd42dc8ab022af2d | 1,156 | py | Python | scraper/storage_spiders/huyhoangvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/huyhoangvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/huyhoangvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='main-full-content']/div[@class='content-center fl']/div[@class='content-main']/h1",
'price' : "//div[@class='info-detail... | 42.814815 | 136 | 0.636678 | 148 | 1,156 | 4.891892 | 0.547297 | 0.132597 | 0.103591 | 0.078729 | 0.150552 | 0.116022 | 0.116022 | 0.116022 | 0.116022 | 0 | 0 | 0.002918 | 0.110727 | 1,156 | 26 | 137 | 44.461538 | 0.701362 | 0.121972 | 0 | 0 | 1 | 0.181818 | 0.60633 | 0.459941 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
2ff23e263f8eda218cf1246796602e91343eaac8 | 7,611 | py | Python | pymbt/constants/molecular_bio.py | klavinslab/pymbt-legacy | d638aecd954664e416ed28b30cdbbcfcb176bae5 | [
"ECL-2.0",
"Apache-2.0"
] | 34 | 2015-12-26T22:13:51.000Z | 2021-11-17T11:46:37.000Z | pymbt/constants/molecular_bio.py | klavinslab/pymbt-legacy | d638aecd954664e416ed28b30cdbbcfcb176bae5 | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2015-09-11T23:27:51.000Z | 2018-06-25T20:44:28.000Z | pymbt/constants/molecular_bio.py | klavinslab/pymbt-legacy | d638aecd954664e416ed28b30cdbbcfcb176bae5 | [
"ECL-2.0",
"Apache-2.0"
] | 14 | 2015-10-08T17:08:48.000Z | 2022-02-22T04:25:54.000Z | '''Defines data and parameters in an easily resuable format.'''
# Common sequence alphabets.
ALPHABETS = {
'dna': 'ATGCNatgcn-',
'rna': 'AUGCNaugcn',
'peptide': 'ACDEFGHIKLMNPQRSTVWYXacdefghiklmnpqrstvwyx'}
COMPLEMENTS = {
'dna': {'A': 'T', 'T': 'A', 'G': 'C', 'C': 'G', 'N': 'N', 'a': 't',
... | 30.689516 | 71 | 0.434109 | 717 | 7,611 | 4.601116 | 0.281729 | 0.002425 | 0.003637 | 0.00485 | 0.728099 | 0.728099 | 0.545014 | 0.545014 | 0.545014 | 0.510458 | 0 | 0.40348 | 0.350677 | 7,611 | 247 | 72 | 30.813765 | 0.264063 | 0.041125 | 0 | 0.220264 | 0 | 0 | 0.137524 | 0.005764 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2ff5830b670322ea798889ed6512f739eb75aafd | 1,378 | py | Python | pyy1/.pycharm_helpers/python_stubs/-1550516950/_dbus_bindings/MethodCallMessage.py | pyy1988/pyy_test1 | 6bea878409e658aa87441384419be51aaab061e7 | [
"Apache-2.0"
] | null | null | null | pyy1/.pycharm_helpers/python_stubs/-1550516950/_dbus_bindings/MethodCallMessage.py | pyy1988/pyy_test1 | 6bea878409e658aa87441384419be51aaab061e7 | [
"Apache-2.0"
] | null | null | null | pyy1/.pycharm_helpers/python_stubs/-1550516950/_dbus_bindings/MethodCallMessage.py | pyy1988/pyy_test1 | 6bea878409e658aa87441384419be51aaab061e7 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
# module _dbus_bindings
# from /usr/lib/python3/dist-packages/_dbus_bindings.cpython-35m-x86_64-linux-gnu.so
# by generator 1.145
"""
Low-level Python bindings for libdbus. Don't use this module directly -
the public API is provided by the `dbus`, `dbus.service`, `dbus.mainloop`
and `dbus.mainloop.gli... | 32.046512 | 125 | 0.677068 | 186 | 1,378 | 4.870968 | 0.489247 | 0.039735 | 0.028698 | 0.037528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011289 | 0.228592 | 1,378 | 42 | 126 | 32.809524 | 0.841016 | 0.740203 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.166667 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
64075624df733eb1202dba9a9f571b9cd81d7495 | 719 | py | Python | jogo/objetos/objeto.py | luizklitzke1/SpaceInvaders-PyArcade | 82f3e594b05e4362dcb7092dff0ab50699b8cb3b | [
"MIT"
] | 6 | 2020-01-10T00:35:53.000Z | 2020-05-11T23:40:17.000Z | jogo/objetos/objeto.py | luizklitzke1/SpaceInvader-PyArcade | 82f3e594b05e4362dcb7092dff0ab50699b8cb3b | [
"MIT"
] | null | null | null | jogo/objetos/objeto.py | luizklitzke1/SpaceInvader-PyArcade | 82f3e594b05e4362dcb7092dff0ab50699b8cb3b | [
"MIT"
] | null | null | null | import arcade
class Objeto(arcade.Sprite):
def __init__(self, imagem, dimensao_imagem, center_x=0, center_y=0):
super().__init__(imagem, dimensao_imagem)
self.center_x = center_x
self.center_y = center_y
def set_center_x(self, novo_x):
self.center_x = novo_x
def get_cente... | 27.653846 | 73 | 0.642559 | 110 | 719 | 3.890909 | 0.372727 | 0.114486 | 0.077103 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.269819 | 719 | 25 | 74 | 28.76 | 0.801905 | 0.065369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.058824 | 0.117647 | 0.588235 | 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 |
640a1e9c0021e877850d77dfcd8d80863636459f | 2,232 | py | Python | aliyun-python-sdk-cms/aliyunsdkcms/request/v20180308/CreateTaskRequest.py | liusc27/aliyun-openapi-python-sdk | 5e3db3535dd21de987dc5981e71151327d5a884f | [
"Apache-2.0"
] | 1 | 2019-12-23T12:36:43.000Z | 2019-12-23T12:36:43.000Z | aliyun-python-sdk-cms/aliyunsdkcms/request/v20180308/CreateTaskRequest.py | liusc27/aliyun-openapi-python-sdk | 5e3db3535dd21de987dc5981e71151327d5a884f | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-cms/aliyunsdkcms/request/v20180308/CreateTaskRequest.py | liusc27/aliyun-openapi-python-sdk | 5e3db3535dd21de987dc5981e71151327d5a884f | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 31 | 69 | 0.749104 | 316 | 2,232 | 5.113924 | 0.322785 | 0.029703 | 0.069307 | 0.084158 | 0.153465 | 0.153465 | 0.153465 | 0 | 0 | 0 | 0 | 0.006283 | 0.144265 | 2,232 | 72 | 70 | 31 | 0.839791 | 0.337814 | 0 | 0 | 0 | 0 | 0.106232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.472222 | false | 0 | 0.027778 | 0.222222 | 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 |
64159686010cda84f115c8c65c316794d2fa1f14 | 350 | py | Python | tests/test_checks.py | PeterJCLaw/flake8-multiline-containers | 490fab7dfe0cbe306841c179d9d55abc0a2ed2b2 | [
"MIT"
] | null | null | null | tests/test_checks.py | PeterJCLaw/flake8-multiline-containers | 490fab7dfe0cbe306841c179d9d55abc0a2ed2b2 | [
"MIT"
] | null | null | null | tests/test_checks.py | PeterJCLaw/flake8-multiline-containers | 490fab7dfe0cbe306841c179d9d55abc0a2ed2b2 | [
"MIT"
] | null | null | null | from flake8_multiline_containers import ErrorCodes
def test_check_opening_contains_error(linter):
linter._check_opening('{', '}', 0, "foo={a\n", ErrorCodes.JS101)
assert 1 == len(linter.errors)
def test_check_opening_no_error(linter):
linter._check_opening('{', '}', 0, "foo={\n", ErrorCodes.JS101)
a... | 29.166667 | 68 | 0.714286 | 47 | 350 | 5.021277 | 0.489362 | 0.20339 | 0.101695 | 0.161017 | 0.279661 | 0.279661 | 0.279661 | 0 | 0 | 0 | 0 | 0.036184 | 0.131429 | 350 | 11 | 69 | 31.818182 | 0.740132 | 0 | 0 | 0 | 0 | 0 | 0.054286 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
641e55ec8c37dd8e31dcede4ac9789370a659741 | 1,840 | py | Python | student_records/migrations/0001_initial.py | HillaryOkello/CIT-blockchain-DB | 0b931e196da43a87bf842cee0e130f57557169bd | [
"MIT"
] | 1 | 2021-12-10T13:54:38.000Z | 2021-12-10T13:54:38.000Z | student_records/migrations/0001_initial.py | HillaryOkello/CIT-blockchain-DB | 0b931e196da43a87bf842cee0e130f57557169bd | [
"MIT"
] | null | null | null | student_records/migrations/0001_initial.py | HillaryOkello/CIT-blockchain-DB | 0b931e196da43a87bf842cee0e130f57557169bd | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2021-11-29 09:44
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='StudentRecord',
fields=[
('id', models.Auto... | 49.72973 | 136 | 0.580435 | 196 | 1,840 | 5.260204 | 0.377551 | 0.189137 | 0.122211 | 0.162949 | 0.550921 | 0.42192 | 0.307468 | 0.307468 | 0.307468 | 0.307468 | 0 | 0.028653 | 0.241304 | 1,840 | 36 | 137 | 51.111111 | 0.709885 | 0.024457 | 0 | 0 | 1 | 0 | 0.176799 | 0.023424 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.206897 | 0.034483 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
64364d57fbf77402a81c753d147e6d8619dee81f | 828 | py | Python | expose.py | mzal/pysweeper | 175ae570c001760d4f7a5122a5eb0b50ef36e046 | [
"MIT"
] | null | null | null | expose.py | mzal/pysweeper | 175ae570c001760d4f7a5122a5eb0b50ef36e046 | [
"MIT"
] | null | null | null | expose.py | mzal/pysweeper | 175ae570c001760d4f7a5122a5eb0b50ef36e046 | [
"MIT"
] | null | null | null | def expose(board, x, y):
if not board[y][x].flagged:
board[y][x].exposed = True
#debug print(x, y, sep='\t')
if x == 0 or x == len(board[0]) - 1 or y == 0 or y == len(board) - 1 or board[y][x].mine:
return 0
if board[y][x].neighbours == 0:
if board[y-1][x-1].exposed is Fals... | 43.578947 | 93 | 0.556763 | 166 | 828 | 2.777108 | 0.138554 | 0.156182 | 0.234273 | 0.347072 | 0.67679 | 0.67679 | 0.67679 | 0.67679 | 0.67679 | 0.67679 | 0 | 0.05153 | 0.25 | 828 | 18 | 94 | 46 | 0.690821 | 0.033816 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 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 |
ff306b64d40f76058b91d06bd6c1cdf8dfdec22e | 578 | py | Python | exiftool/exiftool/commands.py | GuillaumeCouchard/snake-scales | 1b4c84130295dd3ba2c47b884db73dc9c68bfec5 | [
"BSD-3-Clause"
] | 5 | 2018-03-15T21:02:19.000Z | 2021-07-25T11:34:22.000Z | exiftool/exiftool/commands.py | GuillaumeCouchard/snake-scales | 1b4c84130295dd3ba2c47b884db73dc9c68bfec5 | [
"BSD-3-Clause"
] | 7 | 2019-05-08T09:33:27.000Z | 2021-02-24T02:10:40.000Z | exiftool/exiftool/commands.py | GuillaumeCouchard/snake-scales | 1b4c84130295dd3ba2c47b884db73dc9c68bfec5 | [
"BSD-3-Clause"
] | 8 | 2018-04-21T17:55:34.000Z | 2021-09-02T12:54:51.000Z | import shutil
import subprocess
from snake import error
from snake import scale
class Commands(scale.Commands):
def check(self):
exiftool = shutil.which("exiftool")
if not exiftool:
raise error.CommandError("binary 'exiftool' not found")
@scale.command({
'info': 'parse ex... | 26.272727 | 107 | 0.6609 | 70 | 578 | 5.414286 | 0.571429 | 0.047493 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002227 | 0.223183 | 578 | 21 | 108 | 27.52381 | 0.841871 | 0 | 0 | 0 | 0 | 0 | 0.179931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.25 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 3 |
ff4ae0fb493ff3a426fea0f383a07b7ed27fd160 | 2,984 | py | Python | init.py | vherrin/MatrixNTFScan | 0f9fb0a8f8f262786456726a00dde9ba31ba54fa | [
"MIT"
] | null | null | null | init.py | vherrin/MatrixNTFScan | 0f9fb0a8f8f262786456726a00dde9ba31ba54fa | [
"MIT"
] | null | null | null | init.py | vherrin/MatrixNTFScan | 0f9fb0a8f8f262786456726a00dde9ba31ba54fa | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import pandas as pd
import glob
import numpy as np
import cloudscraper
import re
import math
import shutil
import os
import sys
import cfscrape
import time
import requests
import IPython
import webbrowser
import json
import logging
from requests.adapters import HTTPAda... | 28.692308 | 93 | 0.732909 | 325 | 2,984 | 6.593846 | 0.436923 | 0.20532 | 0.221652 | 0.033598 | 0.043864 | 0.043864 | 0.043864 | 0 | 0 | 0 | 0 | 0.093539 | 0.154491 | 2,984 | 103 | 94 | 28.970874 | 0.755846 | 0.122319 | 0 | 0 | 0 | 0 | 0.272098 | 0.224443 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.046875 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ff4b19bb820d8551888322ab2be543dee4241e4b | 101 | py | Python | CoV19/base/urls.py | just-ary27/CovBot-revamp | 31af847237c4c5e7d5086a78950d06ecfd81318f | [
"MIT"
] | 1 | 2021-05-12T18:44:30.000Z | 2021-05-12T18:44:30.000Z | CoV19/needs/urls.py | just-ary27/CovBot-revamp | 31af847237c4c5e7d5086a78950d06ecfd81318f | [
"MIT"
] | 2 | 2021-09-22T18:41:37.000Z | 2022-02-10T09:28:52.000Z | CoV19/needs/urls.py | just-ary27/CovBot-revamp | 31af847237c4c5e7d5086a78950d06ecfd81318f | [
"MIT"
] | null | null | null | from django.urls import path,include
from . import views
urlpatterns = [
path('',views.index),
] | 16.833333 | 36 | 0.70297 | 13 | 101 | 5.461538 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168317 | 101 | 6 | 37 | 16.833333 | 0.845238 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff5ee06aeacb21a9acd7fe5496e8ffa95107915e | 1,569 | py | Python | src/backend/tests/test_sort_record_by_date.py | sico/recordexpungPDX | c2f18322014add7c78b27736bde2d29d1d086aa8 | [
"MIT"
] | 38 | 2019-05-09T03:13:43.000Z | 2022-03-16T22:59:25.000Z | src/backend/tests/test_sort_record_by_date.py | sico/recordexpungPDX | c2f18322014add7c78b27736bde2d29d1d086aa8 | [
"MIT"
] | 938 | 2019-05-02T15:13:21.000Z | 2022-02-27T20:59:00.000Z | src/backend/tests/test_sort_record_by_date.py | kenichi/recordexpungPDX | 100d9249473a01953451b83a72ec1b74574acc43 | [
"MIT"
] | 65 | 2019-05-09T03:28:12.000Z | 2022-03-21T00:06:39.000Z | from expungeservice.record_creator import RecordCreator
from expungeservice.models.record import Record
from tests.factories.case_factory import CaseFactory
def test_sort_by_case_date():
case1 = CaseFactory.create(case_number="1", date_location=["1/1/2018", "Multnomah"])
case2 = CaseFactory.create(case_number... | 43.583333 | 88 | 0.732314 | 219 | 1,569 | 5.022831 | 0.187215 | 0.163636 | 0.185455 | 0.147273 | 0.754545 | 0.754545 | 0.574545 | 0.573636 | 0.572727 | 0.572727 | 0 | 0.043828 | 0.12747 | 1,569 | 35 | 89 | 44.828571 | 0.759679 | 0 | 0 | 0.444444 | 0 | 0 | 0.043977 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.074074 | false | 0 | 0.111111 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ff761144fdb405559153f7ec1ffedb9d9e57923b | 102 | py | Python | declaraciones/translator_gdl/apps.py | rafaelhn2021/proyecto | 97d01a0524df782985342bf07671ab60e318657f | [
"MIT"
] | null | null | null | declaraciones/translator_gdl/apps.py | rafaelhn2021/proyecto | 97d01a0524df782985342bf07671ab60e318657f | [
"MIT"
] | null | null | null | declaraciones/translator_gdl/apps.py | rafaelhn2021/proyecto | 97d01a0524df782985342bf07671ab60e318657f | [
"MIT"
] | 2 | 2021-07-15T17:20:10.000Z | 2022-03-18T10:26:38.000Z | from django.apps import AppConfig
class TranslatorGdlConfig(AppConfig):
name = 'translator_gdl'
| 17 | 37 | 0.784314 | 11 | 102 | 7.181818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 102 | 5 | 38 | 20.4 | 0.908046 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ffbb48584e60d6cc61869e5a032d3006921f8054 | 298 | py | Python | _TEMPLATE/tests/unit_tests/test_version.py | realead/pyproj_maker | 2846a02855a0b612fda4973544221dcbcb02e4ac | [
"MIT"
] | 1 | 2020-01-12T07:15:52.000Z | 2020-01-12T07:15:52.000Z | _TEMPLATE/tests/unit_tests/test_version.py | realead/pyproj_maker | 2846a02855a0b612fda4973544221dcbcb02e4ac | [
"MIT"
] | null | null | null | _TEMPLATE/tests/unit_tests/test_version.py | realead/pyproj_maker | 2846a02855a0b612fda4973544221dcbcb02e4ac | [
"MIT"
] | null | null | null | import unittest
import {name}
class VersionTester(unittest.TestCase):
def test_major(self):
self.assertEqual({name}.__version__[0], 0)
def test_minor(self):
self.assertEqual({name}.__version__[1], 1)
def test_last(self):
self.assertEqual({name}.__version__[2], 0)
| 18.625 | 48 | 0.684564 | 38 | 298 | 4.973684 | 0.447368 | 0.111111 | 0.301587 | 0.365079 | 0.47619 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.174497 | 298 | 15 | 49 | 19.866667 | 0.743902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | null | null | 0 | 0.222222 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
44063d0df5ac65a630b90f2f301d0584e9a77f1a | 593 | py | Python | tests/conftest.py | marcoaaguiar/channels-ws-auth | a9b4e87f3be81097c5078803dead9fbd8dd7be1f | [
"MIT"
] | 1 | 2020-05-04T11:13:22.000Z | 2020-05-04T11:13:22.000Z | tests/conftest.py | marcoaaguiar/channels-ws-auth | a9b4e87f3be81097c5078803dead9fbd8dd7be1f | [
"MIT"
] | 21 | 2020-05-20T23:29:51.000Z | 2021-06-25T15:38:45.000Z | tests/conftest.py | marcoaaguiar/channels-ws-auth | a9b4e87f3be81097c5078803dead9fbd8dd7be1f | [
"MIT"
] | null | null | null | import pytest
from rest_framework.test import APIClient
from channels_ws_auth.models import WSAuthTicket
@pytest.fixture
@pytest.mark.django_db
def user(django_user_model):
return django_user_model.objects.create_user(username="user")
@pytest.fixture
@pytest.mark.django_db
def ticket(user):
return WSAuthTic... | 21.178571 | 65 | 0.797639 | 83 | 593 | 5.457831 | 0.385542 | 0.119205 | 0.083885 | 0.101545 | 0.432671 | 0.322296 | 0.322296 | 0 | 0 | 0 | 0 | 0 | 0.114671 | 593 | 27 | 66 | 21.962963 | 0.862857 | 0 | 0 | 0.315789 | 0 | 0 | 0.006745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.157895 | 0.526316 | 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 |
4419ff8b97d4973d38305f9d1db86688eb0ee98f | 158 | py | Python | positive.py | rahul-samal/positive-no-in-a-range | 214e9bc7c31c1e3a72fc25f895914a14842d0f69 | [
"MIT"
] | null | null | null | positive.py | rahul-samal/positive-no-in-a-range | 214e9bc7c31c1e3a72fc25f895914a14842d0f69 | [
"MIT"
] | null | null | null | positive.py | rahul-samal/positive-no-in-a-range | 214e9bc7c31c1e3a72fc25f895914a14842d0f69 | [
"MIT"
] | null | null | null | list1=[12,-7,5,64,-14]
for num in list1:
if num>=0:
print(num,end=" ")
list2=[12,14,-95,3]
for num in list2:
if num>=0:
print(num,end=" ")
| 17.555556 | 24 | 0.537975 | 31 | 158 | 2.741935 | 0.516129 | 0.141176 | 0.188235 | 0.258824 | 0.4 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0.173554 | 0.234177 | 158 | 8 | 25 | 19.75 | 0.528926 | 0 | 0 | 0.5 | 0 | 0 | 0.012658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
442bacb79b01df544306890f19f6c0819c5a5929 | 1,467 | py | Python | content/migrations/0011_auto_20200224_1318.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | 2 | 2022-01-24T23:30:18.000Z | 2022-01-26T00:21:22.000Z | content/migrations/0011_auto_20200224_1318.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | null | null | null | content/migrations/0011_auto_20200224_1318.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-02-24 19:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('content', '0010_auto_20200218_1124'),
]
operations = [
migrations.AddField(
model_name='song',
name='streams_last_mont... | 43.147059 | 207 | 0.660532 | 176 | 1,467 | 5.380682 | 0.335227 | 0.092925 | 0.097149 | 0.114044 | 0.756072 | 0.749736 | 0.749736 | 0.61246 | 0.462513 | 0.462513 | 0 | 0.036036 | 0.243354 | 1,467 | 33 | 208 | 44.454545 | 0.817117 | 0.029312 | 0 | 0.444444 | 1 | 0 | 0.398031 | 0.016174 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
443364b93cce01dcca1b820f92bf7a1836a52bac | 318 | py | Python | python/en/archive/dropbox/miscellaneous_python_files/test.py | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | python/en/archive/dropbox/miscellaneous_python_files/test.py | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | python/en/archive/dropbox/miscellaneous_python_files/test.py | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 17 19:39:45 2019
@author: aimldl
"""
import numpy as np
print( np.random.choice(5, 3, replace=False ) )
a = ['pooh', 'rabbit', 'piglet', 'Christopher']
print( np.random.choice(a, 3, replace=False ) )
print( np.random.choice(8, 32, replace=False ) )
| 18.705882 | 49 | 0.603774 | 47 | 318 | 4.085106 | 0.659574 | 0.109375 | 0.203125 | 0.296875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075397 | 0.207547 | 318 | 16 | 50 | 19.875 | 0.686508 | 0.235849 | 0 | 0 | 0 | 0 | 0.123853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 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 |
44348e69bd00c61dbc6f5a2fa68fa0ad6767c0a1 | 1,371 | py | Python | argminCVX.py | rameezw/BanditDynamicPricing | 352d5ccadb40a25601f12000b4df2e4703980bbb | [
"MIT"
] | null | null | null | argminCVX.py | rameezw/BanditDynamicPricing | 352d5ccadb40a25601f12000b4df2e4703980bbb | [
"MIT"
] | null | null | null | argminCVX.py | rameezw/BanditDynamicPricing | 352d5ccadb40a25601f12000b4df2e4703980bbb | [
"MIT"
] | null | null | null | """implementation of argmin step"""
from scipy import optimize
import numpy as np
from BanditPricing import randUnitVector
def argmin(eta, s_radius, barrier, g_bar_aggr_t, g_tilde, d, max_iter = 1e4):
#implement argmin_ball(eta * (g_bar_1:t + g_tilde_t+1)^T x + barrier(x)
#argmin is over ball with radius r
... | 44.225806 | 101 | 0.628738 | 222 | 1,371 | 3.675676 | 0.36036 | 0.034314 | 0.058824 | 0.066176 | 0.181373 | 0.125 | 0.088235 | 0.061275 | 0 | 0 | 0 | 0.014451 | 0.242888 | 1,371 | 31 | 102 | 44.225806 | 0.771676 | 0.281546 | 0 | 0 | 0 | 0 | 0.026721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.157895 | 0.578947 | 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 |
443697ff5e4be043883b688450f81a4e8c093f19 | 268 | py | Python | PythonExecicios/ex045.2.py | lucasohara98/Python_CursoemVideo | e5266abaf67ef3e27fe8928458b3860feb0ed46d | [
"MIT"
] | null | null | null | PythonExecicios/ex045.2.py | lucasohara98/Python_CursoemVideo | e5266abaf67ef3e27fe8928458b3860feb0ed46d | [
"MIT"
] | null | null | null | PythonExecicios/ex045.2.py | lucasohara98/Python_CursoemVideo | e5266abaf67ef3e27fe8928458b3860feb0ed46d | [
"MIT"
] | null | null | null | from random import randint
itens = ('Pedra', 'Papel', 'Tesoura')
computador = randint(0,2)
print(f'O computador escolheu {itens[computador]}')
jogador=(int(input('Qual é a sua jogada:')))
print('jogador jogou:')
print(f'o computador jogou:{itens[computador]}') | 33.5 | 52 | 0.701493 | 37 | 268 | 5.081081 | 0.648649 | 0.06383 | 0.074468 | 0.180851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008511 | 0.123134 | 268 | 8 | 53 | 33.5 | 0.791489 | 0 | 0 | 0 | 0 | 0 | 0.496183 | 0.09542 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
44591c961571bc4e7e09eba3facd17594e8b7ef7 | 298 | py | Python | moe/bandit/bla/__init__.py | dstoeckel/MOE | 5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c | [
"Apache-2.0"
] | 966 | 2015-01-10T05:27:30.000Z | 2022-03-26T21:04:36.000Z | moe/bandit/bla/__init__.py | dstoeckel/MOE | 5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c | [
"Apache-2.0"
] | 46 | 2015-01-16T22:33:08.000Z | 2019-09-04T16:33:27.000Z | moe/bandit/bla/__init__.py | dstoeckel/MOE | 5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c | [
"Apache-2.0"
] | 143 | 2015-01-07T03:57:19.000Z | 2022-02-28T01:10:45.000Z | # -*- coding: utf-8 -*-
"""Bandit directory containing multi-armed bandit implementations of BLA policies in python.
**Files in this package**
* :mod:`moe.bandit.bla.bla`: :class:`~moe.bandit.bla.bla.BLA`
object for allocating bandit arms and choosing the winning arm based on BLA policy.
"""
| 29.8 | 92 | 0.721477 | 44 | 298 | 4.886364 | 0.727273 | 0.083721 | 0.111628 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.144295 | 298 | 9 | 93 | 33.111111 | 0.839216 | 0.966443 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
4459615ac22e8065f2b66d59b282e9c4800dc54a | 90 | py | Python | tests/test_api/test_authentication/test_oauth/protocols/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | tests/test_api/test_authentication/test_oauth/protocols/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | tests/test_api/test_authentication/test_oauth/protocols/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | from .used_meta_user import HasUsedMetaUserFixture
__all__ = ['HasUsedMetaUserFixture']
| 18 | 50 | 0.833333 | 8 | 90 | 8.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 90 | 4 | 51 | 22.5 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0.244444 | 0.244444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
445fc9c2fbcc52252f1dece336d9634dde1a0676 | 32,563 | py | Python | pysnmp_mibs/IPMROUTE-STD-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2017-04-21T13:48:08.000Z | 2022-01-06T19:42:52.000Z | pysnmp_mibs/IPMROUTE-STD-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 1 | 2020-05-05T16:42:25.000Z | 2020-05-05T16:42:25.000Z | pysnmp_mibs/IPMROUTE-STD-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2020-02-08T20:28:49.000Z | 2021-09-14T13:36:46.000Z | #
# PySNMP MIB module IPMROUTE-STD-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/IPMROUTE-STD-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:18:06 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)... | 201.006173 | 3,289 | 0.746522 | 3,885 | 32,563 | 6.256113 | 0.130502 | 0.007982 | 0.010862 | 0.011685 | 0.390455 | 0.335034 | 0.250854 | 0.230611 | 0.211027 | 0.1928 | 0 | 0.039854 | 0.148543 | 32,563 | 161 | 3,290 | 202.254658 | 0.83676 | 0.009459 | 0 | 0 | 0 | 0.281046 | 0.480556 | 0.035012 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.078431 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4469dae33136cc5533e4430017f88f84bbccbca9 | 149 | py | Python | samples/proj/newYears.py | Mister-Meeseeks/init-sh | f1876bf9e18dcce3b177dd5deab43473d95df353 | [
"Apache-2.0"
] | null | null | null | samples/proj/newYears.py | Mister-Meeseeks/init-sh | f1876bf9e18dcce3b177dd5deab43473d95df353 | [
"Apache-2.0"
] | 5 | 2020-02-18T18:14:54.000Z | 2020-02-20T08:10:27.000Z | samples/proj/newYears.py | Mister-Meeseeks/initSh | f1876bf9e18dcce3b177dd5deab43473d95df353 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env initPy
import sys
import myProj.newYears as nye
nCount = int(sys.argv[1]) \
if len(sys.argv) > 1 else 10
nye.countdown(nCount)
| 14.9 | 32 | 0.691275 | 26 | 149 | 3.961538 | 0.730769 | 0.135922 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.174497 | 149 | 9 | 33 | 16.555556 | 0.804878 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 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 |
4472f668403a4b273ff13e11acb7f9233fde0379 | 426 | py | Python | katas/XX-Primers/unittest_sample.py | plipp/Python-Coding-Dojos | 4a206dfc0c73fc0d2b39ab33032b2aaf89055609 | [
"MIT"
] | null | null | null | katas/XX-Primers/unittest_sample.py | plipp/Python-Coding-Dojos | 4a206dfc0c73fc0d2b39ab33032b2aaf89055609 | [
"MIT"
] | null | null | null | katas/XX-Primers/unittest_sample.py | plipp/Python-Coding-Dojos | 4a206dfc0c73fc0d2b39ab33032b2aaf89055609 | [
"MIT"
] | null | null | null | # test with: python -m unittest unittest_sample.py
import unittest
def divide(a, b):
return a / b
class BasicArithmeticTest(unittest.TestCase):
def test_divide(self):
self.assertEqual(divide(10, 5), 2)
def test_divide_by_zero(self):
with self.assertRaises(ZeroDivisionError):
... | 22.421053 | 88 | 0.690141 | 58 | 426 | 4.982759 | 0.637931 | 0.013841 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023324 | 0.194836 | 426 | 18 | 89 | 23.666667 | 0.819242 | 0.314554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 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 |
447b419f1a1bf9055de2c6233794cbe9630430c9 | 370 | py | Python | setup.py | adamharsh/crud_generator | d6eecd3c9a39b7b94156ebc7b86046a3c329a8c9 | [
"MIT"
] | null | null | null | setup.py | adamharsh/crud_generator | d6eecd3c9a39b7b94156ebc7b86046a3c329a8c9 | [
"MIT"
] | 1 | 2020-05-01T15:02:37.000Z | 2020-05-02T00:56:32.000Z | setup.py | adamharsh/crud_generator | d6eecd3c9a39b7b94156ebc7b86046a3c329a8c9 | [
"MIT"
] | null | null | null | from setuptools import setup
with open("README.md","r") as fh:
long_description = fh.read()
setup(
name='crud_generator',
version='1.0.2',
description='This will generate a crud operations (crud.py) for your Database tables.',
long_description=long_description,
long_description_content_type="tex... | 30.833333 | 91 | 0.721622 | 50 | 370 | 5.16 | 0.72 | 0.232558 | 0.147287 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009585 | 0.154054 | 370 | 11 | 92 | 33.636364 | 0.814696 | 0 | 0 | 0 | 1 | 0 | 0.345946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
447f1b3d29dfc34af858d449462868ae8893e701 | 798 | py | Python | equip/visitors/blocks.py | neuroo/equip | 470c168cf26d1d8340aa5ab37a5364d999a0b2f4 | [
"Apache-2.0"
] | 102 | 2015-01-03T13:51:03.000Z | 2022-02-28T03:56:26.000Z | equip/visitors/blocks.py | neuroo/equip | 470c168cf26d1d8340aa5ab37a5364d999a0b2f4 | [
"Apache-2.0"
] | 4 | 2016-12-09T00:31:39.000Z | 2019-07-28T09:48:18.000Z | equip/visitors/blocks.py | neuroo/equip | 470c168cf26d1d8340aa5ab37a5364d999a0b2f4 | [
"Apache-2.0"
] | 9 | 2015-05-08T12:17:28.000Z | 2020-12-17T08:20:00.000Z | # -*- coding: utf-8 -*-
"""
equip.visitors.blocks
~~~~~~~~~~~~~~~~~~~~~
Callback the visit basic blocks in the program.
:copyright: (c) 2014 by Romain Gaucher (@rgaucher)
:license: Apache 2, see LICENSE for more details.
"""
class BlockVisitor(object):
"""
A basic block visitor. It first receives the... | 21.567568 | 71 | 0.661654 | 109 | 798 | 4.706422 | 0.568807 | 0.17154 | 0.087719 | 0.062378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0096 | 0.216792 | 798 | 36 | 72 | 22.166667 | 0.8112 | 0.541353 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.153846 | 0 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
44934010d9f29b100420f8257c51b9cf96bc0009 | 1,075 | py | Python | glycan_profiling/structure/__init__.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | null | null | null | glycan_profiling/structure/__init__.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | null | null | null | glycan_profiling/structure/__init__.py | mstim/glycresoft | 1d305c42c7e6cba60326d8246e4a485596a53513 | [
"Apache-2.0"
] | null | null | null | from .lru import LRUCache, LRUNode, LRUMapping
from .structure_loader import (
CachingGlycanCompositionParser,
CachingGlycopeptideParser,
FragmentCachingGlycopeptide,
PeptideProteinRelation,
DecoyFragmentCachingGlycopeptide,
SequenceReversingCachingGlycopeptideParser,
GlycopeptideCache,
... | 26.219512 | 63 | 0.75814 | 55 | 1,075 | 14.690909 | 0.527273 | 0.136139 | 0.200495 | 0.304455 | 0.346535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167442 | 1,075 | 40 | 64 | 26.875 | 0.902793 | 0 | 0 | 0 | 0 | 0 | 0.331163 | 0.211163 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.135135 | 0 | 0.135135 | 0 | 0 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
922aaf587088ac12b5ecba9af37e0c9fb4e0253b | 179 | py | Python | voters/api/urls.py | isidaruk/eurovision_project | 976743e66a2fed17c0513f17a9a7d35850e9cde5 | [
"MIT"
] | null | null | null | voters/api/urls.py | isidaruk/eurovision_project | 976743e66a2fed17c0513f17a9a7d35850e9cde5 | [
"MIT"
] | 8 | 2020-02-12T00:23:27.000Z | 2022-03-08T21:10:13.000Z | voters/api/urls.py | isidaruk/eurovision_project | 976743e66a2fed17c0513f17a9a7d35850e9cde5 | [
"MIT"
] | null | null | null | from rest_framework.routers import DefaultRouter
from voters.api.views import VoterViewSet
router = DefaultRouter()
router.register('', VoterViewSet)
urlpatterns = router.urls
| 19.888889 | 48 | 0.815642 | 20 | 179 | 7.25 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106145 | 179 | 8 | 49 | 22.375 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
92354d970621773f03931eaf9eb3207125ff4c2f | 128 | py | Python | common/constants.py | Twilighters/test_task_with_email | 76ef8bcd4690804abe3e6ad68b37f6665cac5236 | [
"Apache-2.0"
] | null | null | null | common/constants.py | Twilighters/test_task_with_email | 76ef8bcd4690804abe3e6ad68b37f6665cac5236 | [
"Apache-2.0"
] | null | null | null | common/constants.py | Twilighters/test_task_with_email | 76ef8bcd4690804abe3e6ad68b37f6665cac5236 | [
"Apache-2.0"
] | null | null | null | class EmailConstants:
SEND_EMAIL_BUTTON_TEXT = "Написать" # noqa
SUCCESS_SEND_EMAIL_TEXT = "Письмо отправлено" # noqa
| 32 | 57 | 0.75 | 15 | 128 | 6 | 0.733333 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179688 | 128 | 3 | 58 | 42.666667 | 0.857143 | 0.070313 | 0 | 0 | 0 | 0 | 0.215517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 |
923633001e4e5ac81dc7a749954114bfb54131be | 142 | py | Python | emag_marketplace/__init__.py | chawel/python-emag | 481c47a4f845c41bfac192e336947030f1a98ebc | [
"MIT"
] | 2 | 2018-12-16T09:11:21.000Z | 2022-01-20T13:23:26.000Z | emag_marketplace/__init__.py | chawel/python-emag | 481c47a4f845c41bfac192e336947030f1a98ebc | [
"MIT"
] | null | null | null | emag_marketplace/__init__.py | chawel/python-emag | 481c47a4f845c41bfac192e336947030f1a98ebc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .client import EMAGClient
VERSION = __version__ = '0.0.1'
AUTHOR = __author__ = 'Paweł Chaniewski (www.cwsi.pl)' | 28.4 | 54 | 0.683099 | 19 | 142 | 4.684211 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033058 | 0.147887 | 142 | 5 | 54 | 28.4 | 0.702479 | 0.147887 | 0 | 0 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
923ccd2f1d21a022a7f14472a033510e29b53dc6 | 286 | py | Python | Practice/Python/Sets/no_idea.py | nifannn/HackerRank | b05318251226704b1fb949c29aa49493d6ced44b | [
"MIT"
] | 7 | 2019-02-22T10:34:26.000Z | 2021-07-13T01:51:48.000Z | Practice/Python/Sets/no_idea.py | nifannn/HackerRank | b05318251226704b1fb949c29aa49493d6ced44b | [
"MIT"
] | null | null | null | Practice/Python/Sets/no_idea.py | nifannn/HackerRank | b05318251226704b1fb949c29aa49493d6ced44b | [
"MIT"
] | 7 | 2018-11-09T13:52:34.000Z | 2021-03-18T20:36:22.000Z | if __name__ == '__main__':
n, m = list(map(int, input().split(" ")))
arr = list(map(int, input().split(" ")))
set_a = set(map(int, input().split(" ")))
set_b = set(map(int, input().split(' ')))
print(sum([1 if e in set_a else -1 if e in set_b else 0 for e in arr]))
| 40.857143 | 75 | 0.555944 | 51 | 286 | 2.882353 | 0.431373 | 0.163265 | 0.29932 | 0.435374 | 0.693878 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013393 | 0.216783 | 286 | 6 | 76 | 47.666667 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0.041958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
925e76b65d37215de639b1e5dcfb17c249ed0a29 | 112 | py | Python | dont_binge/__init__.py | ichbinjon/Dont_Binge | a39dcddaa97d5208cdaa1b1b668e939dd60de96e | [
"MIT"
] | null | null | null | dont_binge/__init__.py | ichbinjon/Dont_Binge | a39dcddaa97d5208cdaa1b1b668e939dd60de96e | [
"MIT"
] | null | null | null | dont_binge/__init__.py | ichbinjon/Dont_Binge | a39dcddaa97d5208cdaa1b1b668e939dd60de96e | [
"MIT"
] | null | null | null | from flask import Flask
#API Keys are taken from OS environment!
app = Flask(__name__)
import dont_binge.views | 18.666667 | 40 | 0.794643 | 18 | 112 | 4.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 112 | 6 | 41 | 18.666667 | 0.884211 | 0.348214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 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 |
9276a678b901f4384af2c34ef04dabbf1ae24125 | 656 | py | Python | tilecloud/filter/inboundingpyramid.py | camptocamp/tilecloud | fa9864c969917ad47a6d4ce945fc19fe5cdcfb68 | [
"Unlicense"
] | 134 | 2017-02-25T22:14:50.000Z | 2022-03-04T09:51:13.000Z | tilecloud/filter/inboundingpyramid.py | camptocamp/tilecloud | fa9864c969917ad47a6d4ce945fc19fe5cdcfb68 | [
"Unlicense"
] | 106 | 2017-03-07T13:45:04.000Z | 2022-03-31T13:01:49.000Z | tilecloud/filter/inboundingpyramid.py | camptocamp/tilecloud | fa9864c969917ad47a6d4ce945fc19fe5cdcfb68 | [
"Unlicense"
] | 14 | 2017-05-05T14:46:50.000Z | 2022-01-02T18:37:31.000Z | from typing import Optional
from tilecloud import BoundingPyramid, Tile
class InBoundingPyramid:
"""
Creates a filter that filters out tiles that are not in the specified bounding pyramid. When called the
filter returns ``None`` if the tile is not in the bounding pyramid.
bounding_pyramid:
... | 29.818182 | 107 | 0.702744 | 82 | 656 | 5.463415 | 0.45122 | 0.234375 | 0.127232 | 0.133929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23628 | 656 | 21 | 108 | 31.238095 | 0.894212 | 0.370427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.777778 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.