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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ce12beaa333ad0e197911984802243f43b9951e | 975 | py | Python | src/coverage_test_helper.py | jmhodges/atheris | 6b9ddd1e24dbfca79fa296f3ade7303134adfc9a | [
"Apache-2.0"
] | 964 | 2020-11-17T04:38:21.000Z | 2022-03-31T17:41:38.000Z | src/coverage_test_helper.py | jmhodges/atheris | 6b9ddd1e24dbfca79fa296f3ade7303134adfc9a | [
"Apache-2.0"
] | 24 | 2020-11-30T17:39:11.000Z | 2022-03-28T13:12:32.000Z | src/coverage_test_helper.py | jmhodges/atheris | 6b9ddd1e24dbfca79fa296f3ade7303134adfc9a | [
"Apache-2.0"
] | 72 | 2020-11-18T08:48:14.000Z | 2022-03-31T16:42:42.000Z | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 20.744681 | 80 | 0.711795 | 166 | 975 | 4.10241 | 0.53012 | 0.088106 | 0.038179 | 0.04699 | 0.04699 | 0.04699 | 0.04699 | 0 | 0 | 0 | 0 | 0.016774 | 0.205128 | 975 | 46 | 81 | 21.195652 | 0.861935 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0 | 0 | 0.277778 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0cf0bd456ce0dc8d93d3d69419d1997981d831d3 | 277 | py | Python | ptm/__init__.py | Devyadav1994/python-topic-model | dd1299d68588212454b62f77fc4fbfcba4ef8e6c | [
"Apache-2.0"
] | 200 | 2015-03-05T23:00:57.000Z | 2018-03-12T09:24:12.000Z | ptm/__init__.py | Devyadav1994/python-topic-model | dd1299d68588212454b62f77fc4fbfcba4ef8e6c | [
"Apache-2.0"
] | 13 | 2016-01-10T13:36:00.000Z | 2017-12-19T08:40:00.000Z | ptm/__init__.py | Devyadav1994/python-topic-model | dd1299d68588212454b62f77fc4fbfcba4ef8e6c | [
"Apache-2.0"
] | 97 | 2015-01-14T07:18:19.000Z | 2018-03-06T20:03:45.000Z | from .lda_gibbs import GibbsLDA
from .lda_vb import vbLDA
from .slda_gibbs import GibbsSupervisedLDA
from .collabotm import CollaborativeTopicModel
from .rtm import RelationalTopicModel
from .diln import DILN
from .hmm_lda import HMM_LDA
from .at_model import AuthorTopicModel
| 30.777778 | 46 | 0.855596 | 38 | 277 | 6.078947 | 0.473684 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115523 | 277 | 8 | 47 | 34.625 | 0.942857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4900f036c3e2b163b7a49e28421e3fb22e15da76 | 27 | py | Python | aocr/__init__.py | java-abhinav07/formreader | 63aa695eb4b8547bc56c6f070dd8d1fadbdf29b1 | [
"RSA-MD"
] | null | null | null | aocr/__init__.py | java-abhinav07/formreader | 63aa695eb4b8547bc56c6f070dd8d1fadbdf29b1 | [
"RSA-MD"
] | null | null | null | aocr/__init__.py | java-abhinav07/formreader | 63aa695eb4b8547bc56c6f070dd8d1fadbdf29b1 | [
"RSA-MD"
] | null | null | null | __author__ = "abhinavjava"
| 13.5 | 26 | 0.777778 | 2 | 27 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0.407407 | 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 |
0b21218e79a142942de8b3cc6249f7cb02f7ac94 | 2,318 | py | Python | release/stubs.min/Autodesk/Revit/DB/__init___parts/Color.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/Color.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/Color.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class Color(APIObject, IDisposable):
"""
Represents a color in Autodesk Revit.
Color(red: Byte,green: Byte,blue: Byte)
"""
def Dispose(self):
""" Dispose(self: APIObject,A_0: bool) """
pass
def ReleaseManagedResources(self, *args):
""" ReleaseManagedResources(s... | 25.755556 | 221 | 0.628559 | 283 | 2,318 | 4.908127 | 0.229682 | 0.086393 | 0.043197 | 0.069114 | 0.480202 | 0.480202 | 0.445644 | 0.445644 | 0.445644 | 0.445644 | 0 | 0.007501 | 0.252373 | 2,318 | 89 | 222 | 26.044944 | 0.793999 | 0.250647 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0b332cf5b1efbdb0e9ea72d3811d5a2b1eced7dc | 261 | py | Python | forms.py | Hyper-glitch/face_palm_service | c23813badeea24ed11e74a368f8ce4204ce38dd1 | [
"Apache-2.0"
] | 2 | 2021-07-08T13:20:47.000Z | 2022-01-16T13:04:34.000Z | forms.py | Hyper-glitch/face_palm_service | c23813badeea24ed11e74a368f8ce4204ce38dd1 | [
"Apache-2.0"
] | null | null | null | forms.py | Hyper-glitch/face_palm_service | c23813badeea24ed11e74a368f8ce4204ce38dd1 | [
"Apache-2.0"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
class RegisterForm(FlaskForm):
name = StringField(label=('Username'), validators=[DataRequired()])
submit = SubmitField('Submit')
| 29 | 71 | 0.785441 | 27 | 261 | 7.555556 | 0.592593 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122605 | 261 | 8 | 72 | 32.625 | 0.89083 | 0 | 0 | 0 | 0 | 0 | 0.05364 | 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 |
0b3b73a4ff6e76481e89e705d439312042cb768c | 550 | py | Python | 0790/solution.py | yuyan1991/leetcode | eec7874b513318a27af7517663473c6d985edf70 | [
"MIT"
] | null | null | null | 0790/solution.py | yuyan1991/leetcode | eec7874b513318a27af7517663473c6d985edf70 | [
"MIT"
] | null | null | null | 0790/solution.py | yuyan1991/leetcode | eec7874b513318a27af7517663473c6d985edf70 | [
"MIT"
] | null | null | null | class Solution:
def numTilings(self, n: int) -> int:
mod = 1_000_000_000 + 7
f = [[0 for i in range(1 << 2)] for i in range(2)]
f[0][(1 << 2) - 1] = 1
o0 = 0
o1 = 1
for i in range(n):
f[o1][0] = f[o0][(1 << 2) - 1]
f[o1][1] = (f[o0][0] + f[o0][... | 36.666667 | 94 | 0.347273 | 100 | 550 | 1.88 | 0.21 | 0.159574 | 0.079787 | 0.175532 | 0.228723 | 0.132979 | 0 | 0 | 0 | 0 | 0 | 0.197531 | 0.410909 | 550 | 15 | 95 | 36.666667 | 0.382716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0b6cead90a9c4f4742b316f2eb5154b0c29e040a | 153 | py | Python | exercises/CursoemVideo/ex097.py | arthurguerra/cursoemvideo-python | 37f45ec25f422673fa9bbeee682e098f14d8ceab | [
"MIT"
] | null | null | null | exercises/CursoemVideo/ex097.py | arthurguerra/cursoemvideo-python | 37f45ec25f422673fa9bbeee682e098f14d8ceab | [
"MIT"
] | null | null | null | exercises/CursoemVideo/ex097.py | arthurguerra/cursoemvideo-python | 37f45ec25f422673fa9bbeee682e098f14d8ceab | [
"MIT"
] | null | null | null | def escreva(texto):
tam = len(texto) + 4
print('~' * tam)
print(f' {texto}')
print('~' * tam)
escreva(str(input('Digite um texto: '))) | 19.125 | 40 | 0.535948 | 20 | 153 | 4.1 | 0.6 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.24183 | 153 | 8 | 40 | 19.125 | 0.698276 | 0 | 0 | 0.333333 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
0b7a757bac6640d1aa2acc5b36ab3c7a6a87086a | 113 | py | Python | src/HackerRank/src/Miscellaneous/DamDesign/Python/solution.py | manastalukdar/Computer-Science_Self-Study | faaa4a24f7aea037343b2d2bb80f4d812ab7507c | [
"MIT"
] | 23 | 2020-11-22T07:37:07.000Z | 2022-03-23T17:23:44.000Z | src/HackerRank/src/Miscellaneous/DamDesign/Python/solution.py | manastalukdar/Computer-Science_Self-Study | faaa4a24f7aea037343b2d2bb80f4d812ab7507c | [
"MIT"
] | 40 | 2018-01-30T18:59:17.000Z | 2018-03-13T22:58:05.000Z | src/HackerRank/src/Miscellaneous/DamDesign/Python/solution.py | manastalukdar/Computer-Science_Self-Study | faaa4a24f7aea037343b2d2bb80f4d812ab7507c | [
"MIT"
] | 4 | 2020-10-19T01:14:15.000Z | 2022-03-23T20:25:36.000Z | class Solution:
def method(self):
def main():
solution = Solution()
if __name__ == '__main__':
main() | 14.125 | 26 | 0.628319 | 13 | 113 | 4.846154 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221239 | 113 | 8 | 27 | 14.125 | 0.715909 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0bba492db1387eaf8ec740083bc9981db1861738 | 935 | py | Python | App/app/migrations/0003_bbcream.py | GodCm/Cosmetics-Recommend | 88f4dbb4f5ed37d145728c40f289207836ecb12b | [
"Apache-2.0"
] | 1 | 2018-12-05T02:19:07.000Z | 2018-12-05T02:19:07.000Z | App/app/migrations/0003_bbcream.py | GodCm/Cosmetics-Recommend | 88f4dbb4f5ed37d145728c40f289207836ecb12b | [
"Apache-2.0"
] | null | null | null | App/app/migrations/0003_bbcream.py | GodCm/Cosmetics-Recommend | 88f4dbb4f5ed37d145728c40f289207836ecb12b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-12-09 08:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0002_perfume'),
]
operations = [
migrations.CreateModel(
... | 30.16129 | 79 | 0.541176 | 92 | 935 | 5.380435 | 0.565217 | 0.151515 | 0.20202 | 0.242424 | 0.343434 | 0.343434 | 0.149495 | 0 | 0 | 0 | 0 | 0.032864 | 0.316578 | 935 | 30 | 80 | 31.166667 | 0.741784 | 0.072727 | 0 | 0 | 1 | 0 | 0.099537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e7fcaa0fdfcd18a2d8745e1f55c33d54619c8af5 | 208 | py | Python | infer.py | YoruCathy/GarbageNet | dca173e20b9c72c957aa535e2b583d2294164840 | [
"Apache-2.0"
] | 3 | 2020-05-23T12:27:27.000Z | 2022-03-21T03:26:28.000Z | infer.py | YoruCathy/GarbageNet | dca173e20b9c72c957aa535e2b583d2294164840 | [
"Apache-2.0"
] | null | null | null | infer.py | YoruCathy/GarbageNet | dca173e20b9c72c957aa535e2b583d2294164840 | [
"Apache-2.0"
] | null | null | null | from GarbageClassification import GarbageClassification
gc = GarbageClassification()
gc.set_environment()
# gc.batch_test(batch_test_path="./trash/")
gc.vis_log(log_path="MobileNetrealcosinelrtrain_log.txt") | 34.666667 | 57 | 0.836538 | 24 | 208 | 6.958333 | 0.583333 | 0.275449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052885 | 208 | 6 | 57 | 34.666667 | 0.847716 | 0.197115 | 0 | 0 | 0 | 0 | 0.204819 | 0.204819 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f00844d3b756a4863929d9d593d2aeff8f7329b6 | 109 | py | Python | semester-6/Python Practice/numpyPractice/program17.py | saranshbht/bsc-codes | 7386c09cc986de9c84947f7dea7db3dc42219a35 | [
"MIT"
] | 3 | 2021-03-22T12:07:14.000Z | 2021-08-30T17:28:23.000Z | semester-6/Python Practice/numpyPractice/program17.py | saranshbht/bsc-codes | 7386c09cc986de9c84947f7dea7db3dc42219a35 | [
"MIT"
] | null | null | null | semester-6/Python Practice/numpyPractice/program17.py | saranshbht/bsc-codes | 7386c09cc986de9c84947f7dea7db3dc42219a35 | [
"MIT"
] | null | null | null | import numpy as np
rand_num = np.random.normal(0,1,1)
print("Random number between 0 and 1:")
print(rand_num) | 27.25 | 39 | 0.752294 | 22 | 109 | 3.636364 | 0.636364 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052083 | 0.119266 | 109 | 4 | 40 | 27.25 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f0106c30dcb633959b75b20c6c9e4be7822ec750 | 7,187 | py | Python | lab_assignment/lab_ex_1/magic_square_game.py | TeamLab/introduction_to_pythoy_TEAMLAB_MOOC | ebf1ff02d6a341bfee8695eac478ff8297cb97e4 | [
"MIT"
] | 65 | 2017-11-01T01:57:21.000Z | 2022-02-08T13:36:25.000Z | lab_assignment/lab_ex_1/magic_square_game.py | TeamLab/introduction_to_pythoy_TEAMLAB_MOOC | ebf1ff02d6a341bfee8695eac478ff8297cb97e4 | [
"MIT"
] | 9 | 2017-11-03T15:05:30.000Z | 2018-05-17T03:18:36.000Z | lab_assignment/lab_ex_1/magic_square_game.py | TeamLab/introduction_to_pythoy_TEAMLAB_MOOC | ebf1ff02d6a341bfee8695eac478ff8297cb97e4 | [
"MIT"
] | 64 | 2017-11-01T01:57:23.000Z | 2022-01-19T03:52:12.000Z | # -*- coding: utf8 -*-
def get_zero_matrix(size):
# '''
# Input:
# - size : 정수형 값
# Output:
# - size * size 크기의 two dimensional list를 반환함
# - list내 모든 값은 다 0으로 입력되어 있음
# Examples:
# >>> import magic_square as ms
# >>> ms.get_zero_matrix(3)
# [[0, 0, 0], [0, 0, 0], [0, 0, 0... | 31.112554 | 87 | 0.466537 | 1,128 | 7,187 | 2.853723 | 0.241135 | 0.053433 | 0.075489 | 0.095682 | 0.52128 | 0.337372 | 0.337372 | 0.295744 | 0.262193 | 0.239515 | 0 | 0.232917 | 0.287324 | 7,187 | 231 | 88 | 31.112554 | 0.395158 | 0.74913 | 0 | 0.428571 | 0 | 0 | 0.048615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.535714 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f01f68d0a2b952702f88724a1f11882c8e2bd792 | 786 | py | Python | backend/refill/utils/errors.py | CurbSafeCharmer/refill | 2f564568099be533a4fb1350daa296b5dafe213e | [
"BSD-2-Clause"
] | 6 | 2021-11-18T03:01:24.000Z | 2022-02-14T11:04:15.000Z | backend/refill/utils/errors.py | CurbSafeCharmer/refill | 2f564568099be533a4fb1350daa296b5dafe213e | [
"BSD-2-Clause"
] | 21 | 2021-12-12T16:10:36.000Z | 2022-03-08T22:34:47.000Z | backend/refill/utils/errors.py | CurbSafeCharmer/refill | 2f564568099be533a4fb1350daa296b5dafe213e | [
"BSD-2-Clause"
] | null | null | null | class NotFoundError(Exception):
def __init__(self, url):
super().__init__(url)
self.type = "notfound"
class NoTitleError(Exception):
def __init__(self, url):
super().__init__(url)
self.type = "notitle"
class ErrorPageError(Exception):
def __init__(self, url):
supe... | 21.833333 | 39 | 0.620865 | 82 | 786 | 5.365854 | 0.243902 | 0.163636 | 0.218182 | 0.272727 | 0.586364 | 0.488636 | 0.488636 | 0.488636 | 0.488636 | 0.488636 | 0 | 0 | 0.249364 | 786 | 35 | 40 | 22.457143 | 0.745763 | 0 | 0 | 0.44 | 0 | 0 | 0.068702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0 | 0 | 0.48 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b2b36c29d987a838f40555a0e4a0c335cf29a0f5 | 109 | py | Python | python/ex112/teste.py | lucasdiogomartins/curso-em-video | 9da92b6255a11021f719a9e0ce994db639e1ac38 | [
"MIT"
] | null | null | null | python/ex112/teste.py | lucasdiogomartins/curso-em-video | 9da92b6255a11021f719a9e0ce994db639e1ac38 | [
"MIT"
] | null | null | null | python/ex112/teste.py | lucasdiogomartins/curso-em-video | 9da92b6255a11021f719a9e0ce994db639e1ac38 | [
"MIT"
] | null | null | null | from utilidadescev import moeda, dado
p = dado.leia_dinheiro(f'Digite o preço: R$')
moeda.resumo(p, 20, 12)
| 21.8 | 45 | 0.733945 | 19 | 109 | 4.157895 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.137615 | 109 | 4 | 46 | 27.25 | 0.797872 | 0 | 0 | 0 | 0 | 0 | 0.165138 | 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 |
b2b83a512fb1f977b109a9817d1f850b997e5e1f | 38 | py | Python | server/settings.py | CruelSoftware/messenger | 608b29babac0b26c1b5366f117d4a07c17498a43 | [
"MIT"
] | null | null | null | server/settings.py | CruelSoftware/messenger | 608b29babac0b26c1b5366f117d4a07c17498a43 | [
"MIT"
] | null | null | null | server/settings.py | CruelSoftware/messenger | 608b29babac0b26c1b5366f117d4a07c17498a43 | [
"MIT"
] | null | null | null | SERVER_SETTINGS = {
"PORT":9999
}
| 9.5 | 19 | 0.605263 | 4 | 38 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 0.236842 | 38 | 3 | 20 | 12.666667 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 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 |
b2e653b85ce6df6c26e6983f385434ea1d5cf30b | 195 | py | Python | axf_1905/market/urls.py | passed-by/axf | 9f8fa77f856703f733db3bad5be37eea33de37bd | [
"MIT"
] | 2 | 2019-12-03T01:40:10.000Z | 2019-12-03T01:43:18.000Z | axf_1905/market/urls.py | passed-by/axf | 9f8fa77f856703f733db3bad5be37eea33de37bd | [
"MIT"
] | 3 | 2020-06-05T23:01:05.000Z | 2021-06-08T20:23:20.000Z | axf_1905/market/urls.py | passed-by/axf | 9f8fa77f856703f733db3bad5be37eea33de37bd | [
"MIT"
] | 1 | 2020-08-04T22:45:10.000Z | 2020-08-04T22:45:10.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url('^market/(\d+)/(\d+)/(\d+)/$', views.index, name='index'),
url('^savedata/$', views.savedata, name='savedata')
] | 24.375 | 66 | 0.615385 | 25 | 195 | 4.8 | 0.52 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 195 | 8 | 67 | 24.375 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.260204 | 0.137755 | 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 |
b2f6bf3b5a1b42d3d0265b05a480ce3c7684a304 | 238 | py | Python | samples.py | vainolo/learning-python | 290d52346a6372e795a7e290280a6ca74ecadc48 | [
"MIT"
] | null | null | null | samples.py | vainolo/learning-python | 290d52346a6372e795a7e290280a6ca74ecadc48 | [
"MIT"
] | null | null | null | samples.py | vainolo/learning-python | 290d52346a6372e795a7e290280a6ca74ecadc48 | [
"MIT"
] | null | null | null | class A:
def f1(self):
print "Function f1 in A"
class B(A):
def f2(self):
print "Function f2 in B"
b = B()
b.f1()
b.f2()
class C(A):
def f1(self):
print "Function f1 in C"
c = C()
c.f1()
A.f1(c) | 12.526316 | 32 | 0.495798 | 45 | 238 | 2.622222 | 0.244444 | 0.101695 | 0.432203 | 0.169492 | 0.457627 | 0.457627 | 0.457627 | 0.457627 | 0 | 0 | 0 | 0.063291 | 0.336134 | 238 | 19 | 33 | 12.526316 | 0.683544 | 0 | 0 | 0.133333 | 0 | 0 | 0.200837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
650904cf6129b4fcf253c959c10c6d2b5191596b | 185 | py | Python | example-workers/mailworker-smtp.py | RobbieClarken/MailShake-RQMailer | 54ebbef965868163a2a414f383e02e7394f3a315 | [
"MIT"
] | null | null | null | example-workers/mailworker-smtp.py | RobbieClarken/MailShake-RQMailer | 54ebbef965868163a2a414f383e02e7394f3a315 | [
"MIT"
] | null | null | null | example-workers/mailworker-smtp.py | RobbieClarken/MailShake-RQMailer | 54ebbef965868163a2a414f383e02e7394f3a315 | [
"MIT"
] | null | null | null | """
This module should be renamed 'mailworker.py' and configured for your mail
server.
"""
from mailshake import SMTPMailer
mailer = SMTPMailer()
send_messages = mailer.send_messages
| 18.5 | 74 | 0.778378 | 24 | 185 | 5.916667 | 0.833333 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140541 | 185 | 9 | 75 | 20.555556 | 0.893082 | 0.443243 | 0 | 0 | 0 | 0 | 0 | 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 |
650b7d25587461440924f06ce1bc8a865ff7c778 | 1,460 | py | Python | website/utilities/localize.py | skulluglify/skulluglify_app | 944dd168b0b0d868a7eb43938a8390cb54b4eee3 | [
"BSD-3-Clause"
] | null | null | null | website/utilities/localize.py | skulluglify/skulluglify_app | 944dd168b0b0d868a7eb43938a8390cb54b4eee3 | [
"BSD-3-Clause"
] | null | null | null | website/utilities/localize.py | skulluglify/skulluglify_app | 944dd168b0b0d868a7eb43938a8390cb54b4eee3 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python3
import locale
try:
from .extras.essentials import generator
from .extras.statements import equals
except ImportError as e:
from extras.essentials import generator
from extras.statements import equals
locale_source: list = [ k for k in locale.locale_alias ]
windows_locale: list ... | 26.071429 | 130 | 0.667123 | 176 | 1,460 | 5.136364 | 0.323864 | 0.070796 | 0.048673 | 0.075221 | 0.445796 | 0.370575 | 0.306416 | 0.306416 | 0.271018 | 0.14823 | 0 | 0.004329 | 0.208904 | 1,460 | 55 | 131 | 26.545455 | 0.778355 | 0.030822 | 0 | 0.352941 | 0 | 0 | 0.048867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0 | 0.176471 | 0.235294 | 0.882353 | 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 |
6519f721657902831caaebae2d52486e5e752831 | 91 | py | Python | owl_system/__main__.py | HammerDev99/GestionExpedienteElectronico_Version1 | ab99385117b96af9dcdf795874f1973822d80070 | [
"MIT"
] | null | null | null | owl_system/__main__.py | HammerDev99/GestionExpedienteElectronico_Version1 | ab99385117b96af9dcdf795874f1973822d80070 | [
"MIT"
] | null | null | null | owl_system/__main__.py | HammerDev99/GestionExpedienteElectronico_Version1 | ab99385117b96af9dcdf795874f1973822d80070 | [
"MIT"
] | null | null | null | import AutomatizacionGUI as obj
if __name__ == '__main__.py':
run = obj.__init__()
| 18.2 | 31 | 0.681319 | 11 | 91 | 4.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208791 | 91 | 5 | 32 | 18.2 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0.119565 | 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 |
6522e2da92817215d113b69645edca99665e65d2 | 271 | py | Python | src/stard/algorithms.py | DexterLB/stard | c8433d353367535ed52c143667e1d42b56aee85b | [
"MIT"
] | null | null | null | src/stard/algorithms.py | DexterLB/stard | c8433d353367535ed52c143667e1d42b56aee85b | [
"MIT"
] | null | null | null | src/stard/algorithms.py | DexterLB/stard | c8433d353367535ed52c143667e1d42b56aee85b | [
"MIT"
] | null | null | null |
# dfs
def walk_parents(vertex):
return sum(
(walk_parents(parent) for parent in vertex.parents),
[]
) + [vertex]
def walk_children(vertex):
return sum(
(walk_children(child) for child in vertex.children),
[]
) + [vertex]
| 19.357143 | 60 | 0.590406 | 31 | 271 | 5.032258 | 0.387097 | 0.089744 | 0.192308 | 0.24359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287823 | 271 | 13 | 61 | 20.846154 | 0.80829 | 0.01107 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
653e0fbf2164a4303866a716eee6b0eed2b0568a | 470 | py | Python | py2nb/__main__.py | fuzzyklein/py2nb | 7a5d911953a00008077c1af91acfe1ba93475287 | [
"Apache-2.0"
] | null | null | null | py2nb/__main__.py | fuzzyklein/py2nb | 7a5d911953a00008077c1af91acfe1ba93475287 | [
"Apache-2.0"
] | null | null | null | py2nb/__main__.py | fuzzyklein/py2nb | 7a5d911953a00008077c1af91acfe1ba93475287 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
import pdb
import site
import sys
from traceback import print_exc
from warnings import warn
# site.addsitedir(str(Path(__file__).parent))
# pdb.set_trace()
from py2nb.py2nb import Py32JNb
def main():
""" main()
Call the `run` method of a class descended from `py.Program`.
"""... | 18.076923 | 69 | 0.638298 | 62 | 470 | 4.596774 | 0.645161 | 0.05614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019663 | 0.242553 | 470 | 25 | 70 | 18.8 | 0.780899 | 0.325532 | 0 | 0 | 0 | 0 | 0.027119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | true | 0 | 0.466667 | 0 | 0.533333 | 0.133333 | 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 |
6544760f7738a9f0d20b1596e53e0fd4ba91015d | 1,544 | py | Python | insights/parsers/secure.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 121 | 2017-05-30T20:23:25.000Z | 2022-03-23T12:52:15.000Z | insights/parsers/secure.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 1,977 | 2017-05-26T14:36:03.000Z | 2022-03-31T10:38:53.000Z | insights/parsers/secure.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 244 | 2017-05-30T20:22:57.000Z | 2022-03-26T10:09:39.000Z | """
Secure - file ``/var/log/secure``
==================================
"""
from .. import Syslog, parser
from insights.specs import Specs
@parser(Specs.secure)
class Secure(Syslog):
"""Class for parsing the ``/var/log/secure`` file.
Sample log text::
Aug 24 09:31:39 localhost polkitd[822]: Finish... | 37.658537 | 128 | 0.621114 | 218 | 1,544 | 4.37156 | 0.495413 | 0.020986 | 0.029381 | 0.037775 | 0.313746 | 0.302204 | 0.302204 | 0.302204 | 0.208814 | 0.208814 | 0 | 0.076078 | 0.233808 | 1,544 | 40 | 129 | 38.6 | 0.729501 | 0.834197 | 0 | 0 | 0 | 0 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
65451c03c681ef1344cec2bae6ca2a344dab38de | 1,689 | py | Python | lib/galaxy/common/clientfactory.py | GeorryHuang/galaxy-sdk-python | 265d56709b5ea125fbc89e4bfc05e5e8e8d9fce4 | [
"Apache-2.0"
] | 17 | 2015-06-18T07:17:50.000Z | 2019-11-20T07:23:33.000Z | lib/galaxy/common/clientfactory.py | GeorryHuang/galaxy-sdk-python | 265d56709b5ea125fbc89e4bfc05e5e8e8d9fce4 | [
"Apache-2.0"
] | 6 | 2017-06-08T08:37:55.000Z | 2020-12-30T10:08:49.000Z | lib/galaxy/common/clientfactory.py | GeorryHuang/galaxy-sdk-python | 265d56709b5ea125fbc89e4bfc05e5e8e8d9fce4 | [
"Apache-2.0"
] | 19 | 2016-09-21T17:34:59.000Z | 2020-07-18T22:35:15.000Z | # Copyright 2017 Xiaomi, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 32.480769 | 80 | 0.684429 | 220 | 1,689 | 5.136364 | 0.527273 | 0.053097 | 0.053097 | 0.028319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006593 | 0.191829 | 1,689 | 51 | 81 | 33.117647 | 0.821245 | 0.599763 | 0 | 0 | 0 | 0 | 0.079125 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
654cb66111756d45615cc23e3c186f9e1a4a7b76 | 201 | py | Python | poly_py_tools/pjsip/acl.py | mjmunger/PolyPyTools | 116014a47479f360ee73006d6ba3ddc7f362c7a1 | [
"MIT"
] | 7 | 2017-11-15T19:25:37.000Z | 2022-01-20T01:30:56.000Z | poly_py_tools/pjsip/acl.py | DrDamnit/PolyPyTools | 116014a47479f360ee73006d6ba3ddc7f362c7a1 | [
"MIT"
] | 40 | 2020-05-19T19:46:20.000Z | 2020-11-12T16:13:55.000Z | poly_py_tools/pjsip/acl.py | mjmunger/PolyPyTools | 116014a47479f360ee73006d6ba3ddc7f362c7a1 | [
"MIT"
] | null | null | null | from poly_py_tools.pjsip.resource import SipResource
class Acl(SipResource):
acl = None
contact_acl = None
contact_deny = None
contact_permit = None
deny = None
permit = None
| 18.272727 | 52 | 0.696517 | 26 | 201 | 5.192308 | 0.538462 | 0.244444 | 0.207407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248756 | 201 | 10 | 53 | 20.1 | 0.89404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
331a48129760ce471e92637de8f1eac966ed1929 | 958 | py | Python | cloudmesh_docker/api/docker_instance.py | cloudmesh/docker-url-provider | 95703378962e6a3aef027c11a5a94401b3f14776 | [
"Apache-2.0"
] | null | null | null | cloudmesh_docker/api/docker_instance.py | cloudmesh/docker-url-provider | 95703378962e6a3aef027c11a5a94401b3f14776 | [
"Apache-2.0"
] | null | null | null | cloudmesh_docker/api/docker_instance.py | cloudmesh/docker-url-provider | 95703378962e6a3aef027c11a5a94401b3f14776 | [
"Apache-2.0"
] | null | null | null | from cloudmesh.config.cm_config import get_mongo_db, DBConnFactory
from mongoengine import *
class Cloudmeshdocker(Document):
"""Docker cloud collection
"""
dockerserver = StringField(required=True)
meta = {'allow_inheritance': True}
get_mongo_db("cloudmesh", DBConnFactory.TYPE_MONGOENGINE)
clas... | 28.176471 | 66 | 0.734864 | 94 | 958 | 7.329787 | 0.351064 | 0.22061 | 0.267054 | 0.117562 | 0.423803 | 0.423803 | 0.423803 | 0.423803 | 0.423803 | 0.423803 | 0 | 0 | 0.161795 | 958 | 33 | 67 | 29.030303 | 0.858032 | 0.077244 | 0 | 0.315789 | 0 | 0 | 0.090487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.842105 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
331f86673166968dc19feec5528818c632e9520d | 81 | py | Python | problem/10000~19999/11006/11006.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/10000~19999/11006/11006.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/10000~19999/11006/11006.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | for i in range(int(input())):
a,b=map(int,input().split())
print(b*2-a,b-b*2+a) | 27 | 29 | 0.604938 | 20 | 81 | 2.45 | 0.6 | 0.326531 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.08642 | 81 | 3 | 30 | 27 | 0.635135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3351a0cc72965a428402029062915f256c72cda6 | 212 | py | Python | backend/app/schemas/category.py | zelaznymarek/shopping-list | 9267c59436953b56b227a3fdb482fb5a7fe542d6 | [
"MIT"
] | null | null | null | backend/app/schemas/category.py | zelaznymarek/shopping-list | 9267c59436953b56b227a3fdb482fb5a7fe542d6 | [
"MIT"
] | 1 | 2021-07-29T14:19:52.000Z | 2021-07-29T14:19:52.000Z | backend/app/schemas/category.py | zelaznymarek/shopping-list | 9267c59436953b56b227a3fdb482fb5a7fe542d6 | [
"MIT"
] | null | null | null | from pydantic import BaseModel
class CategoryBase(BaseModel):
name: str
class CategoryCreate(CategoryBase):
pass
class Category(CategoryBase):
id: int
class Config:
orm_mode = True
| 12.470588 | 35 | 0.698113 | 23 | 212 | 6.391304 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240566 | 212 | 16 | 36 | 13.25 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 0.777778 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3367683ab79adbc8c204aea9e5715c5f724350cd | 320 | py | Python | 11_proxy/gumball_monitor.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | 11_proxy/gumball_monitor.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | 11_proxy/gumball_monitor.py | hypersport/Head-First-Design-Patterns-Python | 0c8b831ae89ebbbef8b203b96508deb7e3063590 | [
"MIT"
] | null | null | null | class GumballMonitor:
def __init__(self, machine):
self.machine = machine
def report(self):
try:
print(f'Gumball Machine: {self.machine.get_location()}')
print(f'Current inventory: {self.machine.get_count()} gumballs')
except Exception as e:
print(e)
| 29.090909 | 76 | 0.6 | 36 | 320 | 5.166667 | 0.583333 | 0.236559 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2875 | 320 | 10 | 77 | 32 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 0.171875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6829ec051c40184def0f22b731ce5fe0762951c8 | 500 | py | Python | resultbox/__init__.py | pythoro/resultbox | 1d30a1ef08cfaff3c11f5c7b67bfb6a2e9f62c0a | [
"MIT"
] | null | null | null | resultbox/__init__.py | pythoro/resultbox | 1d30a1ef08cfaff3c11f5c7b67bfb6a2e9f62c0a | [
"MIT"
] | null | null | null | resultbox/__init__.py | pythoro/resultbox | 1d30a1ef08cfaff3c11f5c7b67bfb6a2e9f62c0a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 1 14:22:13 2019
@author: Reuben
"""
from . import settings
from . import constants, adapters, utils, variable, dct, box, table, \
persist, plot, namespace
from .variable import Store, Variable, Aliases
from .dct import Dict_Container, get_dict
from .box import Box
f... | 29.411765 | 70 | 0.748 | 74 | 500 | 4.959459 | 0.527027 | 0.054496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028436 | 0.156 | 500 | 17 | 71 | 29.411765 | 0.841232 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.9 | 0 | 0.9 | 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 |
684445063fe2d6e721ad6e30d50d4e7e119fda29 | 756 | py | Python | prediction/models_test.py | wpla/MLMarketPrediction | 73e88e35f0ee6802d22a2fb7344a598c94dee503 | [
"MIT"
] | null | null | null | prediction/models_test.py | wpla/MLMarketPrediction | 73e88e35f0ee6802d22a2fb7344a598c94dee503 | [
"MIT"
] | null | null | null | prediction/models_test.py | wpla/MLMarketPrediction | 73e88e35f0ee6802d22a2fb7344a598c94dee503 | [
"MIT"
] | null | null | null | import unittest
import models
class ModelsTestCase(unittest.TestCase):
def test_make_input_col(self):
self.assertEqual(models.make_input_col("RSI", 10), "RSI_10")
self.assertEqual(models.make_input_col("RSI_E5", 10), "RSI_10_E5")
self.assertEqual(models.make_input_col("Williams_R_E5", 10),... | 39.789474 | 88 | 0.703704 | 108 | 756 | 4.518519 | 0.231481 | 0.165984 | 0.221311 | 0.409836 | 0.614754 | 0.614754 | 0.614754 | 0.311475 | 0 | 0 | 0 | 0.046656 | 0.149471 | 756 | 18 | 89 | 42 | 0.712286 | 0 | 0 | 0 | 0 | 0 | 0.167989 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
686e983cf598755093e2c1ef0d12dcc6f746d7cc | 1,626 | py | Python | main.py | wardrush/inertial_separations | 1d058ba247d0d3af1d58ae13b4333437561bf910 | [
"MIT"
] | null | null | null | main.py | wardrush/inertial_separations | 1d058ba247d0d3af1d58ae13b4333437561bf910 | [
"MIT"
] | null | null | null | main.py | wardrush/inertial_separations | 1d058ba247d0d3af1d58ae13b4333437561bf910 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import scipy
from helpers import FlowSystem
"""
Created July 22, 2020
by Ward Rushton
Inertial separations Simulation #1
Purpose: To find reasonable starting values for designing the inertial microfludic system from the defined bounds
See Inertial Microfluidics paper
... | 36.954545 | 120 | 0.746617 | 244 | 1,626 | 4.97541 | 0.54918 | 0.112026 | 0.062603 | 0.027183 | 0.068369 | 0.056013 | 0.056013 | 0.056013 | 0 | 0 | 0 | 0.031297 | 0.174662 | 1,626 | 43 | 121 | 37.813953 | 0.873323 | 0 | 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 |
6878afd15718e1796067f7e429ba47e2e3f80e8b | 948 | py | Python | deep_reinforcement_learning/utils/Trainer.py | ximingxing/Deep-Learning-in-Action | 38d5d3d6990553ff9d3ea771d8e83f8b47241b9a | [
"MIT"
] | 1 | 2020-09-16T09:17:37.000Z | 2020-09-16T09:17:37.000Z | deep_reinforcement_learning/utils/Trainer.py | ximingxing/Deep-Learning-in-Action | 38d5d3d6990553ff9d3ea771d8e83f8b47241b9a | [
"MIT"
] | 1 | 2021-05-13T05:20:07.000Z | 2021-05-13T05:20:07.000Z | deep_reinforcement_learning/utils/Trainer.py | ximingxing/Deep-Learning-in-Action | 38d5d3d6990553ff9d3ea771d8e83f8b47241b9a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project: Deep-Learning-in-Action
@File: Trainer.py
@Author: 轩名
@Date: 2021/8/17 5:26 下午
"""
import torch
from typing import Any, List
from abc import abstractmethod
from torch import Tensor
from torch.utils.data import DataLoader
from .dataset import RLDataset
from... | 22.046512 | 69 | 0.693038 | 117 | 948 | 5.512821 | 0.623932 | 0.027907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01455 | 0.202532 | 948 | 42 | 70 | 22.571429 | 0.838624 | 0.138186 | 0 | 0.173913 | 0 | 0 | 0.008663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.086957 | 0.304348 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
6880721a5034d690ceb41552c2547e0cddbc3018 | 948 | py | Python | alipay/aop/api/domain/VirtualItemOrderExtInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/VirtualItemOrderExtInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/VirtualItemOrderExtInfo.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class VirtualItemOrderExtInfo(object):
def __init__(self):
self._notify_app_id = None
@property
def notify_app_id(self):
return self._notify_app_id
@notify_app_id.setter
... | 23.121951 | 77 | 0.618143 | 125 | 948 | 4.328 | 0.32 | 0.249538 | 0.304991 | 0.194085 | 0.256932 | 0.190388 | 0.190388 | 0.118299 | 0 | 0 | 0 | 0.001484 | 0.28903 | 948 | 40 | 78 | 23.7 | 0.801187 | 0.044304 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.074074 | 0.037037 | 0.444444 | 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 |
688cda1a3471a093b5526ca0c81785aebb6d13a6 | 433 | py | Python | setup.py | dwighthubbard/jupyter_micropython_kernel | 3689a36655f8ddf57630e9b2d99d032be429da66 | [
"MIT"
] | null | null | null | setup.py | dwighthubbard/jupyter_micropython_kernel | 3689a36655f8ddf57630e9b2d99d032be429da66 | [
"MIT"
] | null | null | null | setup.py | dwighthubbard/jupyter_micropython_kernel | 3689a36655f8ddf57630e9b2d99d032be429da66 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='jupyter_micropython_kernel',
version='0.1.2',
description='External MicroPython kernel for Jupyter notebooks.',
author='Tony DiCola',
author_email='tdicola@adafruit.com',
url='https://github.com/adafruit/jupyter_micropython_kernel',
packages=... | 28.866667 | 71 | 0.662818 | 44 | 433 | 6.340909 | 0.681818 | 0.243728 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008876 | 0.2194 | 433 | 14 | 72 | 30.928571 | 0.816568 | 0 | 0 | 0 | 0 | 0 | 0.47806 | 0.120092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
689acb36d26b4e2f752f443a5b6366538f932df6 | 61 | py | Python | Exercise_4_6.py | kushrami/Python-Crash-Course-book-Excersice | 7093181940a90d9f4bab5775ef56f57963450393 | [
"Apache-2.0"
] | null | null | null | Exercise_4_6.py | kushrami/Python-Crash-Course-book-Excersice | 7093181940a90d9f4bab5775ef56f57963450393 | [
"Apache-2.0"
] | null | null | null | Exercise_4_6.py | kushrami/Python-Crash-Course-book-Excersice | 7093181940a90d9f4bab5775ef56f57963450393 | [
"Apache-2.0"
] | null | null | null | #Odd numbers
for number in range(1,21,2):
print(number)
| 12.2 | 28 | 0.672131 | 11 | 61 | 3.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0.196721 | 61 | 4 | 29 | 15.25 | 0.755102 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
68a4d1aaf6eacaefdca88525a7154e6e981981c8 | 974 | py | Python | virtualbox/music/bgm_part01.py | cj8-cheerful-cheetas/project | 5d9c7cfc2cfec5fca05997bc42d490529cd935ab | [
"MIT"
] | null | null | null | virtualbox/music/bgm_part01.py | cj8-cheerful-cheetas/project | 5d9c7cfc2cfec5fca05997bc42d490529cd935ab | [
"MIT"
] | 3 | 2021-07-17T10:52:21.000Z | 2021-07-17T10:55:54.000Z | virtualbox/music/bgm_part01.py | cj8-cheerful-cheetas/project | 5d9c7cfc2cfec5fca05997bc42d490529cd935ab | [
"MIT"
] | 2 | 2021-07-17T10:54:33.000Z | 2021-08-30T19:27:49.000Z | # part01
from earsketch import *
init()
setTempo(120)
fitMedia(RD_EDM_SFX_RISER_AIR_1, 1, 1, 5)
fitMedia(RD_EDM_SFX_RISER_AIR_2, 2, 1, 5)
fitMedia(RD_EDM_SFX_RISER_AIR_2, 2, 17, 21)
fitMedia(RD_EDM_CHORDPART_7, 3, 1, 21)
fitMedia(RD_EDM_CHORDPART_2, 4, 5, 21)
fitMedia(RD_EDM_CHORDPART_4, 5, 5, 21)
fitMedia(RD_EDM_CH... | 29.515152 | 47 | 0.765914 | 196 | 974 | 3.489796 | 0.265306 | 0.190058 | 0.247076 | 0.175439 | 0.725146 | 0.583333 | 0.163743 | 0.081871 | 0.081871 | 0.081871 | 0 | 0.169683 | 0.092402 | 974 | 32 | 48 | 30.4375 | 0.604072 | 0.00616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.038462 | 0 | 0.038462 | 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 |
d7a43eaae0ddb9a2fe7b53ee0234b9bb3641989c | 701 | py | Python | tutos/institutions/serializers.py | UVG-Teams/Tutos-System | 230dd9434f745c2e6e69e10f9908e9818c559d03 | [
"MIT"
] | null | null | null | tutos/institutions/serializers.py | UVG-Teams/Tutos-System | 230dd9434f745c2e6e69e10f9908e9818c559d03 | [
"MIT"
] | null | null | null | tutos/institutions/serializers.py | UVG-Teams/Tutos-System | 230dd9434f745c2e6e69e10f9908e9818c559d03 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from institutions.models import Institution, Career, Course
class InstitutionSerializer(serializers.ModelSerializer):
class Meta:
model = Institution
fields = (
'id',
'name',
'institution_type',
'location',
... | 20.028571 | 59 | 0.540656 | 50 | 701 | 7.54 | 0.44 | 0.206897 | 0.246684 | 0.278515 | 0.318302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.376605 | 701 | 34 | 60 | 20.617647 | 0.8627 | 0 | 0 | 0.518519 | 0 | 0 | 0.091298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.296296 | 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 |
d7a7b053342a38796b41270706935eb618a1a7e4 | 259 | py | Python | app/author/serializers.py | dollardhingra/metabolights_api | e4e84b9eb0fa983df5c738dc5a920be60dc8bd0e | [
"MIT"
] | null | null | null | app/author/serializers.py | dollardhingra/metabolights_api | e4e84b9eb0fa983df5c738dc5a920be60dc8bd0e | [
"MIT"
] | null | null | null | app/author/serializers.py | dollardhingra/metabolights_api | e4e84b9eb0fa983df5c738dc5a920be60dc8bd0e | [
"MIT"
] | null | null | null | from rest_framework import serializers
from core.models import Author
class AuthorSerializer(serializers.ModelSerializer):
"""
Serializer for Author model
"""
class Meta:
model = Author
fields = ('id', 'full_name', 'email')
| 19.923077 | 52 | 0.671815 | 27 | 259 | 6.37037 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235521 | 259 | 12 | 53 | 21.583333 | 0.868687 | 0.104247 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d7cdc762be15999c560ecb9c34126f2f1054238a | 2,735 | py | Python | app/models.py | tc-mwangi/land-repo | a0a7a90ff6c848cba6cd697a672cef37bb473020 | [
"MIT"
] | null | null | null | app/models.py | tc-mwangi/land-repo | a0a7a90ff6c848cba6cd697a672cef37bb473020 | [
"MIT"
] | 6 | 2019-02-19T13:03:20.000Z | 2019-02-23T02:42:33.000Z | app/models.py | tc-mwangi/land-repo | a0a7a90ff6c848cba6cd697a672cef37bb473020 | [
"MIT"
] | 4 | 2019-02-19T12:40:02.000Z | 2019-02-20T07:01:10.000Z | from . import db
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
class User(db.Model,UserMixin):
'''creates instances of user
'''
__tablename__= 'users'
id = db.Column(db.Integer,pri... | 29.728261 | 81 | 0.697623 | 373 | 2,735 | 4.965147 | 0.257373 | 0.090713 | 0.113391 | 0.086393 | 0.391469 | 0.343952 | 0.313715 | 0.262419 | 0.205724 | 0.12203 | 0 | 0.011832 | 0.165631 | 2,735 | 92 | 82 | 29.728261 | 0.799737 | 0.038391 | 0 | 0.262295 | 1 | 0 | 0.078161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147541 | false | 0.131148 | 0.081967 | 0.065574 | 0.819672 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d7db15ddd014c4727626b8cdff1fa5b3934eda22 | 321 | py | Python | serv/api/routes/api.py | jnhu76/ImageServ | 222231ce361a7b29fb25318c8bc9fedc65f236ee | [
"MIT"
] | null | null | null | serv/api/routes/api.py | jnhu76/ImageServ | 222231ce361a7b29fb25318c8bc9fedc65f236ee | [
"MIT"
] | null | null | null | serv/api/routes/api.py | jnhu76/ImageServ | 222231ce361a7b29fb25318c8bc9fedc65f236ee | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from serv.api.routes import images, info, upload
router = APIRouter()
router.include_router(images.router, tags=["images"], prefix="/image")
router.include_router(upload.router, tags=["upload"], prefix="/upload")
router.include_router(info.router, tags=["info"], prefix="/info")
... | 32.1 | 72 | 0.732087 | 41 | 321 | 5.658537 | 0.365854 | 0.155172 | 0.24569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105919 | 321 | 9 | 73 | 35.666667 | 0.808362 | 0 | 0 | 0 | 0 | 0 | 0.108974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
d7e5916bd37961e52d985ed8c4c8ed10eba0e164 | 3,351 | py | Python | apmecclient/common/extension.py | openMECPlatform/python-apmecclient | 46d4444ee110949151eb87425661521b38a3bc85 | [
"Apache-2.0"
] | null | null | null | apmecclient/common/extension.py | openMECPlatform/python-apmecclient | 46d4444ee110949151eb87425661521b38a3bc85 | [
"Apache-2.0"
] | null | null | null | apmecclient/common/extension.py | openMECPlatform/python-apmecclient | 46d4444ee110949151eb87425661521b38a3bc85 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Rackspace Hosting Inc.
# All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | 38.517241 | 78 | 0.691137 | 386 | 3,351 | 5.906736 | 0.326425 | 0.087719 | 0.061404 | 0.039474 | 0.473684 | 0.473684 | 0.439474 | 0.439474 | 0.439474 | 0.439474 | 0 | 0.009449 | 0.242017 | 3,351 | 86 | 79 | 38.965116 | 0.888189 | 0.434796 | 0 | 0.428571 | 0 | 0 | 0.011272 | 0.011272 | 0 | 0 | 0 | 0 | 0 | 1 | 0.314286 | false | 0 | 0.057143 | 0.285714 | 0.942857 | 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 |
d7f267f1a6763a38de9b13da13d7cf51fd9c9acc | 22,183 | py | Python | pymunk-5.4.2/pymunk/constraint.py | mturja-vf-ic-bd/self-driving-car_Robotics-Project | f84781bb19c2371783e306e9b17b7f3cc2267c3c | [
"MIT"
] | null | null | null | pymunk-5.4.2/pymunk/constraint.py | mturja-vf-ic-bd/self-driving-car_Robotics-Project | f84781bb19c2371783e306e9b17b7f3cc2267c3c | [
"MIT"
] | null | null | null | pymunk-5.4.2/pymunk/constraint.py | mturja-vf-ic-bd/self-driving-car_Robotics-Project | f84781bb19c2371783e306e9b17b7f3cc2267c3c | [
"MIT"
] | null | null | null | # ----------------------------------------------------------------------------
# pymunk
# Copyright (c) 2007-2017 Victor Blomqvist
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software with... | 39.969369 | 83 | 0.663526 | 2,802 | 22,183 | 5.022841 | 0.180942 | 0.07759 | 0.038653 | 0.045474 | 0.386599 | 0.338354 | 0.314267 | 0.290465 | 0.254512 | 0.211383 | 0 | 0.003759 | 0.244466 | 22,183 | 554 | 84 | 40.041516 | 0.835979 | 0.274895 | 0 | 0.324921 | 0 | 0.003155 | 0.137639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.249211 | false | 0.003155 | 0.012618 | 0.104101 | 0.55205 | 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 |
cc1b1b30bda65a57dcf7587036681cab336e42a1 | 226 | py | Python | grpc_example/helloworld/pb_greeter/codegen.py | fs714/concurrency-example | fbff041804b9c46fb7f21ebbae22acff745c7b0c | [
"Apache-2.0"
] | null | null | null | grpc_example/helloworld/pb_greeter/codegen.py | fs714/concurrency-example | fbff041804b9c46fb7f21ebbae22acff745c7b0c | [
"Apache-2.0"
] | null | null | null | grpc_example/helloworld/pb_greeter/codegen.py | fs714/concurrency-example | fbff041804b9c46fb7f21ebbae22acff745c7b0c | [
"Apache-2.0"
] | 1 | 2020-03-10T15:47:05.000Z | 2020-03-10T15:47:05.000Z | # Run this scripts in project root path
from grpc_tools import protoc
protoc.main((
'',
'--proto_path=.',
'--python_out=.',
'--grpc_python_out=.',
'./grpc_example/helloworld/pb_greeter/greeter.proto',
))
| 18.833333 | 57 | 0.646018 | 28 | 226 | 4.964286 | 0.714286 | 0.129496 | 0.18705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181416 | 226 | 11 | 58 | 20.545455 | 0.751351 | 0.163717 | 0 | 0 | 0 | 0 | 0.518717 | 0.26738 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cc30fe6b287373c4dda7c7b5cb287e5132ca2654 | 140 | py | Python | CF_Functions/Arcade/centuryFromYear.py | glickmac/Misc_Scripts | 7e18be79b84a309a1e79935f4470ea915141938d | [
"MIT"
] | null | null | null | CF_Functions/Arcade/centuryFromYear.py | glickmac/Misc_Scripts | 7e18be79b84a309a1e79935f4470ea915141938d | [
"MIT"
] | null | null | null | CF_Functions/Arcade/centuryFromYear.py | glickmac/Misc_Scripts | 7e18be79b84a309a1e79935f4470ea915141938d | [
"MIT"
] | 1 | 2020-07-30T17:37:12.000Z | 2020-07-30T17:37:12.000Z | def centuryFromYear(year):
remainer = year % 100
if remainer == 0:
return year/100
else:
return int(year/100)+1
| 20 | 30 | 0.585714 | 18 | 140 | 4.555556 | 0.611111 | 0.256098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0.314286 | 140 | 6 | 31 | 23.333333 | 0.739583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
0be5fcf4ed63bec0ac86cdaa12d5bb84e26a8947 | 362 | py | Python | beacon/db/__init__.py | elixir-luxembourg/BH2021-beacon-2.x-omop | d811e7902909f5d38f9a5964ff0ff3335ec0056a | [
"Apache-2.0"
] | null | null | null | beacon/db/__init__.py | elixir-luxembourg/BH2021-beacon-2.x-omop | d811e7902909f5d38f9a5964ff0ff3335ec0056a | [
"Apache-2.0"
] | null | null | null | beacon/db/__init__.py | elixir-luxembourg/BH2021-beacon-2.x-omop | d811e7902909f5d38f9a5964ff0ff3335ec0056a | [
"Apache-2.0"
] | null | null | null | # TODO: to be deleted
class FieldMock:
def __init__(self):
self.find = lambda _: FieldMock()
self.skip = lambda _: FieldMock()
self.limit = lambda _: FieldMock()
class BeaconMock:
def __init__(self):
self.datasets = FieldMock()
class DBMock:
def __init__(self):
self... | 22.625 | 42 | 0.624309 | 39 | 362 | 5.410256 | 0.461538 | 0.099526 | 0.156398 | 0.21327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265193 | 362 | 15 | 43 | 24.133333 | 0.793233 | 0.052486 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0bf0f4be1d082768ba6adacc5dc7486664d7a1df | 683 | py | Python | calendarMod/migrations/0010_auto_20200420_0558.py | graceB-J/dashapp | 6305accbadc25a34c373d70c9d50d4ff58dafa1b | [
"PostgreSQL",
"Apache-2.0",
"MIT"
] | 1 | 2021-01-26T22:53:44.000Z | 2021-01-26T22:53:44.000Z | calendarMod/migrations/0010_auto_20200420_0558.py | graceB-J/dashapp | 6305accbadc25a34c373d70c9d50d4ff58dafa1b | [
"PostgreSQL",
"Apache-2.0",
"MIT"
] | 5 | 2020-06-05T20:26:52.000Z | 2021-09-22T18:56:37.000Z | calendarMod/migrations/0010_auto_20200420_0558.py | graceB-J/dashapp | 6305accbadc25a34c373d70c9d50d4ff58dafa1b | [
"PostgreSQL",
"Apache-2.0",
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-04-20 05:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('calendarMod', '0009_event_owner'),
]
operations = [
migrations.AddField(
model_name='event',
name='end_month_name',
... | 23.551724 | 47 | 0.544656 | 63 | 683 | 5.793651 | 0.555556 | 0.147945 | 0.189041 | 0.221918 | 0.443836 | 0.443836 | 0.345205 | 0.345205 | 0.345205 | 0.345205 | 0 | 0.041485 | 0.329429 | 683 | 28 | 48 | 24.392857 | 0.755459 | 0.065886 | 0 | 0.545455 | 1 | 0 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0bf22559619f927874d44415d9103fd15997cc2b | 233 | py | Python | device/__init__.py | lixuyongmt/MCUProg | 3fd4860160322f85db0ad5eaa39f197dbb8a18bd | [
"MIT"
] | null | null | null | device/__init__.py | lixuyongmt/MCUProg | 3fd4860160322f85db0ad5eaa39f197dbb8a18bd | [
"MIT"
] | null | null | null | device/__init__.py | lixuyongmt/MCUProg | 3fd4860160322f85db0ad5eaa39f197dbb8a18bd | [
"MIT"
] | 1 | 2019-07-08T01:54:17.000Z | 2019-07-08T01:54:17.000Z | import collections
import STM32F103
import STM32F405
Devices = collections.OrderedDict([
('STM32F103C8', STM32F103.STM32F103C8),
('STM32F103RC', STM32F103.STM32F103RC),
('STM32F405RG', STM32F405.STM32F405RG)
]) | 23.3 | 44 | 0.725322 | 18 | 233 | 9.388889 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292308 | 0.16309 | 233 | 10 | 45 | 23.3 | 0.574359 | 0 | 0 | 0 | 0 | 0 | 0.146667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0bf558eda6f4357cb2171df297defa94d8fd4144 | 1,397 | py | Python | S3utility/s3_sqs_message.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 17 | 2015-02-10T07:10:29.000Z | 2021-05-14T22:24:45.000Z | S3utility/s3_sqs_message.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 459 | 2015-03-31T18:24:23.000Z | 2022-03-30T19:44:40.000Z | S3utility/s3_sqs_message.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 9 | 2015-04-18T16:57:31.000Z | 2020-10-30T11:49:13.000Z | from boto.sqs.message import Message
import json
from S3utility.s3_notification_info import S3NotificationInfo
class S3SQSMessage(Message):
def __init__(self, queue=None, body="", xml_attrs=None):
Message.__init__(self, queue, body)
self.payload = None
self.notification_type = "S3Info"
... | 32.488372 | 90 | 0.621331 | 176 | 1,397 | 4.806818 | 0.352273 | 0.130024 | 0.148936 | 0.15721 | 0.277778 | 0.277778 | 0.211584 | 0.13357 | 0 | 0 | 0 | 0.018709 | 0.234789 | 1,397 | 42 | 91 | 33.261905 | 0.772685 | 0.090193 | 0 | 0 | 0 | 0 | 0.117837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.103448 | 0.172414 | 0.655172 | 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 |
0bfb82e45bcb38af7fe1559972d55ecd1f4d82d4 | 2,174 | py | Python | irec/recommendation/agents/value_functions/base.py | irec-org/irec | a7ec8a53dcb6489c31f64d7192720baca50e0049 | [
"MIT"
] | 2 | 2022-02-09T17:50:20.000Z | 2022-02-09T17:50:22.000Z | irec/recommendation/agents/value_functions/base.py | irec-org/irec | a7ec8a53dcb6489c31f64d7192720baca50e0049 | [
"MIT"
] | 1 | 2022-03-16T15:29:03.000Z | 2022-03-17T01:20:02.000Z | irec/recommendation/agents/value_functions/base.py | irec-org/irec | a7ec8a53dcb6489c31f64d7192720baca50e0049 | [
"MIT"
] | null | null | null | from irec.recommendation.agents.action import Action
from irec.recommendation.agents.action import Action
from typing import Any, Dict, Tuple
class ValueFunction:
"""ValueFunction.
One of the goals in RS is to estimate the usefulness of a recommendation for a user.
From an RL perspective, in addition to a... | 29.780822 | 95 | 0.616835 | 259 | 2,174 | 5.104247 | 0.401544 | 0.060514 | 0.033283 | 0.04236 | 0.110439 | 0.072617 | 0.072617 | 0.072617 | 0 | 0 | 0 | 0.00267 | 0.310948 | 2,174 | 72 | 96 | 30.194444 | 0.87984 | 0.575437 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0.058824 | 0.176471 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
0bfc57d526fa5e1fa970d13260090c69bb0674f1 | 281 | py | Python | modeling/__init__.py | MatthewAbugeja/agw | 51c3d549e3cb8cecfd21e7b73af81b73d8996357 | [
"MIT"
] | 501 | 2020-01-14T06:31:35.000Z | 2022-03-31T05:34:05.000Z | modeling/__init__.py | MatthewAbugeja/agw | 51c3d549e3cb8cecfd21e7b73af81b73d8996357 | [
"MIT"
] | 19 | 2020-01-15T06:07:16.000Z | 2022-03-01T11:46:00.000Z | modeling/__init__.py | MatthewAbugeja/agw | 51c3d549e3cb8cecfd21e7b73af81b73d8996357 | [
"MIT"
] | 88 | 2020-01-15T03:44:22.000Z | 2022-03-23T11:41:55.000Z | # encoding: utf-8
from .baseline import Baseline
def build_model(cfg, num_classes):
model = Baseline(num_classes, cfg.MODEL.LAST_STRIDE, cfg.MODEL.PRETRAIN_PATH, cfg.MODEL.NAME,
cfg.MODEL.GENERALIZED_MEAN_POOL, cfg.MODEL.PRETRAIN_CHOICE)
return model | 35.125 | 97 | 0.729537 | 39 | 281 | 5.051282 | 0.564103 | 0.203046 | 0.162437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004329 | 0.177936 | 281 | 8 | 98 | 35.125 | 0.848485 | 0.053381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
041da4782d1b896d2a0fbeafe25cfab53ad0bd69 | 165 | py | Python | Lib/async/examples/disconnect.py | pyparallel/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | Lib/async/examples/disconnect.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | Lib/async/examples/disconnect.py | tpn/pyparallel | 11e8c6072d48c8f13641925d17b147bf36ee0ba3 | [
"PSF-2.0"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | import time
import async
class Disconnect:
pass
server = async.server('10.211.55.3', 20019)
async.register(transport=server, protocol=Disconnect)
async.run()
| 15 | 53 | 0.751515 | 23 | 165 | 5.391304 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090278 | 0.127273 | 165 | 10 | 54 | 16.5 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0.067073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.142857 | 0.285714 | 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 |
042349ce009a81dd1f27e084c02be83b2872c18a | 447 | py | Python | solutions/python3/403.py | sm2774us/amazon_interview_prep_2021 | f580080e4a6b712b0b295bb429bf676eb15668de | [
"MIT"
] | 42 | 2020-08-02T07:03:49.000Z | 2022-03-26T07:50:15.000Z | solutions/python3/403.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | null | null | null | solutions/python3/403.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | 40 | 2020-02-08T02:50:24.000Z | 2022-03-26T15:38:10.000Z | class Solution:
def canCross(self, stones):
memo, stones, target = {}, set(stones), stones[-1]
def dfs(unit, last):
if unit == target: return True
if (unit, last) not in memo:
memo[(unit, last)] = any(dfs(unit + move, move) for move in (last - 1, last, last +... | 49.666667 | 137 | 0.55481 | 65 | 447 | 3.815385 | 0.369231 | 0.129032 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.322148 | 447 | 9 | 138 | 49.666667 | 0.79868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.555556 | 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 |
04411ba270af132ab32e5d2ebf5231b9b870f070 | 122 | py | Python | rootnum/__main__.py | gXLg/rootnum | a617e30475a12ed6c23f9a1b35f54326824e6d7a | [
"MIT"
] | 1 | 2021-10-04T10:37:31.000Z | 2021-10-04T10:37:31.000Z | rootnum/__main__.py | gXLg/Rootnum | a617e30475a12ed6c23f9a1b35f54326824e6d7a | [
"MIT"
] | null | null | null | rootnum/__main__.py | gXLg/Rootnum | a617e30475a12ed6c23f9a1b35f54326824e6d7a | [
"MIT"
] | null | null | null | from rootnum import Rootnum
num = Rootnum([(1, 1), (1, 5)], 2)
print(num)
a = num + (1, 2)
b = 1 / num
print(a)
print(b)
| 13.555556 | 34 | 0.57377 | 24 | 122 | 2.916667 | 0.416667 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.213115 | 122 | 8 | 35 | 15.25 | 0.645833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 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 |
044293c17746d65373143d813f19bb676285ccaa | 930 | py | Python | MaterialExtra/printEinput.py | AmadorZcv/Python-MiniCurso | efd49ef9b2acde52807555614cafdfe416658375 | [
"MIT"
] | null | null | null | MaterialExtra/printEinput.py | AmadorZcv/Python-MiniCurso | efd49ef9b2acde52807555614cafdfe416658375 | [
"MIT"
] | null | null | null | MaterialExtra/printEinput.py | AmadorZcv/Python-MiniCurso | efd49ef9b2acde52807555614cafdfe416658375 | [
"MIT"
] | null | null | null | # Print recebe Strings como argumentos ou coisas que podem ser convertidas em strings
umFloat = 3.14
print("Numero convertido para string", umFloat)
print("Hello World")
print()
# São aceitos varias strings ou uma conjunta
print("Hello", "World")
print("Hello" + "World")
print("Podemos notar que a diferença entre uma g... | 44.285714 | 147 | 0.763441 | 147 | 930 | 4.829932 | 0.530612 | 0.042254 | 0.06338 | 0.084507 | 0.157746 | 0.098592 | 0.098592 | 0.098592 | 0 | 0 | 0 | 0.010139 | 0.151613 | 930 | 20 | 148 | 46.5 | 0.889734 | 0.311828 | 0 | 0.142857 | 0 | 0.071429 | 0.618297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0 | 0.785714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
0457a9c777933505031b5387a60efc5fff037911 | 2,932 | py | Python | tests/alelo/test_tasks.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 4 | 2020-01-21T00:21:44.000Z | 2021-06-15T19:38:36.000Z | tests/alelo/test_tasks.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 173 | 2019-11-18T08:19:44.000Z | 2021-09-08T01:37:19.000Z | tests/alelo/test_tasks.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 3 | 2020-01-28T19:19:35.000Z | 2021-05-01T02:33:36.000Z | from datetime import datetime
from decimal import Decimal
from base_site.alelo.models import AleloItem
from base_site.alelo.models import AleloItemSetup
from base_site.alelo.tasks import check_items
from base_site.mainapp.models import Category
from base_site.mainapp.models import FamilyMember
from base_site.mainapp.m... | 35.756098 | 117 | 0.695089 | 371 | 2,932 | 5.299191 | 0.177898 | 0.059512 | 0.042726 | 0.038657 | 0.831129 | 0.765005 | 0.672431 | 0.672431 | 0.672431 | 0.672431 | 0 | 0.019492 | 0.195089 | 2,932 | 81 | 118 | 36.197531 | 0.813559 | 0 | 0 | 0.508475 | 0 | 0 | 0.034789 | 0 | 0 | 0 | 0 | 0 | 0.271186 | 1 | 0.050847 | false | 0 | 0.169492 | 0 | 0.237288 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f0aba91a6b6012f7b01da740c64748474c3d28b3 | 13 | py | Python | basestation/bot/bot_exchange.py | cornell-cup/cs-minibot | bf44124f103570a9796430f2978b12dd2c0405c2 | [
"Apache-2.0"
] | 9 | 2017-10-01T17:30:10.000Z | 2020-07-16T04:32:37.000Z | basestation/bot/bot_exchange.py | cornell-cup/cs-minibot | bf44124f103570a9796430f2978b12dd2c0405c2 | [
"Apache-2.0"
] | 53 | 2017-10-03T02:11:51.000Z | 2018-03-25T01:56:30.000Z | basestation/bot/bot_exchange.py | cornell-cup/cs-minibot | bf44124f103570a9796430f2978b12dd2c0405c2 | [
"Apache-2.0"
] | 2 | 2017-10-03T15:43:46.000Z | 2018-03-17T19:25:36.000Z | msg_map = {}
| 6.5 | 12 | 0.538462 | 2 | 13 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 13 | 1 | 13 | 13 | 0.6 | 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 |
f0bd1c141f7a6b1f358216999c5bf0bb0f890ace | 79 | py | Python | xlsxwriter/__init__.py | nickgashkov/XlsxWriter | 3a5d426f0c285f4b3056d8bc52a0506f30704acc | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-01-09T19:43:43.000Z | 2019-01-09T19:43:43.000Z | xlsxwriter/__init__.py | nickgashkov/XlsxWriter | 3a5d426f0c285f4b3056d8bc52a0506f30704acc | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | xlsxwriter/__init__.py | nickgashkov/XlsxWriter | 3a5d426f0c285f4b3056d8bc52a0506f30704acc | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | __version__ = '1.1.1'
__VERSION__ = __version__
from .workbook import Workbook
| 19.75 | 30 | 0.78481 | 10 | 79 | 5 | 0.5 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.126582 | 79 | 3 | 31 | 26.333333 | 0.681159 | 0 | 0 | 0 | 0 | 0 | 0.063291 | 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 |
f0d2cca69f09af2b8f479d676aa3fb27327e1ac3 | 508 | py | Python | torchrec/distributed/planner/__init__.py | mreso/torchrec | a06ad87676e1dfdfd529787c9cc4b023c02cbca2 | [
"BSD-3-Clause"
] | null | null | null | torchrec/distributed/planner/__init__.py | mreso/torchrec | a06ad87676e1dfdfd529787c9cc4b023c02cbca2 | [
"BSD-3-Clause"
] | null | null | null | torchrec/distributed/planner/__init__.py | mreso/torchrec | a06ad87676e1dfdfd529787c9cc4b023c02cbca2 | [
"BSD-3-Clause"
] | 1 | 2022-02-09T23:52:22.000Z | 2022-02-09T23:52:22.000Z | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from torchrec.distributed.planner.planners import EmbeddingShardingPlanner # noqa
from ... | 29.882353 | 82 | 0.761811 | 66 | 508 | 5.818182 | 0.727273 | 0.09375 | 0.179688 | 0.234375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002353 | 0.163386 | 508 | 16 | 83 | 31.75 | 0.901176 | 0.46063 | 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 | 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 |
f0d659acf722bc81298cd87a59add8c9904ef1f1 | 327 | py | Python | pyplgr/plgrconv/api.py | ohmin839/pyplgr | b560d12b497f40c9de3785d59d40db5ea004771a | [
"MIT"
] | null | null | null | pyplgr/plgrconv/api.py | ohmin839/pyplgr | b560d12b497f40c9de3785d59d40db5ea004771a | [
"MIT"
] | null | null | null | pyplgr/plgrconv/api.py | ohmin839/pyplgr | b560d12b497f40c9de3785d59d40db5ea004771a | [
"MIT"
] | null | null | null | def create_polytonic_converter():
def to_polytonic(text):
from .lexer import create_lexer
from .parser import create_parser
lexer = create_lexer()
parser = create_parser()
return parser.parse(text, lexer=lexer)
return to_polytonic
to_polytonic = create_polytonic_conver... | 23.357143 | 46 | 0.69419 | 38 | 327 | 5.684211 | 0.315789 | 0.152778 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238532 | 327 | 13 | 47 | 25.153846 | 0.86747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f0ef9a81d3ad664eb73dcac57131474b8d4c275a | 6,616 | py | Python | stoq/logo.py | maydewd/stoq | f72bbaf273640d645b8f9c20dc587e03373e24be | [
"Apache-2.0"
] | null | null | null | stoq/logo.py | maydewd/stoq | f72bbaf273640d645b8f9c20dc587e03373e24be | [
"Apache-2.0"
] | null | null | null | stoq/logo.py | maydewd/stoq | f72bbaf273640d645b8f9c20dc587e03373e24be | [
"Apache-2.0"
] | null | null | null | # Copyright 2014-2017 PUNCH Cyber Analytics Group
#
# 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 applica... | 31.504762 | 76 | 0.230804 | 321 | 6,616 | 4.962617 | 0.433022 | 0.101695 | 0.118644 | 0.120527 | 0.346516 | 0.296924 | 0.281858 | 0.231638 | 0.231638 | 0.231638 | 0 | 0.039421 | 0.50922 | 6,616 | 209 | 77 | 31.655502 | 0.337234 | 0.100363 | 0 | 0.352201 | 0 | 0 | 0.893099 | 0.016746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006289 | false | 0 | 0.012579 | 0 | 0.025157 | 0.006289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f0f151863ccfa3eaa51ae6f894adf5d0e5095383 | 134 | py | Python | testrpc/__init__.py | ryepdx/eth-testrpc | f5d4d6570630f2f3c6bb5a559ba9ad530611c164 | [
"MIT"
] | null | null | null | testrpc/__init__.py | ryepdx/eth-testrpc | f5d4d6570630f2f3c6bb5a559ba9ad530611c164 | [
"MIT"
] | null | null | null | testrpc/__init__.py | ryepdx/eth-testrpc | f5d4d6570630f2f3c6bb5a559ba9ad530611c164 | [
"MIT"
] | null | null | null | # __version__ is for deploying with seed.
# VERSION is to keep the rest of the app DRY.
__version__ = '0.1.18'
VERSION = __version__
| 22.333333 | 45 | 0.738806 | 22 | 134 | 3.954545 | 0.727273 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.186567 | 134 | 5 | 46 | 26.8 | 0.761468 | 0.619403 | 0 | 0 | 0 | 0 | 0.125 | 0 | 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 |
0b080e79c234c5f441ce17d46d88b2ac72413c67 | 1,882 | py | Python | setup.py | VirgilSecurity/crypto-python | dce0a816c76201631917777fd11a841a27b484ba | [
"BSD-3-Clause"
] | 9 | 2016-11-07T07:01:04.000Z | 2021-08-31T06:58:43.000Z | setup.py | VirgilSecurity/crypto-python | dce0a816c76201631917777fd11a841a27b484ba | [
"BSD-3-Clause"
] | 2 | 2020-04-10T08:14:05.000Z | 2021-03-24T02:49:08.000Z | setup.py | VirgilSecurity/crypto-python | dce0a816c76201631917777fd11a841a27b484ba | [
"BSD-3-Clause"
] | null | null | null | from virgil_crypto import __version__
from setuptools import setup, find_packages
setup(
name="virgil-crypto",
version=__version__,
author="Virgil Security",
url="https://virgilsecurity.com/",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: ... | 45.902439 | 223 | 0.698193 | 227 | 1,882 | 5.709251 | 0.436123 | 0.087963 | 0.096451 | 0.080247 | 0.567901 | 0.567901 | 0.567901 | 0.567901 | 0.567901 | 0.567901 | 0 | 0.007417 | 0.212009 | 1,882 | 40 | 224 | 47.05 | 0.866487 | 0 | 0 | 0.162162 | 0 | 0.108108 | 0.716108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.054054 | 0.054054 | 0 | 0.054054 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
0b181c505df230b803e3b40addc66fe5a82968a6 | 281 | py | Python | adv/chelle.py | dl-stuff/dl | 185cc8a16339c47ed873768ff30804f8d06090a2 | [
"Apache-2.0"
] | 22 | 2020-04-04T17:34:16.000Z | 2021-09-25T00:22:23.000Z | adv/chelle.py | dl-stuff/dl | 185cc8a16339c47ed873768ff30804f8d06090a2 | [
"Apache-2.0"
] | 92 | 2020-04-04T15:30:34.000Z | 2022-03-24T01:43:11.000Z | adv/chelle.py | dl-stuff/dl | 185cc8a16339c47ed873768ff30804f8d06090a2 | [
"Apache-2.0"
] | 37 | 2020-04-16T02:47:07.000Z | 2021-03-28T23:18:50.000Z | from core.advbase import *
class Chelle(Adv):
def prerun(self):
Event("dragon_end").listener(self.shift_end_inspiration)
def shift_end_inspiration(self, e):
if self.nihilism:
return
self.inspiration.add(5)
variants = {None: Chelle}
| 18.733333 | 64 | 0.647687 | 35 | 281 | 5.057143 | 0.685714 | 0.090395 | 0.214689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004717 | 0.245552 | 281 | 14 | 65 | 20.071429 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0.035587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9bd17a95a9497acdfcf71c30c1323c28cdf312a2 | 209 | py | Python | ocrd_vandalize/constants.py | bertsky/ocrd_vandalize | 0cb84fb387d0145d386c2a425f20beee5d355b3d | [
"Apache-2.0"
] | 8 | 2021-12-15T14:45:11.000Z | 2022-02-09T16:51:20.000Z | ocrd_vandalize/constants.py | bertsky/ocrd_vandalize | 0cb84fb387d0145d386c2a425f20beee5d355b3d | [
"Apache-2.0"
] | 1 | 2022-01-14T10:58:27.000Z | 2022-01-14T10:58:27.000Z | ocrd_vandalize/constants.py | bertsky/ocrd_vandalize | 0cb84fb387d0145d386c2a425f20beee5d355b3d | [
"Apache-2.0"
] | 2 | 2022-01-14T11:06:54.000Z | 2022-01-21T14:54:10.000Z | from json import loads
from pkg_resources import resource_string, resource_filename
OCRD_TOOL = loads(resource_string(__name__, 'ocrd-tool.json'))
FONT = resource_filename(__name__, 'UnifrakturMaguntia.ttf')
| 34.833333 | 62 | 0.827751 | 27 | 209 | 5.888889 | 0.555556 | 0.176101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086124 | 209 | 5 | 63 | 41.8 | 0.832461 | 0 | 0 | 0 | 0 | 0 | 0.172249 | 0.105263 | 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 |
9bf590f0e089ada280a5778de5e3a625f10f6cf9 | 245 | py | Python | vowcons37.py | indraputra147/belajarpython | 13ed3e73a75f25cc6c2c0e1fc7af17ffa53e5760 | [
"MIT"
] | null | null | null | vowcons37.py | indraputra147/belajarpython | 13ed3e73a75f25cc6c2c0e1fc7af17ffa53e5760 | [
"MIT"
] | null | null | null | vowcons37.py | indraputra147/belajarpython | 13ed3e73a75f25cc6c2c0e1fc7af17ffa53e5760 | [
"MIT"
] | null | null | null | x = input("input a letter : ")
if x == "a" or x == "i" or x == "u" or x == "e" or x == "o":
print("This is a vowel!")
elif x == "y":
print("Sometimes y is a vowel and sometimes y is a consonant")
else:
print("This is a consonant!")
| 27.222222 | 66 | 0.546939 | 46 | 245 | 2.913043 | 0.434783 | 0.089552 | 0.164179 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261224 | 245 | 8 | 67 | 30.625 | 0.740331 | 0 | 0 | 0 | 0 | 0 | 0.457143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
500f44914170ac578b61d4dec5faf6d81763fc76 | 180 | py | Python | examples/example_getPackageInfoJSON.py | jkpubsrc/python-module-jk-pypiorgapi | a22f4a1d249e9fd9e09317d67d4fcb96d15bd478 | [
"Apache-1.1"
] | 2 | 2021-12-23T21:31:53.000Z | 2022-03-31T05:17:39.000Z | examples/example_getPackageInfoJSON.py | jkpubsrc/python-module-jk-pypiorgapi | a22f4a1d249e9fd9e09317d67d4fcb96d15bd478 | [
"Apache-1.1"
] | 1 | 2021-04-14T10:14:37.000Z | 2021-04-14T10:26:36.000Z | examples/example_getPackageInfoJSON.py | jkpubsrc/python-module-jk-pypiorgapi | a22f4a1d249e9fd9e09317d67d4fcb96d15bd478 | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python3
import jk_pypiorgapi
import jk_json
api = jk_pypiorgapi.PyPiOrgAPI()
jData = api.getPackageInfoJSON("jk_pypiorgapi")
jk_json.prettyPrint(jData)
| 7.5 | 47 | 0.738889 | 22 | 180 | 5.818182 | 0.5 | 0.28125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.161111 | 180 | 23 | 48 | 7.826087 | 0.84106 | 0.094444 | 0 | 0 | 0 | 0 | 0.084416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5018ce9c3465955d06d6c944fd96ca81f06ec956 | 216 | py | Python | CursoIntensivoPython/curso-intensivo-python-master/capitulo_05/exercicios/alienigenas_3.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | CursoIntensivoPython/curso-intensivo-python-master/capitulo_05/exercicios/alienigenas_3.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | CursoIntensivoPython/curso-intensivo-python-master/capitulo_05/exercicios/alienigenas_3.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | cor_do_alien = 'vermelho'
if cor_do_alien == 'verde':
pontos = 5
elif cor_do_alien == 'amarelo':
pontos = 10
elif cor_do_alien == 'vermelho':
pontos = 15
print(f'Você acabou de ganhar {pontos} pontos!')
| 21.6 | 48 | 0.671296 | 33 | 216 | 4.151515 | 0.545455 | 0.145985 | 0.291971 | 0.262774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028902 | 0.199074 | 216 | 9 | 49 | 24 | 0.763006 | 0 | 0 | 0 | 0 | 0 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 |
501a46e3a2f26eeaa4a866b69cf67636970b584a | 73 | py | Python | Chapter 05/ch5_3.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 05/ch5_3.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | Chapter 05/ch5_3.py | bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE | f6a4194684515495d00aa38347a725dd08f39a0c | [
"MIT"
] | null | null | null | value=1000
if value<10000:
value-=50(one tab required)
print(value)
| 14.6 | 29 | 0.712329 | 12 | 73 | 4.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180328 | 0.164384 | 73 | 4 | 30 | 18.25 | 0.672131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 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 |
5030debf0e1e09bbaa9586e73052ff15ded682d1 | 11,887 | py | Python | templates/study.py | tiendat101001/PythonProgrammingPuzzles | e4a6504bf783ad1ab93686cedd5d1818af92a5e4 | [
"MIT"
] | null | null | null | templates/study.py | tiendat101001/PythonProgrammingPuzzles | e4a6504bf783ad1ab93686cedd5d1818af92a5e4 | [
"MIT"
] | null | null | null | templates/study.py | tiendat101001/PythonProgrammingPuzzles | e4a6504bf783ad1ab93686cedd5d1818af92a5e4 | [
"MIT"
] | null | null | null | """
Problems used for the study.
"""
from problems import Problem
from typing import List, Set
# Hint: subclass Problem.Debug for quick testing. Run make_dataset.py to make the dataset
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle for more info
class Study_1(Problem):
"Fi... | 28.922141 | 120 | 0.600656 | 1,893 | 11,887 | 3.749604 | 0.170629 | 0.12891 | 0.078614 | 0.091293 | 0.439983 | 0.331784 | 0.224289 | 0.163567 | 0.129191 | 0.092561 | 0 | 0.066429 | 0.269286 | 11,887 | 410 | 121 | 28.992683 | 0.750748 | 0.343484 | 0 | 0.491803 | 0 | 0.036885 | 0.170307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.008197 | 0.237705 | 0.631148 | 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 |
50323d4a0d8d859b280b2311dad4c7acec666482 | 504 | py | Python | nanome/util/import_utils.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | nanome/util/import_utils.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | nanome/util/import_utils.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | import sys
if sys.version_info >= (3, 1) or sys.version_info == (2, 7):
from importlib import util
class ImportUtils(object):
@staticmethod
def check_import_exists(lib_name):
# type: (str) -> bool
if sys.version_info >= (3, 1) or sys.version_info == (2, 7):
spec = util.find_spe... | 28 | 68 | 0.535714 | 61 | 504 | 4.213115 | 0.557377 | 0.155642 | 0.217899 | 0.124514 | 0.280156 | 0.280156 | 0.280156 | 0.280156 | 0.280156 | 0.280156 | 0 | 0.025 | 0.365079 | 504 | 18 | 69 | 28 | 0.778125 | 0.037698 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 |
504c995f9e0991d07f2fe0039f742d066222dd53 | 696 | py | Python | qcloudsdkeip/EipBmUnBindVpcIpRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkeip/EipBmUnBindVpcIpRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkeip/EipBmUnBindVpcIpRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class EipBmUnBindVpcIpRequest(Request):
def __init__(self):
super(EipBmUnBindVpcIpRequest, self).__init__(
'eip', 'qcloudcliV1', 'EipBmUnBindVpcIp', 'eip.api.qcloud.com')
def get_eipId(self):
return self.get_params... | 24.857143 | 75 | 0.640805 | 85 | 696 | 5.011765 | 0.329412 | 0.042254 | 0.098592 | 0.119718 | 0.183099 | 0.183099 | 0 | 0 | 0 | 0 | 0 | 0.00367 | 0.216954 | 696 | 27 | 76 | 25.777778 | 0.777982 | 0.030172 | 0 | 0 | 0 | 0 | 0.115899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.411765 | false | 0 | 0.058824 | 0.176471 | 0.705882 | 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 |
ac9282fca213086c6d1c5222a4610a7f28e41cd3 | 341 | py | Python | Exercicios1a10/ex008.py | ItamarHavenstein/Python | fe536302aea00a4a898e0f54f5b9fa6aba3301cb | [
"MIT"
] | null | null | null | Exercicios1a10/ex008.py | ItamarHavenstein/Python | fe536302aea00a4a898e0f54f5b9fa6aba3301cb | [
"MIT"
] | null | null | null | Exercicios1a10/ex008.py | ItamarHavenstein/Python | fe536302aea00a4a898e0f54f5b9fa6aba3301cb | [
"MIT"
] | null | null | null | metros = float(input('Digite uma distância em metros: '))
print('A medida de {}m corresponde a '.format(metros))
print('{}km'.format(metros * .001))
print('{}hm'.format(metros * .01))
print('{:.1f}dam'.format(metros * .1))
print('{:.0f}dm'.format(metros * 10))
print('{:.0f}cm'.format(metros * 100))
print('{:.0f}mm'.fo... | 34.1 | 57 | 0.642229 | 51 | 341 | 4.294118 | 0.54902 | 0.383562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061889 | 0.099707 | 341 | 9 | 58 | 37.888889 | 0.651466 | 0 | 0 | 0 | 0 | 0 | 0.302053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.875 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ac94c33ab8a47c8d377409f552f37d9209b854b4 | 674 | py | Python | screws/functions/_2d_space/geometrical_functions/straight_line.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | 1 | 2020-10-14T12:48:35.000Z | 2020-10-14T12:48:35.000Z | screws/functions/_2d_space/geometrical_functions/straight_line.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | screws/functions/_2d_space/geometrical_functions/straight_line.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null |
from screws.decorators.accepts import accepts
import numpy as np
class StraightLine(object):
@accepts('self', (tuple, list), (tuple, list))
def __init__(self, start_point, end_point):
assert np.shape(start_point) == np.shape(end_point) == (2,)
self.x1, self.y1 = start_point
self.x2, ... | 29.304348 | 89 | 0.60089 | 102 | 674 | 3.794118 | 0.343137 | 0.072351 | 0.077519 | 0.062016 | 0.136951 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033399 | 0.244807 | 674 | 23 | 90 | 29.304348 | 0.726916 | 0.01632 | 0 | 0 | 0 | 0 | 0.006051 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.266667 | false | 0 | 0.133333 | 0.2 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
acaeef2acaab86d7bfeb027ac57b63eccd78d538 | 76 | py | Python | Conditional/Lista 1/Everton/02.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | 7 | 2021-05-25T16:49:20.000Z | 2022-02-17T11:57:32.000Z | Conditional/Lista 1/Everton/02.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | null | null | null | Conditional/Lista 1/Everton/02.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | 8 | 2021-05-25T16:49:39.000Z | 2021-09-30T18:02:07.000Z | x = int(input())
if x%2 == 0:
print("É par!")
else:
print("É ímpar!")
| 10.857143 | 20 | 0.5 | 14 | 76 | 2.714286 | 0.785714 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.236842 | 76 | 6 | 21 | 12.666667 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
acc9bb15be28547efac79797c8a958741f3abe18 | 357 | py | Python | sorting_algorithms/bubble_sort.py | ju-c/basic-sorting-algorithms-python | e39453d0fbc01e7a547a7f72709843091eceeb61 | [
"MIT"
] | null | null | null | sorting_algorithms/bubble_sort.py | ju-c/basic-sorting-algorithms-python | e39453d0fbc01e7a547a7f72709843091eceeb61 | [
"MIT"
] | null | null | null | sorting_algorithms/bubble_sort.py | ju-c/basic-sorting-algorithms-python | e39453d0fbc01e7a547a7f72709843091eceeb61 | [
"MIT"
] | null | null | null | def bubble_sort(alist):
for i in range(len(alist)-1, 0, -1):
for j in range(i):
if alist[j] > alist[j+1]:
temp = alist[j]
alist[j] = alist[j+1]
alist[j+1] = temp
return alist
list_to_sort = [147, -16, 18, 91, 44, 1, 8, 54, 31, 18]
bubble_so... | 22.3125 | 55 | 0.515406 | 60 | 357 | 2.933333 | 0.433333 | 0.204545 | 0.1875 | 0.204545 | 0.147727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105932 | 0.338936 | 357 | 15 | 56 | 23.8 | 0.639831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.090909 | 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 |
accf86af349e2484dc5d5d6adb4a31892f573c45 | 799 | py | Python | python/menu_item.py | elb-dev/ITC-255 | c4390e32a8f64fc81928d6dadfc43a39d10a0721 | [
"Apache-2.0"
] | null | null | null | python/menu_item.py | elb-dev/ITC-255 | c4390e32a8f64fc81928d6dadfc43a39d10a0721 | [
"Apache-2.0"
] | null | null | null | python/menu_item.py | elb-dev/ITC-255 | c4390e32a8f64fc81928d6dadfc43a39d10a0721 | [
"Apache-2.0"
] | null | null | null | class MenuItem():
def __init__(self, itemID, itemName, itemPrice):
self.itemID = itemID
self.itemName = itemName
self.itemPrice = itemPrice
self.itemMods = list()
def getItemID(self):
return self.itemID
def setItemID(self, itemID):
self.itemID = s... | 24.212121 | 53 | 0.604506 | 82 | 799 | 5.792683 | 0.280488 | 0.126316 | 0.147368 | 0.084211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310388 | 799 | 33 | 54 | 24.212121 | 0.862069 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0.208333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
acd34cab8b0b35524c55a97f674a34aa3e444051 | 173 | py | Python | codewof/programming/content/en/find-highest-number/initial.py | taskmaker1/codewof | 92d52cd3ee91f0f311ff01a92cf6ec07e5593b8d | [
"MIT"
] | 3 | 2019-08-29T04:11:22.000Z | 2021-06-22T16:05:51.000Z | codewof/programming/content/en/find-highest-number/initial.py | taskmaker1/codewof | 92d52cd3ee91f0f311ff01a92cf6ec07e5593b8d | [
"MIT"
] | 265 | 2019-05-30T03:51:46.000Z | 2022-03-31T01:05:12.000Z | codewof/programming/content/en/find-highest-number/initial.py | samuelsandri/codewof | c9b8b378c06b15a0c42ae863b8f46581de04fdfc | [
"MIT"
] | 7 | 2019-06-29T12:13:37.000Z | 2021-09-06T06:49:14.000Z | def find_highest_number(numbers):
highest_number = 0
for num in numbers:
if num > highest_number:
highest_number = num
return highest_number
| 24.714286 | 33 | 0.66474 | 22 | 173 | 4.954545 | 0.5 | 0.59633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.289017 | 173 | 6 | 34 | 28.833333 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 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 |
acd498e0d1d848044f862d59dfed7fdff38b84c6 | 348 | py | Python | settings/views.py | thedod/django-db-settings | 6ce6db527884f2db572e7f2f1cb10a128054751b | [
"MIT"
] | 4 | 2021-02-06T00:20:08.000Z | 2022-03-15T16:09:50.000Z | settings/views.py | thedod/django-db-settings | 6ce6db527884f2db572e7f2f1cb10a128054751b | [
"MIT"
] | null | null | null | settings/views.py | thedod/django-db-settings | 6ce6db527884f2db572e7f2f1cb10a128054751b | [
"MIT"
] | 3 | 2020-05-03T09:15:26.000Z | 2021-05-21T05:40:06.000Z | from django.contrib import messages
from django.contrib.admin.views.decorators import staff_member_required
from django.http import JsonResponse
from django.shortcuts import redirect
from .business import clear_settings_cache, get_setting
@staff_member_required
def get(request):
return JsonResponse(get_setting(r... | 29 | 71 | 0.83908 | 47 | 348 | 6.042553 | 0.510638 | 0.140845 | 0.119718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094828 | 348 | 11 | 72 | 31.636364 | 0.901587 | 0 | 0 | 0 | 0 | 0 | 0.020115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.625 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
acfb20c69fb8701660c1513d76fe0a67555f4fc8 | 3,575 | py | Python | test/test_project_api.py | ContrastingSounds/looker_sdk_31 | f973434049fff1b605b10086ab8b84f2f62e3489 | [
"MIT"
] | null | null | null | test/test_project_api.py | ContrastingSounds/looker_sdk_31 | f973434049fff1b605b10086ab8b84f2f62e3489 | [
"MIT"
] | null | null | null | test/test_project_api.py | ContrastingSounds/looker_sdk_31 | f973434049fff1b605b10086ab8b84f2f62e3489 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Experimental Looker API 3.1 Preview
This API 3.1 is in active development. Breaking changes are likely to occur to some API functions in future Looker releases until API 3.1 is officially launched and upgraded to beta status. If you have time and interest to experiment with new or modifie... | 24.319728 | 518 | 0.632168 | 458 | 3,575 | 4.722707 | 0.268559 | 0.070273 | 0.081368 | 0.110957 | 0.404531 | 0.263985 | 0.108183 | 0.030513 | 0 | 0 | 0 | 0.032245 | 0.297343 | 3,575 | 146 | 519 | 24.486301 | 0.828822 | 0.49958 | 0 | 0.386364 | 0 | 0 | 0.005706 | 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 |
4a1806928f6a65b3b307f4ced75da875a17f0e56 | 18,051 | py | Python | src/pyhees/section3_2_8.py | BRI-EES-House/pyhees | 7ebe8c24226f0cb7654eea6ac37c5cea35f50e6b | [
"MIT"
] | null | null | null | src/pyhees/section3_2_8.py | BRI-EES-House/pyhees | 7ebe8c24226f0cb7654eea6ac37c5cea35f50e6b | [
"MIT"
] | 3 | 2022-01-04T07:29:52.000Z | 2022-03-19T08:02:51.000Z | src/pyhees/section3_2_8.py | BRI-EES-House/pyhees | 7ebe8c24226f0cb7654eea6ac37c5cea35f50e6b | [
"MIT"
] | 2 | 2022-01-19T07:57:10.000Z | 2022-03-07T00:25:54.000Z | from pyhees.section3_2_b import get_H
from pyhees.section3_2_c import get_nu_H, get_nu_C
from pyhees.section3_4_b_2 import get_glass_spec_category
from pyhees.section3_4 import common, window, door, heatbridge, earthfloor, gamma
from pyhees.section3_3_5 import *
from pyhees.section3_3_6 import *
# ====================... | 30.135225 | 103 | 0.584012 | 2,447 | 18,051 | 3.934614 | 0.08255 | 0.014125 | 0.021811 | 0.021811 | 0.75592 | 0.729539 | 0.700976 | 0.691005 | 0.660781 | 0.618924 | 0 | 0.009629 | 0.275109 | 18,051 | 598 | 104 | 30.185619 | 0.722812 | 0.200488 | 0 | 0.622517 | 0 | 0 | 0.112072 | 0.002056 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02649 | false | 0 | 0.019868 | 0 | 0.07947 | 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 |
4a1965df56509f833a3dff843ef255f091a80ece | 254 | py | Python | conversion.py | cagis2019/conversion_tofix | d27f5df148bec658b872bf767b1aeed798c1720c | [
"Unlicense"
] | 2 | 2019-08-05T21:06:58.000Z | 2020-08-03T17:52:23.000Z | conversion.py | cagis2019/conversion_tofix | d27f5df148bec658b872bf767b1aeed798c1720c | [
"Unlicense"
] | 7 | 2017-08-01T20:41:42.000Z | 2020-08-03T19:01:34.000Z | conversion.py | cagis2019/conversion_tofix | d27f5df148bec658b872bf767b1aeed798c1720c | [
"Unlicense"
] | 92 | 2017-08-01T18:17:35.000Z | 2021-08-02T21:54:00.000Z | """Conversion tools for Python"""
def dollars2cents(dollars):
"""Convert dollars to cents"""
cents = dollars * 100
return cents
def gallons2liters(gallons):
"""Convert gallons to liters"""
liters = gallons * 3.785
return liters
| 21.166667 | 35 | 0.665354 | 29 | 254 | 5.827586 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.220472 | 254 | 11 | 36 | 23.090909 | 0.808081 | 0.307087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4a1c2009733199f5fc2f350cd792766f30b309a3 | 413 | py | Python | luz/base/tests/test_home.py | HenriqueCCdA/contaDeLuz | c41433eac32f8ff0aca26d44f9cf1f6d227089cd | [
"MIT"
] | null | null | null | luz/base/tests/test_home.py | HenriqueCCdA/contaDeLuz | c41433eac32f8ff0aca26d44f9cf1f6d227089cd | [
"MIT"
] | 21 | 2021-12-06T03:04:01.000Z | 2022-01-30T20:13:57.000Z | luz/base/tests/test_home.py | HenriqueCCdA/contaDeLuz | c41433eac32f8ff0aca26d44f9cf1f6d227089cd | [
"MIT"
] | null | null | null | import pytest
from http import HTTPStatus
from django.test import Client
from luz.base.django_assertions import assertion_contains
@pytest.fixture
def response(client: Client):
return client.get('/')
def test_home_status_code(response):
assert response.status_code == HTTPStatus.OK
def test_home_navbar(r... | 20.65 | 82 | 0.762712 | 56 | 413 | 5.464286 | 0.535714 | 0.111111 | 0.071895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133172 | 413 | 19 | 83 | 21.736842 | 0.854749 | 0 | 0 | 0 | 0 | 0 | 0.113801 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.272727 | false | 0 | 0.363636 | 0.090909 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4a26e6d51404a885e2e99157e3450afa88c5170e | 954 | py | Python | tfx_addons/utils/test_utils.py | digits/tfx-addons | df5dbe307a50988f31a6477775348213dd5d1886 | [
"Apache-2.0"
] | null | null | null | tfx_addons/utils/test_utils.py | digits/tfx-addons | df5dbe307a50988f31a6477775348213dd5d1886 | [
"Apache-2.0"
] | null | null | null | tfx_addons/utils/test_utils.py | digits/tfx-addons | df5dbe307a50988f31a6477775348213dd5d1886 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 38.16 | 80 | 0.675052 | 133 | 954 | 4.827068 | 0.669173 | 0.093458 | 0.040498 | 0.049844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015038 | 0.163522 | 954 | 24 | 81 | 39.75 | 0.789474 | 0.807128 | 0 | 0 | 0 | 0 | 0.006757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c59545aad435d9e09c02e8e98bc1012d3dcacb75 | 132 | py | Python | spykes/plot/__init__.py | mmyros/spykes | a41c60b13951b4a72346dda7e1125c03115e65ec | [
"MIT"
] | 90 | 2016-06-26T21:39:34.000Z | 2022-01-27T21:53:34.000Z | spykes/plot/__init__.py | mmyros/spykes | a41c60b13951b4a72346dda7e1125c03115e65ec | [
"MIT"
] | 74 | 2016-06-25T22:41:11.000Z | 2021-05-15T00:14:23.000Z | spykes/plot/__init__.py | mmyros/spykes | a41c60b13951b4a72346dda7e1125c03115e65ec | [
"MIT"
] | 45 | 2016-06-27T19:54:18.000Z | 2021-02-12T22:30:15.000Z | from __future__ import absolute_import
from .neurovis import NeuroVis
from .popvis import PopVis
__all__ = ['NeuroVis', 'PopVis']
| 18.857143 | 38 | 0.787879 | 16 | 132 | 5.9375 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 132 | 6 | 39 | 22 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c5aacd6d41a79dde84941a334f2f65bf540e99cd | 595 | py | Python | public/respond.py | ceephoen/celery-flask-example | b92febfdd29dc2431c3c39940d3e54d4cc677134 | [
"MIT"
] | null | null | null | public/respond.py | ceephoen/celery-flask-example | b92febfdd29dc2431c3c39940d3e54d4cc677134 | [
"MIT"
] | null | null | null | public/respond.py | ceephoen/celery-flask-example | b92febfdd29dc2431c3c39940d3e54d4cc677134 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
custom resp-code
"""
class RET(object):
OK = "0"
DBERR = "4001"
DATAEXIST = "4002"
DATAERR = "4003"
INVALIDCODE = "4004"
PARAMERR = "4005"
THIRDERR = "4006"
IOERR ... | 24.791667 | 32 | 0.361345 | 41 | 595 | 5.243902 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219858 | 0.52605 | 595 | 23 | 33 | 25.869565 | 0.542553 | 0.065546 | 0 | 0 | 0 | 0 | 0.111314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c5ccd829b2cc23edb1527e87293adabeb61afb71 | 44 | py | Python | pydown/version.py | qorost/pydown | b8ab1ff12c20f0e9e3f7af30bea31f4288025d7e | [
"BSD-2-Clause"
] | null | null | null | pydown/version.py | qorost/pydown | b8ab1ff12c20f0e9e3f7af30bea31f4288025d7e | [
"BSD-2-Clause"
] | null | null | null | pydown/version.py | qorost/pydown | b8ab1ff12c20f0e9e3f7af30bea31f4288025d7e | [
"BSD-2-Clause"
] | null | null | null | script_name = 'pydown'
__version__ = '0.1.0' | 22 | 22 | 0.704545 | 7 | 44 | 3.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.113636 | 44 | 2 | 23 | 22 | 0.589744 | 0 | 0 | 0 | 0 | 0 | 0.244444 | 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 |
c5dde2b9ec5dd2d5a16fd5115138dcf8b8ddf2d9 | 61 | py | Python | test/test_pascals_triangle_ii.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | test/test_pascals_triangle_ii.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | test/test_pascals_triangle_ii.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | solution = PascalsTriangleIi()
assert X == solution.getRow( ) | 30.5 | 30 | 0.754098 | 6 | 61 | 7.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 61 | 2 | 31 | 30.5 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6817f6f385933d67cc755fd28d1a24f187d8e6eb | 343 | py | Python | Python/509.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | 1 | 2020-12-10T05:36:15.000Z | 2020-12-10T05:36:15.000Z | Python/509.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | null | null | null | Python/509.py | JWang169/LintCodeJava | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | [
"CNRI-Python"
] | 3 | 2020-04-06T05:55:08.000Z | 2021-08-29T14:26:54.000Z | class Solution:
def fib(self, N: int) -> int:
self.seen = {}
self.seen[0] = 0
self.seen[1] = 1
return self.dfs(N)
def dfs(self, n):
if n in self.seen:
return self.seen[n]
self.seen[n] = self.dfs(n - 1) + self.dfs(n - 2)
return self.se... | 22.866667 | 56 | 0.446064 | 50 | 343 | 3.06 | 0.3 | 0.366013 | 0.156863 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.413994 | 343 | 15 | 57 | 22.866667 | 0.731343 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
681a1d2d34e45f3f0120a109d240044607233c1f | 172 | py | Python | ex002.py | EwertonRosendo/PastaDeExercicios | 68d23194b87ce1c8405c70fcceb3378955815d7d | [
"MIT"
] | null | null | null | ex002.py | EwertonRosendo/PastaDeExercicios | 68d23194b87ce1c8405c70fcceb3378955815d7d | [
"MIT"
] | null | null | null | ex002.py | EwertonRosendo/PastaDeExercicios | 68d23194b87ce1c8405c70fcceb3378955815d7d | [
"MIT"
] | null | null | null | nome = input("Com quem estou falando? ")
print("foi um prazer te conhecer ", nome)
idade = input("quantos anos você tem, " + nome)
print("então você tem ",idade," ", nome)
| 34.4 | 47 | 0.674419 | 26 | 172 | 4.461538 | 0.692308 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168605 | 172 | 4 | 48 | 43 | 0.811189 | 0 | 0 | 0 | 0 | 0 | 0.517442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a850c66e6dcffc16f16e75b038fbc61c991fb4fb | 365 | py | Python | tracking/DataProvider.py | koravel/orders_generator | 1a73f8cd7a363a44b9aa442f1e32bea816083644 | [
"Apache-2.0"
] | null | null | null | tracking/DataProvider.py | koravel/orders_generator | 1a73f8cd7a363a44b9aa442f1e32bea816083644 | [
"Apache-2.0"
] | null | null | null | tracking/DataProvider.py | koravel/orders_generator | 1a73f8cd7a363a44b9aa442f1e32bea816083644 | [
"Apache-2.0"
] | null | null | null | import abc
import util.TextConstants as tconst
class DataProvider:
@abc.abstractmethod
def add_collector(self, collector):
raise NotImplementedError(tconst.not_implemented_text.format("add_collector"))
def remove_collector(self, collector):
raise NotImplementedError(tconst.not_i... | 30.416667 | 90 | 0.756164 | 39 | 365 | 6.871795 | 0.512821 | 0.089552 | 0.164179 | 0.201493 | 0.567164 | 0.567164 | 0.567164 | 0.567164 | 0.567164 | 0.567164 | 0 | 0 | 0.167123 | 365 | 11 | 91 | 33.181818 | 0.881579 | 0 | 0 | 0 | 0 | 0 | 0.081921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a853a237b7712b44e2663587177f12cf0542f6bb | 789 | py | Python | CarRentBlockChain/blueprints/carrent/carrent.py | 99Kies/CarRentBlockChain | ee37898bec4d82ffa2ad5cc1108e8a6c4cc5c1f8 | [
"Apache-2.0"
] | null | null | null | CarRentBlockChain/blueprints/carrent/carrent.py | 99Kies/CarRentBlockChain | ee37898bec4d82ffa2ad5cc1108e8a6c4cc5c1f8 | [
"Apache-2.0"
] | null | null | null | CarRentBlockChain/blueprints/carrent/carrent.py | 99Kies/CarRentBlockChain | ee37898bec4d82ffa2ad5cc1108e8a6c4cc5c1f8 | [
"Apache-2.0"
] | 1 | 2021-11-21T12:10:21.000Z | 2021-11-21T12:10:21.000Z | from flask import render_template, request, flash, redirect, url_for, jsonify, Blueprint
from flask_login import login_required, current_user, login_user, logout_user
from CarRentBlockChain.extensions import db, csrf_protect
from CarRentBlockChain.config import Config
import random
import time
from ecdsa import Sign... | 23.909091 | 89 | 0.78834 | 97 | 789 | 6.226804 | 0.412371 | 0.092715 | 0.07947 | 0.114238 | 0.134106 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00569 | 0.108999 | 789 | 33 | 90 | 23.909091 | 0.853485 | 0.024081 | 0 | 0.142857 | 0 | 0 | 0.143043 | 0.092328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.380952 | 0.142857 | 0.666667 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
a878fa0496a878ee4fc4c13c9a6fb52326e8d690 | 207 | py | Python | wily-wolves/mud/accounts/urls.py | Rdbaker/summer-code-jam-2020 | fdc1572905c0957df828a6ac6420c6ee680e78ac | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | wily-wolves/mud/accounts/urls.py | Rdbaker/summer-code-jam-2020 | fdc1572905c0957df828a6ac6420c6ee680e78ac | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | wily-wolves/mud/accounts/urls.py | Rdbaker/summer-code-jam-2020 | fdc1572905c0957df828a6ac6420c6ee680e78ac | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | from django.urls import path
from . import views
urlpatterns = [
path('register/', views.RegisterView.as_view(), name='register'),
path('profile/', views.ProfileView.as_view(), name='profile'),
]
| 20.7 | 69 | 0.690821 | 25 | 207 | 5.64 | 0.56 | 0.085106 | 0.141844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140097 | 207 | 9 | 70 | 23 | 0.792135 | 0 | 0 | 0 | 0 | 0 | 0.154589 | 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 |
a881d3b101700a57695c4f4dae271b26091b248c | 55 | py | Python | Python_Basics/08_For_Loop/02_Latin_Letters.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | Python_Basics/08_For_Loop/02_Latin_Letters.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | Python_Basics/08_For_Loop/02_Latin_Letters.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | for i in range(ord('a'), ord('z')+1):
print(chr(i)) | 27.5 | 37 | 0.527273 | 12 | 55 | 2.416667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.163636 | 55 | 2 | 38 | 27.5 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a88dcb531d93304d7038f16d36992bb95133959f | 1,662 | py | Python | regression.py | Galadirith/romspline | 9822079abcf76917a08bfb3c935ea666fc1874a1 | [
"MIT"
] | 5 | 2016-04-04T05:37:49.000Z | 2021-11-21T16:06:15.000Z | regression.py | Galadirith/romspline | 9822079abcf76917a08bfb3c935ea666fc1874a1 | [
"MIT"
] | 36 | 2016-04-10T08:28:41.000Z | 2021-12-13T15:17:47.000Z | regression.py | Galadirith/romspline | 9822079abcf76917a08bfb3c935ea666fc1874a1 | [
"MIT"
] | 6 | 2016-04-04T05:27:33.000Z | 2021-12-13T14:29:27.000Z | """
Test the reduced-order spline greedy algorithm outputs with
previously generated data to make sure the code still works correctly.
"""
from __init__ import state
if state._H5PY:
import h5py
import numpy as np
import greedy, example
def regression():
# Load the reference reduced-order spline data
# which ... | 25.569231 | 97 | 0.657641 | 236 | 1,662 | 4.572034 | 0.411017 | 0.046339 | 0.066728 | 0.055607 | 0.141798 | 0.074143 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.202166 | 1,662 | 64 | 98 | 25.96875 | 0.809201 | 0.200361 | 0 | 0.222222 | 1 | 0 | 0.236641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083333 | 0.111111 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a8b784f26ef35f93366fd50465f63b497f67dc6a | 116 | py | Python | eats/tests/functional/selenium/__init__.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | null | null | null | eats/tests/functional/selenium/__init__.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | 5 | 2021-03-18T21:34:44.000Z | 2022-03-11T23:35:23.000Z | eats/tests/functional/selenium/__init__.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | null | null | null | __author__ = 'vtusan'
from eats.tests.functional.selenium.testserver_selenium import SimpleWebServerProcessSelenium | 38.666667 | 93 | 0.87931 | 11 | 116 | 8.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060345 | 116 | 3 | 93 | 38.666667 | 0.889908 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 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 |
a8bc003b2285cc2d6a10a3ff74e90fce5cf4c690 | 1,280 | py | Python | test/scenarios/boolean/output/src/boolean/azext_boolean/generated/_help.py | kingces95/autorest.az | 616138f2d86d34cb6238e43359cf97738fa2f1bb | [
"MIT"
] | null | null | null | test/scenarios/boolean/output/src/boolean/azext_boolean/generated/_help.py | kingces95/autorest.az | 616138f2d86d34cb6238e43359cf97738fa2f1bb | [
"MIT"
] | 1 | 2021-02-24T09:10:12.000Z | 2021-02-24T09:10:12.000Z | test/scenarios/boolean/output/src/boolean/azext_boolean/generated/_help.py | kingces95/autorest.az | 616138f2d86d34cb6238e43359cf97738fa2f1bb | [
"MIT"
] | 1 | 2021-03-21T03:59:29.000Z | 2021-03-21T03:59:29.000Z | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | 26.122449 | 76 | 0.596094 | 149 | 1,280 | 5.114094 | 0.449664 | 0.082677 | 0.137795 | 0.174541 | 0.485564 | 0.237533 | 0.237533 | 0 | 0 | 0 | 0 | 0 | 0.167188 | 1,280 | 48 | 77 | 26.666667 | 0.714822 | 0.367188 | 0 | 0.448276 | 0 | 0 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.034483 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7636cd808a07a1ad83d8d1b469103296dd6f309e | 1,219 | py | Python | gpflowSlim/__init__.py | jereliu/GPflow-Slim | 5003b60712460be8b981b797b4567372fe77c302 | [
"Apache-2.0"
] | 1 | 2018-07-04T12:35:35.000Z | 2018-07-04T12:35:35.000Z | gpflowSlim/__init__.py | jskDr/GPflow-Slim | 3b6a9eaa4967b7285cbd188b44f670bfda6f12c6 | [
"Apache-2.0"
] | null | null | null | gpflowSlim/__init__.py | jskDr/GPflow-Slim | 3b6a9eaa4967b7285cbd188b44f670bfda6f12c6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 alexggmatthews, James Hensman
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 28.348837 | 74 | 0.791632 | 174 | 1,219 | 5.442529 | 0.568966 | 0.158395 | 0.027455 | 0.033791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00878 | 0.159147 | 1,219 | 43 | 75 | 28.348837 | 0.915122 | 0.471698 | 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 |
763c71e0715d1381d2a0ba464cdeaeac8b4fadc9 | 175 | py | Python | ecomm/accounts/urls.py | himanshuchauhan77/buildmat | 82dbd75db7bc19307b7f23f3798ed67743eba472 | [
"MIT"
] | null | null | null | ecomm/accounts/urls.py | himanshuchauhan77/buildmat | 82dbd75db7bc19307b7f23f3798ed67743eba472 | [
"MIT"
] | null | null | null | ecomm/accounts/urls.py | himanshuchauhan77/buildmat | 82dbd75db7bc19307b7f23f3798ed67743eba472 | [
"MIT"
] | 1 | 2021-04-08T16:08:24.000Z | 2021-04-08T16:08:24.000Z | from django.urls import path
from accounts.views import CreateUserView
app_name = 'accounts'
urlpatterns = [
path('create/', CreateUserView.as_view(), name='create'),
]
| 19.444444 | 61 | 0.737143 | 21 | 175 | 6.047619 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137143 | 175 | 8 | 62 | 21.875 | 0.84106 | 0 | 0 | 0 | 0 | 0 | 0.12 | 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 |
765b0bff895d6adff1e09418870cb2dba5f45772 | 7,814 | py | Python | vae/models/decoders.py | jacobdeasy/geometric-js | c4fd9d17672ac1aef2a95daeb7514ce7c20a469a | [
"MIT"
] | 14 | 2020-06-18T14:14:10.000Z | 2021-08-18T01:59:48.000Z | vae/models/decoders.py | jacobdeasy/geometric-js | c4fd9d17672ac1aef2a95daeb7514ce7c20a469a | [
"MIT"
] | null | null | null | vae/models/decoders.py | jacobdeasy/geometric-js | c4fd9d17672ac1aef2a95daeb7514ce7c20a469a | [
"MIT"
] | 2 | 2021-03-23T23:43:36.000Z | 2021-05-04T08:35:36.000Z | """Module containing the decoders."""
import numpy as np
import torch
import torch.nn as nn
import pdb
class DecoderBurgess(nn.Module):
def __init__(self, img_size,
latent_dim=10):
r"""Decoder of the model proposed in [1].
Parameters
----------
img_size : tuple o... | 34.122271 | 181 | 0.592526 | 976 | 7,814 | 4.592213 | 0.19877 | 0.04373 | 0.053994 | 0.037483 | 0.71129 | 0.70705 | 0.70705 | 0.695672 | 0.685631 | 0.665105 | 0 | 0.039379 | 0.307781 | 7,814 | 229 | 182 | 34.122271 | 0.78924 | 0.365114 | 0 | 0.676768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070707 | false | 0 | 0.040404 | 0 | 0.191919 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.