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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
05320d5e0557f42df12ffe2f149cf7eaf5dc3d94 | 429 | py | Python | utils/hacks/TreeGraphs/Graphics/Geometry/mat2.py | wangpeipei90/cloud9 | a15558d1fa3e397b157b1191aa1ef9b225eef2dd | [
"BSD-3-Clause"
] | 40 | 2015-01-08T10:28:20.000Z | 2022-03-11T02:48:46.000Z | utils/hacks/TreeGraphs/Graphics/Geometry/mat2.py | mcanthony/cloud9 | a15558d1fa3e397b157b1191aa1ef9b225eef2dd | [
"BSD-3-Clause"
] | 3 | 2015-04-13T04:13:39.000Z | 2020-03-28T05:23:41.000Z | utils/hacks/TreeGraphs/Graphics/Geometry/mat2.py | mcanthony/cloud9 | a15558d1fa3e397b157b1191aa1ef9b225eef2dd | [
"BSD-3-Clause"
] | 24 | 2015-03-30T04:39:28.000Z | 2022-01-04T17:17:33.000Z | import vec2
def det(m):
((m00,m01),(m10,m11))= m
return m00*m11 - m01*m10
def mul(a,b):
b_trans= zip(* b)
return tuple([transmulvec2(b_trans, a_r) for a_r in a])
# multiple vector v by a transposed matrix
def transmulvec2(m_trans,v):
return tuple([vec2.dot(v, m_c) for m_c in m_trans])
def mul... | 20.428571 | 57 | 0.641026 | 83 | 429 | 3.216867 | 0.373494 | 0.123596 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067449 | 0.205128 | 429 | 20 | 58 | 21.45 | 0.715543 | 0.09324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0.230769 | 0.846154 | 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 |
05353f56c1a3d5f4a809936988ba98c9bf22b7a4 | 371 | py | Python | test.py | emetowinner/learning-git | f00d82c2918d63bc1253215515ce3b66753bb188 | [
"MIT"
] | null | null | null | test.py | emetowinner/learning-git | f00d82c2918d63bc1253215515ce3b66753bb188 | [
"MIT"
] | null | null | null | test.py | emetowinner/learning-git | f00d82c2918d63bc1253215515ce3b66753bb188 | [
"MIT"
] | null | null | null | def fibonacci_genertor(n):
counter = 0
first_number, second_number = 0, 1
if n == 1:
yield n
elif n > 1:
while counter < n:
yield second_number
first_number, second_number = second_number, first_number+second_number
counter += 1
else:
print... | 28.538462 | 83 | 0.598383 | 48 | 371 | 4.416667 | 0.4375 | 0.283019 | 0.339623 | 0.325472 | 0.330189 | 0.330189 | 0 | 0 | 0 | 0 | 0 | 0.027668 | 0.318059 | 371 | 13 | 84 | 28.538462 | 0.810277 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 0.153846 | 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 |
054cfc65a53046c4a747d952dd23c186bb1355b4 | 202 | py | Python | CONTOH_CONTOH/ProjekEuler001-AngkaKandungan3dan5(jawi).ms.py | jiaminglimjm/JawiPython | affbb34c7876498a7cc3eef2ef87d59f7cccd8b1 | [
"0BSD"
] | null | null | null | CONTOH_CONTOH/ProjekEuler001-AngkaKandungan3dan5(jawi).ms.py | jiaminglimjm/JawiPython | affbb34c7876498a7cc3eef2ef87d59f7cccd8b1 | [
"0BSD"
] | null | null | null | CONTOH_CONTOH/ProjekEuler001-AngkaKandungan3dan5(jawi).ms.py | jiaminglimjm/JawiPython | affbb34c7876498a7cc3eef2ef87d59f7cccd8b1 | [
"0BSD"
] | null | null | null | # https://projecteuler.net/problem=1
جواڤن = 0
اونتوق ن دالم جولت(1000):
جک ن % 3 == 0:
جواڤن += ن
جک ن % 5 == 0:
جواڤن += ن
جک ن % 15 == 0:
جواڤن -= ن
چيتق(جواڤن)
| 15.538462 | 36 | 0.475248 | 32 | 202 | 3 | 0.53125 | 0.09375 | 0.21875 | 0.1875 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102362 | 0.371287 | 202 | 12 | 37 | 16.833333 | 0.653543 | 0.168317 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
054df165d4a5bae71e44fbd2e88f9428538a8191 | 2,738 | py | Python | src/pyfme/models/state/angular_acceleration.py | gaofeng2020/PyFME | 26b76f0622a8dca0e24eb477a6fb4a8b2aa604d7 | [
"MIT"
] | 199 | 2015-12-29T19:49:42.000Z | 2022-03-19T14:31:24.000Z | src/pyfme/models/state/angular_acceleration.py | gaofeng2020/PyFME | 26b76f0622a8dca0e24eb477a6fb4a8b2aa604d7 | [
"MIT"
] | 126 | 2015-09-23T11:15:42.000Z | 2020-07-29T12:27:22.000Z | src/pyfme/models/state/angular_acceleration.py | gaofeng2020/PyFME | 26b76f0622a8dca0e24eb477a6fb4a8b2aa604d7 | [
"MIT"
] | 93 | 2015-12-26T13:02:29.000Z | 2022-03-19T14:31:13.000Z | """
Python Flight Mechanics Engine (PyFME).
Copyright (c) AeroPython Development Team.
Distributed under the terms of the MIT License.
Angular Acceleration
--------------------
"""
from abc import abstractmethod
import numpy as np
class AngularAcceleration:
"""Angular Accelerations
Attributes
--------... | 24.666667 | 74 | 0.621622 | 378 | 2,738 | 4.187831 | 0.230159 | 0.050537 | 0.069488 | 0.070752 | 0.382817 | 0.351864 | 0.305749 | 0.166772 | 0.066961 | 0 | 0 | 0.017822 | 0.262235 | 2,738 | 110 | 75 | 24.890909 | 0.765842 | 0.262966 | 0 | 0.285714 | 0 | 0 | 0.048529 | 0 | 0 | 0 | 0 | 0.009091 | 0 | 1 | 0.285714 | false | 0 | 0.035714 | 0.142857 | 0.553571 | 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 |
05507bea909f2f397d1cdfff2bafb90379847aff | 224 | py | Python | seekr2/modules/common_sim_toy.py | seekrcentral/seekr2 | 45154d477147f9278b97491a6270ff31435c837b | [
"MIT"
] | 1 | 2021-07-14T16:13:17.000Z | 2021-07-14T16:13:17.000Z | seekr2/modules/common_sim_toy.py | seekrcentral/seekr2 | 45154d477147f9278b97491a6270ff31435c837b | [
"MIT"
] | 10 | 2021-05-26T15:29:46.000Z | 2021-09-20T18:23:20.000Z | seekr2/modules/common_sim_toy.py | seekrcentral/seekr2 | 45154d477147f9278b97491a6270ff31435c837b | [
"MIT"
] | 1 | 2021-05-22T01:15:46.000Z | 2021-05-22T01:15:46.000Z | """
common_sim_toy.py
Create the Sim_toy object which contains the objects needed for an
toy simulation based on the settings provided by a user. These
objects and routines are common to both Elber and MMVT milestoning.
""" | 32 | 67 | 0.799107 | 38 | 224 | 4.631579 | 0.789474 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 224 | 7 | 68 | 32 | 0.93617 | 0.964286 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
05700d69e8f7f0f0112406cce621d146a06f0173 | 245 | py | Python | codigo/Live89/lash/__init__.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 572 | 2018-04-03T03:17:08.000Z | 2022-03-31T19:05:32.000Z | codigo/Live89/lash/__init__.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 176 | 2018-05-18T15:56:16.000Z | 2022-03-28T20:39:07.000Z | codigo/Live89/lash/__init__.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 140 | 2018-04-18T13:59:11.000Z | 2022-03-29T00:43:49.000Z | from .path import paths
from .pipes import pipes
from .progress import pb, check_url
from click import group
@group('cli')
def cli():
...
cli.add_command(paths)
cli.add_command(pipes)
cli.add_command(pb)
cli.add_command(check_url)
cli()
| 14.411765 | 35 | 0.742857 | 40 | 245 | 4.4 | 0.375 | 0.136364 | 0.295455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138776 | 245 | 16 | 36 | 15.3125 | 0.834123 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
057f86fb8ae5f9c02a352ae87373a78f480c3d10 | 1,593 | py | Python | gisgeometry/geometry.py | oncox/gisgeometry | fa3cb5a8e43a89e2aa05defc69f77bd2ad9b3732 | [
"MIT"
] | null | null | null | gisgeometry/geometry.py | oncox/gisgeometry | fa3cb5a8e43a89e2aa05defc69f77bd2ad9b3732 | [
"MIT"
] | null | null | null | gisgeometry/geometry.py | oncox/gisgeometry | fa3cb5a8e43a89e2aa05defc69f77bd2ad9b3732 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from osgeo import ogr
class GeometryComponent(ABC):
__mappings = {
'postgresql':{'bool':'boolean', 'str': 'text', 'float': 'real', 'int': 'integer', 'long': 'bigint'}
}
@abstractmethod
def __init__(self, geomType, srid=4326):
self.__geom = ogr.Geome... | 26.55 | 110 | 0.640301 | 166 | 1,593 | 5.638554 | 0.379518 | 0.059829 | 0.047009 | 0.089744 | 0.119658 | 0.119658 | 0.119658 | 0.119658 | 0 | 0 | 0 | 0.003241 | 0.225361 | 1,593 | 59 | 111 | 27 | 0.755267 | 0 | 0 | 0.04878 | 0 | 0 | 0.060891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.317073 | false | 0 | 0.04878 | 0.121951 | 0.634146 | 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 |
0584c2f05e6e8dae6a7589ad5f3afc3b5ba839ca | 1,368 | py | Python | meme/parser.py | GDSRS/tf-compiladores | 6b8fd95621199a67bcf0ea39b503d4288b4375ba | [
"MIT"
] | null | null | null | meme/parser.py | GDSRS/tf-compiladores | 6b8fd95621199a67bcf0ea39b503d4288b4375ba | [
"MIT"
] | 5 | 2021-06-02T00:47:56.000Z | 2022-03-12T00:07:25.000Z | meme/parser.py | GDSRS/tf-compiladores | 6b8fd95621199a67bcf0ea39b503d4288b4375ba | [
"MIT"
] | null | null | null | from lark import Lark, InlineTransformer
from pathlib import Path
import os
from .runtime import Symbol
class LispTransformer(InlineTransformer):
number = float
name = str
def bool(self, term):
return term == '#t'
def string(self, string):
string = string.replace('\\t', '\t').repl... | 24.872727 | 90 | 0.63231 | 170 | 1,368 | 5.029412 | 0.411765 | 0.084211 | 0.023392 | 0.032749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001874 | 0.220029 | 1,368 | 54 | 91 | 25.333333 | 0.799438 | 0.091374 | 0 | 0 | 0 | 0 | 0.052805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0 | 0.121212 | 0.181818 | 0.727273 | 0.030303 | 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 |
0592f9362cad28efda01d40695a2c52f1606abb3 | 98 | py | Python | tests/const.py | sebr/pybhyve | 397ecc7b1b033e929799841a893c802872d62e44 | [
"MIT"
] | 3 | 2020-07-09T15:33:40.000Z | 2021-06-04T07:35:05.000Z | tests/const.py | sebr/pybhyve | 397ecc7b1b033e929799841a893c802872d62e44 | [
"MIT"
] | 1 | 2020-07-09T16:16:10.000Z | 2020-07-13T02:53:19.000Z | tests/const.py | sebr/pybhyve | 397ecc7b1b033e929799841a893c802872d62e44 | [
"MIT"
] | 2 | 2020-08-18T03:49:12.000Z | 2021-10-29T19:06:25.000Z | """Define constants to use in tests."""
TEST_USERNAME = "12345abcde"
TEST_PASSWORD = "12345abcde"
| 24.5 | 39 | 0.744898 | 12 | 98 | 5.916667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 0.122449 | 98 | 3 | 40 | 32.666667 | 0.709302 | 0.336735 | 0 | 0 | 0 | 0 | 0.338983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5541857c79a7ed7fe2dc5fb074c03f0b51f3b998 | 1,351 | py | Python | app.py | LuthfiVariant/WriterEditor | ff724e31941e223d2ee136a8eafaaad166cc85a8 | [
"MIT"
] | null | null | null | app.py | LuthfiVariant/WriterEditor | ff724e31941e223d2ee136a8eafaaad166cc85a8 | [
"MIT"
] | null | null | null | app.py | LuthfiVariant/WriterEditor | ff724e31941e223d2ee136a8eafaaad166cc85a8 | [
"MIT"
] | null | null | null | class Article:
def __init__(self, judul, penulis, editor, status):
self.judul = judul
self.penulis = penulis
self.editor = editor
self.editor2 = None
self.status = status #harusnya ada 2 pilihan on-progress atau finished
self.revision = None
def get_team(self... | 24.563636 | 78 | 0.612879 | 161 | 1,351 | 5.037267 | 0.248447 | 0.073983 | 0.062885 | 0.051788 | 0.066584 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008448 | 0.299038 | 1,351 | 54 | 79 | 25.018519 | 0.847941 | 0.061436 | 0 | 0 | 0 | 0 | 0.006339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0.102564 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5570b3e3aa39e21025e9b5b2bb6d24d771280c2b | 7,332 | py | Python | web_mining/soup_helpers_test.py | gongchengshi/python_web_mining | becaf8f2e7e3ad007cda932a0f37b3f23741862b | [
"MIT"
] | null | null | null | web_mining/soup_helpers_test.py | gongchengshi/python_web_mining | becaf8f2e7e3ad007cda932a0f37b3f23741862b | [
"MIT"
] | null | null | null | web_mining/soup_helpers_test.py | gongchengshi/python_web_mining | becaf8f2e7e3ad007cda932a0f37b3f23741862b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from pprint import pprint
from bs4 import BeautifulSoup
import lxml
from html_table_parsing import table_to_list
from soup_helpers import *
def get_closest_subordinate_text_test():
test1 = """
<div>
<span id="first span">
<span>
<span>this is the text</... | 33.176471 | 99 | 0.508456 | 838 | 7,332 | 4.362769 | 0.182578 | 0.046772 | 0.06756 | 0.090263 | 0.760667 | 0.718545 | 0.69721 | 0.579595 | 0.535558 | 0.535558 | 0 | 0.032211 | 0.347927 | 7,332 | 220 | 100 | 33.327273 | 0.732483 | 0.017731 | 0 | 0.617021 | 0 | 0.026596 | 0.73124 | 0.053085 | 0 | 0 | 0 | 0 | 0.031915 | 0 | null | null | 0 | 0.031915 | null | null | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
558e5ea99a92d6e5b4329153dfcafa42b1f82aae | 3,674 | py | Python | sugartensor/sg_optimize.py | DevashishJoshi/sugartensor | 6eb5b5142b688427b3521f31feda57ffeb8bd6ef | [
"MIT"
] | null | null | null | sugartensor/sg_optimize.py | DevashishJoshi/sugartensor | 6eb5b5142b688427b3521f31feda57ffeb8bd6ef | [
"MIT"
] | null | null | null | sugartensor/sg_optimize.py | DevashishJoshi/sugartensor | 6eb5b5142b688427b3521f31feda57ffeb8bd6ef | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import tensorflow as tf
__author__ = 'namju.kim@kakaobrain.com'
# noinspection PyAbstractClass
class AdaMaxOptimizer(tf.train.Optimizer):
r"""Optimizer that implements the Adamax algorithm.
See [Kingma et. al., 2014](http://arxiv.org/abs/1412.6980)
([pdf](http://arx... | 36.376238 | 102 | 0.637997 | 555 | 3,674 | 3.92973 | 0.221622 | 0.02751 | 0.038514 | 0.054562 | 0.748281 | 0.748281 | 0.738193 | 0.687758 | 0.648326 | 0.648326 | 0 | 0.030902 | 0.242515 | 3,674 | 100 | 103 | 36.74 | 0.752785 | 0.204409 | 0 | 0.666667 | 0 | 0 | 0.029126 | 0.008322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.030303 | 0.030303 | 0.272727 | 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 |
55b406420a71e42678b68001422eb31ef3ebcf30 | 1,022 | py | Python | ckan_cloud_operator/yaml_config.py | pdelboca/ckan-cloud-operator | 20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61 | [
"MIT"
] | 14 | 2019-11-18T12:01:03.000Z | 2021-09-15T15:29:50.000Z | ckan_cloud_operator/yaml_config.py | pdelboca/ckan-cloud-operator | 20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61 | [
"MIT"
] | 52 | 2019-09-09T14:22:41.000Z | 2021-09-29T08:29:24.000Z | ckan_cloud_operator/yaml_config.py | pdelboca/ckan-cloud-operator | 20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61 | [
"MIT"
] | 8 | 2019-10-05T12:46:25.000Z | 2021-09-15T15:13:05.000Z | import yaml
import datetime
### disable yaml load warnings
# see https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
if hasattr(yaml, 'warnings'):
yaml.warnings({'YAMLLoadWarning': False})
### global fix for yaml handling of datetime formats with compatibility for kubectl
datetime_format ... | 24.333333 | 98 | 0.751468 | 130 | 1,022 | 5.784615 | 0.5 | 0.085106 | 0.031915 | 0.042553 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135029 | 1,022 | 41 | 99 | 24.926829 | 0.850679 | 0.178082 | 0 | 0 | 0 | 0 | 0.060096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.105263 | 0.210526 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
55b40c915c503e6c36b5cca80416dcb3b9209efa | 655 | py | Python | broken/link.py | sebastianquek/broken | d2aa3eef9eb076061c356abe2e51d7d2c59a17e6 | [
"MIT"
] | 2 | 2016-11-10T07:50:54.000Z | 2020-12-04T18:33:09.000Z | broken/link.py | sebastianquek/broken | d2aa3eef9eb076061c356abe2e51d7d2c59a17e6 | [
"MIT"
] | null | null | null | broken/link.py | sebastianquek/broken | d2aa3eef9eb076061c356abe2e51d7d2c59a17e6 | [
"MIT"
] | null | null | null | from enum import Enum
class LinkType(Enum):
regular = "url"
image = "image"
video = "video"
class Link:
"""Represents the various types of links"""
def __init__(self, url, link_type=LinkType.regular):
self.type = link_type
self.url = url
def __str__(self):
return "<{... | 22.586207 | 64 | 0.606107 | 84 | 655 | 4.369048 | 0.380952 | 0.095368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273282 | 655 | 28 | 65 | 23.392857 | 0.771008 | 0.056489 | 0 | 0 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.157895 | 0.842105 | 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 |
55bf7104f5852d762222a74092cdf637a6039dd1 | 115 | py | Python | wsgi.py | arksega/peregrino | e7b59d248a2eb8e917769d7a58b2460990f44a05 | [
"Apache-2.0"
] | null | null | null | wsgi.py | arksega/peregrino | e7b59d248a2eb8e917769d7a58b2460990f44a05 | [
"Apache-2.0"
] | null | null | null | wsgi.py | arksega/peregrino | e7b59d248a2eb8e917769d7a58b2460990f44a05 | [
"Apache-2.0"
] | null | null | null | import hunterprice as hp
import model
db_session = model.defaut_session()
application = hp.create_api(db_session)
| 19.166667 | 39 | 0.817391 | 17 | 115 | 5.294118 | 0.647059 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113043 | 115 | 5 | 40 | 23 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e9591ea6e4882e2e408c78a9a5caa708fff3927e | 292 | py | Python | boards/models.py | akahard2dj/DjangoBlackberry | 4e732d8650dc7d61cd79033d5072d836707b411f | [
"MIT"
] | null | null | null | boards/models.py | akahard2dj/DjangoBlackberry | 4e732d8650dc7d61cd79033d5072d836707b411f | [
"MIT"
] | null | null | null | boards/models.py | akahard2dj/DjangoBlackberry | 4e732d8650dc7d61cd79033d5072d836707b411f | [
"MIT"
] | null | null | null | from django.db import models
class Board(models.Model):
title = models.CharField(max_length=1000, blank=False)
description = models.CharField(max_length=1000, blank=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
| 29.2 | 63 | 0.767123 | 40 | 292 | 5.425 | 0.6 | 0.138249 | 0.165899 | 0.221198 | 0.562212 | 0.304147 | 0 | 0 | 0 | 0 | 0 | 0.031621 | 0.133562 | 292 | 9 | 64 | 32.444444 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e96f04000c83525888897a1f54d04bacaf7c5953 | 328 | py | Python | gala/coordinates/setup_package.py | segasai/gala | 8d6f3557894231d975c287a2b8560d09a4789513 | [
"MIT"
] | null | null | null | gala/coordinates/setup_package.py | segasai/gala | 8d6f3557894231d975c287a2b8560d09a4789513 | [
"MIT"
] | null | null | null | gala/coordinates/setup_package.py | segasai/gala | 8d6f3557894231d975c287a2b8560d09a4789513 | [
"MIT"
] | 1 | 2018-10-23T23:20:20.000Z | 2018-10-23T23:20:20.000Z | def get_package_data():
return {'gala.coordinates': ['tests/idl_vgsr_vhel.txt',
'tests/SgrCoord_data',
'tests/gd1_coord.txt',
'tests/sergey_orphan.txt',
'tests/c_pm.npy', 'tests/pm_cov... | 46.857143 | 71 | 0.435976 | 31 | 328 | 4.322581 | 0.677419 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.445122 | 328 | 6 | 72 | 54.666667 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0.396341 | 0.140244 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
e9809e1c66a16bb8d6502e117e962ff64b0d8e0f | 532 | py | Python | students/migrations/0016_auto_20200406_2304.py | Davy-71993/MySchool | fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7 | [
"MIT"
] | null | null | null | students/migrations/0016_auto_20200406_2304.py | Davy-71993/MySchool | fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7 | [
"MIT"
] | null | null | null | students/migrations/0016_auto_20200406_2304.py | Davy-71993/MySchool | fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2020-04-06 20:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('students', '0015_student'),
]
operations = [
migrations.RemoveField(
model_name='student',
name='subjects',
),
... | 19.703704 | 47 | 0.528195 | 45 | 532 | 6.2 | 0.622222 | 0.225806 | 0.268817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.357143 | 532 | 26 | 48 | 20.461538 | 0.760234 | 0.084586 | 0 | 0.35 | 1 | 0 | 0.11134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e9a588449c717b00253fc6278f54848c1fdf3a24 | 7,851 | py | Python | cities/migrations/0001_initial.py | troef/django-cities-nospatial | 28f52f4038582f94dddd9b17c8c670caae1aa5c6 | [
"MIT"
] | null | null | null | cities/migrations/0001_initial.py | troef/django-cities-nospatial | 28f52f4038582f94dddd9b17c8c670caae1aa5c6 | [
"MIT"
] | null | null | null | cities/migrations/0001_initial.py | troef/django-cities-nospatial | 28f52f4038582f94dddd9b17c8c670caae1aa5c6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-11 15:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateM... | 50.980519 | 142 | 0.57394 | 787 | 7,851 | 5.551461 | 0.149936 | 0.120165 | 0.074159 | 0.098878 | 0.763561 | 0.722362 | 0.688029 | 0.656214 | 0.651637 | 0.601511 | 0 | 0.020885 | 0.280346 | 7,851 | 153 | 143 | 51.313725 | 0.752389 | 0.008279 | 0 | 0.6 | 1 | 0 | 0.133111 | 0.019658 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02069 | 0 | 0.048276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e9d25c472040ab987aa372e1971a1634d511feb0 | 317 | py | Python | external_tests.py | jennischofield/alarm_clock | 23b83d662876c7b87a1a86fc5c3ec6ec6ced2c24 | [
"MIT"
] | null | null | null | external_tests.py | jennischofield/alarm_clock | 23b83d662876c7b87a1a86fc5c3ec6ec6ced2c24 | [
"MIT"
] | null | null | null | external_tests.py | jennischofield/alarm_clock | 23b83d662876c7b87a1a86fc5c3ec6ec6ced2c24 | [
"MIT"
] | null | null | null | from alarm_clock import get_covid, get_weather, get_headlines, news_articles
def test_external():
"""this tests whether or not the api functions correctly gather the data"""
get_headlines()
assert isinstance(get_covid(),dict)
assert isinstance(get_weather(), dict)
assert len(news_articles) != 0
| 35.222222 | 79 | 0.747634 | 44 | 317 | 5.159091 | 0.659091 | 0.070485 | 0.167401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003774 | 0.164038 | 317 | 8 | 80 | 39.625 | 0.85283 | 0.217666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e9d3fea829f556056d934c3fbc5ad23871afad7b | 2,578 | py | Python | src/tn_parser/transport/migrations/0003_add_route_2gis_platforms_data.py | elipavlov/transport-nov-parser | 5e780b1075aa883cd58def0600e347085ebc5b98 | [
"MIT"
] | 1 | 2017-12-02T18:29:43.000Z | 2017-12-02T18:29:43.000Z | src/tn_parser/transport/migrations/0003_add_route_2gis_platforms_data.py | elipavlov/transport-nov-parser | 5e780b1075aa883cd58def0600e347085ebc5b98 | [
"MIT"
] | null | null | null | src/tn_parser/transport/migrations/0003_add_route_2gis_platforms_data.py | elipavlov/transport-nov-parser | 5e780b1075aa883cd58def0600e347085ebc5b98 | [
"MIT"
] | 1 | 2017-03-28T18:45:33.000Z | 2017-03-28T18:45:33.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-04 21:00
from __future__ import unicode_literals
from django.db import migrations, models
from tn_parser.transport.models import DataProviderTypes
CATALOG_API_REF = 'https://catalog.api.2gis.ru/2.0/transport/route/get?id='
route_api_id = {
'1': '1... | 28.021739 | 75 | 0.638479 | 242 | 2,578 | 6.590909 | 0.603306 | 0.025078 | 0.018809 | 0.025078 | 0.218182 | 0.174295 | 0.174295 | 0.174295 | 0.174295 | 0.174295 | 0 | 0.35198 | 0.216447 | 2,578 | 91 | 76 | 28.32967 | 0.437624 | 0.026377 | 0 | 0.055556 | 1 | 0.013889 | 0.335595 | 0.009577 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.041667 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7563f464bdadba0b26cd414046341d32d1de5100 | 192 | py | Python | bardhub/playlist/urls.py | migdotcom/music-library | 4648ea02e4b071c4a287eba09202045963992873 | [
"MIT"
] | null | null | null | bardhub/playlist/urls.py | migdotcom/music-library | 4648ea02e4b071c4a287eba09202045963992873 | [
"MIT"
] | null | null | null | bardhub/playlist/urls.py | migdotcom/music-library | 4648ea02e4b071c4a287eba09202045963992873 | [
"MIT"
] | null | null | null | from rest_framework import routers
from .api import PlaylistViewSet
router = routers.DefaultRouter()
router.register('api/playlists', PlaylistViewSet, 'playlists')
urlpatterns = router.urls
| 24 | 62 | 0.8125 | 21 | 192 | 7.380952 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098958 | 192 | 7 | 63 | 27.428571 | 0.895954 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
757dcf8a81b6c2289e7816b864cc3009aac39dab | 43 | py | Python | marx/__init__.py | Livefyre/marx | c6ee75dfbae178c2a848be6e58d797c2c0f24ca2 | [
"BSD-2-Clause"
] | null | null | null | marx/__init__.py | Livefyre/marx | c6ee75dfbae178c2a848be6e58d797c2c0f24ca2 | [
"BSD-2-Clause"
] | null | null | null | marx/__init__.py | Livefyre/marx | c6ee75dfbae178c2a848be6e58d797c2c0f24ca2 | [
"BSD-2-Clause"
] | null | null | null | # http://semver.org
__version__ = '0.0.8'
| 10.75 | 21 | 0.627907 | 7 | 43 | 3.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.139535 | 43 | 3 | 22 | 14.333333 | 0.540541 | 0.395349 | 0 | 0 | 0 | 0 | 0.208333 | 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 |
7589cddea1f3d1e8b040986b6717b28f2bb783ed | 98 | py | Python | pyrift/test.py | wwwtyro/pyrift | f20ba2db8af008c7340794a0d3bc4a3201b669d7 | [
"Unlicense"
] | 1 | 2015-08-14T08:58:23.000Z | 2015-08-14T08:58:23.000Z | pyrift/test.py | wwwtyro/pyrift | f20ba2db8af008c7340794a0d3bc4a3201b669d7 | [
"Unlicense"
] | null | null | null | pyrift/test.py | wwwtyro/pyrift | f20ba2db8af008c7340794a0d3bc4a3201b669d7 | [
"Unlicense"
] | null | null | null |
import pyrift
pyrift.initialize()
while True:
print pyrift.get_orientation_quaternion()
| 9.8 | 45 | 0.755102 | 11 | 98 | 6.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173469 | 98 | 9 | 46 | 10.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
75c2162cb72f80b07aa4d19347cc0ad986240fd3 | 695 | py | Python | Components/position.py | Bantchee/Chess | 6c898c03cd1dfef82b9e7666026aaa7bc914800d | [
"MIT"
] | null | null | null | Components/position.py | Bantchee/Chess | 6c898c03cd1dfef82b9e7666026aaa7bc914800d | [
"MIT"
] | null | null | null | Components/position.py | Bantchee/Chess | 6c898c03cd1dfef82b9e7666026aaa7bc914800d | [
"MIT"
] | null | null | null | class Position(object):
def __init__(self, x, y):
self.x = x
self.y = y
def __str__(self):
return "[" + str(self.x) + ", " + str(self.y) + "]"
def getX(self):
return self.x
def setX(self, newX):
self.x = newX
def getY(self):
return... | 24.821429 | 98 | 0.523741 | 90 | 695 | 3.888889 | 0.344444 | 0.071429 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.34964 | 695 | 27 | 99 | 25.740741 | 0.774336 | 0.120863 | 0 | 0 | 0 | 0 | 0.006612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.368421 | false | 0 | 0 | 0.157895 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
75d5c61102caab498addcbaae8f8b85f521773ff | 125 | py | Python | cride/circles/apps.py | JaviMiot/Cride_page | 6652ee7bd0d1f84bed288e83d745d5f7b72666e8 | [
"MIT"
] | null | null | null | cride/circles/apps.py | JaviMiot/Cride_page | 6652ee7bd0d1f84bed288e83d745d5f7b72666e8 | [
"MIT"
] | null | null | null | cride/circles/apps.py | JaviMiot/Cride_page | 6652ee7bd0d1f84bed288e83d745d5f7b72666e8 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CircleAppConfig(AppConfig):
name ='cride.circles'
verbose_name = 'Circles'
| 17.857143 | 33 | 0.744 | 14 | 125 | 6.571429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168 | 125 | 6 | 34 | 20.833333 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
75fb69825ac335d22c2328fe963cff3add3b7532 | 172 | py | Python | problem0419.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0419.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0419.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #419 Look and say sequence - Project Euler
# https://projecteuler.net/problem=419
#
# Code by Kevin Marciniak
#
###########################
| 19.111111 | 44 | 0.482558 | 16 | 172 | 5.1875 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039735 | 0.122093 | 172 | 8 | 45 | 21.5 | 0.509934 | 0.593023 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f94225c3a09e21ecc09d983d2b66a5621d3c29e8 | 206 | py | Python | user_group/serializers.py | IMsumitkumar/CommOn-Developers-Community | d15d4c0f725adbf1a7bcbbd7156d3edab3f4e740 | [
"MIT"
] | 1 | 2020-11-04T12:55:59.000Z | 2020-11-04T12:55:59.000Z | user_group/serializers.py | IMsumitkumar/CommOn-Developers-Community | d15d4c0f725adbf1a7bcbbd7156d3edab3f4e740 | [
"MIT"
] | null | null | null | user_group/serializers.py | IMsumitkumar/CommOn-Developers-Community | d15d4c0f725adbf1a7bcbbd7156d3edab3f4e740 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from user_group.models import CreateGroup
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = CreateGroup
fields = '__all__'
| 22.888889 | 51 | 0.757282 | 21 | 206 | 7.142857 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194175 | 206 | 8 | 52 | 25.75 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.033981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f97c14f9660bfec867b9fa4626b8500031c57d13 | 84 | py | Python | Implementations/Kattis/others/FlPr2/communication.py | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | Implementations/Kattis/others/FlPr2/communication.py | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | Implementations/Kattis/others/FlPr2/communication.py | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | n = int(input())
li = map(int,input().split())
bli = [bin(i) for i in li]
print(bli) | 21 | 29 | 0.595238 | 17 | 84 | 2.941176 | 0.705882 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154762 | 84 | 4 | 30 | 21 | 0.704225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f98b14b9c6955061c55f14de2eb70df93d7b6031 | 322 | py | Python | makestack/boards/esp8266.py | sh19910711/ms-cli | 98cb82ea13f5d035eb16a8575d8b8e81e1fe4fc4 | [
"MIT"
] | null | null | null | makestack/boards/esp8266.py | sh19910711/ms-cli | 98cb82ea13f5d035eb16a8575d8b8e81e1fe4fc4 | [
"MIT"
] | null | null | null | makestack/boards/esp8266.py | sh19910711/ms-cli | 98cb82ea13f5d035eb16a8575d8b8e81e1fe4fc4 | [
"MIT"
] | null | null | null | import subprocess
def get_firmware_url():
return 'https://github.com/makestack/esp8266-firmware/releases/download/v0.3.0/firmware.bin'
def install(serial, firmware_path):
subprocess.run(['esptool', '-v', '-cd', 'ck', '-cb', '115200',
'-cp', serial, '-ca', '0x00000', '-cf', firmware_path]... | 29.272727 | 96 | 0.63354 | 40 | 322 | 5 | 0.8 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070632 | 0.164596 | 322 | 10 | 97 | 32.2 | 0.672862 | 0 | 0 | 0 | 0 | 0.166667 | 0.378882 | 0 | 0 | 0 | 0.021739 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 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 |
f99a8e7f1f7ecc420e681b2f67e080d6f27dd443 | 1,261 | py | Python | decompy/RL/Driver.py | DecomPy/DecomPy | 2e11956e07143ed4b9b4c6335e61a6da75fcdddd | [
"BSD-3-Clause"
] | 7 | 2018-10-18T00:42:35.000Z | 2021-03-10T21:50:15.000Z | decompy/RL/Driver.py | DecomPy/DecomPy | 2e11956e07143ed4b9b4c6335e61a6da75fcdddd | [
"BSD-3-Clause"
] | 22 | 2018-10-23T00:47:49.000Z | 2019-08-24T04:25:07.000Z | decompy/RL/Driver.py | DecomPy/DecomPy | 2e11956e07143ed4b9b4c6335e61a6da75fcdddd | [
"BSD-3-Clause"
] | null | null | null | from decompy.RL.LLVMSummary import LLVMSummarizer
from decompy.RL.StateChanger import StateChanger
from decompy.RL.ActionGenerator import ActionGenerator
from decompy.RL.Reward import RewardFunction
from decompy.RL.ActionChooser import ActionChooser
class Driver:
"""
Step 1 of the Reinforcement Learning. The ... | 32.333333 | 94 | 0.685964 | 159 | 1,261 | 5.232704 | 0.383648 | 0.066106 | 0.078125 | 0.048077 | 0.100962 | 0.100962 | 0.100962 | 0.100962 | 0 | 0 | 0 | 0.002121 | 0.252181 | 1,261 | 38 | 95 | 33.184211 | 0.88017 | 0.427439 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.384615 | 0.384615 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
f9b679470332bdf48f8d51232673a2ad5772baf3 | 93 | py | Python | pacote-download/Mundo2/ex046.py | ariadne-pereira/cev-python | b2c6bbebb5106bb0152c9127c04c83f23e9d7757 | [
"MIT"
] | null | null | null | pacote-download/Mundo2/ex046.py | ariadne-pereira/cev-python | b2c6bbebb5106bb0152c9127c04c83f23e9d7757 | [
"MIT"
] | null | null | null | pacote-download/Mundo2/ex046.py | ariadne-pereira/cev-python | b2c6bbebb5106bb0152c9127c04c83f23e9d7757 | [
"MIT"
] | null | null | null | from time import sleep
for c in range (10, -1, -1):
print(c)
sleep(1)
print("Bum!!!") | 18.6 | 28 | 0.580645 | 17 | 93 | 3.176471 | 0.705882 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0.225806 | 93 | 5 | 29 | 18.6 | 0.680556 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f9b9a912b393c7125643bbd5d3e47cbccb467e62 | 127 | py | Python | opencv-examples/bgr_to_hsv.py | MeneDev/pigeon-tracker | 472dcbeb924131cdea34a37c4f787a67b37fea84 | [
"MIT"
] | 3 | 2018-11-02T09:38:56.000Z | 2019-03-09T15:58:58.000Z | opencv-examples/bgr_to_hsv.py | MeneDev/pigeon-tracker | 472dcbeb924131cdea34a37c4f787a67b37fea84 | [
"MIT"
] | 2 | 2018-11-03T18:09:16.000Z | 2019-02-10T16:40:58.000Z | opencv-examples/bgr_to_hsv.py | MeneDev/pigeon-tracker | 472dcbeb924131cdea34a37c4f787a67b37fea84 | [
"MIT"
] | 1 | 2018-11-02T10:15:56.000Z | 2018-11-02T10:15:56.000Z | import cv2
import numpy as np
red = np.uint8([[[0, 0, 255]]])
hsv_red = cv2.cvtColor(red, cv2.COLOR_BGR2HSV)
print(hsv_red)
| 14.111111 | 46 | 0.692913 | 23 | 127 | 3.695652 | 0.608696 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092593 | 0.149606 | 127 | 8 | 47 | 15.875 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f9bbcbfcb09728b795ddf1c8abca8225bf28ffa1 | 76 | py | Python | cap03/exerc001.py | mrfranca/python-exec | 27c934c2cc248393322f6b3a4e37d445e9c98b99 | [
"Apache-2.0"
] | null | null | null | cap03/exerc001.py | mrfranca/python-exec | 27c934c2cc248393322f6b3a4e37d445e9c98b99 | [
"Apache-2.0"
] | null | null | null | cap03/exerc001.py | mrfranca/python-exec | 27c934c2cc248393322f6b3a4e37d445e9c98b99 | [
"Apache-2.0"
] | null | null | null |
imposto = False
salario = 1.000
imposto = salario > 1.200
print(imposto)
| 9.5 | 25 | 0.697368 | 11 | 76 | 4.818182 | 0.636364 | 0.301887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 0.197368 | 76 | 7 | 26 | 10.857143 | 0.737705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f9e5ba7221d397246cde9ce81fc6703190b1c8c8 | 224 | py | Python | ProjectEuler/020.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 2 | 2021-06-09T12:27:07.000Z | 2021-06-11T12:02:03.000Z | ProjectEuler/020.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 1 | 2021-09-08T12:00:05.000Z | 2021-09-08T14:52:30.000Z | ProjectEuler/020.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | null | null | null | '''
Author: tusikalanse
Date: 2021-06-30 22:31:54
LastEditTime: 2021-06-30 22:32:55
LastEditors: tusikalanse
Description:
FilePath: /ProjectEuler/20.py
'''
import math
print(sum([int(i) for i in str(math.factorial(100))])) | 20.363636 | 54 | 0.736607 | 36 | 224 | 4.583333 | 0.805556 | 0.072727 | 0.09697 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 0.102679 | 224 | 11 | 54 | 20.363636 | 0.656716 | 0.660714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 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 | 0 | 1 | 0 | 3 |
f9e9928ca2371414332d21b13acbf1641395edfa | 2,140 | py | Python | research/cv/U-GAT-IT/src/utils/tools.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/cv/U-GAT-IT/src/utils/tools.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/cv/U-GAT-IT/src/utils/tools.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2022 Huawei Technologies Co., Ltd
#
# 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... | 27.792208 | 78 | 0.646262 | 339 | 2,140 | 4.00295 | 0.41003 | 0.035372 | 0.017686 | 0.023581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03378 | 0.197664 | 2,140 | 76 | 79 | 28.157895 | 0.756552 | 0.304673 | 0 | 0.043478 | 0 | 0 | 0.004768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0.152174 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f9e9d4b5a5fd5e2bfc95838ec3e3d0cde8580736 | 244 | py | Python | data/tts/req_tts_broad_cast_dto.py | hoduchieu01/TelepaSee-Backend | 6c863aeb70ca6b156ee65f19afe9ab16f07a9353 | [
"MIT"
] | 1 | 2021-08-20T05:43:20.000Z | 2021-08-20T05:43:20.000Z | data/tts/req_tts_broad_cast_dto.py | hoduchieu01/TelepaSee | 6c863aeb70ca6b156ee65f19afe9ab16f07a9353 | [
"MIT"
] | null | null | null | data/tts/req_tts_broad_cast_dto.py | hoduchieu01/TelepaSee | 6c863aeb70ca6b156ee65f19afe9ab16f07a9353 | [
"MIT"
] | 1 | 2020-10-11T06:05:00.000Z | 2020-10-11T06:05:00.000Z | from dataclasses import dataclass
from dataclasses_json import dataclass_json
@dataclass_json
@dataclass
class RequestTTSBroadCastDTO:
name: str
text_data: str
room: str
{"name":"laskdj", "text_data":"Hello world", "room":"1234"} | 20.333333 | 59 | 0.75 | 30 | 244 | 5.933333 | 0.533333 | 0.168539 | 0.247191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.147541 | 244 | 12 | 59 | 20.333333 | 0.836538 | 0 | 0 | 0 | 0 | 0 | 0.155102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f9eaa1dbbba93d89bd8ad29c0b2e237bb28f91f8 | 191 | py | Python | tests/unit/small_text/test_version.py | chschroeder/small-text | ef28e91ba0c94fe938dde4f16253aa8695ea13b7 | [
"MIT"
] | 218 | 2021-05-26T16:38:53.000Z | 2022-03-30T09:48:54.000Z | tests/unit/small_text/test_version.py | chschroeder/small-text | ef28e91ba0c94fe938dde4f16253aa8695ea13b7 | [
"MIT"
] | 9 | 2021-10-16T23:23:02.000Z | 2022-02-22T15:23:11.000Z | tests/unit/small_text/test_version.py | chschroeder/small-text | ef28e91ba0c94fe938dde4f16253aa8695ea13b7 | [
"MIT"
] | 21 | 2021-06-24T11:19:44.000Z | 2022-03-12T16:29:53.000Z | import unittest
class VersionTest(unittest.TestCase):
def test_version(self):
from small_text.version import __version__
self.assertTrue(isinstance(__version__, str))
| 19.1 | 53 | 0.73822 | 21 | 191 | 6.238095 | 0.714286 | 0.167939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188482 | 191 | 9 | 54 | 21.222222 | 0.845161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 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 |
ddb7fec53690be6cf430738e62295bec96cbc005 | 2,476 | py | Python | app/users/models.py | prapeller/chinesebreak_django_drf | 48679bd67027a29eefc3c2e408d08fe2dff3ce0a | [
"MIT"
] | null | null | null | app/users/models.py | prapeller/chinesebreak_django_drf | 48679bd67027a29eefc3c2e408d08fe2dff3ce0a | [
"MIT"
] | null | null | null | app/users/models.py | prapeller/chinesebreak_django_drf | 48679bd67027a29eefc3c2e408d08fe2dff3ce0a | [
"MIT"
] | null | null | null | import datetime
from django.utils.translation import gettext_lazy as _
from django.db import models
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager, \
AbstractUser
from rest_framework.authtoken.models import Token
from django.dispatch import receiver
from django.conf impo... | 33.917808 | 95 | 0.69588 | 309 | 2,476 | 5.411003 | 0.323625 | 0.029904 | 0.026316 | 0.057416 | 0.162081 | 0.105263 | 0.105263 | 0.105263 | 0.058612 | 0.058612 | 0 | 0.005629 | 0.210824 | 2,476 | 72 | 96 | 34.388889 | 0.850051 | 0.147011 | 0 | 0.085106 | 0 | 0 | 0.021541 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.12766 | false | 0.106383 | 0.148936 | 0.042553 | 0.617021 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ddd0d2f80dc91deeee3cd5259a0bdf74ee69d0bc | 154 | py | Python | Dataset/Leetcode/test/136/151.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/136/151.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/136/151.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def singleNumber(self, nums: List[int]) -> int:
result=0
for i in nums:
result^=i
return result
| 19.25 | 51 | 0.532468 | 19 | 154 | 4.315789 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.376623 | 154 | 7 | 52 | 22 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ddfdc064ac04822a5477213716b19e2033d499de | 428 | py | Python | tests/ipython_test.py | sethvargo/vaex | c610324316b2c0a14b8ceac2a30e202adc9da28b | [
"MIT"
] | 337 | 2016-02-11T07:36:35.000Z | 2018-12-10T07:17:35.000Z | tests/ipython_test.py | sethvargo/vaex | c610324316b2c0a14b8ceac2a30e202adc9da28b | [
"MIT"
] | 127 | 2016-07-06T15:43:14.000Z | 2018-12-11T18:46:27.000Z | tests/ipython_test.py | sethvargo/vaex | c610324316b2c0a14b8ceac2a30e202adc9da28b | [
"MIT"
] | 29 | 2016-10-05T14:15:28.000Z | 2018-11-29T10:17:00.000Z | import vaex
def test_ipython_autocompletion(ds_local):
df = vaex.from_dict({'First name': ['Reggie', 'Tamika'],
'Last name': ['Miller', 'Catchings'],
'$amount': [10, 20]})
completions = df._ipython_key_completions_()
assert 'First name' in completions
... | 30.571429 | 62 | 0.609813 | 47 | 428 | 5.382979 | 0.574468 | 0.268775 | 0.225296 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.271028 | 428 | 13 | 63 | 32.923077 | 0.798077 | 0 | 0 | 0 | 0 | 0 | 0.193925 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fb106903bef4221d8507e3425ccab440e68cc9db | 257 | py | Python | src/web/admin_panel/__init__.py | odryfox/bookmarks | 47e1eda7dbef812f94fed94a3510baa447892ff6 | [
"MIT"
] | 1 | 2020-02-01T17:33:32.000Z | 2020-02-01T17:33:32.000Z | src/web/admin_panel/__init__.py | odryfox/bookmarks | 47e1eda7dbef812f94fed94a3510baa447892ff6 | [
"MIT"
] | null | null | null | src/web/admin_panel/__init__.py | odryfox/bookmarks | 47e1eda7dbef812f94fed94a3510baa447892ff6 | [
"MIT"
] | null | null | null | from flask_admin import Admin
from flask_admin.contrib.sqla import ModelView
from src.db import db
from src.models import Board
admin_panel = Admin(name="Bookmarks dashboard", template_mode="bootstrap3")
admin_panel.add_view(ModelView(Board, db.session))
| 28.555556 | 75 | 0.821012 | 39 | 257 | 5.25641 | 0.538462 | 0.087805 | 0.136585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.097276 | 257 | 8 | 76 | 32.125 | 0.87931 | 0 | 0 | 0 | 0 | 0 | 0.11284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
348b5fb2cfc041e0f6f1159c85c196af54a95374 | 1,133 | py | Python | Practice Problems/05-Maths/Beginner/test_maths.py | vishnu-rvn/PyPractice | 521cf6582b49aabd9a4c1c0aef0dd3608c9ee63b | [
"MIT"
] | 9 | 2018-07-13T16:29:41.000Z | 2018-07-14T14:40:38.000Z | Practice Problems/05-Maths/Beginner/test_maths.py | vishnu-rvn/PyPractice | 521cf6582b49aabd9a4c1c0aef0dd3608c9ee63b | [
"MIT"
] | 11 | 2018-07-15T07:56:57.000Z | 2018-07-21T17:41:13.000Z | Practice Problems/05-Maths/Beginner/test_maths.py | vishnu-rvn/PyPractice | 521cf6582b49aabd9a4c1c0aef0dd3608c9ee63b | [
"MIT"
] | 8 | 2018-07-13T02:37:53.000Z | 2018-07-14T20:36:44.000Z | import unittest
from maths import *
class MathsBeginnerTestCase(unittest.TestCase):
def test_even_or_odd(self):
self.assertEqual(even_or_odd(0), 'even')
self.assertEqual(even_or_odd(1), 'odd')
self.assertEqual(even_or_odd(-1), 'odd')
print("\n.Passed 1. alphabet_counter with no err... | 36.548387 | 80 | 0.676081 | 178 | 1,133 | 4.005618 | 0.303371 | 0.210379 | 0.126227 | 0.078541 | 0.545582 | 0.378682 | 0.378682 | 0.131837 | 0.131837 | 0.131837 | 0 | 0.048246 | 0.195057 | 1,133 | 30 | 81 | 37.766667 | 0.733553 | 0 | 0 | 0 | 0 | 0 | 0.270079 | 0.049426 | 0 | 0 | 0 | 0 | 0.434783 | 1 | 0.173913 | false | 0.173913 | 0.086957 | 0 | 0.304348 | 0.173913 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
34e6cb9b8dff610145a492d4551ac679f0068eb7 | 201 | py | Python | setup.py | enqidu/elector_lib | c10e40b52d4dfd040e597345f9dc094ccbf09c2e | [
"MIT"
] | null | null | null | setup.py | enqidu/elector_lib | c10e40b52d4dfd040e597345f9dc094ccbf09c2e | [
"MIT"
] | null | null | null | setup.py | enqidu/elector_lib | c10e40b52d4dfd040e597345f9dc094ccbf09c2e | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="elector_lib",
version="0.0.1",
install_requires=['requests'],
description='Library for working with Elector.',
packages=['elector_lib']
)
| 20.1 | 52 | 0.681592 | 24 | 201 | 5.583333 | 0.791667 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.179104 | 201 | 9 | 53 | 22.333333 | 0.793939 | 0 | 0 | 0 | 0 | 0 | 0.338308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
551194ad1b4e98f0d3cb702ec49c4de1ec67ae69 | 89 | py | Python | src/setup.py | Immortal000/mediascraper | 86acda67d40400fab63114ef743232b4e8c782f0 | [
"MIT"
] | 1 | 2019-11-20T04:26:43.000Z | 2019-11-20T04:26:43.000Z | src/setup.py | Immortal000/mediascraper | 86acda67d40400fab63114ef743232b4e8c782f0 | [
"MIT"
] | null | null | null | src/setup.py | Immortal000/mediascraper | 86acda67d40400fab63114ef743232b4e8c782f0 | [
"MIT"
] | 1 | 2021-01-10T02:39:00.000Z | 2021-01-10T02:39:00.000Z | from setuptools import setup
setup(
app=["main.py"],
setup_requires=["py2app"],
) | 17.8 | 30 | 0.662921 | 11 | 89 | 5.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.168539 | 89 | 5 | 31 | 17.8 | 0.77027 | 0 | 0 | 0 | 0 | 0 | 0.144444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9b2a0d91c9d11dd441b2883f99cf0f96b1f181bb | 506 | py | Python | tests/clients/test_s3.py | dannguyen/seshkit | fcc66d5679449e22bad5774e53df809e652cc424 | [
"MIT"
] | 2 | 2020-10-12T23:40:30.000Z | 2021-01-20T08:32:18.000Z | tests/clients/test_s3.py | dannguyen/seshkit | fcc66d5679449e22bad5774e53df809e652cc424 | [
"MIT"
] | null | null | null | tests/clients/test_s3.py | dannguyen/seshkit | fcc66d5679449e22bad5774e53df809e652cc424 | [
"MIT"
] | null | null | null | import pytest
import boto3
import botocore
# https://www.patricksoftwareblog.com/monkeypatching-with-pytest/
# https://adamj.eu/tech/2019/04/22/testing-boto3-with-pytest-fixtures/
# https://botocore.amazonaws.com/v1/documentation/api/latest/reference/stubber.html#botocore-stub
@pytest.mark.skip(reason="Todo")
def te... | 28.111111 | 97 | 0.752964 | 66 | 506 | 5.727273 | 0.681818 | 0.05291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029279 | 0.12253 | 506 | 17 | 98 | 29.764706 | 0.822072 | 0.55336 | 0 | 0.222222 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
9b3ce4752e9f805f603ac03ff926f1990ceb6783 | 135 | py | Python | AtCoder/ARC/ARC109_A.py | sireline/PyCode | 8578467710c3c1faa89499f5d732507f5d9a584c | [
"MIT"
] | null | null | null | AtCoder/ARC/ARC109_A.py | sireline/PyCode | 8578467710c3c1faa89499f5d732507f5d9a584c | [
"MIT"
] | null | null | null | AtCoder/ARC/ARC109_A.py | sireline/PyCode | 8578467710c3c1faa89499f5d732507f5d9a584c | [
"MIT"
] | null | null | null | a, b, x, y = [int(n) for n in input().split()]
if a==b:
print(x)
elif a>b:
print((a-b)*x)
else:
print(min(2*x, y)*(b-a)+x)
| 16.875 | 46 | 0.488889 | 32 | 135 | 2.0625 | 0.5 | 0.121212 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.22963 | 135 | 7 | 47 | 19.285714 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
9b61b1cb64c4b8915b1f34ccf038564e26ca9221 | 54 | py | Python | cfdata/tabular/processors/normalize/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 9 | 2020-10-25T11:52:34.000Z | 2022-01-23T02:45:41.000Z | cfdata/tabular/processors/normalize/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 2 | 2020-08-02T01:58:48.000Z | 2021-02-26T11:24:19.000Z | cfdata/tabular/processors/normalize/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 1 | 2021-11-04T14:34:13.000Z | 2021-11-04T14:34:13.000Z | from .core import Normalize
__all__ = ["Normalize"]
| 10.8 | 27 | 0.722222 | 6 | 54 | 5.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 54 | 4 | 28 | 13.5 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 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 |
9baa57db1bff46471a684543c86762f63c80b172 | 117 | py | Python | 1017.py | gabriel1lima/Questoes---URI---Python | 4e88d76cf7ea68baf0464071bc4f72ced7d746cd | [
"MIT"
] | 1 | 2020-10-01T14:22:48.000Z | 2020-10-01T14:22:48.000Z | 1017.py | gabriel1lima/Questoes---URI---Python | 4e88d76cf7ea68baf0464071bc4f72ced7d746cd | [
"MIT"
] | null | null | null | 1017.py | gabriel1lima/Questoes---URI---Python | 4e88d76cf7ea68baf0464071bc4f72ced7d746cd | [
"MIT"
] | 7 | 2020-10-01T13:03:22.000Z | 2020-10-02T16:10:25.000Z | tempo = int(input())
velocidade = int(input())
consumo = (tempo * velocidade) / 12
print("{0:.3f}".format(consumo)) | 19.5 | 35 | 0.649573 | 15 | 117 | 5.066667 | 0.666667 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.128205 | 117 | 6 | 36 | 19.5 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9bb1790533b91aea6a3160165fb439588a117e4c | 885 | py | Python | language_features/data_types/bool.py | PrasadHonrao/python-samples | faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a | [
"MIT"
] | 3 | 2018-08-20T13:00:01.000Z | 2021-09-18T04:19:46.000Z | language_features/data_types/bool.py | PrasadHonrao/python-samples | faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a | [
"MIT"
] | 1 | 2021-06-25T20:25:02.000Z | 2021-08-19T22:44:31.000Z | language_features/data_types/bool.py | PrasadHonrao/python-samples | faa48aa3eaf2d67b8cef0114e1f6ef08e2c1300a | [
"MIT"
] | 1 | 2021-09-18T23:51:20.000Z | 2021-09-18T23:51:20.000Z | # declaration
is_python_course = True
is_csharp_course = False
print (is_python_course is True)
print (is_csharp_course is True)
# Truthy Falsy Check
# Any value other than integer 0 (including negative value) is Truthy
print("Integer 1 boolean value = {}".format(bool(1)))
print("Negative integer 1 boolea... | 36.875 | 74 | 0.694915 | 123 | 885 | 4.934959 | 0.317073 | 0.163097 | 0.222405 | 0.253707 | 0.360791 | 0.227348 | 0.118616 | 0.118616 | 0 | 0 | 0 | 0.016 | 0.152542 | 885 | 23 | 75 | 38.478261 | 0.793333 | 0.20904 | 0 | 0 | 0 | 0 | 0.441133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.846154 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
32d2b3bc1ab20b466b68ebc91f8b58bd5849d21c | 204 | py | Python | services/load_graphs/main.py | ErickBalbino/dashboard | f4c5fd5244024b57770c59f82239c789c08c2b45 | [
"MIT"
] | 1 | 2022-03-13T17:26:28.000Z | 2022-03-13T17:26:28.000Z | services/load_graphs/main.py | ErickBalbino/dashboard | f4c5fd5244024b57770c59f82239c789c08c2b45 | [
"MIT"
] | null | null | null | services/load_graphs/main.py | ErickBalbino/dashboard | f4c5fd5244024b57770c59f82239c789c08c2b45 | [
"MIT"
] | null | null | null | import json
import pandas as pd
def get_data_graph1():
with open ("services\json\graph1.json") as file:
data_graph1 = json.load(file)
df = pd.DataFrame(data_graph1)
return df | 22.666667 | 52 | 0.661765 | 30 | 204 | 4.366667 | 0.566667 | 0.229008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.245098 | 204 | 9 | 53 | 22.666667 | 0.824675 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
32da97c2f59f2dde85d0de2a0358451da79bf16f | 1,256 | py | Python | mmdet/core/bbox/structures/theta_obb.py | GuoBo98/ShipDet | 2979c39c5a56be3b99ba77833cfe556a8a0fc97e | [
"Apache-2.0"
] | null | null | null | mmdet/core/bbox/structures/theta_obb.py | GuoBo98/ShipDet | 2979c39c5a56be3b99ba77833cfe556a8a0fc97e | [
"Apache-2.0"
] | null | null | null | mmdet/core/bbox/structures/theta_obb.py | GuoBo98/ShipDet | 2979c39c5a56be3b99ba77833cfe556a8a0fc97e | [
"Apache-2.0"
] | null | null | null | import numpy as np
import torch
from .base_obb import BaseInstanceOBBs
class ThetaOBBs(BaseInstanceOBBs):
@property
def center(self):
"""torch.Tensor: A tensor with center of each obb."""
return self.tensor[:, :2]
@property
def angle(self):
"""torch.Tensor: a tensor with 8 co... | 24.627451 | 73 | 0.571656 | 153 | 1,256 | 4.660131 | 0.437909 | 0.044881 | 0.042076 | 0.044881 | 0.143058 | 0.143058 | 0 | 0 | 0 | 0 | 0 | 0.004728 | 0.326433 | 1,256 | 50 | 74 | 25.12 | 0.838061 | 0.487261 | 0 | 0.333333 | 0 | 0 | 0.019569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.222222 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
32e90faf17735dec49ebf4dc64ad74d0e162eb24 | 709 | py | Python | AUTHENTICATION/sign_up.py | ViRaL95/KKNYWebsite | 39cc9514bb51514044431d6aaeca40f1144b74c4 | [
"MIT"
] | null | null | null | AUTHENTICATION/sign_up.py | ViRaL95/KKNYWebsite | 39cc9514bb51514044431d6aaeca40f1144b74c4 | [
"MIT"
] | null | null | null | AUTHENTICATION/sign_up.py | ViRaL95/KKNYWebsite | 39cc9514bb51514044431d6aaeca40f1144b74c4 | [
"MIT"
] | null | null | null | import json
def validate_signup(sign_up_info):
for key, value in sign_up_info.items():
if value.strip() == "":
return json.dumps({"user_signed_up": False, "message": "There are missing fields"})
if sign_up_info['password'] != sign_up_info['repeat_password']:
return json.dumps({"use... | 47.266667 | 107 | 0.668547 | 102 | 709 | 4.411765 | 0.431373 | 0.093333 | 0.155556 | 0.168889 | 0.435556 | 0.435556 | 0.346667 | 0.346667 | 0 | 0 | 0 | 0.006897 | 0.181946 | 709 | 14 | 108 | 50.642857 | 0.768966 | 0 | 0 | 0 | 0 | 0 | 0.347458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.363636 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
fd0b1db64b7af852f45ee9d80c5df1fbeb1ae6c1 | 668 | py | Python | flask-rest-api/cashman/model/income.py | Rui-Carvalho/boilerplates | 23eb00063c293f3b6f0685fc1eec38bdfaf19ed9 | [
"MIT"
] | null | null | null | flask-rest-api/cashman/model/income.py | Rui-Carvalho/boilerplates | 23eb00063c293f3b6f0685fc1eec38bdfaf19ed9 | [
"MIT"
] | null | null | null | flask-rest-api/cashman/model/income.py | Rui-Carvalho/boilerplates | 23eb00063c293f3b6f0685fc1eec38bdfaf19ed9 | [
"MIT"
] | null | null | null | from marshmallow import post_load
from .transaction import Transaction, TransactionSchema
from .transaction_type import TransactionType
class Income(Transaction):
def __init__(self, description, amount):
super(Income, self).__init__(description, amount, TransactionType.INCOME)
def __repr__(self):
... | 27.833333 | 81 | 0.714072 | 75 | 668 | 6.12 | 0.466667 | 0.034858 | 0.069717 | 0.095861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188623 | 668 | 23 | 82 | 29.043478 | 0.846863 | 0.079341 | 0 | 0 | 0 | 0 | 0.057096 | 0.057096 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0.133333 | 0.733333 | 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 |
fd1228d95a9061143e5720af62b2653f5901286a | 334 | py | Python | hypergeo/utils/utils.py | jsleb333/hypergeometric_tail_inversion | 7141d2bfec97f8d2e162a389531f01ce6e931b7c | [
"MIT"
] | null | null | null | hypergeo/utils/utils.py | jsleb333/hypergeometric_tail_inversion | 7141d2bfec97f8d2e162a389531f01ce6e931b7c | [
"MIT"
] | null | null | null | hypergeo/utils/utils.py | jsleb333/hypergeometric_tail_inversion | 7141d2bfec97f8d2e162a389531f01ce6e931b7c | [
"MIT"
] | null | null | null | import numpy as np
def close_to(a, b, atol=0, rtol=10e-16):
return abs(a - b) <= atol + rtol*abs(b)
def close_to_or_less_than(a, b, atol=0, rtol=10e-16):
return a <= b or close_to(a, b, atol, rtol)
def sauer_shelah(d):
return lambda m: (np.e*m/d)**d
def log_sauer_shelah(d):
return lambda m: d*np.... | 19.647059 | 53 | 0.634731 | 72 | 334 | 2.819444 | 0.361111 | 0.049261 | 0.118227 | 0.08867 | 0.561576 | 0.463054 | 0.216749 | 0.216749 | 0 | 0 | 0 | 0.037313 | 0.197605 | 334 | 16 | 54 | 20.875 | 0.720149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 0.444444 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fd29ab0c7f1c17f818149da3f512677b4da9ecba | 83 | py | Python | dept/apps.py | VenkataRavitejaGullapudi/StudentAnalysisSystem | 8ae853e620f84906a89e8db4b45300b73665a1b3 | [
"CC-BY-3.0"
] | null | null | null | dept/apps.py | VenkataRavitejaGullapudi/StudentAnalysisSystem | 8ae853e620f84906a89e8db4b45300b73665a1b3 | [
"CC-BY-3.0"
] | null | null | null | dept/apps.py | VenkataRavitejaGullapudi/StudentAnalysisSystem | 8ae853e620f84906a89e8db4b45300b73665a1b3 | [
"CC-BY-3.0"
] | null | null | null | from django.apps import AppConfig
class DeptConfig(AppConfig):
name = 'dept'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fd4bf7d4c388b1659df78a02ac8e6b3169eb2954 | 417 | py | Python | stweet/tweet_output/print_tweet_output.py | enginbozaba/stweet-twitter-api | 060250e00a01ae53c2ca12954719b5efc918e132 | [
"MIT"
] | 1 | 2021-04-15T17:45:39.000Z | 2021-04-15T17:45:39.000Z | stweet/tweet_output/print_tweet_output.py | enginbozaba/stweet-twitter-api | 060250e00a01ae53c2ca12954719b5efc918e132 | [
"MIT"
] | null | null | null | stweet/tweet_output/print_tweet_output.py | enginbozaba/stweet-twitter-api | 060250e00a01ae53c2ca12954719b5efc918e132 | [
"MIT"
] | 1 | 2022-01-05T11:20:31.000Z | 2022-01-05T11:20:31.000Z | """TweetOutput which print all tweets from request batch."""
from typing import List
from .tweet_output import TweetOutput
from ..model.tweet import Tweet
class PrintTweetOutput(TweetOutput):
"""TweetOutput which print all tweets from request batch."""
def export_tweets(self, tweets: List[Tweet]):
... | 24.529412 | 64 | 0.683453 | 52 | 417 | 5.442308 | 0.442308 | 0.084806 | 0.14841 | 0.190813 | 0.325088 | 0.325088 | 0.325088 | 0.325088 | 0 | 0 | 0 | 0 | 0.22542 | 417 | 16 | 65 | 26.0625 | 0.876161 | 0.328537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fd51521b571735d22677e03b2e8240dd1a136f42 | 7,579 | py | Python | apps/etl/migrations/0001_initial.py | diudiu/featurefactory | ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e | [
"MIT"
] | null | null | null | apps/etl/migrations/0001_initial.py | diudiu/featurefactory | ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e | [
"MIT"
] | null | null | null | apps/etl/migrations/0001_initial.py | diudiu/featurefactory | ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='FeatureConf',
fields=[
('is_delete', models.Boo... | 67.070796 | 162 | 0.627919 | 855 | 7,579 | 5.364912 | 0.183626 | 0.129496 | 0.094179 | 0.125572 | 0.803793 | 0.77567 | 0.731851 | 0.65969 | 0.635274 | 0.520384 | 0 | 0.171385 | 0.217047 | 7,579 | 112 | 163 | 67.669643 | 0.601618 | 0.002771 | 0 | 0.509434 | 0 | 0.04717 | 0.357729 | 0.250397 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018868 | 0 | 0.04717 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b5bf3f2ab1245eb9d6ae4ae6cd77cfb7db4e8d37 | 21 | py | Python | chatBOT-Final/chat_app/venv/lib/python3.6/site-packages/py2neo/packages/httpstream/packages/__init__.py | ashokupd81/Django-Chatbot | 0d199390b22b294830c1a68ad270c688517e7b11 | [
"MIT"
] | 9 | 2017-07-15T08:45:22.000Z | 2021-07-06T08:32:03.000Z | chatBOT-Final/chat_app/venv/lib/python3.6/site-packages/py2neo/packages/httpstream/packages/__init__.py | ashokupd81/Django-Chatbot | 0d199390b22b294830c1a68ad270c688517e7b11 | [
"MIT"
] | 6 | 2017-05-05T13:11:51.000Z | 2019-01-25T22:46:30.000Z | chatBOT-Final/chat_app/venv/lib/python3.6/site-packages/py2neo/packages/httpstream/packages/__init__.py | ashokupd81/Django-Chatbot | 0d199390b22b294830c1a68ad270c688517e7b11 | [
"MIT"
] | 3 | 2018-03-16T14:11:52.000Z | 2020-03-04T02:08:31.000Z | __author__ = 'elgin'
| 10.5 | 20 | 0.714286 | 2 | 21 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 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 |
b5c02c5dfd76cd99442a18010eb30b6ebb5fa3df | 3,297 | py | Python | space_game/ai/AIActionToEventMapping.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | 1 | 2020-11-30T11:21:21.000Z | 2020-11-30T11:21:21.000Z | space_game/ai/AIActionToEventMapping.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | 5 | 2020-11-03T16:46:49.000Z | 2021-01-24T14:29:24.000Z | space_game/ai/AIActionToEventMapping.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | null | null | null | from typing import List, Callable, Dict
from space_game.events.PlayerAcceleratedEvent import PlayerAcceleratedEvent
from space_game.events.PlayerShootsEvent import PlayerShootsEvent
from space_game.AccelerationDirection import AccelerationDirection
from space_game.ai.AIAction import AIAction
from space_game.events.Eve... | 54.95 | 161 | 0.808311 | 323 | 3,297 | 8.083591 | 0.139319 | 0.144006 | 0.275756 | 0.349291 | 0.597855 | 0.525852 | 0.525852 | 0.372271 | 0.207966 | 0.207966 | 0 | 0 | 0.089475 | 3,297 | 59 | 162 | 55.881356 | 0.869754 | 0.117683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.259259 | 0 | 0.259259 | 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 |
b5e39491045db8a93f9c6a95601061fcb85c2ff1 | 416 | py | Python | Plotting/OpenSeesPy_for_Tcl/vis_model.py | u-anurag/OpenSees-Examples | a17a541cea774ba42324f83482fdddefb6925925 | [
"MIT"
] | 3 | 2019-11-27T17:24:28.000Z | 2020-04-22T23:53:40.000Z | Plotting/OpenSeesPy_for_Tcl/vis_model.py | u-anurag/OpenSees-Examples | a17a541cea774ba42324f83482fdddefb6925925 | [
"MIT"
] | null | null | null | Plotting/OpenSeesPy_for_Tcl/vis_model.py | u-anurag/OpenSees-Examples | a17a541cea774ba42324f83482fdddefb6925925 | [
"MIT"
] | null | null | null |
import openseespy.postprocessing.Get_Rendering as opsplt
opsplt.plot_model("node", Model="CantiBeam")
opsplt.plot_deformedshape(Model="CantiBeam",LoadCase="Push", overlap="no", tstep=2.0, scale=1.0)
opsplt.plot_deformedshape(Model="CantiBeam",LoadCase="Push", overlap="no", scale=1.0)
ani=opsplt.animate_deform... | 46.222222 | 120 | 0.759615 | 57 | 416 | 5.45614 | 0.491228 | 0.180064 | 0.26045 | 0.337621 | 0.498392 | 0.37299 | 0.37299 | 0.37299 | 0.37299 | 0 | 0 | 0.031088 | 0.072115 | 416 | 8 | 121 | 52 | 0.774611 | 0 | 0 | 0 | 0 | 0 | 0.160099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b5e8fa20fd441b182990a6625dc447e724386516 | 408 | py | Python | backend/util/response/models/order_min/order_min_schema.py | willrp/willorders-ws | de0757d8888dab41095c93500a6a88c813755530 | [
"MIT"
] | 4 | 2020-02-19T09:27:23.000Z | 2021-11-26T00:42:06.000Z | backend/util/response/order/models/order_min/order_min_schema.py | willrp/willbuyer | 069836a91c777ede6f62a16daa9f26e555d66bcb | [
"MIT"
] | null | null | null | backend/util/response/order/models/order_min/order_min_schema.py | willrp/willbuyer | 069836a91c777ede6f62a16daa9f26e555d66bcb | [
"MIT"
] | null | null | null | from marshmallow import Schema, fields, EXCLUDE
from ..price.price_schema import PriceSchema
class OrderMinSchema(Schema):
slug = fields.String(required=True)
product_types = fields.Integer(required=True)
items_amount = fields.Integer(required=True)
total = fields.Nested(PriceSchema, required=True)
... | 27.2 | 53 | 0.742647 | 48 | 408 | 6.229167 | 0.520833 | 0.200669 | 0.133779 | 0.160535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169118 | 408 | 14 | 54 | 29.142857 | 0.882006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.9 | 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 |
b5ff045399f2200224b4f36181d1f1ae578a4c60 | 2,690 | py | Python | kit_django/core/storages.py | safakoner/kit | aec36a70137febfb5f3e3a9205ea58879736eea4 | [
"MIT"
] | 6 | 2020-06-29T20:36:15.000Z | 2021-09-08T23:34:01.000Z | kit_django/core/storages.py | safakoner/kit | aec36a70137febfb5f3e3a9205ea58879736eea4 | [
"MIT"
] | 9 | 2021-03-30T13:46:29.000Z | 2022-03-12T00:38:27.000Z | kit_django/core/storages.py | safakoner/kit | aec36a70137febfb5f3e3a9205ea58879736eea4 | [
"MIT"
] | 1 | 2020-07-20T18:40:24.000Z | 2020-07-20T18:40:24.000Z | #
# ----------------------------------------------------------------------------------------------------
# DESCRIPTION
# ----------------------------------------------------------------------------------------------------
#
# --------------------------------------------------------------------------------------------... | 28.315789 | 102 | 0.483643 | 272 | 2,690 | 4.775735 | 0.275735 | 0.027714 | 0.027714 | 0.076982 | 0.763664 | 0.723634 | 0.625096 | 0.583526 | 0.583526 | 0.531178 | 0 | 0 | 0.223792 | 2,690 | 94 | 103 | 28.617021 | 0.622126 | 0.626766 | 0 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.088235 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
bd038365a1444a4914f650da6ad7b6599a8c4018 | 458 | py | Python | np/reference/ch5code/dividing.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | np/reference/ch5code/dividing.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | np/reference/ch5code/dividing.py | focusunsink/study_python | 322326642db54df8725793d70a95d21ac40b6507 | [
"MIT"
] | null | null | null | from __future__ import division
import numpy as np
a = np.array([2, 6, 5])
b = np.array([1, 2, 3])
print "Divide", np.divide(a, b), np.divide(b, a)
print "True Divide", np.true_divide(a, b), np.true_divide(b, a)
print "Floor Divide", np.floor_divide(a, b), np.floor_divide(b, a)
c = 3.14 * b
print "Floor Divide 2", np... | 30.533333 | 68 | 0.644105 | 93 | 458 | 3.064516 | 0.236559 | 0.231579 | 0.098246 | 0.105263 | 0.270175 | 0.164912 | 0.164912 | 0.164912 | 0 | 0 | 0 | 0.028278 | 0.150655 | 458 | 14 | 69 | 32.714286 | 0.70437 | 0 | 0 | 0 | 0 | 0 | 0.168122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.583333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
bd0694ad7f074662c85008cc5b7cfeff9e76392a | 1,303 | py | Python | msibi/tests/test_msibi.py | ctk3b/ms-ibi | fe2bd543093531740cca4666721b0c0bb5be539f | [
"MIT"
] | 8 | 2017-06-14T18:37:56.000Z | 2019-11-19T18:00:18.000Z | msibi/tests/test_msibi.py | ctk3b/ms-ibi | fe2bd543093531740cca4666721b0c0bb5be539f | [
"MIT"
] | 20 | 2015-03-24T02:43:51.000Z | 2017-06-13T15:03:59.000Z | msibi/tests/test_msibi.py | ctk3b/ms-ibi | fe2bd543093531740cca4666721b0c0bb5be539f | [
"MIT"
] | 8 | 2017-06-13T21:22:56.000Z | 2021-03-24T16:17:29.000Z | import pytest
from msibi.optimize import MSIBI
from msibi.tests.test_pair import init_state
n_bins = 151
def test_msibi_init_single_cutoff():
opt = MSIBI(2.5, n_bins)
assert opt.pot_cutoff == opt.rdf_cutoff
assert opt.n_rdf_points == n_bins
assert opt.rdf_n_bins == n_bins
assert opt.r_switch == ... | 28.955556 | 70 | 0.683807 | 233 | 1,303 | 3.583691 | 0.206009 | 0.183234 | 0.079042 | 0.100599 | 0.736527 | 0.736527 | 0.713772 | 0.681437 | 0.681437 | 0.534132 | 0 | 0.051185 | 0.19033 | 1,303 | 44 | 71 | 29.613636 | 0.740284 | 0 | 0 | 0.411765 | 0 | 0 | 0.007675 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.117647 | false | 0 | 0.088235 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bd1767653ac7873eb7db37d30efa8c3b6e64199e | 415 | py | Python | day1/d1p5.py | Akankshasharmaa/100DaysOfCode | 395bd8bd063495af7d04ec7b2f819923f502059f | [
"MIT"
] | 2 | 2021-12-22T07:43:14.000Z | 2021-12-24T12:07:33.000Z | day1/d1p5.py | Akankshasharmaa/100DaysOfCode | 395bd8bd063495af7d04ec7b2f819923f502059f | [
"MIT"
] | null | null | null | day1/d1p5.py | Akankshasharmaa/100DaysOfCode | 395bd8bd063495af7d04ec7b2f819923f502059f | [
"MIT"
] | 1 | 2021-12-22T07:43:26.000Z | 2021-12-22T07:43:26.000Z | def missing_char(myString, n):
abc = []
newStr = ''
for i in range(len(myString)):
abc.append(myString[i])
abc.pop(n)
for j in abc:
newStr = newStr + j
return newStr
result = missing_char('kitten', 1)
print(result)
result = missing_char('kitten', 0)
print(result)
re... | 21.842105 | 34 | 0.621687 | 57 | 415 | 4.438596 | 0.403509 | 0.217391 | 0.268775 | 0.363636 | 0.403162 | 0.403162 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.238554 | 415 | 19 | 35 | 21.842105 | 0.787975 | 0 | 0 | 0.235294 | 0 | 0 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.117647 | 0.235294 | 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 |
1f9984b69c603f812ca7214b24d1130804da14ca | 75 | py | Python | Challenges/challenge001 - lesson 04.py | demetrioap/python-experiments | 84a20fbddcf6b2b7af913650a34d3bc9db644143 | [
"MIT"
] | null | null | null | Challenges/challenge001 - lesson 04.py | demetrioap/python-experiments | 84a20fbddcf6b2b7af913650a34d3bc9db644143 | [
"MIT"
] | null | null | null | Challenges/challenge001 - lesson 04.py | demetrioap/python-experiments | 84a20fbddcf6b2b7af913650a34d3bc9db644143 | [
"MIT"
] | null | null | null | name = input('Type your name')
print('Hi, ' + name + '! Nice to meet you')
| 25 | 43 | 0.6 | 12 | 75 | 3.75 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 75 | 2 | 44 | 37.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.48 | 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 |
1fc8cfffc934db2f1ef4d7455da45e13d3d39f10 | 36 | py | Python | tests/imported/both3levels/a/e.py | Xion/recursely | 6952a32b076844a02a1df19deca6b506a951b286 | [
"BSD-2-Clause"
] | null | null | null | tests/imported/both3levels/a/e.py | Xion/recursely | 6952a32b076844a02a1df19deca6b506a951b286 | [
"BSD-2-Clause"
] | 1 | 2015-03-26T01:34:17.000Z | 2015-03-26T01:34:17.000Z | tests/imported/both3levels/a/e.py | Xion/recursely | 6952a32b076844a02a1df19deca6b506a951b286 | [
"BSD-2-Clause"
] | null | null | null | """
Module used by tests.
"""
E = 5
| 7.2 | 21 | 0.527778 | 6 | 36 | 3.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.25 | 36 | 4 | 22 | 9 | 0.666667 | 0.583333 | 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 |
1fe254c5ec70a3d7174d5c523188198abdb3d9df | 405 | py | Python | src/lib/tasks/task.py | koverman47/robosub2018 | 463561df6e5bc318d0855efda50cbeef164eba0c | [
"MIT"
] | null | null | null | src/lib/tasks/task.py | koverman47/robosub2018 | 463561df6e5bc318d0855efda50cbeef164eba0c | [
"MIT"
] | null | null | null | src/lib/tasks/task.py | koverman47/robosub2018 | 463561df6e5bc318d0855efda50cbeef164eba0c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
class Task():
def __init__(self, current, desired, color=None):
self.subtasks = []
self.current = current
self.desired = desired
self.color = color
def move_to(self):
pass
def pass_through(self):
pass
def go_around(self):
... | 13.064516 | 53 | 0.54321 | 48 | 405 | 4.416667 | 0.479167 | 0.188679 | 0.207547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.358025 | 405 | 30 | 54 | 13.5 | 0.815385 | 0.049383 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.375 | 0 | 0 | 0.4375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1fe7570b4b9d5e9256b931db886759ec572812e6 | 2,704 | py | Python | aliyun-python-sdk-config/aliyunsdkconfig/request/v20200907/ListAggregateConfigRulesRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-config/aliyunsdkconfig/request/v20200907/ListAggregateConfigRulesRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | aliyun-python-sdk-config/aliyunsdkconfig/request/v20200907/ListAggregateConfigRulesRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 39.188406 | 80 | 0.764793 | 341 | 2,704 | 5.894428 | 0.334311 | 0.020896 | 0.045274 | 0.062687 | 0.21194 | 0.130348 | 0.130348 | 0.130348 | 0 | 0 | 0 | 0.005146 | 0.137574 | 2,704 | 68 | 81 | 39.764706 | 0.856775 | 0.317308 | 0 | 0 | 0 | 0 | 0.149296 | 0.013521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.394737 | false | 0 | 0.052632 | 0.184211 | 0.657895 | 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 |
1fee74e4a91c82d88fb477538038b0452b8a0181 | 24 | py | Python | state/__init__.py | fugufisch/wholecell | 5aac3226ac1ed48be1f7cf48844a6b8194d41594 | [
"MIT"
] | null | null | null | state/__init__.py | fugufisch/wholecell | 5aac3226ac1ed48be1f7cf48844a6b8194d41594 | [
"MIT"
] | null | null | null | state/__init__.py | fugufisch/wholecell | 5aac3226ac1ed48be1f7cf48844a6b8194d41594 | [
"MIT"
] | null | null | null | __author__ = 'thiemese'
| 12 | 23 | 0.75 | 2 | 24 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 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 |
951b831180a7cb59d3c1e5d40e09acfee2e0eb2e | 128 | py | Python | urls.py | zendi-org/django-stellar-foundation | edaf2b100b1c6cc87df6a9e623f8099c4427e435 | [
"Apache-2.0"
] | 1 | 2021-12-21T23:13:38.000Z | 2021-12-21T23:13:38.000Z | urls.py | zendi-org/django-stellar-foundation | edaf2b100b1c6cc87df6a9e623f8099c4427e435 | [
"Apache-2.0"
] | null | null | null | urls.py | zendi-org/django-stellar-foundation | edaf2b100b1c6cc87df6a9e623f8099c4427e435 | [
"Apache-2.0"
] | null | null | null | from .views import federation
from django.conf.urls import url
urlpatterns = [
url(r'^$', federation, name='federation')
]
| 18.285714 | 45 | 0.710938 | 16 | 128 | 5.6875 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 128 | 6 | 46 | 21.333333 | 0.842593 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
20fbf800607745e2d08156eff6f4af75b6791919 | 3,220 | py | Python | app/models.py | shrek42/ispa-backend | 1fbdaa81aa49937b243bafb60c37a2dfed995d21 | [
"MIT"
] | null | null | null | app/models.py | shrek42/ispa-backend | 1fbdaa81aa49937b243bafb60c37a2dfed995d21 | [
"MIT"
] | 1 | 2020-12-03T08:11:19.000Z | 2020-12-03T08:11:19.000Z | app/models.py | shrek42/ispa-backend | 1fbdaa81aa49937b243bafb60c37a2dfed995d21 | [
"MIT"
] | null | null | null | from werkzeug.security import check_password_hash, generate_password_hash
from app.app import db
class User(db.Model):
"""Create a user table."""
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(60), index=True, unique=True)
password_hash = db.Colu... | 29.814815 | 76 | 0.66118 | 433 | 3,220 | 4.755196 | 0.221709 | 0.116561 | 0.145702 | 0.099077 | 0.511899 | 0.381739 | 0.372025 | 0.249636 | 0.185527 | 0.167557 | 0 | 0.007308 | 0.192547 | 3,220 | 107 | 77 | 30.093458 | 0.784615 | 0.074534 | 0 | 0.214286 | 1 | 0 | 0.059508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.128571 | 0.028571 | 0.028571 | 0.871429 | 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 |
1f070c4199f70b3d9cdafd4f16e07b2a30df1757 | 118 | py | Python | data_vulma/backend/buildings/apps.py | Project-VULMA/data-vulma | 7355c3cfe26dcf861fdf3fea07c3fabeedd70244 | [
"MIT"
] | null | null | null | data_vulma/backend/buildings/apps.py | Project-VULMA/data-vulma | 7355c3cfe26dcf861fdf3fea07c3fabeedd70244 | [
"MIT"
] | null | null | null | data_vulma/backend/buildings/apps.py | Project-VULMA/data-vulma | 7355c3cfe26dcf861fdf3fea07c3fabeedd70244 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class BuildingsConfig(AppConfig):
name = 'buildings'
verbose_name = 'Buildings'
| 16.857143 | 33 | 0.779661 | 13 | 118 | 7 | 0.769231 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 118 | 6 | 34 | 19.666667 | 0.892157 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 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 |
1f4d40d5b1c2346c2f176d2e8987d7501fe7af4d | 133 | py | Python | Day 4/Aayushi-Mittal.py | ChetasShree/MarchCode | 80ee6206c0e4481b4421a83c7b7b7fc977450009 | [
"MIT"
] | 9 | 2021-03-02T12:16:24.000Z | 2021-03-26T11:06:08.000Z | Day 4/Aayushi-Mittal.py | ChetasShree/MarchCode | 80ee6206c0e4481b4421a83c7b7b7fc977450009 | [
"MIT"
] | 65 | 2021-03-02T04:57:47.000Z | 2021-04-02T19:31:30.000Z | Day 4/Aayushi-Mittal.py | ChetasShree/MarchCode | 80ee6206c0e4481b4421a83c7b7b7fc977450009 | [
"MIT"
] | 94 | 2021-03-02T04:42:28.000Z | 2021-06-28T10:38:20.000Z | # Write a program to check the ascii code of a given number character.
c = input()
print("> ASCII value of " + c + " is: ", ord(c))
| 26.6 | 70 | 0.639098 | 23 | 133 | 3.695652 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225564 | 133 | 4 | 71 | 33.25 | 0.825243 | 0.511278 | 0 | 0 | 0 | 0 | 0.349206 | 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 |
1f68026256c82ee268442e41b25a9b0c623a4e80 | 141 | py | Python | tests/CompileTests/Python_tests/test2011_022.py | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/CompileTests/Python_tests/test2011_022.py | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/CompileTests/Python_tests/test2011_022.py | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | # test aug assignments
a = 1
a += 2
a -= 3
a *= 4
a /= 5
a %= 6
a += 100
#a //= 19
a **= 2
#a &= 13
#a |= 15
#a ^= 11
a <<= 2
a >>= 1
| 6.130435 | 22 | 0.368794 | 31 | 141 | 1.677419 | 0.483871 | 0.115385 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0.375887 | 141 | 22 | 23 | 6.409091 | 0.363636 | 0.347518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1f7455790006e4c1da004dccbf6332a1756f2f85 | 292 | py | Python | simple_functions/trig_functions.py | acse-lp320/ci_acse1 | 8ae7ab2e2687dfdbfb7dfd145e10bade2be85b14 | [
"MIT"
] | null | null | null | simple_functions/trig_functions.py | acse-lp320/ci_acse1 | 8ae7ab2e2687dfdbfb7dfd145e10bade2be85b14 | [
"MIT"
] | null | null | null | simple_functions/trig_functions.py | acse-lp320/ci_acse1 | 8ae7ab2e2687dfdbfb7dfd145e10bade2be85b14 | [
"MIT"
] | null | null | null | from simple_functions.functions1 import factorial
from functools import lru_cache
__all__ = ['sin']
def sin(x, terms=100):
return rsum(x, terms)
@lru_cache(maxsize=None)
def rsum(x, n):
term = (-1)**n / factorial(2*n+1) * x**(2*n+1)
return term + rsum(x, n-1) if n else term
| 19.466667 | 50 | 0.660959 | 51 | 292 | 3.647059 | 0.490196 | 0.080645 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042017 | 0.184932 | 292 | 14 | 51 | 20.857143 | 0.739496 | 0 | 0 | 0 | 0 | 0 | 0.010274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1f902012aeeb160c89efe9db92cf39dec54efa17 | 623 | py | Python | calibre_books/calibre/templatetags/genres.py | YIXINSHUWU/calibre-books | 7a498ca9a2ba1cd6be93ecaf5c80ab0aeb00f19f | [
"BSD-2-Clause"
] | 7 | 2016-03-14T21:35:38.000Z | 2021-08-01T01:18:41.000Z | calibre_books/calibre/templatetags/genres.py | YIXINSHUWU/calibre-books | 7a498ca9a2ba1cd6be93ecaf5c80ab0aeb00f19f | [
"BSD-2-Clause"
] | 15 | 2015-10-08T22:12:33.000Z | 2016-07-15T11:53:02.000Z | calibre_books/calibre/templatetags/genres.py | YIXINSHUWU/calibre-books | 7a498ca9a2ba1cd6be93ecaf5c80ab0aeb00f19f | [
"BSD-2-Clause"
] | 4 | 2017-12-09T17:08:27.000Z | 2021-04-06T21:56:01.000Z | from django import template
from ..models import Book
register = template.Library()
@register.inclusion_tag('calibre/genres.html', takes_context=True)
def genres(context, root=None, prefix=''):
if prefix:
prefix += '.'
context.update({'genres': root or Book.get_genres(context.get('user')),
... | 20.766667 | 75 | 0.683788 | 76 | 623 | 5.513158 | 0.447368 | 0.062053 | 0.062053 | 0.119332 | 0.186158 | 0.186158 | 0 | 0 | 0 | 0 | 0 | 0.001946 | 0.17496 | 623 | 29 | 76 | 21.482759 | 0.81323 | 0 | 0 | 0.105263 | 0 | 0 | 0.060995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.157895 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2f0757b0c77ee59c1ee35742b620c18dc32a2fe9 | 1,146 | py | Python | StructNoSQL/__init__.py | Robinson04/StructNoSQL | 335c63593025582336bb67ad0b0ed39d30800b74 | [
"MIT"
] | 3 | 2020-10-30T23:31:26.000Z | 2022-03-30T21:48:40.000Z | StructNoSQL/__init__.py | Robinson04/StructNoSQL | 335c63593025582336bb67ad0b0ed39d30800b74 | [
"MIT"
] | 42 | 2020-09-16T15:23:11.000Z | 2021-09-20T13:00:50.000Z | StructNoSQL/__init__.py | Robinson04/StructNoSQL | 335c63593025582336bb67ad0b0ed39d30800b74 | [
"MIT"
] | 2 | 2021-01-03T21:37:22.000Z | 2021-08-12T20:28:52.000Z | from StructNoSQL.clients_middlewares.dynamodb.backend.dynamodb_core import PrimaryIndex, GlobalSecondaryIndex
from StructNoSQL.fields import BaseField, MapModel, TableDataModel
from StructNoSQL.clients_middlewares.dynamodb.dynamodb_table_connectors import DynamoDBTableConnectors
from StructNoSQL.clients_middlewares.dyn... | 88.153846 | 133 | 0.914485 | 118 | 1,146 | 8.601695 | 0.372881 | 0.17734 | 0.130049 | 0.195074 | 0.428571 | 0.388177 | 0.139901 | 0.139901 | 0.139901 | 0.139901 | 0 | 0 | 0.050611 | 1,146 | 12 | 134 | 95.5 | 0.932904 | 0.079407 | 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 | 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 |
2f1c5343d138a5427be5ed3c8486386b06ec201e | 5,510 | py | Python | code/src/plan2scene/texture_prop/trainer/abstract_trainer.py | madhawav/plan2scene | cc3481f503fc096d1a50ea4fbcc668b2a3b75fb5 | [
"MIT"
] | 305 | 2021-06-09T23:30:34.000Z | 2022-03-30T02:49:45.000Z | code/src/plan2scene/texture_prop/trainer/abstract_trainer.py | madhawav/plan2scene | cc3481f503fc096d1a50ea4fbcc668b2a3b75fb5 | [
"MIT"
] | 8 | 2021-06-11T01:59:26.000Z | 2022-03-24T21:32:21.000Z | code/src/plan2scene/texture_prop/trainer/abstract_trainer.py | madhawav/plan2scene | cc3481f503fc096d1a50ea4fbcc668b2a3b75fb5 | [
"MIT"
] | 32 | 2021-06-09T23:19:23.000Z | 2022-03-05T14:03:15.000Z | from torch.utils.tensorboard import SummaryWriter
from config_parser import Config
from plan2scene.common.trainer.epoch_summary import EpochSummary
from plan2scene.common.trainer.save_reason import SaveReason
from plan2scene.config_manager import ConfigManager
import abc
import logging
import os.path as osp
import os
... | 25.990566 | 165 | 0.633938 | 646 | 5,510 | 5.123839 | 0.159443 | 0.053172 | 0.063444 | 0.045317 | 0.04713 | 0.016918 | 0 | 0 | 0 | 0 | 0 | 0.001763 | 0.279492 | 5,510 | 211 | 166 | 26.113744 | 0.83199 | 0.092559 | 0 | 0.267606 | 0 | 0 | 0.020471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211268 | false | 0.077465 | 0.06338 | 0.105634 | 0.394366 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
2f1e96921ad5ef0f05f4d9faf45c7f3e1464e237 | 1,496 | py | Python | lib/pysgpp/extensions/datadriven/learner/LearnedKnowledge.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | 4 | 2022-01-15T19:50:36.000Z | 2022-01-15T20:16:10.000Z | lib/pysgpp/extensions/datadriven/learner/LearnedKnowledge.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | null | null | null | lib/pysgpp/extensions/datadriven/learner/LearnedKnowledge.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | null | null | null | # Copyright (C) 2008-today The SG++ project
# This file is part of the SG++ project. For conditions of distribution and
# use, please see the copyright notice provided with SG++ or at
# sgpp.sparsegrids.org
##############################################################################
... | 26.714286 | 89 | 0.582219 | 163 | 1,496 | 5.257669 | 0.503067 | 0.051342 | 0.028005 | 0.046674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004492 | 0.256016 | 1,496 | 55 | 90 | 27.2 | 0.765499 | 0.495321 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 0.142857 | 0.785714 | 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 |
2f35ec935d915219d8ce486c9f547f749bfd350d | 142 | py | Python | CSharpIntegration/ImportModule1/ImportModule1/HelloWorldModule.py | NeedfulSoftware/IronPythonTutorials | 9991ddeed3c4fe1829bd278109adb8af8af28ddb | [
"MIT"
] | 7 | 2018-11-03T04:30:50.000Z | 2021-11-08T08:52:56.000Z | CSharpIntegration/ImportModule1/ImportModule1/HelloWorldModule.py | needful-software/IronPythonTutorials | 9991ddeed3c4fe1829bd278109adb8af8af28ddb | [
"MIT"
] | null | null | null | CSharpIntegration/ImportModule1/ImportModule1/HelloWorldModule.py | needful-software/IronPythonTutorials | 9991ddeed3c4fe1829bd278109adb8af8af28ddb | [
"MIT"
] | 13 | 2018-05-02T20:15:51.000Z | 2021-11-11T20:00:34.000Z | def PrintHelloWorld():
print 'Hello World!'
def PrintMessage(message):
print message
def Add(arg1, arg2):
return (arg1 + arg2);
| 15.777778 | 26 | 0.669014 | 17 | 142 | 5.588235 | 0.647059 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.211268 | 142 | 8 | 27 | 17.75 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2f3feb802321c10c541597d48a9cc0aa7e322d82 | 211 | py | Python | Eduardo Mendes/Live 87 - Decoradores/exemplo_6.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | Eduardo Mendes/Live 87 - Decoradores/exemplo_6.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | Eduardo Mendes/Live 87 - Decoradores/exemplo_6.py | SweydAbdul/estudos-python | b052708d0566a0afb9a1c04d035467d45f820879 | [
"MIT"
] | null | null | null | """Decorados com params"""
def validate_type(type):
# type é livre
def validade(func):
# func é livre
def inner(*args, **kwargs):
...
return inner
return validade | 21.1 | 35 | 0.549763 | 24 | 211 | 4.791667 | 0.583333 | 0.13913 | 0.156522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.336493 | 211 | 10 | 36 | 21.1 | 0.821429 | 0.222749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2f54bd59e2944cf53eef05a6587c2dd4e8837c37 | 1,445 | py | Python | dataset/compcars/get_real_names.py | dcastf01/object_detection | 3282f6d39d1a66eb741b92fb06e32420fde8dde1 | [
"MIT"
] | null | null | null | dataset/compcars/get_real_names.py | dcastf01/object_detection | 3282f6d39d1a66eb741b92fb06e32420fde8dde1 | [
"MIT"
] | null | null | null | dataset/compcars/get_real_names.py | dcastf01/object_detection | 3282f6d39d1a66eb741b92fb06e32420fde8dde1 | [
"MIT"
] | null | null | null | from scipy.io import loadmat
from config import CONFIG
import numpy as np
import os
import sys
class CompcarsRealNames:
def __init__(self):
self.real_names_makes=self.load_real_names_compcars()["make_names"]
self.real_names_models=self.load_real_names_compcars()["model_names"]
def load_m... | 32.111111 | 77 | 0.754325 | 214 | 1,445 | 4.607477 | 0.21028 | 0.136917 | 0.109533 | 0.091278 | 0.51927 | 0.458418 | 0.36714 | 0.323529 | 0.184584 | 0.089249 | 0 | 0.001656 | 0.164014 | 1,445 | 45 | 78 | 32.111111 | 0.81457 | 0.004152 | 0 | 0 | 0 | 0 | 0.047983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.15625 | 0.1875 | 0.625 | 0.15625 | 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 |
2f718e0878f962f03d6750e54570fbd655d4e2bf | 284 | py | Python | nrgmap/__init__.py | GiggleLiu/nrg_mapping | c470e22fb6f0c91a7b5f79cc027e9206127c8a8d | [
"MIT"
] | 5 | 2017-08-14T01:55:12.000Z | 2022-01-03T16:57:46.000Z | nrgmap/__init__.py | GiggleLiu/nrg_mapping | c470e22fb6f0c91a7b5f79cc027e9206127c8a8d | [
"MIT"
] | null | null | null | nrgmap/__init__.py | GiggleLiu/nrg_mapping | c470e22fb6f0c91a7b5f79cc027e9206127c8a8d | [
"MIT"
] | 3 | 2018-01-25T10:37:06.000Z | 2022-01-03T16:57:49.000Z | from .chain import *
from .discretization import *
from .ticklib import *
from .discmodel import *
from .chainmapper import *
from .tridiagonalize import *
from .utils import *
from .quickmap import *
__all__=['chain','discretization','discmodel','ticklib','tridiagonalize','utils']
| 25.818182 | 81 | 0.753521 | 31 | 284 | 6.774194 | 0.354839 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119718 | 284 | 10 | 82 | 28.4 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0.190141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2f85de126e12b8fb1fcf1d9de125ecb74e587433 | 556 | py | Python | djangoapp/crypto/tests.py | bdabrowski/web-security-training | aaa8ba8f130e3fa2fbac474fdb59a2051cda463c | [
"MIT"
] | null | null | null | djangoapp/crypto/tests.py | bdabrowski/web-security-training | aaa8ba8f130e3fa2fbac474fdb59a2051cda463c | [
"MIT"
] | 14 | 2019-08-07T16:09:50.000Z | 2022-03-02T05:07:22.000Z | djangoapp/crypto/tests.py | bdabrowski/web-security-training | aaa8ba8f130e3fa2fbac474fdb59a2051cda463c | [
"MIT"
] | 1 | 2019-08-07T15:43:03.000Z | 2019-08-07T15:43:03.000Z | import unittest
from .crypto_message import encrypt, decrypt
class TestCryptoFunctions(unittest.TestCase):
def test_encode(self):
encoded = encrypt('Lorem Ipsum', '12345678')
self.assertNotEqual(encoded, 'Loerm Ipsum')
def test_decode(self):
encoded = encrypt('Lorem Ipsum', '1234567... | 29.263158 | 72 | 0.692446 | 58 | 556 | 6.551724 | 0.448276 | 0.105263 | 0.142105 | 0.181579 | 0.347368 | 0.347368 | 0.347368 | 0.242105 | 0 | 0 | 0 | 0.071269 | 0.192446 | 556 | 18 | 73 | 30.888889 | 0.775056 | 0 | 0 | 0.25 | 0 | 0 | 0.179856 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0.083333 | 0.166667 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2f89029e1962b97d7d0ee5f25099e66fb32ce90d | 87 | py | Python | instrumental_example/lib.py | KarrLab/examples_for_presentations | 54c3c8e313a727da0062b49dabb91c957f1d235a | [
"MIT"
] | 1 | 2019-01-10T17:38:25.000Z | 2019-01-10T17:38:25.000Z | instrumental_example/lib.py | KarrLab/examples_for_presentations | 54c3c8e313a727da0062b49dabb91c957f1d235a | [
"MIT"
] | null | null | null | instrumental_example/lib.py | KarrLab/examples_for_presentations | 54c3c8e313a727da0062b49dabb91c957f1d235a | [
"MIT"
] | 1 | 2019-01-10T17:38:29.000Z | 2019-01-10T17:38:29.000Z | def func(a, b):
value = 0
if a or b:
value = value + 1
return value | 17.4 | 25 | 0.494253 | 15 | 87 | 2.866667 | 0.666667 | 0.27907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0.413793 | 87 | 5 | 26 | 17.4 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2f9a5ac1375bfc93955bad1083d2a2ca2444e003 | 990 | py | Python | pheed/core/author.py | JWKennington/pheed | c2a97d49abed401ff90e9c366b30e36739eb78ae | [
"MIT"
] | null | null | null | pheed/core/author.py | JWKennington/pheed | c2a97d49abed401ff90e9c366b30e36739eb78ae | [
"MIT"
] | null | null | null | pheed/core/author.py | JWKennington/pheed | c2a97d49abed401ff90e9c366b30e36739eb78ae | [
"MIT"
] | null | null | null | """Author definition and related utilities
"""
class Author:
"""A Pheed author is a person with a first and last name
"""
def __init__(self, first_name: str, last_name: str):
"""Create a Pheed Author
Args:
first_name:
str, the first name of the author
... | 26.756757 | 92 | 0.60404 | 127 | 990 | 4.393701 | 0.275591 | 0.114695 | 0.09319 | 0.053763 | 0.075269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287879 | 990 | 36 | 93 | 27.5 | 0.791489 | 0.30101 | 0 | 0 | 0 | 0 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.266667 | 0.8 | 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 |
85d0979040dff445fda6b8a33e6342909619625a | 104 | py | Python | Week 7/id_145/LeetCode_231_145.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-10-08T08:19:56.000Z | 2019-10-08T08:19:56.000Z | Week 7/id_145/LeetCode_231_145.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-12-01T10:02:03.000Z | 2019-12-01T10:02:03.000Z | Week 7/id_145/LeetCode_231_145.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
bool isPowerOfTwo(int n) {
return n>0 && (n & (n-1)) == 0;
}
}; | 17.333333 | 39 | 0.490385 | 14 | 104 | 3.642857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.317308 | 104 | 6 | 40 | 17.333333 | 0.676056 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85dca84a48609a6d6fc30c93bd3a860d2f037e5e | 757 | py | Python | crystal_functions/calculate.py | Filo3dg/crystal_functions | 2184e1359cac703891b42d2328150e0848537174 | [
"MIT"
] | null | null | null | crystal_functions/calculate.py | Filo3dg/crystal_functions | 2184e1359cac703891b42d2328150e0848537174 | [
"MIT"
] | null | null | null | crystal_functions/calculate.py | Filo3dg/crystal_functions | 2184e1359cac703891b42d2328150e0848537174 | [
"MIT"
] | 1 | 2022-03-30T09:37:53.000Z | 2022-03-30T09:37:53.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 19 18:29:35 2021
@author: brunocamino
"""
def cry_ads_energy(e_full_system, e_substrate, e_adsorbate):
return e_full_system-(e_substrate+e_adsorbate)
def cry_shrink(structure, spacing=0.2):
# structure is a pymatgen Structure object... | 25.233333 | 84 | 0.722589 | 109 | 757 | 4.87156 | 0.587156 | 0.090395 | 0.041431 | 0.045198 | 0.26742 | 0.116761 | 0.116761 | 0 | 0 | 0 | 0 | 0.036923 | 0.141347 | 757 | 30 | 85 | 25.233333 | 0.78 | 0.2893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
85de0fc9248eefb4803edf3ffbc7f0c9a716c0e8 | 533 | py | Python | xqdata/api/order_book_id_api.py | StateOfTheArt-quant/xqdata | 5d031d0831828344f6305cf401b3dee9e71ede8a | [
"Apache-2.0"
] | 6 | 2019-11-29T14:07:45.000Z | 2020-06-30T07:57:43.000Z | xqdata/api/order_book_id_api.py | StateOfTheArt-quant/xqdata | 5d031d0831828344f6305cf401b3dee9e71ede8a | [
"Apache-2.0"
] | null | null | null | xqdata/api/order_book_id_api.py | StateOfTheArt-quant/xqdata | 5d031d0831828344f6305cf401b3dee9e71ede8a | [
"Apache-2.0"
] | 5 | 2020-10-20T01:27:32.000Z | 2022-01-11T14:59:28.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from xqdata.data_proxy import DataProxy
__all__ = []
def export_as_api(func):
__all__.append(func.__name__)
globals()[func.__name__] = func
return func
@export_as_api
def index_components(order_book_id, dt=None):
return DataProxy.get_instance().index_co... | 26.65 | 97 | 0.771107 | 81 | 533 | 4.54321 | 0.432099 | 0.146739 | 0.089674 | 0.076087 | 0.494565 | 0.353261 | 0 | 0 | 0 | 0 | 0 | 0.004237 | 0.114447 | 533 | 19 | 98 | 28.052632 | 0.775424 | 0.080675 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.166667 | 0.583333 | 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 |
85ead4c2eeb4312b0e9df7f69a34d85afaefedf6 | 637 | py | Python | exercise402.py | vchatchai/python101 | c2f1c7b0f62a4600f9c64af566dc5630742580f2 | [
"Apache-2.0"
] | null | null | null | exercise402.py | vchatchai/python101 | c2f1c7b0f62a4600f9c64af566dc5630742580f2 | [
"Apache-2.0"
] | null | null | null | exercise402.py | vchatchai/python101 | c2f1c7b0f62a4600f9c64af566dc5630742580f2 | [
"Apache-2.0"
] | null | null | null | import sys
print(sys.version)
# values = input("Please insert value: ")
values = "pythonnnaa"
result = []
count = 0
for value in values :
# if len(result) > 0 and result[len(result)-1] != value and result[len(result)-2] != result[len(result)-1] :
# result.append(result[len(result)-1])
... | 20.548387 | 120 | 0.576138 | 87 | 637 | 4.218391 | 0.298851 | 0.220708 | 0.245232 | 0.217984 | 0.348774 | 0.348774 | 0.196185 | 0.196185 | 0.196185 | 0.196185 | 0 | 0.030238 | 0.273155 | 637 | 31 | 121 | 20.548387 | 0.762419 | 0.33438 | 0 | 0.176471 | 0 | 0 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.176471 | 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 |
85f7e270989abac4c2561ee8b8310cb0154f63aa | 185 | py | Python | github/urls.py | kasrasamareh454/beekeeper | 8e8719a9a46f0e8aaae35a2027f69a252a5371f1 | [
"BSD-3-Clause"
] | 23 | 2017-07-31T14:29:46.000Z | 2019-02-12T02:47:12.000Z | github/urls.py | kasrasamareh454/beekeeper | 8e8719a9a46f0e8aaae35a2027f69a252a5371f1 | [
"BSD-3-Clause"
] | 9 | 2017-08-09T05:49:11.000Z | 2019-03-19T18:01:59.000Z | github/urls.py | kasrasamareh454/beekeeper | 8e8719a9a46f0e8aaae35a2027f69a252a5371f1 | [
"BSD-3-Clause"
] | 12 | 2017-08-08T01:31:22.000Z | 2018-09-04T09:17:53.000Z | from django.conf.urls import url, include
from django.contrib import admin
from github import views as github
urlpatterns = [
url(r'^notify$', github.webhook, name='webhook'),
]
| 18.5 | 53 | 0.735135 | 26 | 185 | 5.230769 | 0.653846 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156757 | 185 | 9 | 54 | 20.555556 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 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 |
85f8952a932a9bd4a7b9e07f1d2199cfe28d5e2e | 219 | py | Python | cms/test_utils/project/fileapp/models.py | samirasnoun/django_cms_gallery_image | 7792aa06a60877d86c022e73b60d0d669e79cb74 | [
"BSD-3-Clause"
] | 2 | 2018-05-17T02:49:49.000Z | 2019-08-20T02:07:44.000Z | cms/test_utils/project/fileapp/models.py | samirasnoun/django_cms_gallery_image | 7792aa06a60877d86c022e73b60d0d669e79cb74 | [
"BSD-3-Clause"
] | 9 | 2015-06-25T10:31:12.000Z | 2022-03-12T00:41:22.000Z | cms/test_utils/project/fileapp/models.py | samirasnoun/django_cms_gallery_image | 7792aa06a60877d86c022e73b60d0d669e79cb74 | [
"BSD-3-Clause"
] | 1 | 2018-12-10T13:34:52.000Z | 2018-12-10T13:34:52.000Z | from cms.utils.helpers import reversion_register
from django.db import models
class FileModel(models.Model):
test_file = models.FileField(upload_to='fileapp/', blank=True, null=True)
reversion_register(FileModel)
| 27.375 | 77 | 0.803653 | 30 | 219 | 5.733333 | 0.733333 | 0.197674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100457 | 219 | 7 | 78 | 31.285714 | 0.873096 | 0 | 0 | 0 | 0 | 0 | 0.03653 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c80e03a7cc0740afd340fb56b049e11fdb48b729 | 9,980 | py | Python | computercraft/subapis/peripheral.py | maxtrussell/python-computer-craft | 9e318d2a0d368faf7a5c2a91e750fe8008aa9b81 | [
"MIT"
] | 42 | 2016-12-17T21:26:34.000Z | 2022-03-30T06:16:34.000Z | computercraft/subapis/peripheral.py | maxtrussell/python-computer-craft | 9e318d2a0d368faf7a5c2a91e750fe8008aa9b81 | [
"MIT"
] | 9 | 2018-02-21T22:44:18.000Z | 2022-03-14T04:14:02.000Z | computercraft/subapis/peripheral.py | maxtrussell/python-computer-craft | 9e318d2a0d368faf7a5c2a91e750fe8008aa9b81 | [
"MIT"
] | 7 | 2018-04-02T09:08:29.000Z | 2022-03-31T15:19:02.000Z | from dataclasses import dataclass
from typing import Dict, Optional, List, Tuple, Type, Any, Union
from .mixins import TermMixin, TermTarget
from .. import ser
from ..lua import LuaNum, lua_string
from ..sess import eval_lua, eval_lua_method_factory
class BasePeripheral:
# NOTE: is not LuaExpr, you can't pass pe... | 28.678161 | 100 | 0.651603 | 1,142 | 9,980 | 5.535026 | 0.21979 | 0.077519 | 0.118969 | 0.03607 | 0.158677 | 0.100933 | 0.045879 | 0.037336 | 0.029109 | 0.029109 | 0 | 0.002831 | 0.221242 | 9,980 | 347 | 101 | 28.760807 | 0.810473 | 0.065631 | 0 | 0.059908 | 0 | 0 | 0.087906 | 0 | 0 | 0 | 0 | 0.002882 | 0 | 1 | 0.276498 | false | 0.013825 | 0.032258 | 0.239631 | 0.672811 | 0.004608 | 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 |
c81aef158a5e963ecf802099a49f8d0014c2c19d | 239 | py | Python | easyplotly/__init__.py | mwouts/easyplotly | af5d76bd95c0bf6be1f5f090f5146060855d3092 | [
"MIT"
] | 4 | 2019-11-29T11:40:49.000Z | 2021-10-01T11:59:45.000Z | easyplotly/__init__.py | mwouts/easyplotly | af5d76bd95c0bf6be1f5f090f5146060855d3092 | [
"MIT"
] | 6 | 2019-12-01T11:08:24.000Z | 2019-12-15T18:08:12.000Z | easyplotly/__init__.py | mwouts/easyplotly | af5d76bd95c0bf6be1f5f090f5146060855d3092 | [
"MIT"
] | null | null | null | """Easy Plotly"""
import plotly.graph_objects as go
from .sankey import Sankey
from .sunburst import Sunburst
from .treemap import Treemap
from .version import __version__
__all__ = ['go', 'Sankey', 'Sunburst', 'Treemap', '__version__']
| 23.9 | 64 | 0.753138 | 30 | 239 | 5.566667 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129707 | 239 | 9 | 65 | 26.555556 | 0.802885 | 0.046025 | 0 | 0 | 0 | 0 | 0.153153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
c81e315613b9a22f8924a8cc014be4ed6436945b | 516 | py | Python | tests/dataset/test_dataset.py | vanderGoes/great_expectations | 9790cd992a8a4de672c640e89ddd7278a0ca0889 | [
"Apache-2.0"
] | 6,451 | 2017-09-11T16:32:53.000Z | 2022-03-31T23:27:49.000Z | tests/dataset/test_dataset.py | vanderGoes/great_expectations | 9790cd992a8a4de672c640e89ddd7278a0ca0889 | [
"Apache-2.0"
] | 3,892 | 2017-09-08T18:57:50.000Z | 2022-03-31T23:15:20.000Z | tests/dataset/test_dataset.py | vanderGoes/great_expectations | 9790cd992a8a4de672c640e89ddd7278a0ca0889 | [
"Apache-2.0"
] | 1,023 | 2017-09-08T15:22:05.000Z | 2022-03-31T21:17:08.000Z | def test_repeated_append_expectations(dataset, test_backend):
if test_backend == "mysql":
expected_expectation_count = 2
else:
expected_expectation_count = 3
# Repeatedly evaluating the "same" expectation should add it only one time.
assert expected_expectation_count == len(
data... | 36.857143 | 79 | 0.728682 | 58 | 516 | 6.137931 | 0.586207 | 0.213483 | 0.269663 | 0.168539 | 0.398876 | 0.398876 | 0.398876 | 0.398876 | 0.398876 | 0.398876 | 0 | 0.004843 | 0.199612 | 516 | 13 | 80 | 39.692308 | 0.857143 | 0.141473 | 0 | 0.333333 | 0 | 0 | 0.022676 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.083333 | 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 |
c83e41516ea99a809c97816ac29bed3601c5874b | 2,891 | py | Python | ecl/tests/unit/sss/v1/test_user.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | 5 | 2017-04-07T06:23:04.000Z | 2019-11-19T00:52:34.000Z | ecl/tests/unit/sss/v1/test_user.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | 16 | 2018-09-12T11:14:40.000Z | 2021-04-19T09:02:44.000Z | ecl/tests/unit/sss/v1/test_user.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | 14 | 2017-05-11T14:26:26.000Z | 2021-07-14T14:00:06.000Z | # 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, software
# distributed under t... | 43.149254 | 91 | 0.715669 | 367 | 2,891 | 5.435967 | 0.359673 | 0.135338 | 0.140351 | 0.189474 | 0.266165 | 0.018045 | 0 | 0 | 0 | 0 | 0 | 0.023573 | 0.163611 | 2,891 | 66 | 92 | 43.80303 | 0.801489 | 0.18056 | 0 | 0 | 0 | 0 | 0.256682 | 0.017819 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.041667 | false | 0.166667 | 0.041667 | 0 | 0.104167 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c846ffb6c8ff4b611c73266d1868cab0885f5983 | 103 | py | Python | flask/session/app/__init__.py | telliott99/Pi | d5cf2889e90172c9fe7dc57ab100031d807a99b4 | [
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2016-09-29T12:08:37.000Z | 2016-09-29T12:08:37.000Z | flask/session/app/__init__.py | telliott99/Pi | d5cf2889e90172c9fe7dc57ab100031d807a99b4 | [
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | flask/session/app/__init__.py | telliott99/Pi | d5cf2889e90172c9fe7dc57ab100031d807a99b4 | [
"CNRI-Python",
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | from flask import Flask
app = Flask(__name__)
from app import views
app.config.from_object('config')
| 14.714286 | 32 | 0.776699 | 16 | 103 | 4.6875 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 103 | 6 | 33 | 17.166667 | 0.842697 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 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 |
c8498b4372e387bd53fe3e7852cc69865b3df805 | 963 | py | Python | epages_client/dataobjects/customer_update.py | vilkasgroup/epages_client | 10e63d957ee45dc5d4df741064806f724fb1be1f | [
"MIT"
] | 3 | 2018-01-26T13:44:26.000Z | 2020-05-13T13:58:19.000Z | epages_client/dataobjects/customer_update.py | vilkasgroup/epages_client | 10e63d957ee45dc5d4df741064806f724fb1be1f | [
"MIT"
] | 53 | 2018-02-05T10:59:22.000Z | 2022-01-01T19:31:08.000Z | epages_client/dataobjects/customer_update.py | vilkasgroup/epages_client | 10e63d957ee45dc5d4df741064806f724fb1be1f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from .customer_create import CustomerCreate
from .enum_fetch_operator import FetchOperator
class CustomerUpdate(CustomerCreate):
'''Data object for updating a customer to ePages webshop'''
def __init__(self):
super(CustomerUpdate, self).... | 31.064516 | 105 | 0.687435 | 103 | 963 | 6.165049 | 0.524272 | 0.075591 | 0.066142 | 0.110236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001318 | 0.211838 | 963 | 30 | 106 | 32.1 | 0.83531 | 0.07892 | 0 | 0 | 0 | 0 | 0.098751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.