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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1dfc8119a341e13d2e982b8c567e0d9988236dad | 125 | py | Python | 1 ano/logica-de-programacao/soma.py | ThiagoPereira232/tecnico-informatica | 6b55ecf34501b38052943acf1b37074e3472ce6e | [
"MIT"
] | 1 | 2021-09-24T16:26:04.000Z | 2021-09-24T16:26:04.000Z | 1 ano/logica-de-programacao/soma.py | ThiagoPereira232/tecnico-informatica | 6b55ecf34501b38052943acf1b37074e3472ce6e | [
"MIT"
] | null | null | null | 1 ano/logica-de-programacao/soma.py | ThiagoPereira232/tecnico-informatica | 6b55ecf34501b38052943acf1b37074e3472ce6e | [
"MIT"
] | null | null | null | def somaEntre(x, y):
if(x == y):
return x
else:
return y + somaEntre(x, y-1)
print(somaEntre(3, 9))
| 15.625 | 36 | 0.512 | 20 | 125 | 3.2 | 0.55 | 0.09375 | 0.34375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.328 | 125 | 7 | 37 | 17.857143 | 0.72619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0.166667 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
380987284fc0896c0ee679706039b5ec6fc5f862 | 3,792 | py | Python | python/174_dungeon_game.py | liaison/LeetCode | 8b10a1f6bbeb3ebfda99248994f7c325140ee2fd | [
"MIT"
] | 17 | 2016-03-01T22:40:53.000Z | 2021-04-19T02:15:03.000Z | python/174_dungeon_game.py | liaison/LeetCode | 8b10a1f6bbeb3ebfda99248994f7c325140ee2fd | [
"MIT"
] | null | null | null | python/174_dungeon_game.py | liaison/LeetCode | 8b10a1f6bbeb3ebfda99248994f7c325140ee2fd | [
"MIT"
] | 3 | 2019-03-07T03:48:43.000Z | 2020-04-05T01:11:36.000Z | """
Dungeon Game
https://leetcode.com/problems/dungeon-game/
"""
class SolutionClear(object):
def calculateMinimumHP(self, dungeon):
"""
:type dungeon: List[List[int]]
:rtype: int
"""
rows, cols = len(dungeon), len(dungeon[0])
dp = [[float('inf')] * cols for _ in r... | 31.081967 | 85 | 0.50712 | 431 | 3,792 | 4.329466 | 0.136891 | 0.086817 | 0.057878 | 0.075027 | 0.755627 | 0.715434 | 0.711147 | 0.677921 | 0.677921 | 0.641479 | 0 | 0.015041 | 0.38634 | 3,792 | 121 | 86 | 31.338843 | 0.78685 | 0.059599 | 0 | 0.694444 | 0 | 0 | 0.005199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097222 | false | 0 | 0 | 0 | 0.319444 | 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 |
3811c3de041847e017cadcf463562b5927142244 | 249 | py | Python | week 2/Set Mismatch.py | Dawit-Getachew/A2SV_Practice | 2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61 | [
"MIT"
] | null | null | null | week 2/Set Mismatch.py | Dawit-Getachew/A2SV_Practice | 2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61 | [
"MIT"
] | null | null | null | week 2/Set Mismatch.py | Dawit-Getachew/A2SV_Practice | 2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61 | [
"MIT"
] | null | null | null | class Solution:
def findErrorNums(self, nums: List[int]) -> List[int]:
n = len(nums)
return [sum(nums)-sum(set(nums)),(n*(n+1)//2)-sum(set(nums))]
"""
Using Arithmetic Sum of natural numbers n(n+1)/2
""" | 35.571429 | 70 | 0.538153 | 36 | 249 | 3.722222 | 0.555556 | 0.104478 | 0.149254 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.269076 | 249 | 7 | 71 | 35.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
381c431bf5d34f48fc711c27898b283eef2ade60 | 1,594 | py | Python | lib/bes/git/git_branch_list.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | lib/bes/git/git_branch_list.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | lib/bes/git/git_branch_list.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | #-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*-
import os, os.path as path, re
from collections import namedtuple
from bes.common.type_checked_list import type_checked_list
from .git_branch import git_branch
class git_branch_list(type_checked_list):
__value_type__ = gi... | 25.709677 | 90 | 0.690088 | 241 | 1,594 | 4.369295 | 0.26971 | 0.051282 | 0.060779 | 0.037987 | 0.188984 | 0.145299 | 0.099715 | 0.083571 | 0.083571 | 0.083571 | 0 | 0.002362 | 0.203262 | 1,594 | 61 | 91 | 26.131148 | 0.826772 | 0.077164 | 0 | 0.162791 | 0 | 0 | 0.029255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27907 | false | 0 | 0.093023 | 0.209302 | 0.697674 | 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 |
69b60a90b45f756d357f2b6f6306a822467bcdeb | 189 | py | Python | ch05/external_jq.py | rauhaanrizvi/code | 018270126c3549ec586165ee7b054ecb4fcb3bb8 | [
"0BSD"
] | 10 | 2021-05-07T08:31:57.000Z | 2022-03-06T11:16:23.000Z | ch05/external_jq.py | rauhaanrizvi/code | 018270126c3549ec586165ee7b054ecb4fcb3bb8 | [
"0BSD"
] | null | null | null | ch05/external_jq.py | rauhaanrizvi/code | 018270126c3549ec586165ee7b054ecb4fcb3bb8 | [
"0BSD"
] | 4 | 2021-08-23T08:48:36.000Z | 2022-03-13T04:00:04.000Z | # __pragma__ ('alias', 'jq', '$')
def set_click():
def add_item():
jq("ol").append("<li>List item</li>")
jq("#append_btn").click(add_item)
jq(document).ready(set_click)
| 17.181818 | 45 | 0.587302 | 27 | 189 | 3.777778 | 0.555556 | 0.156863 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174603 | 189 | 10 | 46 | 18.9 | 0.653846 | 0.164021 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | true | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
69b82fbab3c9899638b91aadae3a43fbb29cf26f | 811 | py | Python | test/data/custom_env.py | stheid/tensorforce | c4cce421be650d7500125b793b59aaeb92ffdf51 | [
"Apache-2.0"
] | 1 | 2021-12-25T16:54:16.000Z | 2021-12-25T16:54:16.000Z | test/data/custom_env.py | stheid/tensorforce | c4cce421be650d7500125b793b59aaeb92ffdf51 | [
"Apache-2.0"
] | null | null | null | test/data/custom_env.py | stheid/tensorforce | c4cce421be650d7500125b793b59aaeb92ffdf51 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from tensorforce import Environment
class CustomEnvironment(Environment):
def __init__(self):
super().__init__()
def states(self):
return dict(type='float', shape=(8,))
def actions(self):
return dict(type='int', num_values=4)
# Optional, should only be d... | 23.852941 | 84 | 0.635018 | 100 | 811 | 5 | 0.5 | 0.064 | 0.112 | 0.072 | 0.096 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0.009885 | 0.251541 | 811 | 33 | 85 | 24.575758 | 0.813839 | 0.107275 | 0 | 0 | 0 | 0 | 0.011096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.095238 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
69c164e018c38d716b02bb1da3d9a45b5cf4eac9 | 452 | py | Python | mugimugi_client_api/search_item/imprint.py | JeanMarc-Moly/mugimugi_client_api | d566ce5e462108858d2b4960bbd968b8e77e2540 | [
"OML"
] | null | null | null | mugimugi_client_api/search_item/imprint.py | JeanMarc-Moly/mugimugi_client_api | d566ce5e462108858d2b4960bbd968b8e77e2540 | [
"OML"
] | null | null | null | mugimugi_client_api/search_item/imprint.py | JeanMarc-Moly/mugimugi_client_api | d566ce5e462108858d2b4960bbd968b8e77e2540 | [
"OML"
] | null | null | null | from dataclasses import dataclass
from typing import ClassVar
from mugimugi_client_api_entity import Imprint
from mugimugi_client_api_entity import SearchImprint as Root
from mugimugi_client_api_entity.enum import ElementPrefix, ItemType
from .abstract import SearchItem
@dataclass
class SearchImprint(SearchItem):
... | 28.25 | 67 | 0.825221 | 55 | 452 | 6.618182 | 0.4 | 0.098901 | 0.148352 | 0.173077 | 0.255495 | 0.181319 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128319 | 452 | 15 | 68 | 30.133333 | 0.923858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.545455 | 0 | 0.909091 | 0.363636 | 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 |
69c857d0ec535e221b050318f042bc7851bc062a | 522 | py | Python | PyFlow/Packages/AnimationFreeCAD/Nodes/en/StartNode.py | QuentinTournier40/AnimationFreeCAD | 8eaff8356ec68b948a721b83a6888b652278db8a | [
"Apache-2.0"
] | null | null | null | PyFlow/Packages/AnimationFreeCAD/Nodes/en/StartNode.py | QuentinTournier40/AnimationFreeCAD | 8eaff8356ec68b948a721b83a6888b652278db8a | [
"Apache-2.0"
] | null | null | null | PyFlow/Packages/AnimationFreeCAD/Nodes/en/StartNode.py | QuentinTournier40/AnimationFreeCAD | 8eaff8356ec68b948a721b83a6888b652278db8a | [
"Apache-2.0"
] | 1 | 2022-02-03T08:03:30.000Z | 2022-02-03T08:03:30.000Z | from PyFlow.Core import NodeBase
from PyFlow.Core.Common import *
class StartNode(NodeBase):
def __init__(self, name):
super(StartNode, self).__init__(name)
self.createInputPin("inExec","ExecPin", None, self.execute)
self.createOutputPin("outExec", "ExecPin")
def execute(self, *args, *... | 27.473684 | 67 | 0.653257 | 58 | 522 | 5.741379 | 0.62069 | 0.06006 | 0.084084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 522 | 19 | 68 | 27.473684 | 0.820197 | 0 | 0 | 0.133333 | 0 | 0 | 0.151052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.133333 | 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 |
69d3c24b8dd94f0179feaac7f23a83c7645bd9a9 | 101 | py | Python | Hello_someone.py | LiXiao-Py/HelloWorld | 417b25b3d0248b786f6e332518dd1e8327fc5af0 | [
"MIT"
] | null | null | null | Hello_someone.py | LiXiao-Py/HelloWorld | 417b25b3d0248b786f6e332518dd1e8327fc5af0 | [
"MIT"
] | null | null | null | Hello_someone.py | LiXiao-Py/HelloWorld | 417b25b3d0248b786f6e332518dd1e8327fc5af0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#小练习
name = raw_input("请输入你的名字.")
print("Hello.") + name
print("请输入<enter>")
| 16.833333 | 28 | 0.594059 | 14 | 101 | 4.214286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.128713 | 101 | 5 | 29 | 20.2 | 0.659091 | 0.237624 | 0 | 0 | 0 | 0 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 |
69e255a14e06dbab503c69552a77cb272bc81e15 | 24,532 | py | Python | psx/_dump_/35/_dump_ida_/overlay_b/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/35/_dump_ida_/overlay_b/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/35/_dump_ida_/overlay_b/make_psx.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | set_name(0x80139F2C, "PreGameOnlyTestRoutine__Fv", SN_NOWARN)
set_name(0x8013BFF0, "DRLG_PlaceDoor__Fii", SN_NOWARN)
set_name(0x8013C4C4, "DRLG_L1Shadows__Fv", SN_NOWARN)
set_name(0x8013C8DC, "DRLG_PlaceMiniSet__FPCUciiiiiii", SN_NOWARN)
set_name(0x8013CD48, "DRLG_L1Floor__Fv", SN_NOWARN)
set_name(0x8013CE34, "StoreBlo... | 50.477366 | 68 | 0.822069 | 3,365 | 24,532 | 5.470134 | 0.301932 | 0.184441 | 0.289238 | 0.394415 | 0.31048 | 0.011517 | 0 | 0 | 0 | 0 | 0 | 0.180786 | 0.05931 | 24,532 | 485 | 69 | 50.581443 | 0.616848 | 0 | 0 | 0 | 0 | 0 | 0.288277 | 0.07211 | 0 | 0 | 0.197701 | 0 | 0 | 1 | 0 | true | 0.008247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
69ec3e111c76b2001ca77e1571235f197d6936d7 | 6,785 | py | Python | pruebas.py | steban1234/Ejercicios-universidad | dd9873512d90606771537df8eabac2f8c00c83f5 | [
"MIT"
] | null | null | null | pruebas.py | steban1234/Ejercicios-universidad | dd9873512d90606771537df8eabac2f8c00c83f5 | [
"MIT"
] | null | null | null | pruebas.py | steban1234/Ejercicios-universidad | dd9873512d90606771537df8eabac2f8c00c83f5 | [
"MIT"
] | 1 | 2021-09-29T23:06:03.000Z | 2021-09-29T23:06:03.000Z | """ # # # def sumatoria_teorica ():
# # # # solicitar numero de lados de la poligonal y que tipo de angulo observo
# # # n_lados = float(input('Digite numero de lados de la poligonal:'))
# # # tipo_angulo = float(input('si son internos(-2), si son externos (+2):'))
# # # sumatoria_teorica = (n_lados +... | 23.807018 | 102 | 0.649079 | 869 | 6,785 | 4.872267 | 0.223245 | 0.03401 | 0.036372 | 0.025508 | 0.374114 | 0.318375 | 0.245158 | 0.220831 | 0.203354 | 0.192489 | 0 | 0.078878 | 0.217097 | 6,785 | 285 | 103 | 23.807018 | 0.718185 | 0.765512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003509 | 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 |
69f094f6bac18f341b10cf3dacdb69c997f8247e | 3,615 | py | Python | release/stubs.min/Rhino/DocObjects/__init___parts/ReplayHistoryData.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Rhino/DocObjects/__init___parts/ReplayHistoryData.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Rhino/DocObjects/__init___parts/ReplayHistoryData.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class ReplayHistoryData(object, IDisposable):
# no doc
def Dispose(self):
""" Dispose(self: ReplayHistoryData) """
pass
def GetRhinoObjRef(self, id):
"""
GetRhinoObjRef(self: ReplayHistoryData,id: int) -> ObjRef
In ReplayHistory,use GetRhinoObjRef to convert th... | 25.821429 | 221 | 0.617981 | 382 | 3,615 | 5.651832 | 0.28534 | 0.145901 | 0.106531 | 0.120426 | 0.345067 | 0.18944 | 0.18944 | 0.150533 | 0.150533 | 0.150533 | 0 | 0.002267 | 0.267773 | 3,615 | 139 | 222 | 26.007194 | 0.813374 | 0.396404 | 0 | 0.405405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.405405 | false | 0.405405 | 0 | 0 | 0.540541 | 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 |
69f1489d993fe880d49e625a8401c10340635adc | 17,085 | py | Python | quantitative_finance/L3/python/fdbslv_test.py | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | 1 | 2021-05-28T06:37:15.000Z | 2021-05-28T06:37:15.000Z | quantitative_finance/L3/python/fdbslv_test.py | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | null | null | null | quantitative_finance/L3/python/fdbslv_test.py | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Ensure environmental variables i.e. paths are set to used the modules
from xf_fintech_python import DeviceManager, fdbslv
import sys
# Basic checking that the number of arguments are correct
if len(sys.argv) != 2:
sys.exit("Incorrect number of arguments supplied - 1 expected - the name of... | 110.941558 | 174 | 0.759204 | 1,848 | 17,085 | 7.017857 | 0.318182 | 0.134397 | 0.139101 | 0.141877 | 0.14126 | 0.14126 | 0.14126 | 0.137405 | 0.137405 | 0.137405 | 0 | 0.736721 | 0.137196 | 17,085 | 153 | 175 | 111.666667 | 0.14307 | 0.052736 | 0 | 0.102564 | 0 | 0.008547 | 0.017576 | 0.002414 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017094 | 0 | 0.017094 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3850e16031e8f5e81a04c237374a0c31f1cf34dd | 176 | py | Python | models/Users/Item.py | OkanyO/eden | 06a65d95ea580de204f2470de0bdb5bbc88d6691 | [
"MIT"
] | null | null | null | models/Users/Item.py | OkanyO/eden | 06a65d95ea580de204f2470de0bdb5bbc88d6691 | [
"MIT"
] | 1 | 2021-09-09T10:19:14.000Z | 2021-09-09T10:19:14.000Z | models/Users/Item.py | OkanyO/eden | 06a65d95ea580de204f2470de0bdb5bbc88d6691 | [
"MIT"
] | 19 | 2021-08-19T13:01:18.000Z | 2021-08-19T15:08:05.000Z | class Item:
def __init__(self, price: float, quantity: int, item_name: str):
self.price = price
self.quantity = quantity
self.item_name = item_name
| 29.333333 | 68 | 0.642045 | 23 | 176 | 4.608696 | 0.478261 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267045 | 176 | 5 | 69 | 35.2 | 0.821705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
385c561f375607818f6d3045dd88ed4ac27b5625 | 62 | py | Python | web/users/feedback/Main1180.py | joney000/Online-Code-Checker-and-Compiler | 30ab1741a4c3ad47fc3f15eb7dce2d79cd57f6f7 | [
"MIT"
] | 19 | 2017-02-06T01:12:51.000Z | 2022-02-05T21:32:24.000Z | web/users/feedback/Main1180.py | joney000/Online-Code-Checker-and-Compiler-in-Java-CodeOj-codeoj.com- | 30ab1741a4c3ad47fc3f15eb7dce2d79cd57f6f7 | [
"MIT"
] | 1 | 2017-04-07T10:26:53.000Z | 2017-04-07T10:47:17.000Z | web/users/feedback/Main1180.py | joney000/Online-Code-Checker-and-Compiler-in-Java-CodeOj-codeoj.com- | 30ab1741a4c3ad47fc3f15eb7dce2d79cd57f6f7 | [
"MIT"
] | 10 | 2016-02-10T18:29:30.000Z | 2021-02-16T05:26:58.000Z | while True:
n=input()
if(n == 42):
break
else:
print n
| 8.857143 | 13 | 0.564516 | 11 | 62 | 3.181818 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.274194 | 62 | 6 | 14 | 10.333333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
38770bfcd1a60cfdbfc57bc0efd2ad90e8ede22a | 945 | py | Python | backend/app/app/api/api_v1/report/gen_report.py | jimorsm/vue-element-admin-fastapi | 3ffc7dc3d2be988e544f339af466538cb0708d25 | [
"MIT"
] | 137 | 2020-08-06T17:00:50.000Z | 2022-03-28T02:38:23.000Z | backend/app/app/api/api_v1/report/gen_report.py | jimorsm/vue-element-admin-fastapi | 3ffc7dc3d2be988e544f339af466538cb0708d25 | [
"MIT"
] | 13 | 2021-05-20T02:29:19.000Z | 2021-08-23T10:14:57.000Z | backend/app/app/api/api_v1/report/gen_report.py | jimorsm/vue-element-admin-fastapi | 3ffc7dc3d2be988e544f339af466538cb0708d25 | [
"MIT"
] | 36 | 2020-08-07T01:34:22.000Z | 2022-03-31T04:55:41.000Z | # -*- coding:utf-8 -*-
import importlib
from app.api.api_v1.report.gen_excel import gen_template
class Report():
def __init__(self, code, query_params):
self.code = code
self.module_url = "app.api.api_v1.report.report." + code
self.module = self.import_module(self.module_url).Query(query_p... | 26.25 | 90 | 0.658201 | 125 | 945 | 4.688 | 0.264 | 0.112628 | 0.076792 | 0.09215 | 0.313993 | 0.133106 | 0.133106 | 0.133106 | 0 | 0 | 0 | 0.004144 | 0.233862 | 945 | 35 | 91 | 27 | 0.805249 | 0.021164 | 0 | 0 | 0 | 0 | 0.031419 | 0.031419 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0.04 | 0.2 | 0.12 | 0.72 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3880db721c0e4b7e8b716e97f35b08a6bae13541 | 104 | py | Python | 73.py | tarunbodapati/sum.c | c343d6ac530b7f433093138ac52474df4c9c4441 | [
"MIT"
] | null | null | null | 73.py | tarunbodapati/sum.c | c343d6ac530b7f433093138ac52474df4c9c4441 | [
"MIT"
] | null | null | null | 73.py | tarunbodapati/sum.c | c343d6ac530b7f433093138ac52474df4c9c4441 | [
"MIT"
] | null | null | null | z=int(input())
x,y=list(map(int,input().split()))
if((z>x)and(z<y)):
print("yes")
else:
print("no")
| 14.857143 | 34 | 0.567308 | 21 | 104 | 2.809524 | 0.666667 | 0.271186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 104 | 6 | 35 | 17.333333 | 0.62766 | 0 | 0 | 0 | 0 | 0 | 0.048077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
388484b5794a1a1f4be973d15ab7f138637160db | 121 | py | Python | bsm/cmd/ls_env.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | 3 | 2019-06-12T17:19:12.000Z | 2022-01-07T02:10:06.000Z | bsm/cmd/ls_env.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | null | null | null | bsm/cmd/ls_env.py | bsmsoft/bsm | e45ec5442de39e5f948023cd5b4c6181073cf9a2 | [
"MIT"
] | null | null | null | import click
class LsEnv(object):
def execute(self, config_version):
if ls_path:
click.echo('')
| 17.285714 | 38 | 0.603306 | 15 | 121 | 4.733333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289256 | 121 | 6 | 39 | 20.166667 | 0.825581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
38d576fda5fd39d525c4bb192ee94831f61fbdb1 | 231 | py | Python | main.py | junling2/NHL-SportsPredictor | a57cd755354ee6e3203ee32545e967a03708a3f8 | [
"MIT"
] | null | null | null | main.py | junling2/NHL-SportsPredictor | a57cd755354ee6e3203ee32545e967a03708a3f8 | [
"MIT"
] | null | null | null | main.py | junling2/NHL-SportsPredictor | a57cd755354ee6e3203ee32545e967a03708a3f8 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import sklearn
from sklearn import linear_model
from sklearn.utils import shuffle
data = pd.read_csv(r'C:\Users\Junling\github\NHL-SportsPredictor\2019-skater-stats.csv')
print(data.head())
| 23.1 | 88 | 0.800866 | 38 | 231 | 4.815789 | 0.710526 | 0.120219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019324 | 0.103896 | 231 | 9 | 89 | 25.666667 | 0.864734 | 0 | 0 | 0 | 0 | 0 | 0.281385 | 0.281385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0.142857 | 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 |
38dbbcbd30d6c95264001e28baa07f0a64354c0a | 26 | py | Python | Lib/idlelib/idlever.py | cafealternativo/cpython | f1899d5eb8152c38af0b0f6f2cd2d927a7ad7b3e | [
"MIT"
] | 3 | 2021-03-09T02:36:18.000Z | 2022-01-23T07:30:56.000Z | Lib/idlelib/idlever.py | cafealternativo/cpython | f1899d5eb8152c38af0b0f6f2cd2d927a7ad7b3e | [
"MIT"
] | null | null | null | Lib/idlelib/idlever.py | cafealternativo/cpython | f1899d5eb8152c38af0b0f6f2cd2d927a7ad7b3e | [
"MIT"
] | 4 | 2020-11-08T06:55:24.000Z | 2021-12-10T18:12:34.000Z | IDLE_VERSION = "3.4.0rc2"
| 13 | 25 | 0.692308 | 5 | 26 | 3.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0.115385 | 26 | 1 | 26 | 26 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 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 |
38dd60bcb00b10a0aeeea77f9d5238d426adb8b0 | 3,795 | py | Python | temboo/core/Library/LastFm/Artist/AddTags.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/LastFm/Artist/AddTags.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/LastFm/Artist/AddTags.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | # -*- coding: utf-8 -*-
###############################################################################
#
# AddTags
# Tags an artist with one or more user supplied tags.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not ... | 36.84466 | 167 | 0.665086 | 475 | 3,795 | 5.231579 | 0.343158 | 0.016097 | 0.024145 | 0.030181 | 0.243461 | 0.101811 | 0.08008 | 0.029779 | 0.029779 | 0 | 0 | 0.005337 | 0.210013 | 3,795 | 102 | 168 | 37.205882 | 0.823549 | 0.468511 | 0 | 0 | 0 | 0 | 0.044785 | 0.018405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.151515 | 0.151515 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2a1e5008c97106cd66c0bb8a45ec6fefb871f42f | 415 | py | Python | survol/analysis_import_file.py | AugustinMascarelli/survol | 7a822900e82d1e6f016dba014af5741558b78f15 | [
"BSD-3-Clause"
] | 9 | 2017-10-05T23:36:23.000Z | 2021-08-09T15:40:03.000Z | survol/analysis_import_file.py | AugustinMascarelli/survol | 7a822900e82d1e6f016dba014af5741558b78f15 | [
"BSD-3-Clause"
] | 21 | 2018-01-02T09:33:03.000Z | 2018-08-27T11:09:52.000Z | survol/analysis_import_file.py | AugustinMascarelli/survol | 7a822900e82d1e6f016dba014af5741558b78f15 | [
"BSD-3-Clause"
] | 4 | 2018-06-23T09:05:45.000Z | 2021-01-22T15:36:50.000Z | #!/usr/bin/env python
# TODO:
# Importer un fichier ou un groupe de fichiers dans un zip, et renvoyer un document RDF
# qui en represente l'analyse.
# Et meme: Creer une session dans laquelle on va stocker les fichiers utilisateurs en isolation,
# un peu comme un dossier FTP, qui sera un environnement associe a un u... | 41.5 | 96 | 0.778313 | 66 | 415 | 4.893939 | 0.757576 | 0.06192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171084 | 415 | 10 | 97 | 41.5 | 0.938953 | 0.961446 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.1 | 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 |
2a3b0d165a030873ad32d8c39ba00a3c030fd3f1 | 121 | py | Python | Udemy/GeekUniversity/secao_4/ex13_conversor_km_p_milhas.py | SandboxGTASA/Python-1 | bbb5f8bdf7d5110528e457b2a9ebdb2d67e40805 | [
"MIT"
] | null | null | null | Udemy/GeekUniversity/secao_4/ex13_conversor_km_p_milhas.py | SandboxGTASA/Python-1 | bbb5f8bdf7d5110528e457b2a9ebdb2d67e40805 | [
"MIT"
] | null | null | null | Udemy/GeekUniversity/secao_4/ex13_conversor_km_p_milhas.py | SandboxGTASA/Python-1 | bbb5f8bdf7d5110528e457b2a9ebdb2d67e40805 | [
"MIT"
] | null | null | null | # Convertendo Km/h para milhas
km_h = float(input('Entre com a distancia em KM/h: '))
milhas = km_h / 1.62
print(milhas) | 24.2 | 54 | 0.702479 | 23 | 121 | 3.608696 | 0.652174 | 0.144578 | 0.216867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.165289 | 121 | 5 | 55 | 24.2 | 0.792079 | 0.231405 | 0 | 0 | 0 | 0 | 0.336957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a422860e7ed503ac10382932677c802ba9266e6 | 204 | py | Python | test/test_core.py | mr-tenders/restbed | 68d36536286203048ce01f1467d3db7ee108bebb | [
"MIT"
] | null | null | null | test/test_core.py | mr-tenders/restbed | 68d36536286203048ce01f1467d3db7ee108bebb | [
"MIT"
] | null | null | null | test/test_core.py | mr-tenders/restbed | 68d36536286203048ce01f1467d3db7ee108bebb | [
"MIT"
] | null | null | null | import unittest
<<<<<<< HEAD
from restbed import core
class CoreTest(unittest.TestCase):
def test_core_api(self):
pass
if __name__ == '__main__':
unittest.main()
=======
>>>>>>> origin
| 14.571429 | 34 | 0.627451 | 23 | 204 | 5.130435 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196078 | 204 | 13 | 35 | 15.692308 | 0.719512 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.1 | 0.2 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2a5cc2d7f642813b7223350e771854a86e7988fd | 233 | py | Python | users/urls.py | adamgogogo/glitchtip-backend | 53af8e56f4d49a9e05f3616568f14acdc891d5f3 | [
"MIT"
] | null | null | null | users/urls.py | adamgogogo/glitchtip-backend | 53af8e56f4d49a9e05f3616568f14acdc891d5f3 | [
"MIT"
] | null | null | null | users/urls.py | adamgogogo/glitchtip-backend | 53af8e56f4d49a9e05f3616568f14acdc891d5f3 | [
"MIT"
] | null | null | null | from django.urls import path, include
from glitchtip.routers import BulkSimpleRouter
from .views import UserViewSet
router = BulkSimpleRouter()
router.register(r"users", UserViewSet)
urlpatterns = [path("", include(router.urls))]
| 23.3 | 46 | 0.7897 | 27 | 233 | 6.814815 | 0.592593 | 0.119565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107296 | 233 | 9 | 47 | 25.888889 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.021459 | 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 |
2a63aeda3c8b09f92234b674866f0687839c13eb | 13,912 | py | Python | semparse/seq2seq_standard.py | lukovnikov/semparse | 0fd5fcd9c982b6faac8f08b451f20273d2cc0da7 | [
"MIT"
] | null | null | null | semparse/seq2seq_standard.py | lukovnikov/semparse | 0fd5fcd9c982b6faac8f08b451f20273d2cc0da7 | [
"MIT"
] | null | null | null | semparse/seq2seq_standard.py | lukovnikov/semparse | 0fd5fcd9c982b6faac8f08b451f20273d2cc0da7 | [
"MIT"
] | 1 | 2021-04-06T13:15:01.000Z | 2021-04-06T13:15:01.000Z | # *
import qelos as q
import torch
from functools import partial
from semparse.attention import *
import numpy as np
from semparse.trees import parse as tparse
class EncDec(torch.nn.Module):
def __init__(self, inpemb, enc, dec, **kw):
super(EncDec, self).__init__(**kw)
self.inpemb, self.enc, self.... | 38.325069 | 120 | 0.603652 | 1,717 | 13,912 | 4.773442 | 0.185789 | 0.013665 | 0.014641 | 0.015373 | 0.750366 | 0.7306 | 0.709858 | 0.699854 | 0.699854 | 0.699854 | 0 | 0.015126 | 0.263442 | 13,912 | 363 | 121 | 38.325069 | 0.784717 | 0.043631 | 0 | 0.627517 | 0 | 0 | 0.046496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033557 | false | 0.003356 | 0.02349 | 0 | 0.083893 | 0.026846 | 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 |
2a66fbf92ea9d40fa9d89d57d3969be339eb76c5 | 773 | py | Python | src/graphql/scalar_descriptors/lax/__init__.py | btrekkie/graphql | 6c118550267eeb57a9653f4f46d7bbd6c5902110 | [
"MIT"
] | null | null | null | src/graphql/scalar_descriptors/lax/__init__.py | btrekkie/graphql | 6c118550267eeb57a9653f4f46d7bbd6c5902110 | [
"MIT"
] | null | null | null | src/graphql/scalar_descriptors/lax/__init__.py | btrekkie/graphql | 6c118550267eeb57a9653f4f46d7bbd6c5902110 | [
"MIT"
] | null | null | null | """Contains lax GraphQlScalarDescriptors for the built-in scalar types.
Contains non-strictly validating GraphQlScalarDescriptors for the
built-in scalar types. By "non-strictly validating", we mean that
Python methods and attributes that return field values of scalar types
need not return values strictly of those sc... | 42.944444 | 71 | 0.829237 | 106 | 773 | 6.04717 | 0.54717 | 0.068643 | 0.093604 | 0.109204 | 0.149766 | 0.149766 | 0.149766 | 0 | 0 | 0 | 0 | 0.009009 | 0.138422 | 773 | 17 | 72 | 45.470588 | 0.953453 | 0.708926 | 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 |
2a69ce63646b7934a27a364af5472ed8172186d6 | 202 | py | Python | Conditions if, then, else/10minimumOf2Numbers.py | palakbaphna/pyprac | 992770d5aed73c632a69b4bb22f471f35d083ee5 | [
"Apache-2.0"
] | null | null | null | Conditions if, then, else/10minimumOf2Numbers.py | palakbaphna/pyprac | 992770d5aed73c632a69b4bb22f471f35d083ee5 | [
"Apache-2.0"
] | null | null | null | Conditions if, then, else/10minimumOf2Numbers.py | palakbaphna/pyprac | 992770d5aed73c632a69b4bb22f471f35d083ee5 | [
"Apache-2.0"
] | null | null | null | #Given the two integers, print the least of them.
a = int(input("a = ?"))
b = int(input("b = ?"))
if a < b:
print("least of them is a = %s" %a)
elif b < a:
print("least of them is b = %s" %b)
| 20.2 | 49 | 0.544554 | 39 | 202 | 2.820513 | 0.410256 | 0.190909 | 0.3 | 0.290909 | 0.327273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262376 | 202 | 9 | 50 | 22.444444 | 0.738255 | 0.237624 | 0 | 0 | 0 | 0 | 0.366013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
2a6b12c86c8451cc15f1d0d86696f3ff844aaf47 | 206 | py | Python | vn.trader/gateway/femasGateway/__init__.py | angusoutlook/vnpy_clone_1.6 | b00777ff1f26640cc8cecffbb1efcaf567abf9b7 | [
"MIT"
] | 5 | 2018-01-25T01:59:41.000Z | 2022-03-11T10:08:58.000Z | docker/dockerTrader/gateway/femasGateway/__init__.py | motw2014/vnpy | 16c616ece1597a5766bf2fb3529f5789958330b6 | [
"MIT"
] | null | null | null | docker/dockerTrader/gateway/femasGateway/__init__.py | motw2014/vnpy | 16c616ece1597a5766bf2fb3529f5789958330b6 | [
"MIT"
] | 6 | 2018-03-12T06:08:21.000Z | 2021-11-18T15:14:40.000Z | # encoding: UTF-8
import vtConstant
from femasGateway import FemasGateway as gateway
gatewayName = 'FEMAS'
gatewayDisplayName = u'飞马'
gatewayType = vtConstant.GATEWAYTYPE_FUTURES
gatewayQryEnabled = True
| 20.6 | 48 | 0.820388 | 22 | 206 | 7.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.121359 | 206 | 9 | 49 | 22.888889 | 0.922652 | 0.072816 | 0 | 0 | 0 | 0 | 0.037037 | 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 |
2a6c983547b3b0fddc230119fbf531e1b44412e3 | 189 | py | Python | youtube_discussion_tree_api/utils/node.py | quimpm/youtube_discussion_tree | e7e457df673891f9c70495c28ca7d718f196bede | [
"MIT"
] | 13 | 2021-05-20T13:13:43.000Z | 2021-06-21T18:33:44.000Z | youtube_discussion_tree_api/utils/node.py | quimpm/youtube_discussion_tree | e7e457df673891f9c70495c28ca7d718f196bede | [
"MIT"
] | null | null | null | youtube_discussion_tree_api/utils/node.py | quimpm/youtube_discussion_tree | e7e457df673891f9c70495c28ca7d718f196bede | [
"MIT"
] | null | null | null | import dataclasses as dto
@dto.dataclass(eq=True)
class Node:
id: int
author_name: str
author_id: int
text: str
like_count: int
parent_id: int
published_at : str | 18.9 | 25 | 0.671958 | 29 | 189 | 4.206897 | 0.689655 | 0.122951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 189 | 10 | 26 | 18.9 | 0.871429 | 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 |
2a6d669cba16994b1a45b90b074266d47710bde9 | 1,988 | py | Python | pluto/data/traffic/download/request.py | chalant/pluto | e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc | [
"Apache-2.0"
] | null | null | null | pluto/data/traffic/download/request.py | chalant/pluto | e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc | [
"Apache-2.0"
] | null | null | null | pluto/data/traffic/download/request.py | chalant/pluto | e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
class Requester(ABC):
@abstractmethod
def get_request(self,**kwargs):
raise NotImplementedError
class Request(ABC):
__slots__ = ['_saver']
def __init__(self, saver):
self._saver = saver
def save(self, data):
return self._saver.save(data)
def __str__(self):
return s... | 20.494845 | 88 | 0.741449 | 257 | 1,988 | 5.354086 | 0.217899 | 0.072674 | 0.071221 | 0.046512 | 0.122093 | 0.122093 | 0.077035 | 0 | 0 | 0 | 0 | 0.002358 | 0.146881 | 1,988 | 96 | 89 | 20.708333 | 0.808962 | 0.025654 | 0 | 0.246154 | 0 | 0 | 0.062144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.292308 | false | 0 | 0.015385 | 0.2 | 0.661538 | 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 |
2a6e72856c680245fce20a20383bed8a4830aac6 | 427 | py | Python | api/admin.py | mhefley/hackart | 0a3d3511c33bc65bc70d3dfa3bef70c961a59049 | [
"MIT"
] | null | null | null | api/admin.py | mhefley/hackart | 0a3d3511c33bc65bc70d3dfa3bef70c961a59049 | [
"MIT"
] | null | null | null | api/admin.py | mhefley/hackart | 0a3d3511c33bc65bc70d3dfa3bef70c961a59049 | [
"MIT"
] | 1 | 2020-10-19T06:12:14.000Z | 2020-10-19T06:12:14.000Z | from django.contrib import admin
from api.models import *
# Register your models here.
#class ChallengeAdmin(admin.ModelAdmin):
# """
# Sets the display settings for the challenge model in the django admin
# interface.
# """
# list_display = ('category', 'points', 'title')
admin.site.register(Chal... | 25.117647 | 73 | 0.725995 | 51 | 427 | 6.058824 | 0.588235 | 0.116505 | 0.220065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159251 | 427 | 17 | 74 | 25.117647 | 0.860724 | 0.482436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 |
2a7d394afc420796dc18efe517d11a65395a008e | 168 | py | Python | LuoguCodes/AT211.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/AT211.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/AT211.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | n, s = raw_input(), raw_input().replace(';.';, ';';).split()
ans = 0
for _ in s:
ans += [0, 1][_ in [';TAKAHASHIKUN';,';takahashikun';,';Takahashikun';]]
print ans
| 28 | 76 | 0.565476 | 22 | 168 | 4.136364 | 0.590909 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0.14881 | 168 | 5 | 77 | 33.6 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2a8e57cff9f09c2fb658322fdc2a7f395e4cff0f | 161 | py | Python | backend/landlord/apps.py | vtu-datatools/landlord-web | 8749a1402384005b4e7835dd12e9a81e8688e92b | [
"Apache-2.0"
] | null | null | null | backend/landlord/apps.py | vtu-datatools/landlord-web | 8749a1402384005b4e7835dd12e9a81e8688e92b | [
"Apache-2.0"
] | null | null | null | backend/landlord/apps.py | vtu-datatools/landlord-web | 8749a1402384005b4e7835dd12e9a81e8688e92b | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class CurrentIssuesConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "backend.landlord"
| 23 | 56 | 0.776398 | 18 | 161 | 6.833333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136646 | 161 | 6 | 57 | 26.833333 | 0.884892 | 0 | 0 | 0 | 0 | 0 | 0.279503 | 0.180124 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
aa5f9c66d81ab45b0168bf5316df74d5576f1bff | 588 | py | Python | OOP/opp_adv_2.py | CrazyBBer/Python-Learn-Sample | 3bd0694327db6c662c6cc3bdf91c6261daa4b6cf | [
"MIT"
] | 2 | 2020-05-02T11:24:37.000Z | 2020-05-02T13:49:18.000Z | OOP/opp_adv_2.py | crazybber/pythontrip | 062ba71dfe6729ecc606eff7260b1c39497b6456 | [
"MIT"
] | null | null | null | OOP/opp_adv_2.py | crazybber/pythontrip | 062ba71dfe6729ecc606eff7260b1c39497b6456 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding utf-8 -*-
__Author__ ='eamon'
#多重继承
class Animal(object):
pass
class Mammal(Animal):
pass
class Bird(Animal):
pass
class Dog(Mammal):
pass
class Bat(Mammal):
pass
class Parrot(Bird):
pass
class Ostrich(Bird):
pass
class RunnableMixIn(object):
pass
class F... | 11.307692 | 44 | 0.721088 | 71 | 588 | 5.915493 | 0.408451 | 0.278571 | 0.107143 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.170068 | 588 | 52 | 45 | 11.307692 | 0.856557 | 0.078231 | 0 | 0.482759 | 0 | 0 | 0.009259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.482759 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
aa71c1f4b06404c6bfc78ba2d8f220e9f8852f27 | 4,476 | py | Python | molmap/feature/descriptor/path.py | riversdark/bidd-molmap | 7e3325433e2f29c189161859c63398574af6572b | [
"MIT"
] | 75 | 2020-07-07T01:18:30.000Z | 2022-03-25T13:40:19.000Z | molmap/feature/descriptor/path.py | lfc350760007/bidd-molmap | 2a157dfdaec6f2c7952bafe3da95d78958a54f48 | [
"MIT"
] | 12 | 2020-09-28T14:11:17.000Z | 2022-02-10T04:33:25.000Z | molmap/feature/descriptor/path.py | lfc350760007/bidd-molmap | 2a157dfdaec6f2c7952bafe3da95d78958a54f48 | [
"MIT"
] | 24 | 2020-07-22T08:52:59.000Z | 2022-03-14T09:59:44.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 1 18:04:35 2019
@author: charleshen
@usage:graph descriptors
http://rdkit.org/docs/source/rdkit.Chem.rdmolops.html https://www.rdkit.org/docs/source/rdkit.Chem.GraphDescriptors.html#rdkit.Chem.GraphDescriptors.Chi0
Subgraphs are potentially bran... | 26.175439 | 153 | 0.669348 | 428 | 4,476 | 6.950935 | 0.39486 | 0.057479 | 0.072605 | 0.096807 | 0.312941 | 0.306218 | 0.028908 | 0.028908 | 0.028908 | 0 | 0 | 0.031259 | 0.18521 | 4,476 | 171 | 154 | 26.175439 | 0.78448 | 0.228776 | 0 | 0 | 0 | 0 | 0.116258 | 0.081744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25974 | false | 0 | 0.064935 | 0.233766 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
aa953237cfea028c5fe122dc7daeea44e9076d2b | 914 | py | Python | dl_toolbox_cwm/model/utils/builder.py | Wei-ming-Chen/DL-ToolBox-CWM | 4bccc584040bfcbf252affad9357fd0ed89a3b6d | [
"Apache-2.0"
] | 7 | 2021-03-04T10:41:44.000Z | 2021-03-08T02:01:59.000Z | dl_toolbox_cwm/model/utils/builder.py | Wei-ming-Chen/DL-ToolBox-CWM | 4bccc584040bfcbf252affad9357fd0ed89a3b6d | [
"Apache-2.0"
] | null | null | null | dl_toolbox_cwm/model/utils/builder.py | Wei-ming-Chen/DL-ToolBox-CWM | 4bccc584040bfcbf252affad9357fd0ed89a3b6d | [
"Apache-2.0"
] | 1 | 2021-03-04T16:09:25.000Z | 2021-03-04T16:09:25.000Z | import torch.nn as nn
from dl_toolbox_cwm.model.utils.core.registry import Registry, build_from_cfg
__all__ = [
'build_backbone', 'build_head', 'build_neck', 'build_loss', 'build_classifier'
]
BACKBONES = Registry('backbone')
CLASSIFIERS = Registry('classifier')
HEADS = Registry('head')
NECKS = Registry('neck')
... | 21.255814 | 82 | 0.696937 | 120 | 914 | 5.083333 | 0.316667 | 0.078689 | 0.114754 | 0.139344 | 0.111475 | 0.111475 | 0.111475 | 0 | 0 | 0 | 0 | 0 | 0.189278 | 914 | 43 | 83 | 21.255814 | 0.823212 | 0 | 0 | 0 | 0 | 0 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.178571 | 0.535714 | 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 |
aa97b63d71017dbd95086ed46fe9757607ac2528 | 24,998 | py | Python | openet/disalexi/tests/test_tseb_utils.py | hgbzzw/openet-disalexi-beta | efc581b08613ee2d1cb653b04c079d4610d51174 | [
"Apache-2.0"
] | 3 | 2019-11-07T14:58:42.000Z | 2022-01-05T07:54:27.000Z | openet/disalexi/tests/test_tseb_utils.py | hgbzzw/openet-disalexi-beta | efc581b08613ee2d1cb653b04c079d4610d51174 | [
"Apache-2.0"
] | null | null | null | openet/disalexi/tests/test_tseb_utils.py | hgbzzw/openet-disalexi-beta | efc581b08613ee2d1cb653b04c079d4610d51174 | [
"Apache-2.0"
] | 2 | 2020-01-14T08:32:30.000Z | 2022-01-11T00:47:13.000Z | import logging
import math
import ee
import pytest
import openet.disalexi.tseb_utils as tseb_utils
import openet.disalexi.utils as utils
from .idl_values import ne1, ne2, ne3
# AmeriFlux sites adjusted to nearest Landsat cell centroid
# ne1_xy = [-96.47672812080845, 41.16506126041818]
# ne2_xy = [-96.46994024736414... | 41.250825 | 87 | 0.644772 | 3,169 | 24,998 | 4.957084 | 0.115809 | 0.050799 | 0.100261 | 0.030556 | 0.731682 | 0.714559 | 0.668025 | 0.640906 | 0.586352 | 0.550703 | 0 | 0.319435 | 0.207537 | 24,998 | 605 | 88 | 41.319008 | 0.473549 | 0.088887 | 0 | 0.382096 | 0 | 0.004367 | 0.089032 | 0.029119 | 0 | 0 | 0 | 0 | 0.043668 | 1 | 0.043668 | false | 0 | 0.015284 | 0 | 0.058952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aaa5480390e0c520dbb2b0dfde6e33db94a21431 | 678 | py | Python | main2.py | jstac/yale_class_2016 | c8258676013baac9f50707d797af0602a3788975 | [
"BSD-3-Clause"
] | 1 | 2019-08-25T06:00:11.000Z | 2019-08-25T06:00:11.000Z | main2.py | jstac/yale_class_2016 | c8258676013baac9f50707d797af0602a3788975 | [
"BSD-3-Clause"
] | null | null | null | main2.py | jstac/yale_class_2016 | c8258676013baac9f50707d797af0602a3788975 | [
"BSD-3-Clause"
] | 2 | 2016-12-28T07:44:07.000Z | 2019-06-29T06:28:37.000Z | """
Computes equilibrium price and quantities, take 2.
"""
from numpy import exp
from scipy.optimize import bisect
def supply(price, b):
return exp(b * price) - 1
def demand(price, a, epsilon):
return a * price**(-epsilon)
def compute_equilibrium(a, b, epsilon):
plow = 0.1
phigh = 10.0
def excess_s... | 23.37931 | 64 | 0.59882 | 95 | 678 | 4.210526 | 0.389474 | 0.02 | 0.015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046092 | 0.264012 | 678 | 28 | 65 | 24.214286 | 0.755511 | 0.073746 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.157895 | 0.526316 | 0.052632 | 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 |
aaa95865a24367cc506931bf67ab994e673dda71 | 4,222 | py | Python | mysite/settings.py | LFMP/ALARM | b310ebb53525826bb588bab983a45c14560c4863 | [
"MIT"
] | 1 | 2021-01-11T18:39:27.000Z | 2021-01-11T18:39:27.000Z | mysite/settings.py | kiminh/ALARM | b310ebb53525826bb588bab983a45c14560c4863 | [
"MIT"
] | null | null | null | mysite/settings.py | kiminh/ALARM | b310ebb53525826bb588bab983a45c14560c4863 | [
"MIT"
] | 3 | 2019-08-29T22:52:20.000Z | 2021-07-15T22:51:29.000Z | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | 27.064103 | 91 | 0.687115 | 460 | 4,222 | 6.178261 | 0.391304 | 0.086911 | 0.054187 | 0.061576 | 0.230472 | 0.176636 | 0.11506 | 0.093948 | 0.042224 | 0 | 0 | 0.011809 | 0.177641 | 4,222 | 155 | 92 | 27.23871 | 0.80674 | 0.247276 | 0 | 0 | 1 | 0 | 0.538681 | 0.434686 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054945 | 0.010989 | 0 | 0.010989 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
aaab3c3f2e6ba2e5b4b16536a39fc964c3f9a8a9 | 770 | py | Python | yt_concate/model/yto.py | smallwater94/yt-concat | 3bec02f25ac41263511c26917a87deac3edc65b9 | [
"MIT"
] | null | null | null | yt_concate/model/yto.py | smallwater94/yt-concat | 3bec02f25ac41263511c26917a87deac3edc65b9 | [
"MIT"
] | null | null | null | yt_concate/model/yto.py | smallwater94/yt-concat | 3bec02f25ac41263511c26917a87deac3edc65b9 | [
"MIT"
] | null | null | null | # yto YouTube object
import os
from yt_concate.settings import CAPTIONS_DIR, VIDEOS_DIR
class YTO:
def __init__(self, url):
self.url = url
self.v_id = self.get_video_id_from_url(url)
self.caption_filepath = self.get_caption_filepath()
self.video_filepath = self.get_video_filepath()... | 27.5 | 61 | 0.672727 | 110 | 770 | 4.390909 | 0.381818 | 0.149068 | 0.043478 | 0.057971 | 0.198758 | 0.198758 | 0 | 0 | 0 | 0 | 0 | 0.003373 | 0.22987 | 770 | 27 | 62 | 28.518519 | 0.81113 | 0.053247 | 0 | 0 | 0 | 0 | 0.022069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.157895 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
aab0428c687d3066d1a4d7f2adc23a34b0ad28bf | 2,676 | py | Python | functions/python/perper/jupyter/__init__.py | obecto/perper | ce25abde413bdb4c054a06d810939e98fac04d62 | [
"MIT"
] | 24 | 2019-11-11T13:26:12.000Z | 2022-03-18T23:38:07.000Z | functions/python/perper/jupyter/__init__.py | obecto/perper | ce25abde413bdb4c054a06d810939e98fac04d62 | [
"MIT"
] | 76 | 2020-01-25T16:48:37.000Z | 2022-01-03T09:26:11.000Z | functions/python/perper/jupyter/__init__.py | obecto/perper | ce25abde413bdb4c054a06d810939e98fac04d62 | [
"MIT"
] | 4 | 2020-06-25T13:21:37.000Z | 2021-11-03T09:05:11.000Z | import sys
import os
from perper.model import StreamFlags
from perper.model import State
from perper.model import Context
from perper.services import Serializer
from perper.services import FabricService
from perper.services import PerperConfig
from perper.cache import PerperInstanceData
from perper.utils import PerperT... | 26.235294 | 97 | 0.773916 | 339 | 2,676 | 5.929204 | 0.318584 | 0.069652 | 0.059701 | 0.051741 | 0.359701 | 0.204478 | 0.055721 | 0.055721 | 0 | 0 | 0 | 0.003054 | 0.143498 | 2,676 | 101 | 98 | 26.49505 | 0.873909 | 0.128176 | 0 | 0 | 0 | 0 | 0.042691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0.018868 | 0.188679 | 0.169811 | 0.584906 | 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 |
2adfcaf6cd0ca9e3a41e9644e0283b69f0de7cdb | 109 | py | Python | services/apis/django-api/source/api/api_rest_interface/apps.py | fzi-forschungszentrum-informatik/BEMCom | 0a0c359d889c6d5975e4d4d3b17c24adb5bf883b | [
"MIT"
] | 4 | 2021-09-10T09:46:18.000Z | 2021-12-05T17:55:14.000Z | services/apis/django-api/source/api/api_rest_interface/apps.py | fzi-forschungszentrum-informatik/BEMCom | 0a0c359d889c6d5975e4d4d3b17c24adb5bf883b | [
"MIT"
] | null | null | null | services/apis/django-api/source/api/api_rest_interface/apps.py | fzi-forschungszentrum-informatik/BEMCom | 0a0c359d889c6d5975e4d4d3b17c24adb5bf883b | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ApiRestInterfaceConfig(AppConfig):
name = 'api_rest_interface'
| 18.166667 | 40 | 0.798165 | 12 | 109 | 7.083333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 109 | 5 | 41 | 21.8 | 0.904255 | 0 | 0 | 0 | 0 | 0 | 0.165138 | 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 |
2aef391d2e2c2b2c31790c3a1636de4906ab7f39 | 2,352 | py | Python | qcloudsdkscf/CreateFunctionRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkscf/CreateFunctionRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkscf/CreateFunctionRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class CreateFunctionRequest(Request):
def __init__(self):
super(CreateFunctionRequest, self).__init__(
'scf', 'qcloudcliV1', 'CreateFunction', 'scf.api.qcloud.com')
def get_code(self):
return self.get_params().get(... | 26.727273 | 73 | 0.655612 | 285 | 2,352 | 5.2 | 0.133333 | 0.052632 | 0.122807 | 0.149123 | 0.22807 | 0.22807 | 0 | 0 | 0 | 0 | 0 | 0.001081 | 0.21301 | 2,352 | 87 | 74 | 27.034483 | 0.799568 | 0.008929 | 0 | 0 | 0 | 0 | 0.107342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.473684 | false | 0 | 0.017544 | 0.22807 | 0.736842 | 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 |
2afd7e504c5f2c4118e1725440cb5bd074b315d6 | 9,696 | py | Python | tests/commands/publish_tests.py | andres-zartab/courseraprogramming | e50dda898c879a3f45d44da3f8516cd660c74453 | [
"Apache-2.0"
] | 40 | 2015-09-29T20:26:47.000Z | 2021-07-13T07:53:23.000Z | tests/commands/publish_tests.py | andres-zartab/courseraprogramming | e50dda898c879a3f45d44da3f8516cd660c74453 | [
"Apache-2.0"
] | 59 | 2015-07-27T23:07:00.000Z | 2020-12-11T06:32:32.000Z | tests/commands/publish_tests.py | andres-zartab/courseraprogramming | e50dda898c879a3f45d44da3f8516cd660c74453 | [
"Apache-2.0"
] | 24 | 2015-10-16T14:35:04.000Z | 2020-10-14T08:40:38.000Z | #!/usr/bin/env python
# Copyright 2016 Coursera
#
# 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 ag... | 29.471125 | 79 | 0.692244 | 1,117 | 9,696 | 5.661594 | 0.146822 | 0.064358 | 0.076059 | 0.063093 | 0.756483 | 0.73988 | 0.72043 | 0.719798 | 0.651961 | 0.597249 | 0 | 0.017012 | 0.217925 | 9,696 | 328 | 80 | 29.560976 | 0.816959 | 0.077764 | 0 | 0.628319 | 0 | 0 | 0.116204 | 0.040341 | 0 | 0 | 0 | 0 | 0.084071 | 1 | 0.123894 | false | 0 | 0.026549 | 0.00885 | 0.216814 | 0.004425 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2aff4e5fe210eddab8ec36b6bc60b444c14bab8e | 1,980 | py | Python | Source/Mogwai/Data/ExampleBiltGraph.py | guiqi134/Falcor | 480c0c0ac4633c5b60ff533eea2902da76112df7 | [
"BSD-3-Clause"
] | null | null | null | Source/Mogwai/Data/ExampleBiltGraph.py | guiqi134/Falcor | 480c0c0ac4633c5b60ff533eea2902da76112df7 | [
"BSD-3-Clause"
] | null | null | null | Source/Mogwai/Data/ExampleBiltGraph.py | guiqi134/Falcor | 480c0c0ac4633c5b60ff533eea2902da76112df7 | [
"BSD-3-Clause"
] | null | null | null | from falcor import *
def render_graph_DefaultRenderGraph():
g = RenderGraph('DefaultRenderGraph')
loadRenderPassLibrary('BSDFViewer.dll')
loadRenderPassLibrary('AccumulatePass.dll')
loadRenderPassLibrary('TemporalDelayPass.dll')
loadRenderPassLibrary('Antialiasing.dll')
loadRenderPassLibrary('B... | 45 | 220 | 0.770707 | 151 | 1,980 | 10.072848 | 0.476821 | 0.426036 | 0.038133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00681 | 0.110101 | 1,980 | 43 | 221 | 46.046512 | 0.856413 | 0 | 0 | 0 | 0 | 0 | 0.337374 | 0.115152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0.829268 | 0.02439 | 0 | 0.073171 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 3 |
2affe3186b0cc824bfe98b5d4d86aa3214d701c7 | 599 | py | Python | bomber_monkey/features/controller/input_mapping.py | MonkeyPatchIo/bomber-monkey | 8a351ef1a0ef18e9d98ad72d7274c41f02c0ed1b | [
"MIT"
] | null | null | null | bomber_monkey/features/controller/input_mapping.py | MonkeyPatchIo/bomber-monkey | 8a351ef1a0ef18e9d98ad72d7274c41f02c0ed1b | [
"MIT"
] | null | null | null | bomber_monkey/features/controller/input_mapping.py | MonkeyPatchIo/bomber-monkey | 8a351ef1a0ef18e9d98ad72d7274c41f02c0ed1b | [
"MIT"
] | null | null | null | from abc import abstractmethod, ABC
from bomber_monkey.features.physics.rigid_body import RigidBody
from bomber_monkey.features.player.player_action import PlayerAction
from bomber_monkey.game_inputs import GameInputs
from python_ecs.ecs import Component, Simulator
class InputMapping(Component, ABC):
def __init_... | 29.95 | 120 | 0.747913 | 72 | 599 | 6.041667 | 0.513889 | 0.068966 | 0.110345 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173623 | 599 | 19 | 121 | 31.526316 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0.023372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.357143 | 0.071429 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6323370f08979d6bec47769a95e0cb1e0f752ae3 | 468 | py | Python | krakask/tests/conftest.py | asmodehn/krakask | 77c6c6effbd64dcd6407da050c262179c3bb89d8 | [
"MIT"
] | null | null | null | krakask/tests/conftest.py | asmodehn/krakask | 77c6c6effbd64dcd6407da050c262179c3bb89d8 | [
"MIT"
] | null | null | null | krakask/tests/conftest.py | asmodehn/krakask | 77c6c6effbd64dcd6407da050c262179c3bb89d8 | [
"MIT"
] | null | null | null |
#from krakask.api import API
#from krakask.pyapi import KrakenAPI, KrakenAPIError
import pytest
@pytest.fixture
def mock_srv():
return "127.0.0.1"
# @pytest.fixture
# def api(mock_srv):
# """A flaky webserver with pathological behavior for testing purposes"""
# api = API()
# # to make sure we can ... | 18 | 77 | 0.66453 | 64 | 468 | 4.8125 | 0.5625 | 0.126623 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016304 | 0.213675 | 468 | 25 | 78 | 18.72 | 0.820652 | 0.775641 | 0 | 0 | 0 | 0 | 0.102273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0.25 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
63310c0727aaade6b4485b4235012b7f0d218e86 | 1,210 | py | Python | tests/test_utils.py | jabbalaci/jabbapylib3 | ddc8fe88b89c4379254183b9a7c1405574a3a262 | [
"MIT"
] | 6 | 2017-03-31T16:58:52.000Z | 2019-05-11T20:12:07.000Z | tests/test_utils.py | jabbalaci/jabbapylib3 | ddc8fe88b89c4379254183b9a7c1405574a3a262 | [
"MIT"
] | null | null | null | tests/test_utils.py | jabbalaci/jabbapylib3 | ddc8fe88b89c4379254183b9a7c1405574a3a262 | [
"MIT"
] | null | null | null | # coding: utf-8
from jplib import utils
def test_my_shuffle():
array = [1, 2, 3]
assert len(utils.my_shuffle(array)[::-1]) == 3
last = utils.my_shuffle(array)[-1]
assert 1 <= last <= 3
def test_inc_string():
assert utils.inc_string('a') == 'b'
assert utils.inc_string('f') == 'g'
assert ... | 29.512195 | 60 | 0.639669 | 177 | 1,210 | 4.20904 | 0.316384 | 0.280537 | 0.131544 | 0.187919 | 0.289933 | 0.236242 | 0.193289 | 0.193289 | 0.193289 | 0.193289 | 0 | 0.13313 | 0.186777 | 1,210 | 40 | 61 | 30.25 | 0.623984 | 0.010744 | 0 | 0 | 0 | 0 | 0.106454 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0.142857 | false | 0 | 0.035714 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2d533cf59c1e9f68f0503402635592e221a33fa7 | 222 | py | Python | main.py | jiahong-chen/send_email | 8f3599c28b60b16afc0a4aa8718ac969118740e1 | [
"MIT"
] | null | null | null | main.py | jiahong-chen/send_email | 8f3599c28b60b16afc0a4aa8718ac969118740e1 | [
"MIT"
] | null | null | null | main.py | jiahong-chen/send_email | 8f3599c28b60b16afc0a4aa8718ac969118740e1 | [
"MIT"
] | null | null | null | import sys
from QtClass.MainWindow import App
from PyQt5 import QtCore, QtGui, QtWidgets
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
window = App()
window.show()
sys.exit(app.exec_()) | 24.666667 | 42 | 0.707207 | 29 | 222 | 5.103448 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.18018 | 222 | 9 | 43 | 24.666667 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
2d78a1d5f7e49229a19b3c5cbf91c4101a64b0aa | 2,467 | py | Python | src/abaqus/Interaction/StabilizationAssignment.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Interaction/StabilizationAssignment.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Interaction/StabilizationAssignment.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
class StabilizationAssignment:
"""The StabilizationAssignment object stores the contact stabilization assignment
definition for domain pairs in a ContactStd object. The StabilizationAssignment object
has no constructor or members.
Notes
-----
This object can be... | 34.746479 | 101 | 0.638833 | 264 | 2,467 | 5.969697 | 0.367424 | 0.126904 | 0.09835 | 0.038071 | 0.224619 | 0.180203 | 0.088832 | 0.088832 | 0.088832 | 0.088832 | 0 | 0 | 0.314552 | 2,467 | 70 | 102 | 35.242857 | 0.931993 | 0.720713 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.375 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
2d83515d3b2c0545f64c14bb473a19cac246deff | 168 | py | Python | nz_django/day1/urls_include_demo/book/urls.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | null | null | null | nz_django/day1/urls_include_demo/book/urls.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | 27 | 2020-02-12T07:55:58.000Z | 2022-03-12T00:19:09.000Z | nz_django/day1/urls_include_demo/book/urls.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | 2 | 2020-02-18T01:54:55.000Z | 2020-02-21T11:36:28.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('detail/<int:book_id>/', views.book_detail,{'name':'kangbazi'}),
]
| 24 | 73 | 0.666667 | 22 | 168 | 5 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 168 | 6 | 74 | 28 | 0.763889 | 0 | 0 | 0 | 0 | 0 | 0.196429 | 0.125 | 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 |
2d8e023956108aaa34a1471ffde18575ffc8a12b | 1,706 | py | Python | supervisor/Comandos.py | renaner123/STD029006-Projeto1 | ce060432a9a2bf5e3157166ace31df345b7fd30c | [
"MIT"
] | null | null | null | supervisor/Comandos.py | renaner123/STD029006-Projeto1 | ce060432a9a2bf5e3157166ace31df345b7fd30c | [
"MIT"
] | null | null | null | supervisor/Comandos.py | renaner123/STD029006-Projeto1 | ce060432a9a2bf5e3157166ace31df345b7fd30c | [
"MIT"
] | null | null | null | import json
'''
Classe utilizada como enum para troca de mensagens entre os sitemas. No caso, comandos utilizados.
'''
class Commands:
MOVE_TO = "move_to" # Utilizada pra indicar a nova movimentação do robo
START = "start" # Utilizada para dar inicio a caça as bandeiras
... | 40.619048 | 120 | 0.61313 | 204 | 1,706 | 5.073529 | 0.534314 | 0.046377 | 0.030918 | 0.042512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321219 | 1,706 | 41 | 121 | 41.609756 | 0.893782 | 0.35932 | 0 | 0 | 0 | 0 | 0.067888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0.034483 | 0.034483 | 0.172414 | 0.965517 | 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 |
2d9a16197faad055bc9fe1e3278b044e56ec78bc | 42 | py | Python | asyncqlio/sentinels.py | SilphRoad/asyncqlio | 02dcd01940d77bc3d3f630beb3675a1be9350323 | [
"MIT"
] | 10 | 2018-04-13T06:41:01.000Z | 2018-07-29T20:09:18.000Z | asyncqlio/sentinels.py | SilphRoad/asyncqlio | 02dcd01940d77bc3d3f630beb3675a1be9350323 | [
"MIT"
] | 3 | 2018-05-18T21:37:02.000Z | 2019-03-24T13:52:14.000Z | asyncqlio/sentinels.py | Fuyukai/asyncqlio | 9bdb49076dea14730ec39e6d033061d6bccc016c | [
"MIT"
] | 1 | 2020-09-11T17:43:00.000Z | 2020-09-11T17:43:00.000Z | NO_DEFAULT = object()
NO_VALUE = object()
| 14 | 21 | 0.714286 | 6 | 42 | 4.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 42 | 2 | 22 | 21 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2d9d58da41969afa60b91eaf0eecdef8d714f458 | 2,360 | py | Python | varappx/main/samples/samples_factoyr.py | 444thLiao/VarappX-flask | 9a59f4eb5897a1ecf90978e9f357954cdd7d410a | [
"MIT"
] | 1 | 2017-04-27T09:12:50.000Z | 2017-04-27T09:12:50.000Z | varappx/main/samples/samples_factoyr.py | 444thLiao/VarappX-flask | 9a59f4eb5897a1ecf90978e9f357954cdd7d410a | [
"MIT"
] | null | null | null | varappx/main/samples/samples_factoyr.py | 444thLiao/VarappX-flask | 9a59f4eb5897a1ecf90978e9f357954cdd7d410a | [
"MIT"
] | null | null | null | from varappx.models.gemini import Samples
#from varappx.data_models.samples import SamplesSelection, Sample
from varappx.models.users import Bam, VariantsDb
import itertools
from operator import attrgetter
#
#
# def sample_factory(s:Samples):
# """Create a more useful Sample instance from a Django Samples instance ... | 43.703704 | 119 | 0.680085 | 339 | 2,360 | 4.584071 | 0.289086 | 0.04955 | 0.023166 | 0.021879 | 0.124839 | 0.034749 | 0.034749 | 0 | 0 | 0 | 0 | 0.001584 | 0.197458 | 2,360 | 53 | 120 | 44.528302 | 0.818902 | 0.899153 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2d9e52c41d7ba282be6d21a98fc435a2e8892c26 | 56 | py | Python | python/testData/stubs/FullyQualifiedTypingNamedTupleKwargsWithAs.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/stubs/FullyQualifiedTypingNamedTupleKwargsWithAs.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/stubs/FullyQualifiedTypingNamedTupleKwargsWithAs.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | import typing as T
nt = T.NamedTuple("name", field=str) | 18.666667 | 36 | 0.714286 | 10 | 56 | 4 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 56 | 3 | 36 | 18.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 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 |
2da2462e4cc6a576e286782c9f22871613f626e6 | 405 | py | Python | apps/address/serializers.py | ozet-team/ozet-server | 4772d37339634adee6ace65a5e2380df4bd22bbb | [
"MIT"
] | null | null | null | apps/address/serializers.py | ozet-team/ozet-server | 4772d37339634adee6ace65a5e2380df4bd22bbb | [
"MIT"
] | 4 | 2021-11-27T14:15:55.000Z | 2021-12-10T12:59:44.000Z | apps/address/serializers.py | ozet-team/ozet-server | 4772d37339634adee6ace65a5e2380df4bd22bbb | [
"MIT"
] | null | null | null | from apps.address.models import City, Country
from rest_framework import serializers
class CountrySerializer(serializers.ModelSerializer):
class Meta:
model = Country
fields = [
"id",
"name",
]
class CitySerializer(serializers.ModelSerializer):
class Meta:
... | 19.285714 | 53 | 0.565432 | 34 | 405 | 6.705882 | 0.558824 | 0.22807 | 0.27193 | 0.307018 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.353086 | 405 | 20 | 54 | 20.25 | 0.870229 | 0 | 0 | 0.5 | 0 | 0 | 0.02963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.375 | 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 |
2dab5ec6bd7f32cd99fcb9944c9c6e1c7e6f8b62 | 351 | py | Python | dismusic/errors.py | Cl1ckerr/dismusic | 7bd45e9402501b9fd2817fb3c8d21a64fe1896d4 | [
"MIT"
] | 1 | 2022-02-26T14:23:16.000Z | 2022-02-26T14:23:16.000Z | dismusic/errors.py | Cl1ckerr/dismusic | 7bd45e9402501b9fd2817fb3c8d21a64fe1896d4 | [
"MIT"
] | 2 | 2022-02-09T08:16:51.000Z | 2022-02-24T17:03:11.000Z | dismusic/errors.py | Cl1ckerr/dismusic | 7bd45e9402501b9fd2817fb3c8d21a64fe1896d4 | [
"MIT"
] | null | null | null | from discord.ext.commands.errors import CheckFailure
class NotConnectedToVoice(CheckFailure):
"""No Estas Conectado A un canal de voz"""
pass
class PlayerNotConnected(CheckFailure):
"""Musica no conectada"""
pass
class MustBeSameChannel(CheckFailure):
"""Player and user not i... | 17.55 | 53 | 0.678063 | 37 | 351 | 6.432432 | 0.783784 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236467 | 351 | 19 | 54 | 18.473684 | 0.88806 | 0.262108 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.428571 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
2db569ff21be6bb82bbdb509ecf0376f48f55dd3 | 92 | py | Python | nsot/util/__init__.py | narJH27/nsot | 22e6a81c76147e55ab9a19eb55cdc741c5723fbc | [
"Apache-2.0"
] | null | null | null | nsot/util/__init__.py | narJH27/nsot | 22e6a81c76147e55ab9a19eb55cdc741c5723fbc | [
"Apache-2.0"
] | null | null | null | nsot/util/__init__.py | narJH27/nsot | 22e6a81c76147e55ab9a19eb55cdc741c5723fbc | [
"Apache-2.0"
] | null | null | null |
__all__ = []
from . import core
from .core import * # noqa
__all__.extend(core.__all__)
| 11.5 | 28 | 0.684783 | 12 | 92 | 4.25 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 92 | 7 | 29 | 13.142857 | 0.689189 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 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 |
2de522dd647c50b4bb00113eaa474ccae21a195a | 3,944 | py | Python | test/test_sourceimages_api.py | rokka-io/rokka-client-python-codegen | 63696489531a6f6efc982d3e25d79fbbce433838 | [
"MIT"
] | null | null | null | test/test_sourceimages_api.py | rokka-io/rokka-client-python-codegen | 63696489531a6f6efc982d3e25d79fbbce433838 | [
"MIT"
] | null | null | null | test/test_sourceimages_api.py | rokka-io/rokka-client-python-codegen | 63696489531a6f6efc982d3e25d79fbbce433838 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
rokka.io
digital image processing done right. [Documentation](https://rokka.io/documentation). [Changelog](https://api.rokka.io/changelog.md). # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ impo... | 26.829932 | 151 | 0.66354 | 517 | 3,944 | 4.742747 | 0.203095 | 0.143556 | 0.110114 | 0.097879 | 0.603589 | 0.5677 | 0.484095 | 0.391109 | 0.317292 | 0.184339 | 0 | 0.021064 | 0.26572 | 3,944 | 146 | 152 | 27.013699 | 0.825622 | 0.492394 | 0 | 0.386364 | 0 | 0 | 0.004954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.409091 | false | 0.386364 | 0.113636 | 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 |
2de965509a76653cd83132372114972b1cd72515 | 176 | py | Python | setup.py | JanPalasek/keras-deeplab-v3-plus | 08412628ff0c6317a4ca2b819bd1f09efa8fd7c1 | [
"MIT"
] | null | null | null | setup.py | JanPalasek/keras-deeplab-v3-plus | 08412628ff0c6317a4ca2b819bd1f09efa8fd7c1 | [
"MIT"
] | null | null | null | setup.py | JanPalasek/keras-deeplab-v3-plus | 08412628ff0c6317a4ca2b819bd1f09efa8fd7c1 | [
"MIT"
] | 1 | 2020-12-19T16:51:26.000Z | 2020-12-19T16:51:26.000Z | from setuptools import setup, find_packages
setup(
name="keras-deeplab-v3-plus",
version="1.0",
packages=["deeplab"],
install_requires=["tensorflow>2.0.0"]
)
| 17.6 | 43 | 0.670455 | 23 | 176 | 5.043478 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.164773 | 176 | 9 | 44 | 19.555556 | 0.748299 | 0 | 0 | 0 | 0 | 0 | 0.268571 | 0.12 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9317e47263974b84e97dd2938b1a4334499a4dd3 | 3,833 | py | Python | hls4ml/converters/keras/pooling.py | ngpaladi/hls4ml | 54861d0f611ee72f779a8f739b5fac571f3e79c2 | [
"Apache-2.0"
] | 1 | 2022-02-05T14:20:22.000Z | 2022-02-05T14:20:22.000Z | hls4ml/converters/keras/pooling.py | ngpaladi/hls4ml | 54861d0f611ee72f779a8f739b5fac571f3e79c2 | [
"Apache-2.0"
] | 1 | 2020-11-26T09:45:05.000Z | 2020-11-26T09:45:05.000Z | hls4ml/converters/keras/pooling.py | ngpaladi/hls4ml | 54861d0f611ee72f779a8f739b5fac571f3e79c2 | [
"Apache-2.0"
] | 2 | 2021-02-16T21:15:53.000Z | 2021-04-01T03:51:52.000Z | import math
from hls4ml.converters.keras_to_hls import parse_default_keras_layer
from hls4ml.converters.keras_to_hls import keras_handler
from hls4ml.converters.keras_to_hls import parse_data_format
from hls4ml.converters.keras_to_hls import compute_padding_1d
from hls4ml.converters.keras_to_hls import compute_padding_... | 37.578431 | 113 | 0.612053 | 456 | 3,833 | 4.802632 | 0.142544 | 0.077626 | 0.045662 | 0.060274 | 0.826941 | 0.808219 | 0.757078 | 0.656621 | 0.514155 | 0.468493 | 0 | 0.016019 | 0.234542 | 3,833 | 101 | 114 | 37.950495 | 0.730402 | 0 | 0 | 0.559524 | 0 | 0 | 0.227498 | 0.011479 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.02381 | false | 0 | 0.071429 | 0 | 0.119048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
931a8a55c2d7986f12a0672e2340c3578a610eef | 416 | py | Python | hostingde/dns/requests/create_new_zone.py | becelot/python-hostingde | 9af53747ccf418b97de6510f5c21627ab7bac77f | [
"MIT"
] | null | null | null | hostingde/dns/requests/create_new_zone.py | becelot/python-hostingde | 9af53747ccf418b97de6510f5c21627ab7bac77f | [
"MIT"
] | 6 | 2021-11-08T10:27:45.000Z | 2021-11-21T18:20:46.000Z | hostingde/dns/requests/create_new_zone.py | cancom/python-hostingde | 9af53747ccf418b97de6510f5c21627ab7bac77f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import List, Optional
from hostingde.model import Model
from hostingde.model.record import Record
from hostingde.model.zone_config import ZoneConfig
@dataclass
class CreateZoneRequest(Model):
zone_config: ZoneConfig
nameserver_set_id: Optional[str]
use... | 27.733333 | 55 | 0.810096 | 53 | 416 | 6.207547 | 0.471698 | 0.118541 | 0.164134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129808 | 416 | 14 | 56 | 29.714286 | 0.90884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.454545 | 0 | 0.909091 | 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 |
9376acac8c3c838866bef15c02cf88e3ba16b0d9 | 204 | py | Python | comandante/inner/__init__.py | stepan-anokhin/comandante | 9fa7da93ae91e4a3c1cde4ad34b4a78edca5aa16 | [
"MIT"
] | 2 | 2019-10-06T16:00:51.000Z | 2020-01-17T20:11:35.000Z | comandante/inner/__init__.py | stepan-anokhin/comandante | 9fa7da93ae91e4a3c1cde4ad34b4a78edca5aa16 | [
"MIT"
] | null | null | null | comandante/inner/__init__.py | stepan-anokhin/comandante | 9fa7da93ae91e4a3c1cde4ad34b4a78edca5aa16 | [
"MIT"
] | null | null | null | """Non public API of the comandante.
Description:
-----------
This package contains definitions that shouldn't
be used by outside users and that are considered
as a subject of change in the future.
"""
| 20.4 | 48 | 0.730392 | 31 | 204 | 4.806452 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 204 | 9 | 49 | 22.666667 | 0.876471 | 0.960784 | 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 |
937c5e332c9e499bcd807045723bd562135d8135 | 661 | py | Python | c6_8.py | JaneHQ1/Path-to-Python3-v2 | 2db608447c271b2e3231432ec5886366510ba8fe | [
"MIT"
] | null | null | null | c6_8.py | JaneHQ1/Path-to-Python3-v2 | 2db608447c271b2e3231432ec5886366510ba8fe | [
"MIT"
] | null | null | null | c6_8.py | JaneHQ1/Path-to-Python3-v2 | 2db608447c271b2e3231432ec5886366510ba8fe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 2 10:52:02 2019
@author: janej
"""
#a = [['apple','orange','banana','grape'],(1,2,3)]
#for x in a:
# for y in x:
# if y == 'orange':
# break
# print(y)
#else:
# print('No fruits')
#a = [1,2,3]
#for x in a:
# if x==2:
# break
# ... | 16.121951 | 50 | 0.520424 | 112 | 661 | 2.839286 | 0.491071 | 0.018868 | 0.028302 | 0.037736 | 0.062893 | 0.062893 | 0.062893 | 0 | 0 | 0 | 0 | 0.068898 | 0.231467 | 661 | 40 | 51 | 16.525 | 0.557087 | 0.800303 | 0 | 0 | 0 | 0 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
937ef4e883df1d2b437b647b55c0c50e33bcd651 | 546 | py | Python | service.py | vlzx/outlier | 4a8a30d7661472e18c9809c0e6f68f3e67389d93 | [
"MIT"
] | null | null | null | service.py | vlzx/outlier | 4a8a30d7661472e18c9809c0e6f68f3e67389d93 | [
"MIT"
] | null | null | null | service.py | vlzx/outlier | 4a8a30d7661472e18c9809c0e6f68f3e67389d93 | [
"MIT"
] | null | null | null | import win32event
import win32serviceutil
class Svc(win32serviceutil.ServiceFramework):
_svc_name_ = 'Outlier'
_svc_display_name_ = 'Outlier'
_svc_description_ = 'HTTP转SOCKS5代理 / GeoIP分流'
def __init__(self, args):
win32serviceutil.ServiceFramework.__init__(self, args)
self.... | 21.84 | 67 | 0.6337 | 55 | 546 | 5.945455 | 0.472727 | 0.195719 | 0.085627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032911 | 0.276557 | 546 | 24 | 68 | 22.75 | 0.794937 | 0 | 0 | 0.117647 | 0 | 0 | 0.070881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.117647 | 0.117647 | 0 | 0.647059 | 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 |
fa8789acac4db4b01825c0db2238fc9c0471d091 | 820 | py | Python | BAAlgorithmUtils/TireTreeUtilTest.py | BenArvin/BAAlgorithmUtils | 3af05cdaf70081e114ed1ca1713799cc0f6b861b | [
"MIT"
] | 7 | 2018-12-29T09:04:48.000Z | 2022-02-22T02:38:27.000Z | BAAlgorithmUtils/TireTreeUtilTest.py | BenArvin/BAAlgorithmUtils | 3af05cdaf70081e114ed1ca1713799cc0f6b861b | [
"MIT"
] | null | null | null | BAAlgorithmUtils/TireTreeUtilTest.py | BenArvin/BAAlgorithmUtils | 3af05cdaf70081e114ed1ca1713799cc0f6b861b | [
"MIT"
] | 2 | 2019-01-07T08:03:38.000Z | 2022-02-22T02:38:29.000Z | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import sys, os
sys.path.append('../')
from BAAlgorithmUtils.TireTreeUtil import TireTree
if __name__ == '__main__':
treeInstance = TireTree()
treeInstance.train('aababbaba')
treeInstance.train('aababba')
treeInstance.train('aababbabab')
treeInstance.train... | 32.8 | 65 | 0.658537 | 85 | 820 | 6.258824 | 0.364706 | 0.225564 | 0.300752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001425 | 0.143902 | 820 | 24 | 66 | 34.166667 | 0.75641 | 0.046341 | 0 | 0 | 0 | 0 | 0.194872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.444444 | 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 | 0 | 1 | 0 | 3 |
fa9304845f567ee10f86236cbe1b3c6ce9949f3e | 387 | py | Python | ingester/tendermint/__init__.py | shapeshift-legacy/watchtower | c9cd5150f8549145f7de9b1ea820d548959350fe | [
"MIT"
] | null | null | null | ingester/tendermint/__init__.py | shapeshift-legacy/watchtower | c9cd5150f8549145f7de9b1ea820d548959350fe | [
"MIT"
] | null | null | null | ingester/tendermint/__init__.py | shapeshift-legacy/watchtower | c9cd5150f8549145f7de9b1ea820d548959350fe | [
"MIT"
] | null | null | null | from .tendermint_block_ingester import TendermintBlockIngester
from common.utils.networks import ATOM, RUNE, SCRT, KAVA, OSMO
atom_block_ingester = TendermintBlockIngester(ATOM)
rune_block_ingester = TendermintBlockIngester(RUNE)
scrt_block_ingester = TendermintBlockIngester(SCRT)
kava_block_ingester = TendermintBlock... | 43 | 62 | 0.870801 | 41 | 387 | 7.926829 | 0.341463 | 0.24 | 0.553846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072351 | 387 | 8 | 63 | 48.375 | 0.905292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
faa4762b36fc1f85fb19a375eab2d74cf64deeac | 1,782 | py | Python | players/CompetePlayer.py | MPTG94/AI-HW2 | 1ef8ae1dfade4a6c79e4de1775825c292216bc0b | [
"MIT"
] | null | null | null | players/CompetePlayer.py | MPTG94/AI-HW2 | 1ef8ae1dfade4a6c79e4de1775825c292216bc0b | [
"MIT"
] | null | null | null | players/CompetePlayer.py | MPTG94/AI-HW2 | 1ef8ae1dfade4a6c79e4de1775825c292216bc0b | [
"MIT"
] | null | null | null | """
Player for the competition
"""
from players.AbstractPlayer import AbstractPlayer
#TODO: you can import more modules, if needed
class Player(AbstractPlayer):
def __init__(self, game_time):
AbstractPlayer.__init__(self, game_time) # keep the inheritance of the parent's (AbstractPlayer) __init__()
... | 34.269231 | 115 | 0.647587 | 219 | 1,782 | 5.16895 | 0.406393 | 0.017668 | 0.031802 | 0.055654 | 0.272968 | 0.272968 | 0.230565 | 0.230565 | 0.230565 | 0.230565 | 0 | 0 | 0.269921 | 1,782 | 52 | 116 | 34.269231 | 0.8701 | 0.623457 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0.4 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
fab05a38ca5addb1f162f165d9ab3aaf813991fe | 523 | py | Python | framework/conditions.py | bigSAS/critical-usg-selenium-tests | 5b9b12448528d3c6a78c30889bfdfcfb72dbfa57 | [
"MIT"
] | null | null | null | framework/conditions.py | bigSAS/critical-usg-selenium-tests | 5b9b12448528d3c6a78c30889bfdfcfb72dbfa57 | [
"MIT"
] | null | null | null | framework/conditions.py | bigSAS/critical-usg-selenium-tests | 5b9b12448528d3c6a78c30889bfdfcfb72dbfa57 | [
"MIT"
] | null | null | null | from selenium.webdriver.remote.webdriver import WebDriver
class XpathExists:
""" Sprawdz czy xpath istnieje """
def __init__(self, xpath: str):
self.__xpath = xpath
# noinspection PyBroadException
def __call__(self, driver: WebDriver):
try:
driver.find_element_by_xpath(sel... | 23.772727 | 57 | 0.630975 | 55 | 523 | 5.472727 | 0.527273 | 0.119601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279159 | 523 | 21 | 58 | 24.904762 | 0.798408 | 0.110899 | 0 | 0 | 0 | 0 | 0.063319 | 0.063319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fac03950e64a991a4b4d082e1093027a2046be14 | 263 | py | Python | locations/admin.py | Rafiatu/mozio | 7521587266bd93a3a2b759a2968a6d51c9837745 | [
"MIT"
] | null | null | null | locations/admin.py | Rafiatu/mozio | 7521587266bd93a3a2b759a2968a6d51c9837745 | [
"MIT"
] | null | null | null | locations/admin.py | Rafiatu/mozio | 7521587266bd93a3a2b759a2968a6d51c9837745 | [
"MIT"
] | null | null | null | from django.contrib import admin
from locations.models import *
from rest_framework.authtoken.models import Token
# Register your models here.
admin.site.register(Provider)
admin.site.register(Coordinate)
admin.site.register(Polygon)
admin.site.register(Token)
| 23.909091 | 49 | 0.825095 | 36 | 263 | 6 | 0.5 | 0.166667 | 0.314815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087452 | 263 | 10 | 50 | 26.3 | 0.9 | 0.098859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 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 |
fac70dc02243f3f20bee9b6a12d4b011f4d56560 | 380 | py | Python | main.py | Infinite-Blue-1042/V-Cart | 97ef428d69135c4767fb03a2d28cc75e5386fe8e | [
"Apache-2.0"
] | 1 | 2021-05-14T18:51:01.000Z | 2021-05-14T18:51:01.000Z | main.py | Infinite-Blue-1042/V-Chat | 97ef428d69135c4767fb03a2d28cc75e5386fe8e | [
"Apache-2.0"
] | null | null | null | main.py | Infinite-Blue-1042/V-Chat | 97ef428d69135c4767fb03a2d28cc75e5386fe8e | [
"Apache-2.0"
] | null | null | null | from flask import Flask, render_template, request
from random import choice
web_site = Flask(__name__)
@web_site.route('/')
def login():
return render_template('login.html')
@web_site.route('/')
def main():
return render_template('index.html')
@staticmethod
def insert_record(doc):
Database.DB.Database.insert_... | 20 | 50 | 0.739474 | 57 | 380 | 4.684211 | 0.561404 | 0.104869 | 0.089888 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.105263 | 380 | 18 | 51 | 21.111111 | 0.761765 | 0 | 0 | 0.153846 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.153846 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fafedddd5c3c0602dd8c5df444236e7abcacea27 | 413 | py | Python | pyaz/ad/signed_in_user/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/ad/signed_in_user/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/ad/signed_in_user/__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 show():
return _call_az("az ad signed-in-user show", locals())
def list_owned_objects(type=None):
'''
Get the list of directory objects that are owned by the user
Optional Parameters:
- type -- object type filter, e.g. "application", "servicePrincipal" "g... | 25.8125 | 86 | 0.677966 | 60 | 413 | 4.516667 | 0.6 | 0.066421 | 0.088561 | 0.103321 | 0.206642 | 0.206642 | 0.206642 | 0.206642 | 0 | 0 | 0 | 0 | 0.198547 | 413 | 15 | 87 | 27.533333 | 0.818731 | 0.399516 | 0 | 0 | 0 | 0 | 0.286996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.2 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
4f098595c2229711a9301587c723bad15b22eaac | 191 | py | Python | idiaptts/src/data_preparation/convert_to_npz.py | idiap/IdiapTTS | 60413d6847508e269d44aa41885e668db7dfd440 | [
"MIT"
] | 16 | 2019-05-27T09:20:40.000Z | 2022-01-27T23:24:26.000Z | idiaptts/src/data_preparation/convert_to_npz.py | idiap/IdiapTTS | 60413d6847508e269d44aa41885e668db7dfd440 | [
"MIT"
] | 1 | 2019-07-02T09:53:14.000Z | 2019-08-06T14:37:56.000Z | idiaptts/src/data_preparation/convert_to_npz.py | idiap/IdiapTTS | 60413d6847508e269d44aa41885e668db7dfd440 | [
"MIT"
] | 5 | 2019-06-01T18:32:12.000Z | 2021-08-03T23:14:56.000Z | from genericpath import isfile
import os
for file in os.path.listdir(os.curdir):
if not isfile(file) or file.endswith(".npz"):
print("Skipping {}".format(file))
continue
| 23.875 | 49 | 0.670157 | 27 | 191 | 4.740741 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204188 | 191 | 7 | 50 | 27.285714 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.078534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
87b5414dff51729cf47740e0a377ad303b1e625e | 639 | py | Python | test/test_exc.py | CaselIT/falcon-auth2 | 85bd5ec28a50b5ff74c21dad5324b4ee9f9b1046 | [
"Apache-2.0"
] | 9 | 2020-07-26T10:29:49.000Z | 2022-02-02T07:05:27.000Z | test/test_exc.py | CaselIT/falcon-auth2 | 85bd5ec28a50b5ff74c21dad5324b4ee9f9b1046 | [
"Apache-2.0"
] | 4 | 2020-07-12T21:35:16.000Z | 2021-12-08T17:10:44.000Z | test/test_exc.py | CaselIT/falcon-auth2 | 85bd5ec28a50b5ff74c21dad5324b4ee9f9b1046 | [
"Apache-2.0"
] | null | null | null | from falcon import HTTPUnauthorized
from falcon_auth2.exc import AuthenticationFailure
from falcon_auth2.exc import BackendNotApplicable
from falcon_auth2.exc import UserNotFound
def test_exc():
assert issubclass(AuthenticationFailure, HTTPUnauthorized)
assert issubclass(BackendNotApplicable, HTTPUnauthorize... | 39.9375 | 86 | 0.838811 | 55 | 639 | 9.672727 | 0.254545 | 0.075188 | 0.084586 | 0.101504 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005272 | 0.109546 | 639 | 15 | 87 | 42.6 | 0.929701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.545455 | 1 | 0.090909 | true | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
87bcf9fc86317e0e65695ed2d948ad4b6147ce64 | 23 | py | Python | finetuned/parameters.py | vineeths96/Video-Interpolation-using-Deep-Optical-Flow | 5dd536bcc2d6c0d0d1718dccb09eb71ca77d2d94 | [
"MIT"
] | 5 | 2021-04-17T15:26:29.000Z | 2021-10-11T13:17:56.000Z | finetuned/parameters.py | vineeths96/Video-Interpolation-using-Deep-Optical-Flow | 5dd536bcc2d6c0d0d1718dccb09eb71ca77d2d94 | [
"MIT"
] | null | null | null | finetuned/parameters.py | vineeths96/Video-Interpolation-using-Deep-Optical-Flow | 5dd536bcc2d6c0d0d1718dccb09eb71ca77d2d94 | [
"MIT"
] | 2 | 2021-11-28T06:40:23.000Z | 2022-01-17T12:20:21.000Z | LR = 1e-4
NUM_ITER = 1
| 7.666667 | 12 | 0.608696 | 6 | 23 | 2.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0.26087 | 23 | 2 | 13 | 11.5 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
87fa540704125ccf41b453c0f01a5c4e8b5ff46f | 577 | py | Python | analysis_files/etaloop.py | mcmorre/placerg | 743e89ff5fe7e9466ef65efe46fb60867272979e | [
"MIT"
] | 3 | 2021-05-03T02:37:46.000Z | 2022-02-10T21:20:16.000Z | analysis_files/etaloop.py | mcmorre/placerg | 743e89ff5fe7e9466ef65efe46fb60867272979e | [
"MIT"
] | null | null | null | analysis_files/etaloop.py | mcmorre/placerg | 743e89ff5fe7e9466ef65efe46fb60867272979e | [
"MIT"
] | 3 | 2021-03-23T13:15:40.000Z | 2021-11-12T04:00:14.000Z | # import stuff
from placerg.funcs import *
from placerg.funcsrg import *
from placerg.funcsall import *
from placerg.objects import *
from placerg.funcsboot import *
from placerg.runfunc import *
name_all='variables/loop_stim10e-16.0etvaryph1.0p1.0t0.1plNonebp0.5.pkl'
name_sum='variables/sum_stim10e-16.0etvaryph1.0p1.... | 33.941176 | 82 | 0.797227 | 90 | 577 | 5.022222 | 0.4 | 0.146018 | 0.188053 | 0.150442 | 0.327434 | 0.327434 | 0.327434 | 0.327434 | 0.154867 | 0 | 0 | 0.097015 | 0.071057 | 577 | 16 | 83 | 36.0625 | 0.746269 | 0.020797 | 0 | 0 | 0 | 0.166667 | 0.476868 | 0.47153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e2174b76e2beaa6cd506638fa271d98b9cfc133c | 9,422 | py | Python | pybindings/quizx/graph.py | RVilmart/quizx | 34078bdfe1a085a9b4e632bc3e39b2e960676b0e | [
"Apache-2.0"
] | 13 | 2021-01-16T09:00:00.000Z | 2022-02-03T02:13:51.000Z | pybindings/quizx/graph.py | RVilmart/quizx | 34078bdfe1a085a9b4e632bc3e39b2e960676b0e | [
"Apache-2.0"
] | null | null | null | pybindings/quizx/graph.py | RVilmart/quizx | 34078bdfe1a085a9b4e632bc3e39b2e960676b0e | [
"Apache-2.0"
] | 5 | 2021-02-06T13:31:50.000Z | 2022-02-21T12:10:45.000Z | # PyZX - Python library for quantum circuit rewriting
# and optimization using the ZX-calculus
# Copyright (C) 2018 - Aleks Kissinger and John van de Wetering
# 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 co... | 31.723906 | 118 | 0.579813 | 1,298 | 9,422 | 4.083975 | 0.196456 | 0.046218 | 0.031126 | 0.013205 | 0.300698 | 0.209772 | 0.153179 | 0.126391 | 0.103377 | 0.077721 | 0 | 0.00916 | 0.316387 | 9,422 | 296 | 119 | 31.831081 | 0.813849 | 0.288898 | 0 | 0.233333 | 0 | 0 | 0.001359 | 0 | 0 | 0 | 0 | 0.003378 | 0 | 1 | 0.311111 | false | 0 | 0.027778 | 0.138889 | 0.544444 | 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 |
3567b7ff40fb49d00ceea28f0d764ae2cb5efd3e | 448 | py | Python | sports_book_manager/tests/test_mp_outputs.py | rafrisci/sports_book_manager | aa552bd80625754ccc6702eb68694a6e4bb1f158 | [
"MIT"
] | 1 | 2022-03-14T07:18:19.000Z | 2022-03-14T07:18:19.000Z | sports_book_manager/tests/test_mp_outputs.py | rafrisci/sports_book_manager | aa552bd80625754ccc6702eb68694a6e4bb1f158 | [
"MIT"
] | 5 | 2022-03-31T23:42:18.000Z | 2022-03-31T23:56:42.000Z | sports_book_manager/tests/test_mp_outputs.py | rafrisci/sports-book-manager | aa552bd80625754ccc6702eb68694a6e4bb1f158 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sports_book_manager.model_probability as mp
import unittest
class TestMP(unittest.TestCase):
"""
Tests valid inputs for model_probability return results.
"""
def test_valid_tests(self):
"""
Tests to make sure outputs are occuring with valid inputs.
... | 28 | 66 | 0.671875 | 62 | 448 | 4.725806 | 0.629032 | 0.21843 | 0.109215 | 0.143345 | 0.21843 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.216518 | 448 | 15 | 67 | 29.866667 | 0.797721 | 0.305804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
356aa420c14315c876b2101895f7c7202631cc2f | 919 | py | Python | src/retrieval_core/models/utils.py | RImbriaco/OML | 4998cdebc3ac553ccd53b4caacf24d8c3d8fc07b | [
"MIT"
] | 2 | 2021-09-08T12:33:05.000Z | 2021-09-14T09:40:43.000Z | src/retrieval_core/models/utils.py | RImbriaco/OML | 4998cdebc3ac553ccd53b4caacf24d8c3d8fc07b | [
"MIT"
] | null | null | null | src/retrieval_core/models/utils.py | RImbriaco/OML | 4998cdebc3ac553ccd53b4caacf24d8c3d8fc07b | [
"MIT"
] | 1 | 2021-09-08T12:35:10.000Z | 2021-09-08T12:35:10.000Z | import torch
from torch.nn import ReLU
def l2n(x, eps=1e-6):
return x / (torch.norm(x, p=2, dim=1, keepdim=True) + eps).expand_as(x)
def powerlaw(x, eps=1e-6):
x = x + eps
return x.abs().sqrt().mul(x.sign())
def alexnet(net):
return list(net.features.children())[:-1]
def vggnet(net):
return ... | 17.339623 | 75 | 0.609358 | 137 | 919 | 4.072993 | 0.394161 | 0.062724 | 0.09319 | 0.114695 | 0.18638 | 0.18638 | 0.129032 | 0.129032 | 0 | 0 | 0 | 0.019471 | 0.217628 | 919 | 52 | 76 | 17.673077 | 0.756606 | 0.092492 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.208333 | 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 |
356d081f3b4c6ded845522fb389f2ae9b5f46b0f | 113 | py | Python | Seq2Seq/char_rank/helpers.py | STHSF/DeepNaturallanguageprocessing | 1fe79a961abf3e55fb3ce2b0266b26f56ade2483 | [
"Apache-2.0"
] | 15 | 2016-09-13T05:41:53.000Z | 2019-12-30T13:01:33.000Z | Seq2Seq/char_rank/helpers.py | STHSF/DeepNaturallanguageprocessing | 1fe79a961abf3e55fb3ce2b0266b26f56ade2483 | [
"Apache-2.0"
] | 20 | 2020-01-28T21:42:25.000Z | 2022-02-10T00:44:02.000Z | Seq2Seq/char_rank/helpers.py | STHSF/DeepNaturallanguageprocessing | 1fe79a961abf3e55fb3ce2b0266b26f56ade2483 | [
"Apache-2.0"
] | 10 | 2016-09-28T02:56:11.000Z | 2022-03-12T16:41:20.000Z | # coding=utf-8
file_path = './data/letters_source.txt'
with open(file_path) as f:
source_data = f.read()
| 12.555556 | 39 | 0.672566 | 19 | 113 | 3.789474 | 0.736842 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.176991 | 113 | 8 | 40 | 14.125 | 0.763441 | 0.106195 | 0 | 0 | 0 | 0 | 0.257732 | 0.257732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
357173ca6c60236c764169445b6f0b43f7dc2692 | 132 | py | Python | pasedelista/materias/urls.py | ElForaneo/Pase-de-lsita | 91b3329aedfd85be9f9c28491a5638a698ee4f5e | [
"Apache-2.0"
] | null | null | null | pasedelista/materias/urls.py | ElForaneo/Pase-de-lsita | 91b3329aedfd85be9f9c28491a5638a698ee4f5e | [
"Apache-2.0"
] | null | null | null | pasedelista/materias/urls.py | ElForaneo/Pase-de-lsita | 91b3329aedfd85be9f9c28491a5638a698ee4f5e | [
"Apache-2.0"
] | null | null | null | #index urls.py
from django.urls import path
from .views import *
urlpatterns= [
path('',materias.as_view(), name="materias")
] | 16.5 | 48 | 0.69697 | 18 | 132 | 5.055556 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 132 | 8 | 49 | 16.5 | 0.8125 | 0.098485 | 0 | 0 | 0 | 0 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3581b898487bbdb28cdaf2ac8451947d8498bdfc | 5,106 | py | Python | lab_exercise_06/lab_exercise_06.py | DSWhite96/SI506-2021Fall | cae7f72c91318edfcf6e48c83d4aac8b901cab52 | [
"BSD-3-Clause"
] | null | null | null | lab_exercise_06/lab_exercise_06.py | DSWhite96/SI506-2021Fall | cae7f72c91318edfcf6e48c83d4aac8b901cab52 | [
"BSD-3-Clause"
] | null | null | null | lab_exercise_06/lab_exercise_06.py | DSWhite96/SI506-2021Fall | cae7f72c91318edfcf6e48c83d4aac8b901cab52 | [
"BSD-3-Clause"
] | null | null | null | # START LAB EXERCISE 06
print('Lab Exercise 06 \n')
import csv
# PROBLEM 1 (4 Points)
def read_csv(filepath, encoding='utf-8', newline='', delimiter=','):
"""
Reads a CSV file, parsing row values per the provided delimiter. Returns a list
of lists, wherein each nested list represents a single row from th... | 30.392857 | 133 | 0.663337 | 708 | 5,106 | 4.725989 | 0.288136 | 0.021518 | 0.0263 | 0.026898 | 0.151524 | 0.127017 | 0.087268 | 0.087268 | 0.087268 | 0.087268 | 0 | 0.006584 | 0.256365 | 5,106 | 168 | 134 | 30.392857 | 0.874638 | 0.741285 | 0 | 0.16129 | 0 | 0 | 0.073194 | 0 | 0 | 0 | 0 | 0.029762 | 0 | 1 | 0.225806 | false | 0.16129 | 0.032258 | 0 | 0.290323 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
358a28bba8b8da1370d91528b7020952bf36502b | 397 | py | Python | micro-benchmark/exceptions_test.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 121 | 2020-12-16T20:31:37.000Z | 2022-03-21T20:32:43.000Z | micro-benchmark/exceptions_test.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 24 | 2021-03-13T00:04:00.000Z | 2022-03-21T17:28:11.000Z | micro-benchmark/exceptions_test.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 19 | 2021-03-23T10:58:47.000Z | 2022-03-24T19:46:50.000Z |
import os
from base import TestBase
class ExceptionsTest(TestBase):
snippet_dir = "exceptions"
def test_raise(self):
self.validate_snippet(self.get_snippet_path("raise"))
def test_raise_attr(self):
self.validate_snippet(self.get_snippet_path("raise_attr"))
def test_raise_assigned(s... | 23.352941 | 70 | 0.735516 | 52 | 397 | 5.288462 | 0.365385 | 0.076364 | 0.130909 | 0.250909 | 0.501818 | 0.501818 | 0.501818 | 0.501818 | 0.501818 | 0 | 0 | 0 | 0.166247 | 397 | 16 | 71 | 24.8125 | 0.830816 | 0 | 0 | 0 | 0 | 0 | 0.098485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0 | 0.7 | 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 |
35bc47ad630dee4fbc9a72b9c265c7243a9fd519 | 448 | py | Python | codes_/0762_Prime_Number_of_Set_Bits_in_Binary_Representation.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0762_Prime_Number_of_Set_Bits_in_Binary_Representation.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/0762_Prime_Number_of_Set_Bits_in_Binary_Representation.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | # %% [762. Prime Number of Set Bits in Binary Representation](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)
# 問題:[L, R]の範囲で条件を満たす数字の個数を返せ。条件は2進数で1になる数が素数であること
# 解法:Rは1000_000以下であり、2進数で22ビット以下となり、素数は2, 3, 5, 7, 11, 13, 17, 19しかない
class Solution:
def countPrimeSetBits(self, L: int,... | 56 | 143 | 0.674107 | 72 | 448 | 4.180556 | 0.652778 | 0.07309 | 0.086379 | 0.106312 | 0.33887 | 0.33887 | 0.27907 | 0.27907 | 0 | 0 | 0 | 0.109626 | 0.165179 | 448 | 7 | 144 | 64 | 0.695187 | 0.575893 | 0 | 0 | 0 | 0 | 0.005376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
35dd6928394390e3c3e3d722a56f7063d3942954 | 1,781 | py | Python | manga_py/providers/readcomicbooksonline_org.py | paulolimac/manga-py | 3d180846750a4e770b5024eb8cd15629362875b1 | [
"MIT"
] | null | null | null | manga_py/providers/readcomicbooksonline_org.py | paulolimac/manga-py | 3d180846750a4e770b5024eb8cd15629362875b1 | [
"MIT"
] | null | null | null | manga_py/providers/readcomicbooksonline_org.py | paulolimac/manga-py | 3d180846750a4e770b5024eb8cd15629362875b1 | [
"MIT"
] | null | null | null | from manga_py.provider import Provider
from .helpers.std import Std
class ReadComicBooksOnlineOrg(Provider, Std):
_name_re = r'\.(?:org|net)/(?:reader/)?([^/]+)'
def get_chapter_index(self) -> str:
idx = self.re.search(r'/reader/[^/]+/[^/]+_(\d+(?:[\./]\d+)?)', self.chapter)
if not idx:
... | 32.981481 | 88 | 0.580573 | 231 | 1,781 | 4.290043 | 0.367965 | 0.042381 | 0.018163 | 0.030272 | 0.125126 | 0.125126 | 0.125126 | 0.125126 | 0.070636 | 0.070636 | 0 | 0.002943 | 0.236946 | 1,781 | 53 | 89 | 33.603774 | 0.726269 | 0.005053 | 0 | 0 | 0 | 0 | 0.140113 | 0.058192 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.230769 | false | 0.025641 | 0.051282 | 0.051282 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ea029c7224b881117d68f26f2fde90d4ed485e71 | 531 | py | Python | pypher/ocurs.py | MokkaCicc/pypher | efec8ccc9f9b9ee39f5efa910971b2d2aed1998a | [
"MIT"
] | null | null | null | pypher/ocurs.py | MokkaCicc/pypher | efec8ccc9f9b9ee39f5efa910971b2d2aed1998a | [
"MIT"
] | null | null | null | pypher/ocurs.py | MokkaCicc/pypher | efec8ccc9f9b9ee39f5efa910971b2d2aed1998a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
OCURS_FR = {
'E': 12.10,
'A': 7.11,
'I': 6.59,
'S': 6.51,
'N': 6.39,
'R': 6.07,
'T': 5.92,
'O': 5.02,
'L': 4.96,
'U': 4.49,
'D': 3.67,
'C': 3.18,
'M': 2.62,
'P': 2.49,
'G': 1.23,
'B': 1.14,
'V': 1.11,
'H': 1.11,
'F': 1.11,
'Q': 0.65,
'Y': 0.46,
'X': 0.38,
'J': 0.34,
'K': 0... | 13.973684 | 29 | 0.52354 | 114 | 531 | 2.324561 | 0.666667 | 0.362264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255269 | 0.195857 | 531 | 37 | 30 | 14.351351 | 0.36534 | 0.037665 | 0 | 0 | 0 | 0 | 0.05098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ea0704cf20ebf7511eb02276e6df79c4dafff26f | 137 | py | Python | market_blog/apps.py | AlexandreSeb97/AnGroDeto | f801fea2ac967a4a7ed2a610088d69a34e66e290 | [
"Apache-2.0"
] | null | null | null | market_blog/apps.py | AlexandreSeb97/AnGroDeto | f801fea2ac967a4a7ed2a610088d69a34e66e290 | [
"Apache-2.0"
] | null | null | null | market_blog/apps.py | AlexandreSeb97/AnGroDeto | f801fea2ac967a4a7ed2a610088d69a34e66e290 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class MarketBlogConfig(AppConfig):
name = 'market_blog'
| 17.125 | 39 | 0.80292 | 16 | 137 | 6.5 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145985 | 137 | 7 | 40 | 19.571429 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.080292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ea15c3209861597eeabcc00a287eac4fffe205ae | 646 | py | Python | m2cgen/interpreters/javascript/code_generator.py | Symmetry-International/m2cgen | 3157e0cbd5bd1ee7e044a992223c60224e2b7709 | [
"MIT"
] | null | null | null | m2cgen/interpreters/javascript/code_generator.py | Symmetry-International/m2cgen | 3157e0cbd5bd1ee7e044a992223c60224e2b7709 | [
"MIT"
] | null | null | null | m2cgen/interpreters/javascript/code_generator.py | Symmetry-International/m2cgen | 3157e0cbd5bd1ee7e044a992223c60224e2b7709 | [
"MIT"
] | null | null | null | from contextlib import contextmanager
from m2cgen.interpreters.code_generator import CLikeCodeGenerator
class JavascriptCodeGenerator(CLikeCodeGenerator):
def add_function_def(self, name, args):
function_def = f"function {name}({', '.join(args)}) {{"
self.add_code_line(function_def)
self... | 26.916667 | 65 | 0.688854 | 74 | 646 | 5.756757 | 0.472973 | 0.103286 | 0.065728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001949 | 0.205882 | 646 | 23 | 66 | 28.086957 | 0.82846 | 0 | 0 | 0 | 0 | 0 | 0.094427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ea28963358c15a81a9a8eecd17e1607a82a046d7 | 338 | py | Python | fei_webscraper/dressure/__init__.py | rsokolewicz/fei_webscraper | 21cffe6f574c679d8058b595942ef9877bde9027 | [
"MIT"
] | null | null | null | fei_webscraper/dressure/__init__.py | rsokolewicz/fei_webscraper | 21cffe6f574c679d8058b595942ef9877bde9027 | [
"MIT"
] | null | null | null | fei_webscraper/dressure/__init__.py | rsokolewicz/fei_webscraper | 21cffe6f574c679d8058b595942ef9877bde9027 | [
"MIT"
] | null | null | null | import sqlite3
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from bs4 import BeautifulSoup
import requests
from pandas import ExcelWriter
#from selenium.webdriver.common.by import By
#import time
import pandas as pd
import datetime
import numpy as np
import time
import re
from ... | 21.125 | 53 | 0.83432 | 49 | 338 | 5.755102 | 0.44898 | 0.12766 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.136095 | 338 | 16 | 54 | 21.125 | 0.958904 | 0.159763 | 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 |
ea4a432ead2f55ecb5da3e7b43053cebb4959293 | 697 | py | Python | leaf_focus/run.py | cofiem/leaf-focus | fdab4f30b985ab2adc3a413390e028e9a9325bac | [
"MIT"
] | null | null | null | leaf_focus/run.py | cofiem/leaf-focus | fdab4f30b985ab2adc3a413390e028e9a9325bac | [
"MIT"
] | 2 | 2022-02-09T23:46:31.000Z | 2022-03-03T22:00:53.000Z | leaf_focus/run.py | cofiem/leaf-focus | fdab4f30b985ab2adc3a413390e028e9a9325bac | [
"MIT"
] | null | null | null | import click
from leaf_focus.download.command import download
from leaf_focus.ocr.command import ocr
from leaf_focus.pdf.command import pdf
from leaf_focus.pipeline.command import pipeline_visualise
from leaf_focus.report.command import report
from leaf_focus.support.log_config import configure_leaf_focus_logging
@c... | 23.233333 | 70 | 0.794835 | 103 | 697 | 5.097087 | 0.378641 | 0.137143 | 0.148571 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126255 | 697 | 29 | 71 | 24.034483 | 0.862069 | 0.142037 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | true | 0.052632 | 0.368421 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
ea4ca699796495f63262879afbe328e5b3aa26da | 655 | py | Python | experiments/localization/pipeline.py | imelekhov/HNDesc | 47680371c0758518a66d5a12f29dc9ded6ae790d | [
"MIT"
] | 14 | 2021-12-31T12:54:50.000Z | 2022-01-30T03:28:59.000Z | experiments/localization/pipeline.py | imelekhov/HNDesc | 47680371c0758518a66d5a12f29dc9ded6ae790d | [
"MIT"
] | null | null | null | experiments/localization/pipeline.py | imelekhov/HNDesc | 47680371c0758518a66d5a12f29dc9ded6ae790d | [
"MIT"
] | 1 | 2022-01-04T05:44:53.000Z | 2022-01-04T05:44:53.000Z | import os
from os import path as osp
import shutil
from experiments.service.benchmark_base import Benchmark
from experiments.service.localizers_factory import LocalizersFactory
class VisualLocBenchmark(Benchmark):
def __init__(self, cfg):
super().__init__(cfg)
output_localization_dir = self.cfg.t... | 29.772727 | 78 | 0.741985 | 77 | 655 | 6.025974 | 0.480519 | 0.155172 | 0.181034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184733 | 655 | 21 | 79 | 31.190476 | 0.868914 | 0.024427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ea50b9bee4e067aee85fec87b06104a8ef21cf66 | 314 | py | Python | FlaskMedia/forms.py | samcheck/PyMedia | f9504fd885d91d58078eded89b755b5e9f5696bf | [
"MIT"
] | 1 | 2019-12-08T05:25:08.000Z | 2019-12-08T05:25:08.000Z | FlaskMedia/forms.py | samcheck/PyMedia | f9504fd885d91d58078eded89b755b5e9f5696bf | [
"MIT"
] | null | null | null | FlaskMedia/forms.py | samcheck/PyMedia | f9504fd885d91d58078eded89b755b5e9f5696bf | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm as Form
from wtforms import StringField, BooleanField, TextAreaField
from wtforms.validators import DataRequired, Length
class EditMovieForm(Form):
title = StringField('title', validators=[DataRequired()])
plot = TextAreaField('plot', validators=[Length(min=0, max=2047)])
| 39.25 | 70 | 0.780255 | 36 | 314 | 6.777778 | 0.611111 | 0.090164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018051 | 0.117834 | 314 | 7 | 71 | 44.857143 | 0.862816 | 0 | 0 | 0 | 0 | 0 | 0.028662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
ea7fd3a4aec136f41a41ebcbc90efe514752dde6 | 98 | py | Python | firetail/utils/enums.py | evidex/Firetail | 408211db92af0a2d57ae856657e3b6d8b7efe835 | [
"MIT"
] | 29 | 2017-11-22T21:56:51.000Z | 2021-09-20T13:08:05.000Z | firetail/utils/enums.py | evidex/Firetail | 408211db92af0a2d57ae856657e3b6d8b7efe835 | [
"MIT"
] | 43 | 2017-11-22T10:57:32.000Z | 2022-03-08T07:20:36.000Z | firetail/utils/enums.py | evidex/Firetail | 408211db92af0a2d57ae856657e3b6d8b7efe835 | [
"MIT"
] | 25 | 2017-12-13T22:14:37.000Z | 2021-08-12T03:58:53.000Z | from enum import Enum
class ExitCodes(Enum):
SHUTDOWN = 0
CRITICAL = 1
RESTART = 26
| 12.25 | 22 | 0.642857 | 13 | 98 | 4.846154 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0.295918 | 98 | 7 | 23 | 14 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ea85a9c3d17835a0d8a759b79702f87dd37ec960 | 116 | py | Python | demo_multiple_classes/techprog_nbgrader_config.py | Lapin-Blanc/jupyterhub-nbgrader | ee0d8d8d76271cf1d0dae57b62d4859900a4a090 | [
"BSD-3-Clause"
] | 1 | 2020-05-12T03:03:29.000Z | 2020-05-12T03:03:29.000Z | demo_multiple_classes/techprog_nbgrader_config.py | Lapin-Blanc/jupyterhub-nbgrader | ee0d8d8d76271cf1d0dae57b62d4859900a4a090 | [
"BSD-3-Clause"
] | null | null | null | demo_multiple_classes/techprog_nbgrader_config.py | Lapin-Blanc/jupyterhub-nbgrader | ee0d8d8d76271cf1d0dae57b62d4859900a4a090 | [
"BSD-3-Clause"
] | null | null | null | c = get_config()
c.CourseDirectory.root = '/home/grader-techprog/techprog'
c.CourseDirectory.course_id = "techprog"
| 29 | 57 | 0.775862 | 15 | 116 | 5.866667 | 0.666667 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077586 | 116 | 3 | 58 | 38.666667 | 0.82243 | 0 | 0 | 0 | 0 | 0 | 0.327586 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eaa2004c7c70b4df8f90c11370d4d9e7b87220fd | 67,807 | py | Python | geomdl/operations.py | Maik93/NURBS-Python | 44d87a972c694371462378672429f2acc24249b2 | [
"MIT"
] | null | null | null | geomdl/operations.py | Maik93/NURBS-Python | 44d87a972c694371462378672429f2acc24249b2 | [
"MIT"
] | null | null | null | geomdl/operations.py | Maik93/NURBS-Python | 44d87a972c694371462378672429f2acc24249b2 | [
"MIT"
] | null | null | null | """
.. module:: operations
:platform: Unix, Windows
:synopsis: Provides geometric operations for spline geometry classes
.. moduleauthor:: Onur Rauf Bingol <orbingol@gmail.com>
"""
import math
import copy
import warnings
from . import abstract, helpers, linalg, compatibility
from . import _operations as ops
... | 39.583771 | 152 | 0.617326 | 9,191 | 67,807 | 4.406158 | 0.051137 | 0.043707 | 0.052201 | 0.024817 | 0.771884 | 0.742277 | 0.71067 | 0.677927 | 0.636936 | 0.609774 | 0 | 0.01456 | 0.288952 | 67,807 | 1,712 | 153 | 39.606893 | 0.825383 | 0.29404 | 0 | 0.562426 | 0 | 0 | 0.053577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032105 | false | 0.002378 | 0.008323 | 0 | 0.083234 | 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 |
576a41932cb5590be05e62b586e862113f8d598d | 438 | py | Python | neural_net/necessities/serialization.py | mariusbrataas/pistachio | 7e0fbba04aa8b5d61e304384898be69a66cc0d15 | [
"MIT"
] | 2 | 2019-04-27T09:32:43.000Z | 2021-04-06T17:53:28.000Z | neural_net/necessities/serialization.py | mariusbrataas/pistachio | 7e0fbba04aa8b5d61e304384898be69a66cc0d15 | [
"MIT"
] | null | null | null | neural_net/necessities/serialization.py | mariusbrataas/pistachio | 7e0fbba04aa8b5d61e304384898be69a66cc0d15 | [
"MIT"
] | null | null | null | # tools.py
'''
Helpers for serialization.
'''
# Things to fix
'''
'''
# Importing dependencies
import numpy as np
# Code
def array2json(data, lib={}):
lib['shape'] = np.shape(data)
#print('np2json_array shape: ' + str(lib['shape']))
lib['array'] = [float(element) for element in np.reshape(data, (np.produ... | 20.857143 | 97 | 0.639269 | 60 | 438 | 4.65 | 0.533333 | 0.114695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010899 | 0.1621 | 438 | 20 | 98 | 21.9 | 0.749319 | 0.292237 | 0 | 0 | 0 | 0 | 0.085911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5794157776a59bb6ed38257b54ff996265a21c09 | 1,885 | py | Python | Stream-3/Full-Stack-Development/21.Django REST Framework/5.Security-And-Documentation/django-todo/accounts/views.py | GunnerJnr/_CodeInstitute | efba0984a3dc71558eef97724c85e274a712798c | [
"MIT"
] | 4 | 2017-10-10T14:00:40.000Z | 2021-01-27T14:08:26.000Z | Stream-3/Full-Stack-Development/21.Django REST Framework/4.User-Authentication/django_todo/accounts/views.py | GunnerJnr/_CodeInstitute | efba0984a3dc71558eef97724c85e274a712798c | [
"MIT"
] | 115 | 2019-10-24T11:18:33.000Z | 2022-03-11T23:15:42.000Z | accounts/views.py | GunnerJnr/django-todo | 29a04a7939630bc07891e1a5f3b2479c70c1b185 | [
"MIT"
] | 5 | 2017-09-22T21:42:39.000Z | 2020-02-07T02:18:11.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import User
from rest_framework.response import Response
from rest_framework import status
from rest_framework.views import APIView
from accounts.serializers import UserSerializer
# Create your views here.
class UserView(A... | 37.7 | 74 | 0.650928 | 237 | 1,885 | 5.105485 | 0.413502 | 0.034711 | 0.042149 | 0.021488 | 0.028099 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009566 | 0.279045 | 1,885 | 49 | 75 | 38.469388 | 0.880795 | 0.464191 | 0 | 0 | 0 | 0 | 0.01726 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.052632 | false | 0.052632 | 0.315789 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
57e3bff9314e0b4709b2a889d885fa1f8da0ae4b | 202,377 | py | Python | data_preprocessing/regridding/ReGrid.py | LM-UGent/SPeDE | 22c95f42779862c01808e9261a0eaba8dc12dc2b | [
"MIT"
] | 1 | 2022-02-01T16:57:23.000Z | 2022-02-01T16:57:23.000Z | data_preprocessing/regridding/ReGrid.py | LM-UGent/SPeDE | 22c95f42779862c01808e9261a0eaba8dc12dc2b | [
"MIT"
] | 1 | 2021-03-25T22:37:15.000Z | 2021-03-25T22:37:15.000Z | data_preprocessing/regridding/ReGrid.py | LM-UGent/SPeDE | 22c95f42779862c01808e9261a0eaba8dc12dc2b | [
"MIT"
] | 2 | 2019-11-27T08:06:52.000Z | 2022-02-01T16:57:26.000Z | #!/usr/bin/env python3
# This script regrids raw MALDI-TOF MS files to a fixed grid based on average weights
from os import listdir, path
from os.path import isfile, join
import argparse
import numpy as np
import pandas as pd
import multiprocessing
from functools import partial
np_grid_mz = np.array([
... | 112.369239 | 121 | 0.649061 | 41,125 | 202,377 | 3.190249 | 0.411356 | 0.000457 | 0.000549 | 0.000419 | 0.002256 | 0.001296 | 0.000381 | 0 | 0 | 0 | 0 | 0.747737 | 0.148851 | 202,377 | 1,800 | 122 | 112.431667 | 0.013927 | 0.00333 | 0 | 0.001138 | 0 | 0 | 0.00072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002846 | false | 0 | 0.003984 | 0 | 0.008537 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57e3ca917dd02a50d4fcb611f59fc15a6ec17949 | 360 | py | Python | Exercicios11a20/ex018.py | ItamarHavenstein/Python | fe536302aea00a4a898e0f54f5b9fa6aba3301cb | [
"MIT"
] | null | null | null | Exercicios11a20/ex018.py | ItamarHavenstein/Python | fe536302aea00a4a898e0f54f5b9fa6aba3301cb | [
"MIT"
] | null | null | null | Exercicios11a20/ex018.py | ItamarHavenstein/Python | fe536302aea00a4a898e0f54f5b9fa6aba3301cb | [
"MIT"
] | null | null | null | import math
angulo = float(input('Digite o ângulo que você deseja: '))
radiano = math.radians(angulo)
print('O ângulo de {:.1f} tem o SENO de {:.2f}'.format(angulo, math.sin(radiano)))
print('O ângulo de {:.1f} tem o COSSENO de {:.2f}'.format(angulo, math.cos(radiano)))
print('O ângulo de {:.1f} tem a TANGENTE de {:... | 36 | 85 | 0.680556 | 60 | 360 | 4.083333 | 0.433333 | 0.114286 | 0.146939 | 0.171429 | 0.542857 | 0.297959 | 0.297959 | 0 | 0 | 0 | 0 | 0.019108 | 0.127778 | 360 | 9 | 86 | 40 | 0.761147 | 0 | 0 | 0 | 0 | 0 | 0.436111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.