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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3aaa4e4cd1a52ceb09ec8cecbc6c765a3ad1eb80 | 200 | py | Python | pythonExercicios/ex029.py | Yhago-Carvalho/CursoPython | 343ccabb1a61e16c6078de9672c78c56deed2589 | [
"MIT"
] | null | null | null | pythonExercicios/ex029.py | Yhago-Carvalho/CursoPython | 343ccabb1a61e16c6078de9672c78c56deed2589 | [
"MIT"
] | null | null | null | pythonExercicios/ex029.py | Yhago-Carvalho/CursoPython | 343ccabb1a61e16c6078de9672c78c56deed2589 | [
"MIT"
] | null | null | null | v = int(input('Qual a velocidade do carro no radar? '))
if v > 80:
print(f'Você está acima da velocidade e vai ser multado em R${(v - 80)*7:.2f}')
print('Dirija com segurança, tenha um bom dia!')
| 40 | 83 | 0.665 | 38 | 200 | 3.5 | 0.868421 | 0.045113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.19 | 200 | 4 | 84 | 50 | 0.783951 | 0 | 0 | 0 | 0 | 0 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
3ae3c2444d88a6fbc7dce92ed200822abb3b5c55 | 240 | py | Python | apps/s3/signals.py | drtnn/polyrobot__backend | 65b45fc55e338e8a83296211d782b218d785400b | [
"Apache-2.0"
] | null | null | null | apps/s3/signals.py | drtnn/polyrobot__backend | 65b45fc55e338e8a83296211d782b218d785400b | [
"Apache-2.0"
] | 1 | 2022-02-08T18:33:28.000Z | 2022-02-08T18:33:28.000Z | apps/s3/signals.py | drtnn/polyrobot__backend | 65b45fc55e338e8a83296211d782b218d785400b | [
"Apache-2.0"
] | null | null | null | from django.db.models.signals import post_delete
from django.dispatch import receiver
from .models import File
@receiver([post_delete], sender=File)
def save_mospolytech_user(sender, instance: File, **kwargs):
instance.data.delete()
| 24 | 60 | 0.7875 | 33 | 240 | 5.606061 | 0.575758 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1125 | 240 | 9 | 61 | 26.666667 | 0.868545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
aaec81b1558ae2a1e8ed5e5fd0d3f641ab56f70b | 1,825 | py | Python | tests/providers/github/conftest.py | inmanta/terraform | d60855493e75d4eb570c4a357e79584153e51833 | [
"Apache-2.0"
] | 1 | 2021-12-23T13:51:39.000Z | 2021-12-23T13:51:39.000Z | tests/providers/github/conftest.py | inmanta/terraform | d60855493e75d4eb570c4a357e79584153e51833 | [
"Apache-2.0"
] | 11 | 2022-01-04T14:03:10.000Z | 2022-03-16T14:50:11.000Z | tests/providers/github/conftest.py | inmanta/terraform | d60855493e75d4eb570c4a357e79584153e51833 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2021 Inmanta
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 30.932203 | 85 | 0.758356 | 240 | 1,825 | 5.633333 | 0.4125 | 0.044379 | 0.079882 | 0.092456 | 0.360207 | 0.096893 | 0.075444 | 0.075444 | 0.075444 | 0.075444 | 0 | 0.005125 | 0.144658 | 1,825 | 58 | 86 | 31.465517 | 0.860987 | 0.314521 | 0 | 0.2 | 0 | 0 | 0.105088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.16 | 0.16 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
aaf481fdddfa45a2370b01a942c80c1cdcb3fe2e | 226 | py | Python | Python_examples/Pipedream/Live_events/pipedream_user_profile.py | pei-tian/LoRaWAN-ChirpBox | 2cec8be5ec57847b39fe0b47023615f087e3865f | [
"MIT"
] | null | null | null | Python_examples/Pipedream/Live_events/pipedream_user_profile.py | pei-tian/LoRaWAN-ChirpBox | 2cec8be5ec57847b39fe0b47023615f087e3865f | [
"MIT"
] | null | null | null | Python_examples/Pipedream/Live_events/pipedream_user_profile.py | pei-tian/LoRaWAN-ChirpBox | 2cec8be5ec57847b39fe0b47023615f087e3865f | [
"MIT"
] | null | null | null | # TODO:
# 1. Replace PIPEDREAM_API_KEY
import requests
headers = {
'Authorization': 'Bearer PIPEDREAM_API_KEY',
}
response = requests.get('https://api.pipedream.com/v1/users/me', headers=headers)
print(response.text)
| 16.142857 | 81 | 0.730088 | 29 | 226 | 5.551724 | 0.689655 | 0.149068 | 0.186335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.128319 | 226 | 13 | 82 | 17.384615 | 0.807107 | 0.150442 | 0 | 0 | 0 | 0 | 0.391534 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aafc05c8bc340064cfb0be093a3ed7b6ac3da071 | 5,602 | py | Python | xldlib/objects/pytables.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | xldlib/objects/pytables.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | xldlib/objects/pytables.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | '''
Objects/pytables
________________
Group and root wrappers for PyTables objects.
'''
# load modules
import tables as tb
from xldlib import exception
from xldlib.qt.objects import base
from . import dataset
# DECORATORS
# ----------
silence_naturalname = exception.silence_warning(tb.NaturalNameWarni... | 25.815668 | 77 | 0.636737 | 686 | 5,602 | 5.002915 | 0.185131 | 0.062937 | 0.037879 | 0.032634 | 0.655886 | 0.618298 | 0.57634 | 0.527389 | 0.418706 | 0.369755 | 0 | 0.002663 | 0.262585 | 5,602 | 216 | 78 | 25.935185 | 0.828129 | 0.249018 | 0 | 0.425743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.346535 | false | 0.019802 | 0.039604 | 0.168317 | 0.663366 | 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 |
c9152ea2d2a80701ecc873a8504841794f4a99ce | 926 | py | Python | lintcode/437.dp.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | lintcode/437.dp.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | lintcode/437.dp.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | """
parition dp
f[k][i]: minimum time it will take for the first k copier to copy first i books
funciton:
f[k][i] = min for j=0..i(max(f[k - 1][j], A[j] + ... + A[i - 1]))
intial:
f[0][0] = 0
f[0][x] = sys.maxsize
f[k][0] = 0
answer:f[k][n - 1]
"""
# import sys
# class Solution:
# """
# @param pages: an array o... | 26.457143 | 79 | 0.456803 | 154 | 926 | 2.74026 | 0.350649 | 0.042654 | 0.028436 | 0.063981 | 0.2109 | 0.2109 | 0.132701 | 0.132701 | 0.132701 | 0.132701 | 0 | 0.035235 | 0.356371 | 926 | 34 | 80 | 27.235294 | 0.672819 | 0.940605 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.029412 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9320fb5e058e558dd676087d1af6ecdf9c13ec5 | 2,601 | py | Python | PROJ/LEVY/Swing_Options/coeff_funcs/Get_VarthsDD_swing.py | mattslezak-shell/PROJ_Option_Pricing_Matlab | 6105bd00ba3471802180c122fdf81e90833a91c4 | [
"MIT"
] | null | null | null | PROJ/LEVY/Swing_Options/coeff_funcs/Get_VarthsDD_swing.py | mattslezak-shell/PROJ_Option_Pricing_Matlab | 6105bd00ba3471802180c122fdf81e90833a91c4 | [
"MIT"
] | null | null | null | PROJ/LEVY/Swing_Options/coeff_funcs/Get_VarthsDD_swing.py | mattslezak-shell/PROJ_Option_Pricing_Matlab | 6105bd00ba3471802180c122fdf81e90833a91c4 | [
"MIT"
] | 1 | 2022-01-07T15:31:45.000Z | 2022-01-07T15:31:45.000Z | # Generated with SMOP 0.41-beta
try:
from smop.libsmop import *
except ImportError:
raise ImportError('File compiled with `smop3`, please install `smop3` to run it.') from None
# Get_VarthsDD_swing.m
@function
def Get_VarthsDD_swing(zetas=None,nms=None,Cont_D=None,*args,**kwargs):
varargin ... | 36.633803 | 113 | 0.582853 | 441 | 2,601 | 3.272109 | 0.176871 | 0.190575 | 0.2772 | 0.259182 | 0.589744 | 0.414414 | 0.281358 | 0.078309 | 0 | 0 | 0 | 0.106126 | 0.202999 | 2,601 | 71 | 114 | 36.633803 | 0.589966 | 0.275279 | 0 | 0 | 1 | 0 | 0.038917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.03125 | 0.09375 | 0 | 0.15625 | 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 |
c981bdfbe9171ff226eff2f0ffe30e5560b30770 | 344 | py | Python | palindrome.py | baduy9x/AlgorithmPractice | 9fb956aedf67c0515b66f2af93d8383dba697fec | [
"Apache-2.0"
] | null | null | null | palindrome.py | baduy9x/AlgorithmPractice | 9fb956aedf67c0515b66f2af93d8383dba697fec | [
"Apache-2.0"
] | null | null | null | palindrome.py | baduy9x/AlgorithmPractice | 9fb956aedf67c0515b66f2af93d8383dba697fec | [
"Apache-2.0"
] | null | null | null | import re
class Solution:
def isPalindrome(self, s: str) -> bool:
processed_s = re.sub(r'[^a-zA-Z0-9]', '', s).lower()
print(processed_s)
print("".join(reversed(processed_s)))
return processed_s == "".join(reversed(processed_s))
if __name__ == "__main__":
print(Solution... | 31.272727 | 60 | 0.604651 | 44 | 344 | 4.409091 | 0.590909 | 0.257732 | 0.216495 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007435 | 0.218023 | 344 | 11 | 61 | 31.272727 | 0.713755 | 0 | 0 | 0 | 0 | 0 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0.333333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9864a7f0069cfd3fce2fdcba0f5d51b4987b6ec | 181 | py | Python | uqcsbot/scripts/repo.py | ashfordneil/uqcsbot | af47d8c4fcdf7cba6c6d411e838b17628fedf9af | [
"MIT"
] | null | null | null | uqcsbot/scripts/repo.py | ashfordneil/uqcsbot | af47d8c4fcdf7cba6c6d411e838b17628fedf9af | [
"MIT"
] | null | null | null | uqcsbot/scripts/repo.py | ashfordneil/uqcsbot | af47d8c4fcdf7cba6c6d411e838b17628fedf9af | [
"MIT"
] | null | null | null | from uqcsbot import bot, Command
@bot.on_command("repo")
def handle_repo(command: Command):
bot.post_message(command.channel, "https://github.com/UQComputingSociety/uqcsbot")
| 25.857143 | 86 | 0.773481 | 24 | 181 | 5.708333 | 0.666667 | 0.145985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093923 | 181 | 6 | 87 | 30.166667 | 0.835366 | 0 | 0 | 0 | 0 | 0 | 0.270718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a32b280997a1f3abd06d3655d523411baae9b450 | 407 | py | Python | cyberpandas/dtypes.py | achapkowski/cyberpandas | 054d3a37fe84a8d222795c31bbf99ef34be90fbf | [
"BSD-3-Clause"
] | 1 | 2019-04-29T04:29:22.000Z | 2019-04-29T04:29:22.000Z | cyberpandas/dtypes.py | achapkowski/cyberpandas | 054d3a37fe84a8d222795c31bbf99ef34be90fbf | [
"BSD-3-Clause"
] | null | null | null | cyberpandas/dtypes.py | achapkowski/cyberpandas | 054d3a37fe84a8d222795c31bbf99ef34be90fbf | [
"BSD-3-Clause"
] | null | null | null | from .common import _IPv4_MAX
def is_ipv4(value):
# type: (Any) -> bool
if isinstance(value, str):
return value.count(".") == 3
elif isinstance(value, bytes):
pass
elif isinstance(value, int):
return value < _IPv4_MAX
else:
return False
def is_ipv6(value):
# t... | 20.35 | 36 | 0.579853 | 51 | 407 | 4.509804 | 0.490196 | 0.26087 | 0.104348 | 0.13913 | 0.452174 | 0.452174 | 0.452174 | 0.452174 | 0.452174 | 0.452174 | 0 | 0.020761 | 0.289926 | 407 | 19 | 37 | 21.421053 | 0.775087 | 0.095823 | 0 | 0.153846 | 0 | 0 | 0.005479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.076923 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a345e8bd00fe99057b670c607e4985efc955c65c | 566 | py | Python | codes/Ex073.py | BelfortJoao/Curso-phyton01 | 79376233be228f39bf548f90b8d9bd5419ac067a | [
"MIT"
] | 3 | 2021-08-17T14:02:14.000Z | 2021-08-19T02:37:30.000Z | codes/Ex073.py | BelfortJoao/Curso-phyton01 | 79376233be228f39bf548f90b8d9bd5419ac067a | [
"MIT"
] | null | null | null | codes/Ex073.py | BelfortJoao/Curso-phyton01 | 79376233be228f39bf548f90b8d9bd5419ac067a | [
"MIT"
] | null | null | null |
x = 'Fortaleza', 'Athletico Paranaense', 'Atlético GO', 'Bragantino', 'Bahia', 'Fluminense', 'Palmeiras', 'Flamengo', 'Atlético Mineiro', 'Corinthians', 'Ceará', 'Santos', 'Cuiabá', 'Sport Recife', 'São Paulo', 'Juventude', 'Internacional', 'Grêmio', 'América Mineiro', 'Chapecoense'
print(f'A lista de times do brasile... | 70.75 | 283 | 0.699647 | 79 | 566 | 5.012658 | 0.683544 | 0.060606 | 0.035354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011952 | 0.113074 | 566 | 7 | 284 | 80.857143 | 0.776892 | 0 | 0 | 0 | 0 | 0 | 0.738053 | 0.047788 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.833333 | 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 |
a351f8bd13fed2d07c82f688340b8b2140d67b89 | 507 | py | Python | utils/logging/filters.py | kwahome/pycon-monitoring-workshop | 24ff177352fb13b686ab46a96c30066556d2e92d | [
"MIT"
] | 7 | 2018-10-25T08:31:05.000Z | 2021-12-31T11:41:50.000Z | utils/logging/filters.py | nknganda/pycon-monitoring-workshop | 24ff177352fb13b686ab46a96c30066556d2e92d | [
"MIT"
] | null | null | null | utils/logging/filters.py | nknganda/pycon-monitoring-workshop | 24ff177352fb13b686ab46a96c30066556d2e92d | [
"MIT"
] | 5 | 2018-10-24T10:18:24.000Z | 2019-09-13T09:15:59.000Z | import logging
import os
# from .celeryapp import app as celery_app
# __all__ = ['celery_app']
class CustomFilter(logging.Filter):
def __init__(self):
self.environment = os.environ["ENVIRONMENT"]
self.supervisor_process_name = os.environ.get("SUPERVISOR_PROCESS_NAME")
super(CustomFilte... | 24.142857 | 80 | 0.710059 | 58 | 507 | 5.827586 | 0.431034 | 0.201183 | 0.248521 | 0.147929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199211 | 507 | 20 | 81 | 25.35 | 0.832512 | 0.128205 | 0 | 0 | 0 | 0 | 0.077449 | 0.052392 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a39cffd653b0390d488331195057714a81dd14e9 | 611 | py | Python | connection.py | tdvance/TextAdventureGame | 2326086723f667ff7d7dd6e0257c9136f481782e | [
"MIT"
] | null | null | null | connection.py | tdvance/TextAdventureGame | 2326086723f667ff7d7dd6e0257c9136f481782e | [
"MIT"
] | null | null | null | connection.py | tdvance/TextAdventureGame | 2326086723f667ff7d7dd6e0257c9136f481782e | [
"MIT"
] | null | null | null | from direction import Direction
class Connection:
def __init__(self, direction, source, target):
assert isinstance(direction, Direction)
assert 'Room' in str(type(source))
assert type(source) == type(target)
self._direction = direction
self._source = source
self._ta... | 22.62963 | 51 | 0.636661 | 66 | 611 | 5.651515 | 0.272727 | 0.13941 | 0.112601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 611 | 26 | 52 | 23.5 | 0.843891 | 0 | 0 | 0.15 | 0 | 0 | 0.006547 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.25 | false | 0 | 0.05 | 0.2 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a39f24c9b95aba9a7a3355f1a3f3d8852f037e79 | 83 | py | Python | students/k3342/laboratory_works/Евшина_Яна/laboratory_work_1/avia/apps.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 10 | 2020-03-20T09:06:12.000Z | 2021-07-27T13:06:02.000Z | students/k3342/laboratory_works/Евшина_Яна/laboratory_work_1/avia/apps.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 134 | 2020-03-23T09:47:48.000Z | 2022-03-12T01:05:19.000Z | students/k3342/laboratory_works/Евшина_Яна/laboratory_work_1/avia/apps.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 71 | 2020-03-20T12:45:56.000Z | 2021-10-31T19:22:25.000Z | from django.apps import AppConfig
class AviaConfig(AppConfig):
name = 'avia'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 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 |
6e5d6b5aa5780f3413bbd828bb5e21396a1456f1 | 101 | py | Python | lib/JumpScale/baselib/jpackages/templates/actions/upload.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | 1 | 2015-10-26T10:38:13.000Z | 2015-10-26T10:38:13.000Z | lib/JumpScale/baselib/jpackages/templates/actions/upload.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | lib/JumpScale/baselib/jpackages/templates/actions/upload.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | def main(j,jp,onlycode=False):
#upload jpackage to blobstor
jp._upload(onlycode=onlycode) | 25.25 | 33 | 0.712871 | 14 | 101 | 5.071429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178218 | 101 | 4 | 33 | 25.25 | 0.855422 | 0.267327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ea810f068683afcba0cabecdcd3add0546cc8c3 | 788 | py | Python | restcord/models/webhook.py | Doezer/Restcord | 5a21737635744b0fe1790516fa03f6ddc35b48bc | [
"MIT"
] | null | null | null | restcord/models/webhook.py | Doezer/Restcord | 5a21737635744b0fe1790516fa03f6ddc35b48bc | [
"MIT"
] | 1 | 2018-09-21T17:40:12.000Z | 2018-10-02T08:00:36.000Z | restcord/models/webhook.py | Doezer/Restcord | 5a21737635744b0fe1790516fa03f6ddc35b48bc | [
"MIT"
] | 2 | 2022-01-20T07:44:42.000Z | 2022-01-24T09:33:58.000Z | from .models import get_from_kwargs, get_cls_entries
CDN_URL = "https://cdn.discordapp.com/"
import logging
logger = logging.getLogger()
# WEBHOOK SECTION
class Webhook:
id = None
guild_id = None
channel_id = None
user = None
name = None
avatar = None
token = None
def __init__(self... | 28.142857 | 78 | 0.638325 | 103 | 788 | 4.582524 | 0.291262 | 0.118644 | 0.220339 | 0.28178 | 0.133475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256345 | 788 | 28 | 79 | 28.142857 | 0.805461 | 0.019036 | 0 | 0 | 0 | 0 | 0.085492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6ecb962a90e5e1bd62de04205aa8ce7661149f52 | 137 | py | Python | functions_vietstock/celery_main.py | vietzerg/Scrape-Finance-Data-v2 | 620a6843f4db29acb7ec69079f21ab8613314fa5 | [
"MIT"
] | 36 | 2021-05-30T17:36:51.000Z | 2021-07-27T05:22:50.000Z | functions_vietstock/celery_main.py | vincetran96/Scrape-Finance-Data-v2 | 620a6843f4db29acb7ec69079f21ab8613314fa5 | [
"MIT"
] | 6 | 2021-07-29T09:44:32.000Z | 2021-12-25T16:17:18.000Z | functions_vietstock/celery_main.py | vietzerg/Scrape-Finance-Data-v2 | 620a6843f4db29acb7ec69079f21ab8613314fa5 | [
"MIT"
] | 21 | 2021-06-01T01:18:53.000Z | 2021-06-26T14:17:02.000Z | # This module contains the main Celery app
from celery import Celery
app = Celery('crawlers')
app.config_from_object('celery_config')
| 17.125 | 42 | 0.781022 | 20 | 137 | 5.2 | 0.6 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138686 | 137 | 7 | 43 | 19.571429 | 0.881356 | 0.291971 | 0 | 0 | 0 | 0 | 0.221053 | 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 |
6ed331c15404c0fb76d97a665e9fbf281d2f1e92 | 524 | py | Python | wab/core/import_database/models.py | BinNguyenVNN/wab-rest | daab9e176b5aae60cf822a19563f2e4bc1e02ca1 | [
"MIT"
] | null | null | null | wab/core/import_database/models.py | BinNguyenVNN/wab-rest | daab9e176b5aae60cf822a19563f2e4bc1e02ca1 | [
"MIT"
] | 1 | 2020-12-17T13:51:12.000Z | 2020-12-17T13:51:12.000Z | wab/core/import_database/models.py | BinNguyenVNN/wab-rest | daab9e176b5aae60cf822a19563f2e4bc1e02ca1 | [
"MIT"
] | 1 | 2021-05-18T12:30:53.000Z | 2021-05-18T12:30:53.000Z | from django.db import models
from wab.core.db_provider.models import DBProviderConnection
class ImportData(models.Model):
id = models.BigAutoField(primary_key=True)
provider_connection = models.ForeignKey(DBProviderConnection, on_delete=models.CASCADE)
username = models.CharField(max_length=128, blank=Tr... | 34.933333 | 91 | 0.763359 | 69 | 524 | 5.652174 | 0.492754 | 0.115385 | 0.138462 | 0.184615 | 0.338462 | 0.338462 | 0.338462 | 0.338462 | 0.338462 | 0 | 0 | 0.019956 | 0.139313 | 524 | 14 | 92 | 37.428571 | 0.844789 | 0 | 0 | 0 | 0 | 0 | 0.020992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1.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 | 1 | 0 | 1 | 0 | 0 | 3 |
6edd45dc1eed60a8bb73e4c6c52f99c6d9f48455 | 332 | py | Python | easytrader/utils/win_gui.py | qzhjiang/easytrader | ae97c309b972fb3d8089391e706cf439807d1603 | [
"MIT"
] | 3 | 2020-05-31T01:42:28.000Z | 2022-02-15T19:49:47.000Z | easytrader/utils/win_gui.py | qzhjiang/easytrader | ae97c309b972fb3d8089391e706cf439807d1603 | [
"MIT"
] | null | null | null | easytrader/utils/win_gui.py | qzhjiang/easytrader | ae97c309b972fb3d8089391e706cf439807d1603 | [
"MIT"
] | null | null | null | # coding:utf-8
from pywinauto import win32defines
from pywinauto.win32functions import SetForegroundWindow, ShowWindow
# import win32gui
#
#
# def SetForegroundWindow(hwd):
# win32gui.SetForegroundWindow(hwd._as_parameter_)
#
#
# def ShowWindow(hwd, window_status):
# win32gui.ShowWindow(hwd._as_parameter_, win... | 23.714286 | 68 | 0.792169 | 35 | 332 | 7.285714 | 0.485714 | 0.101961 | 0.109804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037543 | 0.11747 | 332 | 13 | 69 | 25.538462 | 0.832765 | 0.620482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
42b84b9ed44008d462927766916d5aeca520d706 | 856 | py | Python | pyaz/batch/node/remote_desktop/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/batch/node/remote_desktop/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/batch/node/remote_desktop/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | from .... pyaz_utils import _call_az
def download(destination, node_id, pool_id, account_endpoint=None, account_key=None, account_name=None):
'''
Required Parameters:
- destination -- The path to the destination file or directory.
- node_id -- The ID of the Compute Node for which you want to get ... | 45.052632 | 114 | 0.744159 | 116 | 856 | 5.301724 | 0.422414 | 0.04878 | 0.087805 | 0.141463 | 0.268293 | 0.229268 | 0.229268 | 0 | 0 | 0 | 0 | 0 | 0.184579 | 856 | 18 | 115 | 47.555556 | 0.881089 | 0.684579 | 0 | 0 | 0 | 0 | 0.16895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
42c7b97e492ea93a3ccb20465da977f4dc3cfa9d | 138 | py | Python | greenHand/c2f.py | duanhaoling/learn_python | 59d4f76e4dbcabb71bc1ad0daf7b8847f776a3b8 | [
"Apache-2.0"
] | null | null | null | greenHand/c2f.py | duanhaoling/learn_python | 59d4f76e4dbcabb71bc1ad0daf7b8847f776a3b8 | [
"Apache-2.0"
] | null | null | null | greenHand/c2f.py | duanhaoling/learn_python | 59d4f76e4dbcabb71bc1ad0daf7b8847f776a3b8 | [
"Apache-2.0"
] | null | null | null | def fahrenheit_converter(C):
fahrenheit = C * 9 / 5 + 32
print(str(fahrenheit) + 'F')
c2f = fahrenheit_converter(35)
print(c2f)
| 17.25 | 32 | 0.65942 | 19 | 138 | 4.684211 | 0.631579 | 0.426966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0.202899 | 138 | 7 | 33 | 19.714286 | 0.736364 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
42e3ddf1c22f5583a63a89dae522a30034eef1b7 | 597 | py | Python | models/vision/detection/awsdet/utils/runner/__init__.py | kevinyang8/deep-learning-models | 271ddfa106c99bc131023e8e159c1b8cc903fe0e | [
"Apache-2.0",
"MIT"
] | 129 | 2018-07-21T11:51:16.000Z | 2022-03-09T07:15:09.000Z | models/vision/detection/awsdet/utils/runner/__init__.py | kevinyang8/deep-learning-models | 271ddfa106c99bc131023e8e159c1b8cc903fe0e | [
"Apache-2.0",
"MIT"
] | 20 | 2018-09-13T23:19:56.000Z | 2021-05-22T02:12:53.000Z | models/vision/detection/awsdet/utils/runner/__init__.py | kevinyang8/deep-learning-models | 271ddfa106c99bc131023e8e159c1b8cc903fe0e | [
"Apache-2.0",
"MIT"
] | 74 | 2018-07-23T12:14:01.000Z | 2022-01-21T05:17:13.000Z | # Copyright (c) Open-MMLab. All rights reserved.
from .dist_utils import (get_dist_info, init_dist, master_only,
get_distributed_tape, broadcast_weights, get_barrier)
from .hooks import (Hook, CheckpointHook, LrUpdaterHook, IterTimerHook,
TextLoggerHook, Visualizer)
from .l... | 39.8 | 78 | 0.726968 | 70 | 597 | 5.885714 | 0.528571 | 0.053398 | 0.067961 | 0.213592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18258 | 597 | 14 | 79 | 42.642857 | 0.844262 | 0.077052 | 0 | 0.181818 | 0 | 0 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.545455 | 0 | 0.545455 | 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 |
42eb9abc4d58f0532d33ce43e90e40f35f3ca2be | 693 | py | Python | entrega8.py | maariagarrcia/calentamiento | e21105049b6ae5d8c15f65a2d65199a96768c87a | [
"Apache-2.0"
] | null | null | null | entrega8.py | maariagarrcia/calentamiento | e21105049b6ae5d8c15f65a2d65199a96768c87a | [
"Apache-2.0"
] | null | null | null | entrega8.py | maariagarrcia/calentamiento | e21105049b6ae5d8c15f65a2d65199a96768c87a | [
"Apache-2.0"
] | null | null | null | # Variables
inversion_bitcoin= 1.2
bitcoin_a_euro= 40000
# Función para el cambio de bitcoin a euro
def bitcoin_euro(inversion_bitcoin, bitcoin_a_euro):
resultado_euros= inversion_bitcoin * bitcoin_a_euro
return resultado_euros
# Si el valor está por debajo hay que avisar
if (bitcoin_a_euro<30000):
print(... | 21.65625 | 55 | 0.76912 | 108 | 693 | 4.62037 | 0.342593 | 0.144289 | 0.216433 | 0.192385 | 0.733467 | 0.661323 | 0.661323 | 0.541082 | 0.416834 | 0.416834 | 0 | 0.041237 | 0.160173 | 693 | 31 | 56 | 22.354839 | 0.816151 | 0.219336 | 0 | 0.888889 | 0 | 0 | 0.071161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.222222 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e20f7791e3c0354f30f5d10b6b682527cad34ec | 3,476 | py | Python | tests/unittests/swagger_wrapper_test.py | amritajain/swagger-graphene | 15038206d019f4caff1179cd5e97b8c6c609b695 | [
"MIT"
] | 13 | 2018-03-11T14:10:04.000Z | 2018-10-16T17:49:12.000Z | tests/unittests/swagger_wrapper_test.py | amritajain/swagger-graphene | 15038206d019f4caff1179cd5e97b8c6c609b695 | [
"MIT"
] | null | null | null | tests/unittests/swagger_wrapper_test.py | amritajain/swagger-graphene | 15038206d019f4caff1179cd5e97b8c6c609b695 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from __future__ import print_function
import os
import sys
import json
import unittest
import graphene
sys.path.remove(sys.path[0])
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../")))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),"../../swagger-... | 44.564103 | 111 | 0.697641 | 439 | 3,476 | 5.150342 | 0.186788 | 0.08138 | 0.067227 | 0.061035 | 0.804954 | 0.729766 | 0.674038 | 0.642636 | 0.642636 | 0.6046 | 0 | 0.000337 | 0.145282 | 3,476 | 78 | 112 | 44.564103 | 0.760687 | 0.009781 | 0 | 0.321429 | 0 | 0.035714 | 0.151409 | 0.033421 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.035714 | false | 0 | 0.142857 | 0 | 0.196429 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6e20fb96c3fb1e4dc630c5aebfaa5e291a3baff2 | 2,417 | py | Python | code/thalesians/maths/stats.py | thalesians/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | 18 | 2017-03-07T19:13:18.000Z | 2021-01-05T00:35:30.000Z | code/thalesians/maths/stats.py | HanMeh/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | null | null | null | code/thalesians/maths/stats.py | HanMeh/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | 14 | 2016-12-27T00:09:40.000Z | 2020-12-27T19:23:53.000Z | import numpy as np
import thalesians.maths.numpyutils as npu
from thalesians.utilities.collections import DiagonalArray, SubdiagonalArray
from thalesians.utilities.conditions import precondition, exactlyonenotnone
@precondition(lambda cor, var=None, sd=None, copy=True: exactlyonenotnone(var, sd),
'Exactly one... | 26.855556 | 83 | 0.601986 | 330 | 2,417 | 4.121212 | 0.254545 | 0.029412 | 0.088235 | 0.035294 | 0.110294 | 0.066176 | 0.035294 | 0 | 0 | 0 | 0 | 0.016083 | 0.279686 | 2,417 | 90 | 84 | 26.855556 | 0.765078 | 0 | 0 | 0 | 0 | 0 | 0.021092 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 1 | 0.230769 | false | 0 | 0.061538 | 0.138462 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6e2affefd42db5d73d0c2637e45b6f783c69b0b4 | 216 | py | Python | app/linuxweb/controller/index/__init__.py | fengshukun/intapp | b09e8ee0ebf8eaa1474e1c9bd075ef9fd1fb1726 | [
"MIT"
] | null | null | null | app/linuxweb/controller/index/__init__.py | fengshukun/intapp | b09e8ee0ebf8eaa1474e1c9bd075ef9fd1fb1726 | [
"MIT"
] | null | null | null | app/linuxweb/controller/index/__init__.py | fengshukun/intapp | b09e8ee0ebf8eaa1474e1c9bd075ef9fd1fb1726 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from . import index,public,home,admin,doc,files,terminal,request,setup,plan
# def error(err,data):
# "该函数在当前目录下无法匹配时被调用"
# return data,"200",{"Content-Type":"text/json; charset=utf-8"} | 43.2 | 75 | 0.680556 | 30 | 216 | 4.9 | 0.9 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026178 | 0.115741 | 216 | 5 | 76 | 43.2 | 0.743456 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e4054fccdffaa3d3e50f5c3fafcadf491d9c2bc | 261 | py | Python | tkbuilder/widgets/widget_wrappers/radiobutton.py | BeamIO-Inc/tkinter_gui_builder | 8f4b458cf1bc16703c80a0fc5c8e44f9067311c3 | [
"MIT"
] | null | null | null | tkbuilder/widgets/widget_wrappers/radiobutton.py | BeamIO-Inc/tkinter_gui_builder | 8f4b458cf1bc16703c80a0fc5c8e44f9067311c3 | [
"MIT"
] | null | null | null | tkbuilder/widgets/widget_wrappers/radiobutton.py | BeamIO-Inc/tkinter_gui_builder | 8f4b458cf1bc16703c80a0fc5c8e44f9067311c3 | [
"MIT"
] | null | null | null | from tkinter import ttk
from tkbuilder.widgets.widget_utils.widget_events import WidgetEvents
import tkinter
class RadioButton(tkinter.Radiobutton, WidgetEvents):
def __init__(self, master=None, **kw):
ttk.Radiobutton.__init__(self, master, **kw)
| 29 | 69 | 0.777778 | 32 | 261 | 6.03125 | 0.5625 | 0.082902 | 0.145078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130268 | 261 | 8 | 70 | 32.625 | 0.85022 | 0 | 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 | 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 | 1 | 0 | 0 | 3 |
28157d33c9914ae4c108b908e4f137412ba0aec3 | 106 | py | Python | Nowcoder/2019 CCPC HeBei Provincial/H.py | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | 1 | 2019-11-12T15:08:16.000Z | 2019-11-12T15:08:16.000Z | Nowcoder/2019 CCPC HeBei Provincial/H.py | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | null | null | null | Nowcoder/2019 CCPC HeBei Provincial/H.py | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | 1 | 2021-05-05T01:16:28.000Z | 2021-05-05T01:16:28.000Z | T = int(input())
for _ in range(T):
n, k = map(int, input().split())
print((n ** k - 1) % 9 + 1) | 21.2 | 36 | 0.462264 | 19 | 106 | 2.526316 | 0.684211 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.283019 | 106 | 5 | 37 | 21.2 | 0.592105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
285e57c6fecfc215e3fbcb722e4fb8764dfba320 | 763 | py | Python | frida/controller/mongodb.py | att/frida | a8cedffc5be79f7a4070f2e6324b33e91448520c | [
"MIT"
] | 6 | 2019-04-17T20:37:53.000Z | 2021-10-30T23:47:15.000Z | frida/controller/mongodb.py | att/frida | a8cedffc5be79f7a4070f2e6324b33e91448520c | [
"MIT"
] | null | null | null | frida/controller/mongodb.py | att/frida | a8cedffc5be79f7a4070f2e6324b33e91448520c | [
"MIT"
] | 3 | 2019-04-17T20:38:57.000Z | 2019-11-01T17:40:58.000Z | # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
import json
import frida.database as fdb
import frida.manifest.profile_mongodb as modb
from frida.controller.base import BaseController
from frida.adapter.factory import AdapterFactory
class MongoDbController(BaseController):
def __init__(self)... | 30.52 | 77 | 0.706422 | 92 | 763 | 5.717391 | 0.597826 | 0.074144 | 0.079848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.21363 | 763 | 24 | 78 | 31.791667 | 0.87 | 0.180865 | 0 | 0 | 0 | 0 | 0.046589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0.357143 | 0 | 0.642857 | 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 |
286333609352c24e9b96d056bc48bafa9cca4458 | 60 | py | Python | src/shopipy/__init__.py | darylantony/shopipy | 97b8cada5de5904dea01d9125d1b7bf27985a6aa | [
"MIT"
] | 2 | 2017-02-01T01:14:09.000Z | 2017-06-22T07:17:56.000Z | src/shopipy/__init__.py | darylantony/shopipy | 97b8cada5de5904dea01d9125d1b7bf27985a6aa | [
"MIT"
] | null | null | null | src/shopipy/__init__.py | darylantony/shopipy | 97b8cada5de5904dea01d9125d1b7bf27985a6aa | [
"MIT"
] | null | null | null | __version__ = '0.2.0'
from shopipy.shopify import Shopify
| 12 | 35 | 0.75 | 9 | 60 | 4.555556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.15 | 60 | 4 | 36 | 15 | 0.745098 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 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 |
28a3a45f3355102c7c4ee7c7cdf87da37b7a8691 | 350 | py | Python | app/unit_tests.py | Votal1/SQL-connect-bot | 06bccf54d56bff0e7984d0b7cbed973bf04f501c | [
"MIT"
] | null | null | null | app/unit_tests.py | Votal1/SQL-connect-bot | 06bccf54d56bff0e7984d0b7cbed973bf04f501c | [
"MIT"
] | null | null | null | app/unit_tests.py | Votal1/SQL-connect-bot | 06bccf54d56bff0e7984d0b7cbed973bf04f501c | [
"MIT"
] | null | null | null | import unittest
from methods import rot13_encrypt, rot13_decrypt
class MyTestCase(unittest.TestCase):
def test_encrypt(self):
self.assertEqual(rot13_encrypt('Hello world'), 'Uryyb jbeyq')
def test_decrypt(self):
self.assertEqual(rot13_encrypt('Uryyb jbeyq'), 'Hello world')
if __name__ == '_... | 23.333333 | 69 | 0.72 | 42 | 350 | 5.666667 | 0.5 | 0.151261 | 0.159664 | 0.201681 | 0.260504 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027491 | 0.168571 | 350 | 14 | 70 | 25 | 0.790378 | 0 | 0 | 0 | 0 | 0 | 0.148571 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
954225aeb74381a0fd6e074e0136d125055e59a3 | 379 | py | Python | solvers/common/sum_region.py | andrinmeier/solvers | 01c5ba29d6c880a9c22cb897ad0e7e006ab1816b | [
"MIT"
] | null | null | null | solvers/common/sum_region.py | andrinmeier/solvers | 01c5ba29d6c880a9c22cb897ad0e7e006ab1816b | [
"MIT"
] | 1 | 2022-03-31T14:10:33.000Z | 2022-03-31T20:11:51.000Z | solvers/common/sum_region.py | andrinmeier/solvers | 01c5ba29d6c880a9c22cb897ad0e7e006ab1816b | [
"MIT"
] | null | null | null | from typing import List
from solvers.common.cell import Cell
class SumRegion:
def __init__(self, sum: int) -> None:
self.sum = sum
self.cells: List[Cell] = []
def add_cell(self, cell: Cell) -> None:
self.cells.append(cell)
def get_cells(self) -> List[Cell]:
return self.ce... | 21.055556 | 43 | 0.612137 | 53 | 379 | 4.245283 | 0.377358 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271768 | 379 | 17 | 44 | 22.294118 | 0.815217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 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 |
95862aad70eefd4ecfd9d5b12488397be3b22525 | 1,430 | py | Python | student/models.py | ambrosiogabe/DjangoTestDrive | 3aa65846a920f6d774c0b5a736b84cad8336ca8f | [
"MIT"
] | 2 | 2021-07-26T18:47:24.000Z | 2021-11-08T09:50:50.000Z | student/models.py | ambrosiogabe/DjangoTestDrive | 3aa65846a920f6d774c0b5a736b84cad8336ca8f | [
"MIT"
] | null | null | null | student/models.py | ambrosiogabe/DjangoTestDrive | 3aa65846a920f6d774c0b5a736b84cad8336ca8f | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Student(models.Model):
s_id = models.AutoField(db_column='S_ID', primary_key=True) # Field name made lowercase.
s_last = models.CharField(db_column='S_Last', max_length=255) # Field name made lowercase.
s_first = models.CharField(db_column='S_... | 75.263158 | 109 | 0.744056 | 220 | 1,430 | 4.586364 | 0.186364 | 0.111001 | 0.180377 | 0.305253 | 0.674926 | 0.414272 | 0.414272 | 0.346878 | 0 | 0 | 0 | 0.029436 | 0.144755 | 1,430 | 18 | 110 | 79.444444 | 0.795585 | 0.281119 | 0 | 0 | 0 | 0 | 0.087945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
95972aae612131e0f1b4656e13955f3d3bf1de8f | 1,905 | py | Python | utils_bopt.py | kenny-co/procedural-advml | 176ed1b526fb94f7dfa6a2ed5aebef36fcc6682f | [
"MIT"
] | 52 | 2018-11-16T19:43:13.000Z | 2021-09-06T09:52:15.000Z | utils_bopt.py | kenny-co/procedural-advml | 176ed1b526fb94f7dfa6a2ed5aebef36fcc6682f | [
"MIT"
] | 2 | 2019-03-20T02:11:02.000Z | 2020-06-19T06:55:13.000Z | utils_bopt.py | kenny-co/procedural-advml | 176ed1b526fb94f7dfa6a2ed5aebef36fcc6682f | [
"MIT"
] | 7 | 2018-11-16T19:08:38.000Z | 2021-08-06T01:39:43.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from noise import pnoise2
from utils_attack import colorize
from utils_noise import gaborN_rand, gaborN_uni
from utils_noise import normalize, perlin
## Helper functions
## Load predict fun... | 33.421053 | 111 | 0.63622 | 228 | 1,905 | 5.127193 | 0.416667 | 0.025663 | 0.041061 | 0.034217 | 0.097519 | 0.065013 | 0 | 0 | 0 | 0 | 0 | 0.02641 | 0.264567 | 1,905 | 56 | 112 | 34.017857 | 0.807994 | 0.167979 | 0 | 0.0625 | 0 | 0 | 0.107575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.3125 | 0 | 0.5625 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
95da7644477798797768e6441e3ef49c8d86ee23 | 631 | py | Python | problems/03/prob-03-2.py | tstuessi/advent-code | 19b51173f1fc233c1f00f61b40d1b0c042496d02 | [
"MIT"
] | null | null | null | problems/03/prob-03-2.py | tstuessi/advent-code | 19b51173f1fc233c1f00f61b40d1b0c042496d02 | [
"MIT"
] | null | null | null | problems/03/prob-03-2.py | tstuessi/advent-code | 19b51173f1fc233c1f00f61b40d1b0c042496d02 | [
"MIT"
] | null | null | null | import sys
# get the path
path = sys.stdin.read()
a = 0
b = 0
x = 0
y = 0
count = 0
visited = set([(a, b), (x, y)])
for c in path:
if count % 2:
if c is '^':
x -= 1
elif c is 'v':
x += 1
elif c is '>':
y += 1
elif c is '<':
y -= 1
... | 16.179487 | 41 | 0.339144 | 90 | 631 | 2.377778 | 0.3 | 0.11215 | 0.168224 | 0.224299 | 0.280374 | 0.17757 | 0 | 0 | 0 | 0 | 0 | 0.048544 | 0.510301 | 631 | 38 | 42 | 16.605263 | 0.644013 | 0.019017 | 0 | 0.258065 | 0 | 0 | 0.012966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
95dbf875399d85ba3e680f72b43be46d0ebf36f6 | 545 | py | Python | PyTrinamic/modules/features/commutation_selection_ap_feature.py | bmoneke/PyTrinamic | d345ce2abf282c41dea8af3c89f6f036aac68686 | [
"MIT"
] | 37 | 2019-01-13T11:08:45.000Z | 2022-03-25T07:18:15.000Z | PyTrinamic/modules/features/commutation_selection_ap_feature.py | AprDec/PyTrinamic | a9db10071f8fbeebafecb55c619e5893757dd0ce | [
"MIT"
] | 56 | 2019-02-25T02:48:27.000Z | 2022-03-31T08:45:34.000Z | PyTrinamic/modules/features/commutation_selection_ap_feature.py | AprDec/PyTrinamic | a9db10071f8fbeebafecb55c619e5893757dd0ce | [
"MIT"
] | 26 | 2019-01-14T05:20:16.000Z | 2022-03-08T13:27:35.000Z | '''
Created 01.10.2020
@author: ED
'''
from abc import ABC
class commutation_selection_ap_feature(ABC):
def __init__(self, parent):
self._motorInterface = parent
def setMode(self, mode):
self._motorInterface.setAxisParameter(self._motorInterface.AP.CommutationMode, mode)
d... | 23.695652 | 92 | 0.684404 | 57 | 545 | 6.333333 | 0.508772 | 0.249307 | 0.110803 | 0.193906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018433 | 0.20367 | 545 | 22 | 93 | 24.772727 | 0.813364 | 0.056881 | 0 | 0 | 0 | 0 | 0.059289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.090909 | 0.636364 | 0.181818 | 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 |
95e86582ea13abddc3a9f1e3e29530b2f8b23ce5 | 2,431 | py | Python | kw3pan/pancakeswap/liquidity_pool/wbnb_busd/pancakeswap_wbnb_busd_liquidity_pool.py | kkristof200/py_web3_pancakeswap | ae9dc7021b7da2365ce675f29f89e103fe44d77f | [
"MIT"
] | 6 | 2021-05-09T12:43:37.000Z | 2021-12-07T01:56:02.000Z | kw3pan/pancakeswap/liquidity_pool/wbnb_busd/pancakeswap_wbnb_busd_liquidity_pool.py | kkristof200/py_web3_pancakeswap | ae9dc7021b7da2365ce675f29f89e103fe44d77f | [
"MIT"
] | null | null | null | kw3pan/pancakeswap/liquidity_pool/wbnb_busd/pancakeswap_wbnb_busd_liquidity_pool.py | kkristof200/py_web3_pancakeswap | ae9dc7021b7da2365ce675f29f89e103fe44d77f | [
"MIT"
] | null | null | null | # ------------------------------------------------------------ Imports ----------------------------------------------------------- #
# System
from typing import Optional
# Pip
from kw3 import Web3, Busd, Wbnb
# Local
from .reserves_wbnb_busd import ReservesWbnbBusd
from ..core.pancakeswap_liquidity_pool import Panc... | 28.940476 | 132 | 0.453723 | 165 | 2,431 | 6.581818 | 0.351515 | 0.101289 | 0.038674 | 0.038674 | 0.046041 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009165 | 0.192102 | 2,431 | 84 | 133 | 28.940476 | 0.543788 | 0.357466 | 0 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.119048 | 0.166667 | 0.690476 | 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 |
95eda9ad83f43d11a7a629a01b609a62d5b1fa67 | 8,508 | py | Python | mapclientplugins/fieldworkpcregpelvis2landmarksstep/resources_rc.py | tsalemink/fieldworkpcregpelvis2landmarksstep | 6e1d0ca6e06b4f049b1bedbdbe394c10e4767dd3 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/fieldworkpcregpelvis2landmarksstep/resources_rc.py | tsalemink/fieldworkpcregpelvis2landmarksstep | 6e1d0ca6e06b4f049b1bedbdbe394c10e4767dd3 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/fieldworkpcregpelvis2landmarksstep/resources_rc.py | tsalemink/fieldworkpcregpelvis2landmarksstep | 6e1d0ca6e06b4f049b1bedbdbe394c10e4767dd3 | [
"Apache-2.0"
] | 1 | 2021-06-04T00:02:58.000Z | 2021-06-04T00:02:58.000Z | # Resource object code (Python 3)
# Created by: object code
# Created by: The Resource Compiler for Qt version 5.15.2
# WARNING! All changes made in this file will be lost!
from PySide2 import QtCore
qt_resource_data = b"\
\x00\x00\x08\xd7\
\x89\
PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\
\x00\x00@\x00\x... | 44.544503 | 97 | 0.703691 | 1,814 | 8,508 | 3.284454 | 0.315877 | 0.077543 | 0.081571 | 0.070493 | 0.098355 | 0.091306 | 0.0809 | 0.076032 | 0.076032 | 0.062773 | 0 | 0.249102 | 0.051599 | 8,508 | 190 | 98 | 44.778947 | 0.48928 | 0.019276 | 0 | 0.027933 | 0 | 0.631285 | 0 | 0 | 0 | 0 | 0.000982 | 0 | 0 | 1 | 0.011173 | false | 0 | 0.005587 | 0 | 0.01676 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
95f60d115bb9915f1f03ecc8beb82822065b6d9e | 4,028 | py | Python | tests/test_doxygen.py | melexis/warnings-plugin | 6f821f5c82c2cdf37988d28e651646e1452faf43 | [
"Apache-2.0"
] | 7 | 2017-04-21T12:05:23.000Z | 2019-12-12T13:37:07.000Z | tests/test_doxygen.py | melexis/warnings-plugin | 6f821f5c82c2cdf37988d28e651646e1452faf43 | [
"Apache-2.0"
] | 100 | 2017-04-24T10:50:33.000Z | 2022-02-18T10:39:42.000Z | tests/test_doxygen.py | melexis/warnings-plugin | 6f821f5c82c2cdf37988d28e651646e1452faf43 | [
"Apache-2.0"
] | 2 | 2017-05-23T11:50:59.000Z | 2019-11-06T09:26:33.000Z | from io import StringIO
from unittest import TestCase
from unittest.mock import patch
from mlx.warnings import WarningsPlugin
class TestDoxygenWarnings(TestCase):
def setUp(self):
self.warnings = WarningsPlugin(verbose=True)
self.warnings.activate_checker_name('doxygen')
def te... | 51.641026 | 157 | 0.663853 | 523 | 4,028 | 5.030593 | 0.206501 | 0.082098 | 0.058153 | 0.047891 | 0.723679 | 0.723679 | 0.703915 | 0.667427 | 0.667427 | 0.667427 | 0 | 0.016468 | 0.231132 | 4,028 | 77 | 158 | 52.311688 | 0.833064 | 0 | 0 | 0.484848 | 0 | 0.045455 | 0.32245 | 0.038218 | 0 | 0 | 0 | 0 | 0.212121 | 1 | 0.121212 | false | 0 | 0.060606 | 0 | 0.19697 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2553eba6abf86da5af62563ff1736999f7099c3f | 517 | py | Python | data_steward/constants/cdr_cleaner/clean_cdr_engine.py | dcampbell-vumc/curation | 327296b12cc0864cf32636be03b2b020447bd012 | [
"MIT"
] | null | null | null | data_steward/constants/cdr_cleaner/clean_cdr_engine.py | dcampbell-vumc/curation | 327296b12cc0864cf32636be03b2b020447bd012 | [
"MIT"
] | null | null | null | data_steward/constants/cdr_cleaner/clean_cdr_engine.py | dcampbell-vumc/curation | 327296b12cc0864cf32636be03b2b020447bd012 | [
"MIT"
] | null | null | null | import os
import tempfile
FILENAME = os.path.join(tempfile.gettempdir(), 'cleaner.log')
FAILURE_MESSAGE_TEMPLATE = '''
The failed query was generated from the below module:
module_name={module_name}
function_name={function_name}
line_no={line_no}
The failed query ran with the following configuration:
... | 25.85 | 61 | 0.758221 | 64 | 517 | 5.875 | 0.546875 | 0.103723 | 0.074468 | 0.117021 | 0.140957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 517 | 19 | 62 | 27.210526 | 0.854545 | 0 | 0 | 0 | 1 | 0 | 0.781431 | 0.400387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2560f6a16d5fe01e221ee12837bd6eb1bf803f99 | 56 | py | Python | extapis/java_jni/python/pagerank_post.py | iivek/graphlab-cmu-mirror | 028321757ea979e6a0859687e37933be375153eb | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-08-01T06:32:58.000Z | 2018-08-01T06:32:58.000Z | extapis/java_jni/python/pagerank_post.py | iivek/graphlab-cmu-mirror | 028321757ea979e6a0859687e37933be375153eb | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | extapis/java_jni/python/pagerank_post.py | iivek/graphlab-cmu-mirror | 028321757ea979e6a0859687e37933be375153eb | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
for v in graph.getVertices():
print(v.value.rank) | 11.2 | 29 | 0.660714 | 9 | 56 | 4.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196429 | 56 | 5 | 30 | 11.2 | 0.822222 | 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 |
c24f1d992c8325e1ace07d43ebf0eb873fef1a7d | 171 | py | Python | nub.py | rhattersley/nub | 8c423bd3faed98b69885c5969d4b058845be9ab5 | [
"BSD-3-Clause"
] | null | null | null | nub.py | rhattersley/nub | 8c423bd3faed98b69885c5969d4b058845be9ab5 | [
"BSD-3-Clause"
] | null | null | null | nub.py | rhattersley/nub | 8c423bd3faed98b69885c5969d4b058845be9ab5 | [
"BSD-3-Clause"
] | null | null | null | from contextlib import contextmanager
from time import time
@contextmanager
def timeit(label):
t0 = time()
yield
print '{}: {} s'.format(label, time() - t0)
| 17.1 | 47 | 0.666667 | 21 | 171 | 5.428571 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.210526 | 171 | 9 | 48 | 19 | 0.82963 | 0 | 0 | 0 | 0 | 0 | 0.046784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c25d789a6532ce79cae76f65ff3d9e4f56b5a2d9 | 1,168 | py | Python | basket/nuke/burnin/betterWriteNodes_hack_source.py | Hartman-/Basket | 7b9c174b031c9ffac2de886f5e149adcd5f7c83f | [
"BSD-3-Clause"
] | 2 | 2017-02-07T11:28:58.000Z | 2017-12-01T05:41:36.000Z | basket/nuke/burnin/betterWriteNodes_hack_source.py | Hartman-/Basket | 7b9c174b031c9ffac2de886f5e149adcd5f7c83f | [
"BSD-3-Clause"
] | 25 | 2016-08-18T01:16:59.000Z | 2017-02-11T03:57:20.000Z | basket/nuke/burnin/betterWriteNodes_hack_source.py | Hartman-/Basket | 7b9c174b031c9ffac2de886f5e149adcd5f7c83f | [
"BSD-3-Clause"
] | null | null | null | nuke.root().knob('onScriptSave').setValue('''
import re
for n in nuke.allNodes():
if n.Class() == 'Write':
code = """
import re
fileVersion = re.search( r'[vV]\d+', os.path.split(nuke.root().name())[1]).group()
print fileVersion
for node in nuke.allNodes():
if node.Class() == 'Write':
node.knob('file').setValue(... | 24.333333 | 95 | 0.663527 | 168 | 1,168 | 4.595238 | 0.279762 | 0.015544 | 0.020725 | 0.041451 | 0.65544 | 0.564767 | 0.564767 | 0.474093 | 0.391192 | 0.391192 | 0 | 0.001957 | 0.125 | 1,168 | 48 | 96 | 24.333333 | 0.753425 | 0 | 0 | 0.595238 | 0 | 0.095238 | 0.967494 | 0.414029 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.047619 | 0.071429 | 0 | 0.071429 | 0.119048 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c29b17cf1ee476d8a3b164bd2fa269fdf612f7ac | 695 | py | Python | rankings/migrations/0007_auto_20200510_1543.py | dlanghorne0428/dancesport-tracker-projec | e55d91a4f03c26d6ee8c28846a809064adfdb158 | [
"MIT"
] | null | null | null | rankings/migrations/0007_auto_20200510_1543.py | dlanghorne0428/dancesport-tracker-projec | e55d91a4f03c26d6ee8c28846a809064adfdb158 | [
"MIT"
] | 87 | 2020-04-15T22:29:03.000Z | 2022-01-02T02:21:28.000Z | rankings/migrations/0007_auto_20200510_1543.py | dlanghorne0428/dancesport-tracker-projec | e55d91a4f03c26d6ee8c28846a809064adfdb158 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-05-10 15:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rankings', '0006_auto_20200414_0150'),
]
operations = [
migrations.AddField(
model_name='couple',
name='event_count'... | 23.965517 | 49 | 0.558273 | 69 | 695 | 5.507246 | 0.565217 | 0.142105 | 0.181579 | 0.213158 | 0.452632 | 0.452632 | 0.2 | 0 | 0 | 0 | 0 | 0.076596 | 0.323741 | 695 | 28 | 50 | 24.821429 | 0.731915 | 0.064748 | 0 | 0.5 | 1 | 0 | 0.12037 | 0.035494 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c2cd14a5c6cbd9dc5efbd33f2d003f523103e9ca | 416 | py | Python | pyigm/cgm/tests/test_analysis.py | pyigm/pyigm | 8b4bc7f7f1c9f1c280720a4cc0693cd7cb79e9cb | [
"BSD-3-Clause"
] | 16 | 2016-02-12T19:03:38.000Z | 2021-08-11T15:16:25.000Z | pyigm/cgm/tests/test_analysis.py | pyigm/pyigm | 8b4bc7f7f1c9f1c280720a4cc0693cd7cb79e9cb | [
"BSD-3-Clause"
] | 204 | 2015-12-06T13:40:05.000Z | 2021-02-11T21:48:39.000Z | pyigm/cgm/tests/test_analysis.py | pyigm/pyigm | 8b4bc7f7f1c9f1c280720a4cc0693cd7cb79e9cb | [
"BSD-3-Clause"
] | 16 | 2015-12-06T23:27:49.000Z | 2021-11-01T10:08:24.000Z | # Module to run tests on generating IGMSystem
from __future__ import print_function, absolute_import, division, unicode_literals
# TEST_UNICODE_LITERALS
import numpy as np
import pytest
from astropy.cosmology import Planck15
from ..analysis import dndx_rvir
def test_dndx_rvir():
# Simple properties
Lval, ... | 21.894737 | 82 | 0.783654 | 59 | 416 | 5.288136 | 0.694915 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042373 | 0.149038 | 416 | 18 | 83 | 23.111111 | 0.838983 | 0.199519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | true | 0 | 0.625 | 0 | 0.75 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6c24671b72568dbba0596965ea59bc1f5d1e8e5b | 266 | py | Python | src/mtensorflow/tf_rbm.py | mumupy/mmdeeplearning | fb10a652197556d76ff025c631afa5645ca2cf24 | [
"Apache-2.0"
] | 9 | 2019-10-25T03:50:02.000Z | 2022-03-22T13:22:11.000Z | src/mtensorflow/tf_rbm.py | mumupy/mmdeeplearning | fb10a652197556d76ff025c631afa5645ca2cf24 | [
"Apache-2.0"
] | 11 | 2019-12-11T14:47:54.000Z | 2022-02-10T00:23:57.000Z | src/mtensorflow/tf_rbm.py | mumupy/mmdeeplearning | fb10a652197556d76ff025c631afa5645ca2cf24 | [
"Apache-2.0"
] | 1 | 2021-04-20T07:30:42.000Z | 2021-04-20T07:30:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/10/26 12:45
# @Author : ganliang
# @File : tf_rbm.py
# @Desc : 受限玻尔兹曼机(RBM)是一个两层神经网络,第一层被称为可见层,第二层被称为隐藏层,因为网络只有两层,所以又被称为浅层神经网络。
# RBM 可以用于降维、特征提取和协同过滤,RBM 的训练可以分成三部分:正向传播、反向传播和比较。下面看看 RBM 的表达式。
| 29.555556 | 77 | 0.680451 | 37 | 266 | 4.864865 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057778 | 0.154135 | 266 | 8 | 78 | 33.25 | 0.742222 | 0.943609 | 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 |
6c455c6177a789d37b32fdd0771e45f3460146d1 | 450 | py | Python | forms-flow-data-analysis-api/tests/unit/services/test_sentiment_analysis.py | sreehari-aot/forms-flow-ai | 11e2fdd6da792aaa9dd46c0cec38564fe5916b58 | [
"Apache-2.0"
] | null | null | null | forms-flow-data-analysis-api/tests/unit/services/test_sentiment_analysis.py | sreehari-aot/forms-flow-ai | 11e2fdd6da792aaa9dd46c0cec38564fe5916b58 | [
"Apache-2.0"
] | null | null | null | forms-flow-data-analysis-api/tests/unit/services/test_sentiment_analysis.py | sreehari-aot/forms-flow-ai | 11e2fdd6da792aaa9dd46c0cec38564fe5916b58 | [
"Apache-2.0"
] | null | null | null | """ Test to assure code Sentiment Analysis Service.
Test-suite
"""
from api.services.transformers import (
sentiment_analysis_pipeline_transformers
)
def sentiment_analysis_pipeline_transformers():
response = sentiment_analysis_pipeline_transformers(
"Staff was very helpful."
)
assert re... | 25 | 56 | 0.746667 | 46 | 450 | 7.108696 | 0.608696 | 0.207951 | 0.229358 | 0.33945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173333 | 450 | 17 | 57 | 26.470588 | 0.879032 | 0.131111 | 0 | 0 | 0 | 0 | 0.164491 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6c4f55d0173d8d59394b739f42b1d1a47336f3b2 | 494 | py | Python | src/FileMetaData.py | konstantin89/swift-duplicate-images-finder | 82e1f6abb14979dc628756c6f058e8a8dbed7851 | [
"MIT"
] | 1 | 2021-05-18T10:47:31.000Z | 2021-05-18T10:47:31.000Z | src/FileMetaData.py | konstantin89/swift-duplicate-images-finder | 82e1f6abb14979dc628756c6f058e8a8dbed7851 | [
"MIT"
] | null | null | null | src/FileMetaData.py | konstantin89/swift-duplicate-images-finder | 82e1f6abb14979dc628756c6f058e8a8dbed7851 | [
"MIT"
] | null | null | null | from typing import NewType
class FileMetaData:
def __init__(self, path: str, size: int, last_edit_time: float):
self.path = path
self.size = size
self.last_edit_time = last_edit_time
def GetSize(self):
return self.size
def GetPath(self):
return self.path
def... | 22.454545 | 68 | 0.684211 | 62 | 494 | 5.258065 | 0.467742 | 0.09816 | 0.147239 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240891 | 494 | 21 | 69 | 23.52381 | 0.869333 | 0.097166 | 0 | 0 | 0 | 0 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.230769 | 0.692308 | 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 |
6c61ca7288c346c9a99a05fe5b35704b0023e8a4 | 478 | py | Python | blog/api/serializers.py | DungeonMasterXLII/merit-api | 07e7e10d44ade9a1943009c7a183147fab4e96ef | [
"MIT"
] | null | null | null | blog/api/serializers.py | DungeonMasterXLII/merit-api | 07e7e10d44ade9a1943009c7a183147fab4e96ef | [
"MIT"
] | 1 | 2021-11-23T17:56:07.000Z | 2021-11-23T17:56:07.000Z | blog/api/serializers.py | DungeonMasterXLII/merit-api | 07e7e10d44ade9a1943009c7a183147fab4e96ef | [
"MIT"
] | 2 | 2022-03-03T15:43:50.000Z | 2022-03-31T15:08:29.000Z | from blog.models import Comment
from rest_framework import serializers
class CommentSerializer(serializers.ModelSerializer):
class Meta:
model = Comment
fields = ('name', 'content', 'date_created')
class CreateCommentSerializer(serializers.ModelSerializer):
class Meta:
model = Commen... | 26.555556 | 60 | 0.700837 | 49 | 478 | 6.714286 | 0.591837 | 0.158055 | 0.18845 | 0.212766 | 0.389058 | 0.389058 | 0.389058 | 0.389058 | 0.389058 | 0 | 0 | 0 | 0.198745 | 478 | 17 | 61 | 28.117647 | 0.859008 | 0 | 0 | 0.333333 | 0 | 0 | 0.104603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6c67c5debbedf754b312f8e8d841ce81d3ff7b72 | 8,547 | py | Python | optiml/ml/svm/losses.py | DonatoMeoli/NumericalOptimization | e60144458026a6ddbe1612f92b838c342db572eb | [
"MIT"
] | 4 | 2020-05-22T09:17:56.000Z | 2022-03-15T18:23:56.000Z | optiml/ml/svm/losses.py | DonatoMeoli/NumericalOptimization | e60144458026a6ddbe1612f92b838c342db572eb | [
"MIT"
] | 1 | 2022-02-25T08:29:56.000Z | 2022-02-25T09:03:13.000Z | optiml/ml/svm/losses.py | DonatoMeoli/NumericalOptimization | e60144458026a6ddbe1612f92b838c342db572eb | [
"MIT"
] | 5 | 2020-10-10T13:38:57.000Z | 2022-03-13T20:23:37.000Z | from abc import ABC
import autograd.numpy as np
from .kernels import linear
from ...opti import OptimizationFunction
class SVMLoss(OptimizationFunction, ABC):
def __init__(self, svm, X, y):
super(SVMLoss, self).__init__(X.shape[1])
self.svm = svm
self.X = X
self.y = y
def a... | 39.569444 | 114 | 0.56008 | 1,150 | 8,547 | 3.925217 | 0.093043 | 0.054497 | 0.049845 | 0.024369 | 0.757864 | 0.73261 | 0.708241 | 0.667922 | 0.661941 | 0.661941 | 0 | 0.010415 | 0.337194 | 8,547 | 215 | 115 | 39.753488 | 0.786408 | 0.137709 | 0 | 0.664516 | 0 | 0 | 0.013064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141935 | false | 0 | 0.025806 | 0.032258 | 0.309677 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6c81624f1ed087e5c03cb10b458d74d5fe3a6b2b | 1,174 | py | Python | code_examples/Python/sync_calculator/app/Calculator.py | VPoser/docs-and-training | 55d4aa4c5b964f3c810d58008db4c5b75260322b | [
"Zlib"
] | null | null | null | code_examples/Python/sync_calculator/app/Calculator.py | VPoser/docs-and-training | 55d4aa4c5b964f3c810d58008db4c5b75260322b | [
"Zlib"
] | 4 | 2019-05-29T06:16:56.000Z | 2021-03-31T19:03:36.000Z | code_examples/Python/sync_calculator/app/Calculator.py | VPoser/docs-and-training | 55d4aa4c5b964f3c810d58008db4c5b75260322b | [
"Zlib"
] | 3 | 2019-04-02T08:48:31.000Z | 2020-09-23T08:13:35.000Z | """A very simple calculator SOAP service written in Python.
This simple service utilizes the "flask_spyne" package to create a SOAP service
with just a few lines of code.
"""
from spyne import Application, srpc, ServiceBase, Float
from spyne.protocol.soap import Soap11
# Define the target namespace
TNS = "calculator.... | 28.634146 | 82 | 0.697615 | 166 | 1,174 | 4.843373 | 0.481928 | 0.014925 | 0.052239 | 0.078358 | 0.145522 | 0.133085 | 0.097015 | 0.097015 | 0.097015 | 0.097015 | 0 | 0.006536 | 0.218058 | 1,174 | 40 | 83 | 29.35 | 0.869281 | 0.455707 | 0 | 0.166667 | 0 | 0 | 0.056291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.166667 | 0.611111 | 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 |
6c8218ea2fc680c392231baa2a7ef06d81493880 | 2,497 | py | Python | robotframework_pykafka/robotframework_pykafka.py | adrianszadkowski/robotframework-pykafka | 0a048d0a4b3985cca85841555718ffa86b9f9116 | [
"Apache-2.0"
] | 9 | 2018-08-30T00:08:51.000Z | 2022-01-17T00:50:56.000Z | robotframework_pykafka/robotframework_pykafka.py | adrianszadkowski/robotframework-pykafka | 0a048d0a4b3985cca85841555718ffa86b9f9116 | [
"Apache-2.0"
] | 2 | 2018-10-10T20:54:26.000Z | 2018-10-10T20:57:02.000Z | robotframework_pykafka/robotframework_pykafka.py | adrianszadkowski/robotframework-pykafka | 0a048d0a4b3985cca85841555718ffa86b9f9116 | [
"Apache-2.0"
] | 2 | 2020-02-18T00:09:40.000Z | 2020-10-13T12:20:43.000Z | #!/bin/python3
from kafka_helper import *
from robot.api import logger
from robot.api.deco import keyword
##################################################
# Defines keywords to help in testing kafka stream processing applications.
class robotframework_pykafka:
##################################################... | 42.322034 | 81 | 0.595114 | 255 | 2,497 | 5.792157 | 0.384314 | 0.140826 | 0.081246 | 0.092079 | 0.276236 | 0.276236 | 0.222072 | 0.159783 | 0.090724 | 0.090724 | 0 | 0.00049 | 0.18302 | 2,497 | 58 | 82 | 43.051724 | 0.723529 | 0.354425 | 0 | 0 | 0 | 0 | 0.103188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.619048 | 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 |
668c252bce978910242ae04677a3289736fc2927 | 2,229 | py | Python | reports/migrations/0001_initial.py | dgmarko/zach_p_eq_database | ffb69b84645695fe85c77129381fade5e39628d2 | [
"MIT"
] | null | null | null | reports/migrations/0001_initial.py | dgmarko/zach_p_eq_database | ffb69b84645695fe85c77129381fade5e39628d2 | [
"MIT"
] | null | null | null | reports/migrations/0001_initial.py | dgmarko/zach_p_eq_database | ffb69b84645695fe85c77129381fade5e39628d2 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-05-14 20:57
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Transaction',
fields=[
('id', models.AutoFi... | 49.533333 | 114 | 0.580529 | 228 | 2,229 | 5.631579 | 0.307018 | 0.161215 | 0.182243 | 0.238318 | 0.602804 | 0.602804 | 0.169003 | 0.169003 | 0.169003 | 0 | 0 | 0.020744 | 0.264693 | 2,229 | 44 | 115 | 50.659091 | 0.76266 | 0.020188 | 0 | 0 | 1 | 0 | 0.098533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.135135 | 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 |
66c605b2dd9383bad84fa4f1513bdf69607698ca | 54 | py | Python | helper.py | jkm4ca/cs3240-labdemo | c408475b43a3b566843f0a8229852b4e82117912 | [
"MIT"
] | null | null | null | helper.py | jkm4ca/cs3240-labdemo | c408475b43a3b566843f0a8229852b4e82117912 | [
"MIT"
] | null | null | null | helper.py | jkm4ca/cs3240-labdemo | c408475b43a3b566843f0a8229852b4e82117912 | [
"MIT"
] | null | null | null | __author__ = 'jkm4ca'
def greeting(msg):
print(msg)
| 10.8 | 21 | 0.703704 | 7 | 54 | 4.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.148148 | 54 | 4 | 22 | 13.5 | 0.717391 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
66c7ea9b1d96a63d8c7771677cb1489291e1658c | 1,517 | py | Python | src/app/migrations/0025_auto_20180507_1133.py | deadlock-delegate/arkdelegates | 8a5262f51b519ba3bc10094756c8866fc550df65 | [
"MIT"
] | 2 | 2018-05-22T13:47:09.000Z | 2018-05-23T12:45:05.000Z | src/app/migrations/0025_auto_20180507_1133.py | deadlock-delegate/arkdelegates | 8a5262f51b519ba3bc10094756c8866fc550df65 | [
"MIT"
] | 21 | 2018-05-08T12:56:46.000Z | 2020-06-05T18:59:38.000Z | src/app/migrations/0025_auto_20180507_1133.py | deadlock-delegate/arkdelegates | 8a5262f51b519ba3bc10094756c8866fc550df65 | [
"MIT"
] | 4 | 2018-05-04T15:00:59.000Z | 2019-02-13T02:39:07.000Z | # Generated by Django 2.0.5 on 2018-05-07 11:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0024_auto_20180426_1254'),
]
operations = [
migrations.AddField(
model_name='delegate',
name='payout_covering... | 30.959184 | 83 | 0.580751 | 152 | 1,517 | 5.611842 | 0.361842 | 0.147714 | 0.188746 | 0.221571 | 0.650645 | 0.650645 | 0.650645 | 0.545135 | 0.475967 | 0.475967 | 0 | 0.041746 | 0.305208 | 1,517 | 48 | 84 | 31.604167 | 0.767552 | 0.029664 | 0 | 0.595238 | 1 | 0 | 0.142857 | 0.05102 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.095238 | 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 |
66ca1f781fa3bd8e5609e2d9ecec214a24ed7e32 | 260 | py | Python | ldb/filters.py | bramvankooten/dienst2 | de318782840ab052345dd6c2ee8be42f4fb0666d | [
"Apache-2.0"
] | 1 | 2017-09-07T15:32:46.000Z | 2017-09-07T15:32:46.000Z | ldb/filters.py | bramvankooten/dienst2 | de318782840ab052345dd6c2ee8be42f4fb0666d | [
"Apache-2.0"
] | 182 | 2015-05-10T15:08:25.000Z | 2021-12-17T19:38:02.000Z | ldb/filters.py | bramvankooten/dienst2 | de318782840ab052345dd6c2ee8be42f4fb0666d | [
"Apache-2.0"
] | 4 | 2018-02-27T20:29:13.000Z | 2021-10-30T20:53:55.000Z | from __future__ import unicode_literals
import django_filters
from ldb.models import CommitteeMembership
class CommitteeMembershipFilter(django_filters.FilterSet):
class Meta:
model = CommitteeMembership
fields = ("board", "committee")
| 21.666667 | 58 | 0.769231 | 25 | 260 | 7.72 | 0.72 | 0.134715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 260 | 11 | 59 | 23.636364 | 0.897674 | 0 | 0 | 0 | 0 | 0 | 0.053846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dd101587c65276c097508fc59d525803f3292948 | 76 | py | Python | noisy_outlier/model/__init__.py | JanDiers/self-supervised-outlier | 4ca9f8b3c9a663b7c51f771533197e5edc678953 | [
"MIT"
] | 2 | 2021-07-16T12:27:11.000Z | 2021-08-18T11:06:25.000Z | noisy_outlier/model/__init__.py | JanDiers/self-supervised-outlier | 4ca9f8b3c9a663b7c51f771533197e5edc678953 | [
"MIT"
] | null | null | null | noisy_outlier/model/__init__.py | JanDiers/self-supervised-outlier | 4ca9f8b3c9a663b7c51f771533197e5edc678953 | [
"MIT"
] | null | null | null | from .model import NoisyOutlierDetector
__all__ = ['NoisyOutlierDetector']
| 19 | 39 | 0.815789 | 6 | 76 | 9.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 3 | 40 | 25.333333 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 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 |
dd1b2014d69d252df959e4d3251528b152ffdd57 | 5,547 | py | Python | example/old_version/model.py | wangjiehui11235/ultron | ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7 | [
"Apache-2.0"
] | 4 | 2019-06-06T09:38:49.000Z | 2022-01-29T00:02:11.000Z | example/old_version/model.py | wangjiehui11235/ultron | ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7 | [
"Apache-2.0"
] | 1 | 2022-02-11T03:43:10.000Z | 2022-02-11T03:43:10.000Z | example/old_version/model.py | wangjiehui11235/ultron | ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7 | [
"Apache-2.0"
] | 8 | 2019-06-02T13:11:00.000Z | 2021-11-11T01:06:22.000Z | # -*- coding: utf-8 -*-
from sqlalchemy import BigInteger, Column, DateTime, Float, Index, Integer, String, Text, Boolean, text, JSON,TIMESTAMP
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
metadata = Base.metadata
class IndustryComponents(Base):
__tablename__ = 'industry'
... | 34.66875 | 119 | 0.677844 | 662 | 5,547 | 5.543807 | 0.252266 | 0.278747 | 0.329428 | 0.071935 | 0.211444 | 0.152861 | 0.152861 | 0.152861 | 0.152861 | 0.152861 | 0 | 0.058732 | 0.192717 | 5,547 | 160 | 120 | 34.66875 | 0.760831 | 0.003786 | 0 | 0.082192 | 0 | 0 | 0.018824 | 0.004525 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013699 | 0 | 0.972603 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
dd35d7ce223c7d09397c2f1d87aa9d353fb84cb9 | 398 | py | Python | dispike/errors/response.py | mitsuaky/dispike | bd3ffb28fc03307077d647ee233f4f0e5c594434 | [
"MIT"
] | 41 | 2020-12-29T03:07:38.000Z | 2022-01-30T09:05:03.000Z | dispike/errors/response.py | mitsuaky/dispike | bd3ffb28fc03307077d647ee233f4f0e5c594434 | [
"MIT"
] | 66 | 2020-12-28T08:04:27.000Z | 2021-11-04T09:12:54.000Z | dispike/errors/response.py | mitsuaky/dispike | bd3ffb28fc03307077d647ee233f4f0e5c594434 | [
"MIT"
] | 11 | 2021-01-21T22:36:34.000Z | 2021-11-04T07:23:30.000Z | class ContentIsEmpty(Exception):
def __str__(self) -> str:
return "No string was passed for content. You must add a text content to a DiscordResponse"
def __repr__(self) -> str:
return "No string was passed for content. You must add a text content to a DiscordResponse"
class InvalidDiscordRes... | 28.428571 | 99 | 0.726131 | 51 | 398 | 5.509804 | 0.470588 | 0.049822 | 0.092527 | 0.106762 | 0.569395 | 0.569395 | 0.569395 | 0.569395 | 0.569395 | 0.569395 | 0 | 0 | 0.211055 | 398 | 14 | 100 | 28.428571 | 0.894904 | 0 | 0 | 0.444444 | 0 | 0 | 0.411028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.444444 | 0 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
dd3a1aa5590d4b23b59b7ebf11f027b2635658ad | 198 | py | Python | dataset/kaggle_casting_dataset.py | ByeongGil-Jung/Pytorch-Experiments-Boilerplate | 5026fda297460552a076addbf7d29ad826ee0ac8 | [
"Apache-2.0"
] | null | null | null | dataset/kaggle_casting_dataset.py | ByeongGil-Jung/Pytorch-Experiments-Boilerplate | 5026fda297460552a076addbf7d29ad826ee0ac8 | [
"Apache-2.0"
] | null | null | null | dataset/kaggle_casting_dataset.py | ByeongGil-Jung/Pytorch-Experiments-Boilerplate | 5026fda297460552a076addbf7d29ad826ee0ac8 | [
"Apache-2.0"
] | null | null | null | from torchvision.datasets import ImageFolder
class KaggleCastingDataset(ImageFolder):
def __init__(self, *args, **kwargs):
super(KaggleCastingDataset, self).__init__(*args, **kwargs)
| 24.75 | 67 | 0.747475 | 19 | 198 | 7.368421 | 0.684211 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141414 | 198 | 7 | 68 | 28.285714 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
dd3ba6090abb7745bd420f5b0f11c39101bff6e0 | 435 | py | Python | allennlp/training/__init__.py | ammaddd/allennlp | 3aafb927dda66f8efbf38e263e352df48bbad6b6 | [
"Apache-2.0"
] | null | null | null | allennlp/training/__init__.py | ammaddd/allennlp | 3aafb927dda66f8efbf38e263e352df48bbad6b6 | [
"Apache-2.0"
] | null | null | null | allennlp/training/__init__.py | ammaddd/allennlp | 3aafb927dda66f8efbf38e263e352df48bbad6b6 | [
"Apache-2.0"
] | null | null | null | from allennlp.training.checkpointer import Checkpointer
from allennlp.training.tensorboard_writer import TensorBoardWriter
from allennlp.training.log_writer import LogWriter
from allennlp.training.no_op_trainer import NoOpTrainer
from allennlp.training.trainer import (
Trainer,
GradientDescentTrainer,
Train... | 31.071429 | 66 | 0.827586 | 40 | 435 | 8.9 | 0.5 | 0.168539 | 0.280899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128736 | 435 | 13 | 67 | 33.461538 | 0.939314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dd413de3e0360e1b9e08d57d87cc441e76660592 | 6,251 | py | Python | sample/model/sample.py | dsuarezgarcia/freecomet | a09e86ca94957660c70269230e578f0c670775c2 | [
"MIT"
] | null | null | null | sample/model/sample.py | dsuarezgarcia/freecomet | a09e86ca94957660c70269230e578f0c670775c2 | [
"MIT"
] | null | null | null | sample/model/sample.py | dsuarezgarcia/freecomet | a09e86ca94957660c70269230e578f0c670775c2 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
'''
The sample module.
'''
# General imports
import itertools
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ #
# #
# Sample ... | 35.517045 | 123 | 0.538634 | 678 | 6,251 | 4.469027 | 0.154867 | 0.116172 | 0.126733 | 0.079208 | 0.446865 | 0.326073 | 0.272937 | 0.145875 | 0.087129 | 0.066667 | 0 | 0.006701 | 0.355463 | 6,251 | 175 | 124 | 35.72 | 0.745346 | 0.260118 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.326087 | false | 0 | 0.01087 | 0.141304 | 0.543478 | 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 |
dd43a8ef2559a1b49aacbde523ac7e026b0164a5 | 6,842 | py | Python | owenshop/owenshop/settings.py | OWENMURITHI/django_supermarket | 492b0244bd1deba6e83695cf77a85d531a03867b | [
"MIT"
] | null | null | null | owenshop/owenshop/settings.py | OWENMURITHI/django_supermarket | 492b0244bd1deba6e83695cf77a85d531a03867b | [
"MIT"
] | null | null | null | owenshop/owenshop/settings.py | OWENMURITHI/django_supermarket | 492b0244bd1deba6e83695cf77a85d531a03867b | [
"MIT"
] | null | null | null |
"""
Django settings for owenshop project.
Generated by 'django-admin startproject' using Django 3.1.12.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from osca... | 30.408889 | 91 | 0.710026 | 735 | 6,842 | 6.492517 | 0.397279 | 0.064124 | 0.049036 | 0.036672 | 0.097443 | 0.088642 | 0.055951 | 0.055951 | 0.025147 | 0 | 0 | 0.008817 | 0.154633 | 6,842 | 224 | 92 | 30.544643 | 0.816217 | 0.175972 | 0 | 0.013158 | 1 | 0.006579 | 0.618376 | 0.511864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.046053 | 0.013158 | 0 | 0.013158 | 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 |
dd5f6852c6b84cf823b365a60b9d607d2e42799a | 1,681 | py | Python | pyanoled/event/Events.py | ethanlu/pyanoled | 5eabefc791c70afecfd2f4e3b61c78d150c6f551 | [
"MIT"
] | null | null | null | pyanoled/event/Events.py | ethanlu/pyanoled | 5eabefc791c70afecfd2f4e3b61c78d150c6f551 | [
"MIT"
] | null | null | null | pyanoled/event/Events.py | ethanlu/pyanoled | 5eabefc791c70afecfd2f4e3b61c78d150c6f551 | [
"MIT"
] | null | null | null | from mido.messages import Message
class Event(object):
"""
wrapper for mido Message objects coming from midi port
"""
def __init__(self, msg: Message):
self._msg = msg
@property
def channel(self):
return self._msg.channel
@property
def type(self):
return self._... | 24.014286 | 88 | 0.586556 | 216 | 1,681 | 4.449074 | 0.296296 | 0.072841 | 0.108221 | 0.05307 | 0.328824 | 0.328824 | 0.26847 | 0.26847 | 0.193548 | 0.193548 | 0 | 0.035833 | 0.286139 | 1,681 | 69 | 89 | 24.362319 | 0.765 | 0.433076 | 0 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.030303 | 0.242424 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dd79c87c628a546a0339b4b0f2ba5ef7650a4db0 | 8,089 | py | Python | core/src/main/python/wlsdeploy/tool/create/rcudbinfo_helper.py | zeusbaba/weblogic-deploy-tooling | 78d4ea18f5a45f8c890556d99d6d1acd68d69eda | [
"Apache-2.0",
"MIT"
] | null | null | null | core/src/main/python/wlsdeploy/tool/create/rcudbinfo_helper.py | zeusbaba/weblogic-deploy-tooling | 78d4ea18f5a45f8c890556d99d6d1acd68d69eda | [
"Apache-2.0",
"MIT"
] | null | null | null | core/src/main/python/wlsdeploy/tool/create/rcudbinfo_helper.py | zeusbaba/weblogic-deploy-tooling | 78d4ea18f5a45f8c890556d99d6d1acd68d69eda | [
"Apache-2.0",
"MIT"
] | null | null | null | """
Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
"""
from wlsdeploy.aliases import alias_utils
from wlsdeploy.aliases.model_constants import ATP_ADMIN_USER
from wlsdeploy.a... | 39.651961 | 110 | 0.729509 | 1,100 | 8,089 | 5.047273 | 0.15 | 0.074928 | 0.092219 | 0.097262 | 0.537824 | 0.491354 | 0.463617 | 0.392651 | 0.270893 | 0.214337 | 0 | 0.002046 | 0.214489 | 8,089 | 203 | 111 | 39.847291 | 0.871734 | 0.191989 | 0 | 0.181102 | 0 | 0 | 0.003832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204724 | false | 0.15748 | 0.165354 | 0.047244 | 0.677165 | 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 |
dd7c4b35de31c740a8b7a6f7161b94fffbf4af70 | 94 | py | Python | django_cgi/apps.py | enricobarzetti/django-cgi | 7b62292df150ce9f4e3cbf1031d42250d32a5df6 | [
"MIT"
] | null | null | null | django_cgi/apps.py | enricobarzetti/django-cgi | 7b62292df150ce9f4e3cbf1031d42250d32a5df6 | [
"MIT"
] | null | null | null | django_cgi/apps.py | enricobarzetti/django-cgi | 7b62292df150ce9f4e3cbf1031d42250d32a5df6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DjangoCgiConfig(AppConfig):
name = 'django_cgi'
| 15.666667 | 33 | 0.765957 | 11 | 94 | 6.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 94 | 5 | 34 | 18.8 | 0.898734 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 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 |
dd897ca36df8fc3c59bc18be365fbdf93caefab3 | 285 | py | Python | tests/test_versions.py | pypeclub/openpype4-backend | a0abe2ed66887c6529b01bbb9cb00278bbff41e4 | [
"Apache-2.0"
] | 2 | 2022-03-09T08:02:52.000Z | 2022-03-15T00:34:01.000Z | tests/test_versions.py | pypeclub/openpype4-backend | a0abe2ed66887c6529b01bbb9cb00278bbff41e4 | [
"Apache-2.0"
] | 1 | 2022-03-08T16:22:34.000Z | 2022-03-08T16:22:34.000Z | tests/test_versions.py | pypeclub/openpype4-backend | a0abe2ed66887c6529b01bbb9cb00278bbff41e4 | [
"Apache-2.0"
] | null | null | null | import sys
import pytest
# from tests.common import API
@pytest.mark.order(0)
def test_python_version():
"""Ensure we're running Python 3.10"""
assert sys.version_info.major >= 3 and sys.version_info.minor >= 10
# def test_login():
# api = API.login("admin", "admin")
| 17.8125 | 71 | 0.684211 | 44 | 285 | 4.318182 | 0.613636 | 0.073684 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029787 | 0.175439 | 285 | 15 | 72 | 19 | 0.778723 | 0.410526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
06d1268e4e709fdf036f9f4c23a59b1c29ac1359 | 20,942 | py | Python | generator/vulkan_header_parser/get_enum.py | Fadis/vulkan2json | e766e77c7efb14f214721cf75b1767792b059b02 | [
"MIT"
] | 1 | 2021-11-30T16:21:40.000Z | 2021-11-30T16:21:40.000Z | generator/vulkan_header_parser/get_enum.py | Fadis/vulkan2json | e766e77c7efb14f214721cf75b1767792b059b02 | [
"MIT"
] | null | null | null | generator/vulkan_header_parser/get_enum.py | Fadis/vulkan2json | e766e77c7efb14f214721cf75b1767792b059b02 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2021 Naomasa Matsubayashi
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation t... | 40.195777 | 183 | 0.548754 | 2,944 | 20,942 | 3.692935 | 0.078465 | 0.011405 | 0.039459 | 0.042311 | 0.761957 | 0.747057 | 0.708885 | 0.674669 | 0.643672 | 0.63245 | 0 | 0.008758 | 0.285789 | 20,942 | 520 | 184 | 40.273077 | 0.718125 | 0.052669 | 0 | 0.661088 | 0 | 0.012552 | 0.214383 | 0.027605 | 0.029289 | 0 | 0 | 0 | 0 | 1 | 0.029289 | false | 0 | 0.012552 | 0.004184 | 0.075314 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
06d4972c354137b9d1429ec2e46f22bd24ec81d5 | 134 | py | Python | manim_rubikscube/__main__.py | polylog-cs/manim-rubikscube | 68889b8052ade3e3094c0f531d5d379720967390 | [
"MIT"
] | null | null | null | manim_rubikscube/__main__.py | polylog-cs/manim-rubikscube | 68889b8052ade3e3094c0f531d5d379720967390 | [
"MIT"
] | null | null | null | manim_rubikscube/__main__.py | polylog-cs/manim-rubikscube | 68889b8052ade3e3094c0f531d5d379720967390 | [
"MIT"
] | null | null | null | from . import __version__
print(f"Manim RubiksCube v{__version__}\n")
def main():
pass
if __name__ == "__main__":
main()
| 11.166667 | 43 | 0.656716 | 17 | 134 | 4.235294 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208955 | 134 | 11 | 44 | 12.181818 | 0.679245 | 0 | 0 | 0 | 0 | 0 | 0.30597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0.166667 | 0.166667 | 0 | 0.333333 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
06db22531be091498784f1bf5e497a344682b3aa | 300 | py | Python | DesignPatterns/Singleton/singleton.py | Py-Himanshu-Patel/Learn-Python | 47a50a934cabcce3b1cbdd4c88141a51f21d3a05 | [
"MIT"
] | null | null | null | DesignPatterns/Singleton/singleton.py | Py-Himanshu-Patel/Learn-Python | 47a50a934cabcce3b1cbdd4c88141a51f21d3a05 | [
"MIT"
] | null | null | null | DesignPatterns/Singleton/singleton.py | Py-Himanshu-Patel/Learn-Python | 47a50a934cabcce3b1cbdd4c88141a51f21d3a05 | [
"MIT"
] | null | null | null | class Singleton:
ans = None
@staticmethod
def instance():
if '_instance' not in Singleton.__dict__:
Singleton._instance = Singleton()
return Singleton._instance
s1 = Singleton.instance()
s2 = Singleton.instance()
s1.ans = 10
assert s1 is s2
assert s1.ans == s2.ans
print("Test Passed")
| 16.666667 | 43 | 0.72 | 40 | 300 | 5.225 | 0.5 | 0.325359 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036145 | 0.17 | 300 | 17 | 44 | 17.647059 | 0.803213 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0.076923 | 0 | 0 | 0.307692 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
6647bf8e92f9a1f18e5ef7fd0c37bb787c006f52 | 208 | py | Python | site_checker/models.py | rodrigodelmonte/site_checker | 8b899ed006c1c7d291f61fcfa5510930f6622597 | [
"Apache-2.0"
] | null | null | null | site_checker/models.py | rodrigodelmonte/site_checker | 8b899ed006c1c7d291f61fcfa5510930f6622597 | [
"Apache-2.0"
] | null | null | null | site_checker/models.py | rodrigodelmonte/site_checker | 8b899ed006c1c7d291f61fcfa5510930f6622597 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
@dataclass
class WebsiteMetrics:
name: str
url: str
regex: str
has_regex: bool
status_code: int = 0
response_time: int = 0
ocurred_at: str = ""
| 16 | 33 | 0.658654 | 27 | 208 | 4.925926 | 0.740741 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.274038 | 208 | 12 | 34 | 17.333333 | 0.86755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.9 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
6654417090a6cd3614f50fa39284c79cb4e6beff | 189 | py | Python | tests/utils.py | kennell/eganalyze | 1a112441868f3862b5e0e78cfa4721b5c59adc42 | [
"MIT"
] | null | null | null | tests/utils.py | kennell/eganalyze | 1a112441868f3862b5e0e78cfa4721b5c59adc42 | [
"MIT"
] | 5 | 2020-12-02T21:38:29.000Z | 2020-12-03T22:20:26.000Z | tests/utils.py | kennell/eganalyze | 1a112441868f3862b5e0e78cfa4721b5c59adc42 | [
"MIT"
] | null | null | null | import pandas as pd
from tests import data
from importlib import resources
def load_test_data(name):
with resources.path(data, name + '.csv') as path:
return pd.read_csv(path) | 23.625 | 53 | 0.730159 | 30 | 189 | 4.5 | 0.6 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 189 | 8 | 54 | 23.625 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b07664e6306f02a6bf371f8817d5e00d423f2993 | 229 | py | Python | Gustavo Guanabara - Python Learning Exercises/ex061 - Aritimetic Progression 1.py | TiagoPL/Python-Learning | 20855433a8a050647ee9c5039aac1e50807324f8 | [
"MIT"
] | null | null | null | Gustavo Guanabara - Python Learning Exercises/ex061 - Aritimetic Progression 1.py | TiagoPL/Python-Learning | 20855433a8a050647ee9c5039aac1e50807324f8 | [
"MIT"
] | null | null | null | Gustavo Guanabara - Python Learning Exercises/ex061 - Aritimetic Progression 1.py | TiagoPL/Python-Learning | 20855433a8a050647ee9c5039aac1e50807324f8 | [
"MIT"
] | null | null | null | start = int(input('Choose the start of the Aritimetic Progression: '))
rate = int(input('Choose the rate of the Aritimetic Progression: '))
cont = 10
while cont != 0:
print(start)
start = start + rate
cont = cont - 1
| 28.625 | 70 | 0.668122 | 33 | 229 | 4.636364 | 0.454545 | 0.104575 | 0.183007 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0.218341 | 229 | 7 | 71 | 32.714286 | 0.832402 | 0 | 0 | 0 | 0 | 0 | 0.414847 | 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 |
b07876da7e81e5dfc84f312f1452982c683b279f | 984 | py | Python | linum/txt_renderer/calendar/header/day/day_cell.py | chabErch/Linum | e32ec01f0b43cfb03fd33ad90cf25df9a0c6565f | [
"MIT"
] | null | null | null | linum/txt_renderer/calendar/header/day/day_cell.py | chabErch/Linum | e32ec01f0b43cfb03fd33ad90cf25df9a0c6565f | [
"MIT"
] | null | null | null | linum/txt_renderer/calendar/header/day/day_cell.py | chabErch/Linum | e32ec01f0b43cfb03fd33ad90cf25df9a0c6565f | [
"MIT"
] | null | null | null | from datetime import date
from typing import Any, Optional
from linum.txt_renderer.base.date_cell import DateCell
class DayCell(DateCell):
def __init__(self, cell_width: int = 0, date_: Optional[date] = None):
"""
Ячейка с порядковым номером дня в месяце.
:param cell_width: ширина ячейк... | 24 | 76 | 0.607724 | 109 | 984 | 5.284404 | 0.587156 | 0.046875 | 0.048611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001445 | 0.296748 | 984 | 40 | 77 | 24.6 | 0.830925 | 0.315041 | 0 | 0 | 0 | 0 | 0.015957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.0625 | 0.1875 | 0.0625 | 0.6875 | 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 |
b0837645f0b898cbfe41a72f6dd87d8f62ccd843 | 1,013 | py | Python | dsed/build_plugins_xml.py | flowmatters/dsed-py | b967db2797320e63bc504e40023b7c7623a0b002 | [
"0BSD"
] | null | null | null | dsed/build_plugins_xml.py | flowmatters/dsed-py | b967db2797320e63bc504e40023b7c7623a0b002 | [
"0BSD"
] | null | null | null | dsed/build_plugins_xml.py | flowmatters/dsed-py | b967db2797320e63bc504e40023b7c7623a0b002 | [
"0BSD"
] | null | null | null | '''
Build a Plugins.xml file for use in Source
'''
import sys
import os
TEMPLATE='''<?xml version="1.0" encoding="utf-8"?>
<ArrayOfPlugin xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Plugin>
<IsEnabled>true</IsEnabled>
<Path>%s\Dynamic_SedNet.dll</Path>... | 25.974359 | 114 | 0.669299 | 150 | 1,013 | 4.406667 | 0.426667 | 0.075643 | 0.114977 | 0.16944 | 0.461422 | 0.334342 | 0.208775 | 0.208775 | 0.208775 | 0 | 0 | 0.017261 | 0.142152 | 1,013 | 39 | 115 | 25.974359 | 0.743383 | 0.061204 | 1 | 0.375 | 0 | 0.03125 | 0.636653 | 0.263771 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.09375 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b0a65ffd2716781245e39a7c321ec6cc007888cc | 1,134 | py | Python | 2018/day02-inventory-management/inventory.py | rajitbanerjee/advent-of-code | 9eb68d59a593433b972af7002893ff3c631b34f9 | [
"CC0-1.0"
] | null | null | null | 2018/day02-inventory-management/inventory.py | rajitbanerjee/advent-of-code | 9eb68d59a593433b972af7002893ff3c631b34f9 | [
"CC0-1.0"
] | null | null | null | 2018/day02-inventory-management/inventory.py | rajitbanerjee/advent-of-code | 9eb68d59a593433b972af7002893ff3c631b34f9 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
from collections import Counter
from itertools import combinations
from typing import List, Tuple
def main() -> None:
with open("day2.in") as f:
boxes = [line.strip() for line in f]
print(f"Part 1: {getChecksum(boxes)}")
print(f"Part 2: {getCommonCharacters(boxes)}")
def ... | 27 | 79 | 0.660494 | 162 | 1,134 | 4.574074 | 0.388889 | 0.021592 | 0.048583 | 0.024292 | 0.032389 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029834 | 0.20194 | 1,134 | 41 | 80 | 27.658537 | 0.78895 | 0.017637 | 0 | 0 | 0 | 0 | 0.113208 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.583333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b0b6c23cb8b74b3aaa79ac4dd2193e932e6901c4 | 376 | py | Python | TradeManagementBackend/Contacts/admin.py | kerwinxu/TradeManagement | 1d08b02ec1e6bda5232e6b378fad1bd45534c28e | [
"Apache-2.0"
] | null | null | null | TradeManagementBackend/Contacts/admin.py | kerwinxu/TradeManagement | 1d08b02ec1e6bda5232e6b378fad1bd45534c28e | [
"Apache-2.0"
] | null | null | null | TradeManagementBackend/Contacts/admin.py | kerwinxu/TradeManagement | 1d08b02ec1e6bda5232e6b378fad1bd45534c28e | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from Contacts.models import Contact, Company
from TradeManagementBackend.GuardedModelAdminBase import GuardedModelAdminEx
# Register your models here.
class ContactsAdmin(GuardedModelAdminEx):
pass
class CompanyAdmin(GuardedModelAdminEx):
pass
admin.site.register(Contact, Co... | 25.066667 | 76 | 0.835106 | 38 | 376 | 8.263158 | 0.526316 | 0.146497 | 0.10828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 376 | 14 | 77 | 26.857143 | 0.934524 | 0.069149 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.222222 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
b0bfd4f337b016cfa35065949c0f01427bf6d4c6 | 184 | py | Python | moodboard/apps.py | stevelab1/edusites | ad32f9469b59d6a970d41b8580f0e34a9036c034 | [
"MIT"
] | null | null | null | moodboard/apps.py | stevelab1/edusites | ad32f9469b59d6a970d41b8580f0e34a9036c034 | [
"MIT"
] | null | null | null | moodboard/apps.py | stevelab1/edusites | ad32f9469b59d6a970d41b8580f0e34a9036c034 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class MoodboardConfig(AppConfig):
name = 'moodboard'
def ready(self):
# import signal handlers
import moodboard.signals
| 14.153846 | 33 | 0.679348 | 19 | 184 | 6.578947 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255435 | 184 | 12 | 34 | 15.333333 | 0.912409 | 0.119565 | 0 | 0 | 0 | 0 | 0.056962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b0c5666f336ace04b73d2db966149373f45dae44 | 997 | py | Python | src/octopus/core/framework/mainloopapplication.py | smaragden/OpenRenderManagement | cf3ab356f96969d7952b60417b48e941955e435c | [
"BSD-3-Clause"
] | 35 | 2015-02-23T23:13:13.000Z | 2021-01-03T05:56:39.000Z | src/octopus/core/framework/mainloopapplication.py | smaragden/OpenRenderManagement | cf3ab356f96969d7952b60417b48e941955e435c | [
"BSD-3-Clause"
] | 15 | 2015-01-12T12:58:29.000Z | 2016-03-30T13:10:19.000Z | src/octopus/core/framework/mainloopapplication.py | mikrosimage/OpenRenderManagement | 6f9237a86cb8e4b206313f9c22424c8002fd5e4d | [
"BSD-3-Clause"
] | 20 | 2015-03-18T06:57:13.000Z | 2020-07-01T15:09:36.000Z | #!/usr/bin/env python
####################################################################################################
# @file mainloopapplication.py
# @package
# @author Arnaud Chassagne, Jean-Baptiste Spieser
# @date 2008/12/01
# @version 0.1
#
# @mainpage
#
#######################################################... | 24.925 | 100 | 0.544634 | 88 | 997 | 6.125 | 0.659091 | 0.025974 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012255 | 0.181545 | 997 | 39 | 101 | 25.564103 | 0.648284 | 0.390171 | 0 | 0.181818 | 0 | 0 | 0.067532 | 0.067532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.090909 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
b0e0126221b61b1035d7bf676401b07c44c5dc1d | 521 | py | Python | paranormal-pioneers/project/file_system/bin/date.py | python-discord/code-jam-6 | a7eb3b1256ae113c93f0337892c667768e8bc199 | [
"MIT"
] | 76 | 2020-01-17T12:09:48.000Z | 2022-03-26T19:17:26.000Z | paranormal-pioneers/project/file_system/bin/date.py | Hypertyz/code-jam-6 | a7eb3b1256ae113c93f0337892c667768e8bc199 | [
"MIT"
] | 17 | 2020-01-21T23:13:34.000Z | 2020-02-07T00:07:04.000Z | paranormal-pioneers/project/file_system/bin/date.py | Hypertyz/code-jam-6 | a7eb3b1256ae113c93f0337892c667768e8bc199 | [
"MIT"
] | 91 | 2020-01-17T12:01:06.000Z | 2022-03-22T20:38:59.000Z | from argparse import Namespace
from datetime import datetime
from project.core import command
from project.core.parser import Parser
from project.core.terminal import Terminal
class Date(command.Command):
"""Print current time.
Example: date
"""
def __init__(self) -> None:
super().__init__(na... | 23.681818 | 62 | 0.681382 | 70 | 521 | 4.942857 | 0.542857 | 0.095376 | 0.130058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190019 | 521 | 21 | 63 | 24.809524 | 0.819905 | 0.06334 | 0 | 0 | 0 | 0 | 0.05074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.416667 | 0.083333 | 0.833333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
b0e1fd201b2f5dce94611dd02edd170c365c1da5 | 144 | py | Python | pythonavancado/exercicios/secao04/ex010.py | mrqssjeff/project-python | b3b08f2acfe825640a5ee92cf9d6fa45ab580384 | [
"MIT"
] | null | null | null | pythonavancado/exercicios/secao04/ex010.py | mrqssjeff/project-python | b3b08f2acfe825640a5ee92cf9d6fa45ab580384 | [
"MIT"
] | null | null | null | pythonavancado/exercicios/secao04/ex010.py | mrqssjeff/project-python | b3b08f2acfe825640a5ee92cf9d6fa45ab580384 | [
"MIT"
] | null | null | null | km = float(input('Digite a velocidade [em km/h]: '))
m = km / 3.6
print(f'{km:.2f} km/h convertido para m/s (metros por segundo) é {m:.2f} m/s') | 48 | 78 | 0.625 | 31 | 144 | 2.903226 | 0.677419 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033058 | 0.159722 | 144 | 3 | 78 | 48 | 0.710744 | 0 | 0 | 0 | 0 | 0.333333 | 0.682759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b0e3c3f5d50b89d7074a14b21995cbbb360465ca | 27,788 | py | Python | code/Training.py | yanda-wang/TKE-PSD | 8046d8b6473a26f7935130207fb8c14ae297df51 | [
"MIT"
] | null | null | null | code/Training.py | yanda-wang/TKE-PSD | 8046d8b6473a26f7935130207fb8c14ae297df51 | [
"MIT"
] | null | null | null | code/Training.py | yanda-wang/TKE-PSD | 8046d8b6473a26f7935130207fb8c14ae297df51 | [
"MIT"
] | null | null | null | import torch
import os
import datetime
import pickle
import dill
import random
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
import pandas as pd
from torch.optim.lr_scheduler import ReduceLROnPlateau
from torch import optim
from Networks import EncoderLinearQuery, DecoderKeyValueGCNMultiEmb... | 55.134921 | 185 | 0.621491 | 3,087 | 27,788 | 5.189504 | 0.077745 | 0.034956 | 0.014981 | 0.01573 | 0.796067 | 0.755056 | 0.722222 | 0.694257 | 0.669601 | 0.642634 | 0 | 0.011019 | 0.294588 | 27,788 | 503 | 186 | 55.244533 | 0.806244 | 0.009501 | 0 | 0.541371 | 0 | 0.009456 | 0.05811 | 0.003743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026005 | false | 0 | 0.037825 | 0 | 0.07565 | 0.118203 | 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 |
b0ea7a1e5c88a3d1279179c14825cadd145a3a09 | 225 | py | Python | Packs/CommonScripts/Scripts/ConvertToSingleElementArray/ConvertToSingleElementArray.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 799 | 2016-08-02T06:43:14.000Z | 2022-03-31T11:10:11.000Z | Packs/CommonScripts/Scripts/ConvertToSingleElementArray/ConvertToSingleElementArray.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 9,317 | 2016-08-07T19:00:51.000Z | 2022-03-31T21:56:04.000Z | Packs/CommonScripts/Scripts/ConvertToSingleElementArray/ConvertToSingleElementArray.py | diCagri/content | c532c50b213e6dddb8ae6a378d6d09198e08fc9f | [
"MIT"
] | 1,297 | 2016-08-04T13:59:00.000Z | 2022-03-31T23:43:06.000Z | import demistomock as demisto
args = demisto.args()
value = args.get("value")
if value and isinstance(value, list):
demisto.results(value)
elif value:
demisto.results([value])
else:
demisto.results([])
| 20.454545 | 38 | 0.675556 | 28 | 225 | 5.428571 | 0.5 | 0.276316 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195556 | 225 | 10 | 39 | 22.5 | 0.839779 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b0ed80118b108013f8837ab41ae46dbca471ecd6 | 379 | py | Python | Modulo 1/016.py | thiago19maciel/Exercicios-em-Python | 0d46816caf655c6e870510bb1136964854fc875f | [
"MIT"
] | 1 | 2022-03-22T22:36:48.000Z | 2022-03-22T22:36:48.000Z | Modulo 1/016.py | thiago19maciel/Exercicios-em-Python | 0d46816caf655c6e870510bb1136964854fc875f | [
"MIT"
] | null | null | null | Modulo 1/016.py | thiago19maciel/Exercicios-em-Python | 0d46816caf655c6e870510bb1136964854fc875f | [
"MIT"
] | null | null | null | #Crie um programa que leia um número Real qualquer pelo teclado
num = float(input('Digite qualquer numero: '))
#Mostre na tela a sua porção Inteira.
print(f'A parte inteira do numero {num} é {int(num)}')
import math
print(f'A parte inteira do numero {num} é {math.trunc(num)}') #trunca o valor
print(f'A parte inteira ... | 47.375 | 83 | 0.730871 | 67 | 379 | 4.134328 | 0.567164 | 0.064982 | 0.075812 | 0.129964 | 0.364621 | 0.364621 | 0.364621 | 0.364621 | 0.364621 | 0.252708 | 0 | 0 | 0.150396 | 379 | 8 | 83 | 47.375 | 0.860248 | 0.350923 | 0 | 0 | 0 | 0 | 0.699588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 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 |
b0f5118e5c9a7c392bcbe0f613a9d40e0e85a116 | 54 | py | Python | banklite/__init__.py | mharrisb1/banklite | d99b224682cc13f914fdc9ba371c0f3789d90a11 | [
"MIT"
] | 1 | 2021-09-28T17:34:11.000Z | 2021-09-28T17:34:11.000Z | banklite/__init__.py | mharrisb1/banklite | d99b224682cc13f914fdc9ba371c0f3789d90a11 | [
"MIT"
] | null | null | null | banklite/__init__.py | mharrisb1/banklite | d99b224682cc13f914fdc9ba371c0f3789d90a11 | [
"MIT"
] | null | null | null | from .banklite import BankLite
__version__ = "0.1.0"
| 13.5 | 30 | 0.740741 | 8 | 54 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.148148 | 54 | 3 | 31 | 18 | 0.717391 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 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 |
9fe759db125e51c7621bcd3791fd22a2611921f5 | 261 | py | Python | ramda/when_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 56 | 2018-08-06T08:44:58.000Z | 2022-03-17T09:49:03.000Z | ramda/when_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 28 | 2019-06-17T11:09:52.000Z | 2022-02-18T16:59:21.000Z | ramda/when_test.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | 5 | 2019-09-18T09:24:38.000Z | 2021-07-21T08:40:23.000Z | from ramda import *
from ramda.private.asserts import *
truncate = when(compose(gt(10), length), pipe(take(10), append("…"), join("")))
def when_test():
assert_equal(truncate("12345"), "12345")
assert_equal(truncate("0123456789ABC"), "0123456789…")
| 23.727273 | 79 | 0.681992 | 34 | 261 | 5.323529 | 0.676471 | 0.099448 | 0.209945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149123 | 0.126437 | 261 | 10 | 80 | 26.1 | 0.618421 | 0 | 0 | 0 | 0 | 0 | 0.1341 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9ff2e1073a3af5ad9750e8d528025082996c5212 | 376 | py | Python | arimr2traces/arimr_login.py | jedrus2000/arimr2traces | 955ce40961b1b9c061bbb90308ca83fa04e4bc0b | [
"MIT"
] | null | null | null | arimr2traces/arimr_login.py | jedrus2000/arimr2traces | 955ce40961b1b9c061bbb90308ca83fa04e4bc0b | [
"MIT"
] | 6 | 2019-04-02T22:48:28.000Z | 2021-12-13T19:44:54.000Z | arimr2traces/arimr_login.py | jedrus2000/arimr2traces | 955ce40961b1b9c061bbb90308ca83fa04e4bc0b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from PyQt5.QtWidgets import QDialog
from PyQt5 import uic
from .resources.resources import ARIMR_LOGIN_DIALOG_FORM
class ARIMRLoginDialog(QDialog):
"""
ARiMR login page
"""
def __init__(self, parent=None):
QDialog.__init__(self, parent)
uic.loadUi(ARIMR_LOGIN_D... | 23.5 | 56 | 0.699468 | 45 | 376 | 5.533333 | 0.555556 | 0.120482 | 0.128514 | 0.160643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009967 | 0.199468 | 376 | 15 | 57 | 25.066667 | 0.817276 | 0.103723 | 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 | 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 |
b0009721a4ea54cb3acd0c5902862f06df70c426 | 311 | py | Python | webapp/node/forms.py | PanosAntoniadis/noobcash | 47c9e7aabc010982d841e414c30b9c76cbb84b6d | [
"MIT"
] | 7 | 2020-04-11T15:21:53.000Z | 2022-03-29T21:12:15.000Z | webapp/node/forms.py | PanosAntoniadis/noobcash | 47c9e7aabc010982d841e414c30b9c76cbb84b6d | [
"MIT"
] | 1 | 2021-06-10T20:32:31.000Z | 2021-06-10T20:32:31.000Z | webapp/node/forms.py | PanosAntoniadis/noobcash | 47c9e7aabc010982d841e414c30b9c76cbb84b6d | [
"MIT"
] | null | null | null | from django import forms
from .models import Node, Transaction
class CreateNodeForm(forms.ModelForm):
class Meta:
model = Node
fields = ('IP', 'PORT')
class CreateTransactionForm(forms.ModelForm):
class Meta:
model = Transaction
fields = ('receiver_id', 'amount')
| 17.277778 | 45 | 0.652733 | 32 | 311 | 6.3125 | 0.59375 | 0.138614 | 0.188119 | 0.227723 | 0.277228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250804 | 311 | 17 | 46 | 18.294118 | 0.866953 | 0 | 0 | 0.2 | 0 | 0 | 0.073955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b0218fa169659d5ebf6f1a70d475946b9ba6e199 | 1,256 | py | Python | qoc/models/__init__.py | alibabaquantumlab/qoc | 273d5eff19b404107d45e655fe07cc55d80435e7 | [
"MIT"
] | 12 | 2019-09-03T09:00:22.000Z | 2022-03-28T02:41:03.000Z | qoc/models/__init__.py | alibabaquantumlab/qoc | 273d5eff19b404107d45e655fe07cc55d80435e7 | [
"MIT"
] | 9 | 2019-09-10T15:04:21.000Z | 2022-01-07T08:43:52.000Z | qoc/models/__init__.py | alibabaquantumlab/qoc | 273d5eff19b404107d45e655fe07cc55d80435e7 | [
"MIT"
] | 13 | 2019-09-09T22:51:00.000Z | 2022-01-04T15:35:36.000Z | """
models - a directory for qoc's data models
"""
from .cost import Cost
from .dummy import Dummy
from .interpolationpolicy import InterpolationPolicy
from .lindbladmodels import (EvolveLindbladDiscreteState,
EvolveLindbladResult,
GrapeLindbladDiscreteState,
... | 33.052632 | 65 | 0.682325 | 71 | 1,256 | 12.014085 | 0.394366 | 0.110199 | 0.171161 | 0.215709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253185 | 1,256 | 37 | 66 | 33.945946 | 0.909382 | 0.033439 | 0 | 0 | 0 | 0 | 0.245017 | 0.133721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.322581 | 0 | 0.322581 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 3 |
b054bfe16ca344316066f92124df053a774b35ef | 4,544 | py | Python | ot/gpu/gromov.py | dmelis/POT | 7471b7a16577d66e907e10e08bf3bbcded19551c | [
"MIT"
] | null | null | null | ot/gpu/gromov.py | dmelis/POT | 7471b7a16577d66e907e10e08bf3bbcded19551c | [
"MIT"
] | null | null | null | ot/gpu/gromov.py | dmelis/POT | 7471b7a16577d66e907e10e08bf3bbcded19551c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Gromov-Wasserstein transport method - ported from POT and made cupy-based.
Please refer to ot.gromov in POT package for function documentation.
"""
# Author: Erwan Vautier <erwan.vautier@gmail.com>
# Nicolas Courty <ncourty@irisa.fr>
# Rémi Flamary <remi.flamary@unice.fr>
#... | 30.911565 | 84 | 0.555238 | 703 | 4,544 | 3.516358 | 0.248933 | 0.026699 | 0.048544 | 0.052589 | 0.28479 | 0.221683 | 0.160599 | 0.125405 | 0.040049 | 0 | 0 | 0.031843 | 0.28125 | 4,544 | 146 | 85 | 31.123288 | 0.725046 | 0.855194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c65e701f9f5e8f814d0f4a8165648b702aa9e631 | 919 | py | Python | ai_flow/common/registry.py | flink-extended/ai-flow | d1427a243097d94d77fedbe1966500ae26975a13 | [
"Apache-2.0"
] | 79 | 2021-10-15T07:32:27.000Z | 2022-03-28T04:10:19.000Z | ai_flow/common/registry.py | flink-extended/ai-flow | d1427a243097d94d77fedbe1966500ae26975a13 | [
"Apache-2.0"
] | 153 | 2021-10-15T05:23:46.000Z | 2022-02-23T06:07:10.000Z | ai_flow/common/registry.py | flink-extended/ai-flow | d1427a243097d94d77fedbe1966500ae26975a13 | [
"Apache-2.0"
] | 23 | 2021-10-15T02:36:37.000Z | 2022-03-17T02:59:27.000Z | #
# Copyright 2022 The AI Flow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 30.633333 | 66 | 0.714908 | 134 | 919 | 4.813433 | 0.61194 | 0.093023 | 0.065116 | 0.049612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010855 | 0.198041 | 919 | 29 | 67 | 31.689655 | 0.864315 | 0.603917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c67268ff5232156afadbc8c0ab2894a7981838e8 | 232 | py | Python | tests/test_api.py | redhat-cip/dci-downloader | d7ad184f502e145b9ccf2618b8af6d82ac7daa8a | [
"Apache-2.0"
] | 1 | 2020-01-12T05:27:08.000Z | 2020-01-12T05:27:08.000Z | tests/test_api.py | Acidburn0zzz/dci-downloader | 0540b5414dd1ccd04f4c2c9cb9f8a7c39826156d | [
"Apache-2.0"
] | 3 | 2019-10-30T20:39:06.000Z | 2021-03-31T07:55:00.000Z | tests/test_api.py | Acidburn0zzz/dci-downloader | 0540b5414dd1ccd04f4c2c9cb9f8a7c39826156d | [
"Apache-2.0"
] | 2 | 2020-01-12T05:27:00.000Z | 2020-06-19T02:39:24.000Z | from dci_downloader.api import get_base_url
def test_get_base_url():
topic = {"id": "t1", "product_id": "p1"}
component = {"id": "c1"}
assert get_base_url(topic, component) == "https://repo.distributed-ci.io/p1/t1/c1"
| 29 | 86 | 0.668103 | 36 | 232 | 4.055556 | 0.638889 | 0.143836 | 0.205479 | 0.205479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030457 | 0.150862 | 232 | 7 | 87 | 33.142857 | 0.71066 | 0 | 0 | 0 | 0 | 0 | 0.25431 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 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 |
c674033132d9165f0b401902030f9eb853d17fd5 | 50 | py | Python | tushare/01 Trade/0111 get_index.py | CoderDream/python-best-practice | 40e6b5315daefb37c59daa1a1990ac1ae10f8cca | [
"MIT"
] | null | null | null | tushare/01 Trade/0111 get_index.py | CoderDream/python-best-practice | 40e6b5315daefb37c59daa1a1990ac1ae10f8cca | [
"MIT"
] | null | null | null | tushare/01 Trade/0111 get_index.py | CoderDream/python-best-practice | 40e6b5315daefb37c59daa1a1990ac1ae10f8cca | [
"MIT"
] | null | null | null | import tushare as ts
df = ts.get_index()
print(df) | 16.666667 | 20 | 0.74 | 10 | 50 | 3.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 50 | 3 | 21 | 16.666667 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c6a3e1cb41ee8b5af6198933236aa09e5be91653 | 22 | py | Python | ib_miniprojects_backend/__init__.py | RajeshKumar1490/iB_hubs_mini_project | f7126092400fb9a62fb4bff643dae7cda3a8d9d2 | [
"MIT"
] | null | null | null | ib_miniprojects_backend/__init__.py | RajeshKumar1490/iB_hubs_mini_project | f7126092400fb9a62fb4bff643dae7cda3a8d9d2 | [
"MIT"
] | 2 | 2021-09-07T07:06:00.000Z | 2021-09-07T07:24:26.000Z | ib_miniprojects_backend/__init__.py | RajeshKumar1490/iB_hubs_mini_project | f7126092400fb9a62fb4bff643dae7cda3a8d9d2 | [
"MIT"
] | null | null | null | __authors__ = 'ibhubs' | 22 | 22 | 0.772727 | 2 | 22 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 22 | 1 | 22 | 22 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c6cadf41380758511e1c8946c8ef6ea357e89fd4 | 132 | py | Python | lesson15/HomeWork/task1.py | zainllw0w/skillbox | 896287b6f7f5612cf589094131fd1a12b0b192ba | [
"MIT"
] | null | null | null | lesson15/HomeWork/task1.py | zainllw0w/skillbox | 896287b6f7f5612cf589094131fd1a12b0b192ba | [
"MIT"
] | null | null | null | lesson15/HomeWork/task1.py | zainllw0w/skillbox | 896287b6f7f5612cf589094131fd1a12b0b192ba | [
"MIT"
] | null | null | null | my_list = []
n = int(input('Введите число: '))
for a in range(1, n+1):
if a % 2 != 0:
my_list.append(a)
print(my_list)
| 16.5 | 33 | 0.55303 | 25 | 132 | 2.8 | 0.68 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.257576 | 132 | 7 | 34 | 18.857143 | 0.673469 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
c6e8e101b2b83e095dc5c55bc06ff4e1b578f387 | 159 | py | Python | Code Forces/Educational Round 108/B.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 2 | 2020-06-25T21:10:32.000Z | 2020-12-10T06:53:45.000Z | Code Forces/Educational Round 108/B.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | null | null | null | Code Forces/Educational Round 108/B.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 3 | 2020-05-15T14:17:09.000Z | 2021-07-25T13:18:20.000Z | for tt in range(int(input())):
n,m,k = map(int,input().split())
k1 = m-1 + m*(n-1)
if k1 == k:
print('YES')
else:
print('NO') | 22.714286 | 36 | 0.440252 | 27 | 159 | 2.592593 | 0.666667 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0.327044 | 159 | 7 | 37 | 22.714286 | 0.616822 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 |
c6ed8394f53a7167d314d7bbe6da04ed19827daa | 138 | py | Python | reporting/basic/src/python/report/__init__.py | ga4gh/benchmarking-tools | e07e6ca9dc372d7b61148ecd0677f7da7cce53a4 | [
"Apache-2.0"
] | 157 | 2015-11-02T08:14:47.000Z | 2022-03-29T10:03:55.000Z | reporting/basic/src/python/report/__init__.py | ga4gh/benchmarking-tools | e07e6ca9dc372d7b61148ecd0677f7da7cce53a4 | [
"Apache-2.0"
] | 21 | 2015-11-04T22:24:04.000Z | 2021-05-06T03:56:57.000Z | reporting/basic/src/python/report/__init__.py | ga4gh/benchmarking-tools | e07e6ca9dc372d7b61148ecd0677f7da7cce53a4 | [
"Apache-2.0"
] | 41 | 2015-11-04T21:11:57.000Z | 2022-02-28T14:56:01.000Z | #!/usr/bin/env python
# coding=utf-8
#
# Read GA4GH report files
#
# Author:
#
# Peter Krusche <pkrusche@illumina.com>
#
import metrics
| 10.615385 | 39 | 0.688406 | 19 | 138 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.166667 | 138 | 12 | 40 | 11.5 | 0.808696 | 0.746377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 |
c6ef79c90e1b728e9fd8b3527107ccc421548fad | 3,089 | py | Python | gen_vectors.py | gtank/blake2 | 2e9d4ef73e1863c0f5aa97a4e6036c80076d1cfd | [
"BSD-3-Clause"
] | 11 | 2020-09-30T08:15:32.000Z | 2021-01-03T19:46:02.000Z | gen_vectors.py | gtank/blake2 | 2e9d4ef73e1863c0f5aa97a4e6036c80076d1cfd | [
"BSD-3-Clause"
] | 2 | 2020-12-10T17:04:34.000Z | 2021-02-03T22:35:13.000Z | gen_vectors.py | gtank/blake2 | 2e9d4ef73e1863c0f5aa97a4e6036c80076d1cfd | [
"BSD-3-Clause"
] | null | null | null | #!/bin/env python3
import json
import sys
from pyblake2 import blake2s, blake2b
def write_blake2s_tests(output_fn):
fd = open(output_fn, 'w')
key_bytes = bytearray(range(32))
fd.write('[\n')
for i in range(8):
salt_bytes = bytearray(range(i+1))
test = {
"hash": "blak... | 28.601852 | 98 | 0.45225 | 331 | 3,089 | 4.084592 | 0.193353 | 0.059172 | 0.065089 | 0.031065 | 0.775148 | 0.745562 | 0.745562 | 0.674556 | 0.674556 | 0.674556 | 0 | 0.025078 | 0.380382 | 3,089 | 107 | 99 | 28.869159 | 0.681296 | 0.005503 | 0 | 0.674157 | 0 | 0 | 0.101336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022472 | false | 0 | 0.033708 | 0 | 0.05618 | 0.011236 | 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 |
059dc2651860bf9e1b4eb8741af3c1a0d7642853 | 763 | py | Python | app/resources/images/page.py | fressive/qute-backend | 09697e56ad44619cf29c2b4168031d4ba8ef7644 | [
"MIT"
] | null | null | null | app/resources/images/page.py | fressive/qute-backend | 09697e56ad44619cf29c2b4168031d4ba8ef7644 | [
"MIT"
] | null | null | null | app/resources/images/page.py | fressive/qute-backend | 09697e56ad44619cf29c2b4168031d4ba8ef7644 | [
"MIT"
] | null | null | null | import config
from app.helpers import imagesource, response
from app.models.model import ImageQuery
from app.resources import limiter, images_blueprint
from flask import make_response, jsonify
"""
Params:
ID The ID of image source.
"""
@images_blueprint.route("/page")
@limiter.limit(lambda : con... | 36.333333 | 79 | 0.747051 | 88 | 763 | 6.329545 | 0.431818 | 0.13465 | 0.122083 | 0.165171 | 0.244165 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.158585 | 763 | 21 | 80 | 36.333333 | 0.862928 | 0 | 0 | 0 | 0 | 0 | 0.007153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | true | 0 | 0.333333 | 0.066667 | 0.466667 | 0.133333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
05a0269497df3a235807ab833e830cc6f7533ca0 | 294 | py | Python | tests/spatial_models.py | Gerleff/django-location-field | 092e7e352146f54f602b50b53ae0cd3f82860db3 | [
"MIT"
] | 443 | 2015-01-12T12:33:30.000Z | 2022-03-31T07:23:23.000Z | tests/spatial_models.py | Gerleff/django-location-field | 092e7e352146f54f602b50b53ae0cd3f82860db3 | [
"MIT"
] | 104 | 2015-03-24T09:38:32.000Z | 2022-03-22T20:20:49.000Z | tests/spatial_models.py | Gerleff/django-location-field | 092e7e352146f54f602b50b53ae0cd3f82860db3 | [
"MIT"
] | 122 | 2015-02-22T20:17:00.000Z | 2022-03-23T10:22:45.000Z | from django.db import models
from location_field.models.spatial import LocationField
class SpatialPlace(models.Model):
parent_place = models.ForeignKey('self', blank=True, null=True)
city = models.CharField(max_length=255)
location = LocationField(based_fields=['city'], zoom=7)
| 29.4 | 67 | 0.765306 | 38 | 294 | 5.815789 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015564 | 0.12585 | 294 | 9 | 68 | 32.666667 | 0.844358 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.